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 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # You can also set the following parser properties via test options:
31 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
32 # wgLinkHolderBatchSize, wgRawHtml
34 # For testing purposes, temporary articles can created:
35 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
36 # where '/' denotes a newline.
38 # This is the standard article assumed to exist.
63 MediaWiki:bad image list
65 * [[File:Bad.jpg]] except [[Nasty page]]
99 Template:echo_with_span
105 Template:echo_with_div
117 Template:table_attribs
120 |</noinclude>style="color: red"| Foo
126 {{table_attribs}} || Bar || Baz
130 Template:image_attribs
133 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
161 This is a simple paragraph.
163 <p>This is a simple paragraph.
168 Paragraphs with extra newline spacing
191 Paragraphs with newline spacing with comment lines in between
199 <!--foo--><!--More than 1 comment, still stripped-->
203 <!--foo--> <!----> <!-- bar -->
264 Paragraphs with newline spacing with non-empty white-space lines in between
291 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
299 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
338 Extra newlines: More paragraphs with indented comment
353 Extra newlines followed by heading
368 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
369 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
372 <h1><span class="mw-headline" id="b_2">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
377 Extra newlines between heading and content are swallowed
385 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
386 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
393 http://fr.wikipedia.org/wiki/🍺
394 <!-- EasterEgg we love beer, better be able be able to link to it -->
396 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
419 * plain''italic''plain
420 * plain''italic''plain''italic''plain
421 * plain'''bold'''plain
422 * plain'''bold'''plain'''bold'''plain
423 * plain''italic''plain'''bold'''plain
424 * plain'''bold'''plain''italic''plain
425 * plain''italic'''bold-italic'''italic''plain
426 * plain'''bold''bold-italic''bold'''plain
427 * plain'''''bold-italic'''italic''plain
428 * plain'''''bold-italic''bold'''plain
429 * plain''italic'''bold-italic'''''plain
430 * plain'''bold''bold-italic'''''plain
431 * plain l'''italic''plain
432 * plain l''''bold''' plain
437 <li> plain<i>italic</i>plain
439 <li> plain<i>italic</i>plain<i>italic</i>plain
441 <li> plain<b>bold</b>plain
443 <li> plain<b>bold</b>plain<b>bold</b>plain
445 <li> plain<i>italic</i>plain<b>bold</b>plain
447 <li> plain<b>bold</b>plain<i>italic</i>plain
449 <li> plain<i>italic<b>bold-italic</b>italic</i>plain
451 <li> plain<b>bold<i>bold-italic</i>bold</b>plain
453 <li> plain<i><b>bold-italic</b>italic</i>plain
455 <li> plain<b><i>bold-italic</i>bold</b>plain
457 <li> plain<i>italic<b>bold-italic</b></i>plain
459 <li> plain<b>bold<i>bold-italic</i></b>plain
461 <li> plain l'<i>italic</i>plain
463 <li> plain l'<b>bold</b> plain
469 # this example taken from the [[simple:Moon]] article (bug 47326)
471 Italics and possessives (1)
473 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
475 <p>obtained by <i><a href="/index.php?title=Lunar_Prospector&action=edit&redlink=1" class="new" title="Lunar Prospector (page does not exist)">Lunar Prospector</a>'</i>s gamma-ray spectrometer
479 # this example taken from [[en:Flaming Pie]] (bug 49926)
481 Italics and possessives (2)
483 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
485 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
489 # this example taken from [[en:Dictionary]] (bug 49926)
491 Italics and possessives (3)
493 The first monolingual dictionary written in a Romance language was ''Sebastián Covarrubias''' ''Tesoro de la lengua castellana o española'', published in 1611 in Madrid. In 1612 the first edition of the ''Vocabolario dell'[[Accademia della Crusca]]'', for Italian, was published. In 1690 in Rotterdam was published, posthumously, the ''Dictionnaire Universel''.
495 <p>The first monolingual dictionary written in a Romance language was <i>Sebastián Covarrubias'</i> <i>Tesoro de la lengua castellana o española</i>, published in 1611 in Madrid. In 1612 the first edition of the <i>Vocabolario dell'<a href="/index.php?title=Accademia_della_Crusca&action=edit&redlink=1" class="new" title="Accademia della Crusca (page does not exist)">Accademia della Crusca</a></i>, for Italian, was published. In 1690 in Rotterdam was published, posthumously, the <i>Dictionnaire Universel</i>.
501 ### 2-quote opening sequence tests
504 Italics and bold: 2-quote opening sequence: (2,2)
514 Italics and bold: 2-quote opening sequence: (2,3)
524 Italics and bold: 2-quote opening sequence: (2,4)
534 Italics and bold: 2-quote opening sequence: (2,5) (php)
543 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
545 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
557 ### 3-quote opening sequence tests
561 Italics and bold: 3-quote opening sequence: (3,2)
571 Italics and bold: 3-quote opening sequence: (3,3)
581 Italics and bold: 3-quote opening sequence: (3,4)
591 Italics and bold: 3-quote opening sequence: (3,5) (php)
600 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
602 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
614 ### 4-quote opening sequence tests
618 Italics and bold: 4-quote opening sequence: (4,2)
628 Italics and bold: 4-quote opening sequence: (4,3)
638 Italics and bold: 4-quote opening sequence: (4,4)
648 Italics and bold: 4-quote opening sequence: (4,5) (php)
657 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
659 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
665 <p>'<b>foo</b><i></i>
671 ### 5-quote opening sequence tests
675 Italics and bold: 5-quote opening sequence: (5,2)
686 Italics and bold: 5-quote opening sequence: (5,3)
696 Italics and bold: 5-quote opening sequence: (5,4)
700 <p><i><b>foo'</b></i>
706 Italics and bold: 5-quote opening sequence: (5,5)
715 ### multiple quote sequences in a line
718 Italics and bold: multiple quote sequences: (2,4,2)
722 <p><i>foo'<b>bar</b></i>
728 Italics and bold: multiple quote sequences: (2,4,3)
732 <p><i>foo'<b>bar</b></i>
738 Italics and bold: multiple quote sequences: (2,4,4)
742 <p><i>foo'<b>bar'</b></i>
748 Italics and bold: multiple quote sequences: (3,4,2) (php)
757 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
759 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
765 <p><b>foo'</b>bar<i></i>
771 Italics and bold: multiple quote sequences: (3,4,3) (php)
780 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
782 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
788 <p><b>foo'</b>bar<b></b>
793 ### other quote tests
796 Italics and bold: other quote tests: (2,3,5)
798 ''this is about '''foo's family'''''
800 <p><i>this is about <b>foo's family</b></i>
806 Italics and bold: other quote tests: (2,(3,3),2)
808 ''this is about '''foo's''' family''
810 <p><i>this is about <b>foo's</b> family</i>
816 Italics and bold: other quote tests: (3,2,3,2)
818 '''this is about ''foo'''s family''
820 <p><b>this is about <i>foo</i></b><i>s family</i>
826 Italics and bold: other quote tests: (3,2,3,3)
829 '''this is about ''foo'''s family'''
831 <p>'<i>this is about </i>foo<b>s family</b>
837 Italics and bold: other quote tests: (3,(2,2),3)
839 '''this is about ''foo's'' family'''
841 <p><b>this is about <i>foo's</i> family</b>
847 Italicized possessive
849 The ''[[Main Page]]'''s talk page.
851 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
856 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
857 (Requires tidy for PHP parser output to be fixed up)
859 parsoid=wt2html,wt2wt
867 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
868 <td><i>a</i></td><td><i>b</i></td></tr>
877 Non-html5 tags should be accepted
879 <center>''foo''</center>
882 <strike>''foo''</strike>
885 <center><i>foo</i></center>
886 <p><big><i>foo</i></big>
887 <font><i>foo</i></font>
888 <strike><i>foo</i></strike>
894 <wbr> is valid wikitext (bug 52468)
902 # <strike> is HTML4, <s> is HTML4/5.
904 <s> or <strike> for strikethrough
906 <strike>strike</strike>
910 <p><strike>strike</strike>
916 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
918 <b→> doesn't work! </b>
920 <bä> doesn't work! </b>
922 <boo> works fine </b>
930 <p><b→> doesn't work! </b>
931 </p><p><bä> doesn't work! </b>
932 </p><p><boo> works fine </b>
933 </p><p><s.foo>foo</s>
934 </p><p><s.foo>s.foo</s.foo>
935 </p><p><sub-ID#1>
940 ### Special characters
944 Bare pipe character (bug 52363)
953 Bare pipe character from a template (bug 52363)
962 ### <nowiki> test cases
966 <nowiki> unordered list
968 <nowiki>* This is not an unordered list item.</nowiki>
970 <p>* This is not an unordered list item.
977 <nowiki>Lorem ipsum dolor
998 :There is not nowiki.
999 :There is <nowiki>nowiki</nowiki>.
1001 #There is not nowiki.
1002 #There is <nowiki>nowiki</nowiki>.
1004 *There is not nowiki.
1005 *There is <nowiki>nowiki</nowiki>.
1008 <dd>There is not nowiki.
1010 <dd>There is nowiki.
1014 <li>There is not nowiki.
1016 <li>There is nowiki.
1020 <li>There is not nowiki.
1022 <li>There is nowiki.
1029 Entities inside <nowiki>
1031 <nowiki><</nowiki>
1038 Entities inside template parameters
1044 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span>
1052 Comments and Indent-Pre
1054 <!-- comment 1 --> asdf
1056 <!-- comment 1 --> asdf
1059 <!-- comment 1 --> asdf
1060 <!-- comment 2 -->xyz
1062 <!-- comment 1 --> asdf
1063 <!-- comment 2 --> xyz
1119 asdf<!-- comment 1 -->jkl
1129 <!-- foo --> b <!-- bar -->
1143 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1149 Comment semantics and delimiters
1151 <!-- --><!----><!-----><!------>
1157 Comment semantics and delimiters, redux
1159 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1160 -- foo -- funky huh? ... -->
1166 Comment semantics and delimiters: directors cut
1168 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1169 everything starting with < followed by !-- until the first -- and > we see,
1170 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1178 Comment semantics: nesting
1180 <!--<!-- no, we're not going to do anything fancy here -->-->
1187 Comment semantics: unclosed comment at end
1189 <!--This comment will run out to the end of the document
1195 Comment in template title
1204 Comment on its own line post-expand
1216 Comment on its own line post-expand with non-significant whitespace
1228 ### paragraph wrapping tests
1243 Block tag on one line (<div>)
1255 Block tag on one line (<blockquote>)
1257 a <blockquote>foo</blockquote>
1261 a <blockquote>foo</blockquote>
1267 Block tag on both lines (<div>)
1279 Block tag on both lines (<blockquote>)
1281 a <blockquote>foo</blockquote>
1283 b <blockquote>foo</blockquote>
1285 a <blockquote>foo</blockquote>
1286 b <blockquote>foo</blockquote>
1291 Multiple lines without block tags
1309 Empty lines between lines with block tags
1339 ### Preformatted text
1348 And a [[Main Page|link]]
1354 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1359 Tabs don't trigger preformatted text
1363 This is preformatted text.
1369 <pre>This is preformatted text.
1375 Ident preformatting with inline content
1386 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1403 Regression with preformatted in <center>
1417 Bug 52763: Preformatted in <blockquote>
1431 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1448 Bug 15491: <ins>/<del> in blockquote
1451 Foo <del>bar</del> <ins>baz</ins> quux
1455 <p>Foo <del>bar</del> <ins>baz</ins> quux
1461 # Note that the p-wrapping is newline sensitive, which could be
1462 # considered a bug: tidy will wrap only the 'Foo' in the example
1463 # below in a <p> tag. (see comment 23-25 of bug #6200)
1465 Bug 15491: <ins>/<del> in blockquote (2)
1467 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1470 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1476 <pre> with attributes (bug 3202)
1478 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1480 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1485 <pre> with width attribute (bug 3202)
1487 <pre width="8">Narrow screen goodies</pre>
1489 <pre width="8">Narrow screen goodies</pre>
1494 <pre> with forbidden attribute (bug 3202)
1496 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1498 <pre width="8">Narrow screen goodies</pre>
1503 Entities inside <pre>
1512 <pre> with forbidden attribute values (bug 3202)
1514 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1516 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1521 <nowiki> inside <pre> (bug 13238)
1529 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1537 <pre><nowiki>Foo</nowiki></pre>
1542 <nowiki> and <pre> preference (first one wins)
1573 </pre> inside nowiki
1575 <nowiki></pre></nowiki>
1582 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1590 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1600 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1612 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1633 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1637 {{echo| foo}}{{echo| bar}}
1642 {{echo|<!--cmt--> foo}}
1644 <!--cmt-->{{echo| foo}}
1646 {{echo|{{echo| }}bar}}
1664 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1700 # TODO / maybe: fix wt2wt for this
1702 Parsoid: Don't paragraph-wrap fosterable content
1728 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
1756 #--------------------------------------------------------------------
1757 # Transclusion parameter whitespace stripping tests
1758 # Behavior is different for positional and named parameters
1759 #--------------------------------------------------------------------
1761 Templates: Strip leading and trailing whitespace from named-param values
1765 {{echo|1= {{echo|b}} }}
1786 Templates: Don't strip whitespace from positional-param values
1790 {{echo|{{echo|b}} }}
1833 Templates: Handle empty comment-and-ws-only lines correctly
1836 <!--should be ignored-->
1837 <!--should be ignored as well-->
1845 #--------------------------------------------------------------------
1846 # Transclusion parameter escaping tests
1847 #--------------------------------------------------------------------
1849 Templates: Parsoid parameter escaping test 1
1853 {{echo|[foo]|{{echo|[bar]}}}}
1855 <p about="#mwt1" typeof="mw:Transclusion"
1856 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
1860 Parsoid: Pipes in external links in template parameter
1864 {{echo|[{{echo|http://example.com}} link]}}
1866 <p><a rel="mw:ExtLink" href="http://example.com" about="#mwt31" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{echo|http://example.com}} link]"}},"i":0}}]}'>link</a></p>
1870 Parsoid: pipe in transclusion parameter
1874 {{echo|http://foo.com/a|b}}
1876 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1877 typeof="mw:Transclusion"
1878 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a&#124;b"}},"i":0}}]}'>http://foo.com/a|b</a></p>
1882 Parsoid: Pipe in external link target and content in template parameter
1884 parsoid=html2wt,wt2wt
1886 {{echo|[http://foo.com/a|b a|b]}}
1888 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1889 typeof="mw:Transclusion"
1890 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
1891 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
1895 Templates: Dont escape already nowiki-escaped text in template parameters
1897 parsoid=html2wt,wt2wt
1899 {{echo|foo<nowiki>|</nowiki>bar}}
1900 {{echo|<nowiki><div></nowiki>}}
1901 {{echo|<nowiki></nowiki>}}
1903 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<nowiki>|</nowiki>bar"}},"i":0}}]}'}'>foo</span><span typeof="mw:Nowiki" about="#mwt1">|</span><span about="#mwt1">bar</span>
1904 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt2" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki>&lt;div&gt;</nowiki>"}},"i":0}}]}'><span typeof="mw:Entity"><</span>div<span typeof="mw:Entity">></span></span>
1905 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}}]}'></span>
1911 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
1913 parsoid=html2wt,wt2wt
1915 {{echo|{{echo|1=bar}}}}
1917 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{echo|1=bar}}"}},"i":0}}]}'>bar</p>
1921 ### Parsoid-centric tests for testing RT edge cases for pre
1925 1a. Indent-Pre and Comments
1938 1b. Indent-Pre and Comments
1951 1c. Indent-Pre and Comments
1964 1d. Indent-Pre and Comments
1965 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
1978 2a. Indent-Pre and tables
1999 2b. Indent-Pre and tables
2015 2c. Indent-Pre and tables (bug 42252)
2032 3a. Indent-Pre and block tags (single-line html)
2036 <blockquote> foo </blockquote>
2041 <blockquote> foo </blockquote>
2042 <pre><span> foo </span>
2047 3b. Indent-Pre and block tags (pre-content on separate line)
2111 4. Multiple spaces at start-of-line
2130 5. White-space in indent-pre
2131 NOTE: the white-space char on 2nd line is significant
2144 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2167 7a. Indent-pre and category links
2169 parsoid=wt2html,wt2wt
2171 [[Category:foo]] <!-- No pre-wrapping -->
2172 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2174 <link rel="mw:WikiLink/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2175 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2176 <link rel="mw:WikiLink/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2180 7b. Indent-pre and category links
2182 parsoid=wt2html,wt2wt
2185 [[Category:foo]] {{echo|b}}
2188 <link rel="mw:WikiLink/Category" href="./Category:Foo"> a
2190 <link rel="mw:WikiLink/Category" href="./Category:Foo"> <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b"}},"i":0}}]}'>b</span></pre>
2194 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2198 HTML-pre: 1. embedded newlines
2234 HTML-pre: 2: indented text
2247 HTML-pre: 3: other wikitext
2268 ### Definition lists
2276 <dt> name </dt>
2284 Definition list for indentation only
2296 Definition list with no space
2309 Definition list with URL link
2311 ; http://example.com/ : definition
2314 <dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2322 Definition list with bracketed URL link
2324 ;[http://www.example.com/ Example]:Something about it
2327 <dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2328 <dd>Something about it
2335 Definition list with wikilink containing colon
2337 ; [[Help:FAQ]]: The least-read page on Wikipedia
2340 <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>
2341 <dd> The least-read page on Wikipedia
2347 # At Brion's and JeLuF's insistence... :)
2349 Definition list with news link containing colon
2351 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2354 <dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2355 <dd> This isn't even a real newsgroup!
2362 Malformed definition list with colon
2364 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2367 <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
2374 Definition lists: colon in external link text
2376 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2379 <dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2380 <dd> OK, I made that up
2387 Definition lists: colon in HTML attribute
2389 ;<b style="display: inline">bold</b>
2392 <dt><b style="display: inline">bold</b>
2399 Definition lists: self-closed tag
2401 ;one<br/>two : two-line fun
2404 <dt>one<br />two </dt>
2412 Bug 11748: Literal closing tags
2416 <dd>test test test test test</dd>
2418 <dd>test test test test test</dd>
2423 <dd>test test test test test</dd>
2425 <dd>test test test test test</dd>
2431 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2434 ; term : description
2440 <dt> term </dt>
2454 Definition list with empty definition and following paragraph
2469 Nested definition lists using html syntax
2486 Definition Lists: No nesting: Multiple dd's
2504 Definition Lists: Indentation: Regular
2526 Definition Lists: Indentation: Missing 1st level
2546 Definition Lists: Indentation: Multi-level indent
2564 Definition Lists: Hacky use to indent tables
2571 should be left alone
2573 <dl><dd><dl><dd><table>
2578 </td></tr></table></dd></dl></dd></dl>
2580 should be left alone
2586 Definition Lists: Hacky use to indent tables (WS-insensitive)
2595 <dd> <table><tr><td>a</td></tr></table> </dd>
2598 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2599 ## as an empty dt item. It also ignores all but the last ";" when followed
2600 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2601 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2604 ## Ex: ";;t2 ::d2" is transformed into:
2616 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2617 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2628 ## All Parsoid only definition list tests have this difference.
2630 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2631 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2634 Table / list interaction: indented table with lists in table contents
2660 </td></tr></table></dd></dl>
2665 Table / list interaction: lists nested in tables nested in indented lists
2696 </td></tr></table></dd></dl>
2707 Definition Lists: Nesting: Multi-level (Parsoid only)
2737 Definition Lists: Nesting: Test 2 (Parsoid only)
2757 Definition Lists: Nesting: Test 3 (Parsoid only)
2785 Definition Lists: Nesting: Test 4
2806 ## The Parsoid team believes the following three test exposes a
2807 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2808 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2810 Definition Lists: Mixed Lists: Test 1 (php)
2837 Definition Lists: Mixed Lists: Test 1 (parsoid)
2861 Definition Lists: Mixed Lists: Test 2
2880 Definition Lists: Mixed Lists: Test 3
2905 Definition Lists: Mixed Lists: Test 4
2926 Definition Lists: Mixed Lists: Test 5
2947 Definition Lists: Mixed Lists: Test 6
2974 Definition Lists: Mixed Lists: Test 7
2993 Definition Lists: Mixed Lists: Test 8
3017 Definition Lists: Mixed Lists: Test 9
3034 Definition Lists: Mixed Lists: Test 10
3052 # The Parsoid team disagrees with the PHP parser's seemingly-random
3053 # rules regarding dd/dt on the next two tests. Parsoid is more
3054 # consistent, and recognizes the shared nesting and keeps the
3055 # still-open tags around until the nesting is complete.
3058 Definition Lists: Mixed Lists: Test 11 (php)
3099 Definition Lists: Mixed Lists: Test 11 (parsoid)
3121 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3122 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3126 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3127 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3137 Definition Lists: Weird Ones: Test 1 (php)
3141 *#;*::;; foo : bar (who uses this?)
3152 <dt> bar (who uses this?)
3172 Definition Lists: Weird Ones: Test 1 (parsoid)
3176 *#;*::;; foo : bar (who uses this?)
3193 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3194 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3209 External links: non-bracketed
3211 Non-bracketed: http://example.com
3213 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3218 External links: numbered
3220 Numbered: [http://example.com]
3221 Numbered: [http://example.net]
3222 Numbered: [http://example.com]
3224 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3225 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3226 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3231 External links: specified text
3233 Specified text: [http://example.com link]
3235 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3240 External links: trail
3242 Linktrails should not work for external links: [http://example.com link]s
3244 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3249 External links: dollar sign in URL
3251 http://example.com/1$2345
3253 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3258 External links: dollar sign in URL (named)
3260 [http://example.com/1$2345]
3262 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3267 External links: open square bracket forbidden in URL (bug 4377)
3269 http://example.com/1[2345
3271 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3276 External links: open square bracket forbidden in URL (named) (bug 4377)
3278 [http://example.com/1[2345]
3280 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3285 External links: nowiki in URL link text (bug 6230)
3287 [http://example.com/ <nowiki>''example site''</nowiki>]
3289 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3294 External links: newline forbidden in text (bug 6230 regression check)
3296 [http://example.com/ first
3299 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3305 External links: Pipe char between url and text
3307 [http://example.com | link]
3309 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3314 External links: protocol-relative URL in brackets
3316 [//example.com/ Test]
3318 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3323 External links: protocol-relative URL in brackets without text
3327 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3332 External links: protocol-relative URL in free text is left alone
3336 <p>//example.com/Foo
3341 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3343 foo//example.com/Foo
3345 <p>foo//example.com/Foo
3352 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3354 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3359 External image from https
3361 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3363 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3368 External image (when not allowed)
3370 wgAllowExternalImages=0
3372 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3374 <p>External image: <a rel="nofollow" class="external free" href="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png">http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png</a>
3379 Link to non-http image, no img tag
3381 Link to non-http image, no img tag: ftp://example.com/test.jpg
3383 <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>
3388 External links: terminating separator
3390 Terminating separator: http://example.com/thing,
3392 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3397 External links: intervening separator
3399 Intervening separator: http://example.com/1,2,3
3401 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3406 External links: old bug with URL in query
3408 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3410 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3415 External links: old URL-in-URL bug, mixed protocols
3417 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3419 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3424 External links: URL in text
3426 URL in text: [http://example.com http://example.com]
3428 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3433 External links: Clickable images
3435 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3437 <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>
3442 External links: raw ampersand
3444 Old & use: http://x&y
3446 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3451 External links: encoded ampersand
3453 Old & use: http://x&y
3455 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3460 External links: encoded equals (bug 6102)
3462 http://example.com/?foo=bar
3464 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3469 External links: [raw ampersand]
3471 Old & use: [http://x&y]
3473 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3478 External links: [encoded ampersand]
3480 Old & use: [http://x&y]
3482 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3487 External links: [encoded equals] (bug 6102)
3489 [http://example.com/?foo=bar]
3491 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3496 External links: [IDN ignored character reference in hostname; strip it right off]
3498 [http://e‌xample.com/]
3500 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3504 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3505 # Where an external link could easily circumvent the sanitization of the text of
3506 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3507 # test demands a higher standard. That's a bit strange.
3511 # http://example.com -> [http://example.com|http://example.com]
3512 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3514 # The first example is sanitized, but the second is not. Any security benefits
3515 # from this production are trivial to circumvent. Either remove this test and
3516 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3517 # the test accordingly.
3522 External links: IDN ignored character reference in hostname; strip it right off
3524 http://e‌xample.com/
3526 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3531 External links: www.jpeg.org (bug 554)
3535 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3540 External links: URL within URL (original bug 2)
3542 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3544 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3549 BUG 361: URL inside bracketed URL
3551 [http://www.example.com/foo http://www.example.com/bar]
3553 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3558 BUG 361: URL within URL, not bracketed
3560 http://www.example.com/foo?=http://www.example.com/bar
3562 <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>
3567 BUG 289: ">"-token in URL-tail
3569 http://www.example.com/<hello>
3571 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3576 BUG 289: literal ">"-token in URL-tail
3578 http://www.example.com/<b>html</b>
3580 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3585 BUG 289: ">"-token in bracketed URL
3587 [http://www.example.com/<hello> stuff]
3589 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3594 BUG 289: literal ">"-token in bracketed URL
3596 [http://www.example.com/<b>html</b> stuff]
3598 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3603 BUG 289: literal double quote at end of URL
3605 http://www.example.com/"hello"
3607 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3612 BUG 289: literal double quote in bracketed URL
3614 [http://www.example.com/"hello" stuff]
3616 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3621 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3623 [http://www.example.com test]
3625 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3630 External links: link text with spaces
3632 [http://www.example.com a b c]
3633 [http://www.example.com ''a'' ''b'']
3635 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3636 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3641 External links: wiki links within external link (Bug 3695)
3643 [http://example.com [[wikilink]] embedded in ext link]
3645 <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>
3650 BUG 787: Links with one slash after the url protocol are invalid
3654 [http:/example.com title]
3656 <p>http:/example.com
3657 </p><p>[http:/example.com title]
3662 Bracketed external links with template-generated invalid target
3664 [{{echo|http:/example.com}} title]
3666 <p>[http:/example.com title]
3671 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3673 ''[http://example.com text'']
3674 [http://example.com '''text]'''
3675 ''Something [http://example.com in italic'']
3676 ''Something [http://example.com mixed''''', even bold]'''
3677 '''''Now [http://example.com both''''']
3679 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3680 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3681 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3682 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3683 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3689 Bug 4781: %26 in URL
3691 http://www.example.com/?title=AT%26T
3693 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3697 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3698 # % is actually legal in HTML5. Any change in output would need testing though.
3700 Bug 4781, 5267: %25 in URL
3702 http://www.example.com/?title=100%25_Bran
3704 <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>
3709 Bug 4781, 5267: %28, %29 in URL
3711 http://www.example.com/?title=Ben-Hur_%281959_film%29
3713 <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>
3719 Bug 4781: %26 in autonumber URL
3721 [http://www.example.com/?title=AT%26T]
3723 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3728 Bug 4781, 5267: %26 in autonumber URL
3730 [http://www.example.com/?title=100%25_Bran]
3732 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3737 Bug 4781, 5267: %28, %29 in autonumber URL
3739 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3741 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3747 Bug 4781: %26 in bracketed URL
3749 [http://www.example.com/?title=AT%26T link]
3751 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3756 Bug 4781, 5267: %26 in bracketed URL
3758 [http://www.example.com/?title=100%25_Bran link]
3760 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3765 Bug 4781, 5267: %28, %29 in bracketed URL
3767 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3769 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3774 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3776 Some [http://example.com/ pretty ''italics'' and stuff]!
3778 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3783 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3785 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3787 <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>
3792 External link containing double-single-quotes with no space separating the url from text in italics
3794 [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]].]
3796 <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>
3801 External link with comments in link text
3803 [http://www.google.com Google <!-- comment -->]
3805 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3810 URL-encoding in URL functions (single parameter)
3812 {{localurl:Some page|amp=&}}
3814 <p>/index.php?title=Some_page&amp=&
3819 URL-encoding in URL functions (multiple parameters)
3821 {{localurl:Some page|q=?&=&}}
3823 <p>/index.php?title=Some_page&q=?&amp=&
3830 http://example.com/index.php?foozoid%5B%5D=bar
3832 http://example.com/index.php?foozoid[]=bar
3834 <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>
3835 </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>
3840 IPv6 urls (bug 21261)
3844 http://[2404:130:0:1000::187:2]/index.php
3846 <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>
3851 Non-extlinks in brackets
3860 [{{echo|foo}} ''bar'']
3861 [{{echo|foo}}l's] errand
3862 [{{echo|foo}}l's errand]
3864 [url=http://example.com]
3877 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3882 Parsoid: Percent encoding in external links
3886 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3888 <p><a rel="mw:ExtLink"
3889 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3893 Parsoid: use url link syntax for links where the content is equal the link
3900 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3910 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3912 Normal text. '''''Bold italic text.''''' Normal text.
3914 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3915 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3921 Unclosed and unmatched quotes (php)
3925 '''''Bold italic text '''with bold deactivated''' in between.'''''
3927 '''''Bold italic text ''with italic deactivated'' in between.'''''
3931 ..spanning two paragraphs (should not work).'''
3933 '''Bold tag left open
3935 ''Italic tag left open
3939 <!-- Unmatching number of opening, closing tags: -->
3940 '''This year''''s election ''should'' beat '''last year''''s.
3942 ''Tom'''s car is bigger than ''Susan'''s.
3944 Plain ''italic'''s plain
3946 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3947 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3948 </p><p><b>Bold text..</b>
3949 </p><p>..spanning two paragraphs (should not work).
3950 </p><p><b>Bold tag left open</b>
3951 </p><p><i>Italic tag left open</i>
3953 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3954 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3955 </p><p>Plain <i>italic'</i>s plain
3958 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3959 # parser strips. The wikitext contains just the first half of the bold
3962 Unclosed and unmatched quotes (parsoid)
3966 '''''Bold italic text '''with bold deactivated''' in between.'''''
3968 '''''Bold italic text ''with italic deactivated'' in between.'''''
3972 ..spanning two paragraphs (should not work).'''
3974 '''Bold tag left open
3976 ''Italic tag left open
3980 <!-- Unmatching number of opening, closing tags: -->
3981 '''This year''''s election ''should'' beat '''last year''''s.
3983 ''Tom'''s car is bigger than ''Susan'''s.
3985 Plain ''italic'''s plain
3987 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3988 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3989 </p><p><b>Bold text..</b>
3990 </p><p>..spanning two paragraphs (should not work).<b></b>
3991 </p><p><b>Bold tag left open</b>
3992 </p><p><i>Italic tag left open</i>
3994 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3995 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3996 </p><p>Plain <i>italic'</i>s plain
4003 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4006 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4007 # is the bare minimum required by the spec, see:
4008 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4010 A table with no data. (php)
4017 # Parsoid team replies: empty table tags are legal in HTML5
4019 A table with no data. (parsoid)
4028 # A table with nothing but a caption is invalid XHTML, we might want to render
4029 # this as <p>caption</p>
4031 A table with nothing but a caption (php)
4041 </caption><tr><td></td></tr></table>
4044 # Parsoid team replies: table with only a caption is legal in HTML5
4046 A table with nothing but a caption (parsoid)
4054 <table><caption> caption</caption></table>
4058 A table with caption with default-spaced attributes and a table row
4061 |+ style="color: red;" | caption1
4067 <caption style="color: red;"> caption1
4076 A table with captions with non-default spaced attributes and a table row
4079 |+style="color: red;"|caption2
4080 |+ style="color: red;"| caption3
4086 <caption style="color: red;">caption2
4088 <caption style="color: red;"> caption3
4097 Table td-cell syntax variations
4101 | foo bar foo || baz
4102 | style='color:red;' | baz
4103 | style='color:red;' || baz
4110 <td> foo bar foo </td>
4113 <td style="color:red;"> baz
4115 <td> style='color:red;' </td>
4143 Simple table but with multiple dashes for row wikitext
4161 Multiplication table
4163 {| border="1" cellpadding="2"
4164 |+Multiplication table
4166 ! × !! 1 !! 2 !! 3
4184 <table border="1" cellpadding="2">
4185 <caption>Multiplication table
4232 Accept "||" in table headings
4247 Accept "||" in indented table headings
4257 </th></tr></table></dd></dl>
4262 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4279 Accept "| !" at start of line in tables (ignore !-attribute)
4283 | !style="color:red" | bar
4295 Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/-
4299 |style='color:red;'|+1
4300 |style='color:blue;'|-1
4312 <td style="color:red;">+1
4314 <td style="color:blue;">-1
4338 |rowspan=2| Cell 2, row 1 (and 2)
4349 <td rowspan="2"> Cell 2, row 1 (and 2)
4367 {| bgcolor=#ABCDEF border=2
4372 |the original table again
4380 <table bgcolor="#ABCDEF" border="2">
4388 <td>the original table again
4394 Invalid attributes in table cell (bug 1830)
4409 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4412 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4416 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4417 <td>]" onmouseover="alert(document.cookie)">test
4426 Indented table markup mixed with indented pre content (proposed in bug 6200)
4431 Text that should be rendered preformatted
4439 <pre>Text that should be rendered preformatted
4448 Template-generated table cell attributes and cell content
4457 <td style="color: red"> Foo
4459 <td style="color: red"> Foo
4465 Template-generated table cell attributes and cell content (2)
4468 |align=center {{table_attribs}}
4473 <td align="center" style="color: red"> Foo
4479 Template-generated table cell attributes and cell content (3)
4482 |align=center {{table_cells}}
4487 <td align="center" style="color: red"> Foo </td>
4495 Table with row followed by newlines and table heading
4513 Table with empty line following the start tag
4530 # FIXME: Preserve the attribute properly (with an empty string as value) in
4531 # the PHP parser. Parsoid implements the behavior below.
4533 Table attributes with empty value
4545 </td></tr></tbody></table>
4550 Wikitext table with a lot of comments
4573 Wikitext table with double-line table cell
4590 Table cell with a single comment
4606 # The expected HTML structure in this test is debatable. The PHP parser does
4607 # not parse this kind of table at all. The main focus for Parsoid is on
4608 # round-tripping, so this output is ok for now. TODO: revisit!
4610 Wikitext table with html-syntax row (Parsoid)
4622 <td>foo</td></tr></tbody></table>
4626 Implicit <td> after a |-
4627 (PHP parser relies on Tidy to add the missing <td> tags)
4629 parsoid=wt2html,wt2wt
4642 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4643 (PHP parser relies on Tidy to add the missing <td> tags)
4645 parsoid=wt2html,wt2wt
4657 <tr><td><pre>a</pre></td></tr>
4658 <tr><td> b</td></tr>
4664 Lists should be recognized in an implicit <td> context
4665 (PHP parser relies on Tidy to add the missing <td> tags)
4667 parsoid=wt2html,wt2wt
4684 Parsoid: Round-trip tables directly followed by content (bug 51219)
4686 parsoid=wt2html,wt2wt
4698 <td>foo</td></tr></tbody></table> bar
4702 <td>baz</td></tr></tbody></table><b>quux</b>
4706 Parsoid: Default to a newline after tables in new content (bug 51219)
4713 <nowiki> </nowiki>bar
4720 <tr><td>foo</td></tr></tbody></table> bar
4722 <tr><td>baz</td></tr></tbody></table><b>quux</b>
4729 Plain link, capitalized
4733 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4738 Plain link, uncapitalized
4742 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4749 [[Main Page|The Main Page]]
4751 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4756 Piped link with comment in link text
4758 [[Main Page|The Main<!--front--> Page]]
4760 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4769 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4774 Broken link with fragment
4776 [[Zigzagzogzagzig#zug]]
4778 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4783 Special page link with fragment
4785 [[Special:Version#anchor]]
4787 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4792 Nonexistent special page link with fragment
4794 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4796 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4803 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4805 <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>
4812 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4814 <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>!!!
4825 Bug 43661: Piped links with identical prefixes
4827 [[prefixed article|prefixed articles with spaces]]
4829 [[prefixed article|prefixed articlesaoeu]]
4831 [[Main Page|Main Page test]]
4833 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4834 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4835 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4841 Link with HTML entity in suffix / tail
4843 [[Main Page]]", [[Main Page]]a
4845 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4850 Link with 3 brackets
4859 Piped link with 3 brackets
4861 [[[main page|the main page]]]
4863 <p>[[[main page|the main page]]]
4868 Link with multiple pipes
4870 [[Main Page|The|Main|Page]]
4872 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4879 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4881 <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>
4886 MemoryAlpha:AlphaTest
4888 This is an article in the MemoryAlpha namespace
4889 (which shadows the memoryalpha interwiki link).
4893 Namespace takes precedence over interwiki link (bug 51680)
4895 [[MemoryAlpha:AlphaTest]]
4897 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
4902 Piped link to namespace
4904 [[Meta:Disclaimers|The disclaimers]]
4906 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4913 [[Usually caused by a typo (oops}]]
4915 <p>[[Usually caused by a typo (oops}]]
4920 Link containing % (not as a hex sequence)
4924 <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>
4929 Link containing % as a single hex sequence interpreted to char
4933 <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>
4938 Link containing % as a double hex sequence interpreted to hex sequence
4942 <p>[[7%2525 Solution]]
4947 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4948 Example for such a section: == < ==
4950 [[%23%3c]][[%23%3e]]
4952 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4957 Link containing "<#" and ">#" as a hex sequences
4959 [[%3c%23]][[%3e%23]]
4961 <p>[[%3c%23]][[%3e%23]]
4966 Link containing an equals sign
4968 [[Special:BookSources/isbn=4-00-026157-6]]
4970 <p><a href="/wiki/Special:BookSources/isbn%3D4-00-026157-6" title="Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a>
4977 Just a test of an article title containing a tilde.
4980 # note that links containing signatures, like [[Foo~~~~]], are
4981 # massaged by the pre-save transform (PST) and so the tildes are never
4982 # seen by the parser.
4984 Link containing a tilde
4988 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4993 Link containing double-single-quotes '' (bug 4598)
4995 [[Lista d''e paise d''o munno]]
4997 <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>
5002 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5004 Some [[Link|pretty ''italics'' and stuff]]!
5006 <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>!
5011 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5013 ''Some [[Link|pretty ''italics'' and stuff]]!
5015 <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>
5020 Link with double quotes in title part (literal) and alternate part (interpreted)
5022 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5026 [[''Pentecoste''|Pentecoste]]
5028 [[''Pentecoste''|''Pentecoste'']]
5030 <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>
5031 </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>
5032 </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>
5033 </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>
5038 Broken image links with HTML captions (bug 39700)
5040 [[File:Nonexistent|<script></script>]]
5041 [[File:Nonexistent|100px|<script></script>]]
5042 [[File:Nonexistent|<]]
5043 [[File:Nonexistent|a<i>b</i>c]]
5045 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5046 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5047 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5048 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5055 [[http://www.example.com]]
5057 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5062 Plain link to URL with link text
5064 [[http://www.example.com Link text]]
5066 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5071 Plain link to protocol-relative URL
5073 [[//www.example.com]]
5075 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5080 Plain link to protocol-relative URL with link text
5082 [[//www.example.com Link text]]
5084 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5089 Plain link to page with question mark in title
5095 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5096 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5101 # I'm fairly sure the expected result here is wrong.
5102 # We want these to be URL links, not pseudo-pages with URLs for titles....
5103 # However the current output is also pretty screwy.
5106 # I'm changing it to match the current output--it arguably makes more
5107 # sense in the light of the test above. Old expected result was:
5108 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5110 # But I think this test is bordering on "garbage in, garbage out" anyway.
5115 Piped link to URL: [[http://www.example.com|an example URL]]
5117 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5122 BUG 2: [[page|http://url/]] should link to page, not http://url/
5124 [[Main Page|http://url/]]
5126 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5131 BUG 337: Escaped self-links should be bold
5135 [[Bug462]] [[Bug462]]
5137 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5142 Self-link to section should not be bold
5146 [[Main Page#section]]
5148 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5159 Self-link to numeric title
5165 <p><strong class="selflink">0</strong>
5170 Link to numeric-equivalent title
5176 <p><a href="/wiki/00" title="00">00</a>
5181 <nowiki> inside a link
5183 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5185 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5190 Non-breaking spaces in title
5192 [[ Main Page ]]
5194 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5199 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5205 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5210 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5216 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5221 Internal link with en linktrail: no apostrophes (bug 27473)
5227 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5232 Internal link with ca linktrail with apostrophes (bug 27473)
5238 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5243 Internal link with kaa linktrail with apostrophes (bug 27473)
5249 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5260 Internal link with is link prefix
5264 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5266 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5277 Internal link with is link trail and link prefix
5281 [[mótmælendatrú|xxx]]ar
5283 mótmælenda[[söfnuður]]
5284 mótmælenda[[söfnuður|söfnuðir]]
5285 mótmælenda[[söfnuður|söfnuðir]]xxx
5287 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
5288 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
5289 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
5290 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
5291 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
5296 Parsoid link trail escaping
5298 parsoid=html2wt,html2html
5302 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
5306 Parsoid link prefix escaping
5309 parsoid=html2wt,html2html
5311 Aðrir mótmælenda<nowiki/>[[söfnuður]]
5313 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5317 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5325 [http://wp.org ''foo'']
5327 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5328 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5329 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5330 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5335 ### Interwiki links (see maintenance/interwiki.sql)
5339 Inline interwiki link
5341 [[MeatBall:SoftSecurity]]
5343 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5348 Inline interwiki link with empty title (bug 2372)
5352 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5357 Interwiki link encoding conversion (bug 1636)
5359 *[[Wikipedia:ro:Olteniţa]]
5360 *[[Wikipedia:ro:Olteniţa]]
5363 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5365 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5372 Interwiki link with fragment (bug 2130)
5374 [[MeatBall:SoftSecurity#foo]]
5376 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5382 ### Interlanguage links
5383 ### Language links (so that searching for '### language' matches..)
5397 Double interlanguage link
5408 Interlanguage link, with prefix links
5420 Double interlanguage link, with prefix links (bug 8897)
5433 Parsoid-specific test: Wikilinks with should RT properly
5439 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5444 Parsoid bug 53221: Wikilinks should be properly entity-escaped
5448 He&nbsp;llo [[Foo|He&nbsp;llo]]
5450 He&nbsp;llo [[He&nbsp;llo]]
5452 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5453 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5457 Parsoid: handle constructor well
5465 <p data-parsoid="{"dsr":[0,15,0,0]}"><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"},"dsr":[0,15,2,2]}">constructor</a></p>
5468 <p data-parsoid="{"dsr":[17,36,0,0]}"><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"},"dsr":[17,36,2,2]}">constructor:foo</a></p>
5472 Parsoid: recognize interlanguage links without a target page
5479 <link rel="mw:WikiLink/Language" href="http://ko.wikipedia.org/wiki/"></p>
5483 Parsoid: recognize interwiki links without a target page
5489 <p><a rel="mw:WikiLink/Interwiki" href="http://ko.wikipedia.org/wiki/">ko:</a></p>
5493 ### Redirects, Parsoid-only
5496 Simple redirect to page
5500 #REDIRECT [[Main Page]]
5502 <link rel="mw:PageProp/redirect" href="./Main_Page">
5506 Optional colon in #REDIRECT
5508 # the colon is archaic syntax. we support it for wt2html, but we
5509 # don't care that it roundtrips back to the modern syntax.
5510 parsoid=wt2html,html2html
5512 #REDIRECT:[[Main Page]]
5514 <link rel="mw:PageProp/redirect" href="./Main_Page">
5518 Whitespace in #REDIRECT with optional colon
5520 # the colon and gratuitous whitespace is archaic syntax. we support
5521 # it for wt2html, but we don't care that it roundtrips back to the
5522 # modern syntax (without extra whitespace)
5523 parsoid=wt2html,html2html
5530 <link rel="mw:PageProp/redirect" href="./Main_Page">
5534 Piped link in #REDIRECT
5536 # content after piped link is ignored. we support this syntax,
5537 # but don't care that the piped link is lost when we roundtrip this.
5540 #REDIRECT [[Main Page|bar]]
5542 <link rel="mw:PageProp/redirect" href="./Main_Page">
5546 Redirect to category
5550 #REDIRECT [[Category:Foo]]
5552 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5556 Redirect to category with URL encoding
5560 #REDIRECT [[Category%3AFoo]]
5562 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5566 Redirect to category page
5568 parsoid=wt2html,html2html
5570 #REDIRECT [[:Category:Foo]]
5572 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5576 Redirect to image page (1)
5580 #REDIRECT [[File:Wiki.png]]
5582 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5586 Redirect to image page (2)
5590 #REDIRECT [[Image:Wiki.png]]
5592 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5596 Redirect to language
5600 #REDIRECT [[en:File:Wiki.png]]
5602 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5606 Redirect to interwiki
5610 #REDIRECT [[meatball:File:Wiki.png]]
5612 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5616 Non-English #REDIRECT
5621 #TILVÍSUN [[Main Page]]
5623 <link rel="mw:PageProp/redirect" href="./Main_Page">
5640 Broken br tag sanitization
5650 # TODO: Fix html2html mode (bug 51055)!
5652 Parsoid: Broken br tag recognition
5662 Incorrecly removing closing slashes from correctly formed XHTML
5664 <br style="clear:both;" />
5666 <p><br style="clear:both;" />
5671 Failing to transform badly formed HTML into correct XHTML
5673 <br style="clear: left;">
5674 <br style="clear: right;">
5675 <br style="clear: both;">
5677 <p><br style="clear: left;" />
5678 <br style="clear: right;" />
5679 <br style="clear: both;" />
5684 Handling html with a div self-closing tag
5693 <p><div title />
5697 <p><div title=bar />
5698 <div title=bar/>
5700 <div title="bar/"></div>
5706 Handling html with a br self-closing tag
5715 <p><br title="title" />
5716 <br title="title" />
5725 Horizontal ruler (should it add that extra space?)
5739 Horizontal ruler -- 4+ dashes render hr
5748 Horizontal ruler -- eats additional dashes on the same line
5757 Horizontal ruler -- does not collapse dashes on consecutive lines
5768 Horizontal ruler -- <4 dashes render as plain text
5777 Horizontal ruler -- Supports content following dashes on same line
5786 ### Block-level elements
5834 ***#Number on level 4
5836 **#Number on level 3
5837 **#Number on level 3
5841 #** Level 3, but ordered
5864 <li>Number on level 4
5872 <li>Number on level 3
5874 <li>Number on level 3
5897 <li> Level 3, but ordered
5943 Nested lists 3 (first element empty)
5960 Nested lists 4 (first element empty)
5978 Nested lists 5 (both elements empty)
5996 Nested lists 6 (both elements empty)
6013 Nested lists 7 (skip initial nesting levels)
6031 Nested lists 8 (multiple nesting transitions)
6057 1. Lists with start-of-line-transparent tokens before bullets: Comments
6075 2. Lists with start-of-line-transparent tokens before bullets: Template close
6090 List items are not parsed correctly following a <pre> block (bug 785)
6108 List items from template
6119 * notSOL{{inner list}}
6150 List interrupted by empty line or heading
6169 <h2><span class="mw-headline" id="A_heading">A heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
6171 <li> Another list item
6178 Multiple list tags generated by templates
6193 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6196 <!--This line will NOT split the list-->
6198 <!--This line will NOT split the list either-->
6200 <!--foo--> <!----> <!--This line NOT split the list either-->
6217 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6220 <!--This line will NOT split the list-->
6222 <!--This line will NOT split the list either-->
6224 <!--foo--> <!----> <!--This line NOT split the list
6243 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6245 parsoid=wt2html,wt2wt
6249 * {{echo|<li>templated li-hack}}
6250 * <!--foo--> <li> unsupported li-hack with preceding comments
6253 <li><li>not a li-hack
6260 <li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<li>templated li-hack"}}}}]}'>templated li-hack</li>
6261 <li> <!--foo--> </li>
6262 <li> li-hack with preceding comments</li>
6273 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6300 Parsoid: Test of whitespace serialization with Templated bullets
6307 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6311 # ------------------------------------------------------------------------
6312 # The next set of tests are about Parsoid's ability to handle badly nested
6313 # tags (parse, minimize scope of fixup, and roundtrip back)
6314 # ------------------------------------------------------------------------
6317 Unbalanced closing block tags break a list
6318 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6338 Unbalanced closing non-block tags don't break a list
6339 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6358 Unclosed formatting tags that straddle lists are closed and reopened
6359 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6375 List embedded in a non-block tag
6376 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
6384 <p><small></small></p>
6390 <p><small></small></p>
6394 Table with missing opening <tr> tag
6396 parsoid=wt2html,wt2wt
6414 # Note that the current date is hard-coded as
6415 # 1970-01-01T00:02:03Z (a Thursday)
6416 # when running parser tests. The timezone is also fixed to GMT, so
6417 # local date will be identical to current date.
6420 Magic Word: {{CURRENTDAY}}
6429 Magic Word: {{CURRENTDAY2}}
6438 Magic Word: {{CURRENTDAYNAME}}
6447 Magic Word: {{CURRENTDOW}}
6456 Magic Word: {{CURRENTMONTH}}
6465 Magic Word: {{CURRENTMONTH1}}
6474 Magic Word: {{CURRENTMONTHABBREV}}
6476 {{CURRENTMONTHABBREV}}
6483 Magic Word: {{CURRENTMONTHNAME}}
6485 {{CURRENTMONTHNAME}}
6492 Magic Word: {{CURRENTMONTHNAMEGEN}}
6494 {{CURRENTMONTHNAMEGEN}}
6501 Magic Word: {{CURRENTTIME}}
6510 Magic Word: {{CURRENTHOUR}}
6519 Magic Word: {{CURRENTWEEK}} (@bug 4594)
6528 Magic Word: {{CURRENTYEAR}}
6537 Magic Word: {{CURRENTTIMESTAMP}}
6539 {{CURRENTTIMESTAMP}}
6546 Magic Words LOCAL (UTC)
6550 * {{LOCALMONTHNAME}}
6551 * {{LOCALMONTHNAMEGEN}}
6552 * {{LOCALMONTHABBREV}}
6561 * {{LOCALTIMESTAMP}}
6597 Magic Word: {{FULLPAGENAME}}
6599 title=[[User:Ævar Arnfjörð Bjarmason]]
6603 <p>User:Ævar Arnfjörð Bjarmason
6608 Magic Word: {{FULLPAGENAMEE}}
6610 title=[[User:Ævar Arnfjörð Bjarmason]]
6614 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6619 Magic Word: {{TALKSPACE}}
6621 title=[[User:Ævar Arnfjörð Bjarmason]]
6630 Magic Word: {{TALKSPACE}}, same namespace
6632 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6641 Magic Word: {{TALKSPACE}}, main namespace
6643 title=[[Parser Test]]
6652 Magic Word: {{TALKSPACEE}}
6654 title=[[User:Ævar Arnfjörð Bjarmason]]
6663 Magic Word: {{SUBJECTSPACE}}
6665 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6674 Magic Word: {{SUBJECTSPACE}}, same namespace
6676 title=[[User:Ævar Arnfjörð Bjarmason]]
6685 Magic Word: {{SUBJECTSPACE}}, main namespace
6687 title=[[Parser Test]]
6695 Magic Word: {{SUBJECTSPACEE}}
6697 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6706 Magic Word: {{NAMESPACE}}
6708 title=[[User:Ævar Arnfjörð Bjarmason]]
6717 Magic Word: {{NAMESPACEE}}
6719 title=[[User:Ævar Arnfjörð Bjarmason]]
6728 Magic Word: {{NAMESPACENUMBER}}
6730 title=[[User:Ævar Arnfjörð Bjarmason]]
6739 Magic Word: {{SUBPAGENAME}}
6741 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6750 Magic Word: {{SUBPAGENAMEE}}
6752 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6761 Magic Word: {{ROOTPAGENAME}}
6763 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6767 <p>Ævar Arnfjörð Bjarmason
6772 Magic Word: {{ROOTPAGENAMEE}}
6774 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6778 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6783 Magic Word: {{BASEPAGENAME}}
6785 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6789 <p>Ævar Arnfjörð Bjarmason
6794 Magic Word: {{BASEPAGENAMEE}}
6796 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6800 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6805 Magic Word: {{TALKPAGENAME}}
6807 title=[[User:Ævar Arnfjörð Bjarmason]]
6811 <p>User talk:Ævar Arnfjörð Bjarmason
6816 Magic Word: {{TALKPAGENAMEE}}
6818 title=[[User:Ævar Arnfjörð Bjarmason]]
6822 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6827 Magic Word: {{SUBJECTPAGENAME}}
6829 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6833 <p>User:Ævar Arnfjörð Bjarmason
6838 Magic Word: {{SUBJECTPAGENAMEE}}
6840 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6842 {{SUBJECTPAGENAMEE}}
6844 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6849 Magic Word: {{NUMBEROFFILES}}
6858 Magic Word: {{PAGENAME}}
6860 title=[[User:Ævar Arnfjörð Bjarmason]]
6864 <p>Ævar Arnfjörð Bjarmason
6869 Magic Word: {{PAGENAME}} with metacharacters
6871 title=[['foo & bar = baz']]
6875 <p><i>'foo & bar = baz'</i>
6880 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6882 title=[[*RFC 1234 http://example.com/]]
6886 <p>*RFC 1234 http://example.com/
6891 Magic Word: {{PAGENAMEE}}
6893 title=[[User:Ævar Arnfjörð Bjarmason]]
6897 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6902 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6904 title=[[*RFC 1234 http://example.com/]]
6908 <p>*RFC_1234_http://example.com/
6913 Magic Word: {{REVISIONID}}
6922 Magic Word: {{SCRIPTPATH}}
6931 Magic Word: {{STYLEPATH}}
6940 Magic Word: {{SERVER}}
6944 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6949 Magic Word: {{SERVERNAME}}
6958 Magic Word: {{SITENAME}}
6967 Case-sensitive magic words, when cased differently, should just be template transclusions
6974 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6975 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6976 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6977 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6982 Case-insensitive magic words should still work with weird casing.
6992 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6997 Namespace 1 {{ns:1}}
7006 Namespace 1 {{ns:01}}
7015 Namespace 0 {{ns:0}} (bug 4783)
7023 Namespace 0 {{ns:00}} (bug 4783)
7031 Namespace -1 {{ns:-1}}
7040 Namespace User {{ns:User}}
7049 Namespace User talk {{ns:User_talk}}
7058 Namespace User talk {{ns:uSeR tAlK}}
7067 Namespace File {{ns:File}}
7076 Namespace File {{ns:Image}}
7085 Namespace (lang=de) Benutzer {{ns:User}}
7096 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7102 <p>Benutzer Diskussion
7110 {{urlencode:hi world?!}}
7111 {{urlencode:hi world?!|WIKI}}
7112 {{urlencode:hi world?!|PATH}}
7113 {{urlencode:hi world?!|QUERY}}
7126 Magic links: internal link to RFC (bug 479)
7130 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7135 Magic links: RFC (bug 479)
7139 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7144 Magic links: ISBN (bug 1937)
7148 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7153 Magic links: PMID incorrectly converts space to underscore
7157 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7166 Nonexistent template
7168 {{thistemplatedoesnotexist}}
7170 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7175 Template with invalid target containing tags
7177 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7179 <p>{{a<b>b</b>|foo|a=b|a = b}}
7184 Template with invalid target containing unclosed tag
7186 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7188 <p>{{a<b>|foo|a=b|a = b}}</b>
7195 This is a test template
7203 <p>This is a test template
7208 Template with explicit namespace
7212 <p>This is a test template
7220 This is a test template with parameter {{{param}}}
7226 {{paramtest|param=foo}}
7228 <p>This is a test template with parameter foo
7233 Template:paramtestnum
7239 Template unnamed parameter
7241 {{paramtestnum|Main Page|the main page}}
7243 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7248 Template:templatesimple
7254 Template:templateredirect
7256 #redirect [[Template:templatesimple]]
7260 Template:templateasargtestnum
7266 Template:templateasargtest
7268 {{template{{{templ}}}}}
7272 Template:templateasargtest2
7278 Template with template name as unnamed argument
7280 {{templateasargtestnum|templatesimple}}
7287 Template with template name as argument
7289 {{templateasargtest|templ=simple}}
7296 Template with template name as argument (2)
7298 {{templateasargtest2|templ=templatesimple}}
7305 Template:templateasargtestdefault
7307 {{{{{templ|templatesimple}}}}}
7317 Template with default value
7319 {{templateasargtestdefault}}
7326 Template with default value (value set)
7328 {{templateasargtestdefault|templ=templa}}
7337 {{templateredirect}}
7344 Template with argument in separate line
7346 {{ templateasargtest |
7354 Template with complex template as argument
7357 param ={{ templateasargtest |
7360 <p>This is a test template with parameter (test)
7365 Template with thumb image (with link in description)
7368 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
7370 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>
7375 Template:complextemplate
7377 {{{1}}} {{paramtest|
7378 param ={{{param}}}}}
7382 Template with complex arguments
7385 param ={{ templateasargtest |
7386 templ = simple }}|[[Template:complextemplate|link]]}}
7388 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
7393 BUG 553: link with two variables in a piped link
7396 |[[{{{1}}}|{{{2}}}]]
7401 <td>[[{{{1}}}|{{{2}}}]]
7407 Magic variable as template parameter
7409 {{paramtest|param={{SITENAME}}}}
7411 <p>This is a test template with parameter MediaWiki
7418 [[{{{param}}}|link]]
7422 Template parameter as link source
7424 {{linktest|param=Main Page}}
7426 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
7431 Template-generated attribute string (k='v')
7433 <span {{attr_str|id|v1}}>bar</span>
7435 <p><span id="v1">bar</span>
7442 including another template, {{paramtest|param={{{arg}}}}}
7446 Template passing argument to another template
7448 {{paramtest2|arg='hmm'}}
7450 <p>including another template, This is a test template with parameter 'hmm'
7461 Template as link source
7465 [[{{linktest2}}|Main Page]]
7467 [[{{linktest2}}]]Page
7469 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7470 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7471 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
7489 Template infinite loop
7493 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
7498 Template from main namespace
7517 BUG 529: Template with table, not included at beginning of line
7536 BUG 523: Template shouldn't eat newline (or add an extra one before table)
7556 BUG 41: Template parameters shown as broken links
7565 Template with targets containing wikilinks
7569 {{[[{{echo|foo}}]]}}
7571 {{{{echo|[[foo}}]]}}
7573 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7574 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7582 ''None'' of '''this''' should be
7584 but rather passed unmodified
7588 # hmm, fix this or just deprecate msgnw and document its behavior?
7594 {{msgnw:MSGNW test}}
7596 <p>''None'' of '''this''' should be
7598 but rather passed unmodified
7606 {{int:youhavenewmessages|lots of money|not!}}
7608 <p>You have lots of money (not!).
7615 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7619 <includeonly> and <noinclude> being included
7630 <onlyinclude>Foo</onlyinclude>bar
7634 <onlyinclude> being included
7646 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
7650 <onlyinclude> and <includeonly> being included
7659 <includeonly> and <noinclude> on a page
7661 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7668 Un-closed <noinclude>
7675 <onlyinclude> on a page
7677 <onlyinclude>Foo</onlyinclude>bar
7684 Un-closed <onlyinclude>
7691 Self-closed noinclude, includeonly, onlyinclude tags
7702 Unbalanced includeonly and noinclude tags
7706 |b</noinclude></noinclude>
7707 |c</noinclude></includeonly>
7708 |d</includeonly></includeonly>
7717 <td>c</includeonly>
7719 <td>d</includeonly></includeonly>
7725 Template:Includeonly section
7728 ==Includeonly section==
7734 Bug 6563: Edit link generation for section shown by <includeonly>
7736 {{includeonly section}}
7738 <h2><span class="mw-headline" id="Includeonly_section">Includeonly section</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
7739 <h2><span class="mw-headline" id="Section_T-1">Section T-1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
7743 # Uses same input as the contents of [[Template:Includeonly section]]
7745 Bug 6563: Section extraction for section shown by <includeonly>
7750 ==Includeonly section==
7758 Bug 6563: Edit link generation for section suppressed by <includeonly>
7761 ==Includeonly section==
7765 <h2><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
7770 Bug 6563: Section extraction for section suppressed by <includeonly>
7775 ==Includeonly section==
7783 Un-closed <includeonly>
7789 # TODO: test with DOM fragment reuse!
7791 Parsoid: DOM fragment reuse
7793 parsoid=wt2wt,wt2html
7795 a{{echo|b<table></table>c}}d
7807 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
7808 <table></table>c"}},"i":0}}]}'>b</span>
7809 <table about="#mwt1"></table><span about="#mwt1">c</span>d
7812 <p about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":["a",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b\n<table></table>\nc"}},"i":0}},"d"]}'>ab</p><span about="#mwt2">
7814 <table about="#mwt2"></table><span about="#mwt2">
7816 <p about="#mwt2">cd</p>
7819 <p about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\n\n<table></table>\n\nb"}},"i":0}}]}'>a</p><span about="#mwt3">
7822 <table about="#mwt3"></table><span about="#mwt3">
7825 <p about="#mwt3">b</p>
7829 Parsoid: Merge double tds (bug 50603)
7838 <tr><td about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{!}} foo"}},"i":0}}]}'> foo</td></tr>
7843 Parsoid: Merge double tds in nested transclusion content (bug 50603)
7853 <div about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<div>"}},"i":0}},"\n{|\n|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{!}} foo"}},"i":1}},"\n|}\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"</div>"}},"i":2}}]}'>
7855 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
7861 ### <includeonly> and <noinclude> in attributes
7864 0. includeonly around the entire attribute
7866 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
7868 <p><span id="v2">bar</span>
7873 1. includeonly in html attr key
7875 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
7877 <p><span id="foo">bar</span>
7882 2. includeonly in html attr value
7884 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7885 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7887 <p><span id="v1">bar</span>
7888 <span id="v1">bar</span>
7893 3. includeonly in part of an attr value
7895 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7897 <p><span style="color:red;">bar</span>
7902 ### Testing parsing of templates where a template arg
7903 ### has the same name as the template itself.
7913 Templates: Template Name/Arg clash: 1. Use of positional param
7922 Templates: Template Name/Arg clash: 2. Use of named param
7931 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7940 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7944 Templates: 1. Simple use
7953 Templates: 2. Inside a block tag
7955 <div>{{echo|Foo}}</div>
7956 <blockquote>{{echo|Foo}}</blockquote>
7959 <blockquote>Foo</blockquote>
7964 Templates: P-wrapping: 1a. Templates on consecutive lines
7975 Templates: P-wrapping: 1b. Templates on consecutive lines
7989 Templates: P-wrapping: 1c. Templates on consecutive lines
7992 {{echo|bar}} <div>baz</div>
8001 Templates: P-wrapping: 1d. Template preceded by comment-only line
8010 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8014 Templates: Inline Text: 1. Multiple tmeplate uses
8016 {{echo|Foo}}bar{{echo|baz}}
8023 Templates: Inline Text: 2. Back-to-back template uses
8025 {{echo|Foo}}{{echo|bar}}
8032 Templates: Block Tags: 1. Multiple template uses
8034 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8036 <div>Foo</div><div>bar</div><div>baz</div>
8041 Templates: Block Tags: 2. Back-to-back template uses
8043 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8045 <div>Foo</div><div>bar</div>
8050 Templates: Links: 1. Simple example
8052 {{echo|[[Foo|bar]]}}
8054 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8059 Templates: Links: 2. Generation of link href
8061 [[{{echo|Foo}}|bar]]
8063 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8068 Templates: Links: 3. Generation of part of a link href
8070 [[Fo{{echo|o}}|bar]]
8074 [[Foo{{echo|bar}}baz]]
8076 [[Foo{{echo|bar}}|bar]]
8078 [[:Foo{{echo|bar}}]]
8080 [[:Foo{{echo|bar}}|bar]]
8082 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8083 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8084 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8085 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8086 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8087 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8092 Templates: Links: 4. Multiple templates generating link href
8094 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8096 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8101 Templates: Links: 5. Generation of link text
8103 [[Foo|{{echo|bar}}]]
8105 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8110 Templates: Links: 5. Nested templates (only outermost template should be marked)
8112 {{echo|[[{{echo|Foo}}|bar]]}}
8114 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8119 Templates: HTML Tag: 1. Generation of HTML attr. key
8121 <div {{echo|style}}="color:red;">foo</div>
8123 <div style="color:red;">foo</div>
8128 Templates: HTML Tag: 2. Generation of HTML attr. value
8130 <div style={{echo|'color:red;'}}>foo</div>
8132 <div style="color:red;">foo</div>
8137 Templates: HTML Tag: 3. Generation of HTML attr key and value
8139 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8141 <div style="color:red;">foo</div>
8146 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8148 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8150 <div title="This is a long title with just one piece templated">foo</div>
8155 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8157 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8159 <div title="This is a long title with just one piece templated">foo</div>
8164 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8166 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8168 <div title="This is a long title with just one piece templated">foo</div>
8173 Templates: HTML Tag: 7. Generation of partial attribute key string
8175 <div st{{echo|yle}}="color:red;">foo</div>
8177 <div style="color:red;">foo</div>
8182 Templates: HTML Tables: 1. Generating start of a HTML table
8184 {{echo|<table><tr><td>foo</td>}}</tr></table>
8186 <table><tr><td>foo</td></tr></table>
8191 Templates: HTML Tables: 2a. Generating middle of a HTML table
8193 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8195 <table><tr><td>foo</td></tr></table>
8200 Templates: HTML Tables: 2b. Generating middle of a HTML table
8202 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8204 <table><tr><td>foo</td></tr></table>
8209 Templates: HTML Tables: 3. Generating end of a HTML table
8211 <table><tr>{{echo|<td>foo</td></tr></table>}}
8213 <table><tr><td>foo</td></tr></table>
8218 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8220 {{echo|<table>}}<tr><td>foo</td></tr></table>
8222 <table><tr><td>foo</td></tr></table>
8227 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8229 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8231 <table><tr><td>foo</td></tr></table>
8236 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8238 <table><tr>{{echo|<td>}}foo</td></tr></table>
8240 <table><tr><td>foo</td></tr></table>
8245 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8247 <table><tr><td>foo{{echo|</td>}}</tr></table>
8249 <table><tr><td>foo</td></tr></table>
8254 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8256 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8258 <table><tr><td>foo</td></tr></table>
8263 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
8265 <table><tr><td>foo</td></tr>{{echo|</table>}}
8267 <table><tr><td>foo</td></tr></table>
8272 Templates: HTML Tables: 5. Proper fostering of categories from inside
8274 parsoid=wt2html,wt2wt
8276 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
8277 <!--Two categories (Bug 50330)-->
8278 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
8280 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
8281 <!--Two categories (Bug 50330)-->
8282 <link rel="mw:WikiLink/Category" href="./Category:Bar1"><link rel="mw:WikiLink/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
8286 Templates: Wiki Tables: 1a. Fostering of entire template content
8294 <tr><td></td></tr></table>
8299 Templates: Wiki Tables: 1b. Fostering of entire template content
8312 <tr><td></td></tr></table>
8317 Templates: Wiki Tables: 2. Fostering of partial template content
8327 <tr><td></td></tr></table>
8332 Templates: Wiki Tables: 3. td-content via multiple templates
8335 {{echo|{{pipe}}a}}{{echo|b}}
8346 Templates: Wiki Tables: 4. Templated tags, no content
8352 <tr><td></td></tr></table>
8357 Templates: Wiki Tables: 5. Templated tags, regular td-tags
8371 Templates: Wiki Tables: 6. Templated tags, templated td-tags
8385 Templates: Lists: Multi-line list-items via templates
8387 *{{echo|a {{nonexistent|
8389 *{{echo|b {{nonexistent|
8393 <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>
8395 <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>
8402 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
8404 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
8406 <p><i>ab</i>c<i>d</i>e
8411 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
8412 (PHP parser generates misnested html)
8416 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
8418 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"''a"}},"i":0}}]}"><i>a</i></span><i about="#mwt2" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"b''c''d"}},"i":0}},{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"''e"}},"i":1}}]}"><span>b</span></i><span about="#mwt2">c</span><i about="#mwt2">d<span></span></i><span about="#mwt2">e</span></p>
8422 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
8423 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
8425 parsoid=wt2html,wt2wt
8427 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
8429 <div about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"''a"}},"i":0}}]}"><i>a</i></div>
8430 <div about="#mwt2" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"b''c''d"}},"i":0}}]}"><i>b</i>c<i>d</i></div>
8431 <div about="#mwt3" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"''e"}},"i":0}}]}">e</div>
8435 Templates: Ugly nesting: 4. Divs opened/closed across templates
8437 a<div>b{{echo|c</div>d}}e
8444 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
8450 |{{echo|foo</table>}}
8454 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["{|\n|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</table>"}},"i":0}},"\n|bar\n|}"]}'>
8458 <td>foo</td></tr></tbody></table><span about="#mwt1">
8459 </span><span about="#mwt1">bar</span><span about="#mwt1">
8464 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
8474 <td>1. {{echo|foo </table>}}</td>
8476 <td>2. {{echo|baz </table>}}</td>
8489 <table about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":["<table>\n <tr>\n <td>\n <table>\n <tr>\n <td>1. ",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo </table>"}},"i":0}},"</td>\n <td> bar </td>\n <td>2. ",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"baz </table>"}},"i":1}},"</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>"]}'>
8494 <td>1. foo </td></tr></tbody></table></td>
8496 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
8497 </span><span about="#mwt2">
8498 </span><span about="#mwt2">
8499 </span><span about="#mwt2">abc</span><span about="#mwt2">
8500 </span><span about="#mwt2">
8501 </span><span about="#mwt2">
8502 </span><span about="#mwt2">
8503 </span><span about="#mwt2">
8504 </span><span about="#mwt2">
8505 </span><span about="#mwt2">xyz</span><span about="#mwt2">
8506 </span><span about="#mwt2">
8511 Templates: Ugly templates: 3. newline-only template parameter
8520 # This looks like a bug: a single newline triggers p/br for some reason.
8522 Templates: Ugly templates: 4. newline-only template parameter inconsistency
8533 Parser Functions: 1. Simple example
8542 Parser Functions: 2. Nested use (only outermost should be marked up)
8551 ### Pre-save transform tests
8554 pre-save transform: subst:
8560 This is a test template
8564 pre-save transform: normal template
8574 pre-save transform: nonexistent template
8578 {{thistemplatedoesnotexist}}
8580 {{thistemplatedoesnotexist}}
8585 pre-save transform: subst magic variables
8594 # This is bug 89, which I fixed. -- wtm
8596 pre-save transform: subst: templates with parameters
8600 {{subst:paramtest|param="something else"}}
8602 This is a test template with parameter "something else"
8608 <nowiki>'''not wiki'''</nowiki>
8612 pre-save transform: nowiki in subst (bug 1188)
8616 {{subst:nowikitest}}
8618 <nowiki>'''not wiki'''</nowiki>
8623 Template:commenttest
8625 This template has <!-- a comment --> in it.
8629 pre-save transform: comment in subst (bug 1936)
8633 {{subst:commenttest}}
8635 This template has <!-- a comment --> in it.
8639 pre-save transform: unclosed tag
8643 <nowiki>'''not wiki'''
8645 <nowiki>'''not wiki'''
8649 pre-save transform: mixed tag case
8653 <NOwiki>'''not wiki'''</noWIKI>
8655 <NOwiki>'''not wiki'''</noWIKI>
8659 pre-save transform: unclosed comment in <nowiki>
8663 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
8665 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
8668 # Leading @ in this template definition works around a limitation
8669 # in parsoid's parserTests which otherwise strips the <span> from the
8670 # result (confusing it for a template wrapper)
8674 @<span onmouseover="alert('crap')">Oh no</span>
8678 (confirming safety of fix for subst bug 1936)
8680 {{Template:dangerous}}
8682 <p>@<span>Oh no</span>
8687 pre-save transform: comment containing gallery (bug 5024)
8691 <!-- <gallery>data</gallery> -->
8693 <!-- <gallery>data</gallery> -->
8697 pre-save transform: comment containing extension
8701 <!-- <tag>data</tag> -->
8703 <!-- <tag>data</tag> -->
8707 pre-save transform: comment containing nowiki
8711 <!-- <nowiki>data</nowiki> -->
8713 <!-- <nowiki>data</nowiki> -->
8717 pre-save transform: <noinclude> in subst (bug 3298)
8727 pre-save transform: <onlyinclude> in subst (bug 3298)
8739 {{<includeonly>subst:</includeonly>Includes}}
8743 Template:SafeSubstTest
8745 {{<includeonly>safesubst:</includeonly>Includes}}
8749 bug 22297: safesubst: works during PST
8753 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
8759 bug 22297: safesubst: works during normal parse
8768 subst: does not work during normal parse
8772 <p>{{subst:Includes}}
8777 pre-save transform: context links ("pipe trick")
8781 [[Article (context)|]]
8784 [[Bar:Article (context)|]]
8785 [[:Bar:Article (context)|]]
8787 [[|Article (context)]]
8791 [[Article (context)|Article]]
8792 [[Bar:Article|Article]]
8793 [[:Bar:Article|Article]]
8794 [[Bar:Article (context)|Article]]
8795 [[:Bar:Article (context)|Article]]
8797 [[Article (context)]]
8798 [[Bar:X (Y) Z|X (Y) Z]]
8799 [[:Bar:X (Y) Z|X (Y) Z]]
8803 pre-save transform: context links ("pipe trick") with interwiki prefix
8807 [[interwiki:Article|]]
8808 [[:interwiki:Article|]]
8809 [[interwiki:Bar:Article|]]
8810 [[:interwiki:Bar:Article|]]
8812 [[interwiki:Article|Article]]
8813 [[:interwiki:Article|Article]]
8814 [[interwiki:Bar:Article|Bar:Article]]
8815 [[:interwiki:Bar:Article|Bar:Article]]
8819 pre-save transform: context links ("pipe trick") with parens in title
8821 pst title=[[Somearticle (context)]]
8825 [[Article (context)|Article]]
8829 pre-save transform: context links ("pipe trick") with comma in title
8831 pst title=[[Someplace, Somewhere]]
8834 [[Otherplace, Elsewhere|]]
8835 [[Otherplace, Elsewhere, Anywhere|]]
8837 [[Otherplace, Somewhere|Otherplace]]
8838 [[Otherplace, Elsewhere|Otherplace]]
8839 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
8843 pre-save transform: context links ("pipe trick") with parens and comma
8845 pst title=[[Someplace (IGNORED), Somewhere]]
8848 [[Otherplace (place), Elsewhere|]]
8850 [[Otherplace, Somewhere|Otherplace]]
8851 [[Otherplace (place), Elsewhere|Otherplace]]
8855 pre-save transform: context links ("pipe trick") with comma and parens
8857 pst title=[[Who, me? (context)]]
8860 [[Me, Myself, and I (1937 song)|]]
8862 [[Yes, you. (context)|Yes, you.]]
8863 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
8867 pre-save transform: context links ("pipe trick") with namespace
8869 pst title=[[Ns:Somearticle]]
8873 [[Ns:Article|Article]]
8877 pre-save transform: context links ("pipe trick") with namespace and parens
8879 pst title=[[Ns:Somearticle (context)]]
8883 [[Ns:Article (context)|Article]]
8887 pre-save transform: context links ("pipe trick") with namespace and comma
8889 pst title=[[Ns:Somearticle, Context, Whatever]]
8893 [[Ns:Article, Context, Whatever|Article]]
8897 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8899 pst title=[[Ns:Somearticle, Context (context)]]
8903 [[Ns:Article (context)|Article]]
8907 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8909 pst title=[[Ns:Somearticle (IGNORED), Context]]
8913 [[Ns:Article, Context|Article]]
8917 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8921 [[Article(context)|]]
8922 [[Bar:Article(context)|]]
8923 [[:Bar:Article(context)|]]
8924 [[|Article(context)]]
8928 [[Article(context)|Article]]
8929 [[Bar:Article(context)|Article]]
8930 [[:Bar:Article(context)|Article]]
8931 [[Article(context)]]
8933 [[:Bar:X(Y)Z|X(Y)Z]]
8937 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8941 [[Article (context)|]]
8942 [[Bar:Article (context)|]]
8943 [[:Bar:Article (context)|]]
8944 [[|Article (context)]]
8948 [[Article (context)|Article]]
8949 [[Bar:Article (context)|Article]]
8950 [[:Bar:Article (context)|Article]]
8951 [[Article (context)]]
8952 [[Bar:X (Y) Z|X (Y) Z]]
8953 [[:Bar:X (Y) Z|X (Y) Z]]
8957 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8961 [[Article(context)|]]
8962 [[Bar:Article(context)|]]
8963 [[:Bar:Article(context)|]]
8964 [[|Article(context)]]
8968 [[Article(context)|Article]]
8969 [[Bar:Article(context)|Article]]
8970 [[:Bar:Article(context)|Article]]
8971 [[Article(context)]]
8973 [[:Bar:X(Y)Z|X(Y)Z]]
8977 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8981 [[Article (context), context|]]
8982 [[Article (context),context|]]
8983 [[Bar:Article (context), context|]]
8984 [[Bar:Article (context),context|]]
8985 [[:Bar:Article (context), context|]]
8986 [[:Bar:Article (context),context|]]
8988 [[Article (context), context|Article]]
8989 [[Article (context),context|Article]]
8990 [[Bar:Article (context), context|Article]]
8991 [[Bar:Article (context),context|Article]]
8992 [[:Bar:Article (context), context|Article]]
8993 [[:Bar:Article (context),context|Article]]
8997 pre-save transform: trim trailing empty lines
9001 Empty lines are trimmed
9007 Empty lines are trimmed
9011 pre-save transform: Signature expansion
9016 * <noinclude>~~~</noinclude>
9017 * <includeonly>~~~</includeonly>
9018 * <onlyinclude>~~~</onlyinclude>
9020 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9021 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9022 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9023 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9028 pre-save transform: Signature expansion in nowiki tags (bug 93)
9034 <nowiki>~~~~</nowiki>
9036 <includeonly><nowiki>~~~~</nowiki></includeonly>
9038 <noinclude><nowiki>~~~~</nowiki></noinclude>
9040 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9042 {{subst:Foo}} shall be converted to FOO
9044 As well as inside noinclude/onlyinclude
9045 <noinclude>{{subst:Foo}}</noinclude>
9046 <onlyinclude>{{subst:Foo}}</onlyinclude>
9048 But not inside includeonly
9049 <includeonly>{{subst:Foo}}</includeonly>
9053 <nowiki>~~~~</nowiki>
9055 <includeonly><nowiki>~~~~</nowiki></includeonly>
9057 <noinclude><nowiki>~~~~</nowiki></noinclude>
9059 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9061 FOO shall be converted to FOO
9063 As well as inside noinclude/onlyinclude
9064 <noinclude>FOO</noinclude>
9065 <onlyinclude>FOO</onlyinclude>
9067 But not inside includeonly
9068 <includeonly>{{subst:Foo}}</includeonly>
9072 Parsoid: Recognize nowiki with trailing space in tags
9076 <nowiki ><div>[[foo]]</nowiki >
9084 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9091 Parsoid: Recognize nowiki with odd capitalization
9095 <noWikI ><div>[[foo]]</Nowiki >
9097 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9102 Parsoid: Escape nowiki with trailing space in tags
9106 <nowiki > foo </nowiki >
9112 <p><nowiki > foo </nowiki ></p>
9113 <p>a<nowiki />b</p>
9114 <p>c<nowiki/ >d</p>
9118 Parsoid: Escape weird noWikI capitalizations
9122 <noWikI > foo </NoWikI >
9124 <p><noWikI > foo </NoWikI ></p>
9128 ### Message transform tests
9131 message transform: magic variables
9141 message transform: should not transform wiki markup
9151 message transform: <noinclude> in transcluded template (bug 4926)
9161 message transform: <onlyinclude> in transcluded template (bug 4926)
9171 {{#special:}} page name, known
9175 {{#special:Recentchanges}}
9177 Special:RecentChanges
9181 {{#special:}} page name with subpage, known
9185 {{#special:Recentchanges/param}}
9187 Special:RecentChanges/param
9191 {{#special:}} page name, unknown
9195 {{#special:foobar nonexistent}}
9197 Special:Foobar nonexistent
9201 {{#speciale:}} page name, known
9205 {{#speciale:Recentchanges}}
9207 Special:RecentChanges
9211 {{#speciale:}} page name with subpage, known
9215 {{#speciale:Recentchanges/param}}
9217 Special:RecentChanges/param
9221 {{#speciale:}} page name, unknown
9225 {{#speciale:foobar nonexistent}}
9227 Special:Foobar_nonexistent
9233 ### For Parsoid-specific tests, see
9234 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9241 [[Image:foobar.jpg]]
9243 <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>
9248 Simple image (parsoid)
9252 [[Image:foobar.jpg]]
9254 <p><span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>
9259 Simple image (using File: namespace, now canonical) (php)
9265 <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>
9270 Simple image (using File: namespace, now canonical) (parsoid)
9276 <p><span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>
9281 Right-aligned image (php)
9285 [[Image:foobar.jpg|right]]
9287 <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>
9292 Right-aligned image (parsoid)
9296 [[File:Foobar.jpg|right]]
9298 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></figure>
9302 Image with caption (php)
9306 [[File:Foobar.jpg|right|Caption text]]
9308 <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>
9313 Image with caption (parsoid)
9317 [[File:Foobar.jpg|right|Caption text]]
9319 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
9323 Image with empty attribute (php)
9327 [[File:Foobar.jpg|right||Caption text]]
9329 <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>
9334 Image with empty attribute (parsoid)
9338 [[File:Foobar.jpg|right||Caption text]]
9340 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
9344 Image with attributes from template (php)
9348 [[File:Foobar.jpg|{{image_attribs}}]]
9350 <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>
9355 Image with attributes from template (parsoid)
9359 [[File:Foobar.jpg|{{image_attribs}}]]
9361 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
9365 Image with link tails (php)
9369 123[[File:Foobar.jpg]]456
9370 123[[File:Foobar.jpg|right]]456
9371 123[[File:Foobar.jpg|thumb]]456
9373 <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
9375 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
9376 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
9381 Image with link tails (parsoid)
9385 123[[File:Foobar.jpg]]456
9386 123[[File:Foobar.jpg|right]]456
9387 123[[File:Foobar.jpg|thumb]]456
9389 <p>123<span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>456</p>
9390 123<figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></figure>456
9391 123<figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180"></a></figure>456
9395 Image with multiple captions -- only last one is accepted (php)
9399 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9401 <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>
9406 Image with multiple captions -- only last one is accepted (parsoid)
9410 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9412 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption3 - accepted</figcaption></figure>
9416 Image with width attribute at different positions (php)
9420 [[File:Foobar.jpg|200px|right|Caption]]
9421 [[File:Foobar.jpg|right|200px|Caption]]
9422 [[File:Foobar.jpg|right|Caption|200px]]
9424 <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>
9425 <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>
9426 <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>
9431 Image with width attribute at different positions (parsoid)
9435 [[File:Foobar.jpg|200px|right|Caption]]
9436 [[File:Foobar.jpg|right|200px|Caption]]
9437 [[File:Foobar.jpg|right|Caption|200px]]
9439 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
9440 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
9441 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
9445 Image with link parameter, wiki target (php)
9449 [[File:Foobar.jpg|link=Main Page]]
9451 <p><a href="/wiki/Main_Page" title="Main Page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9456 Image with link parameter, wiki target (parsoid)
9460 [[File:Foobar.jpg|link=Main Page]]
9462 <p><span class="mw-default-size" typeof="mw:Image"><a href="Main_Page"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
9466 Image with link parameter, URL target (php)
9470 [[File:Foobar.jpg|link=http://example.com/]]
9472 <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>
9476 # parsoid bug 49293 (part 1)
9478 Image with link parameter, URL target (parsoid)
9482 [[File:Foobar.jpg|link=http://example.com/]]
9484 <p><span class="mw-default-size" typeof="mw:Image"><a href="http://example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
9488 Image with link parameter, protocol-less URL target (php)
9492 [[File:Foobar.jpg|link=//example.com/]]
9494 <p><a href="//example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9498 # parsoid bug 49293 (part 2)
9500 Image with link parameter, protocol-less URL target (parsoid)
9504 [[File:Foobar.jpg|link=//example.com/]]
9506 <p><span class="mw-default-size" typeof="mw:Image"><a href="//example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
9510 Image with link parameter, wgExternalLinkTarget
9512 [[Image:foobar.jpg|link=http://example.com/]]
9514 wgExternalLinkTarget='foobar'
9516 <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>
9521 Image with link parameter, wgNoFollowLinks set to false
9523 [[Image:foobar.jpg|link=http://example.com/]]
9525 wgNoFollowLinks=false
9527 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9532 Image with link parameter, wgNoFollowDomainExceptions
9534 [[Image:foobar.jpg|link=http://example.com/]]
9536 wgNoFollowDomainExceptions='example.com'
9538 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9543 Image with link parameter, wgExternalLinkTarget, unnamed parameter
9545 [[Image:foobar.jpg|link=http://example.com/|Title]]
9547 wgExternalLinkTarget='foobar'
9549 <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>
9554 Image with empty link parameter (php)
9558 [[File:Foobar.jpg|link=]]
9560 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
9565 Image with empty link parameter (parsoid)
9569 [[File:Foobar.jpg|link=]]
9571 <p><span class="mw-default-size" typeof="mw:Image"><span><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></span></span></p>
9575 Image with link parameter (wiki target) and unnamed parameter (php)
9579 [[File:Foobar.jpg|link=Main Page|Title]]
9581 <p><a href="/wiki/Main_Page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9586 Image with link parameter (wiki target) and unnamed parameter (parsoid)
9590 [[File:Foobar.jpg|link=Main Page|Title]]
9592 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"Title"}'><a href="Main_Page"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
9596 Image with link parameter (URL target) and unnamed parameter (php)
9600 [[File:Foobar.jpg|link=http://example.com/|Title]]
9602 <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>
9607 Image with link parameter (URL target) and unnamed parameter (parsoid)
9611 [[File:Foobar.jpg|link=http://example.com/|Title]]
9613 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"Title"}'><a href="http://example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
9617 Thumbnail image with link parameter
9621 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
9623 <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>
9628 Manually-specified thumbnail image
9632 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
9634 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/File:Foobar.jpg"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></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>
9639 Manually-specified thumbnail image with explicit link to wiki page
9643 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
9645 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></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>
9650 Manually-specified thumbnail image with explicit link to url
9654 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
9656 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="http://example.com"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></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>
9661 Manually-specified thumbnail image with explicit no link
9665 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
9667 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /> <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>
9672 Manually-specified thumbnail image with explicit link and alt text
9676 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
9678 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="alttext" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></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>
9683 Image with frame and link
9685 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
9687 <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>
9692 Image with frame and link and explicit alt
9694 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
9696 <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>
9701 Image with wiki markup in implicit alt
9703 [[Image:Foobar.jpg|testing '''bold''' in alt]]
9705 <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>
9710 Image with wiki markup in explicit alt
9712 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
9714 <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>
9719 Link to image page- image page normally doesn't exists, hence edit link
9720 Add test with existing image page
9721 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
9725 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
9730 bug 18784 Link to non-existent image page with caption should use caption as link text
9732 [[:Image:test|caption]]
9734 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
9739 Frameless image caption with a free URL
9741 [[Image:foobar.jpg|http://example.com]]
9743 <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>
9748 Thumbnail image caption with a free URL
9750 [[Image:foobar.jpg|thumb|http://example.com]]
9752 <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>
9757 Thumbnail image caption with a free URL and explicit alt
9759 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
9761 <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>
9766 SVG thumbnails with no language set
9769 [[File:Foobar.svg|thumb|width=200]]
9771 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
9776 SVG thumbnails with language de
9779 [[File:Foobar.svg|thumb|width=200|lang=de]]
9781 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=File:Foobar.svg&lang=de" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/langde-180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/langde-270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/langde-360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
9786 SVG thumbnails with invalid language code
9789 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
9791 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>lang=invalid.language.code</div></div></div>
9796 BUG 1887: A ISBN with a thumbnail
9798 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
9800 <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>
9805 BUG 1887: A RFC with a thumbnail
9807 [[Image:foobar.jpg|thumb|This is RFC 12354]]
9809 <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" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
9814 BUG 1887: A mailto link with a thumbnail
9816 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
9818 <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>
9822 # Pending resolution to bug 368
9824 BUG 648: Frameless image caption with a link
9826 [[Image:foobar.jpg|text with a [[link]] in it]]
9828 <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>
9833 BUG 648: Frameless image caption with a link (suffix)
9835 [[Image:foobar.jpg|text with a [[link]]foo in it]]
9837 <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>
9842 BUG 648: Frameless image caption with an interwiki link
9844 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
9846 <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>
9851 BUG 648: Frameless image caption with a piped interwiki link
9853 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
9855 <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>
9860 Escape HTML special chars in image alt text
9862 [[Image:foobar.jpg|& < > "]]
9864 <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>
9869 BUG 499: Alt text should have Ӓ, not &1234;
9871 [[Image:foobar.jpg|♀]]
9873 <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>
9878 Broken image caption with link
9880 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
9882 <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.
9887 Image caption containing another image
9889 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
9891 <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>
9896 Image caption containing a newline
9898 [[Image:Foobar.jpg|This
9901 <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>
9906 Parsoid: Image caption containing leading space
9907 (The leading space should not trigger nowiki escaping in wt2wt mode)
9909 [[Image:Foobar.jpg|thumb| bar]]
9911 <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>bar</div></div></div>
9916 Bug 3090: External links other than http: in image captions
9918 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
9920 <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>
9927 [[Image:foobar.jpg|a|class=b]]
9929 <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>
9934 Localized image handling (1).
9938 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
9940 <div class="floatleft"><a href="/wiki/Foo" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
9945 Localized image handling (2).
9949 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
9951 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><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/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
9956 "border", "frameless" and "class" attributes on an image.
9958 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
9960 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" 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>
9967 #REDIRECT [[File:Barfoo.jpg]]
9973 [[Image:Barfoo.jpg]]
9975 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
9980 Missing image with uploads disabled
9984 [[Image:Foobaz.jpg]]
9986 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
9990 # Parsoid-specific testing for images
9991 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9992 # Currently imperfect due to a flaw in the Parsoid testrunner
9994 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
9998 Parsoid-specific image handling - simple image with size and middle alignment
10002 [[Image:Foobar.jpg|50px|middle]]
10005 <span class="mw-valign-middle" typeof="mw:Image">
10006 <a href="File:Foobar.jpg">
10007 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10014 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10018 [[Image:Foobar.jpg|500x10px|baseline|caption]]
10021 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
10022 <a href="File:Foobar.jpg">
10023 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
10030 Parsoid-specific image handling - simple image with border and size spec
10034 [[Image:Foobar.jpg|50px|border|caption]]
10037 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
10038 <a href="File:Foobar.jpg">
10039 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10046 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10050 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
10052 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10053 <a href="File:Foobar.jpg">
10054 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
10056 <figcaption>caption content</figcaption>
10061 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10065 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10067 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10068 <a href="File:Foobar.jpg">
10069 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10071 <figcaption>caption</figcaption>
10076 Parsoid-specific image handling - framed image with specific size and caption
10080 [[Image:Foobar.jpg|500x50px|frame|caption]]
10082 <figure typeof="mw:Image/Frame">
10083 <a href="File:Foobar.jpg">
10084 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10086 <figcaption>caption</figcaption>
10091 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10095 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
10097 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10098 <a href="File:Foobar.jpg">
10099 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10101 <figcaption>caption</figcaption>
10106 Parsoid-specific image handling - frameless image with specific size, border, and caption
10110 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
10113 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
10114 <a href="File:Foobar.jpg">
10115 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10121 #Parsoid-specific image handling - simple image with a formatted caption
10125 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10128 #<span typeof="mw:Image">
10129 #<a class="mw-default-size" href="Image:Foobar.jpg">
10130 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10141 Subpage test/subpage
10149 subpage title=[[Subpage test]]
10153 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10158 Subpage noslash link
10160 subpage title=[[Subpage test]]
10164 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10168 # TODO: make this PHP-parser compatible!
10170 Relative subpage noslash link
10172 parsoid=wt2wt,wt2html,html2html
10173 subpage title=[[Subpage test/1/2/3/4]]
10179 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10180 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10183 # TODO: make this PHP-parser compatible!
10185 Parsoid: dot-slash prefixed wikilinks
10187 parsoid=wt2wt,wt2html,html2html
10195 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10196 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10197 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10205 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10210 BUG 561: {{/Subpage}}
10212 subpage title=[[Page]]
10216 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
10224 Category:MediaWiki User's Guide
10232 [[:Category:MediaWiki User's Guide]]
10234 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
10243 [[Category:MediaWiki User's Guide]]
10245 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10249 PAGESINCATEGORY invalid title fatal (r33546 fix)
10251 {{PAGESINCATEGORY:<bogus>}}
10258 Category with different sort key
10262 [[Category:MediaWiki User's Guide|Foo]]
10264 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10268 Category with identical sort key
10272 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10274 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10278 Category with empty sort key
10283 [[Category:MediaWiki User's Guide|]]
10285 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10289 Category with empty sort key and parentheses
10294 [[Category:Foo (bar)|]]
10296 [[Category:Foo (bar)|Foo]]
10300 Category with link tail
10305 123[[Category:Foo]]456
10307 123[[Category:Foo]]456
10311 Category with template
10316 [[Category:{{echo|Foo}}]]
10318 [[Category:{{echo|Foo}}]]
10322 Category with template in sort key
10327 [[Category:Foo|{{echo|Bar}}]]
10329 [[Category:Foo|{{echo|Bar}}]]
10333 Category with template in sort key and title
10338 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
10340 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
10344 Category / paragraph interactions
10346 Foo [[Category:Baz]] Bar
10348 Foo [[Category:Baz]]
10356 [[Category:Baz]] Bar
10369 {{echo|[[Category:Baz]]}}
10384 Parsoid: Serialize link to category page with colon escape
10390 [[:Category:Foo|Bar]]
10393 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
10394 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
10399 Parsoid: Link prefix/suffixes aren't applied to category links
10401 parsoid=wt2html,wt2wt,html2html
10406 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
10410 Parsoid: Serialize link to file page with colon escape
10416 [[:File:Foo.png|Bar]]
10419 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
10420 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
10425 Parsoid: Serialize a genuine category link without colon escape
10430 [[Category:Foo|Bar]]
10432 <link rel="mw:WikiLink/Category" href="Category:Foo">
10433 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
10437 ### Inter-language links
10440 Inter-language links
10446 [[zh:食品]]
10448 es:Alimento fr:Nourriture zh:食品
10452 Duplicate interlanguage links (bug 24502)
10468 Basic section headings
10475 ===Smaller headline===
10478 <h2><span class="mw-headline" id="Headline_1">Headline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10481 <h2><span class="mw-headline" id="Headline_2">Headline 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10484 <h3><span class="mw-headline" id="Smaller_headline">Smaller headline</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10490 Section headings with TOC
10493 === Subheadline 1 ===
10494 ===== Skipping a level =====
10495 ====== Skipping a level ======
10499 ===Another headline===
10501 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10503 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
10505 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
10507 <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>
10509 <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>
10516 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
10518 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
10523 <h2><span class="mw-headline" id="Headline_1">Headline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10524 <h3><span class="mw-headline" id="Subheadline_1">Subheadline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10525 <h5><span class="mw-headline" id="Skipping_a_level">Skipping a level</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a><span class="mw-editsection-bracket">]</span></span></h5>
10526 <h6><span class="mw-headline" id="Skipping_a_level_2">Skipping a level</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
10527 <h2><span class="mw-headline" id="Headline_2">Headline 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10530 <h3><span class="mw-headline" id="Another_headline">Another headline</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10534 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
10536 Handling of sections up to level 6 and beyond
10539 == Level 2 Heading==
10540 === Level 3 Heading===
10541 ==== Level 4 Heading====
10542 ===== Level 5 Heading=====
10543 ====== Level 6 Heading======
10544 ======= Level 7 Heading=======
10545 ======== Level 8 Heading========
10546 ========= Level 9 Heading=========
10547 ========== Level 10 Heading==========
10549 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10551 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
10553 <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>
10555 <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>
10557 <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>
10559 <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>
10561 <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>
10562 <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>
10563 <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>
10564 <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>
10565 <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>
10578 <h1><span class="mw-headline" id="Level_1_Heading">Level 1 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10579 <h2><span class="mw-headline" id="Level_2_Heading">Level 2 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10580 <h3><span class="mw-headline" id="Level_3_Heading">Level 3 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10581 <h4><span class="mw-headline" id="Level_4_Heading">Level 4 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
10582 <h5><span class="mw-headline" id="Level_5_Heading">Level 5 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h5>
10583 <h6><span class="mw-headline" id="Level_6_Heading">Level 6 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
10584 <h6><span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
10585 <h6><span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
10586 <h6><span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
10587 <h6><span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
10592 TOC regression (bug 9764)
10596 ==== title 1.1.1 ====
10601 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10603 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10605 <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>
10607 <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>
10610 <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>
10613 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
10615 <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>
10620 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10621 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10622 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
10623 <h3><span class="mw-headline" id="title_1.2">title 1.2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10624 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10625 <h3><span class="mw-headline" id="title_2.1">title 2.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10630 TOC with wgMaxTocLevel=3 (bug 6204)
10636 ==== title 1.1.1 ====
10641 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10643 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10645 <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>
10646 <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>
10649 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
10651 <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>
10656 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10657 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10658 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
10659 <h3><span class="mw-headline" id="title_1.2">title 1.2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10660 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10661 <h3><span class="mw-headline" id="title_2.1">title 2.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10666 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
10672 ====Section 1.1.1====
10673 ====Section 1.1.1.1====
10676 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10678 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
10680 <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>
10683 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
10686 <h2><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10687 <h3><span class="mw-headline" id="Section_1.1">Section 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10688 <h4><span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
10689 <h4><span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
10690 <h2><span class="mw-headline" id="Section_2">Section 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10696 Resolving duplicate section names
10701 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10702 <h2><span class="mw-headline" id="Foo_bar_2">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10707 Resolving duplicate section names with differing case (bug 10721)
10712 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10713 <h2><span class="mw-headline" id="Foo_Bar_2">Foo Bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10725 Template with sections, __NOTOC__
10732 <h2><span class="mw-headline" id="Section_0">Section 0</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10733 <h3><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10734 <h2><span class="mw-headline" id="Section_2">Section 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10735 <h2><span class="mw-headline" id="Section_4">Section 4</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10740 __NOEDITSECTION__ keyword
10746 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
10747 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
10752 Link inside a section heading
10754 ==Section with a [[Main Page|link]] in it==
10756 <h2><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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10761 TOC regression (bug 12077)
10768 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10770 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10772 <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>
10775 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
10778 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10779 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10780 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10785 BUG 1219 URL next to image (good)
10787 http://example.com [[Image:foobar.jpg]]
10789 <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>
10794 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
10797 The line above must have a trailing space!
10800 But just in case it doesn't...
10802 <h1><span class="mw-headline" id=".3D">=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10803 <p>The line above must have a trailing space!
10805 <h1><span class="mw-headline" id=".3D_2">=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10806 <p>But just in case it doesn't...
10811 Header with special characters (bug 25462)
10813 The tooltips shall not show entities to the user (ie. be double escaped)
10830 <p>The tooltips shall not show entities to the user (ie. be double escaped)
10832 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10834 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
10835 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
10836 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
10837 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
10838 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
10841 <h2><span class="mw-headline" id="text_.3E_text">text > text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10844 <h2><span class="mw-headline" id="text_.3C_text">text < text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10847 <h2><span class="mw-headline" id="text_.26_text">text & text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10850 <h2><span class="mw-headline" id="text_.27_text">text ' text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10853 <h2><span class="mw-headline" id="text_.22_text">text " text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10859 Headers with excess '=' characters
10860 (Are similar tests necessary beyond the 1st level?)
10864 =''italic'' heading==
10865 ==''italic'' heading=
10867 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10869 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
10870 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
10871 <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>
10872 <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>
10875 <h1><span class="mw-headline" id="foo.3D">foo=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10876 <h1><span class="mw-headline" id=".3Dfoo">=foo</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10877 <h1><span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10878 <h1><span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10883 HTML headers vs TOC (bug 23393)
10884 (__NOEDITSECTION__ for clearer output, doesn't matter here)
10896 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10898 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
10900 <li class="toclevel-2 tocsection-1"><a href="#Header_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Header 1.1</span></a></li>
10901 <li class="toclevel-2 tocsection-2"><a href="#Header_1.2"><span class="tocnumber">1.2</span> <span class="toctext">Header 1.2</span></a></li>
10904 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
10906 <li class="toclevel-2 tocsection-3"><a href="#Header_2.1"><span class="tocnumber">2.1</span> <span class="toctext">Header 2.1</span></a></li>
10907 <li class="toclevel-2 tocsection-4"><a href="#Header_2.2"><span class="tocnumber">2.2</span> <span class="toctext">Header 2.2</span></a></li>
10912 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
10913 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
10914 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
10915 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
10916 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
10917 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
10922 BUG 1219 URL next to image (broken)
10924 http://example.com[[Image:foobar.jpg]]
10926 <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>
10931 Bug 1186 news: in the middle of text
10933 http://en.wikinews.org/wiki/Wikinews:Workplace
10935 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
10941 Namespaced link must have a title
10950 Namespaced link must have a title (bad fragment version)
10952 [[Project:#fragment]]
10954 <p>[[Project:#fragment]]
10960 ### HTML tags and HTML attributes
10964 div with no attributes
10966 <div>HTML rocks</div>
10968 <div>HTML rocks</div>
10973 div with double-quoted attribute
10975 <div id="rock">HTML rocks</div>
10977 <div id="rock">HTML rocks</div>
10982 div with single-quoted attribute
10984 <div id='rock'>HTML rocks</div>
10986 <div id="rock">HTML rocks</div>
10991 div with unquoted attribute
10993 <div id=rock>HTML rocks</div>
10995 <div id="rock">HTML rocks</div>
11000 div with illegal double attributes
11002 <div id="a" id="b">HTML rocks</div>
11004 <div id="b">HTML rocks</div>
11008 # FIXME: produce empty string instead of "class" in the PHP parser, following
11011 div with empty attribute value, space before equals
11015 <div class =>HTML rocks</div>
11017 <div class="">HTML rocks</div>
11021 # The PHP parser escapes the opening brace to { for some reason, so
11022 # disabled this test for it.
11024 div with braces in attribute value
11028 <div title="{}">Foo</div>
11030 <div title="{}">Foo</div>
11033 # This it very inconsistent in the PHP parser: it returns
11034 # class="class" if there is a space between the name and the equal sign (see
11035 # 'div with empty attribute value, space before equals'), but strips the
11036 # attribute completely if the space is missing. We hope that not much content
11037 # depends on this, so are implementing the behavior below in Parsoid for
11038 # consistencies' sake. Disabled for the PHP parser.
11039 # FIXME: fix this behavior in the PHP parser?
11041 div with empty attribute value, no space before equals
11045 <div class=>HTML rocks</div>
11047 <div class="">HTML rocks</div>
11052 HTML multiple attributes correction
11054 <p class="error" class="awesome">Awesome!</p>
11056 <p class="awesome">Awesome!</p>
11061 Table multiple attributes correction
11064 !+ class="error" class="awesome"| status
11069 <th class="awesome"> status
11077 <DIV ID="x">HTML ROCKS</DIV>
11079 <div id="x">HTML ROCKS</div>
11084 Non-ASCII pseudo-tags are rendered as text
11093 Pseudo-tag with URL 'name' renders as url link
11095 <http://example.com/>
11097 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11102 text with amp in the middle of nowhere
11106 <p>Remember AT&T?
11111 text with character entity: eacute
11113 I always thought é was a cute letter.
11115 <p>I always thought é was a cute letter.
11120 text with entity-escaped character entity-like string: eacute
11122 I always thought &eacute; was a cute letter.
11124 <p>I always thought &eacute; was a cute letter.
11129 text with undefined character entity: xacute
11131 I always thought &xacute; was a cute letter.
11133 <p>I always thought &xacute; was a cute letter.
11139 ### Nesting tests (see bug 41545, 50604, 51081)
11142 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11143 # Note that html2wt is considerably more difficult if we use <b> in
11144 # the test case, instead of <big>
11146 Ensure that HTML adoption agency algorithm is properly implemented.
11148 <big>X<big>Y</big>Z</big>
11150 <p><big>X<big>Y</big>Z</big>
11154 # This was bug 41545 in the PHP parser.
11158 <kbd>X<kbd>Y</kbd>Z</kbd>
11160 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11164 # The following cases were bug 51081 in the PHP parser.
11165 # Note that there are some other nestable tags (b, i, etc) which are
11166 # not covered; see bug 51081 for discussion.
11170 <em>X<em>Y</em>Z</em>
11172 <p><em>X<em>Y</em>Z</em>
11177 Nesting of <strong>
11179 <strong>X<strong>Y</strong>Z</strong>
11181 <p><strong>X<strong>Y</strong>Z</strong>
11190 <p><q>X<q>Y</q>Z</q>
11197 <ruby>X<ruby>Y</ruby>Z</ruby>
11199 <p><ruby>X<ruby>Y</ruby>Z</ruby>
11206 <bdo>X<bdo>Y</bdo>Z</bdo>
11208 <p><bdo>X<bdo>Y</bdo>Z</bdo>
11220 [[Media:Foobar.jpg]]
11222 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
11227 Media link with text
11229 [[Media:Foobar.jpg|A neat file to look at]]
11231 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
11235 # FIXME: this is still bad HTML tag nesting
11237 Media link with nasty text
11238 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
11240 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
11242 <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>
11247 Media link to nonexistent file (bug 1702)
11249 [[Media:No such.jpg]]
11251 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
11256 Image link to nonexistent file (bug 1850 - good)
11258 [[Image:No such.jpg]]
11260 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
11265 :Image link to nonexistent file (bug 1850 - bad)
11267 [[:Image:No such.jpg]]
11269 <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>
11276 Character reference normalization in link text (bug 1938)
11278 [[Main Page|this&that]]
11280 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
11287 Test for unicode normalization
11289 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
11293 (bug 19451) Links should refer to the normalized form.
11301 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11302 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11303 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11304 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11305 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11310 Empty attribute crash test (bug 2067)
11312 <font color="">foo</font>
11314 <p><font color="">foo</font>
11319 Empty attribute crash test single-quotes (bug 2067)
11321 <font color=''>foo</font>
11323 <p><font color="">foo</font>
11328 Attribute test: equals, then nothing
11330 <font color=>foo</font>
11332 <p><font>foo</font>
11337 Attribute test: unquoted value
11339 <font color=x>foo</font>
11341 <p><font color="x">foo</font>
11346 Attribute test: unquoted but illegal value (hash)
11348 <font color=#x>foo</font>
11350 <p><font color="#x">foo</font>
11355 Attribute test: no value
11357 <font color>foo</font>
11359 <p><font color="color">foo</font>
11364 Bug 2095: link with three closing brackets
11368 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
11373 Bug 2095: link with pipe and three closing brackets
11375 [[Main Page|link]]]
11377 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
11382 Bug 2095: link with pipe and three closing brackets, version 2
11384 [[Main Page|[http://example.com/]]]
11386 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
11396 Template:Dangerous attribute
11398 " onmouseover="alert(document.cookie)
11402 Template:Dangerous style attribute
11404 border-size: expression(alert(document.cookie))
11410 <div style="float: right; {{{1}}}">Magic div</div>
11414 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
11416 <div title="{{test}}"></div>
11418 <div title="This is a test template"></div>
11423 Bug 2304: HTML attribute safety (dangerous template; 2309)
11425 <div title="{{dangerous attribute}}"></div>
11427 <div title=""></div>
11432 Bug 2304: HTML attribute safety (dangerous style template; 2309)
11434 <div style="{{dangerous style attribute}}"></div>
11436 <div style="/* insecure input */"></div>
11441 Bug 2304: HTML attribute safety (safe parameter; 2309)
11443 {{div style|width: 200px}}
11445 <div style="float: right; width: 200px">Magic div</div>
11450 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
11452 {{div style|width: expression(alert(document.cookie))}}
11454 <div style="/* insecure input */">Magic div</div>
11459 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
11461 {{div style|"><script>alert(document.cookie)</script>}}
11463 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
11468 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
11470 {{div style|" ><script>alert(document.cookie)</script>}}
11472 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
11477 Bug 2304: HTML attribute safety (link)
11479 <div title="[[Main Page]]"></div>
11481 <div title="[[Main Page]]"></div>
11486 Bug 2304: HTML attribute safety (italics)
11488 <div title="''foobar''"></div>
11490 <div title="''foobar''"></div>
11495 Bug 2304: HTML attribute safety (bold)
11497 <div title="'''foobar'''"></div>
11499 <div title="'''foobar'''"></div>
11505 Bug 2304: HTML attribute safety (ISBN)
11507 <div title="ISBN 1234567890"></div>
11509 <div title="ISBN 1234567890"></div>
11514 Bug 2304: HTML attribute safety (RFC)
11516 <div title="RFC 1234"></div>
11518 <div title="RFC 1234"></div>
11523 Bug 2304: HTML attribute safety (PMID)
11525 <div title="PMID 1234567890"></div>
11527 <div title="PMID 1234567890"></div>
11532 Bug 2304: HTML attribute safety (web link)
11534 <div title="http://example.com/"></div>
11536 <div title="http://example.com/"></div>
11541 Bug 2304: HTML attribute safety (named web link)
11543 <div title="[http://example.com/ link]"></div>
11545 <div title="[http://example.com/ link]"></div>
11550 Bug 3244: HTML attribute safety (extension; safe)
11552 <div style="<nowiki>background:blue</nowiki>"></div>
11554 <div style="background:blue"></div>
11559 Bug 3244: HTML attribute safety (extension; unsafe)
11561 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
11563 <div style="/* insecure input */"></div>
11567 # More MSIE fun discovered by Tom Gilder
11570 MSIE CSS safety test: spurious slash
11572 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
11574 <div style="/* insecure input */">evil</div>
11579 MSIE CSS safety test: hex code
11581 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
11583 <div style="/* insecure input */">evil</div>
11588 MSIE CSS safety test: comment in url
11590 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
11592 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
11597 MSIE CSS safety test: comment in expression
11599 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
11601 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
11607 Table attribute legitimate extension
11610 !+ style="<nowiki>color:blue</nowiki>"| status
11615 <th style="color:blue"> status
11621 Table attribute safety
11624 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
11629 <th style="/* insecure input */"> status
11635 CSS line continuation 1
11637 <div style="background-image: u\ rl(test.jpg);"></div>
11639 <div style="/* insecure input */"></div>
11644 CSS line continuation 2
11646 <div style="background-image: u\ rl(test.jpg); "></div>
11648 <div style="/* insecure input */"></div>
11659 Expansion of multi-line templates in attribute values (bug 6255)
11661 <div style="background: {{identity|#00FF00}}">-</div>
11663 <div style="background: #00FF00">-</div>
11669 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
11671 <div style="background:
11674 <div style="background: #00FF00">-</div>
11679 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
11681 <div style="background: #00FF00">-</div>
11683 <div style="background: #00FF00">-</div>
11688 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
11691 Parser hook: empty input
11704 Parser hook: empty input using terminated empty elements
11717 Parser hook: empty input using terminated empty elements (space before)
11730 Parser hook: basic input
11744 Parser hook: case insensitive
11758 Parser hook: case insensitive, redux
11771 Parser hook: nested tags
11775 <tag><tag></tag></tag>
11786 Parser hook: basic arguments
11788 <tag width=200 height = "100" depth = '50' square></tag>
11796 'square' => 'square',
11803 Parser hook: argument containing a forward slash (bug 5344)
11805 <tag filename='/tmp/bla'></tag>
11810 'filename' => '/tmp/bla',
11817 Parser hook: empty input using terminated empty elements (bug 2374)
11830 # </tag> should be output literally since there is no matching tag that begins it
11832 Parser hook: basic arguments using terminated empty elements (bug 2374)
11834 <tag width=200 height = "100" depth = '50' square/>
11844 'square' => 'square',
11853 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
11857 Parser hook: static parser hook not inside a comment
11859 <statictag>hello, world</statictag>
11860 <statictag action=flush/>
11868 Parser hook: static parser hook inside a comment
11870 <!-- <statictag>hello, world</statictag> -->
11871 <statictag action=flush/>
11877 # Nested template calls; this case was broken by Parser.php rev 1.506,
11881 Template:One-parameter
11883 (My parameter is: {{{1}}})
11887 Template:Map-one-parameter
11889 {{{{{1}}}|{{{2}}}}}
11893 Nested template calls
11895 {{Map-one-parameter|One-parameter|param}}
11897 <p>(My parameter is: param)
11906 Sanitizer: Closing of open tags
11908 <s></s><table></table>
11910 <s></s><table></table>
11915 Sanitizer: Closing of open but not closed tags
11924 Sanitizer: Closing of closed but not open tags
11933 Sanitizer: Closing of closed but not open table tags
11935 Table not started</td></tr></table>
11937 <p>Table not started</td></tr></table>
11942 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
11944 <span id="æ: v">byte</span>[[#æ: v|backlink]]
11946 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
11951 Sanitizer: Validating the contents of the id attribute (bug 4515)
11957 Something, but definitely not <br id="9" />...
11961 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
11965 <br id="foo" /><br id="foo" />
11967 Something need to be done. foo-2 ?
11971 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
11974 <meta itemprop="hello" content="world">
11975 <meta http-equiv="refresh" content="5">
11976 <meta itemprop="hello" http-equiv="refresh" content="5">
11977 <link itemprop="hello" href="{{SERVER}}">
11978 <link rel="stylesheet" href="{{SERVER}}">
11979 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
11982 <div itemscope="itemscope">
11983 <p> <meta itemprop="hello" content="world" />
11984 <meta http-equiv="refresh" content="5">
11985 <meta itemprop="hello" content="5" />
11987 <link itemprop="hello" href="http://example.org" />
11988 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
11989 <link itemprop="hello" href="http://example.org" />
11995 Language converter: output gets cut off unexpectedly (bug 5757)
11999 this bit is safe: }-
12001 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12003 then we get cut off here: }-
12005 all additional text is vanished
12007 <p>this bit is safe: }-
12008 </p><p>but if we add a conversion instance: xxx
12009 </p><p>then we get cut off here: }-
12010 </p><p>all additional text is vanished
12015 Self closed html pairs (bug 5487)
12018 <center><font id="bug" />Centered text</center>
12019 <div><font id="bug2" />In div text</div>
12021 <center><font id="bug" />Centered text</center>
12022 <div><font id="bug2" />In div text</div>
12031 Punctuation: nbsp before exclamation
12035 <p>C'est grave !
12040 Punctuation: CSS !important (bug 11874)
12042 <div style="width:50% !important">important</div>
12044 <div style="width:50% !important">important</div>
12049 Punctuation: CSS ! important (bug 11874; with space after)
12051 <div style="width:50% ! important">important</div>
12053 <div style="width:50% ! important">important</div>
12059 HTML bullet list, closed tags (bug 5497)
12074 HTML bullet list, unclosed tags (bug 5497)
12093 HTML ordered list, closed tags (bug 5497)
12108 HTML ordered list, unclosed tags (bug 5497)
12127 HTML nested bullet list, closed tags (bug 5497)
12152 HTML nested bullet list, open tags (bug 5497)
12181 HTML nested ordered list, closed tags (bug 5497)
12206 HTML nested ordered list, open tags (bug 5497)
12235 HTML ordered list item with parameters oddity
12237 <ol><li id="fragment">One</li>
12240 <ol><li id="fragment">One</li>
12246 bug 5918: autonumbering
12248 [http://first/] [http://second] [ftp://ftp]
12252 [mailto:enclosed@mail.tld With target]
12254 [mailto:enclosed@mail.tld]
12256 mailto:inline@mail.tld
12258 <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>
12259 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
12260 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
12261 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
12262 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
12268 # Security and HTML correctness
12269 # From Nick Jenkins' fuzz testing
12273 Fuzz testing: Parser13
12288 Fuzz testing: Parser14
12293 <h2><span class="mw-headline" id="onmouseover.3D">onmouseover=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
12294 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12296 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
12303 Fuzz testing: Parser14-table
12308 <h2><span class="mw-headline" id="a">a</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
12309 <table style="__TOC__">
12315 # Known to produce bogus xml (extra </td>)
12317 Fuzz testing: Parser16
12337 Fuzz testing: Parser21
12340 ! irc://{{ftp://a" onmouseover="alert('hello world');"
12345 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
12355 Fuzz testing: Parser22
12357 http://===r:::https://b
12361 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
12369 # Known to produce bad XML for now
12371 Fuzz testing: Parser24
12378 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
12379 <br style="onmouseover='alert(document.cookie);' " />
12381 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
12386 <u class="|">}}}} >
12387 <br style="onmouseover='alert(document.cookie);'" />
12389 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
12398 # Note: the current result listed for this is not what the original one was,
12399 # but the original bug was JavaScript injection, which is fixed in any case.
12400 # It's not clear that the original result listed was any more correct than the
12401 # current one. Original result:
12404 # <li class="||">
12405 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
12407 Fuzz testing: Parser25 (bug 6055)
12413 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
12415 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
12420 Fuzz testing: URL adjacent extension (with space, clean)
12423 http://example.com <nowiki>junk</nowiki>
12425 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
12430 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
12433 http://example.com<nowiki>junk</nowiki>
12435 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
12440 Fuzz testing: URL adjacent extension (no space, dirty; pre)
12443 http://example.com<pre>junk</pre>
12445 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
12450 Fuzz testing: image with bogus manual thumbnail
12452 [[Image:foobar.jpg|thumbnail= ]]
12454 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
12459 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
12461 <pre dir=" "></pre>
12463 <pre dir=" "></pre>
12468 Parsing optional HTML elements (Bug 6171)
12473 <td> Some tabular data</td>
12474 <td> More tabular data ...
12475 <td> And yet som tabular data</td>
12481 <td> Some tabular data</td>
12482 <td> More tabular data ...
12483 </td><td> And yet som tabular data</td>
12490 Correct handling of <td>, <tr> (Bug 6171)
12495 <td> Some tabular data</td>
12496 <td> More tabular data ...</td>
12497 <td> And yet som tabular data</td>
12503 <td> Some tabular data</td>
12504 <td> More tabular data ...</td>
12505 <td> And yet som tabular data</td>
12513 Parsing crashing regression (fr:JavaScript)
12517 <p></body></x>
12522 Inline wiki vs wiki block nesting
12528 <p><b>Bold paragraph</b>
12529 </p><p>New wiki paragraph
12534 Inline HTML vs wiki block nesting
12542 <p><b>Bold paragraph</b>
12543 </p><p>New wiki paragraph
12547 # Original result was this:
12548 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
12550 # While that might be marginally more intuitive, maybe, the six-apostrophe
12551 # construct is clearly pathological and the result stated here (which is what
12552 # the parser actually does) is about as reasonable as anything.
12554 Mixing markup for italics and bold
12557 '''bold''''''bold''bolditalics'''''
12559 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
12567 Article for special page transclusion test
12571 Special page transclusion
12574 {{Special:Prefixindex/Xyzzyx}}
12576 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12581 Special page transclusion twice (bug 5021)
12584 {{Special:Prefixindex/Xyzzyx}}
12585 {{Special:Prefixindex/Xyzzyx}}
12587 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12588 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12593 Transclusion of default MediaWiki message
12595 {{MediaWiki:Mainpage}}
12602 Transclusion of nonexistent MediaWiki message
12604 {{MediaWiki:Mainpagexxx}}
12606 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
12611 Transclusion of MediaWiki message with underscore
12613 {{MediaWiki:history_short}}
12620 Transclusion of MediaWiki message with space
12622 {{MediaWiki:history short}}
12629 Invalid header with following text
12639 Section extraction test (section 0)
12659 Section extraction test (section 1)
12681 Section extraction test (section 2)
12702 Section extraction test (section 3)
12722 Section extraction test (section 4)
12746 Section extraction test (section 5)
12766 Section extraction test (section 6)
12787 Section extraction test (section 7)
12807 Section extraction test (section 8)
12827 Section extraction test (section 9)
12848 Section extraction test (section 10)
12868 Section extraction test (nonexistent section 11)
12887 Section extraction test with bogus heading (section 1)
12892 ==bogus== not a legal section
12896 ==bogus== not a legal section
12900 Section extraction test with bogus heading (section 2)
12905 ==bogus== not a legal section
12912 Section extraction test with comment after heading (section 1)
12924 Section extraction test with comment after heading (section 2)
12936 Section extraction test with bogus <nowiki> heading (section 1)
12941 ==bogus== <nowiki>not a legal section</nowiki>
12945 ==bogus== <nowiki>not a legal section</nowiki>
12949 Section extraction test with bogus <nowiki> heading (section 2)
12954 ==bogus== <nowiki>not a legal section</nowiki>
12961 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
12962 # instead of respecting commented sections
12964 Section extraction prefixed by comment (section 1)
12975 Section extraction prefixed by comment (section 2)
12986 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
12987 # instead of respecting HTML-style headings
12989 Section extraction, mixed wiki and html (section 1)
13005 Section extraction, mixed wiki and html (section 2)
13021 # Formerly testing for bug 3342
13023 Section extraction, heading surrounded by <noinclude>
13027 <noinclude>==unmarked==</noinclude>
13033 # Test behavior of bug 19910
13035 Sectiion with all-equals
13040 The line above must have a trailing space
13043 But just in case it doesn't...
13047 But just in case it doesn't...
13051 Section replacement test (section 0)
13082 Section replacement test (section 1)
13111 Section replacement test (section 2)
13141 Section replacement test (section 3)
13172 Section replacement test (section 4)
13199 Section replacement test (section 5)
13230 Section replacement test (section 6)
13260 Section replacement test (section 7)
13291 Section replacement test (section 8)
13322 Section replacement test (section 9)
13351 Section replacement test (section 10)
13381 Section replacement test with initial whitespace (bug 13728)
13385 Preformatted initial line
13389 Preformatted initial line
13396 Section extraction, heading followed by pre with 20 spaces (bug 6398)
13408 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
13421 Section extraction, <pre> around bogus header (bug 10309)
13438 Section replacement, <pre> around bogus header (bug 10309)
13440 noxml replace=2,"xxx"
13461 Handling of 
 in URLs
13467 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
13476 5 quotes, code coverage +1 line (php)
13483 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
13485 5 quotes, code coverage +1 line (parsoid)
13491 <p><b><i></i></b></p>
13495 Special:Search page linking.
13499 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
13506 title=[[Parser test]]
13511 * {{FULLPAGENAMEE}}
13513 * {{BASEPAGENAMEE}}
13517 * {{ROOTPAGENAMEE}}
13519 * {{TALKPAGENAMEE}}
13520 * {{SUBJECTPAGENAME}}
13521 * {{SUBJECTPAGENAMEE}}
13524 * {{NAMESPACENUMBER}}
13528 * {{SUBJECTSPACEE}}
13529 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
13552 <li> Talk:Parser test
13554 <li> Talk:Parser_test
13574 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
13579 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
13589 image4 |300px| centre
13590 image5.svg| http://///////
13595 <ul class="gallery mw-gallery-traditional">
13596 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13597 <div class="thumb" style="height: 150px;">Image1.png</div>
13598 <div class="gallerytext">
13601 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13602 <div class="thumb" style="height: 150px;">Image2.gif</div>
13603 <div class="gallerytext">
13608 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13609 <div class="thumb" style="height: 150px;">Image3</div>
13610 <div class="gallerytext">
13613 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13614 <div class="thumb" style="height: 150px;">Image4</div>
13615 <div class="gallerytext">
13620 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13621 <div class="thumb" style="height: 150px;">Image5.svg</div>
13622 <div class="gallerytext">
13623 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
13627 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13628 <div class="thumb" style="height: 150px;">* image6</div>
13629 <div class="gallerytext">
13637 Gallery (with options)
13639 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
13640 File:Nonexistant.jpg|caption
13641 File:Nonexistant.jpg
13642 image:foobar.jpg|some '''caption''' [[Main Page]]
13644 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
13647 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
13648 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
13649 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13650 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
13651 <div class="gallerytext">
13656 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13657 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
13658 <div class="gallerytext">
13661 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13662 <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>
13663 <div class="gallerytext">
13664 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13668 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13669 <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>
13670 <div class="gallerytext">
13673 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13674 <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>
13675 <div class="gallerytext">
13685 Gallery with wikitext inside caption
13688 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
13689 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
13692 <ul class="gallery mw-gallery-traditional">
13693 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13694 <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>
13695 <div class="gallerytext">
13696 <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>
13700 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13701 <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>
13702 <div class="gallerytext">
13703 <p>This is a test template
13712 gallery (with showfilename option)
13714 <gallery showfilename>
13715 File:Nonexistant.jpg|caption
13716 File:Nonexistant.jpg
13717 image:foobar.jpg|some '''caption''' [[Main Page]]
13721 <ul class="gallery mw-gallery-traditional">
13722 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13723 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13724 <div class="gallerytext">
13725 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13730 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13731 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13732 <div class="gallerytext">
13733 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13737 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13738 <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>
13739 <div class="gallerytext">
13740 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13741 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13745 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13746 <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>
13747 <div class="gallerytext">
13748 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13757 Gallery (with namespace-less filenames)
13760 File:Nonexistant.jpg
13766 <ul class="gallery mw-gallery-traditional">
13767 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13768 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13769 <div class="gallerytext">
13772 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13773 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13774 <div class="gallerytext">
13777 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13778 <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>
13779 <div class="gallerytext">
13782 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13783 <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>
13784 <div class="gallerytext">
13792 HTML Hex character encoding (spells the word "JavaScript")
13794 JavaScript
13796 <p>JavaScript
13801 HTML Hex character encoding bogus encoding (bug 26437 regression check)
13805 <p>&#xsee;&#XSEE;
13810 HTML Hex character encoding mixed case
13819 __FORCETOC__ override
13831 ISBN 978-0-1234-56 789
13833 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
13838 ISBN followed by 5 spaces
13849 ISBN ISBN 1234567890
13851 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13856 Bug 22905: <abbr> followed by ISBN followed by </a>
13858 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
13860 <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>
13869 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
13874 Double RFC with a wiki link
13878 <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>
13887 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
13892 Centre-aligned image
13894 [[Image:foobar.jpg|centre]]
13896 <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>
13903 [[Image:foobar.jpg|none]]
13905 <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>
13910 Width + Height sized image (using px) (height is ignored)
13912 [[Image:foobar.jpg|640x480px]]
13914 <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>
13919 Width-sized image (using px, no following whitespace)
13921 [[Image:foobar.jpg|640px]]
13923 <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>
13928 Width-sized image (using px, with following whitespace - test regression from r39467)
13930 [[Image:foobar.jpg|640px ]]
13932 <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>
13937 Width-sized image (using px, with preceding whitespace - test regression from r39467)
13939 [[Image:foobar.jpg| 640px]]
13941 <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>
13946 Another italics / bold test
13954 # Note the results may be incorrect, as parserTest output included this:
13955 # XML error: Mismatched tag at byte 6120:
13956 # ...<dd> </dt></dl> </dd...
13987 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
13989 Images with the "|" character in the comment
13991 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
13993 <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>
13998 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14000 <html><script>alert(1);</script></html>
14002 <p><html><script>alert(1);</script></html>
14007 HTML with raw HTML ($wgRawHtml==true)
14011 <html><script>alert(1);</script></html>
14013 <p><script>alert(1);</script>
14018 Parents of subpages, one level up
14020 subpage title=[[Subpage test/L1/L2/L3]]
14024 <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>
14030 Parents of subpages, one level up, not named
14032 subpage title=[[Subpage test/L1/L2/L3]]
14036 <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>
14043 Parents of subpages, two levels up
14045 subpage title=[[Subpage test/L1/L2/L3]]
14051 <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
14052 </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>
14057 Parents of subpages, two levels up, without trailing slash or name.
14059 subpage title=[[Subpage test/L1/L2/L3]]
14068 Parents of subpages, two levels up, with lots of extra trailing slashes.
14070 subpage title=[[Subpage test/L1/L2/L3]]
14074 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14079 Subpage test/L1/L2/L3Sibling
14085 Transclusion of a sibling page (one level up)
14087 subpage title=[[Subpage test/L1/L2/L3]]
14096 Transclusion of a child page
14098 subpage title=[[Subpage test/L1/L2]]
14107 Non-transclusion because of too many up levels
14109 subpage title=[[Subpage test/L1/L2/L3]]
14111 {{../../../../More than parent}}
14113 <p>{{../../../../More than parent}}
14118 Definition list code coverage
14125 <dt> title  </dt>
14128 <dt> title </dt>
14139 Don't fall for the self-closing div
14141 <div>hello world</div/>
14143 <div>hello world</div>
14152 <p>[[:Template:Msg]]
14161 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
14165 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
14167 Always escape literal '>' in output, not just after '<'
14181 <p>This is a test template
14182 This is a test template
14194 Inclusion of !userCanEdit() content
14198 <h2><span class="mw-headline" id="header">header</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14204 Out-of-order TOC heading levels
14213 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14215 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
14217 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
14218 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
14221 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
14223 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
14224 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
14229 <h2><span class="mw-headline" id="2">2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14230 <h6><span class="mw-headline" id="6">6</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
14231 <h3><span class="mw-headline" id="3">3</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
14232 <h1><span class="mw-headline" id="1">1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
14233 <h5><span class="mw-headline" id="5">5</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a><span class="mw-editsection-bracket">]</span></span></h5>
14234 <h2><span class="mw-headline" id="2_2">2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14240 ISBN with a dummy number
14250 ISBN with space-delimited number
14254 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
14260 ISBN with multiple spaces, no number
14279 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14280 </p><p>ISBN 12345678901
14286 ISBN with trailing year (bug 8110)
14288 ISBN 1-234-56789-0 - 2006
14290 ISBN 1 234 56789 0 - 2006
14292 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
14293 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
14301 {{anchorencode:foo bar©#%n}}
14303 <p>foo_bar.C2.A9.23.25n
14308 anchorencode trims spaces
14310 {{anchorencode: __pretty__please__}}
14317 anchorencode deals with links
14319 {{anchorencode: [[hello|world]] [[hi]]}}
14326 anchorencode deals with templates
14328 {{anchorencode: {{Foo}} }}
14335 anchorencode encodes like the TOC generator: (bug 18431)
14337 === _ +:.3A%3A&&]] ===
14338 {{anchorencode: _ +:.3A%3A&&]] }}
14341 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
14342 <p>.2B:.3A.253A.26.26.5D.5D
14347 Bug 6200: blockquotes and paragraph formatting
14368 Bug 8293: Use of center tag ruins paragraph formatting
14389 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
14393 <span><s>x</span></s>
14395 <p><span><s>x</span></s></span>
14400 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
14404 <span><s>x</span></s>
14406 <p><span><s>x</s></span><s></s>
14411 ### Language variants related tests
14414 Self-link in language variants
14416 title=[[Dunav]] language=sr
14418 Both [[Dunav]] and [[Дунав]] are names for this river.
14420 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
14431 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
14433 title=[[Duna]] language=sr
14435 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
14437 <p><a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Дуна</a> is not a self-link while <strong class="selflink">Duna</strong> and <strong class="selflink">Dуна</strong> are still self-links.
14442 Link to pages in language variants
14446 Main Page can be written as [[Маин Паге]]
14448 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
14454 Multiple links to pages in language variants
14458 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
14460 <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>.
14466 Simple template in language variants
14472 <p>This is a test template
14478 Template with explicit namespace in language variants
14484 <p>This is a test template
14490 Basic test for template parameter in language variants
14494 {{парамтест|param=foo}}
14496 <p>This is a test template with parameter foo
14502 Simple category in language variants
14506 [[Category:МедиаWики Усер'с Гуиде]]
14508 <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>
14525 Don't convert blue categorylinks to another variant (bug 33210)
14529 [[A]][[Category:分类]]
14531 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
14536 Stripping -{}- tags (language variants)
14540 Latin proverb: -{Ne nuntium necare}-
14542 <p>Latin proverb: Ne nuntium necare
14548 Prevent conversion with -{}- tags (language variants)
14550 language=sr variant=sr-ec
14552 Latinski: -{Ne nuntium necare}-
14554 <p>Латински: Ne nuntium necare
14560 Prevent conversion of text with -{}- tags (language variants)
14562 language=sr variant=sr-ec
14564 Latinski: -{Ne nuntium necare}-
14566 <p>Латински: Ne nuntium necare
14572 Prevent conversion of links with -{}- tags (language variants)
14574 language=sr variant=sr-ec
14578 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14584 -{}- tags within headlines (within html for parserConvert())
14586 language=sr variant=sr-ec
14590 <h2><span class="mw-headline" id="-.7BNaslov.7D-">Naslov</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a><span class="mw-editsection-bracket">]</span></span></h2>
14596 Explicit definition of language variant alternatives
14598 language=zh variant=zh-tw
14600 -{zh:China;zh-tw:Taiwan}-, not China
14602 <p>Taiwan, not China
14608 Conversion around HTML tags
14610 language=sr variant=sr-ec
14612 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
14613 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
14616 <span title="ЛаCтин">ски</span>
14622 Explicit session-wise language variant mapping (A flag and - flag)
14624 language=zh variant=zh-tw
14626 Taiwan is not China.
14627 But -{A|zh:China;zh-tw:Taiwan}- is China,
14628 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
14629 and -{China}- is China.
14631 <p>Taiwan is not China.
14632 But Taiwan is Taiwan,
14633 (This should be stripped!)
14634 and China is China.
14639 Explicit session-wise language variant mapping (H flag for hide)
14641 language=zh variant=zh-tw
14643 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
14646 <p>(This should be stripped!)
14652 Adding explicit conversion rule for title (T flag)
14654 language=zh variant=zh-tw showtitle
14656 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14659 <p>Should be stripped!
14664 Testing that changing the language variant here in the tests actually works
14666 language=zh variant=zh showtitle
14668 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14671 <p>Should be stripped!
14676 Recursive conversion of alt and title attrs shouldn't clear converter state
14678 language=zh variant=zh-cn showtitle
14680 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
14681 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
14685 Should be stripped<span title="Exclamation">!</span>
14690 Bug 24072: more test on conversion rule for title
14692 language=zh variant=zh-tw showtitle
14694 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14695 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
14698 <p>This should be stripped!
14699 This won't take interferes with the title rule.
14704 Partly disable title conversion if variant == main language code
14706 language=zh variant=zh title=[[ZH]] showtitle
14708 -{T|zh-cn:CN;zh-tw:TW}-
14716 Partly disable title conversion if variant == main language code, more
14718 language=zh variant=zh title=[[ZH]] showtitle
14728 Raw output of variant escape tags (R flag)
14730 language=zh variant=zh-tw
14732 Raw: -{R|zh:China;zh-tw:Taiwan}-
14734 <p>Raw: zh:China;zh-tw:Taiwan
14739 Nested using of manual convert syntax
14741 language=zh variant=zh-hk
14743 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
14745 <p>Nested: Hello Hong Kong!
14750 Proper conversion of text in external links
14752 language=sr variant=sr-ec
14754 http://www.google.com
14755 gopher://www.google.com
14756 [http://www.google.com http://www.google.com]
14757 [gopher://www.google.com gopher://www.google.com]
14758 [https://www.google.com irc://www.google.com]
14759 [ftp://www.google.com www.google.com/ftp://dir]
14760 [//www.google.com www.google.com]
14762 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14763 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14764 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14765 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14766 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
14767 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
14768 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
14773 Do not convert roman numbers to language variants
14775 language=sr variant=sr-ec
14779 <p>Фридрих IV је цар.
14784 Unclosed language converter markup "-{"
14795 Don't convert raw rule "-{R|=>}-" to "=>"
14806 Bug 529: Uncovered bullet
14819 # Plain MediaWiki does not remove empty lists, but tidy actually does.
14820 # Templates in Wikipedia rely on this behavior, as tidy has always been
14821 # enabled there. These tests are normally run *without* tidy, so specify the
14822 # full output here.
14823 # To test realistic parsing behavior, apply a tidy-like transformation to both
14824 # the expected output and your parser's output.
14826 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
14828 ******* Foo {{bullet}}
14858 Bug 529: Uncovered table already at line-start
14881 Bug 529: Uncovered bullet in parser function result
14883 * Foo {{lc:{{bullet}} }}
14895 Bug 5678: Double-parsed template argument
14897 {{lc:{{{1}}}|hello}}
14904 Bug 5678: Double-parsed template invocation
14906 {{lc:{{paramtest {{!}} param = hello }} }}
14908 <p>{{paramtest | param = hello }}
14913 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
14916 title=[[Main Page]]
14918 {{PRVNÍVELKÉ:ěščř}}
14919 {{prvnívelké:ěščř}}
14939 Morwen/13: Unclosed link followed by heading
14946 <h2><span class="mw-headline" id="heading">heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14951 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
14958 <h1><span class="mw-headline" id="heading">heading</span></h1>
14963 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
14970 <h2><span class="mw-headline" id="heading">heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14985 Paragraphs inside divs (no extra line breaks)
14997 Paragraphs inside divs (extra line break on open)
15012 Paragraphs inside divs (extra line break on close)
15027 Paragraphs inside divs (extra line break on open and close)
15044 Nesting tags, paragraphs on lines which begin with <div>
15048 <div></div><strong>A
15057 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
15059 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
15061 <blockquote>Line one
15063 Line two</blockquote>
15065 <blockquote>Line one
15066 Line two</blockquote>
15071 Bug 6200: paragraphs inside blockquotes (extra line break on open)
15076 Line two</blockquote>
15081 Line two</blockquote>
15086 Bug 6200: paragraphs inside blockquotes (extra line break on close)
15088 <blockquote>Line one
15093 <blockquote>Line one
15101 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
15118 Paragraphs inside blockquotes/divs (no extra line breaks)
15120 <blockquote><div>Line one
15122 Line two</div></blockquote>
15124 <blockquote><div>Line one
15125 Line two</div></blockquote>
15130 Paragraphs inside blockquotes/divs (extra line break on open)
15135 Line two</div></blockquote>
15140 Line two</div></blockquote>
15145 Paragraphs inside blockquotes/divs (extra line break on close)
15147 <blockquote><div>Line one
15150 </div></blockquote>
15152 <blockquote><div>Line one
15155 </div></blockquote>
15160 Paragraphs inside blockquotes/divs (extra line break on open and close)
15166 </div></blockquote>
15172 </div></blockquote>
15177 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
15179 wgLinkHolderBatchSize=0
15185 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
15186 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
15187 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
15192 Free external link invading image caption
15194 [[Image:Foobar.jpg|thumb|http://x|hello]]
15196 <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>
15201 Bug 15196: localised external link numbers
15205 [http://en.wikipedia.org/]
15207 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
15212 Multibyte character in padleft
15214 {{padleft:-Hello|7|Æ}}
15221 Multibyte character in padright
15223 {{padright:Hello-|7|Æ}}
15230 formatdate parser function
15232 {{#formatdate:2009-03-24}}
15234 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
15239 formatdate parser function, with default format
15241 {{#formatdate:2009-03-24|mdy}}
15243 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
15248 Spacing of numbers in formatted dates
15250 {{#formatdate:January 15}}
15252 <p><span class="mw-formatted-date" title="01-15">January 15</span>
15257 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
15259 language=nl title=[[MediaWiki:Common.css]]
15261 {{#formatdate:2009-03-24|dmy}}
15263 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
15276 Edit comment with link
15280 I like the [[Main Page]] a lot
15282 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
15286 Edit comment with link and link text
15290 I like the [[Main Page|best pages]] a lot
15292 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
15296 Edit comment with link and link text with suffix
15300 I like the [[Main Page|best page]]s a lot
15302 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
15306 Edit comment with section link (non-local, eg in history list)
15308 comment title=[[Main Page]]
15310 /* External links */ removed bogus entries
15312 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
15316 Edit comment with section link and text before it (non-local, eg in history list)
15318 comment title=[[Main Page]]
15320 pre-comment text /* External links */ removed bogus entries
15322 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>
15326 Edit comment with section link (local, eg in diff view)
15328 comment local title=[[Main Page]]
15330 /* External links */ removed bogus entries
15332 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
15336 Edit comment with subpage link (bug 14080)
15340 title=[[Subpage test]]
15342 Poked at a [[/subpage]] here...
15344 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
15348 Edit comment with subpage link and link text (bug 14080)
15352 title=[[Subpage test]]
15354 Poked at a [[/subpage|neat little page]] here...
15356 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
15360 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
15363 title=[[Subpage test]]
15365 Poked at a [[/subpage]] here...
15367 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
15371 Edit comment with bare anchor link (local, as on diff)
15375 title=[[Main Page]]
15379 <a href="#section">#section</a>
15383 Edit comment with bare anchor link (non-local, as on history)
15386 title=[[Main Page]]
15390 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
15394 Anchor starting with underscore
15398 <p><a href="#_ref">One</a>
15403 Id starting with underscore
15405 <div id="_ref"></div>
15407 <div id="_ref"></div>
15412 Space normalisation on autocomment (bug 22784)
15415 title=[[Main Page]]
15417 /* __hello__world__ */
15419 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
15423 percent-encoding and + signs in comments (Bug 26410)
15427 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
15429 <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>
15433 Bad images - basic functionality
15442 Bad images - bug 16039: text after bad image disappears
15456 Verify that displaytitle works (bug #22501) no displaytitle
15460 wgAllowDisplayTitle=true
15461 wgRestrictDisplayTitle=false
15463 this is not the the title
15466 <p>this is not the the title
15471 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
15476 wgAllowDisplayTitle=true
15477 wgRestrictDisplayTitle=false
15479 this is not the the title
15480 {{DISPLAYTITLE:whatever}}
15483 <p>this is not the the title
15488 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
15493 wgAllowDisplayTitle=true
15494 wgRestrictDisplayTitle=true
15496 this is not the the title
15497 {{DISPLAYTITLE:whatever}}
15500 <p>this is not the the title
15505 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
15510 wgAllowDisplayTitle=true
15511 wgRestrictDisplayTitle=true
15513 this is not the the title
15514 {{DISPLAYTITLE:screen}}
15517 <p>this is not the the title
15522 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
15527 wgAllowDisplayTitle=false
15529 this is not the the title
15530 {{DISPLAYTITLE:screen}}
15533 <p>this is not the the title
15534 <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>
15539 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
15544 wgAllowDisplayTitle=false
15546 this is not the the title
15549 <p>this is not the the title
15554 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
15559 wgAllowDisplayTitle=true
15560 wgRestrictDisplayTitle=true
15562 this is not the the title
15563 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
15565 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
15566 <p>this is not the the title
15571 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
15576 wgAllowDisplayTitle=true
15577 wgRestrictDisplayTitle=true
15579 this is not the the title
15580 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
15582 <span style="color: red;">s</span>creen
15583 <p>this is not the the title
15588 preload: check <noinclude> and <includeonly>
15592 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
15598 preload: check <onlyinclude>
15602 Goodbye <onlyinclude>Hello world</onlyinclude>
15608 preload: can pass tags through if we want to
15612 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
15614 <includeonly>Hello world</includeonly>
15618 preload: check that it doesn't try to do tricks
15622 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
15624 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
15628 Play a bit with r67090 and bug 3158
15632 <div style="width:50% !important"> </div>
15633 <div style="width:50% !important"> </div>
15634 <div style="width:50% !important"> </div>
15635 <div style="border : solid;"> </div>
15637 <div style="width:50% !important"> </div>
15638 <div style="width:50% !important"> </div>
15639 <div style="width:50% !important"> </div>
15640 <div style="border : solid;"> </div>
15645 HTML5 data attributes
15647 <span data-foo="bar">Baz</span>
15648 <p data-abc-def_hij="">Quuz</p>
15650 <p><span data-foo="bar">Baz</span>
15652 <p data-abc-def_hij="">Quuz</p>
15657 percent-encoding and + signs in internal links (Bug 26410)
15659 [[User:+%]] [[Page+title%]]
15660 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
15661 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
15662 [[%33%45]] [[%33%45+]]
15664 <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>
15665 <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>
15666 <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>
15667 <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>
15672 Special characters in embedded file links (bug 27679)
15674 [[File:Contains & ampersand.jpg]]
15675 [[File:Does not exist.jpg|Title with & ampersand]]
15677 <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>
15678 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
15684 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
15686 Text's been normalized?
15688 <p>Text's been normalized?
15693 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
15695 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
15697 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
15702 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
15704 [http://www.example.org/ ideograms]
15706 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
15711 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
15713 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
15715 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
15739 Bug 31098 Template which includes system messages which includes the template
15743 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15744 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15749 Bug31490 Turkish: ucfirst 'blah'
15760 Bug31490 Turkish: ucfirst 'ix'
15771 Bug31490 Turkish: lcfirst 'BLAH'
15782 Bug31490 Turkish: ucfırst (with a dotless i)
15788 <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>
15793 Bug31490 ucfırst (with a dotless i) with English language
15799 <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>
15804 Bug 26375: TOC with italics
15806 title=[[Main Page]]
15809 == ''Lost'' episodes ==
15811 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15813 <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>
15816 <h2><span class="mw-headline" id="Lost_episodes"><i>Lost</i> episodes</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15821 Bug 26375: TOC with bold
15823 title=[[Main Page]]
15826 == '''should be bold''' then normal text ==
15828 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15830 <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>
15833 <h2><span class="mw-headline" id="should_be_bold_then_normal_text"><b>should be bold</b> then normal text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15838 Bug 33845: Headings become cursive in TOC when they contain an image
15840 title=[[Main Page]]
15843 == Image [[Image:foobar.jpg]] ==
15845 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15847 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
15850 <h2><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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15855 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
15857 title=[[Main Page]]
15860 == <blockquote>Quote</blockquote> ==
15862 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15864 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
15867 <h2><span class="mw-headline" id="Quote"><blockquote>Quote</blockquote></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15872 Unclosed tags in TOC
15874 title=[[Main Page]]
15878 <small>Hanc marginis exiguitas non caperet.</small>
15881 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15883 <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>
15886 <h2><span class="mw-headline" id="Proof:_2_.3C_3">Proof: 2 < 3</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15887 <p><small>Hanc marginis exiguitas non caperet.</small>
15893 Multiple tags in TOC
15896 == <i>Foo</i> <b>Bar</b> ==
15898 == <i>Foo</i> <blockquote>Bar</blockquote> ==
15900 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15902 <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>
15903 <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>
15906 <h2><span class="mw-headline" id="Foo_Bar"><i>Foo</i> <b>Bar</b></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15907 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i> <blockquote>Bar</blockquote></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15912 Tags with parameters in TOC
15915 == <sup class="in-h2">Hello</sup> ==
15917 == <sup class="a > b">Evilbye</sup> ==
15919 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15921 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
15922 <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>
15925 <h2><span class="mw-headline" id="Hello"><sup class="in-h2">Hello</sup></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15926 <h2><span class="mw-headline" id="b.22.3EEvilbye"><sup> b">Evilbye</sup></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15931 span tags with directionality in TOC
15934 == <span dir="ltr">C++</span> ==
15936 == <span dir="rtl">זבנג!</span> ==
15938 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
15940 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
15942 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
15944 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15946 <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>
15947 <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>
15948 <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>
15949 <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>
15950 <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>
15953 <h2><span class="mw-headline" id="C.2B.2B"><span dir="ltr">C++</span></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15954 <h2><span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"><span dir="rtl">זבנג!</span></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15955 <h2><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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><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 class="mw-editsection-bracket">]</span></span></h2>
15956 <h2><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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><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 class="mw-editsection-bracket">]</span></span></h2>
15957 <h2><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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><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 class="mw-editsection-bracket">]</span></span></h2>
15964 == {{int:headline_sample}} ==
15968 Bug 32057: Title needed when expanding <h> nodes.
15970 title=[[Main Page]]
15974 <h2><span class="mw-headline" id="Headline_text">Headline text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15979 Strip marker in urlencode
15981 {{urlencode:x<nowiki/>y}}
15982 {{urlencode:x<nowiki/>y|wiki}}
15983 {{urlencode:x<nowiki/>y|path}}
16010 Strip marker in formatNum
16012 {{formatnum:1<nowiki/>2}}
16013 {{formatnum:1<nowiki/>2|R}}
16021 Check noCommafy in formatNum
16025 {{formatnum:123456.78}}
16026 {{formatnum:123456.78|NOSEP}}
16034 Strip marker in grammar
16038 {{grammar:elative|foo<nowiki/>bar}}
16045 Strip marker in padleft
16047 {{padleft:|2|x<nowiki/>y}}
16054 Strip marker in padright
16056 {{padright:|2|x<nowiki/>y}}
16063 Strip marker in anchorencode
16065 {{anchorencode:x<nowiki/>y}}
16072 nowiki inside link inside heading (bug 18295)
16074 ==[[foo|x<nowiki>y</nowiki>z]]==
16076 <h2><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><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16081 new support for bdi element (bug 31817)
16083 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
16085 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
16090 Ignore pipe between table row attributes
16094 |- id=foo | style='color: red'
16102 <tr id="foo" style="color: red">
16109 Gallery override link with WikiLink (bug 34852)
16112 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
16115 <ul class="gallery mw-gallery-traditional">
16116 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16117 <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>
16118 <div class="gallerytext">
16128 Gallery override link with absolute external link (bug 34852)
16131 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
16134 <ul class="gallery mw-gallery-traditional">
16135 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16136 <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>
16137 <div class="gallerytext">
16147 Gallery override link with malicious javascript (bug 34852)
16150 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
16153 <ul class="gallery mw-gallery-traditional">
16154 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16155 <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>
16156 <div class="gallerytext">
16166 Gallery with invalid title as link (bug 43964)
16169 File:foobar.jpg|link=<
16172 <ul class="gallery mw-gallery-traditional">
16173 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16174 <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>
16175 <div class="gallerytext">
16183 Language parser function
16192 Padleft and padright as substr
16194 {{padleft:|3|abcde}}
16195 {{padright:|3|abcde}}
16203 Special parser function
16205 {{#special:RandomPage}}
16206 {{#special:BaDtItLe}}
16207 {{#special:Foobar}}
16216 Bug 34939 - Case insensitive link parsing ([HttP://])
16218 [HttP://MediaWiki.Org/]
16220 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
16225 Bug 34939 - Case insensitive link parsing ([HttP:// title])
16227 [HttP://MediaWiki.Org/ MediaWiki]
16229 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
16234 Bug 34939 - Case insensitive link parsing (HttP://)
16236 HttP://MediaWiki.Org/
16238 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
16244 ### Parsoids-specific tests
16245 ### Parsoid-PHP parser incompatibilities
16248 1. SOL-sensitive wikitext tokens as template-args
16250 parsoid=wt2html,wt2wt
16256 <span about="#mwt1" typeof="mw:Transclusion">
16257 </span><ul about="#mwt1"><li>a</li>
16259 <span about="#mwt2" typeof="mw:Transclusion">
16260 </span><ol about="#mwt2"><li>a</li>
16262 <span about="#mwt3" typeof="mw:Transclusion">
16263 </span><dl about="#mwt3"><dd>a</dd>
16267 #### ----------------------------------------------------------------
16268 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
16269 #### tags. Parsoid's output for these tags differs from that of the
16271 #### ----------------------------------------------------------------
16274 Ref: 1. ref-location should be replaced with an index span
16279 B <ref name="x">foo</ref>
16282 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
16283 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-2">[2]</a></span>
16284 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"y"}}' id="cite_ref-y-3-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-y-3">[3]</a></span></p>
16288 Ref: 2. ref-tags with identical names should all get the same index
16292 A <ref name="x">foo</ref>
16295 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
16296 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
16300 Ref: 3. spaces in ref-names should be ignored
16304 A <ref name="x">foo</ref>
16305 B <ref name=" x " />
16308 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
16309 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
16310 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-2" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
16314 Ref: 4. 'constructor' should be accepted as a valid ref-name
16315 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
16319 A <ref name="constructor">foo</ref>
16321 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"constructor"}}' id="cite_ref-constructor-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-constructor-1">[1]</a></span></p>
16325 Ref: 5. body should accept generic wikitext
16330 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
16335 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid=\"{&quot;dsr&quot;:[19,40,3,3]}\"><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" data-parsoid=\"{&quot;stx&quot;:&quot;simple&quot;,&quot;a&quot;:{&quot;href&quot;:&quot;./Bolded_link&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;bolded link&quot;},&quot;dsr&quot;:[22,37,2,2]}\">bolded link</a></b> and this is a <span about=\"#mwt5\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;transclusion&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[55,76,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">transclusion</span>\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
16337 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'>
16338 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> This is a <b><a rel="mw:WikiLink" href="./Bolded_link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}'>transclusion</span>
16344 Ref: 6. indent-pres should not be output in ref-body
16356 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n bar\n baz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
16358 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
16359 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
16367 Ref: 7. No p-wrapping in ref-body
16386 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n\nbar\n\n\nbaz\n\n\n\nbooz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
16388 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16389 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
16404 Ref: 8. transclusion wikitext has lower precedence
16408 A <ref> foo {{echo|</ref> B C}}
16412 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid=\"{&quot;src&quot;:&quot;{{&quot;,&quot;dsr&quot;:[12,14,0,0]}\">{{</span>echo|"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
16414 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16415 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <span typeof="mw:Nowiki">{{</span>echo|</li>
16420 Ref: 9. unclosed comments should not leak out of ref-body
16424 A <ref> foo <!--</ref> B C
16428 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <!---->"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
16430 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16431 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li>
16436 Ref: 10. Unclosed HTML tags should not leak out of ref-body
16440 A <ref> <b> foo </ref> B C
16444 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"<b data-parsoid=\"{&quot;stx&quot;:&quot;html&quot;,&quot;autoInsertedEnd&quot;:true,&quot;dsr&quot;:[8,16,3,0]}\"> foo </b>"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
16446 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16447 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b> foo </b></li>
16452 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
16459 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B
16460 C <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> D</p>
16464 Ref: 12. ref-tags act as trailing newline migration barrier
16468 <!--the newline at the end of this line moves out of the p-tag-->a
16470 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
16475 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
16478 <p>b<!--the newline at the end of this line stays inside the p-tag--> <span about="#mwt1" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
16479 <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
16486 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
16494 <p><span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> A
16495 <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar\n"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> B</p>
16499 Ref: 14. A nested ref-tag should be emitted as plain text
16503 <ref>foo <ref>bar</ref> baz</ref>
16507 <p><span about="#mwt1" class="reference" data-mw="{"name":"ref","body":{"html":"foo &lt;ref&gt;bar&lt;/ref&gt; baz"},"attrs":{}}" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
16509 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
16510 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <ref>bar</ref> baz</li>
16515 Ref: 15. ref-tags with identical names should get identical indexes
16519 A1 <ref name="a">foo</ref> A2 <ref name="a" />
16520 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
16524 <p>A1 <span about="#mwt3" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span> A2 <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
16525 B1 <span about="#mwt7" class="reference" data-mw='{"name":"ref","attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span> B2 <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
16527 <ol about="#mwt10" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-a-1-0">1.0</a> <a href="#cite_ref-a-1-1">1.1</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy">↑ <a href="#cite_ref-b-2-0">2.0</a> <a href="#cite_ref-b-2-1">2.1</a></span> bar</li>
16532 References: 1. references tag without any refs should be handled properly
16538 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
16542 References: 2. references tag with group only outputs references from that group
16546 A <ref group="a">foo</ref>
16547 B <ref group="b">bar</ref>
16549 <references group='a' />
16551 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
16552 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[b 1]</a></span></p>
16554 <ol about="#mwt6" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{"group":"a"}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li>
16559 References: 3. ref list should be cleared after processing references
16571 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
16573 <ol about="#mwt4" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li>
16576 <p>B <span about="#mwt6" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
16578 <ol about="#mwt8" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bar</li>
16583 References: 4. only referenced group should be cleared after processing references
16587 A <ref group="a">afoo</ref>
16590 <references group="a"/>
16596 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"afoo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
16597 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bfoo</ref>","dsr":[30,45,5,6]}'><a href="#cite_note-1">[1]</a></span></p>
16599 <ol about="#mwt6" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{"group":"a"}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> afoo</li>
16602 <p>C <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
16604 <ol about="#mwt10" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bfoo</li><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> cfoo</li>
16609 References: 5. ref tags in references should be processed while ignoring all other content
16614 B <ref name="b">bar</ref>
16617 <ref name="a">foo</ref>
16618 This should just get lost.
16621 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
16622 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
16624 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost.","html":"\n<span about=\"#mwt8\" class=\"reference\" data-mw=\"{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;a&quot;}}\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-a-1\">[1]</a></span>\n"},"attrs":{}}'><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy"><a href="#cite_ref-a-1-0">↑</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> bar</li>
16629 References: 6. <references /> from a transclusion
16633 {{echo|<references />}}
16635 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}}]}'></ol>
16639 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
16643 A <ref>foo bar for a</ref>
16649 <ref name="b">foo</ref>
16652 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo bar for a"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
16653 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
16655 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
16656 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo bar for a</li>
16657 <li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> </li>
16660 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"b\">foo</ref>","html":"\n<span about=\"#mwt10\" class=\"reference\" data-mw=\"{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;b&quot;}}\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-b-1\">[1]</a></span>\n"},"attrs":{}}'>
16661 <li about="#cite_note-b-1" id="cite_note-b-1"><span rel="mw:referencedBy">↑</span> foo</li>
16665 #### ----------------------------------------------------------------
16666 #### The following section of tests are primarily to test
16667 #### wikitext escaping capabilities of Parsoid. Given that
16668 #### escaping can be done any number of ways, the wikitext (input)
16669 #### is always adjusted to reflect how Parsoid adds nowiki
16672 #### We are marking several tests as parsoid-only since the
16673 #### HTML in the result section is different from what the
16674 #### PHP parser generates for it.
16675 #### ----------------------------------------------------------------
16678 #### --------------- Headings ---------------
16680 #### 1. Nested inside html <h1>=foo=</h1>
16681 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
16682 #### 3. Nested inside html with wikitext split by html tags
16683 #### 4. No escape needed
16684 #### 5. Empty headings <h1></h1>
16685 #### 6. Heading chars in SOL context
16686 #### ----------------------------------------
16688 Headings: 0. Unnested
16692 <nowiki>=foo=</nowiki>
16694 <nowiki> =foo= </nowiki>
16696 <nowiki>=foo=</nowiki>
16698 =foo''a''<nowiki>=</nowiki>
16700 <p><span typeof="mw:Nowiki">=foo=</span></p>
16702 <p><span typeof="mw:Nowiki"> =foo= </span>
16704 <span typeof="mw:Nowiki">=foo=</span></p>
16706 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
16710 Headings: 1. Nested inside html
16714 =<nowiki>=foo=</nowiki>=
16716 ==<nowiki>=foo=</nowiki>==
16718 ===<nowiki>=foo=</nowiki>===
16720 ====<nowiki>=foo=</nowiki>====
16722 =====<nowiki>=foo=</nowiki>=====
16724 ======<nowiki>=foo=</nowiki>======
16726 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
16727 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
16728 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
16729 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
16730 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
16731 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
16735 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
16740 <nowiki>*</nowiki>bar
16746 <nowiki>=bar=</nowiki>
16754 Headings: 3. Nested inside html with wikitext split by html tags
16758 =='''bold'''<nowiki>foo=</nowiki>=
16760 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
16764 Headings: 4a. No escaping needed (testing just h1 and h2)
16782 =<nowiki>=</nowiki>=
16790 <h1><i>=</i>foo=</h1>
16791 <h1><span typeof="mw:Nowiki">=</span></h1>
16795 Headings: 4b. No escaping needed (inside p-tags)
16810 Headings: 5. Empty headings
16822 =====<nowiki/>=====
16824 ======<nowiki/>======
16835 Headings: 6a. Heading chars in SOL context (with trailing spaces)
16839 <nowiki>=a=</nowiki>
16841 <nowiki>=a=</nowiki>
16843 <nowiki>=a=</nowiki>
16845 <nowiki>=a=</nowiki>
16854 Headings: 6b. Heading chars in SOL context (with trailing newlines)
16882 Headings: 6c. Heading chars in SOL context (leading newline break)
16887 <nowiki>=b=</nowiki>
16894 Headings: 6d. Heading chars in SOL context (with interspersed comments)
16898 <!--c0--><nowiki>=a=</nowiki>
16900 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
16902 <p><!--c0-->=a=</p>
16903 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
16907 Headings: 6d. Heading chars in SOL context (No escaping needed)
16916 #### --------------- Lists ---------------
16917 #### 0. Outside nests (*foo, etc.)
16918 #### 1. Nested inside html <ul><li>*foo</li></ul>
16919 #### 2. Inside definition lists
16920 #### 3. Only bullets at start should be escaped
16921 #### 4. No escapes needed
16922 #### 5. No unnecessary escapes
16923 #### 6. Escape bullets in SOL position
16924 #### 7. Escape bullets in a multi-line context
16925 #### ----------------------------------------
16928 Lists: 0. Outside nests
16930 <nowiki>*</nowiki>foo
16932 <nowiki>#</nowiki>foo
16940 Lists: 1. Nested inside html
16942 *<nowiki>*foo</nowiki>
16944 *<nowiki>#foo</nowiki>
16946 *<nowiki>:foo</nowiki>
16948 *<nowiki>;foo</nowiki>
16950 #<nowiki>*foo</nowiki>
16952 #<nowiki>#foo</nowiki>
16954 #<nowiki>:foo</nowiki>
16956 #<nowiki>;foo</nowiki>
16994 Lists: 2. Inside definition lists
16996 ;<nowiki>;foo</nowiki>
16998 ;<nowiki>:foo</nowiki>
17000 ;<nowiki>:foo</nowiki>
17003 :<nowiki>:foo</nowiki>
17027 Lists: 3. Only bullets at start of text should be escaped
17029 *<nowiki>*foo*bar</nowiki>
17031 *<nowiki>*foo</nowiki>''it''*bar
17038 <li>*foo<i>it</i>*bar
17045 Lists: 4. No escapes needed
17064 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
17070 Lists: 5. No unnecessary escapes
17072 * bar <span><nowiki>[[foo]]</nowiki></span>
17074 *=bar <span><nowiki>[[foo]]</nowiki></span>
17076 *[[bar <span><nowiki>[[foo]]</nowiki></span>
17078 *]]bar <span><nowiki>[[foo]]</nowiki></span>
17080 *=bar <span>foo]]</span>=
17085 <li> bar <span>[[foo]]</span>
17089 <li>=bar <span>[[foo]]</span>
17093 <li>[[bar <span>[[foo]]</span>
17097 <li>]]bar <span>[[foo]]</span>
17101 <li>=bar <span>foo]]</span>=
17112 Lists: 6. Escape bullets in SOL position
17116 <!--cmt--><nowiki>*foo</nowiki>
17118 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
17122 Lists: 7. Escape bullets in a multi-line context
17125 <nowiki>*</nowiki>b
17132 #### --------------- HRs ---------------
17133 #### 1. Single line
17134 #### -----------------------------------
17137 HRs: 1. Single line
17141 ----<nowiki>----</nowiki>
17145 <hr><span typeof="mw:Nowiki">----</span>
17150 #### --------------- Tables ---------------
17151 #### 1a. Simple example
17152 #### 1b. No escaping needed (!foo)
17153 #### 1c. No escaping needed (|foo)
17154 #### 1d. No escaping needed (|}foo)
17156 #### 2a. Nested in td (<td>foo|bar</td>)
17157 #### 2b. Nested in td (<td>foo||bar</td>)
17158 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
17160 #### 3a. Nested in th (<th>foo!bar</th>)
17161 #### 3b. Nested in th (<th>foo!!bar</th>)
17162 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
17166 #### 4c. No escaping needed
17167 #### --------------------------------------
17170 Tables: 1a. Simple example
17181 Tables: 1b. No escaping needed
17190 Tables: 1c. No escaping needed
17199 Tables: 1d. No escaping needed
17208 Tables: 2a. Nested in td
17213 |<nowiki>foo|bar</nowiki>
17217 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
17221 Tables: 2b. Nested in td
17226 |<nowiki>foo||bar</nowiki>
17227 |''it''<nowiki>foo||bar</nowiki>
17231 <td><span typeof="mw:Nowiki">foo||bar</span></td>
17232 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
17236 Tables: 2c. Nested in td -- no escaping needed
17244 <table><tbody><tr><td>foo!!bar
17245 </td></tr></tbody></table>
17250 Tables: 3a. Nested in th
17258 <table><tbody><tr><th>foo!bar
17259 </th></tr></tbody></table>
17264 Tables: 3b. Nested in th
17269 !<nowiki>foo!!bar</nowiki>
17273 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
17278 Tables: 3c. Nested in th -- no escaping needed
17283 !<nowiki>foo||bar</nowiki>
17287 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
17291 Tables: 4a. Escape -
17298 |<nowiki>-bar</nowiki>
17302 <tr><th>-bar</th></tr>
17304 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
17308 Tables: 4b. Escape +
17315 |<nowiki>+bar</nowiki>
17319 <tr><th>+bar</th></tr>
17321 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
17325 Tables: 4c. No escaping needed
17343 <tr><td>foo-bar</td><td>foo+bar</td></tr>
17344 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
17352 ### SSS FIXME: Disabled right now because accurate html2wt
17353 ### on this snippet requires data-parsoid flags that we've
17354 ### stripped out of these tests. We should scheme how we
17355 ### we want to handle these kind of tests that require
17356 ### data-parsoid flags for accurate html2wt serialization
17359 Tables: 4d. No escaping needed
17377 #### --------------- Links ----------------
17378 #### 1. Quote marks in link text
17379 #### 2. Wikilinks: Escapes needed
17380 #### 3. Wikilinks: No escapes needed
17381 #### 4. Extlinks: Escapes needed
17382 #### 5. Extlinks: No escapes needed
17383 #### --------------------------------------
17385 Links 1. Quote marks in link text
17389 [[Foo|Foo<nowiki>''boo''</nowiki>]]
17391 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
17395 Links 2. WikiLinks: Escapes needed
17399 [[Foo|<nowiki>[Foobar]</nowiki>]]
17400 [[Foo|<nowiki>Foobar]</nowiki>]]
17401 [[Foo|x [Foobar] x]]
17402 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
17403 [[Foo|<nowiki>[[Bar]]</nowiki>]]
17404 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
17405 [[Foo|<nowiki>|Bar</nowiki>]]
17406 [[Foo|<nowiki>]]bar</nowiki>]]
17407 [[Foo|<nowiki>[[bar</nowiki>]]
17408 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
17410 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
17411 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
17412 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
17413 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
17414 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
17415 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
17416 <a href="Foo" rel="mw:WikiLink">|Bar</a>
17417 <a href="Foo" rel="mw:WikiLink">]]bar</a>
17418 <a href="Foo" rel="mw:WikiLink">[[bar</a>
17419 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
17423 Links 3. WikiLinks: No escapes needed
17430 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
17431 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
17435 Links 4. ExtLinks: Escapes needed
17439 [http://google.com <nowiki>[google]</nowiki>]
17440 [http://google.com <nowiki>google]</nowiki>]
17442 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
17443 <a href="http://google.com" rel="mw:ExtLink">google]</a>
17447 Links 5. ExtLinks: No escapes needed
17451 [http://google.com [google]
17453 <a href="http://google.com" rel="mw:ExtLink">[google</a>
17456 #### --------------- Quotes ---------------
17457 #### 1. Quotes inside <b> and <i>
17458 #### 2. Link fragments separated by <i> and <b> tags
17459 #### 3. Link fragments inside <i> and <b>
17460 #### 4. No escaping needed
17461 #### --------------------------------------
17463 1. Quotes inside <b> and <i>
17465 parsoid=html2wt,wt2wt
17467 ''<nowiki>'foo'</nowiki>''
17468 ''<nowiki>''foo''</nowiki>''
17469 ''<nowiki>'''foo'''</nowiki>''
17471 '''<nowiki>'foo'</nowiki>'''
17472 '''<nowiki>''foo''</nowiki>'''
17473 '''<nowiki>'''foo'''</nowiki>'''
17474 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
17475 '''foo'''<nowiki/>'s
17478 '<nowiki/>''foo''<nowiki/>'
17480 '''foo'''<nowiki/>'
17481 '<nowiki/>'''foo'''<nowiki/>'
17490 <b>foo'<i>bar'</i>baz</b>
17501 2. Link fragments separated by <i> and <b> tags
17503 [[''foo''<nowiki>hello]]</nowiki>
17505 [['''foo'''<nowiki>hello]]</nowiki>
17507 <p>[[<i>foo</i>hello]]
17508 </p><p>[[<b>foo</b>hello]]
17513 3. Link fragments inside <i> and <b>
17514 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
17515 this is one of the shortcomings of this format)
17517 ''[[foo''<nowiki>]]</nowiki>
17519 '''[[foo'''<nowiki>]]</nowiki>
17522 </p><p><b>[[foo</b>]]
17527 4. No escaping needed
17529 '<span>''bar''</span>'
17530 '<span>'''bar'''</span>'
17532 <p>'<span><i>bar</i></span>'
17533 '<span><b>bar</b></span>'
17537 #### ----------- Paragraphs ---------------
17538 #### 1. No unnecessary escapes
17539 #### --------------------------------------
17542 1. No unnecessary escapes
17544 bar <span><nowiki>[[foo]]</nowiki></span>
17546 =bar <span><nowiki>[[foo]]</nowiki></span>
17548 [[bar <span><nowiki>[[foo]]</nowiki></span>
17550 ]]bar <span><nowiki>[[foo]]</nowiki></span>
17552 =bar <span>foo]]</span><nowiki>=</nowiki>
17554 <p>bar <span>[[foo]]</span>
17555 </p><p>=bar <span>[[foo]]</span>
17556 </p><p>[[bar <span>[[foo]]</span>
17557 </p><p>]]bar <span>[[foo]]</span>
17558 </p><p>=bar <span>foo]]</span>=
17562 #### ----------------------- PRE --------------------------
17563 #### 1. Leading whitespace in SOL context should be escaped
17564 #### ------------------------------------------------------
17566 1. Leading whitespace in SOL context should be escaped
17570 <nowiki> </nowiki>a
17572 <nowiki> </nowiki> a
17574 <nowiki> </nowiki>a(tab)
17576 <nowiki> </nowiki> a
17578 <nowiki> </nowiki> a
17581 <nowiki> </nowiki>b
17584 <nowiki> </nowiki>b
17587 <nowiki> </nowiki> b
17593 <p><!--cmt--> a</p>
17602 #### --------------- Behavior Switches --------------------
17604 1. Valid behavior switches should be escaped
17608 <nowiki>__TOC__</nowiki>
17614 2. Invalid behavior switches should not be escaped
17625 #### --------------- HTML tags ---------------
17628 #### 3. multi-line html tag
17629 #### -----------------------------------------
17635 <a href="http://google.com">google</a>
17637 <a href="http://google.com">google</a>
17643 <nowiki><div>foo</div>
17644 <div style="color:red">foo</div></nowiki>
17646 <p><div>foo</div>
17647 <div style="color:red">foo</div>
17652 3. multi-line html tag
17667 <nowiki><ref>foo</ref></nowiki>
17669 <p><ref>foo</ref>
17673 #### --------------- Others ---------------
17677 <nowiki>foo</nowiki>
17679 <p><nowiki>foo</nowiki>
17683 ## The quote-char in the input is necessary for triggering the bug
17685 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
17687 parsoid=wt2wt,html2wt
17696 Tag-like HTML structures are passed through as text
17718 </p><p>1<d e>f
17723 # This was a bug in the PHP parser (see bug 17663 and its dups,
17724 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
17726 Tag names followed by punctuation should not be recognized as tags
17730 <p><s.ome> text
17735 HTML tag with necessary entities in attributes
17737 <span title="&amp;">foo</span>
17739 <p><span title="&amp;">foo</span>
17744 HTML tag with 'unnecessary' entity encoding in attributes
17746 <span title="&">foo</span>
17748 <p><span title="&">foo</span>
17753 HTML tag with broken attribute value quoting
17755 <span title="Hello world>Foo</span>
17757 <p><span>Foo</span>
17762 Parsoid-only: HTML tag with broken attribute value quoting
17766 <span title="Hello world>Foo</span>
17768 <p><span title="Hello world">Foo</span>
17773 Table with broken attribute value quoting
17776 | title="Hello world|Foo
17787 Table with broken attribute value quoting on consecutive lines
17790 | title="Hello world|Foo
17791 | style="color:red|Bar
17804 Parsoid-only: Table with broken attribute value quoting on consecutive lines
17809 | title="Hello world|Foo
17810 | style="color:red|Bar
17815 <td title="Hello world">Foo
17816 </td><td style="color: red">Bar
17817 </td></tr></tbody></table>
17822 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
17832 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
17842 Accept empty td cell attribute
17845 | align="center" | foo || |
17850 <td align="center"> foo </td>
17857 Non-empty attributes in th-cells
17860 ! Foo !! style="color: red" | Bar
17866 <th style="color: red"> Bar
17872 Accept empty attributes in th-cells
17887 Empty table rows go away
17908 ### Parsoid-centric tests for testing RTing of inter-element separators
17909 ### Edge cases not tested by existing parser tests and specific to
17910 ### Parsoid-specific serialization strategies.
17914 RT-ed inter-element separators should be valid separators
17927 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
17928 (Parsoid-only since PHP parser relies on Tidy for correct output)
17944 Empty TD followed by TD with tpl-generated attribute
17949 |{{echo|style='color:red'}}|foo
17963 Indented table with an empty td
17982 Empty TR followed by a template-generated TR
17983 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
17989 {{echo|<tr><td>foo</td></tr>}}
17995 <tr about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<tr><td>foo</td></tr>"}},"i":0}}]}'>
18000 ## PHP and parsoid output differ for this, and since this is primarily
18001 ## for testing Parsoid's serializer, marking this Parsoid only
18003 Empty TR followed by mixed-ws-comment line should RT correctly
18019 <!--c--> </tr><!--d-->
18025 Multi-line image caption generated by templates with/without trailing newlines
18029 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
18030 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
18032 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC</div></div></div>
18033 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC\n\n</div></div></div>
18037 ## PHP emits broken html for this, and since this is primarily
18038 ## a Parsoid serializer test, marking this Parsoid only
18040 Improperly nested inline or quotes tags with whitespace in between
18044 <span> <s>x</span> </s>
18047 <p><span> <s>x</s></span><s> </s>
18048 <b> <i>x</i></b><i> </i>
18053 Encapsulate protected attributes from wt
18057 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
18059 <body><div data-x-typeof="mw:placeholder stuff" data-x-data-parsoid="weird" data-x-data-parsoid-other="no" data-x-about="time" data-x-rel="mw:true">foo</div>
18063 ## Currently the p-wrapper is fragile in how adds / removes transformations.
18064 ## Having nested or stray pre tags results in the attempt to add duplicates,
18065 ## causing an assertion fail. This test tries to prevent that situation.
18067 Ensure ParagraphWrapper can deal with stray closing pre tags
18077 Ensure fostered text content is wrapped in spans
18081 <table>hi</table><table>ho</table>
18090 Encapsulation properly handles null DSR information from foster box
18092 parsoid=wt2html,wt2wt
18094 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
18096 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
18099 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
18103 <td>bar</td></tr></tbody></table>
18107 1. Encapsulate foster-parented transclusion content
18109 parsoid=wt2wt,wt2html
18111 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
18113 <span typeof="mw:Transclusion" data-mw="{"parts":["
18114 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
18116 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
18120 <td>bar</td></tr></tbody></table>
18124 2. Encapsulate foster-parented transclusion content
18126 parsoid=wt2wt,wt2html
18128 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
18130 <div typeof="mw:Transclusion" data-mw="{"parts":["
18132 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
18134 <td>bar</td></tr></table>"]}">foo</div>
18138 <td>bar</td></tr></tbody></table>
18142 3. Encapsulate foster-parented transclusion content
18144 parsoid=wt2wt,wt2html
18146 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
18148 <div typeof="mw:Transclusion" data-mw="{"parts":["
18151 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
18153 <td>"}},"i":0}},"bar</td></tr></table>"]}">
18158 <td>bar</td></tr></tbody></table>
18162 4. Encapsulate foster-parented transclusion content
18164 parsoid=wt2wt,wt2html
18166 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
18168 <div typeof="mw:Transclusion" data-mw="{"parts":["
18171 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
18173 <td>"}},"i":0}},"bar</td></tr></table>"]}">
18178 <td>bar</td></tr></tbody></table>
18182 5. Encapsulate foster-parented transclusion content
18184 parsoid=wt2wt,wt2html
18186 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
18188 <span typeof="mw:Transclusion" data-mw="{"parts":["
18193 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
18199 <p>foo</p></div></td></tr></tbody></table>
18203 6. Encapsulate foster-parented transclusion content
18205 parsoid=wt2wt,wt2html
18207 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
18209 <span typeof="mw:Transclusion" data-mw="{"parts":["
18214 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
18220 <p>foo</p></div></td></tr></tbody></table>
18225 7. Encapsulate foster-parented transclusion content
18227 parsoid=wt2wt,wt2html
18229 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
18231 <p typeof="mw:Transclusion" data-mw="{"parts":["
18232 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
18233 <p>foo</p>"}},"i":0}},"
18234 <td>bar</td></table>"]}">foo</p>
18238 <td>bar</td></tr></tbody></table>
18242 8. Encapsulate foster-parented transclusion content
18244 parsoid=wt2wt,wt2html
18247 }}{|{{echo|style='color:red'}}
18252 <p typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\n"}},"i":0}}]}">a</p><span typeof="mw:Transclusion" data-mw="{"parts":["{|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"style":{"wt":"'color:red'"}},"i":0}},"\n|-\n|b\n|}"]}">{{{1}}}</span>
18256 <td>b</td></tr></tbody></table>
18259 # -----------------------------------------------------------------
18260 # The following section of tests are primarily to spec requirements
18261 # around serialization of new/edited content.
18263 # All these tests are marked Parsoid html2wt and html2html only
18264 # ----------------------------------------------------------------
18267 Image: Modifying size of an image
18271 [[Image:Wiki.png|230x230px]]
18273 <p data-parsoid='{"dsr":[0,24,0,0]}'><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"100px"}],"cacheKey":"[[Image:Wiki.png|100px]]","img":{"h":115,"w":100,"wdset":true},"dsr":[0,24,null,null]}'><a href="./File:Wiki.png" data-parsoid='{"a":{"href":"./File:Wiki.png"}}'><img resource="./File:Wiki.png" src="//upload.wikimedia.org/wikipedia/en/thumb/b/bc/Wiki.png/100px-Wiki.png" height="230" width="200" data-parsoid='{"a":{"resource":"./File:Wiki.png"},"sa":{"resource":"Image:Wiki.png"}}'></a></span></p>
18277 Image: New block level image should have \n before and after
18282 [[File:Wiki.png|right|thumb|150x150px]]
18285 <p>123</p><figure typeof="mw:Image/Thumb" class="mw-halign-right"><a href="./File:Wiki.png"><img src="http://192.168.142.128/mw/images/thumb/b/bc/Wiki.png/131px-Wiki.png" width="131" height="150" resource="./File:Wiki.png"></a></figure><p>456</p>
18288 # Wacky -- the leading newline in input is required because
18289 # that is what the serializer emits. To be fixed. Not fixing
18290 # the test because this test is required to test serialization of
18291 # new content and preferred whitespace style.
18293 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
18301 <li><p>foo</p></li>
18305 # Wacky -- the leading newline in input is required because
18306 # that is what the serializer emits. To be fixed. Not fixing
18307 # the test because this test is required to test serialization of
18308 # new content and preferred whitespace style.
18310 Lists: Add space after bullets
18317 * <span> baz</span>
18322 <li><span> baz</span></li>
18327 Parsoid: Serialize positional parameters with = in them as named parameter
18333 {{echo|1 = f=oo|2 = bar}}
18335 <!--Orig params with data-parsoid has heuristics for handling = chars-->
18336 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
18337 {{echo|<nowiki>f=oo</nowiki>|bar}}
18339 <p about="#mwt1" typeof="mw:Transclusion"
18340 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
18342 <p about="#mwt1" typeof="mw:Transclusion"
18343 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
18345 <!--Orig params with data-parsoid has heuristics for handling = chars-->
18346 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
18347 <p data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]},{"k":"2","spc":["","","",""]}]]}' about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"},"2":{"wt":"bar"}},"i":0}}]}'>foo</p>
18351 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
18367 <div>a<p>b</p></div>
18375 #-----------------------------
18376 # I/B quote minimization tests
18377 #-----------------------------
18380 1. I/B quote minimization: wikitext-only tags should be combined
18400 <p><i>A</i><i>B</i></p>
18401 <p><b>A</b><b>B</b></p>
18402 <p><i>A</i><b><i>B</i></b></p>
18403 <p><b>A</b><i><b>B</b></i></p>
18404 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
18405 <p><i><b>A</b></i><i><b>B</b></i></p>
18406 <p><i><b>A</b></i><b><i>B</i></b></p>
18407 <p><b><i>A</i></b><i><b>B</b></i></p>
18411 2. I/B quote minimization: wikitext and html tags should not be combined
18417 ''A'''''<i>B</i>'''
18419 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
18420 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
18424 3. I/B quote minimization: templated content stops minimization
18428 ''A''{{echo|''B''}}
18430 ''A''{{echo|'''''B'''''}}
18432 <p><i>A</i><i about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"''B''"}},"i":0}}]}'>B</i>
18433 <p><i>A</i><b about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"'''''B'''''"}},"i":0}}]}'><i>B</i></b>
18437 4. I/B quote minimization: new content should be mimimized with adjacent old content
18447 <p><i>A</i><i data-parsoid='{}'>B</i></p>
18448 <p><b data-parsoid='{}'>A</b><b>B</b></p>
18449 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
18452 # -----------------------------------------------------------------
18453 # End of section for Parsoid-only html2wt tests for serialization
18455 # -----------------------------------------------------------------
18462 Try for 100% code coverage