1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 Template:echo_with_span
87 Template:echo_with_div
99 Template:table_attribs
102 |</noinclude>style="color: red"| Foo
124 This is a simple paragraph.
126 <p>This is a simple paragraph.
131 Paragraphs with extra newline spacing
169 * plain''italic''plain
170 * plain''italic''plain''italic''plain
171 * plain'''bold'''plain
172 * plain'''bold'''plain'''bold'''plain
173 * plain''italic''plain'''bold'''plain
174 * plain'''bold'''plain''italic''plain
175 * plain''italic'''bold-italic'''italic''plain
176 * plain'''bold''bold-italic''bold'''plain
177 * plain'''''bold-italic'''italic''plain
178 * plain'''''bold-italic''bold'''plain
179 * plain''italic'''bold-italic'''''plain
180 * plain'''bold''bold-italic'''''plain
181 * plain l'''italic''plain
182 * plain l''''bold''' plain
185 </li><li> plain<i>italic</i>plain
186 </li><li> plain<i>italic</i>plain<i>italic</i>plain
187 </li><li> plain<b>bold</b>plain
188 </li><li> plain<b>bold</b>plain<b>bold</b>plain
189 </li><li> plain<i>italic</i>plain<b>bold</b>plain
190 </li><li> plain<b>bold</b>plain<i>italic</i>plain
191 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
192 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
193 </li><li> plain<i><b>bold-italic</b>italic</i>plain
194 </li><li> plain<b><i>bold-italic</i>bold</b>plain
195 </li><li> plain<i>italic<b>bold-italic</b></i>plain
196 </li><li> plain<b>bold<i>bold-italic</i></b>plain
197 </li><li> plain l'<i>italic</i>plain
198 </li><li> plain l'<b>bold</b> plain
204 ### 2-quote opening sequence tests
207 Italics and bold: 2-quote opening sequence: (2,2)
217 Italics and bold: 2-quote opening sequence: (2,3)
227 Italics and bold: 2-quote opening sequence: (2,4)
237 Italics and bold: 2-quote opening sequence: (2,5)
247 ### 3-quote opening sequence tests
251 Italics and bold: 3-quote opening sequence: (3,2)
261 Italics and bold: 3-quote opening sequence: (3,3)
271 Italics and bold: 3-quote opening sequence: (3,4)
281 Italics and bold: 3-quote opening sequence: (3,5)
291 ### 4-quote opening sequence tests
295 Italics and bold: 4-quote opening sequence: (4,2)
305 Italics and bold: 4-quote opening sequence: (4,3)
315 Italics and bold: 4-quote opening sequence: (4,4)
325 Italics and bold: 4-quote opening sequence: (4,5)
335 ### 5-quote opening sequence tests
339 Italics and bold: 5-quote opening sequence: (5,2)
349 Italics and bold: 5-quote opening sequence: (5,3)
359 Italics and bold: 5-quote opening sequence: (5,4)
363 <p><i><b>foo'</b></i>
369 Italics and bold: 5-quote opening sequence: (5,5)
378 ### multiple quote sequences in a line
381 Italics and bold: multiple quote sequences: (2,4,2)
385 <p><i>foo'<b>bar</b></i>
391 Italics and bold: multiple quote sequences: (2,4,3)
395 <p><i>foo'<b>bar</b></i>
401 Italics and bold: multiple quote sequences: (2,4,4)
405 <p><i>foo'<b>bar'</b></i>
411 Italics and bold: multiple quote sequences: (3,4,2)
421 Italics and bold: multiple quote sequences: (3,4,3)
430 ### other quote tests
433 Italics and bold: other quote tests: (2,3,5)
435 ''this is about '''foo's family'''''
437 <p><i>this is about <b>foo's family</b></i>
443 Italics and bold: other quote tests: (2,(3,3),2)
445 ''this is about '''foo's''' family''
447 <p><i>this is about <b>foo's</b> family</i>
453 Italics and bold: other quote tests: (3,2,3,2)
455 '''this is about ''foo'''s family''
457 <p><b>this is about <i>foo</i></b><i>s family</i>
463 Italics and bold: other quote tests: (3,2,3,3)
465 '''this is about ''foo'''s family'''
467 <p>'<i>this is about </i>foo<b>s family</b>
474 Italics and bold: other quote tests: (3,(2,2),3)
476 '''this is about ''foo's'' family'''
478 <p><b>this is about <i>foo's</i> family</b>
483 ### <nowiki> test cases
487 <nowiki> unordered list
489 <nowiki>* This is not an unordered list item.</nowiki>
491 <p>* This is not an unordered list item.
498 <nowiki>Lorem ipsum dolor
519 :There is not nowiki.
520 :There is <nowiki>nowiki</nowiki>.
522 #There is not nowiki.
523 #There is <nowiki>nowiki</nowiki>.
525 *There is not nowiki.
526 *There is <nowiki>nowiki</nowiki>.
528 <dl><dd>There is not nowiki.
529 </dd><dd>There is nowiki.
531 <ol><li>There is not nowiki.
532 </li><li>There is nowiki.
534 <ul><li>There is not nowiki.
535 </li><li>There is nowiki.
547 <!-- comment 1 --> asdf
549 <!-- comment 1 --> asdf
552 <!-- comment 1 --> asdf
553 <!-- comment 2 -->xyz
555 <!-- comment 1 --> asdf
556 <!-- comment 2 --> xyz
612 asdf<!-- comment 1 -->jkl
622 <!-- foo --> b <!-- bar -->
636 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
642 Comment semantics and delimiters
644 <!-- --><!----><!-----><!------>
650 Comment semantics and delimiters, redux
652 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
653 -- foo -- funky huh? ... -->
659 Comment semantics and delimiters: directors cut
661 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
662 everything starting with < followed by !-- until the first -- and > we see,
663 that wouldn't be valid XML however, since in XML -- has to terminate a comment
671 Comment semantics: nesting
673 <!--<!-- no, we're not going to do anything fancy here -->-->
680 Comment semantics: unclosed comment at end
682 <!--This comment will run out to the end of the document
688 Comment in template title
697 Comment on its own line post-expand
709 Comment on its own line post-expand with non-significant whitespace
721 ### paragraph wraping tests
735 Block tag on one line
747 Block tag on both lines
759 Multiple lines without block tags
777 ### Preformatted text
786 And a [[Main Page|link]]
792 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
797 Ident preformatting with inline content
808 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
825 Regression with preformatted in <center>
838 # Expected output in the following test is not really expected (there should be
839 # <pre> in the output) -- it's only testing for well-formedness.
841 Bug 6200: Preformatted in <blockquote>
854 <pre> with attributes (bug 3202)
856 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
858 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
863 <pre> with width attribute (bug 3202)
865 <pre width="8">Narrow screen goodies</pre>
867 <pre width="8">Narrow screen goodies</pre>
872 <pre> with forbidden attribute (bug 3202)
874 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
876 <pre width="8">Narrow screen goodies</pre>
881 <pre> with forbidden attribute values (bug 3202)
883 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
885 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
890 <nowiki> inside <pre> (bug 13238)
898 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
906 <pre><nowiki>Foo</nowiki></pre>
911 <nowiki> and <pre> preference (first one wins)
944 <nowiki></pre></nowiki>
951 Templates: Pre: 1a. Templates that break a line should suppress <pre>
959 Templates: Pre: 1b. Templates that break a line should suppress <pre>
969 Templates: Pre: 1c: Wrapping should be based on expanded content
981 Templates: Pre: 1d: Wrapping should be based on expanded content
1002 Templates: Pre: 1e. Wrapping should be based on expanded content
1006 {{echo| foo}}{{echo| bar}}
1011 {{echo|<!--cmt--> foo}}
1013 <!--cmt-->{{echo| foo}}
1015 {{echo|{{echo| }}bar}}
1033 Templates: Pre: 1f: Wrapping should be based on expanded content
1070 Templates: Single-line variant of parameter whitespace stripping test
1076 {{echo|{{echo| a}}}}
1078 {{echo|1={{echo| a}}}}
1091 Templates: Strip whitespace from named parameters, but not positional ones
1119 ### Parsoid-centric tests for testing RT edge cases for pre
1123 1a. Pre and Comments
1136 1b. Pre and Comments
1149 1c. Pre and Comments
1199 3a. Pre and block tags (single-line html)
1207 <pre><span> foo </span>
1212 3b. Pre and block tags (pre-content on separate line)
1264 4. Multiple spaces at start-of-line
1283 ### Definition lists
1290 <dl><dt> name </dt><dd> Definition
1296 Definition list for indentation only
1300 <dl><dd> Indented text
1306 Definition list with no space
1310 <dl><dt>name</dt><dd>Definition
1316 Definition list with URL link
1318 ; http://example.com/ : definition
1320 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1326 Definition list with bracketed URL link
1328 ;[http://www.example.com/ Example]:Something about it
1330 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1336 Definition list with wikilink containing colon
1338 ; [[Help:FAQ]]: The least-read page on Wikipedia
1340 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1345 # At Brion's and JeLuF's insistence... :)
1347 Definition list with news link containing colon
1349 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1351 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1357 Malformed definition list with colon
1359 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1361 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1367 Definition lists: colon in external link text
1369 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1371 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1377 Definition lists: colon in HTML attribute
1379 ;<b style="display: inline">bold</b>
1381 <dl><dt><b style="display: inline">bold</b>
1387 Definition lists: self-closed tag
1389 ;one<br/>two : two-line fun
1391 <dl><dt>one<br />two </dt><dd> two-line fun
1397 Bug 11748: Literal closing tags
1401 <dd>test test test test test</dd>
1403 <dd>test test test test test</dd>
1408 <dd>test test test test test</dd>
1410 <dd>test test test test test</dd>
1416 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1419 ; term : description
1425 <dl><dt> term </dt><dd> description
1436 Definition list with empty definition and following paragraph
1441 <dl><dt> term</dt><dd>
1448 Nested definition lists using html syntax
1465 Definition Lists: No nesting: Multiple dd's
1479 Definition Lists: Indentation: Regular
1495 Definition Lists: Indentation: Missing 1st level
1509 Definition Lists: Indentation: Multi-level indent
1513 <dl><dd><dl><dd><dl><dd>i3
1521 Definition Lists: Hacky use to indent tables
1528 should be left alone
1530 <dl><dd><dl><dd><table>
1535 </td></tr></table></dd></dl></dd></dl>
1537 should be left alone
1540 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1541 ## as an empty dt item. It also ignores all but the last ";" when followed
1542 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1543 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1546 ## Ex: ";;t2 ::d2" is transformed into:
1558 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1559 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1570 ## All Parsoid only definition list tests have this difference.
1572 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1573 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1576 Table / list interaction: indented table with lists in table contents
1598 </td></tr></table></dd></dl>
1603 Definition Lists: Nesting: Multi-level (Parsoid only)
1633 Definition Lists: Nesting: Test 2 (Parsoid only)
1653 Definition Lists: Nesting: Test 3 (Parsoid only)
1681 Definition Lists: Nesting: Test 4
1686 <dl><dd><dl><dd><dl><dt>t3
1696 Definition Lists: Mixed Lists: Test 1
1702 <dl><dd><dl><dt><ul><li> foo
1714 Definition Lists: Mixed Lists: Test 2
1728 Definition Lists: Mixed Lists: Test 3
1733 <ul><li><dl><dd><dl><dd><dl><dd> d1
1744 Definition Lists: Mixed Lists: Test 4
1749 <ul><li><dl><dt>d1 </dt><dd>d2
1750 </dd><dt>d3 </dt><dd>d4
1758 Definition Lists: Mixed Lists: Test 5
1773 Definition Lists: Mixed Lists: Test 6
1778 <ol><li><ul><li><dl><dd>d1
1790 Definition Lists: Mixed Lists: Test 7
1804 Definition Lists: Mixed Lists: Test 8
1820 Definition Lists: Mixed Lists: Test 9
1824 <ul><li><dl><dt>foo </dt><dd>bar
1832 Definition Lists: Mixed Lists: Test 10
1836 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1845 Definition Lists: Mixed Lists: Test 11
1850 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1855 <dl><dt>boo </dt><dd>baz
1866 Definition Lists: Weird Ones: Test 1
1868 *#;*::;; foo : bar (who uses this?)
1870 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1886 External links: non-bracketed
1888 Non-bracketed: http://example.com
1890 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1895 External links: numbered
1897 Numbered: [http://example.com]
1898 Numbered: [http://example.net]
1899 Numbered: [http://example.com]
1901 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1902 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1903 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1908 External links: specified text
1910 Specified text: [http://example.com link]
1912 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1917 External links: trail
1919 Linktrails should not work for external links: [http://example.com link]s
1921 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1926 External links: dollar sign in URL
1928 http://example.com/1$2345
1930 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1935 External links: dollar sign in URL (named)
1937 [http://example.com/1$2345]
1939 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1944 External links: open square bracket forbidden in URL (bug 4377)
1946 http://example.com/1[2345
1948 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1953 External links: open square bracket forbidden in URL (named) (bug 4377)
1955 [http://example.com/1[2345]
1957 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1962 External links: nowiki in URL link text (bug 6230)
1964 [http://example.com/ <nowiki>''example site''</nowiki>]
1966 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1971 External links: newline forbidden in text (bug 6230 regression check)
1973 [http://example.com/ first
1976 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1982 External links: Pipe char between url and text
1984 [http://example.com | link]
1986 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1991 External links: protocol-relative URL in brackets
1993 [//example.com/ Test]
1995 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2000 External links: protocol-relative URL in brackets without text
2004 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2009 External links: protocol-relative URL in free text is left alone
2013 <p>//example.com/Foo
2018 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2020 foo//example.com/Foo
2022 <p>foo//example.com/Foo
2029 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2031 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2036 External image from https
2038 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2040 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2045 Link to non-http image, no img tag
2047 Link to non-http image, no img tag: ftp://example.com/test.jpg
2049 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2054 External links: terminating separator
2056 Terminating separator: http://example.com/thing,
2058 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2063 External links: intervening separator
2065 Intervening separator: http://example.com/1,2,3
2067 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2072 External links: old bug with URL in query
2074 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2076 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2081 External links: old URL-in-URL bug, mixed protocols
2083 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2085 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2090 External links: URL in text
2092 URL in text: [http://example.com http://example.com]
2094 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2099 External links: Clickable images
2101 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2103 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
2108 External links: raw ampersand
2110 Old & use: http://x&y
2112 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2117 External links: encoded ampersand
2119 Old & use: http://x&y
2121 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2126 External links: encoded equals (bug 6102)
2128 http://example.com/?foo=bar
2130 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2135 External links: [raw ampersand]
2137 Old & use: [http://x&y]
2139 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2144 External links: [encoded ampersand]
2146 Old & use: [http://x&y]
2148 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2153 External links: [encoded equals] (bug 6102)
2155 [http://example.com/?foo=bar]
2157 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2162 External links: [IDN ignored character reference in hostname; strip it right off]
2164 [http://e‌xample.com/]
2166 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2170 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2171 # Where an external link could easily circumvent the sanitization of the text of
2172 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2173 # test demands a higher standard. That's a bit strange.
2177 # http://example.com -> [http://example.com|http://example.com]
2178 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2180 # The first example is sanitized, but the second is not. Any security benefits
2181 # from this production are trivial to circumvent. Either remove this test and
2182 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2183 # the test accordingly.
2188 External links: IDN ignored character reference in hostname; strip it right off
2190 http://e‌xample.com/
2192 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2197 External links: www.jpeg.org (bug 554)
2201 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2206 External links: URL within URL (original bug 2)
2208 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2210 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2215 BUG 361: URL inside bracketed URL
2217 [http://www.example.com/foo http://www.example.com/bar]
2219 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2224 BUG 361: URL within URL, not bracketed
2226 http://www.example.com/foo?=http://www.example.com/bar
2228 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2233 BUG 289: ">"-token in URL-tail
2235 http://www.example.com/<hello>
2237 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2242 BUG 289: literal ">"-token in URL-tail
2244 http://www.example.com/<b>html</b>
2246 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2251 BUG 289: ">"-token in bracketed URL
2253 [http://www.example.com/<hello> stuff]
2255 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2260 BUG 289: literal ">"-token in bracketed URL
2262 [http://www.example.com/<b>html</b> stuff]
2264 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2269 BUG 289: literal double quote at end of URL
2271 http://www.example.com/"hello"
2273 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2278 BUG 289: literal double quote in bracketed URL
2280 [http://www.example.com/"hello" stuff]
2282 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2287 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2289 [http://www.example.com test]
2291 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2296 External links: wiki links within external link (Bug 3695)
2298 [http://example.com [[wikilink]] embedded in ext link]
2300 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
2305 BUG 787: Links with one slash after the url protocol are invalid
2309 [http:/example.com title]
2311 <p>http:/example.com
2312 </p><p>[http:/example.com title]
2317 Bracketed external links with template-generated invalid target
2319 [{{echo|http:/example.com}} title]
2321 <p>[http:/example.com title]
2326 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2328 ''[http://example.com text'']
2329 [http://example.com '''text]'''
2330 ''Something [http://example.com in italic'']
2331 ''Something [http://example.com mixed''''', even bold]'''
2332 '''''Now [http://example.com both''''']
2334 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2335 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2336 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2337 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2338 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2344 Bug 4781: %26 in URL
2346 http://www.example.com/?title=AT%26T
2348 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2352 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2353 # % is actually legal in HTML5. Any change in output would need testing though.
2355 Bug 4781, 5267: %25 in URL
2357 http://www.example.com/?title=100%25_Bran
2359 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
2364 Bug 4781, 5267: %28, %29 in URL
2366 http://www.example.com/?title=Ben-Hur_%281959_film%29
2368 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
2374 Bug 4781: %26 in autonumber URL
2376 [http://www.example.com/?title=AT%26T]
2378 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2383 Bug 4781, 5267: %26 in autonumber URL
2385 [http://www.example.com/?title=100%25_Bran]
2387 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2392 Bug 4781, 5267: %28, %29 in autonumber URL
2394 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2396 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2402 Bug 4781: %26 in bracketed URL
2404 [http://www.example.com/?title=AT%26T link]
2406 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2411 Bug 4781, 5267: %26 in bracketed URL
2413 [http://www.example.com/?title=100%25_Bran link]
2415 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2420 Bug 4781, 5267: %28, %29 in bracketed URL
2422 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2424 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2429 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2431 Some [http://example.com/ pretty ''italics'' and stuff]!
2433 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2438 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2440 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2442 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
2447 External link containing double-single-quotes with no space separating the url from text in italics
2449 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
2451 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
2456 URL-encoding in URL functions (single parameter)
2458 {{localurl:Some page|amp=&}}
2460 <p>/index.php?title=Some_page&amp=&
2465 URL-encoding in URL functions (multiple parameters)
2467 {{localurl:Some page|q=?&=&}}
2469 <p>/index.php?title=Some_page&q=?&amp=&
2476 http://example.com/index.php?foozoid%5B%5D=bar
2478 http://example.com/index.php?foozoid[]=bar
2480 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2481 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2486 IPv6 urls (bug 21261)
2490 http://[2404:130:0:1000::187:2]/index.php
2492 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
2497 Non-extlinks in brackets
2506 [{{echo|foo}} ''bar'']
2507 [{{echo|foo}}l's] errand
2508 [{{echo|foo}}l's errand]
2530 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2532 Normal text. '''''Bold italic text.''''' Normal text.
2534 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2535 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2541 Unclosed and unmatched quotes
2543 '''''Bold italic text '''with bold deactivated''' in between.'''''
2545 '''''Bold italic text ''with italic deactivated'' in between.'''''
2549 ..spanning two paragraphs (should not work).'''
2551 '''Bold tag left open
2553 ''Italic tag left open
2557 <!-- Unmatching number of opening, closing tags: -->
2558 '''This year''''s election ''should'' beat '''last year''''s.
2560 ''Tom'''s car is bigger than ''Susan'''s.
2562 Plain ''italic'''s plain
2564 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2565 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2566 </p><p><b>Bold text..</b>
2567 </p><p>..spanning two paragraphs (should not work).
2568 </p><p><b>Bold tag left open</b>
2569 </p><p><i>Italic tag left open</i>
2571 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2572 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2573 </p><p>Plain <i>italic'</i>s plain
2580 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2583 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2584 # is the bare minimun required by the spec, see:
2585 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2587 A table with no data.
2593 # A table with nothing but a caption is invalid XHTML, we might want to render
2594 # this as <p>caption</p>
2596 A table with nothing but a caption
2604 </caption><tr><td></td></tr></table>
2609 Table td-cell syntax variations
2613 | foo bar foo || baz
2614 | style='color:red;' | baz
2615 | style='color:red;' || baz
2622 <td> foo bar foo </td>
2625 <td style="color:red;"> baz
2627 <td> style='color:red;' </td>
2655 Simple table but with multiple dashes for row wikitext
2673 Multiplication table
2675 {| border="1" cellpadding="2"
2676 |+Multiplication table
2678 ! × !! 1 !! 2 !! 3
2696 <table border="1" cellpadding="2">
2697 <caption>Multiplication table
2744 Allow +/- in 2nd and later cells in a row
2771 |rowspan=2| Cell 2, row 1 (and 2)
2782 <td rowspan="2"> Cell 2, row 1 (and 2)
2800 {| bgcolor=#ABCDEF border=2
2805 |the original table again
2813 <table bgcolor="#ABCDEF" border="2">
2821 <td>the original table again
2827 Invalid attributes in table cell (bug 1830)
2842 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2845 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2849 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2850 <td>]" onmouseover="alert(document.cookie)">test
2859 Indented table markup mixed with indented pre content (proposed in bug 6200)
2864 Text that should be rendered preformatted
2872 <pre>Text that should be rendered preformatted
2881 Template-generated table cell attributes and cell content
2889 <td style="color: red"> Foo
2895 Table with row followed by newlines and table heading
2912 # FIXME: Preserve the attribute properly (with an empty string as value) in
2913 # the PHP parser. Parsoid implements the behavior below.
2915 Table attributes with empty value
2934 Plain link, capitalized
2938 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2943 Plain link, uncapitalized
2947 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2954 [[Main Page|The Main Page]]
2956 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2965 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2970 Broken link with fragment
2972 [[Zigzagzogzagzig#zug]]
2974 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2979 Special page link with fragment
2981 [[Special:Version#anchor]]
2983 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2988 Nonexistent special page link with fragment
2990 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2992 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2999 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3001 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3008 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3010 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
3015 Link with 3 brackets
3024 Piped link with 3 brackets
3026 [[[main page|the main page]]]
3028 <p>[[[main page|the main page]]]
3033 Link with multiple pipes
3035 [[Main Page|The|Main|Page]]
3037 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3044 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3046 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
3051 Piped link to namespace
3053 [[Meta:Disclaimers|The disclaimers]]
3055 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3062 [[Usually caused by a typo (oops}]]
3064 <p>[[Usually caused by a typo (oops}]]
3069 Link containing % (not as a hex sequence)
3073 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3078 Link containing % as a single hex sequence interpreted to char
3082 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3087 Link containing % as a double hex sequence interpreted to hex sequence
3091 <p>[[7%2525 Solution]]
3096 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3097 Example for such a section: == < ==
3099 [[%23%3c]][[%23%3e]]
3101 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3106 Link containing "<#" and ">#" as a hex sequences
3108 [[%3c%23]][[%3e%23]]
3110 <p>[[%3c%23]][[%3e%23]]
3115 Link containing double-single-quotes '' (bug 4598)
3117 [[Lista d''e paise d''o munno]]
3119 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
3124 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3126 Some [[Link|pretty ''italics'' and stuff]]!
3128 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
3133 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3135 ''Some [[Link|pretty ''italics'' and stuff]]!
3137 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
3142 Link with double quotes in title part (literal) and alternate part (interpreted)
3144 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3148 [[''Pentecoste''|Pentecoste]]
3150 [[''Pentecoste''|''Pentecoste'']]
3152 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
3153 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
3154 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
3155 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
3160 Broken image links with HTML captions (bug 39700)
3162 [[File:Nonexistent|<script></script>]]
3163 [[File:Nonexistent|100px|<script></script>]]
3164 [[File:Nonexistent|<]]
3165 [[File:Nonexistent|a<i>b</i>c]]
3167 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3168 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3169 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3170 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3177 [[http://www.example.com]]
3179 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3184 Plain link to URL with link text
3186 [[http://www.example.com Link text]]
3188 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3193 Plain link to protocol-relative URL
3195 [[//www.example.com]]
3197 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3202 Plain link to protocol-relative URL with link text
3204 [[//www.example.com Link text]]
3206 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3211 Plain link to page with question mark in title
3217 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3218 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3223 # I'm fairly sure the expected result here is wrong.
3224 # We want these to be URL links, not pseudo-pages with URLs for titles....
3225 # However the current output is also pretty screwy.
3228 # I'm changing it to match the current output--it arguably makes more
3229 # sense in the light of the test above. Old expected result was:
3230 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3232 # But I think this test is bordering on "garbage in, garbage out" anyway.
3237 Piped link to URL: [[http://www.example.com|an example URL]]
3239 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3244 BUG 2: [[page|http://url/]] should link to page, not http://url/
3246 [[Main Page|http://url/]]
3248 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3253 BUG 337: Escaped self-links should be bold
3257 [[Bug462]] [[Bug462]]
3259 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3264 Self-link to section should not be bold
3268 [[Main Page#section]]
3270 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3281 Self-link to numeric title
3287 <p><strong class="selflink">0</strong>
3292 Link to numeric-equivalent title
3298 <p><a href="/wiki/00" title="00">00</a>
3303 <nowiki> inside a link
3305 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3307 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3312 Non-breaking spaces in title
3314 [[ Main Page ]]
3316 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3321 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3327 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3332 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3338 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3343 Internal link with en linktrail: no apostrophes (bug 27473)
3349 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3354 Internal link with ca linktrail with apostrophes (bug 27473)
3360 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3365 Internal link with kaa linktrail with apostrophes (bug 27473)
3371 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3376 ### Interwiki links (see maintenance/interwiki.sql)
3380 Inline interwiki link
3382 [[MeatBall:SoftSecurity]]
3384 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3389 Inline interwiki link with empty title (bug 2372)
3393 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3398 Interwiki link encoding conversion (bug 1636)
3400 *[[Wikipedia:ro:Olteniţa]]
3401 *[[Wikipedia:ro:Olteniţa]]
3403 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
3404 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
3410 Interwiki link with fragment (bug 2130)
3412 [[MeatBall:SoftSecurity#foo]]
3414 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3429 Double interlanguage link
3440 Interlanguage link, with prefix links
3452 Double interlanguage link, with prefix links (bug 8897)
3465 Parsoid-specific test: Wikilinks with should RT properly
3471 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3489 Broken br tag sanitization
3498 Incorrecly removing closing slashes from correctly formed XHTML
3500 <br style="clear:both;" />
3502 <p><br style="clear:both;" />
3507 Failing to transform badly formed HTML into correct XHTML
3509 <br style="clear: left;">
3510 <br style="clear: right;">
3511 <br style="clear: both;">
3513 <p><br style="clear: left;" />
3514 <br style="clear: right;" />
3515 <br style="clear: both;" />
3520 Handling html with a div self-closing tag
3529 <p><div title />
3533 <p><div title=bar />
3534 <div title=bar/>
3536 <div title="bar/"></div>
3542 Handling html with a br self-closing tag
3551 <p><br title="title" />
3552 <br title="title" />
3561 Horizontal ruler (should it add that extra space?)
3575 Horizontal ruler -- 4+ dashes render hr
3584 Horizontal ruler -- eats additional dashes on the same line
3593 Horizontal ruler -- does not collaps dashes on consecutive lines
3604 Horizontal ruler -- <4 dashes render as plain text
3613 Horizontal ruler -- Supports content following dashes on same line
3622 ### Block-level elements
3645 <ol><li>Numbered list
3662 ***#Number on level 4
3664 **#Number on level 3
3665 **#Number on level 3
3669 #** Level 3, but ordered
3672 <ol><li> with numbers
3674 <ul><li> and bullets
3676 <ol><li> and numbers
3678 </li><li>bullets again
3679 <ul><li>bullet level 2
3680 <ul><li>bullet level 3
3681 <ol><li>Number on level 4
3684 </li><li>bullet level 2
3685 <ol><li>Number on level 3
3686 </li><li>Number on level 3
3689 <ol><li>number level 2
3692 <ul><li><ul><li> Level 3
3696 <ol><li><ul><li><ul><li> Level 3, but ordered
3730 Nested lists 3 (first element empty)
3743 Nested lists 4 (first element empty)
3756 Nested lists 5 (both elements empty)
3769 Nested lists 6 (both elements empty)
3782 Nested lists 7 (skip initial nesting levels)
3786 <ul><li><ul><li><ul><li> foo
3794 Nested lists 8 (multiple nesting transitions)
3802 <ul><li><ul><li> bar
3812 1. Lists with start-of-line-transparent tokens before bullets: Comments
3826 2. Lists with start-of-line-transparent tokens before bullets: Template close
3838 List items are not parsed correctly following a <pre> block (bug 785)
3844 <ul><li> <pre>foo</pre>
3845 </li><li> <pre>bar</pre>
3852 List items from template
3863 * notSOL{{inner list}}
3882 List interrupted by empty line or heading
3892 <ul><li><ul><li> bar
3895 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading"> A heading </span></h2>
3896 <ul><li> Another list item
3907 Magic Word: {{CURRENTDAY}}
3916 Magic Word: {{CURRENTDAY2}}
3925 Magic Word: {{CURRENTDAYNAME}}
3934 Magic Word: {{CURRENTDOW}}
3943 Magic Word: {{CURRENTMONTH}}
3952 Magic Word: {{CURRENTMONTHABBREV}}
3954 {{CURRENTMONTHABBREV}}
3961 Magic Word: {{CURRENTMONTHNAME}}
3963 {{CURRENTMONTHNAME}}
3970 Magic Word: {{CURRENTMONTHNAMEGEN}}
3972 {{CURRENTMONTHNAMEGEN}}
3979 Magic Word: {{CURRENTTIME}}
3988 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3997 Magic Word: {{CURRENTYEAR}}
4006 Magic Word: {{FULLPAGENAME}}
4008 title=[[User:Ævar Arnfjörð Bjarmason]]
4012 <p>User:Ævar Arnfjörð Bjarmason
4017 Magic Word: {{FULLPAGENAMEE}}
4019 title=[[User:Ævar Arnfjörð Bjarmason]]
4023 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4028 Magic Word: {{NAMESPACE}}
4030 title=[[User:Ævar Arnfjörð Bjarmason]]
4039 Magic Word: {{NAMESPACEE}}
4041 title=[[User:Ævar Arnfjörð Bjarmason]]
4050 Magic Word: {{NAMESPACENUMBER}}
4052 title=[[User:Ævar Arnfjörð Bjarmason]]
4061 Magic Word: {{NUMBEROFFILES}}
4070 Magic Word: {{PAGENAME}}
4072 title=[[User:Ævar Arnfjörð Bjarmason]]
4076 <p>Ævar Arnfjörð Bjarmason
4081 Magic Word: {{PAGENAME}} with metacharacters
4083 title=[['foo & bar = baz']]
4087 <p><i>'foo & bar = baz'</i>
4092 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4094 title=[[*RFC 1234 http://example.com/]]
4098 <p>*RFC 1234 http://example.com/
4103 Magic Word: {{PAGENAMEE}}
4105 title=[[User:Ævar Arnfjörð Bjarmason]]
4109 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4114 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4116 title=[[*RFC 1234 http://example.com/]]
4120 <p>*RFC_1234_http://example.com/
4125 Magic Word: {{REVISIONID}}
4134 Magic Word: {{SCRIPTPATH}}
4143 Magic Word: {{SERVER}}
4147 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4152 Magic Word: {{SERVERNAME}}
4161 Magic Word: {{SITENAME}}
4170 Namespace 1 {{ns:1}}
4179 Namespace 1 {{ns:01}}
4188 Namespace 0 {{ns:0}} (bug 4783)
4196 Namespace 0 {{ns:00}} (bug 4783)
4204 Namespace -1 {{ns:-1}}
4213 Namespace User {{ns:User}}
4222 Namespace User talk {{ns:User_talk}}
4231 Namespace User talk {{ns:uSeR tAlK}}
4240 Namespace File {{ns:File}}
4249 Namespace File {{ns:Image}}
4258 Namespace (lang=de) Benutzer {{ns:User}}
4269 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4275 <p>Benutzer Diskussion
4283 {{urlencode:hi world?!}}
4284 {{urlencode:hi world?!|WIKI}}
4285 {{urlencode:hi world?!|PATH}}
4286 {{urlencode:hi world?!|QUERY}}
4299 Magic links: internal link to RFC (bug 479)
4303 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4308 Magic links: RFC (bug 479)
4312 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4317 Magic links: ISBN (bug 1937)
4321 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4326 Magic links: PMID incorrectly converts space to underscore
4330 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4339 Nonexistent template
4341 {{thistemplatedoesnotexist}}
4343 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4350 This is a test template
4358 <p>This is a test template
4363 Template with explicit namespace
4367 <p>This is a test template
4375 This is a test template with parameter {{{param}}}
4381 {{paramtest|param=foo}}
4383 <p>This is a test template with parameter foo
4388 Template:paramtestnum
4394 Template unnamed parameter
4396 {{paramtestnum|Main Page|the main page}}
4398 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4403 Template:templatesimple
4409 Template:templateredirect
4411 #redirect [[Template:templatesimple]]
4415 Template:templateasargtestnum
4421 Template:templateasargtest
4423 {{template{{{templ}}}}}
4427 Template:templateasargtest2
4433 Template with template name as unnamed argument
4435 {{templateasargtestnum|templatesimple}}
4442 Template with template name as argument
4444 {{templateasargtest|templ=simple}}
4451 Template with template name as argument (2)
4453 {{templateasargtest2|templ=templatesimple}}
4460 Template:templateasargtestdefault
4462 {{{{{templ|templatesimple}}}}}
4472 Template with default value
4474 {{templateasargtestdefault}}
4481 Template with default value (value set)
4483 {{templateasargtestdefault|templ=templa}}
4492 {{templateredirect}}
4499 Template with argument in separate line
4501 {{ templateasargtest |
4509 Template with complex template as argument
4512 param ={{ templateasargtest |
4515 <p>This is a test template with parameter (test)
4520 Template with thumb image (with link in description)
4523 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4525 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
4530 Template:complextemplate
4532 {{{1}}} {{paramtest|
4533 param ={{{param}}}}}
4537 Template with complex arguments
4540 param ={{ templateasargtest |
4541 templ = simple }}|[[Template:complextemplate|link]]}}
4543 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4548 BUG 553: link with two variables in a piped link
4551 |[[{{{1}}}|{{{2}}}]]
4556 <td>[[{{{1}}}|{{{2}}}]]
4562 Magic variable as template parameter
4564 {{paramtest|param={{SITENAME}}}}
4566 <p>This is a test template with parameter MediaWiki
4573 [[{{{param}}}|link]]
4577 Template parameter as link source
4579 {{linktest|param=Main Page}}
4581 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4586 Template-generated attribute string (k='v')
4588 <span {{attr_str|id|v1}}>bar</span>
4590 <p><span id="v1">bar</span>
4597 including another template, {{paramtest|param={{{arg}}}}}
4601 Template passing argument to another template
4603 {{paramtest2|arg='hmm'}}
4605 <p>including another template, This is a test template with parameter 'hmm'
4616 Template as link source
4620 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4638 Template infinite loop
4642 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4647 Template from main namespace
4666 BUG 529: Template with table, not included at beginning of line
4685 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4705 BUG 41: Template parameters shown as broken links
4714 Template with targets containing wikilinks
4718 {{[[{{echo|foo}}]]}}
4720 {{{{echo|[[foo}}]]}}
4722 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4723 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4731 ''None'' of '''this''' should be
4733 but rather passed unmodified
4737 # hmm, fix this or just deprecate msgnw and document its behavior?
4743 {{msgnw:MSGNW test}}
4745 <p>''None'' of '''this''' should be
4747 but rather passed unmodified
4755 {{int:youhavenewmessages|lots of money|not!}}
4757 <p>You have lots of money (not!).
4764 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4768 <includeonly> and <noinclude> being included
4779 <onlyinclude>Foo</onlyinclude>bar
4783 <onlyinclude> being included
4795 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4799 <onlyinclude> and <includeonly> being included
4808 <includeonly> and <noinclude> on a page
4810 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4817 Un-closed <noinclude>
4824 <onlyinclude> on a page
4826 <onlyinclude>Foo</onlyinclude>bar
4833 Un-closed <onlyinclude>
4840 Template:Includeonly section
4843 ==Includeonly section==
4849 Bug 6563: Edit link generation for section shown by <includeonly>
4851 {{includeonly section}}
4853 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
4854 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
4858 # Uses same input as the contents of [[Template:Includeonly section]]
4860 Bug 6563: Section extraction for section shown by <includeonly>
4865 ==Includeonly section==
4873 Bug 6563: Edit link generation for section suppressed by <includeonly>
4876 ==Includeonly section==
4880 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4885 Bug 6563: Section extraction for section suppressed by <includeonly>
4890 ==Includeonly section==
4898 Un-closed <includeonly>
4905 ### <includeonly> and <noinclude> in attributes
4908 0. includeonly around the entire attribute
4910 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4912 <p><span id="v2">bar</span>
4917 1. includeonly in html attr key
4919 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4921 <p><span id="foo">bar</span>
4926 2. includeonly in html attr value
4928 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4929 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4931 <p><span id="v1">bar</span>
4932 <span id="v1">bar</span>
4937 3. includeonly in part of an attr value
4939 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4941 <p><span style="color:red;">bar</span>
4946 ### Testing parsing of templates where a template arg
4947 ### has the same name as the template itself.
4957 Templates: Template Name/Arg clash: 1. Use of positional param
4966 Templates: Template Name/Arg clash: 2. Use of named param
4975 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4984 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4988 Templates: 1. Simple use
4997 Templates: 2. Inside a block tag
4999 <div>{{echo|Foo}}</div>
5006 Templates: P-wrapping: 1a. Templates on consecutive lines
5017 Templates: P-wrapping: 1b. Templates on consecutive lines
5031 Templates: P-wrapping: 1c. Templates on consecutive lines
5034 {{echo|bar}} <div>baz</div>
5043 Templates: Inline Text: 1. Multiple tmeplate uses
5045 {{echo|Foo}}bar{{echo|baz}}
5052 Templates: Inline Text: 2. Back-to-back template uses
5054 {{echo|Foo}}{{echo|bar}}
5061 Templates: Block Tags: 1. Multiple template uses
5063 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5065 <div>Foo</div><div>bar</div><div>baz</div>
5070 Templates: Block Tags: 2. Back-to-back template uses
5072 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5074 <div>Foo</div><div>bar</div>
5079 Templates: Links: 1. Simple example
5081 {{echo|[[Foo|bar]]}}
5083 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5088 Templates: Links: 2. Generation of link href
5090 [[{{echo|Foo}}|bar]]
5092 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5097 Templates: Links: 3. Generation of part of a link href
5099 [[Fo{{echo|o}}|bar]]
5101 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5106 Templates: Links: 4. Multiple templates generating link href
5108 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5110 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5115 Templates: Links: 5. Generation of link text
5117 [[Foo|{{echo|bar}}]]
5119 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5124 Templates: Links: 5. Nested templates (only outermost template should be marked)
5126 {{echo|[[{{echo|Foo}}|bar]]}}
5128 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5133 Templates: HTML Tag: 1. Generation of HTML attr. key
5135 <div {{echo|style}}="color:red;">foo</div>
5137 <div style="color:red;">foo</div>
5142 Templates: HTML Tag: 2. Generation of HTML attr. value
5144 <div style={{echo|'color:red;'}}>foo</div>
5146 <div style="color:red;">foo</div>
5151 Templates: HTML Tag: 3. Generation of HTML attr key and value
5153 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5155 <div style="color:red;">foo</div>
5160 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5162 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5164 <div title="This is a long title with just one piece templated">foo</div>
5169 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5171 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5173 <div title="This is a long title with just one piece templated">foo</div>
5178 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5180 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5182 <div title="This is a long title with just one piece templated">foo</div>
5187 Templates: HTML Tables: 1. Generating start of a HTML table
5189 {{echo|<table><tr><td>foo</td>}}</tr></table>
5191 <table><tr><td>foo</td></tr></table>
5196 Templates: HTML Tables: 2a. Generating middle of a HTML table
5198 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5200 <table><tr><td>foo</td></tr></table>
5205 Templates: HTML Tables: 2b. Generating middle of a HTML table
5207 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5209 <table><tr><td>foo</td></tr></table>
5214 Templates: HTML Tables: 3. Generating end of a HTML table
5216 <table><tr>{{echo|<td>foo</td></tr></table>}}
5218 <table><tr><td>foo</td></tr></table>
5223 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5225 {{echo|<table>}}<tr><td>foo</td></tr></table>
5227 <table><tr><td>foo</td></tr></table>
5232 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5234 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5236 <table><tr><td>foo</td></tr></table>
5241 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5243 <table><tr>{{echo|<td>}}foo</td></tr></table>
5245 <table><tr><td>foo</td></tr></table>
5250 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5252 <table><tr><td>foo{{echo|</td>}}</tr></table>
5254 <table><tr><td>foo</td></tr></table>
5259 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5261 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5263 <table><tr><td>foo</td></tr></table>
5268 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5270 <table><tr><td>foo</td></tr>{{echo|</table>}}
5272 <table><tr><td>foo</td></tr></table>
5277 Templates: Wiki Tables: 1. Fostering of entire template content
5285 <tr><td></td></tr></table>
5290 Templates: Wiki Tables: 2. Fostering of partial template content
5300 <tr><td></td></tr></table>
5305 Templates: Wiki Tables: 3. td-content via multiple templates
5308 {{echo|{{pipe}}a}}{{echo|b}}
5319 Templates: Lists: Multi-line list-items via templates
5321 *{{echo|a {{nonexistent|
5323 *{{echo|b {{nonexistent|
5326 <ul><li>a <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
5327 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
5333 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5335 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5337 <p><i>ab</i>c<i>d</i>e
5342 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5343 (PHP parser generates misnested html)
5347 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5349 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5353 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5354 (PHP parser generates misnested html)
5358 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5361 <div><i>b</i>c<i>d</i></div>
5366 Templates: Ugly nesting: 4. Divs opened/closed across templates
5368 a<div>b{{echo|c</div>d}}e
5375 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5381 |{{echo|foo</table>}}
5385 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5386 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5387 bar</span><span about="#mwt1">
5392 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5402 <td>1. {{echo|foo </table>}}</td>
5404 <td>2. {{echo|baz </table>}}</td>
5417 <table data-parsoid="{"src":"<table>\n <tr>\n <td>\n <table>\n <tr>\n <td>1. {{echo|foo </table>}}</td>\n <td> bar </td>\n <td>2. {{echo|baz </table>}}</td>\n </tr>\n <tr>\n <td>abc</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>xyz</td>\n </tr>\n</table>"}" about="#mwt1" typeof="mw:Object/Template">
5418 <tbody><tr data-parsoid="{"stx":"html"}">
5419 <td data-parsoid="{"stx":"html"}">
5420 <table data-parsoid="{"stx":"html"}">
5421 <tbody><tr data-parsoid="{"stx":"html"}">
5422 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5423 <td data-parsoid="{"stx":"html"}"> bar </td>
5424 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5425 </span><span about="#mwt1">
5427 abc</span><span about="#mwt1">
5428 </span><span about="#mwt1">
5429 </span><span about="#mwt1">
5430 </span><span about="#mwt1">
5431 </span><span about="#mwt1">
5433 xyz</span><span about="#mwt1">
5434 </span><span about="#mwt1">
5439 Parser Functions: 1. Simple example
5448 Parser Functions: 2. Nested use (only outermost should be marked up)
5457 ### Pre-save transform tests
5460 pre-save transform: subst:
5466 This is a test template
5470 pre-save transform: normal template
5480 pre-save transform: nonexistent template
5484 {{thistemplatedoesnotexist}}
5486 {{thistemplatedoesnotexist}}
5491 pre-save transform: subst magic variables
5500 # This is bug 89, which I fixed. -- wtm
5502 pre-save transform: subst: templates with parameters
5506 {{subst:paramtest|param="something else"}}
5508 This is a test template with parameter "something else"
5514 <nowiki>'''not wiki'''</nowiki>
5518 pre-save transform: nowiki in subst (bug 1188)
5522 {{subst:nowikitest}}
5524 <nowiki>'''not wiki'''</nowiki>
5529 Template:commenttest
5531 This template has <!-- a comment --> in it.
5535 pre-save transform: comment in subst (bug 1936)
5539 {{subst:commenttest}}
5541 This template has <!-- a comment --> in it.
5545 pre-save transform: unclosed tag
5549 <nowiki>'''not wiki'''
5551 <nowiki>'''not wiki'''
5555 pre-save transform: mixed tag case
5559 <NOwiki>'''not wiki'''</noWIKI>
5561 <NOwiki>'''not wiki'''</noWIKI>
5565 pre-save transform: unclosed comment in <nowiki>
5569 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5571 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5577 <span onmouseover="alert('crap')">Oh no</span>
5581 (confirming safety of fix for subst bug 1936)
5583 {{Template:dangerous}}
5585 <p><span>Oh no</span>
5590 pre-save transform: comment containing gallery (bug 5024)
5594 <!-- <gallery>data</gallery> -->
5596 <!-- <gallery>data</gallery> -->
5600 pre-save transform: comment containing extension
5604 <!-- <tag>data</tag> -->
5606 <!-- <tag>data</tag> -->
5610 pre-save transform: comment containing nowiki
5614 <!-- <nowiki>data</nowiki> -->
5616 <!-- <nowiki>data</nowiki> -->
5620 pre-save transform: <noinclude> in subst (bug 3298)
5630 pre-save transform: <onlyinclude> in subst (bug 3298)
5642 {{<includeonly>subst:</includeonly>Includes}}
5646 Template:SafeSubstTest
5648 {{<includeonly>safesubst:</includeonly>Includes}}
5652 bug 22297: safesubst: works during PST
5656 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5662 bug 22297: safesubst: works during normal parse
5671 subst: does not work during normal parse
5675 <p>{{subst:Includes}}
5680 pre-save transform: context links ("pipe trick")
5684 [[Article (context)|]]
5687 [[Bar:Article (context)|]]
5688 [[:Bar:Article (context)|]]
5690 [[|Article (context)]]
5694 [[Article (context)|Article]]
5695 [[Bar:Article|Article]]
5696 [[:Bar:Article|Article]]
5697 [[Bar:Article (context)|Article]]
5698 [[:Bar:Article (context)|Article]]
5700 [[Article (context)]]
5701 [[Bar:X (Y) Z|X (Y) Z]]
5702 [[:Bar:X (Y) Z|X (Y) Z]]
5706 pre-save transform: context links ("pipe trick") with interwiki prefix
5710 [[interwiki:Article|]]
5711 [[:interwiki:Article|]]
5712 [[interwiki:Bar:Article|]]
5713 [[:interwiki:Bar:Article|]]
5715 [[interwiki:Article|Article]]
5716 [[:interwiki:Article|Article]]
5717 [[interwiki:Bar:Article|Bar:Article]]
5718 [[:interwiki:Bar:Article|Bar:Article]]
5722 pre-save transform: context links ("pipe trick") with parens in title
5724 pst title=[[Somearticle (context)]]
5728 [[Article (context)|Article]]
5732 pre-save transform: context links ("pipe trick") with comma in title
5734 pst title=[[Someplace, Somewhere]]
5737 [[Otherplace, Elsewhere|]]
5738 [[Otherplace, Elsewhere, Anywhere|]]
5740 [[Otherplace, Somewhere|Otherplace]]
5741 [[Otherplace, Elsewhere|Otherplace]]
5742 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5746 pre-save transform: context links ("pipe trick") with parens and comma
5748 pst title=[[Someplace (IGNORED), Somewhere]]
5751 [[Otherplace (place), Elsewhere|]]
5753 [[Otherplace, Somewhere|Otherplace]]
5754 [[Otherplace (place), Elsewhere|Otherplace]]
5758 pre-save transform: context links ("pipe trick") with comma and parens
5760 pst title=[[Who, me? (context)]]
5763 [[Me, Myself, and I (1937 song)|]]
5765 [[Yes, you. (context)|Yes, you.]]
5766 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5770 pre-save transform: context links ("pipe trick") with namespace
5772 pst title=[[Ns:Somearticle]]
5776 [[Ns:Article|Article]]
5780 pre-save transform: context links ("pipe trick") with namespace and parens
5782 pst title=[[Ns:Somearticle (context)]]
5786 [[Ns:Article (context)|Article]]
5790 pre-save transform: context links ("pipe trick") with namespace and comma
5792 pst title=[[Ns:Somearticle, Context, Whatever]]
5796 [[Ns:Article, Context, Whatever|Article]]
5800 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5802 pst title=[[Ns:Somearticle, Context (context)]]
5806 [[Ns:Article (context)|Article]]
5810 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5812 pst title=[[Ns:Somearticle (IGNORED), Context]]
5816 [[Ns:Article, Context|Article]]
5820 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5824 [[Article(context)|]]
5825 [[Bar:Article(context)|]]
5826 [[:Bar:Article(context)|]]
5827 [[|Article(context)]]
5831 [[Article(context)|Article]]
5832 [[Bar:Article(context)|Article]]
5833 [[:Bar:Article(context)|Article]]
5834 [[Article(context)]]
5836 [[:Bar:X(Y)Z|X(Y)Z]]
5840 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5844 [[Article (context)|]]
5845 [[Bar:Article (context)|]]
5846 [[:Bar:Article (context)|]]
5847 [[|Article (context)]]
5851 [[Article (context)|Article]]
5852 [[Bar:Article (context)|Article]]
5853 [[:Bar:Article (context)|Article]]
5854 [[Article (context)]]
5855 [[Bar:X (Y) Z|X (Y) Z]]
5856 [[:Bar:X (Y) Z|X (Y) Z]]
5860 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5864 [[Article(context)|]]
5865 [[Bar:Article(context)|]]
5866 [[:Bar:Article(context)|]]
5867 [[|Article(context)]]
5871 [[Article(context)|Article]]
5872 [[Bar:Article(context)|Article]]
5873 [[:Bar:Article(context)|Article]]
5874 [[Article(context)]]
5876 [[:Bar:X(Y)Z|X(Y)Z]]
5880 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5884 [[Article (context), context|]]
5885 [[Article (context),context|]]
5886 [[Bar:Article (context), context|]]
5887 [[Bar:Article (context),context|]]
5888 [[:Bar:Article (context), context|]]
5889 [[:Bar:Article (context),context|]]
5891 [[Article (context), context|Article]]
5892 [[Article (context),context|Article]]
5893 [[Bar:Article (context), context|Article]]
5894 [[Bar:Article (context),context|Article]]
5895 [[:Bar:Article (context), context|Article]]
5896 [[:Bar:Article (context),context|Article]]
5900 pre-save transform: trim trailing empty lines
5904 Empty lines are trimmed
5910 Empty lines are trimmed
5914 pre-save transform: Signature expansion
5919 * <noinclude>~~~</noinclude>
5920 * <includeonly>~~~</includeonly>
5921 * <onlyinclude>~~~</onlyinclude>
5923 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5924 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5925 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5926 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5931 pre-save transform: Signature expansion in nowiki tags (bug 93)
5937 <nowiki>~~~~</nowiki>
5939 <includeonly><nowiki>~~~~</nowiki></includeonly>
5941 <noinclude><nowiki>~~~~</nowiki></noinclude>
5943 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5945 {{subst:Foo}} shall be converted to FOO
5947 As well as inside noinclude/onlyinclude
5948 <noinclude>{{subst:Foo}}</noinclude>
5949 <onlyinclude>{{subst:Foo}}</onlyinclude>
5951 But not inside includeonly
5952 <includeonly>{{subst:Foo}}</includeonly>
5956 <nowiki>~~~~</nowiki>
5958 <includeonly><nowiki>~~~~</nowiki></includeonly>
5960 <noinclude><nowiki>~~~~</nowiki></noinclude>
5962 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5964 FOO shall be converted to FOO
5966 As well as inside noinclude/onlyinclude
5967 <noinclude>FOO</noinclude>
5968 <onlyinclude>FOO</onlyinclude>
5970 But not inside includeonly
5971 <includeonly>{{subst:Foo}}</includeonly>
5975 ### Message transform tests
5978 message transform: magic variables
5988 message transform: should not transform wiki markup
5998 message transform: <noinclude> in transcluded template (bug 4926)
6008 message transform: <onlyinclude> in transcluded template (bug 4926)
6018 {{#special:}} page name, known
6022 {{#special:Recentchanges}}
6024 Special:RecentChanges
6028 {{#special:}} page name with subpage, known
6032 {{#special:Recentchanges/param}}
6034 Special:RecentChanges/param
6038 {{#special:}} page name, unknown
6042 {{#special:foobarnonexistent}}
6044 No such special page
6048 {{#speciale:}} page name, known
6052 {{#speciale:Recentchanges}}
6054 Special:RecentChanges
6058 {{#speciale:}} page name with subpage, known
6062 {{#speciale:Recentchanges/param}}
6064 Special:RecentChanges/param
6068 {{#speciale:}} page name, unknown
6072 {{#speciale:foobarnonexistent}}
6074 No_such_special_page
6083 [[Image:foobar.jpg]]
6085 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6092 [[Image:foobar.jpg|right]]
6094 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
6099 Simple image (using File: namespace, now canonical)
6103 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6110 [[Image:foobar.jpg|right|Caption text]]
6112 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
6117 Image with empty attribute
6119 [[Image:foobar.jpg|right||Caption text]]
6121 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
6126 Image with link tails
6128 123[[Image:foobar.jpg]]456
6129 123[[Image:foobar.jpg|right]]456
6130 123[[Image:foobar.jpg|thumb]]456
6132 <p>123<a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>456
6134 123<div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>456
6135 123<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
6140 Image with multiple captions -- only last one is accepted
6142 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6144 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption3 - accepted"><img alt="Caption3 - accepted" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
6149 Image with width attribute at different positions
6151 [[Image:foobar.jpg|200px|right|Caption]]
6152 [[Image:foobar.jpg|right|200px|Caption]]
6153 [[Image:foobar.jpg|right|Caption|200px]]
6155 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
6156 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
6157 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
6162 Image with link parameter, wiki target
6164 [[Image:foobar.jpg|link=Target page]]
6166 <p><a href="/wiki/Target_page" title="Target page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6171 Image with link parameter, URL target
6173 [[Image:foobar.jpg|link=http://example.com/]]
6175 <p><a href="http://example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6180 Image with link parameter, wgExternalLinkTarget
6182 [[Image:foobar.jpg|link=http://example.com/]]
6184 wgExternalLinkTarget='foobar'
6186 <p><a href="http://example.com/" target="foobar" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6191 Image with link parameter, wgNoFollowLinks set to false
6193 [[Image:foobar.jpg|link=http://example.com/]]
6195 wgNoFollowLinks=false
6197 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6202 Image with link parameter, wgNoFollowDomainExceptions
6204 [[Image:foobar.jpg|link=http://example.com/]]
6206 wgNoFollowDomainExceptions='example.com'
6208 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6213 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6215 [[Image:foobar.jpg|link=http://example.com/|Title]]
6217 wgExternalLinkTarget='foobar'
6219 <p><a href="http://example.com/" title="Title" target="foobar" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6224 Image with empty link parameter
6226 [[Image:foobar.jpg|link=]]
6228 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6233 Image with link parameter (wiki target) and unnamed parameter
6235 [[Image:foobar.jpg|link=Target page|Title]]
6237 <p><a href="/wiki/Target_page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6242 Image with link parameter (URL target) and unnamed parameter
6244 [[Image:foobar.jpg|link=http://example.com/|Title]]
6246 <p><a href="http://example.com/" title="Title" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6251 Thumbnail image with link parameter
6253 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6255 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
6260 Image with frame and link
6262 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6264 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
6269 Image with frame and link and explicit alt
6271 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6273 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
6278 Image with wiki markup in implicit alt
6280 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6282 <p><a href="/wiki/File:Foobar.jpg" class="image" title="testing bold in alt"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6287 Image with wiki markup in explicit alt
6289 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6291 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6296 Link to image page- image page normally doesn't exists, hence edit link
6297 Add test with existing image page
6298 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6302 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6307 bug 18784 Link to non-existent image page with caption should use caption as link text
6309 [[:Image:test|caption]]
6311 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6316 Frameless image caption with a free URL
6318 [[Image:foobar.jpg|http://example.com]]
6320 <p><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6325 Thumbnail image caption with a free URL
6327 [[Image:foobar.jpg|thumb|http://example.com]]
6329 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
6334 Thumbnail image caption with a free URL and explicit alt
6336 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6338 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
6343 BUG 1887: A ISBN with a thumbnail
6345 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6347 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6352 BUG 1887: A RFC with a thumbnail
6354 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6356 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6361 BUG 1887: A mailto link with a thumbnail
6363 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6365 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
6369 # Pending resolution to bug 368
6371 BUG 648: Frameless image caption with a link
6373 [[Image:foobar.jpg|text with a [[link]] in it]]
6375 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6380 BUG 648: Frameless image caption with a link (suffix)
6382 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6384 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6389 BUG 648: Frameless image caption with an interwiki link
6391 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6393 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6398 BUG 648: Frameless image caption with a piped interwiki link
6400 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6402 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6407 Escape HTML special chars in image alt text
6409 [[Image:foobar.jpg|& < > "]]
6411 <p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6416 BUG 499: Alt text should have Ӓ, not &1234;
6418 [[Image:foobar.jpg|♀]]
6420 <p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6425 Broken image caption with link
6427 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6429 <p>[[Image:Foobar.jpg|thumb|This is a broken caption. But <a href="/wiki/Main_Page" title="Main Page">this</a> is just an ordinary link.
6434 Image caption containing another image
6436 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6438 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
6443 Image caption containing a newline
6445 [[Image:Foobar.jpg|This
6448 <p><a href="/wiki/File:Foobar.jpg" class="image" title="This *is some text"><img alt="This *is some text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6454 Bug 3090: External links other than http: in image captions
6456 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6458 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
6465 [[Image:foobar.jpg|a|class=b]]
6467 <p><a href="/wiki/File:Foobar.jpg" class="image" title="a"><img alt="a" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="b" /></a>
6474 #REDIRECT [[File:Barfoo.jpg]]
6480 [[Image:Barfoo.jpg]]
6482 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6487 Missing image with uploads disabled
6491 [[Image:Foobaz.jpg]]
6493 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6502 Subpage test/subpage
6510 subpage title=[[Subpage test]]
6514 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6519 Subpage noslash link
6521 subpage title=[[Subpage test]]
6525 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6534 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6539 BUG 561: {{/Subpage}}
6541 subpage title=[[Page]]
6545 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6553 Category:MediaWiki User's Guide
6561 [[:Category:MediaWiki User's Guide]]
6563 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6572 [[Category:MediaWiki User's Guide]]
6574 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6578 PAGESINCATEGORY invalid title fatal (r33546 fix)
6580 {{PAGESINCATEGORY:<bogus>}}
6587 Category with different sort key
6591 [[Category:MediaWiki User's Guide|Foo]]
6593 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6597 Category with identical sort key
6601 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6603 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6607 Category with empty sort key
6612 [[Category:MediaWiki User's Guide|]]
6614 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6618 Category with empty sort key and parentheses
6623 [[Category:Foo (bar)|]]
6625 [[Category:Foo (bar)|Foo]]
6629 Category with link tail
6634 123[[Category:Foo]]456
6636 123[[Category:Foo]]456
6640 Category with template
6645 [[Category:{{echo|Foo}}]]
6647 [[Category:{{echo|Foo}}]]
6651 Category with template in sort key
6656 [[Category:Foo|{{echo|Bar}}]]
6658 [[Category:Foo|{{echo|Bar}}]]
6662 Category with template in sort key and title
6667 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6669 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6673 Category / paragraph interactions
6675 Foo [[Category:Baz]] Bar
6677 Foo [[Category:Baz]]
6685 [[Category:Baz]] Bar
6698 {{echo|[[Category:Baz]]}}
6713 ### Inter-language links
6716 Inter-language links
6722 [[zh:食品]]
6724 es:Alimento fr:Nourriture zh:食品
6728 Duplicate interlanguage links (bug 24502)
6744 Basic section headings
6751 ===Smaller headline===
6754 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
6757 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
6760 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3>
6766 Section headings with TOC
6769 === Subheadline 1 ===
6770 ===== Skipping a level =====
6771 ====== Skipping a level ======
6775 ===Another headline===
6777 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6779 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6781 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6783 <li class="toclevel-3 tocsection-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
6785 <li class="toclevel-4 tocsection-4"><a href="#Skipping_a_level_2"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Skipping a level</span></a></li>
6792 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6794 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6799 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
6800 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span></h3>
6801 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level"> Skipping a level </span></h5>
6802 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2"> Skipping a level </span></h6>
6803 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2"> Headline 2 </span></h2>
6806 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3>
6810 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6812 Handling of sections up to level 6 and beyond
6815 == Level 2 Heading==
6816 === Level 3 Heading===
6817 ==== Level 4 Heading====
6818 ===== Level 5 Heading=====
6819 ====== Level 6 Heading======
6820 ======= Level 7 Heading=======
6821 ======== Level 8 Heading========
6822 ========= Level 9 Heading=========
6823 ========== Level 10 Heading==========
6825 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6827 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6829 <li class="toclevel-2 tocsection-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
6831 <li class="toclevel-3 tocsection-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
6833 <li class="toclevel-4 tocsection-4"><a href="#Level_4_Heading"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Level 4 Heading</span></a>
6835 <li class="toclevel-5 tocsection-5"><a href="#Level_5_Heading"><span class="tocnumber">1.1.1.1.1</span> <span class="toctext">Level 5 Heading</span></a>
6837 <li class="toclevel-6 tocsection-6"><a href="#Level_6_Heading"><span class="tocnumber">1.1.1.1.1.1</span> <span class="toctext">Level 6 Heading</span></a></li>
6838 <li class="toclevel-6 tocsection-7"><a href="#.3D_Level_7_Heading.3D"><span class="tocnumber">1.1.1.1.1.2</span> <span class="toctext">= Level 7 Heading=</span></a></li>
6839 <li class="toclevel-6 tocsection-8"><a href="#.3D.3D_Level_8_Heading.3D.3D"><span class="tocnumber">1.1.1.1.1.3</span> <span class="toctext">== Level 8 Heading==</span></a></li>
6840 <li class="toclevel-6 tocsection-9"><a href="#.3D.3D.3D_Level_9_Heading.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.4</span> <span class="toctext">=== Level 9 Heading===</span></a></li>
6841 <li class="toclevel-6 tocsection-10"><a href="#.3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.5</span> <span class="toctext">==== Level 10 Heading====</span></a></li>
6854 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span></h1>
6855 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span></h2>
6856 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span></h3>
6857 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading"> Level 4 Heading</span></h4>
6858 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading"> Level 5 Heading</span></h5>
6859 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading"> Level 6 Heading</span></h6>
6860 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6>
6861 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6>
6862 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6>
6863 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6>
6868 TOC regression (bug 9764)
6872 ==== title 1.1.1 ====
6877 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6879 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6881 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
6883 <li class="toclevel-3 tocsection-3"><a href="#title_1.1.1"><span class="tocnumber">1.1.1</span> <span class="toctext">title 1.1.1</span></a></li>
6886 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
6889 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6891 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
6896 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
6897 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
6898 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
6899 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
6900 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
6901 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
6906 TOC with wgMaxTocLevel=3 (bug 6204)
6912 ==== title 1.1.1 ====
6917 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6919 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6921 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
6922 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
6925 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6927 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
6932 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
6933 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
6934 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
6935 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
6936 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
6937 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
6942 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6948 ====Section 1.1.1====
6949 ====Section 1.1.1.1====
6952 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6954 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6956 <li class="toclevel-2 tocsection-2"><a href="#Section_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Section 1.1</span></a></li>
6959 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6962 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6963 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3>
6964 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4>
6965 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span></h4>
6966 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6972 Resolving duplicate section names
6977 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
6978 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2"> Foo bar </span></h2>
6983 Resolving duplicate section names with differing case (bug 10721)
6988 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
6989 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span></h2>
7001 Template with sections, __NOTOC__
7008 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2>
7009 <h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
7010 <h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7011 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2>
7016 __NOEDITSECTION__ keyword
7022 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7023 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7028 Link inside a section heading
7030 ==Section with a [[Main Page|link]] in it==
7032 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
7037 TOC regression (bug 12077)
7044 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7046 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7048 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
7051 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7054 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
7055 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
7056 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
7061 BUG 1219 URL next to image (good)
7063 http://example.com [[Image:foobar.jpg]]
7065 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7070 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7073 The line above must have a trailing space!
7076 But just in case it doesn't...
7078 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1>
7079 <p>The line above must have a trailing space!
7081 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1>
7082 <p>But just in case it doesn't...
7087 Header with special characters (bug 25462)
7089 The tooltips shall not show entities to the user (ie. be double escaped)
7106 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7108 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7110 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7111 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7112 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7113 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7114 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7117 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text"> text > text </span></h2>
7120 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span> <span class="mw-headline" id="text_.3C_text"> text < text </span></h2>
7123 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span> <span class="mw-headline" id="text_.26_text"> text & text </span></h2>
7126 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span> <span class="mw-headline" id="text_.27_text"> text ' text </span></h2>
7129 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span> <span class="mw-headline" id="text_.22_text"> text " text </span></h2>
7135 Headers with excess '=' characters
7136 (Are similar tests necessary beyond the 1st level?)
7140 =''italic'' heading==
7141 ==''italic'' heading=
7143 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7145 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7146 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7147 <li class="toclevel-1 tocsection-3"><a href="#italic_heading.3D"><span class="tocnumber">3</span> <span class="toctext"><i>italic</i> heading=</span></a></li>
7148 <li class="toclevel-1 tocsection-4"><a href="#.3Ditalic_heading"><span class="tocnumber">4</span> <span class="toctext">=<i>italic</i> heading</span></a></li>
7151 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a>]</span> <span class="mw-headline" id="foo.3D">foo=</span></h1>
7152 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a>]</span> <span class="mw-headline" id=".3Dfoo">=foo</span></h1>
7153 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a>]</span> <span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span></h1>
7154 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a>]</span> <span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span></h1>
7159 BUG 1219 URL next to image (broken)
7161 http://example.com[[Image:foobar.jpg]]
7163 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7168 Bug 1186 news: in the middle of text
7170 http://en.wikinews.org/wiki/Wikinews:Workplace
7172 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7178 Namespaced link must have a title
7187 Namespaced link must have a title (bad fragment version)
7189 [[Project:#fragment]]
7191 <p>[[Project:#fragment]]
7197 div with no attributes
7199 <div>HTML rocks</div>
7201 <div>HTML rocks</div>
7206 div with double-quoted attribute
7208 <div id="rock">HTML rocks</div>
7210 <div id="rock">HTML rocks</div>
7215 div with single-quoted attribute
7217 <div id='rock'>HTML rocks</div>
7219 <div id="rock">HTML rocks</div>
7224 div with unquoted attribute
7226 <div id=rock>HTML rocks</div>
7228 <div id="rock">HTML rocks</div>
7233 div with illegal double attributes
7235 <div id="a" id="b">HTML rocks</div>
7237 <div id="b">HTML rocks</div>
7241 # FIXME: produce empty string instead of "class" in the PHP parser, following
7244 div with empty attribute value, space before equals
7248 <div class =>HTML rocks</div>
7250 <div class="">HTML rocks</div>
7254 # This it very inconsistent in the PHP parser: it returns
7255 # class="class" if there is a space between the name and the equal sign (see
7256 # 'div with empty attribute value, space before equals'), but strips the
7257 # attribute completely if the space is missing. We hope that not much content
7258 # depends on this, so are implementing the behavior below in Parsoid for
7259 # consistencies' sake. Disabled for the PHP parser.
7260 # FIXME: fix this behavior in the PHP parser?
7262 div with empty attribute value, no space before equals
7266 <div class=>HTML rocks</div>
7268 <div class="">HTML rocks</div>
7273 HTML multiple attributes correction
7275 <p class="error" class="awesome">Awesome!</p>
7277 <p class="awesome">Awesome!</p>
7282 Table multiple attributes correction
7285 !+ class="error" class="awesome"| status
7290 <th class="awesome"> status
7298 <DIV ID="x">HTML ROCKS</DIV>
7300 <div id="x">HTML ROCKS</div>
7305 Non-ASCII pseudo-tags are rendered as text
7314 Pseudo-tag with URL 'name' renders as url link
7316 <http://example.com/>
7318 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7323 text with amp in the middle of nowhere
7327 <p>Remember AT&T?
7332 text with character entity: eacute
7334 I always thought é was a cute letter.
7336 <p>I always thought é was a cute letter.
7341 text with undefined character entity: xacute
7343 I always thought &xacute; was a cute letter.
7345 <p>I always thought &xacute; was a cute letter.
7357 [[Media:Foobar.jpg]]
7359 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7364 Media link with text
7366 [[Media:Foobar.jpg|A neat file to look at]]
7368 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7372 # FIXME: this is still bad HTML tag nesting
7374 Media link with nasty text
7375 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7377 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7379 <a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Safe Link<div style="display:none">" onmouseover="alert(document.cookie)" onfoo="</div></a>
7384 Media link to nonexistent file (bug 1702)
7386 [[Media:No such.jpg]]
7388 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7393 Image link to nonexistent file (bug 1850 - good)
7395 [[Image:No such.jpg]]
7397 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7402 :Image link to nonexistent file (bug 1850 - bad)
7404 [[:Image:No such.jpg]]
7406 <p><a href="/index.php?title=File:No_such.jpg&action=edit&redlink=1" class="new" title="File:No such.jpg (page does not exist)">Image:No such.jpg</a>
7413 Character reference normalization in link text (bug 1938)
7415 [[Main Page|this&that]]
7417 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7424 Test for unicode normalization
7426 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7430 (bug 19451) Links should refer to the normalized form.
7438 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7439 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7440 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7441 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7442 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7447 Empty attribute crash test (bug 2067)
7449 <font color="">foo</font>
7451 <p><font color="">foo</font>
7456 Empty attribute crash test single-quotes (bug 2067)
7458 <font color=''>foo</font>
7460 <p><font color="">foo</font>
7465 Attribute test: equals, then nothing
7467 <font color=>foo</font>
7474 Attribute test: unquoted value
7476 <font color=x>foo</font>
7478 <p><font color="x">foo</font>
7483 Attribute test: unquoted but illegal value (hash)
7485 <font color=#x>foo</font>
7487 <p><font color="#x">foo</font>
7492 Attribute test: no value
7494 <font color>foo</font>
7496 <p><font color="color">foo</font>
7501 Bug 2095: link with three closing brackets
7505 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7510 Bug 2095: link with pipe and three closing brackets
7514 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7519 Bug 2095: link with pipe and three closing brackets, version 2
7521 [[Main Page|[http://example.com/]]]
7523 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7533 Template:Dangerous attribute
7535 " onmouseover="alert(document.cookie)
7539 Template:Dangerous style attribute
7541 border-size: expression(alert(document.cookie))
7547 <div style="float: right; {{{1}}}">Magic div</div>
7551 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7553 <div title="{{test}}"></div>
7555 <div title="This is a test template"></div>
7560 Bug 2304: HTML attribute safety (dangerous template; 2309)
7562 <div title="{{dangerous attribute}}"></div>
7564 <div title=""></div>
7569 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7571 <div style="{{dangerous style attribute}}"></div>
7573 <div style="/* insecure input */"></div>
7578 Bug 2304: HTML attribute safety (safe parameter; 2309)
7580 {{div style|width: 200px}}
7582 <div style="float: right; width: 200px">Magic div</div>
7587 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7589 {{div style|width: expression(alert(document.cookie))}}
7591 <div style="/* insecure input */">Magic div</div>
7596 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7598 {{div style|"><script>alert(document.cookie)</script>}}
7600 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7605 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7607 {{div style|" ><script>alert(document.cookie)</script>}}
7609 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7614 Bug 2304: HTML attribute safety (link)
7616 <div title="[[Main Page]]"></div>
7618 <div title="[[Main Page]]"></div>
7623 Bug 2304: HTML attribute safety (italics)
7625 <div title="''foobar''"></div>
7627 <div title="''foobar''"></div>
7632 Bug 2304: HTML attribute safety (bold)
7634 <div title="'''foobar'''"></div>
7636 <div title="'''foobar'''"></div>
7642 Bug 2304: HTML attribute safety (ISBN)
7644 <div title="ISBN 1234567890"></div>
7646 <div title="ISBN 1234567890"></div>
7651 Bug 2304: HTML attribute safety (RFC)
7653 <div title="RFC 1234"></div>
7655 <div title="RFC 1234"></div>
7660 Bug 2304: HTML attribute safety (PMID)
7662 <div title="PMID 1234567890"></div>
7664 <div title="PMID 1234567890"></div>
7669 Bug 2304: HTML attribute safety (web link)
7671 <div title="http://example.com/"></div>
7673 <div title="http://example.com/"></div>
7678 Bug 2304: HTML attribute safety (named web link)
7680 <div title="[http://example.com/ link]"></div>
7682 <div title="[http://example.com/ link]"></div>
7687 Bug 3244: HTML attribute safety (extension; safe)
7689 <div style="<nowiki>background:blue</nowiki>"></div>
7691 <div style="background:blue"></div>
7696 Bug 3244: HTML attribute safety (extension; unsafe)
7698 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7700 <div style="/* insecure input */"></div>
7704 # More MSIE fun discovered by Tom Gilder
7707 MSIE CSS safety test: spurious slash
7709 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7711 <div style="/* insecure input */">evil</div>
7716 MSIE CSS safety test: hex code
7718 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7720 <div style="/* insecure input */">evil</div>
7725 MSIE CSS safety test: comment in url
7727 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7729 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7734 MSIE CSS safety test: comment in expression
7736 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7738 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7744 Table attribute legitimate extension
7747 !+ style="<nowiki>color:blue</nowiki>"| status
7752 <th style="color:blue"> status
7758 Table attribute safety
7761 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7766 <th style="/* insecure input */"> status
7772 CSS line continuation 1
7774 <div style="background-image: u\ rl(test.jpg);"></div>
7776 <div style="/* insecure input */"></div>
7781 CSS line continuation 2
7783 <div style="background-image: u\ rl(test.jpg); "></div>
7785 <div style="/* insecure input */"></div>
7796 Expansion of multi-line templates in attribute values (bug 6255)
7798 <div style="background: {{identity|#00FF00}}">-</div>
7800 <div style="background: #00FF00">-</div>
7806 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7808 <div style="background:
7811 <div style="background: #00FF00">-</div>
7816 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7818 <div style="background: #00FF00">-</div>
7820 <div style="background: #00FF00">-</div>
7825 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7828 Parser hook: empty input
7841 Parser hook: empty input using terminated empty elements
7854 Parser hook: empty input using terminated empty elements (space before)
7867 Parser hook: basic input
7881 Parser hook: case insensitive
7895 Parser hook: case insensitive, redux
7908 Parser hook: nested tags
7912 <tag><tag></tag></tag>
7923 Parser hook: basic arguments
7925 <tag width=200 height = "100" depth = '50' square></tag>
7933 'square' => 'square',
7940 Parser hook: argument containing a forward slash (bug 5344)
7942 <tag filename='/tmp/bla'></tag>
7947 'filename' => '/tmp/bla',
7954 Parser hook: empty input using terminated empty elements (bug 2374)
7967 # </tag> should be output literally since there is no matching tag that begins it
7969 Parser hook: basic arguments using terminated empty elements (bug 2374)
7971 <tag width=200 height = "100" depth = '50' square/>
7981 'square' => 'square',
7990 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7994 Parser hook: static parser hook not inside a comment
7996 <statictag>hello, world</statictag>
7997 <statictag action=flush/>
8005 Parser hook: static parser hook inside a comment
8007 <!-- <statictag>hello, world</statictag> -->
8008 <statictag action=flush/>
8014 # Nested template calls; this case was broken by Parser.php rev 1.506,
8018 Template:One-parameter
8020 (My parameter is: {{{1}}})
8024 Template:Map-one-parameter
8030 Nested template calls
8032 {{Map-one-parameter|One-parameter|param}}
8034 <p>(My parameter is: param)
8043 Sanitizer: Closing of open tags
8045 <s></s><table></table>
8047 <s></s><table></table>
8052 Sanitizer: Closing of open but not closed tags
8061 Sanitizer: Closing of closed but not open tags
8070 Sanitizer: Closing of closed but not open table tags
8072 Table not started</td></tr></table>
8074 <p>Table not started</td></tr></table>
8079 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8081 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8083 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8088 Sanitizer: Validating the contents of the id attribute (bug 4515)
8094 Something, but definitely not <br id="9" />...
8098 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8102 <br id="foo" /><br id="foo" />
8104 Something need to be done. foo-2 ?
8108 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8111 <meta itemprop="hello" content="world">
8112 <meta http-equiv="refresh" content="5">
8113 <meta itemprop="hello" http-equiv="refresh" content="5">
8114 <link itemprop="hello" href="{{SERVER}}">
8115 <link rel="stylesheet" href="{{SERVER}}">
8116 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8119 <div itemscope="itemscope">
8120 <p> <meta itemprop="hello" content="world" />
8121 <meta http-equiv="refresh" content="5">
8122 <meta itemprop="hello" content="5" />
8124 <link itemprop="hello" href="http://Britney-Spears" />
8125 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8126 <link itemprop="hello" href="http://Britney-Spears" />
8132 Language converter: output gets cut off unexpectedly (bug 5757)
8136 this bit is safe: }-
8138 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8140 then we get cut off here: }-
8142 all additional text is vanished
8144 <p>this bit is safe: }-
8145 </p><p>but if we add a conversion instance: xxx
8146 </p><p>then we get cut off here: }-
8147 </p><p>all additional text is vanished
8152 Self closed html pairs (bug 5487)
8155 <center><font id="bug" />Centered text</center>
8156 <div><font id="bug2" />In div text</div>
8158 <center><font id="bug" />Centered text</center>
8159 <div><font id="bug2" />In div text</div>
8168 Punctuation: nbsp before exclamation
8172 <p>C'est grave !
8177 Punctuation: CSS !important (bug 11874)
8179 <div style="width:50% !important">important</div>
8181 <div style="width:50% !important">important</div>
8186 Punctuation: CSS ! important (bug 11874; with space after)
8188 <div style="width:50% ! important">important</div>
8190 <div style="width:50% ! important">important</div>
8196 HTML bullet list, closed tags (bug 5497)
8211 HTML bullet list, unclosed tags (bug 5497)
8228 HTML ordered list, closed tags (bug 5497)
8243 HTML ordered list, unclosed tags (bug 5497)
8260 HTML nested bullet list, closed tags (bug 5497)
8285 HTML nested bullet list, open tags (bug 5497)
8310 HTML nested ordered list, closed tags (bug 5497)
8335 HTML nested ordered list, open tags (bug 5497)
8360 HTML ordered list item with parameters oddity
8362 <ol><li id="fragment">One</li></ol>
8364 <ol><li id="fragment">One</li></ol>
8369 bug 5918: autonumbering
8371 [http://first/] [http://second] [ftp://ftp]
8375 [mailto:enclosed@mail.tld With target]
8377 [mailto:enclosed@mail.tld]
8379 mailto:inline@mail.tld
8381 <p><a rel="nofollow" class="external autonumber" href="http://first/">[1]</a> <a rel="nofollow" class="external autonumber" href="http://second">[2]</a> <a rel="nofollow" class="external autonumber" href="ftp://ftp">[3]</a>
8382 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8383 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8384 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8385 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8391 # Security and HTML correctness
8392 # From Nick Jenkins' fuzz testing
8396 Fuzz testing: Parser13
8411 Fuzz testing: Parser14
8416 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2>
8417 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8419 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8426 Fuzz testing: Parser14-table
8431 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
8432 <table style="__TOC__">
8438 # Known to produce bogus xml (extra </td>)
8440 Fuzz testing: Parser16
8460 Fuzz testing: Parser21
8463 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8468 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8478 Fuzz testing: Parser22
8480 http://===r:::https://b
8484 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8492 # Known to produce bad XML for now
8494 Fuzz testing: Parser24
8501 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8502 <br style="onmouseover='alert(document.cookie);' " />
8504 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8509 <u class="|">}}}} >
8510 <br style="onmouseover='alert(document.cookie);'" />
8512 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8521 # Note: the current result listed for this is not what the original one was,
8522 # but the original bug was JavaScript injection, which is fixed in any case.
8523 # It's not clear that the original result listed was any more correct than the
8524 # current one. Original result:
8527 # <li class="||">
8528 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8530 Fuzz testing: Parser25 (bug 6055)
8536 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8538 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8543 Fuzz testing: URL adjacent extension (with space, clean)
8546 http://example.com <nowiki>junk</nowiki>
8548 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8553 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8556 http://example.com<nowiki>junk</nowiki>
8558 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8563 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8566 http://example.com<pre>junk</pre>
8568 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8573 Fuzz testing: image with bogus manual thumbnail
8575 [[Image:foobar.jpg|thumbnail= ]]
8577 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8582 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8584 <pre dir=" "></pre>
8586 <pre dir=" "></pre>
8591 Parsing optional HTML elements (Bug 6171)
8596 <td> Some tabular data</td>
8597 <td> More tabular data ...
8598 <td> And yet som tabular data</td>
8604 <td> Some tabular data</td>
8605 <td> More tabular data ...
8606 </td><td> And yet som tabular data</td>
8613 Correct handling of <td>, <tr> (Bug 6171)
8618 <td> Some tabular data</td>
8619 <td> More tabular data ...</td>
8620 <td> And yet som tabular data</td>
8626 <td> Some tabular data</td>
8627 <td> More tabular data ...</td>
8628 <td> And yet som tabular data</td>
8636 Parsing crashing regression (fr:JavaScript)
8640 <p></body></x>
8645 Inline wiki vs wiki block nesting
8651 <p><b>Bold paragraph</b>
8652 </p><p>New wiki paragraph
8657 Inline HTML vs wiki block nesting
8665 <p><b>Bold paragraph</b>
8666 </p><p>New wiki paragraph
8670 # Original result was this:
8671 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8673 # While that might be marginally more intuitive, maybe, the six-apostrophe
8674 # construct is clearly pathological and the result stated here (which is what
8675 # the parser actually does) is about as reasonable as anything.
8677 Mixing markup for italics and bold
8680 '''bold''''''bold''bolditalics'''''
8682 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8690 Article for special page transclusion test
8694 Special page transclusion
8697 {{Special:Prefixindex/Xyzzyx}}
8699 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8704 Special page transclusion twice (bug 5021)
8707 {{Special:Prefixindex/Xyzzyx}}
8708 {{Special:Prefixindex/Xyzzyx}}
8710 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8711 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8716 Transclusion of default MediaWiki message
8718 {{MediaWiki:Mainpage}}
8725 Transclusion of nonexistent MediaWiki message
8727 {{MediaWiki:Mainpagexxx}}
8729 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8734 Transclusion of MediaWiki message with underscore
8736 {{MediaWiki:history_short}}
8743 Transclusion of MediaWiki message with space
8745 {{MediaWiki:history short}}
8752 Invalid header with following text
8762 Section extraction test (section 0)
8782 Section extraction test (section 1)
8804 Section extraction test (section 2)
8825 Section extraction test (section 3)
8845 Section extraction test (section 4)
8869 Section extraction test (section 5)
8889 Section extraction test (section 6)
8910 Section extraction test (section 7)
8930 Section extraction test (section 8)
8950 Section extraction test (section 9)
8971 Section extraction test (section 10)
8991 Section extraction test (nonexistent section 11)
9010 Section extraction test with bogus heading (section 1)
9015 ==bogus== not a legal section
9019 ==bogus== not a legal section
9023 Section extraction test with bogus heading (section 2)
9028 ==bogus== not a legal section
9035 Section extraction test with comment after heading (section 1)
9047 Section extraction test with comment after heading (section 2)
9059 Section extraction test with bogus <nowiki> heading (section 1)
9064 ==bogus== <nowiki>not a legal section</nowiki>
9068 ==bogus== <nowiki>not a legal section</nowiki>
9072 Section extraction test with bogus <nowiki> heading (section 2)
9077 ==bogus== <nowiki>not a legal section</nowiki>
9084 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9085 # instead of respecting commented sections
9087 Section extraction prefixed by comment (section 1)
9098 Section extraction prefixed by comment (section 2)
9109 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9110 # instead of respecting HTML-style headings
9112 Section extraction, mixed wiki and html (section 1)
9128 Section extraction, mixed wiki and html (section 2)
9144 # Formerly testing for bug 3342
9146 Section extraction, heading surrounded by <noinclude>
9150 <noinclude>==unmarked==</noinclude>
9156 # Test behaviour of bug 19910
9158 Sectiion with all-equals
9163 The line above must have a trailing space
9166 But just in case it doesn't...
9170 But just in case it doesn't...
9174 Section replacement test (section 0)
9205 Section replacement test (section 1)
9234 Section replacement test (section 2)
9264 Section replacement test (section 3)
9295 Section replacement test (section 4)
9322 Section replacement test (section 5)
9353 Section replacement test (section 6)
9383 Section replacement test (section 7)
9414 Section replacement test (section 8)
9445 Section replacement test (section 9)
9474 Section replacement test (section 10)
9504 Section replacement test with initial whitespace (bug 13728)
9508 Preformatted initial line
9512 Preformatted initial line
9519 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9531 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9544 Section extraction, <pre> around bogus header (bug 10309)
9561 Section replacement, <pre> around bogus header (bug 10309)
9563 noxml replace=2,"xxx"
9584 Handling of 
 in URLs
9588 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9595 5 quotes, code coverage +1 line
9602 Special:Search page linking.
9606 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9621 * {{SUBJECTPAGENAME}}
9622 * {{SUBJECTPAGENAMEE}}
9629 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9631 <ul><li> Parser test
9632 </li><li> Parser test
9633 </li><li> Parser test
9634 </li><li> Parser_test
9635 </li><li> Parser test
9636 </li><li> Parser_test
9637 </li><li> Talk:Parser test
9638 </li><li> Talk:Parser_test
9639 </li><li> Parser test
9640 </li><li> Parser_test
9647 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
9651 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9661 image4 |300px| centre
9662 image5.svg| http://///////
9667 <ul class="gallery">
9668 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9669 <div style="height: 150px;">Image1.png</div>
9670 <div class="gallerytext">
9673 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9674 <div style="height: 150px;">Image2.gif</div>
9675 <div class="gallerytext">
9680 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9681 <div style="height: 150px;">Image3</div>
9682 <div class="gallerytext">
9685 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9686 <div style="height: 150px;">Image4</div>
9687 <div class="gallerytext">
9692 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9693 <div style="height: 150px;">Image5.svg</div>
9694 <div class="gallerytext">
9695 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9699 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9700 <div style="height: 150px;">* image6</div>
9701 <div class="gallerytext">
9709 Gallery (with options)
9711 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9712 File:Nonexistant.jpg|caption
9713 File:Nonexistant.jpg
9714 image:foobar.jpg|some '''caption''' [[Main Page]]
9716 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9719 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9720 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9721 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9722 <div style="height: 70px;">Nonexistant.jpg</div>
9723 <div class="gallerytext">
9728 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9729 <div style="height: 70px;">Nonexistant.jpg</div>
9730 <div class="gallerytext">
9733 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9734 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
9735 <div class="gallerytext">
9736 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9740 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9741 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
9742 <div class="gallerytext">
9745 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9746 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
9747 <div class="gallerytext">
9757 Gallery with wikitext inside caption
9760 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9761 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9764 <ul class="gallery">
9765 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9766 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9767 <div class="gallerytext">
9768 <p><a href="/wiki/File:Foobar.jpg" class="image" title="desc"><img alt="inneralt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg" width="20" height="2" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/30px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/40px-Foobar.jpg 2x" /></a>
9772 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9773 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9774 <div class="gallerytext">
9775 <p>This is a test template
9784 gallery (with showfilename option)
9786 <gallery showfilename>
9787 File:Nonexistant.jpg|caption
9788 File:Nonexistant.jpg
9789 image:foobar.jpg|some '''caption''' [[Main Page]]
9793 <ul class="gallery">
9794 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9795 <div style="height: 150px;">Nonexistant.jpg</div>
9796 <div class="gallerytext">
9797 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9802 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9803 <div style="height: 150px;">Nonexistant.jpg</div>
9804 <div class="gallerytext">
9805 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9809 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9810 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9811 <div class="gallerytext">
9812 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9813 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9817 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9818 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9819 <div class="gallerytext">
9820 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9829 Gallery (with namespace-less filenames)
9832 File:Nonexistant.jpg
9838 <ul class="gallery">
9839 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9840 <div style="height: 150px;">Nonexistant.jpg</div>
9841 <div class="gallerytext">
9844 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9845 <div style="height: 150px;">Nonexistant.jpg</div>
9846 <div class="gallerytext">
9849 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9850 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9851 <div class="gallerytext">
9854 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9855 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9856 <div class="gallerytext">
9864 HTML Hex character encoding (spells the word "JavaScript")
9866 JavaScript
9868 <p>JavaScript
9873 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9877 <p>&#xsee;&#XSEE;
9882 HTML Hex character encoding mixed case
9891 __FORCETOC__ override
9903 ISBN 978-0-1234-56 789
9905 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9910 ISBN followed by 5 spaces
9921 ISBN ISBN 1234567890
9923 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9928 Bug 22905: <abbr> followed by ISBN followed by </a>
9930 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9932 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a rel="nofollow" class="external text" href="http://www.example.com">example.com</a>
9941 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9946 Double RFC with a wiki link
9950 <p>RFC <a href="/index.php?title=RFC_1234&action=edit&redlink=1" class="new" title="RFC 1234 (page does not exist)">RFC 1234</a>
9959 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9964 Centre-aligned image
9966 [[Image:foobar.jpg|centre]]
9968 <div class="center"><div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div></div>
9975 [[Image:foobar.jpg|none]]
9977 <div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
9982 Width + Height sized image (using px) (height is ignored)
9984 [[Image:foobar.jpg|640x480px]]
9986 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
9991 Width-sized image (using px, no following whitespace)
9993 [[Image:foobar.jpg|640px]]
9995 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
10000 Width-sized image (using px, with following whitespace - test regression from r39467)
10002 [[Image:foobar.jpg|640px ]]
10004 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
10009 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10011 [[Image:foobar.jpg| 640px]]
10013 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
10018 Another italics / bold test
10026 # Note the results may be incorrect, as parserTest output included this:
10027 # XML error: Mismatched tag at byte 6120:
10028 # ...<dd> </dt></dl> </dd...
10036 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10047 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10049 Images with the "|" character in the comment
10051 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10053 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
10058 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10060 <html><script>alert(1);</script></html>
10062 <p><html><script>alert(1);</script></html>
10067 HTML with raw HTML ($wgRawHtml==true)
10071 <html><script>alert(1);</script></html>
10073 <p><script>alert(1);</script>
10078 Parents of subpages, one level up
10080 subpage title=[[Subpage test/L1/L2/L3]]
10084 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">L2</a>
10090 Parents of subpages, one level up, not named
10092 subpage title=[[Subpage test/L1/L2/L3]]
10096 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">Subpage test/L1/L2</a>
10103 Parents of subpages, two levels up
10105 subpage title=[[Subpage test/L1/L2/L3]]
10111 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1</a>2
10112 </p><p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1l</a>
10117 Parents of subpages, two levels up, without trailing slash or name.
10119 subpage title=[[Subpage test/L1/L2/L3]]
10128 Parents of subpages, two levels up, with lots of extra trailing slashes.
10130 subpage title=[[Subpage test/L1/L2/L3]]
10134 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10139 Definition list code coverage
10145 <dl><dt> title  </dt><dd> def
10146 </dd><dt> title </dt><dd> def
10147 </dd><dt>title</dt><dd> def
10153 Don't fall for the self-closing div
10155 <div>hello world</div/>
10157 <div>hello world</div>
10166 <p>[[:Template:Msg]]
10175 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10179 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10181 Always escape literal '>' in output, not just after '<'
10195 <p>This is a test template
10196 This is a test template
10208 Inclusion of !userCanEdit() content
10212 <h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
10218 Out-of-order TOC heading levels
10227 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10229 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10231 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10232 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10235 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10237 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10238 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10243 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
10244 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
10245 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
10246 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
10247 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
10248 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
10254 ISBN with a dummy number
10264 ISBN with space-delimited number
10268 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10274 ISBN with multiple spaces, no number
10293 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10294 </p><p>ISBN 12345678901
10300 ISBN with trailing year (bug 8110)
10302 ISBN 1-234-56789-0 - 2006
10304 ISBN 1 234 56789 0 - 2006
10306 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10307 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10315 {{anchorencode:foo bar©#%n}}
10317 <p>foo_bar.C2.A9.23.25n
10322 anchorencode trims spaces
10324 {{anchorencode: __pretty__please__}}
10331 anchorencode deals with links
10333 {{anchorencode: [[hello|world]] [[hi]]}}
10340 anchorencode deals with templates
10342 {{anchorencode: {{Foo}} }}
10349 anchorencode encodes like the TOC generator: (bug 18431)
10351 === _ +:.3A%3A&&]] ===
10352 {{anchorencode: _ +:.3A%3A&&]] }}
10355 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10356 <p>.2B:.3A.253A.26.26.5D.5D
10360 # Expected output in the following test is not necessarily expected (there
10361 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10362 # only testing for well-formedness.
10364 Bug 6200: blockquotes and paragraph formatting
10384 Bug 8293: Use of center tag ruins paragraph formatting
10406 ### Language variants related tests
10409 Self-link in language variants
10411 title=[[Dunav]] language=sr
10413 Both [[Dunav]] and [[Дунав]] are names for this river.
10415 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10421 Link to pages in language variants
10425 Main Page can be written as [[Маин Паге]]
10427 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10433 Multiple links to pages in language variants
10437 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10439 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a> can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a> same as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>.
10445 Simple template in language variants
10451 <p>This is a test template
10457 Template with explicit namespace in language variants
10463 <p>This is a test template
10469 Basic test for template parameter in language variants
10473 {{парамтест|param=foo}}
10475 <p>This is a test template with parameter foo
10481 Simple category in language variants
10485 [[Category:МедиаWики Усер'с Гуиде]]
10487 <a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:MediaWiki_User%27s_Guide" title="Категорија:MediaWiki User's Guide">MediaWiki User's Guide</a>
10492 Stripping -{}- tags (language variants)
10496 Latin proverb: -{Ne nuntium necare}-
10498 <p>Latin proverb: Ne nuntium necare
10504 Prevent conversion with -{}- tags (language variants)
10506 language=sr variant=sr-ec
10508 Latinski: -{Ne nuntium necare}-
10510 <p>Латински: Ne nuntium necare
10516 Prevent conversion of text with -{}- tags (language variants)
10518 language=sr variant=sr-ec
10520 Latinski: -{Ne nuntium necare}-
10522 <p>Латински: Ne nuntium necare
10528 Prevent conversion of links with -{}- tags (language variants)
10530 language=sr variant=sr-ec
10534 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10540 -{}- tags within headlines (within html for parserConvert())
10542 language=sr variant=sr-ec
10546 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2>
10552 Explicit definition of language variant alternatives
10554 language=zh variant=zh-tw
10556 -{zh:China;zh-tw:Taiwan}-, not China
10558 <p>Taiwan, not China
10564 Explicit session-wise language variant mapping (A flag and - flag)
10566 language=zh variant=zh-tw
10568 Taiwan is not China.
10569 But -{A|zh:China;zh-tw:Taiwan}- is China,
10570 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10571 and -{China}- is China.
10573 <p>Taiwan is not China.
10574 But Taiwan is Taiwan,
10575 (This should be stripped!)
10576 and China is China.
10581 Explicit session-wise language variant mapping (H flag for hide)
10583 language=zh variant=zh-tw
10585 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10588 <p>(This should be stripped!)
10594 Adding explicit conversion rule for title (T flag)
10596 language=zh variant=zh-tw showtitle
10598 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10601 <p>Should be stripped!
10606 Testing that changing the language variant here in the tests actually works
10608 language=zh variant=zh showtitle
10610 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10613 <p>Should be stripped!
10618 Bug 24072: more test on conversion rule for title
10620 language=zh variant=zh-tw showtitle
10622 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10623 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10626 <p>This should be stripped!
10627 This won't take interferes with the title rule.
10632 Raw output of variant escape tags (R flag)
10634 language=zh variant=zh-tw
10636 Raw: -{R|zh:China;zh-tw:Taiwan}-
10638 <p>Raw: zh:China;zh-tw:Taiwan
10643 Nested using of manual convert syntax
10645 language=zh variant=zh-hk
10647 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10649 <p>Nested: Hello Hong Kong!
10654 Proper conversion of text in external links
10656 language=sr variant=sr-ec
10658 http://www.google.com
10659 gopher://www.google.com
10660 [http://www.google.com http://www.google.com]
10661 [gopher://www.google.com gopher://www.google.com]
10662 [https://www.google.com irc://www.google.com]
10663 [ftp://www.google.com www.google.com/ftp://dir]
10664 [//www.google.com www.google.com]
10666 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10667 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10668 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10669 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10670 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
10671 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
10672 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
10677 Do not convert roman numbers to language variants
10679 language=sr variant=sr-ec
10683 <p>Фридрих IV је цар.
10688 Unclosed language converter markup "-{"
10699 Don't convert raw rule "-{R|=>}-" to "=>"
10716 Bug 529: Uncovered bullet
10726 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10727 # Templates in Wikipedia rely on this behavior, as tidy has always been
10728 # enabled there. These tests are normally run *without* tidy, so specify the
10729 # full output here.
10730 # To test realistic parsing behavior, apply a tidy-like transformation to both
10731 # the expected output and your parser's output.
10733 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10735 ******* Foo {{bullet}}
10737 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10750 Bug 529: Uncovered table already at line-start
10773 Bug 529: Uncovered bullet in parser function result
10775 * Foo {{lc:{{bullet}} }}
10784 Bug 5678: Double-parsed template argument
10786 {{lc:{{{1}}}|hello}}
10793 Bug 5678: Double-parsed template invocation
10795 {{lc:{{paramtest {{!}} param = hello }} }}
10797 <p>{{paramtest | param = hello }}
10802 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10805 title=[[Main Page]]
10807 {{PRVNÍVELKÉ:ěščř}}
10808 {{prvnívelké:ěščř}}
10828 Morwen/13: Unclosed link followed by heading
10835 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
10840 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10847 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10852 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10859 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
10874 Paragraphs inside divs (no extra line breaks)
10886 Paragraphs inside divs (extra line break on open)
10901 Paragraphs inside divs (extra line break on close)
10916 Paragraphs inside divs (extra line break on open and close)
10933 Nesting tags, paragraphs on lines which begin with <div>
10937 <div></div><strong>A
10946 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10948 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10952 <blockquote>Line one
10954 Line two</blockquote>
10956 <blockquote>Line one
10957 Line two</blockquote>
10962 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10969 Line two</blockquote>
10974 Line two</blockquote>
10979 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10983 <blockquote>Line one
10988 <blockquote>Line one
10996 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11015 Paragraphs inside blockquotes/divs (no extra line breaks)
11017 <blockquote><div>Line one
11019 Line two</div></blockquote>
11021 <blockquote><div>Line one
11022 Line two</div></blockquote>
11027 Paragraphs inside blockquotes/divs (extra line break on open)
11032 Line two</div></blockquote>
11037 Line two</div></blockquote>
11042 Paragraphs inside blockquotes/divs (extra line break on close)
11044 <blockquote><div>Line one
11047 </div></blockquote>
11049 <blockquote><div>Line one
11052 </div></blockquote>
11057 Paragraphs inside blockquotes/divs (extra line break on open and close)
11063 </div></blockquote>
11069 </div></blockquote>
11074 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11076 wgLinkHolderBatchSize=0
11082 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11083 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11084 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11089 Free external link invading image caption
11091 [[Image:Foobar.jpg|thumb|http://x|hello]]
11093 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>hello</div></div></div>
11098 Bug 15196: localised external link numbers
11102 [http://en.wikipedia.org/]
11104 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11109 Multibyte character in padleft
11111 {{padleft:-Hello|7|Æ}}
11118 Multibyte character in padright
11120 {{padright:Hello-|7|Æ}}
11129 wgUseDynamicDates=1
11133 <p><span class="mw-formatted-date" title="2009-03-24"><a href="/index.php?title=2009&action=edit&redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="/index.php?title=March_24&action=edit&redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
11138 formatdate parser function
11140 {{#formatdate:2009-03-24}}
11142 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11147 formatdate parser function, with default format
11149 {{#formatdate:2009-03-24|mdy}}
11151 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11156 Linked date with autoformatting disabled
11158 wgUseDynamicDates=false
11162 <p><a href="/index.php?title=2009-03-24&action=edit&redlink=1" class="new" title="2009-03-24 (page does not exist)">2009-03-24</a>
11167 Spacing of numbers in formatted dates
11169 {{#formatdate:January 15}}
11171 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11176 Spacing of numbers in formatted dates (linked)
11178 wgUseDynamicDates=true
11182 <p><span class="mw-formatted-date" title="01-15"><a href="/index.php?title=January_15&action=edit&redlink=1" class="new" title="January 15 (page does not exist)">January 15</a></span>
11187 formatdate parser function, with default format and on a page of which the content language is always English and different from the wiki content language
11189 language=nl title=[[MediaWiki:Common.css]]
11191 {{#formatdate:2009-03-24|dmy}}
11193 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11206 Edit comment with link
11210 I like the [[Main Page]] a lot
11212 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11216 Edit comment with link and link text
11220 I like the [[Main Page|best pages]] a lot
11222 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11226 Edit comment with link and link text with suffix
11230 I like the [[Main Page|best page]]s a lot
11232 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11236 Edit comment with section link (non-local, eg in history list)
11238 comment title=[[Main Page]]
11240 /* External links */ removed bogus entries
11242 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11246 Edit comment with section link and text before it (non-local, eg in history list)
11248 comment title=[[Main Page]]
11250 pre-comment text /* External links */ removed bogus entries
11252 pre-comment text - <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11256 Edit comment with section link (local, eg in diff view)
11258 comment local title=[[Main Page]]
11260 /* External links */ removed bogus entries
11262 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11266 Edit comment with subpage link (bug 14080)
11270 title=[[Subpage test]]
11272 Poked at a [[/subpage]] here...
11274 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11278 Edit comment with subpage link and link text (bug 14080)
11282 title=[[Subpage test]]
11284 Poked at a [[/subpage|neat little page]] here...
11286 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11290 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11293 title=[[Subpage test]]
11295 Poked at a [[/subpage]] here...
11297 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11301 Edit comment with bare anchor link (local, as on diff)
11305 title=[[Main Page]]
11309 <a href="#section">#section</a>
11313 Edit comment with bare anchor link (non-local, as on history)
11316 title=[[Main Page]]
11320 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11324 Anchor starting with underscore
11328 <p><a href="#_ref">One</a>
11333 Id starting with underscore
11335 <div id="_ref"></div>
11337 <div id="_ref"></div>
11342 Space normalisation on autocomment (bug 22784)
11345 title=[[Main Page]]
11347 /* __hello__world__ */
11349 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11353 percent-encoding and + signs in comments (Bug 26410)
11357 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11359 <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a>
11363 Bad images - basic functionality
11372 Bad images - bug 16039: text after bad image disappears
11386 Verify that displaytitle works (bug #22501) no displaytitle
11390 wgAllowDisplayTitle=true
11391 wgRestrictDisplayTitle=false
11393 this is not the the title
11396 <p>this is not the the title
11401 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11406 wgAllowDisplayTitle=true
11407 wgRestrictDisplayTitle=false
11409 this is not the the title
11410 {{DISPLAYTITLE:whatever}}
11413 <p>this is not the the title
11418 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11423 wgAllowDisplayTitle=true
11424 wgRestrictDisplayTitle=true
11426 this is not the the title
11427 {{DISPLAYTITLE:whatever}}
11430 <p>this is not the the title
11435 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11440 wgAllowDisplayTitle=true
11441 wgRestrictDisplayTitle=true
11443 this is not the the title
11444 {{DISPLAYTITLE:screen}}
11447 <p>this is not the the title
11452 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11457 wgAllowDisplayTitle=false
11459 this is not the the title
11460 {{DISPLAYTITLE:screen}}
11463 <p>this is not the the title
11464 <a href="/index.php?title=Template:DISPLAYTITLE:screen&action=edit&redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a>
11469 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11474 wgAllowDisplayTitle=false
11476 this is not the the title
11479 <p>this is not the the title
11484 preload: check <noinclude> and <includeonly>
11488 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11494 preload: check <onlyinclude>
11498 Goodbye <onlyinclude>Hello world</onlyinclude>
11504 preload: can pass tags through if we want to
11508 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11510 <includeonly>Hello world</includeonly>
11514 preload: check that it doesn't try to do tricks
11518 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11520 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11524 Play a bit with r67090 and bug 3158
11528 <div style="width:50% !important"> </div>
11529 <div style="width:50% !important"> </div>
11530 <div style="width:50% !important"> </div>
11531 <div style="border : solid;"> </div>
11533 <div style="width:50% !important"> </div>
11534 <div style="width:50% !important"> </div>
11535 <div style="width:50% !important"> </div>
11536 <div style="border : solid;"> </div>
11541 HTML5 data attributes
11543 <span data-foo="bar">Baz</span>
11544 <p data-abc-def_hij="">Quuz</p>
11546 <p><span data-foo="bar">Baz</span>
11548 <p data-abc-def_hij="">Quuz</p>
11553 percent-encoding and + signs in internal links (Bug 26410)
11555 [[User:+%]] [[Page+title%]]
11556 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11557 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11558 [[%33%45]] [[%33%45+]]
11560 <p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
11561 <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
11562 <a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
11563 <a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
11568 Special characters in embedded file links (bug 27679)
11570 [[File:Contains & ampersand.jpg]]
11571 [[File:Does not exist.jpg|Title with & ampersand]]
11573 <p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
11574 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11580 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11582 Text's been normalized?
11584 <p>Text's been normalized?
11589 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11591 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11593 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11598 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11600 [http://www.example.org/ ideograms]
11602 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11607 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11609 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11611 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11635 Bug 31098 Template which includes system messages which includes the template
11639 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11640 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11645 Bug31490 Turkish: ucfirst 'blah'
11656 Bug31490 Turkish: ucfirst 'ix'
11667 Bug31490 Turkish: lcfirst 'BLAH'
11678 Bug31490 Turkish: ucfırst (with a dotless i)
11684 <p><a href="/index.php?title=%C5%9Eablon:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Şablon:Ucfırst:blah (sayfa mevcut değil)">Şablon:Ucfırst:blah</a>
11689 Bug31490 ucfırst (with a dotless i) with English language
11695 <p><a href="/index.php?title=Template:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Template:Ucfırst:blah (page does not exist)">Template:Ucfırst:blah</a>
11700 Bug 26375: TOC with italics
11702 title=[[Main Page]]
11705 == ''Lost'' episodes ==
11707 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11709 <li class="toclevel-1 tocsection-1"><a href="#Lost_episodes"><span class="tocnumber">1</span> <span class="toctext"><i>Lost</i> episodes</span></a></li>
11712 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span> <span class="mw-headline" id="Lost_episodes"> <i>Lost</i> episodes </span></h2>
11717 Bug 26375: TOC with bold
11719 title=[[Main Page]]
11722 == '''should be bold''' then normal text ==
11724 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11726 <li class="toclevel-1 tocsection-1"><a href="#should_be_bold_then_normal_text"><span class="tocnumber">1</span> <span class="toctext"><b>should be bold</b> then normal text</span></a></li>
11729 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span> <span class="mw-headline" id="should_be_bold_then_normal_text"> <b>should be bold</b> then normal text </span></h2>
11734 Bug 33845: Headings become cursive in TOC when they contain an image
11736 title=[[Main Page]]
11739 == Image [[Image:foobar.jpg]] ==
11741 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11743 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11746 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span> <span class="mw-headline" id="Image"> Image <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> </span></h2>
11751 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11753 title=[[Main Page]]
11756 == <blockquote>Quote</blockquote> ==
11758 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11760 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11763 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span> <span class="mw-headline" id="Quote"> <blockquote>Quote</blockquote> </span></h2>
11768 Unclosed tags in TOC
11770 title=[[Main Page]]
11774 <small>Hanc marginis exiguitas non caperet.</small>
11777 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11779 <li class="toclevel-1 tocsection-1"><a href="#Proof:_2_.3C_3"><span class="tocnumber">1</span> <span class="toctext">Proof: 2 < 3</span></a></li>
11782 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span> <span class="mw-headline" id="Proof:_2_.3C_3"> Proof: 2 < 3 </span></h2>
11783 <p><small>Hanc marginis exiguitas non caperet.</small>
11789 Multiple tags in TOC
11792 == <i>Foo</i> <b>Bar</b> ==
11794 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11796 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11798 <li class="toclevel-1 tocsection-1"><a href="#Foo_Bar"><span class="tocnumber">1</span> <span class="toctext"><i>Foo</i> <b>Bar</b></span></a></li>
11799 <li class="toclevel-1 tocsection-2"><a href="#Foo_Bar_2"><span class="tocnumber">2</span> <span class="toctext"><i>Foo</i> Bar</span></a></li>
11802 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar"> <i>Foo</i> <b>Bar</b> </span></h2>
11803 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> <i>Foo</i> <blockquote>Bar</blockquote> </span></h2>
11808 Tags with parameters in TOC
11811 == <sup class="in-h2">Hello</sup> ==
11813 == <sup class="a > b">Evilbye</sup> ==
11815 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11817 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11818 <li class="toclevel-1 tocsection-2"><a href="#b.22.3EEvilbye"><span class="tocnumber">2</span> <span class="toctext"><sup> b">Evilbye</sup></span></a></li>
11821 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span> <span class="mw-headline" id="Hello"> <sup class="in-h2">Hello</sup> </span></h2>
11822 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span> <span class="mw-headline" id="b.22.3EEvilbye"> <sup> b">Evilbye</sup> </span></h2>
11827 span tags with directionality in TOC
11830 == <span dir="ltr">C++</span> ==
11832 == <span dir="rtl">זבנג!</span> ==
11834 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11836 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11838 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11840 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11842 <li class="toclevel-1 tocsection-1"><a href="#C.2B.2B"><span class="tocnumber">1</span> <span class="toctext"><span dir="ltr">C++</span></span></a></li>
11843 <li class="toclevel-1 tocsection-2"><a href="#.D7.96.D7.91.D7.A0.D7.92.21"><span class="tocnumber">2</span> <span class="toctext"><span dir="rtl">זבנג!</span></span></a></li>
11844 <li class="toclevel-1 tocsection-3"><a href="#The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">3</span> <span class="toctext"><span>The attributes on these span tags must be deleted from the TOC</span></span></a></li>
11845 <li class="toclevel-1 tocsection-4"><a href="#All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">4</span> <span class="toctext"><span>All attributes on these span tags must be deleted from the TOC</span></span></a></li>
11846 <li class="toclevel-1 tocsection-5"><a href="#Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">5</span> <span class="toctext"><span dir="ltr">Attributes after dir on these span tags must be deleted from the TOC</span></span></a></li>
11849 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a>]</span> <span class="mw-headline" id="C.2B.2B"> <span dir="ltr">C++</span> </span></h2>
11850 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a>]</span> <span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"> <span dir="rtl">זבנג!</span> </span></h2>
11851 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: The attributes on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"> <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> </span></h2>
11852 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: All attributes on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"> <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> </span></h2>
11853 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Attributes after dir on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"> <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> </span></h2>
11860 == {{int:headline_sample}} ==
11864 Bug 32057: Title needed when expanding <h> nodes.
11866 title=[[Main Page]]
11870 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span> <span class="mw-headline" id="Headline_text"> Headline text </span></h2>
11875 Strip marker in urlencode
11877 {{urlencode:x<nowiki/>y}}
11878 {{urlencode:x<nowiki/>y|wiki}}
11879 {{urlencode:x<nowiki/>y|path}}
11906 Strip marker in formatNum
11908 {{formatnum:1<nowiki/>2}}
11909 {{formatnum:1<nowiki/>2|R}}
11917 Strip marker in grammar
11921 {{grammar:elative|foo<nowiki/>bar}}
11928 Strip marker in padleft
11930 {{padleft:|2|x<nowiki/>y}}
11937 Strip marker in padright
11939 {{padright:|2|x<nowiki/>y}}
11946 Strip marker in anchorencode
11948 {{anchorencode:x<nowiki/>y}}
11955 nowiki inside link inside heading (bug 18295)
11957 ==[[foo|x<nowiki>y</nowiki>z]]==
11959 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span> <span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span></h2>
11964 new support for bdi element (bug 31817)
11966 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11968 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11973 Ignore pipe between table row attributes
11977 |- id=foo | style='color: red'
11985 <tr id="foo" style="color: red">
11992 Gallery override link with WikiLink (bug 34852)
11995 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11998 <ul class="gallery">
11999 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12000 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12001 <div class="gallerytext">
12011 Gallery override link with absolute external link (bug 34852)
12014 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12017 <ul class="gallery">
12018 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12019 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12020 <div class="gallerytext">
12030 Gallery override link with malicious javascript (bug 34852)
12033 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12036 <ul class="gallery">
12037 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12038 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/%22_onclick%3D%22alert(%27malicious_javascript_code!%27);"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12039 <div class="gallerytext">
12049 Language parser function
12058 Padleft and padright as substr
12060 {{padleft:|3|abcde}}
12061 {{padright:|3|abcde}}
12069 Bug 34939 - Case insensitive link parsing ([HttP://])
12071 [HttP://MediaWiki.Org/]
12073 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12078 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12080 [HttP://MediaWiki.Org/ MediaWiki]
12082 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12087 Bug 34939 - Case insensitive link parsing (HttP://)
12089 HttP://MediaWiki.Org/
12091 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12096 ### Parsoids-specific tests
12097 ### Parsoid-PHP parser incompatibilities
12100 1. SOL-sensitive wikitext tokens as template-args
12114 #### The following section of tests are primarily to test
12115 #### wikitext escaping capabilities of Parsoid.
12116 #### A lot of the tests are disabled for the PHP parser either
12117 #### because of minor newline diffs or other reasons.
12118 #### As Parsoid serializer can handle newlines and other HTML
12119 #### more robustly, some of these tests might get reenabled
12120 #### for the PHP parser.
12122 #### --------------- Headings ---------------
12124 #### 1. Nested inside html <h1>=foo=</h1>
12125 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12126 #### 3. Nested inside html with wikitext split by html tags
12127 #### 4. No escape needed
12128 #### 5. Empty headings <h1></h1>
12129 #### 6. Heading chars in SOL context
12130 #### ----------------------------------------
12132 Headings: 0. Unnested
12134 <nowiki>=foo=</nowiki>
12136 <nowiki>=foo</nowiki>''a''=
12139 </p><p>=foo<i>a</i>=
12144 Headings: 1. Nested inside html
12148 =<nowiki>=foo=</nowiki>=
12149 ==<nowiki>=foo=</nowiki>==
12150 ===<nowiki>=foo=</nowiki>===
12151 ====<nowiki>=foo=</nowiki>====
12152 =====<nowiki>=foo=</nowiki>=====
12153 ======<nowiki>=foo=</nowiki>======
12164 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12169 <nowiki>*bar</nowiki>
12173 <nowiki>=bar=</nowiki>
12181 Headings: 3. Nested inside html with wikitext split by html tags
12185 =<nowiki>=</nowiki>'''bold'''foo==
12187 <h1>=<b>bold</b>foo=</h1>
12191 Headings: 4. No escaping needed (testing just h1 and h2)
12206 <h1><i>=</i>foo=</h1>
12211 Headings: 5. Empty headings
12215 =<nowiki></nowiki>=
12216 ==<nowiki></nowiki>==
12217 ===<nowiki></nowiki>===
12218 ====<nowiki></nowiki>====
12219 =====<nowiki></nowiki>=====
12220 ======<nowiki></nowiki>======
12231 Headings: 6. Heading chars in SOL context
12235 <!--cmt--><nowiki>=h1=</nowiki>
12241 #### --------------- Lists ---------------
12242 #### 0. Outside nests (*foo, etc.)
12243 #### 1. Nested inside html <ul><li>*foo</li></ul>
12244 #### 2. Inside definition lists
12245 #### 3. Only bullets at start should be escaped
12246 #### 4. No escapes needed
12247 #### 5. No unnecessary escapes
12248 #### 6. Escape bullets in SOL position
12249 #### 7. Escape bullets in a multi-line context
12250 #### ----------------------------------------
12253 Lists: 0. Outside nests
12255 <nowiki>*foo</nowiki>
12257 <nowiki>#foo</nowiki>
12265 Lists: 1. Nested inside html
12267 *<nowiki>*foo</nowiki>
12269 *<nowiki>#foo</nowiki>
12271 *<nowiki>:foo</nowiki>
12273 *<nowiki>;foo</nowiki>
12275 #<nowiki>*foo</nowiki>
12277 #<nowiki>#foo</nowiki>
12279 #<nowiki>:foo</nowiki>
12281 #<nowiki>;foo</nowiki>
12303 Lists: 2. Inside definition lists
12305 ;<nowiki>;foo</nowiki>
12307 ;<nowiki>:foo</nowiki>
12309 ;<nowiki>:foo</nowiki>
12312 :<nowiki>:foo</nowiki>
12327 Lists: 3. Only bullets at start of text should be escaped
12329 *<nowiki>*foo*bar</nowiki>
12331 *<nowiki>*foo</nowiki>''it''*bar
12335 <ul><li>*foo<i>it</i>*bar
12341 Lists: 4. No escapes needed
12353 <ul><li><i>foo</i>*bar
12355 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12360 Lists: 5. No unnecessary escapes
12362 * bar <span><nowiki>[[foo]]</nowiki></span>
12364 *=bar <span><nowiki>[[foo]]</nowiki></span>
12366 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12368 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12370 *=bar <span>foo]]</span>=
12372 <ul><li> bar <span>[[foo]]</span>
12374 <ul><li>=bar <span>[[foo]]</span>
12376 <ul><li>[[bar <span>[[foo]]</span>
12378 <ul><li>]]bar <span>[[foo]]</span>
12380 <ul><li>=bar <span>foo]]</span>=
12386 Lists: 6. Escape bullets in SOL position
12390 <!--cmt--><nowiki>*foo</nowiki>
12397 Lists: 7. Escape bullets in a multi-line context
12407 #### --------------- HRs ---------------
12408 #### 1. Single line
12409 #### -----------------------------------
12412 HRs: 1. Single line
12417 <nowiki>----</nowiki>
12419 <nowiki>=foo=</nowiki>
12421 <nowiki>*foo</nowiki>
12428 #### --------------- Tables ---------------
12429 #### 1a. Simple example
12430 #### 1b. No escaping needed (!foo)
12431 #### 1c. No escaping needed (|foo)
12432 #### 1d. No escaping needed (|}foo)
12434 #### 2a. Nested in td (<td>foo|bar</td>)
12435 #### 2b. Nested in td (<td>foo||bar</td>)
12436 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12438 #### 3a. Nested in th (<th>foo!bar</th>)
12439 #### 3b. Nested in th (<th>foo!!bar</th>)
12440 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12444 #### 4c. No escaping needed
12445 #### --------------------------------------
12448 Tables: 1a. Simple example
12459 Tables: 1b. No escaping needed
12468 Tables: 1c. No escaping needed
12477 Tables: 1d. No escaping needed
12486 Tables: 2a. Nested in td
12491 |<nowiki>foo|bar</nowiki>
12501 Tables: 2b. Nested in td
12506 |<nowiki>foo||bar</nowiki>
12507 |''it''<nowiki>foo||bar</nowiki>
12512 </td><td><i>it</i>foo||bar
12518 Tables: 2c. Nested in td -- no escaping needed
12533 Tables: 3a. Nested in th
12548 Tables: 3b. Nested in th
12553 !<nowiki>foo!!bar</nowiki>
12563 Tables: 3c. Nested in th -- no escaping needed
12578 Tables: 4a. Escape -
12586 |<nowiki>-bar</nowiki>
12590 <tr><th>-bar</th></tr>
12591 <tr><td>-bar</td></tr>
12596 Tables: 4b. Escape +
12604 |<nowiki>+bar</nowiki>
12608 <tr><th>+bar</th></tr>
12609 <tr><td>+bar</td></tr>
12614 Tables: 4c. No escaping needed
12628 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12629 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12633 #### --------------- Links ---------------
12634 #### 1. Quote marks in link text
12635 #### 2. Wikilinks: Escapes needed
12636 #### 3. Wikilinks: No escapes needed
12637 #### 4. Extlinks: Escapes needed
12638 #### 5. Extlinks: No escapes needed
12639 #### --------------------------------------
12641 Links 1. Quote marks in link text
12645 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12647 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12651 Links 2. WikiLinks: Escapes needed
12655 [[Foo|<nowiki>[Foobar]</nowiki>]]
12656 [[Foo|<nowiki>Foobar]</nowiki>]]
12657 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12658 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12659 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12660 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12661 [[Foo|<nowiki>|Bar</nowiki>]]
12663 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12664 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12665 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12666 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12667 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12668 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12669 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12673 Links 3. WikiLinks: No escapes needed
12680 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12681 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12685 Links 4. ExtLinks: Escapes needed
12689 [http://google.com <nowiki>[google]</nowiki>]
12690 [http://google.com <nowiki>google]</nowiki>]
12692 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12693 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12697 Links 5. ExtLinks: No escapes needed
12701 [http://google.com [google]
12703 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12706 #### --------------- Quotes ---------------
12707 #### 1. Quotes inside <b> and <i>
12708 #### 2. Link fragments separated by <i> and <b> tags
12709 #### 3. Link fragments inside <i> and <b>
12710 #### --------------------------------------
12712 1. Quotes inside <b> and <i>
12714 ''<nowiki>'foo'</nowiki>''
12715 ''<nowiki>''foo''</nowiki>''
12716 ''<nowiki>'''foo'''</nowiki>''
12717 '''<nowiki>'foo'</nowiki>'''
12718 '''<nowiki>''foo''</nowiki>'''
12719 '''<nowiki>'''foo'''</nowiki>'''
12720 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12728 <b>foo'<i>bar'</i>baz</b>
12733 2. Link fragments separated by <i> and <b> tags
12735 [[''foo''<nowiki>hello]]</nowiki>
12737 [['''foo'''<nowiki>hello]]</nowiki>
12739 <p>[[<i>foo</i>hello]]
12740 </p><p>[[<b>foo</b>hello]]
12745 2. Link fragments inside <i> and <b>
12746 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12747 this is one of the shortcomings of this format)
12749 ''[[foo''<nowiki>]]</nowiki>
12751 '''[[foo'''<nowiki>]]</nowiki>
12754 </p><p><b>[[foo</b>]]
12758 #### --------------- Paragraphs ---------------
12759 #### 1. No unnecessary escapes
12760 #### --------------------------------------
12763 1. No unnecessary escapes
12765 bar <span><nowiki>[[foo]]</nowiki></span>
12767 =bar <span><nowiki>[[foo]]</nowiki></span>
12769 [[bar <span><nowiki>[[foo]]</nowiki></span>
12771 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12773 <nowiki>=bar </nowiki><span>foo]]</span>=
12775 <p>bar <span>[[foo]]</span>
12776 </p><p>=bar <span>[[foo]]</span>
12777 </p><p>[[bar <span>[[foo]]</span>
12778 </p><p>]]bar <span>[[foo]]</span>
12779 </p><p>=bar <span>foo]]</span>=
12783 #### --------------- PRE ------------------
12784 #### 1. Leading space in SOL context should be escaped
12785 #### --------------------------------------
12787 1. Leading space in SOL context should be escaped
12791 <nowiki> foo</nowiki>
12792 <!--cmt--><nowiki> foo</nowiki>
12799 #### --------------- HTML tags ---------------
12802 #### 3. multi-line html tag
12803 #### --------------------------------------
12809 <a href="http://google.com">google</a>
12811 <a href="http://google.com">google</a>
12817 <nowiki><div>foo</div>
12818 <div style="color:red">foo</div></nowiki>
12820 <p><div>foo</div>
12821 <div style="color:red">foo</div>
12826 3. multi-line html tag
12838 #### --------------- Others ---------------
12842 <nowiki>foo</nowiki>
12844 <p><nowiki>foo</nowiki>
12849 Tag-like HTML structures are passed through as text
12871 </p><p>1<d e>f
12876 # This fails in the PHP parser (see bug 40670,
12877 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
12879 Tag names followed by punctuation should not be recognized as tags
12885 <p><s.ome> text
12895 Try for 100% code coverage