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
29 # notoc disable table of contents
31 # You can also set the following parser properties via test options:
32 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
33 # wgLinkHolderBatchSize, wgRawHtml
35 # For testing purposes, temporary articles can created:
36 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
37 # where '/' denotes a newline.
39 # This is the standard article assumed to exist.
64 MediaWiki:bad image list
66 * [[File:Bad.jpg]] except [[Nasty page]]
100 Template:echo_with_span
106 Template:echo_with_div
118 Template:table_attribs
121 |</noinclude>style="color: red"| Foo
127 {{table_attribs}} || Bar || Baz
131 Template:image_attribs
134 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
162 This is a simple paragraph.
164 <p>This is a simple paragraph.
169 Paragraphs with extra newline spacing
192 Paragraphs with newline spacing with comment lines in between
200 <!--foo--><!--More than 1 comment, still stripped-->
204 <!--foo--> <!----> <!-- bar -->
265 Paragraphs with newline spacing with non-empty white-space lines in between
292 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
300 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
339 Extra newlines: More paragraphs with indented comment
354 Extra newlines followed by heading
369 <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>
370 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
373 <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>
378 Extra newlines between heading and content are swallowed
386 <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>
387 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
394 http://fr.wikipedia.org/wiki/🍺
395 <!-- EasterEgg we love beer, better be able be able to link to it -->
397 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
420 * plain''italic''plain
421 * plain''italic''plain''italic''plain
422 * plain'''bold'''plain
423 * plain'''bold'''plain'''bold'''plain
424 * plain''italic''plain'''bold'''plain
425 * plain'''bold'''plain''italic''plain
426 * plain''italic'''bold-italic'''italic''plain
427 * plain'''bold''bold-italic''bold'''plain
428 * plain'''''bold-italic'''italic''plain
429 * plain'''''bold-italic''bold'''plain
430 * plain''italic'''bold-italic'''''plain
431 * plain'''bold''bold-italic'''''plain
432 * plain l'''italic''plain
433 * plain l''''bold''' plain
438 <li> plain<i>italic</i>plain
440 <li> plain<i>italic</i>plain<i>italic</i>plain
442 <li> plain<b>bold</b>plain
444 <li> plain<b>bold</b>plain<b>bold</b>plain
446 <li> plain<i>italic</i>plain<b>bold</b>plain
448 <li> plain<b>bold</b>plain<i>italic</i>plain
450 <li> plain<i>italic<b>bold-italic</b>italic</i>plain
452 <li> plain<b>bold<i>bold-italic</i>bold</b>plain
454 <li> plain<i><b>bold-italic</b>italic</i>plain
456 <li> plain<b><i>bold-italic</i>bold</b>plain
458 <li> plain<i>italic<b>bold-italic</b></i>plain
460 <li> plain<b>bold<i>bold-italic</i></b>plain
462 <li> plain l'<i>italic</i>plain
464 <li> plain l'<b>bold</b> plain
470 # this example taken from the [[simple:Moon]] article (bug 47326)
472 Italics and possessives (1)
474 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
476 <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
480 # this example taken from [[en:Flaming Pie]] (bug 49926)
482 Italics and possessives (2)
484 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
486 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
490 # this example taken from [[en:Dictionary]] (bug 49926)
492 Italics and possessives (3)
494 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''.
496 <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>.
502 ### 2-quote opening sequence tests
505 Italics and bold: 2-quote opening sequence: (2,2)
515 Italics and bold: 2-quote opening sequence: (2,3)
525 Italics and bold: 2-quote opening sequence: (2,4)
535 Italics and bold: 2-quote opening sequence: (2,5) (php)
544 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
546 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
558 ### 3-quote opening sequence tests
562 Italics and bold: 3-quote opening sequence: (3,2)
572 Italics and bold: 3-quote opening sequence: (3,3)
582 Italics and bold: 3-quote opening sequence: (3,4)
592 Italics and bold: 3-quote opening sequence: (3,5) (php)
601 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
603 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
615 ### 4-quote opening sequence tests
619 Italics and bold: 4-quote opening sequence: (4,2)
629 Italics and bold: 4-quote opening sequence: (4,3)
639 Italics and bold: 4-quote opening sequence: (4,4)
649 Italics and bold: 4-quote opening sequence: (4,5) (php)
658 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
660 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
666 <p>'<b>foo</b><i></i>
672 ### 5-quote opening sequence tests
676 Italics and bold: 5-quote opening sequence: (5,2)
687 Italics and bold: 5-quote opening sequence: (5,3)
697 Italics and bold: 5-quote opening sequence: (5,4)
701 <p><i><b>foo'</b></i>
707 Italics and bold: 5-quote opening sequence: (5,5)
716 ### multiple quote sequences in a line
719 Italics and bold: multiple quote sequences: (2,4,2)
723 <p><i>foo'<b>bar</b></i>
729 Italics and bold: multiple quote sequences: (2,4,3)
733 <p><i>foo'<b>bar</b></i>
739 Italics and bold: multiple quote sequences: (2,4,4)
743 <p><i>foo'<b>bar'</b></i>
749 Italics and bold: multiple quote sequences: (3,4,2) (php)
758 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
760 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
766 <p><b>foo'</b>bar<i></i>
772 Italics and bold: multiple quote sequences: (3,4,3) (php)
781 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
783 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
789 <p><b>foo'</b>bar<b></b>
794 ### other quote tests
797 Italics and bold: other quote tests: (2,3,5)
799 ''this is about '''foo's family'''''
801 <p><i>this is about <b>foo's family</b></i>
807 Italics and bold: other quote tests: (2,(3,3),2)
809 ''this is about '''foo's''' family''
811 <p><i>this is about <b>foo's</b> family</i>
817 Italics and bold: other quote tests: (3,2,3,2)
819 '''this is about ''foo'''s family''
821 <p><b>this is about <i>foo</i></b><i>s family</i>
827 Italics and bold: other quote tests: (3,2,3,3)
830 '''this is about ''foo'''s family'''
832 <p>'<i>this is about </i>foo<b>s family</b>
838 Italics and bold: other quote tests: (3,(2,2),3)
840 '''this is about ''foo's'' family'''
842 <p><b>this is about <i>foo's</i> family</b>
848 Italicized possessive
850 The ''[[Main Page]]'''s talk page.
852 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
857 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
858 (Requires tidy for PHP parser output to be fixed up)
860 parsoid=wt2html,wt2wt
868 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
869 <td><i>a</i></td><td><i>b</i></td></tr>
878 Non-html5 tags should be accepted
880 <center>''foo''</center>
883 <strike>''foo''</strike>
886 <center><i>foo</i></center>
887 <p><big><i>foo</i></big>
888 <font><i>foo</i></font>
889 <strike><i>foo</i></strike>
895 <wbr> is valid wikitext (bug 52468)
903 # <strike> is HTML4, <s> is HTML4/5.
905 <s> or <strike> for strikethrough
907 <strike>strike</strike>
911 <p><strike>strike</strike>
917 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
919 <b→> doesn't work! </b>
921 <bä> doesn't work! </b>
923 <boo> works fine </b>
931 <p><b→> doesn't work! </b>
932 </p><p><bä> doesn't work! </b>
933 </p><p><boo> works fine </b>
934 </p><p><s.foo>foo</s>
935 </p><p><s.foo>s.foo</s.foo>
936 </p><p><sub-ID#1>
941 ### Special characters
945 Bare pipe character (bug 52363)
954 Bare pipe character from a template (bug 52363)
963 ### <nowiki> test cases
967 <nowiki> unordered list
969 <nowiki>* This is not an unordered list item.</nowiki>
971 <p>* This is not an unordered list item.
978 <nowiki>Lorem ipsum dolor
999 :There is not nowiki.
1000 :There is <nowiki>nowiki</nowiki>.
1002 #There is not nowiki.
1003 #There is <nowiki>nowiki</nowiki>.
1005 *There is not nowiki.
1006 *There is <nowiki>nowiki</nowiki>.
1009 <dd>There is not nowiki.
1011 <dd>There is nowiki.
1015 <li>There is not nowiki.
1017 <li>There is nowiki.
1021 <li>There is not nowiki.
1023 <li>There is nowiki.
1030 Entities inside <nowiki>
1032 <nowiki><</nowiki>
1039 Entities inside template parameters
1045 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span>
1053 Comments and Indent-Pre
1055 <!-- comment 1 --> asdf
1057 <!-- comment 1 --> asdf
1060 <!-- comment 1 --> asdf
1061 <!-- comment 2 -->xyz
1063 <!-- comment 1 --> asdf
1064 <!-- comment 2 --> xyz
1120 asdf<!-- comment 1 -->jkl
1130 <!-- foo --> b <!-- bar -->
1144 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1150 Comment semantics and delimiters
1152 <!-- --><!----><!-----><!------>
1158 Comment semantics and delimiters, redux
1160 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1161 -- foo -- funky huh? ... -->
1167 Comment semantics and delimiters: directors cut
1169 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1170 everything starting with < followed by !-- until the first -- and > we see,
1171 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1179 Comment semantics: nesting
1181 <!--<!-- no, we're not going to do anything fancy here -->-->
1188 Comment semantics: unclosed comment at end
1190 <!--This comment will run out to the end of the document
1196 Comment in template title
1205 Comment on its own line post-expand
1217 Comment on its own line post-expand with non-significant whitespace
1229 ### paragraph wrapping tests
1244 Block tag on one line (<div>)
1256 Block tag on one line (<blockquote>)
1258 a <blockquote>foo</blockquote>
1262 a <blockquote>foo</blockquote>
1268 Block tag on both lines (<div>)
1280 Block tag on both lines (<blockquote>)
1282 a <blockquote>foo</blockquote>
1284 b <blockquote>foo</blockquote>
1286 a <blockquote>foo</blockquote>
1287 b <blockquote>foo</blockquote>
1292 Multiple lines without block tags
1310 Empty lines between lines with block tags
1340 ### Preformatted text
1349 And a [[Main Page|link]]
1355 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1360 Tabs don't trigger preformatted text
1364 This is preformatted text.
1370 <pre>This is preformatted text.
1376 Ident preformatting with inline content
1387 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1404 Regression with preformatted in <center>
1418 Bug 52763: Preformatted in <blockquote>
1432 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1449 Bug 15491: <ins>/<del> in blockquote
1452 Foo <del>bar</del> <ins>baz</ins> quux
1456 <p>Foo <del>bar</del> <ins>baz</ins> quux
1462 # Note that the p-wrapping is newline sensitive, which could be
1463 # considered a bug: tidy will wrap only the 'Foo' in the example
1464 # below in a <p> tag. (see comment 23-25 of bug #6200)
1466 Bug 15491: <ins>/<del> in blockquote (2)
1468 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1471 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1477 <pre> with attributes (bug 3202)
1479 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1481 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1486 <pre> with width attribute (bug 3202)
1488 <pre width="8">Narrow screen goodies</pre>
1490 <pre width="8">Narrow screen goodies</pre>
1495 <pre> with forbidden attribute (bug 3202)
1497 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1499 <pre width="8">Narrow screen goodies</pre>
1504 Entities inside <pre>
1513 <pre> with forbidden attribute values (bug 3202)
1515 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1517 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1522 <nowiki> inside <pre> (bug 13238)
1530 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1538 <pre><nowiki>Foo</nowiki></pre>
1543 <nowiki> and <pre> preference (first one wins)
1574 </pre> inside nowiki
1576 <nowiki></pre></nowiki>
1583 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1591 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1601 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1613 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1634 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1638 {{echo| foo}}{{echo| bar}}
1643 {{echo|<!--cmt--> foo}}
1645 <!--cmt-->{{echo| foo}}
1647 {{echo|{{echo| }}bar}}
1665 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1701 # TODO / maybe: fix wt2wt for this
1703 Parsoid: Don't paragraph-wrap fosterable content
1729 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
1757 #--------------------------------------------------------------------
1758 # Transclusion parameter whitespace stripping tests
1759 # Behavior is different for positional and named parameters
1760 #--------------------------------------------------------------------
1762 Templates: Strip leading and trailing whitespace from named-param values
1766 {{echo|1= {{echo|b}} }}
1787 Templates: Don't strip whitespace from positional-param values
1791 {{echo|{{echo|b}} }}
1834 Templates: Handle empty comment-and-ws-only lines correctly
1837 <!--should be ignored-->
1838 <!--should be ignored as well-->
1846 #--------------------------------------------------------------------
1847 # Transclusion parameter escaping tests
1848 #--------------------------------------------------------------------
1850 Templates: Parsoid parameter escaping test 1
1854 {{echo|[foo]|{{echo|[bar]}}}}
1856 <p about="#mwt1" typeof="mw:Transclusion"
1857 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
1861 Parsoid: Pipes in external links in template parameter
1865 {{echo|[{{echo|http://example.com}} link]}}
1867 <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>
1871 Parsoid: pipe in transclusion parameter
1875 {{echo|http://foo.com/a|b}}
1877 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1878 typeof="mw:Transclusion"
1879 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>
1883 Parsoid: Pipe in external link target and content in template parameter
1885 parsoid=html2wt,wt2wt
1887 {{echo|[http://foo.com/a|b a|b]}}
1889 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1890 typeof="mw:Transclusion"
1891 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
1892 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
1896 Templates: Dont escape already nowiki-escaped text in template parameters
1898 parsoid=html2wt,wt2wt
1900 {{echo|foo<nowiki>|</nowiki>bar}}
1901 {{echo|<nowiki><div></nowiki>}}
1902 {{echo|<nowiki></nowiki>}}
1904 <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>
1905 <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>
1906 <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>
1912 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
1914 parsoid=html2wt,wt2wt
1916 {{echo|{{echo|1=bar}}}}
1918 <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>
1922 ### Parsoid-centric tests for testing RT edge cases for pre
1926 1a. Indent-Pre and Comments
1939 1b. Indent-Pre and Comments
1952 1c. Indent-Pre and Comments
1965 1d. Indent-Pre and Comments
1966 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
1979 2a. Indent-Pre and tables
2000 2b. Indent-Pre and tables
2016 2c. Indent-Pre and tables (bug 42252)
2033 3a. Indent-Pre and block tags (single-line html)
2037 <blockquote> foo </blockquote>
2042 <blockquote> foo </blockquote>
2043 <pre><span> foo </span>
2048 3b. Indent-Pre and block tags (pre-content on separate line)
2112 4. Multiple spaces at start-of-line
2131 5. White-space in indent-pre
2132 NOTE: the white-space char on 2nd line is significant
2145 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2168 7a. Indent-pre and category links
2170 parsoid=wt2html,wt2wt
2172 [[Category:foo]] <!-- No pre-wrapping -->
2173 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2175 <link rel="mw:WikiLink/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2176 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2177 <link rel="mw:WikiLink/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2181 7b. Indent-pre and category links
2183 parsoid=wt2html,wt2wt
2186 [[Category:foo]] {{echo|b}}
2189 <link rel="mw:WikiLink/Category" href="./Category:Foo"> a
2191 <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>
2195 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2199 HTML-pre: 1. embedded newlines
2235 HTML-pre: 2: indented text
2248 HTML-pre: 3: other wikitext
2269 ### Definition lists
2277 <dt> name </dt>
2285 Definition list for indentation only
2297 Definition list with no space
2310 Definition list with URL link
2312 ; http://example.com/ : definition
2315 <dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2323 Definition list with bracketed URL link
2325 ;[http://www.example.com/ Example]:Something about it
2328 <dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2329 <dd>Something about it
2336 Definition list with wikilink containing colon
2338 ; [[Help:FAQ]]: The least-read page on Wikipedia
2341 <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>
2342 <dd> The least-read page on Wikipedia
2348 # At Brion's and JeLuF's insistence... :)
2350 Definition list with news link containing colon
2352 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2355 <dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2356 <dd> This isn't even a real newsgroup!
2363 Malformed definition list with colon
2365 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2368 <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
2375 Definition lists: colon in external link text
2377 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2380 <dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2381 <dd> OK, I made that up
2388 Definition lists: colon in HTML attribute
2390 ;<b style="display: inline">bold</b>
2393 <dt><b style="display: inline">bold</b>
2400 Definition lists: self-closed tag
2402 ;one<br/>two : two-line fun
2405 <dt>one<br />two </dt>
2413 Bug 11748: Literal closing tags
2417 <dd>test test test test test</dd>
2419 <dd>test test test test test</dd>
2424 <dd>test test test test test</dd>
2426 <dd>test test test test test</dd>
2432 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2435 ; term : description
2441 <dt> term </dt>
2455 Definition list with empty definition and following paragraph
2470 Nested definition lists using html syntax
2487 Definition Lists: No nesting: Multiple dd's
2505 Definition Lists: Indentation: Regular
2527 Definition Lists: Indentation: Missing 1st level
2547 Definition Lists: Indentation: Multi-level indent
2565 Definition Lists: Hacky use to indent tables
2572 should be left alone
2574 <dl><dd><dl><dd><table>
2579 </td></tr></table></dd></dl></dd></dl>
2581 should be left alone
2587 Definition Lists: Hacky use to indent tables (WS-insensitive)
2596 <dd> <table><tr><td>a</td></tr></table> </dd>
2599 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2600 ## as an empty dt item. It also ignores all but the last ";" when followed
2601 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2602 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2605 ## Ex: ";;t2 ::d2" is transformed into:
2617 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2618 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2629 ## All Parsoid only definition list tests have this difference.
2631 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2632 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2635 Table / list interaction: indented table with lists in table contents
2661 </td></tr></table></dd></dl>
2666 Table / list interaction: lists nested in tables nested in indented lists
2697 </td></tr></table></dd></dl>
2708 Definition Lists: Nesting: Multi-level (Parsoid only)
2738 Definition Lists: Nesting: Test 2 (Parsoid only)
2758 Definition Lists: Nesting: Test 3 (Parsoid only)
2786 Definition Lists: Nesting: Test 4
2807 ## The Parsoid team believes the following three test exposes a
2808 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2809 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2811 Definition Lists: Mixed Lists: Test 1 (php)
2838 Definition Lists: Mixed Lists: Test 1 (parsoid)
2862 Definition Lists: Mixed Lists: Test 2
2881 Definition Lists: Mixed Lists: Test 3
2906 Definition Lists: Mixed Lists: Test 4
2927 Definition Lists: Mixed Lists: Test 5
2948 Definition Lists: Mixed Lists: Test 6
2975 Definition Lists: Mixed Lists: Test 7
2994 Definition Lists: Mixed Lists: Test 8
3018 Definition Lists: Mixed Lists: Test 9
3035 Definition Lists: Mixed Lists: Test 10
3053 # The Parsoid team disagrees with the PHP parser's seemingly-random
3054 # rules regarding dd/dt on the next two tests. Parsoid is more
3055 # consistent, and recognizes the shared nesting and keeps the
3056 # still-open tags around until the nesting is complete.
3059 Definition Lists: Mixed Lists: Test 11 (php)
3100 Definition Lists: Mixed Lists: Test 11 (parsoid)
3122 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3123 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3127 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3128 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3138 Definition Lists: Weird Ones: Test 1 (php)
3142 *#;*::;; foo : bar (who uses this?)
3153 <dt> bar (who uses this?)
3173 Definition Lists: Weird Ones: Test 1 (parsoid)
3177 *#;*::;; foo : bar (who uses this?)
3194 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3195 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3210 External links: non-bracketed
3212 Non-bracketed: http://example.com
3214 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3219 External links: numbered
3221 Numbered: [http://example.com]
3222 Numbered: [http://example.net]
3223 Numbered: [http://example.com]
3225 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3226 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3227 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3232 External links: specified text
3234 Specified text: [http://example.com link]
3236 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3241 External links: trail
3243 Linktrails should not work for external links: [http://example.com link]s
3245 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3250 External links: dollar sign in URL
3252 http://example.com/1$2345
3254 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3259 External links: dollar sign in URL (named)
3261 [http://example.com/1$2345]
3263 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3268 External links: open square bracket forbidden in URL (bug 4377)
3270 http://example.com/1[2345
3272 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3277 External links: open square bracket forbidden in URL (named) (bug 4377)
3279 [http://example.com/1[2345]
3281 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3286 External links: nowiki in URL link text (bug 6230)
3288 [http://example.com/ <nowiki>''example site''</nowiki>]
3290 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3295 External links: newline forbidden in text (bug 6230 regression check)
3297 [http://example.com/ first
3300 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3306 External links: Pipe char between url and text
3308 [http://example.com | link]
3310 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3315 External links: protocol-relative URL in brackets
3317 [//example.com/ Test]
3319 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3324 External links: protocol-relative URL in brackets without text
3328 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3333 External links: protocol-relative URL in free text is left alone
3337 <p>//example.com/Foo
3342 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3344 foo//example.com/Foo
3346 <p>foo//example.com/Foo
3353 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3355 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3360 External image from https
3362 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3364 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3369 External image (when not allowed)
3371 wgAllowExternalImages=0
3373 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3375 <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>
3380 Link to non-http image, no img tag
3382 Link to non-http image, no img tag: ftp://example.com/test.jpg
3384 <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>
3389 External links: terminating separator
3391 Terminating separator: http://example.com/thing,
3393 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3398 External links: intervening separator
3400 Intervening separator: http://example.com/1,2,3
3402 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3407 External links: old bug with URL in query
3409 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3411 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3416 External links: old URL-in-URL bug, mixed protocols
3418 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3420 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3425 External links: URL in text
3427 URL in text: [http://example.com http://example.com]
3429 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3434 External links: Clickable images
3436 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3438 <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>
3443 External links: raw ampersand
3445 Old & use: http://x&y
3447 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3452 External links: encoded ampersand
3454 Old & use: http://x&y
3456 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3461 External links: encoded equals (bug 6102)
3463 http://example.com/?foo=bar
3465 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3470 External links: [raw ampersand]
3472 Old & use: [http://x&y]
3474 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3479 External links: [encoded ampersand]
3481 Old & use: [http://x&y]
3483 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3488 External links: [encoded equals] (bug 6102)
3490 [http://example.com/?foo=bar]
3492 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3497 External links: [IDN ignored character reference in hostname; strip it right off]
3499 [http://e‌xample.com/]
3501 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3505 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3506 # Where an external link could easily circumvent the sanitization of the text of
3507 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3508 # test demands a higher standard. That's a bit strange.
3512 # http://example.com -> [http://example.com|http://example.com]
3513 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3515 # The first example is sanitized, but the second is not. Any security benefits
3516 # from this production are trivial to circumvent. Either remove this test and
3517 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3518 # the test accordingly.
3523 External links: IDN ignored character reference in hostname; strip it right off
3525 http://e‌xample.com/
3527 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3532 External links: www.jpeg.org (bug 554)
3536 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3541 External links: URL within URL (original bug 2)
3543 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3545 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3550 BUG 361: URL inside bracketed URL
3552 [http://www.example.com/foo http://www.example.com/bar]
3554 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3559 BUG 361: URL within URL, not bracketed
3561 http://www.example.com/foo?=http://www.example.com/bar
3563 <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>
3568 BUG 289: ">"-token in URL-tail
3570 http://www.example.com/<hello>
3572 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3577 BUG 289: literal ">"-token in URL-tail
3579 http://www.example.com/<b>html</b>
3581 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3586 BUG 289: ">"-token in bracketed URL
3588 [http://www.example.com/<hello> stuff]
3590 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3595 BUG 289: literal ">"-token in bracketed URL
3597 [http://www.example.com/<b>html</b> stuff]
3599 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3604 BUG 289: literal double quote at end of URL
3606 http://www.example.com/"hello"
3608 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3613 BUG 289: literal double quote in bracketed URL
3615 [http://www.example.com/"hello" stuff]
3617 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3622 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3624 [http://www.example.com test]
3626 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3631 External links: link text with spaces
3633 [http://www.example.com a b c]
3634 [http://www.example.com ''a'' ''b'']
3636 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3637 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3642 External links: wiki links within external link (Bug 3695)
3644 [http://example.com [[wikilink]] embedded in ext link]
3646 <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>
3651 BUG 787: Links with one slash after the url protocol are invalid
3655 [http:/example.com title]
3657 <p>http:/example.com
3658 </p><p>[http:/example.com title]
3663 Bracketed external links with template-generated invalid target
3665 [{{echo|http:/example.com}} title]
3667 <p>[http:/example.com title]
3672 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3674 ''[http://example.com text'']
3675 [http://example.com '''text]'''
3676 ''Something [http://example.com in italic'']
3677 ''Something [http://example.com mixed''''', even bold]'''
3678 '''''Now [http://example.com both''''']
3680 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3681 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3682 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3683 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3684 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3690 Bug 4781: %26 in URL
3692 http://www.example.com/?title=AT%26T
3694 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3698 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3699 # % is actually legal in HTML5. Any change in output would need testing though.
3701 Bug 4781, 5267: %25 in URL
3703 http://www.example.com/?title=100%25_Bran
3705 <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>
3710 Bug 4781, 5267: %28, %29 in URL
3712 http://www.example.com/?title=Ben-Hur_%281959_film%29
3714 <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>
3720 Bug 4781: %26 in autonumber URL
3722 [http://www.example.com/?title=AT%26T]
3724 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3729 Bug 4781, 5267: %26 in autonumber URL
3731 [http://www.example.com/?title=100%25_Bran]
3733 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3738 Bug 4781, 5267: %28, %29 in autonumber URL
3740 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3742 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3748 Bug 4781: %26 in bracketed URL
3750 [http://www.example.com/?title=AT%26T link]
3752 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3757 Bug 4781, 5267: %26 in bracketed URL
3759 [http://www.example.com/?title=100%25_Bran link]
3761 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3766 Bug 4781, 5267: %28, %29 in bracketed URL
3768 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3770 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3775 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3777 Some [http://example.com/ pretty ''italics'' and stuff]!
3779 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3784 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3786 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3788 <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>
3793 External link containing double-single-quotes with no space separating the url from text in italics
3795 [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]].]
3797 <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>
3802 External link with comments in link text
3804 [http://www.google.com Google <!-- comment -->]
3806 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3811 URL-encoding in URL functions (single parameter)
3813 {{localurl:Some page|amp=&}}
3815 <p>/index.php?title=Some_page&amp=&
3820 URL-encoding in URL functions (multiple parameters)
3822 {{localurl:Some page|q=?&=&}}
3824 <p>/index.php?title=Some_page&q=?&amp=&
3831 http://example.com/index.php?foozoid%5B%5D=bar
3833 http://example.com/index.php?foozoid[]=bar
3835 <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>
3836 </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>
3841 IPv6 urls (bug 21261)
3845 http://[2404:130:0:1000::187:2]/index.php
3847 <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>
3852 Non-extlinks in brackets
3861 [{{echo|foo}} ''bar'']
3862 [{{echo|foo}}l's] errand
3863 [{{echo|foo}}l's errand]
3865 [url=http://example.com]
3878 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3883 Parsoid: Percent encoding in external links
3887 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3889 <p><a rel="mw:ExtLink"
3890 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3894 Parsoid: use url link syntax for links where the content is equal the link
3901 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3911 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3913 Normal text. '''''Bold italic text.''''' Normal text.
3915 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3916 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3922 Unclosed and unmatched quotes (php)
3926 '''''Bold italic text '''with bold deactivated''' in between.'''''
3928 '''''Bold italic text ''with italic deactivated'' in between.'''''
3932 ..spanning two paragraphs (should not work).'''
3934 '''Bold tag left open
3936 ''Italic tag left open
3940 <!-- Unmatching number of opening, closing tags: -->
3941 '''This year''''s election ''should'' beat '''last year''''s.
3943 ''Tom'''s car is bigger than ''Susan'''s.
3945 Plain ''italic'''s plain
3947 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3948 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3949 </p><p><b>Bold text..</b>
3950 </p><p>..spanning two paragraphs (should not work).
3951 </p><p><b>Bold tag left open</b>
3952 </p><p><i>Italic tag left open</i>
3954 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3955 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3956 </p><p>Plain <i>italic'</i>s plain
3959 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3960 # parser strips. The wikitext contains just the first half of the bold
3963 Unclosed and unmatched quotes (parsoid)
3967 '''''Bold italic text '''with bold deactivated''' in between.'''''
3969 '''''Bold italic text ''with italic deactivated'' in between.'''''
3973 ..spanning two paragraphs (should not work).'''
3975 '''Bold tag left open
3977 ''Italic tag left open
3981 <!-- Unmatching number of opening, closing tags: -->
3982 '''This year''''s election ''should'' beat '''last year''''s.
3984 ''Tom'''s car is bigger than ''Susan'''s.
3986 Plain ''italic'''s plain
3988 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3989 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3990 </p><p><b>Bold text..</b>
3991 </p><p>..spanning two paragraphs (should not work).<b></b>
3992 </p><p><b>Bold tag left open</b>
3993 </p><p><i>Italic tag left open</i>
3995 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3996 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3997 </p><p>Plain <i>italic'</i>s plain
4004 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4007 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4008 # is the bare minimum required by the spec, see:
4009 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4011 A table with no data. (php)
4018 # Parsoid team replies: empty table tags are legal in HTML5
4020 A table with no data. (parsoid)
4029 # A table with nothing but a caption is invalid XHTML, we might want to render
4030 # this as <p>caption</p>
4032 A table with nothing but a caption (php)
4042 </caption><tr><td></td></tr></table>
4045 # Parsoid team replies: table with only a caption is legal in HTML5
4047 A table with nothing but a caption (parsoid)
4055 <table><caption> caption</caption></table>
4059 A table with caption with default-spaced attributes and a table row
4062 |+ style="color: red;" | caption1
4068 <caption style="color: red;"> caption1
4077 A table with captions with non-default spaced attributes and a table row
4080 |+style="color: red;"|caption2
4081 |+ style="color: red;"| caption3
4087 <caption style="color: red;">caption2
4089 <caption style="color: red;"> caption3
4098 Table td-cell syntax variations
4102 | foo bar foo || baz
4103 | style='color:red;' | baz
4104 | style='color:red;' || baz
4111 <td> foo bar foo </td>
4114 <td style="color:red;"> baz
4116 <td> style='color:red;' </td>
4144 Simple table but with multiple dashes for row wikitext
4162 Multiplication table
4164 {| border="1" cellpadding="2"
4165 |+Multiplication table
4167 ! × !! 1 !! 2 !! 3
4185 <table border="1" cellpadding="2">
4186 <caption>Multiplication table
4233 Accept "||" in table headings
4248 Accept "||" in indented table headings
4258 </th></tr></table></dd></dl>
4263 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4280 Accept "| !" at start of line in tables (ignore !-attribute)
4284 | !style="color:red" | bar
4296 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 +/-
4300 |style='color:red;'|+1
4301 |style='color:blue;'|-1
4313 <td style="color:red;">+1
4315 <td style="color:blue;">-1
4339 |rowspan=2| Cell 2, row 1 (and 2)
4350 <td rowspan="2"> Cell 2, row 1 (and 2)
4368 {| bgcolor=#ABCDEF border=2
4373 |the original table again
4381 <table bgcolor="#ABCDEF" border="2">
4389 <td>the original table again
4395 Invalid attributes in table cell (bug 1830)
4410 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4413 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4417 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4418 <td>]" onmouseover="alert(document.cookie)">test
4427 Indented table markup mixed with indented pre content (proposed in bug 6200)
4432 Text that should be rendered preformatted
4440 <pre>Text that should be rendered preformatted
4449 Template-generated table cell attributes and cell content
4458 <td style="color: red"> Foo
4460 <td style="color: red"> Foo
4466 Template-generated table cell attributes and cell content (2)
4469 |align=center {{table_attribs}}
4474 <td align="center" style="color: red"> Foo
4480 Template-generated table cell attributes and cell content (3)
4483 |align=center {{table_cells}}
4488 <td align="center" style="color: red"> Foo </td>
4496 Table with row followed by newlines and table heading
4514 Table with empty line following the start tag
4531 # FIXME: Preserve the attribute properly (with an empty string as value) in
4532 # the PHP parser. Parsoid implements the behavior below.
4534 Table attributes with empty value
4546 </td></tr></tbody></table>
4551 Wikitext table with a lot of comments
4574 Wikitext table with double-line table cell
4591 Table cell with a single comment
4607 # The expected HTML structure in this test is debatable. The PHP parser does
4608 # not parse this kind of table at all. The main focus for Parsoid is on
4609 # round-tripping, so this output is ok for now. TODO: revisit!
4611 Wikitext table with html-syntax row (Parsoid)
4623 <td>foo</td></tr></tbody></table>
4627 Implicit <td> after a |-
4628 (PHP parser relies on Tidy to add the missing <td> tags)
4630 parsoid=wt2html,wt2wt
4643 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4644 (PHP parser relies on Tidy to add the missing <td> tags)
4646 parsoid=wt2html,wt2wt
4658 <tr><td><pre>a</pre></td></tr>
4659 <tr><td> b</td></tr>
4665 Lists should be recognized in an implicit <td> context
4666 (PHP parser relies on Tidy to add the missing <td> tags)
4668 parsoid=wt2html,wt2wt
4685 Parsoid: Round-trip tables directly followed by content (bug 51219)
4687 parsoid=wt2html,wt2wt
4699 <td>foo</td></tr></tbody></table> bar
4703 <td>baz</td></tr></tbody></table><b>quux</b>
4707 Parsoid: Default to a newline after tables in new content (bug 51219)
4714 <nowiki> </nowiki>bar
4721 <tr><td>foo</td></tr></tbody></table> bar
4723 <tr><td>baz</td></tr></tbody></table><b>quux</b>
4730 Plain link, capitalized
4734 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4739 Plain link, uncapitalized
4743 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4750 [[Main Page|The Main Page]]
4752 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4757 Piped link with comment in link text
4759 [[Main Page|The Main<!--front--> Page]]
4761 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4770 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4775 Broken link with fragment
4777 [[Zigzagzogzagzig#zug]]
4779 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4784 Special page link with fragment
4786 [[Special:Version#anchor]]
4788 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4793 Nonexistent special page link with fragment
4795 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4797 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4804 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4806 <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>
4813 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4815 <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>!!!
4826 Bug 43661: Piped links with identical prefixes
4828 [[prefixed article|prefixed articles with spaces]]
4830 [[prefixed article|prefixed articlesaoeu]]
4832 [[Main Page|Main Page test]]
4834 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4835 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4836 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4842 Link with HTML entity in suffix / tail
4844 [[Main Page]]", [[Main Page]]a
4846 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4851 Link with 3 brackets
4860 Piped link with 3 brackets
4862 [[[main page|the main page]]]
4864 <p>[[[main page|the main page]]]
4869 Link with multiple pipes
4871 [[Main Page|The|Main|Page]]
4873 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4880 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4882 <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>
4887 MemoryAlpha:AlphaTest
4889 This is an article in the MemoryAlpha namespace
4890 (which shadows the memoryalpha interwiki link).
4894 Namespace takes precedence over interwiki link (bug 51680)
4896 [[MemoryAlpha:AlphaTest]]
4898 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
4903 Piped link to namespace
4905 [[Meta:Disclaimers|The disclaimers]]
4907 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4914 [[Usually caused by a typo (oops}]]
4916 <p>[[Usually caused by a typo (oops}]]
4921 Link containing % (not as a hex sequence)
4925 <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>
4930 Link containing % as a single hex sequence interpreted to char
4934 <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>
4939 Link containing % as a double hex sequence interpreted to hex sequence
4943 <p>[[7%2525 Solution]]
4948 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4949 Example for such a section: == < ==
4951 [[%23%3c]][[%23%3e]]
4953 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4958 Link containing "<#" and ">#" as a hex sequences
4960 [[%3c%23]][[%3e%23]]
4962 <p>[[%3c%23]][[%3e%23]]
4967 Link containing an equals sign
4969 [[Special:BookSources/isbn=4-00-026157-6]]
4971 <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>
4978 Just a test of an article title containing a tilde.
4981 # note that links containing signatures, like [[Foo~~~~]], are
4982 # massaged by the pre-save transform (PST) and so the tildes are never
4983 # seen by the parser.
4985 Link containing a tilde
4989 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4994 Link containing double-single-quotes '' (bug 4598)
4996 [[Lista d''e paise d''o munno]]
4998 <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>
5003 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5005 Some [[Link|pretty ''italics'' and stuff]]!
5007 <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>!
5012 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5014 ''Some [[Link|pretty ''italics'' and stuff]]!
5016 <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>
5021 Link with double quotes in title part (literal) and alternate part (interpreted)
5023 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5027 [[''Pentecoste''|Pentecoste]]
5029 [[''Pentecoste''|''Pentecoste'']]
5031 <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>
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)">Pentecoste</a>
5034 </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>
5039 Broken image links with HTML captions (bug 39700)
5041 [[File:Nonexistent|<script></script>]]
5042 [[File:Nonexistent|100px|<script></script>]]
5043 [[File:Nonexistent|<]]
5044 [[File:Nonexistent|a<i>b</i>c]]
5046 <p><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"><script></script></a>
5048 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5049 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5056 [[http://www.example.com]]
5058 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5063 Plain link to URL with link text
5065 [[http://www.example.com Link text]]
5067 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5072 Plain link to protocol-relative URL
5074 [[//www.example.com]]
5076 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5081 Plain link to protocol-relative URL with link text
5083 [[//www.example.com Link text]]
5085 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5090 Plain link to page with question mark in title
5096 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5097 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5102 # I'm fairly sure the expected result here is wrong.
5103 # We want these to be URL links, not pseudo-pages with URLs for titles....
5104 # However the current output is also pretty screwy.
5107 # I'm changing it to match the current output--it arguably makes more
5108 # sense in the light of the test above. Old expected result was:
5109 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5111 # But I think this test is bordering on "garbage in, garbage out" anyway.
5116 Piped link to URL: [[http://www.example.com|an example URL]]
5118 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5123 BUG 2: [[page|http://url/]] should link to page, not http://url/
5125 [[Main Page|http://url/]]
5127 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5132 BUG 337: Escaped self-links should be bold
5136 [[Bug462]] [[Bug462]]
5138 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5143 Self-link to section should not be bold
5147 [[Main Page#section]]
5149 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5160 Self-link to numeric title
5166 <p><strong class="selflink">0</strong>
5171 Link to numeric-equivalent title
5177 <p><a href="/wiki/00" title="00">00</a>
5182 <nowiki> inside a link
5184 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5186 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5191 Non-breaking spaces in title
5193 [[ Main Page ]]
5195 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5200 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5206 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5211 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5217 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5222 Internal link with en linktrail: no apostrophes (bug 27473)
5228 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5233 Internal link with ca linktrail with apostrophes (bug 27473)
5239 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5244 Internal link with kaa linktrail with apostrophes (bug 27473)
5250 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5261 Internal link with is link prefix
5265 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5267 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5278 Internal link with is link trail and link prefix
5282 [[mótmælendatrú|xxx]]ar
5284 mótmælenda[[söfnuður]]
5285 mótmælenda[[söfnuður|söfnuðir]]
5286 mótmælenda[[söfnuður|söfnuðir]]xxx
5288 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
5289 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
5290 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
5291 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
5292 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
5297 Parsoid link trail escaping
5299 parsoid=html2wt,html2html
5303 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
5307 Parsoid link prefix escaping
5310 parsoid=html2wt,html2html
5312 Aðrir mótmælenda<nowiki/>[[söfnuður]]
5314 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5318 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5326 [http://wp.org ''foo'']
5328 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5329 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5330 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5331 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5336 ### Interwiki links (see maintenance/interwiki.sql)
5340 Inline interwiki link
5342 [[MeatBall:SoftSecurity]]
5344 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5349 Inline interwiki link with empty title (bug 2372)
5353 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5358 Interwiki link encoding conversion (bug 1636)
5360 *[[Wikipedia:ro:Olteniţa]]
5361 *[[Wikipedia:ro:Olteniţa]]
5364 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5366 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5373 Interwiki link with fragment (bug 2130)
5375 [[MeatBall:SoftSecurity#foo]]
5377 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5383 ### Interlanguage links
5384 ### Language links (so that searching for '### language' matches..)
5398 Double interlanguage link
5409 Interlanguage link, with prefix links
5421 Double interlanguage link, with prefix links (bug 8897)
5434 Parsoid-specific test: Wikilinks with should RT properly
5440 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5445 Parsoid bug 53221: Wikilinks should be properly entity-escaped
5449 He&nbsp;llo [[Foo|He&nbsp;llo]]
5451 He&nbsp;llo [[He&nbsp;llo]]
5453 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5454 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5458 Parsoid: handle constructor well
5466 <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>
5469 <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>
5473 Parsoid: recognize interlanguage links without a target page
5480 <link rel="mw:WikiLink/Language" href="http://ko.wikipedia.org/wiki/"></p>
5484 Parsoid: recognize interwiki links without a target page
5490 <p><a rel="mw:WikiLink/Interwiki" href="http://ko.wikipedia.org/wiki/">ko:</a></p>
5494 ### Redirects, Parsoid-only
5497 Simple redirect to page
5501 #REDIRECT [[Main Page]]
5503 <link rel="mw:PageProp/redirect" href="./Main_Page">
5507 Optional colon in #REDIRECT
5509 # the colon is archaic syntax. we support it for wt2html, but we
5510 # don't care that it roundtrips back to the modern syntax.
5511 parsoid=wt2html,html2html
5513 #REDIRECT:[[Main Page]]
5515 <link rel="mw:PageProp/redirect" href="./Main_Page">
5519 Whitespace in #REDIRECT with optional colon
5521 # the colon and gratuitous whitespace is archaic syntax. we support
5522 # it for wt2html, but we don't care that it roundtrips back to the
5523 # modern syntax (without extra whitespace)
5524 parsoid=wt2html,html2html
5531 <link rel="mw:PageProp/redirect" href="./Main_Page">
5535 Piped link in #REDIRECT
5537 # content after piped link is ignored. we support this syntax,
5538 # but don't care that the piped link is lost when we roundtrip this.
5541 #REDIRECT [[Main Page|bar]]
5543 <link rel="mw:PageProp/redirect" href="./Main_Page">
5547 Redirect to category
5551 #REDIRECT [[Category:Foo]]
5553 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5557 Redirect to category with URL encoding
5561 #REDIRECT [[Category%3AFoo]]
5563 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5567 Redirect to category page
5569 parsoid=wt2html,html2html
5571 #REDIRECT [[:Category:Foo]]
5573 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5577 Redirect to image page (1)
5581 #REDIRECT [[File:Wiki.png]]
5583 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5587 Redirect to image page (2)
5591 #REDIRECT [[Image:Wiki.png]]
5593 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5597 Redirect to language
5601 #REDIRECT [[en:File:Wiki.png]]
5603 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5607 Redirect to interwiki
5611 #REDIRECT [[meatball:File:Wiki.png]]
5613 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5617 Non-English #REDIRECT
5622 #TILVÍSUN [[Main Page]]
5624 <link rel="mw:PageProp/redirect" href="./Main_Page">
5641 Broken br tag sanitization
5651 # TODO: Fix html2html mode (bug 51055)!
5653 Parsoid: Broken br tag recognition
5663 Incorrecly removing closing slashes from correctly formed XHTML
5665 <br style="clear:both;" />
5667 <p><br style="clear:both;" />
5672 Failing to transform badly formed HTML into correct XHTML
5674 <br style="clear: left;">
5675 <br style="clear: right;">
5676 <br style="clear: both;">
5678 <p><br style="clear: left;" />
5679 <br style="clear: right;" />
5680 <br style="clear: both;" />
5685 Handling html with a div self-closing tag
5694 <p><div title />
5698 <p><div title=bar />
5699 <div title=bar/>
5701 <div title="bar/"></div>
5707 Handling html with a br self-closing tag
5716 <p><br title="title" />
5717 <br title="title" />
5726 Horizontal ruler (should it add that extra space?)
5740 Horizontal ruler -- 4+ dashes render hr
5749 Horizontal ruler -- eats additional dashes on the same line
5758 Horizontal ruler -- does not collapse dashes on consecutive lines
5769 Horizontal ruler -- <4 dashes render as plain text
5778 Horizontal ruler -- Supports content following dashes on same line
5787 ### Block-level elements
5835 ***#Number on level 4
5837 **#Number on level 3
5838 **#Number on level 3
5842 #** Level 3, but ordered
5865 <li>Number on level 4
5873 <li>Number on level 3
5875 <li>Number on level 3
5898 <li> Level 3, but ordered
5944 Nested lists 3 (first element empty)
5961 Nested lists 4 (first element empty)
5979 Nested lists 5 (both elements empty)
5997 Nested lists 6 (both elements empty)
6014 Nested lists 7 (skip initial nesting levels)
6032 Nested lists 8 (multiple nesting transitions)
6058 1. Lists with start-of-line-transparent tokens before bullets: Comments
6076 2. Lists with start-of-line-transparent tokens before bullets: Template close
6091 List items are not parsed correctly following a <pre> block (bug 785)
6109 List items from template
6120 * notSOL{{inner list}}
6151 List interrupted by empty line or heading
6170 <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>
6172 <li> Another list item
6179 Multiple list tags generated by templates
6194 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6197 <!--This line will NOT split the list-->
6199 <!--This line will NOT split the list either-->
6201 <!--foo--> <!----> <!--This line NOT split the list either-->
6218 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6221 <!--This line will NOT split the list-->
6223 <!--This line will NOT split the list either-->
6225 <!--foo--> <!----> <!--This line NOT split the list
6244 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6246 parsoid=wt2html,wt2wt
6250 * {{echo|<li>templated li-hack}}
6251 * <!--foo--> <li> unsupported li-hack with preceding comments
6254 <li><li>not a li-hack
6261 <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>
6262 <li> <!--foo--> </li>
6263 <li> li-hack with preceding comments</li>
6274 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6301 Parsoid: Test of whitespace serialization with Templated bullets
6308 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6312 # ------------------------------------------------------------------------
6313 # The next set of tests are about Parsoid's ability to handle badly nested
6314 # tags (parse, minimize scope of fixup, and roundtrip back)
6315 # ------------------------------------------------------------------------
6318 Unbalanced closing block tags break a list
6319 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6339 Unbalanced closing non-block tags don't break a list
6340 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6359 Unclosed formatting tags that straddle lists are closed and reopened
6360 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6376 List embedded in a non-block tag
6377 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
6385 <p><small></small></p>
6391 <p><small></small></p>
6395 Table with missing opening <tr> tag
6397 parsoid=wt2html,wt2wt
6415 # Note that the current date is hard-coded as
6416 # 1970-01-01T00:02:03Z (a Thursday)
6417 # when running parser tests. The timezone is also fixed to GMT, so
6418 # local date will be identical to current date.
6421 Magic Word: {{CURRENTDAY}}
6430 Magic Word: {{CURRENTDAY2}}
6439 Magic Word: {{CURRENTDAYNAME}}
6448 Magic Word: {{CURRENTDOW}}
6457 Magic Word: {{CURRENTMONTH}}
6466 Magic Word: {{CURRENTMONTH1}}
6475 Magic Word: {{CURRENTMONTHABBREV}}
6477 {{CURRENTMONTHABBREV}}
6484 Magic Word: {{CURRENTMONTHNAME}}
6486 {{CURRENTMONTHNAME}}
6493 Magic Word: {{CURRENTMONTHNAMEGEN}}
6495 {{CURRENTMONTHNAMEGEN}}
6502 Magic Word: {{CURRENTTIME}}
6511 Magic Word: {{CURRENTHOUR}}
6520 Magic Word: {{CURRENTWEEK}} (@bug 4594)
6529 Magic Word: {{CURRENTYEAR}}
6538 Magic Word: {{CURRENTTIMESTAMP}}
6540 {{CURRENTTIMESTAMP}}
6547 Magic Words LOCAL (UTC)
6551 * {{LOCALMONTHNAME}}
6552 * {{LOCALMONTHNAMEGEN}}
6553 * {{LOCALMONTHABBREV}}
6562 * {{LOCALTIMESTAMP}}
6598 Magic Word: {{FULLPAGENAME}}
6600 title=[[User:Ævar Arnfjörð Bjarmason]]
6604 <p>User:Ævar Arnfjörð Bjarmason
6609 Magic Word: {{FULLPAGENAMEE}}
6611 title=[[User:Ævar Arnfjörð Bjarmason]]
6615 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6620 Magic Word: {{TALKSPACE}}
6622 title=[[User:Ævar Arnfjörð Bjarmason]]
6631 Magic Word: {{TALKSPACE}}, same namespace
6633 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6642 Magic Word: {{TALKSPACE}}, main namespace
6644 title=[[Parser Test]]
6653 Magic Word: {{TALKSPACEE}}
6655 title=[[User:Ævar Arnfjörð Bjarmason]]
6664 Magic Word: {{SUBJECTSPACE}}
6666 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6675 Magic Word: {{SUBJECTSPACE}}, same namespace
6677 title=[[User:Ævar Arnfjörð Bjarmason]]
6686 Magic Word: {{SUBJECTSPACE}}, main namespace
6688 title=[[Parser Test]]
6696 Magic Word: {{SUBJECTSPACEE}}
6698 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6707 Magic Word: {{NAMESPACE}}
6709 title=[[User:Ævar Arnfjörð Bjarmason]]
6718 Magic Word: {{NAMESPACEE}}
6720 title=[[User:Ævar Arnfjörð Bjarmason]]
6729 Magic Word: {{NAMESPACENUMBER}}
6731 title=[[User:Ævar Arnfjörð Bjarmason]]
6740 Magic Word: {{SUBPAGENAME}}
6742 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6751 Magic Word: {{SUBPAGENAMEE}}
6753 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6762 Magic Word: {{ROOTPAGENAME}}
6764 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6768 <p>Ævar Arnfjörð Bjarmason
6773 Magic Word: {{ROOTPAGENAMEE}}
6775 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6779 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6784 Magic Word: {{BASEPAGENAME}}
6786 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6790 <p>Ævar Arnfjörð Bjarmason
6795 Magic Word: {{BASEPAGENAMEE}}
6797 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6801 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6806 Magic Word: {{TALKPAGENAME}}
6808 title=[[User:Ævar Arnfjörð Bjarmason]]
6812 <p>User talk:Ævar Arnfjörð Bjarmason
6817 Magic Word: {{TALKPAGENAMEE}}
6819 title=[[User:Ævar Arnfjörð Bjarmason]]
6823 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6828 Magic Word: {{SUBJECTPAGENAME}}
6830 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6834 <p>User:Ævar Arnfjörð Bjarmason
6839 Magic Word: {{SUBJECTPAGENAMEE}}
6841 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6843 {{SUBJECTPAGENAMEE}}
6845 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6850 Magic Word: {{NUMBEROFFILES}}
6859 Magic Word: {{PAGENAME}}
6861 title=[[User:Ævar Arnfjörð Bjarmason]]
6865 <p>Ævar Arnfjörð Bjarmason
6870 Magic Word: {{PAGENAME}} with metacharacters
6872 title=[['foo & bar = baz']]
6876 <p><i>'foo & bar = baz'</i>
6881 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6883 title=[[*RFC 1234 http://example.com/]]
6887 <p>*RFC 1234 http://example.com/
6892 Magic Word: {{PAGENAMEE}}
6894 title=[[User:Ævar Arnfjörð Bjarmason]]
6898 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6903 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6905 title=[[*RFC 1234 http://example.com/]]
6909 <p>*RFC_1234_http://example.com/
6914 Magic Word: {{REVISIONID}}
6923 Magic Word: {{SCRIPTPATH}}
6932 Magic Word: {{STYLEPATH}}
6941 Magic Word: {{SERVER}}
6945 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6950 Magic Word: {{SERVERNAME}}
6959 Magic Word: {{SITENAME}}
6968 Case-sensitive magic words, when cased differently, should just be template transclusions
6975 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6976 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6977 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6978 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6983 Case-insensitive magic words should still work with weird casing.
6993 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6998 Namespace 1 {{ns:1}}
7007 Namespace 1 {{ns:01}}
7016 Namespace 0 {{ns:0}} (bug 4783)
7024 Namespace 0 {{ns:00}} (bug 4783)
7032 Namespace -1 {{ns:-1}}
7041 Namespace User {{ns:User}}
7050 Namespace User talk {{ns:User_talk}}
7059 Namespace User talk {{ns:uSeR tAlK}}
7068 Namespace File {{ns:File}}
7077 Namespace File {{ns:Image}}
7086 Namespace (lang=de) Benutzer {{ns:User}}
7097 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7103 <p>Benutzer Diskussion
7111 {{urlencode:hi world?!}}
7112 {{urlencode:hi world?!|WIKI}}
7113 {{urlencode:hi world?!|PATH}}
7114 {{urlencode:hi world?!|QUERY}}
7127 Magic links: internal link to RFC (bug 479)
7131 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7136 Magic links: RFC (bug 479)
7140 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7145 Magic links: ISBN (bug 1937)
7149 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7154 Magic links: PMID incorrectly converts space to underscore
7158 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7167 Nonexistent template
7169 {{thistemplatedoesnotexist}}
7171 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7176 Template with invalid target containing tags
7178 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7180 <p>{{a<b>b</b>|foo|a=b|a = b}}
7185 Template with invalid target containing unclosed tag
7187 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7189 <p>{{a<b>|foo|a=b|a = b}}</b>
7196 This is a test template
7204 <p>This is a test template
7209 Template with explicit namespace
7213 <p>This is a test template
7221 This is a test template with parameter {{{param}}}
7227 {{paramtest|param=foo}}
7229 <p>This is a test template with parameter foo
7234 Template:paramtestnum
7240 Template unnamed parameter
7242 {{paramtestnum|Main Page|the main page}}
7244 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7249 Template:templatesimple
7255 Template:templateredirect
7257 #redirect [[Template:templatesimple]]
7261 Template:templateasargtestnum
7267 Template:templateasargtest
7269 {{template{{{templ}}}}}
7273 Template:templateasargtest2
7279 Template with template name as unnamed argument
7281 {{templateasargtestnum|templatesimple}}
7288 Template with template name as argument
7290 {{templateasargtest|templ=simple}}
7297 Template with template name as argument (2)
7299 {{templateasargtest2|templ=templatesimple}}
7306 Template:templateasargtestdefault
7308 {{{{{templ|templatesimple}}}}}
7318 Template with default value
7320 {{templateasargtestdefault}}
7327 Template with default value (value set)
7329 {{templateasargtestdefault|templ=templa}}
7338 {{templateredirect}}
7345 Template with argument in separate line
7347 {{ templateasargtest |
7355 Template with complex template as argument
7358 param ={{ templateasargtest |
7361 <p>This is a test template with parameter (test)
7366 Template with thumb image (with link in description)
7369 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
7371 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>
7376 Template:complextemplate
7378 {{{1}}} {{paramtest|
7379 param ={{{param}}}}}
7383 Template with complex arguments
7386 param ={{ templateasargtest |
7387 templ = simple }}|[[Template:complextemplate|link]]}}
7389 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
7394 BUG 553: link with two variables in a piped link
7397 |[[{{{1}}}|{{{2}}}]]
7402 <td>[[{{{1}}}|{{{2}}}]]
7408 Magic variable as template parameter
7410 {{paramtest|param={{SITENAME}}}}
7412 <p>This is a test template with parameter MediaWiki
7419 [[{{{param}}}|link]]
7423 Template parameter as link source
7425 {{linktest|param=Main Page}}
7427 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
7432 Template-generated attribute string (k='v')
7434 <span {{attr_str|id|v1}}>bar</span>
7436 <p><span id="v1">bar</span>
7443 including another template, {{paramtest|param={{{arg}}}}}
7447 Template passing argument to another template
7449 {{paramtest2|arg='hmm'}}
7451 <p>including another template, This is a test template with parameter 'hmm'
7462 Template as link source
7466 [[{{linktest2}}|Main Page]]
7468 [[{{linktest2}}]]Page
7470 <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>
7472 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
7490 Template infinite loop
7494 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
7499 Template from main namespace
7518 BUG 529: Template with table, not included at beginning of line
7537 BUG 523: Template shouldn't eat newline (or add an extra one before table)
7557 BUG 41: Template parameters shown as broken links
7566 Template with targets containing wikilinks
7570 {{[[{{echo|foo}}]]}}
7572 {{{{echo|[[foo}}]]}}
7574 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7575 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7583 ''None'' of '''this''' should be
7585 but rather passed unmodified
7589 # hmm, fix this or just deprecate msgnw and document its behavior?
7595 {{msgnw:MSGNW test}}
7597 <p>''None'' of '''this''' should be
7599 but rather passed unmodified
7607 {{int:youhavenewmessages|lots of money|not!}}
7609 <p>You have lots of money (not!).
7616 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7620 <includeonly> and <noinclude> being included
7631 <onlyinclude>Foo</onlyinclude>bar
7635 <onlyinclude> being included
7647 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
7651 <onlyinclude> and <includeonly> being included
7660 <includeonly> and <noinclude> on a page
7662 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7669 Un-closed <noinclude>
7676 <onlyinclude> on a page
7678 <onlyinclude>Foo</onlyinclude>bar
7685 Un-closed <onlyinclude>
7692 Self-closed noinclude, includeonly, onlyinclude tags
7703 Unbalanced includeonly and noinclude tags
7707 |b</noinclude></noinclude>
7708 |c</noinclude></includeonly>
7709 |d</includeonly></includeonly>
7718 <td>c</includeonly>
7720 <td>d</includeonly></includeonly>
7726 Template:Includeonly section
7729 ==Includeonly section==
7735 Bug 6563: Edit link generation for section shown by <includeonly>
7737 {{includeonly section}}
7739 <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>
7740 <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>
7744 # Uses same input as the contents of [[Template:Includeonly section]]
7746 Bug 6563: Section extraction for section shown by <includeonly>
7751 ==Includeonly section==
7759 Bug 6563: Edit link generation for section suppressed by <includeonly>
7762 ==Includeonly section==
7766 <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>
7771 Bug 6563: Section extraction for section suppressed by <includeonly>
7776 ==Includeonly section==
7784 Un-closed <includeonly>
7790 # TODO: test with DOM fragment reuse!
7792 Parsoid: DOM fragment reuse
7794 parsoid=wt2wt,wt2html
7796 a{{echo|b<table></table>c}}d
7808 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
7809 <table></table>c"}},"i":0}}]}'>b</span>
7810 <table about="#mwt1"></table><span about="#mwt1">c</span>d
7813 <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">
7815 <table about="#mwt2"></table><span about="#mwt2">
7817 <p about="#mwt2">cd</p>
7820 <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">
7823 <table about="#mwt3"></table><span about="#mwt3">
7826 <p about="#mwt3">b</p>
7830 Parsoid: Merge double tds (bug 50603)
7839 <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>
7844 Parsoid: Merge double tds in nested transclusion content (bug 50603)
7854 <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}}]}'>
7856 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
7862 ### <includeonly> and <noinclude> in attributes
7865 0. includeonly around the entire attribute
7867 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
7869 <p><span id="v2">bar</span>
7874 1. includeonly in html attr key
7876 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
7878 <p><span id="foo">bar</span>
7883 2. includeonly in html attr value
7885 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7886 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7888 <p><span id="v1">bar</span>
7889 <span id="v1">bar</span>
7894 3. includeonly in part of an attr value
7896 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7898 <p><span style="color:red;">bar</span>
7903 ### Testing parsing of templates where a template arg
7904 ### has the same name as the template itself.
7914 Templates: Template Name/Arg clash: 1. Use of positional param
7923 Templates: Template Name/Arg clash: 2. Use of named param
7932 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7941 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7945 Templates: 1. Simple use
7954 Templates: 2. Inside a block tag
7956 <div>{{echo|Foo}}</div>
7957 <blockquote>{{echo|Foo}}</blockquote>
7960 <blockquote>Foo</blockquote>
7965 Templates: P-wrapping: 1a. Templates on consecutive lines
7976 Templates: P-wrapping: 1b. Templates on consecutive lines
7990 Templates: P-wrapping: 1c. Templates on consecutive lines
7993 {{echo|bar}} <div>baz</div>
8002 Templates: P-wrapping: 1d. Template preceded by comment-only line
8011 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8015 Templates: Inline Text: 1. Multiple tmeplate uses
8017 {{echo|Foo}}bar{{echo|baz}}
8024 Templates: Inline Text: 2. Back-to-back template uses
8026 {{echo|Foo}}{{echo|bar}}
8033 Templates: Block Tags: 1. Multiple template uses
8035 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8037 <div>Foo</div><div>bar</div><div>baz</div>
8042 Templates: Block Tags: 2. Back-to-back template uses
8044 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8046 <div>Foo</div><div>bar</div>
8051 Templates: Links: 1. Simple example
8053 {{echo|[[Foo|bar]]}}
8055 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8060 Templates: Links: 2. Generation of link href
8062 [[{{echo|Foo}}|bar]]
8064 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8069 Templates: Links: 3. Generation of part of a link href
8071 [[Fo{{echo|o}}|bar]]
8075 [[Foo{{echo|bar}}baz]]
8077 [[Foo{{echo|bar}}|bar]]
8079 [[:Foo{{echo|bar}}]]
8081 [[:Foo{{echo|bar}}|bar]]
8083 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8084 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8085 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8086 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8087 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8088 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8093 Templates: Links: 4. Multiple templates generating link href
8095 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8097 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8102 Templates: Links: 5. Generation of link text
8104 [[Foo|{{echo|bar}}]]
8106 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8111 Templates: Links: 5. Nested templates (only outermost template should be marked)
8113 {{echo|[[{{echo|Foo}}|bar]]}}
8115 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8120 Templates: HTML Tag: 1. Generation of HTML attr. key
8122 <div {{echo|style}}="color:red;">foo</div>
8124 <div style="color:red;">foo</div>
8129 Templates: HTML Tag: 2. Generation of HTML attr. value
8131 <div style={{echo|'color:red;'}}>foo</div>
8133 <div style="color:red;">foo</div>
8138 Templates: HTML Tag: 3. Generation of HTML attr key and value
8140 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8142 <div style="color:red;">foo</div>
8147 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8149 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8151 <div title="This is a long title with just one piece templated">foo</div>
8156 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8158 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8160 <div title="This is a long title with just one piece templated">foo</div>
8165 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8167 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8169 <div title="This is a long title with just one piece templated">foo</div>
8174 Templates: HTML Tag: 7. Generation of partial attribute key string
8176 <div st{{echo|yle}}="color:red;">foo</div>
8178 <div style="color:red;">foo</div>
8183 Templates: HTML Tables: 1. Generating start of a HTML table
8185 {{echo|<table><tr><td>foo</td>}}</tr></table>
8187 <table><tr><td>foo</td></tr></table>
8192 Templates: HTML Tables: 2a. Generating middle of a HTML table
8194 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8196 <table><tr><td>foo</td></tr></table>
8201 Templates: HTML Tables: 2b. Generating middle of a HTML table
8203 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8205 <table><tr><td>foo</td></tr></table>
8210 Templates: HTML Tables: 3. Generating end of a HTML table
8212 <table><tr>{{echo|<td>foo</td></tr></table>}}
8214 <table><tr><td>foo</td></tr></table>
8219 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8221 {{echo|<table>}}<tr><td>foo</td></tr></table>
8223 <table><tr><td>foo</td></tr></table>
8228 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8230 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8232 <table><tr><td>foo</td></tr></table>
8237 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8239 <table><tr>{{echo|<td>}}foo</td></tr></table>
8241 <table><tr><td>foo</td></tr></table>
8246 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8248 <table><tr><td>foo{{echo|</td>}}</tr></table>
8250 <table><tr><td>foo</td></tr></table>
8255 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8257 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8259 <table><tr><td>foo</td></tr></table>
8264 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
8266 <table><tr><td>foo</td></tr>{{echo|</table>}}
8268 <table><tr><td>foo</td></tr></table>
8273 Templates: HTML Tables: 5. Proper fostering of categories from inside
8275 parsoid=wt2html,wt2wt
8277 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
8278 <!--Two categories (Bug 50330)-->
8279 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
8281 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
8282 <!--Two categories (Bug 50330)-->
8283 <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>
8287 Templates: Wiki Tables: 1a. Fostering of entire template content
8295 <tr><td></td></tr></table>
8300 Templates: Wiki Tables: 1b. Fostering of entire template content
8313 <tr><td></td></tr></table>
8318 Templates: Wiki Tables: 2. Fostering of partial template content
8328 <tr><td></td></tr></table>
8333 Templates: Wiki Tables: 3. td-content via multiple templates
8336 {{echo|{{pipe}}a}}{{echo|b}}
8347 Templates: Wiki Tables: 4. Templated tags, no content
8353 <tr><td></td></tr></table>
8358 Templates: Wiki Tables: 5. Templated tags, regular td-tags
8372 Templates: Wiki Tables: 6. Templated tags, templated td-tags
8386 Templates: Lists: Multi-line list-items via templates
8388 *{{echo|a {{nonexistent|
8390 *{{echo|b {{nonexistent|
8394 <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>
8396 <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>
8403 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
8405 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
8407 <p><i>ab</i>c<i>d</i>e
8412 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
8413 (PHP parser generates misnested html)
8417 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
8419 <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>
8423 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
8424 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
8426 parsoid=wt2html,wt2wt
8428 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
8430 <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>
8431 <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>
8432 <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>
8436 Templates: Ugly nesting: 4. Divs opened/closed across templates
8438 a<div>b{{echo|c</div>d}}e
8445 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
8451 |{{echo|foo</table>}}
8455 <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|}"]}'>
8459 <td>foo</td></tr></tbody></table><span about="#mwt1">
8460 </span><span about="#mwt1">bar</span><span about="#mwt1">
8465 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
8475 <td>1. {{echo|foo </table>}}</td>
8477 <td>2. {{echo|baz </table>}}</td>
8490 <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>"]}'>
8495 <td>1. foo </td></tr></tbody></table></td>
8497 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
8498 </span><span about="#mwt2">
8499 </span><span about="#mwt2">
8500 </span><span about="#mwt2">abc</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">
8506 </span><span about="#mwt2">xyz</span><span about="#mwt2">
8507 </span><span about="#mwt2">
8512 Templates: Ugly templates: 3. newline-only template parameter
8521 # This looks like a bug: a single newline triggers p/br for some reason.
8523 Templates: Ugly templates: 4. newline-only template parameter inconsistency
8534 Parser Functions: 1. Simple example
8543 Parser Functions: 2. Nested use (only outermost should be marked up)
8552 ### Pre-save transform tests
8555 pre-save transform: subst:
8561 This is a test template
8565 pre-save transform: normal template
8575 pre-save transform: nonexistent template
8579 {{thistemplatedoesnotexist}}
8581 {{thistemplatedoesnotexist}}
8586 pre-save transform: subst magic variables
8595 # This is bug 89, which I fixed. -- wtm
8597 pre-save transform: subst: templates with parameters
8601 {{subst:paramtest|param="something else"}}
8603 This is a test template with parameter "something else"
8609 <nowiki>'''not wiki'''</nowiki>
8613 pre-save transform: nowiki in subst (bug 1188)
8617 {{subst:nowikitest}}
8619 <nowiki>'''not wiki'''</nowiki>
8624 Template:commenttest
8626 This template has <!-- a comment --> in it.
8630 pre-save transform: comment in subst (bug 1936)
8634 {{subst:commenttest}}
8636 This template has <!-- a comment --> in it.
8640 pre-save transform: unclosed tag
8644 <nowiki>'''not wiki'''
8646 <nowiki>'''not wiki'''
8650 pre-save transform: mixed tag case
8654 <NOwiki>'''not wiki'''</noWIKI>
8656 <NOwiki>'''not wiki'''</noWIKI>
8660 pre-save transform: unclosed comment in <nowiki>
8664 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
8666 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
8669 # Leading @ in this template definition works around a limitation
8670 # in parsoid's parserTests which otherwise strips the <span> from the
8671 # result (confusing it for a template wrapper)
8675 @<span onmouseover="alert('crap')">Oh no</span>
8679 (confirming safety of fix for subst bug 1936)
8681 {{Template:dangerous}}
8683 <p>@<span>Oh no</span>
8688 pre-save transform: comment containing gallery (bug 5024)
8692 <!-- <gallery>data</gallery> -->
8694 <!-- <gallery>data</gallery> -->
8698 pre-save transform: comment containing extension
8702 <!-- <tag>data</tag> -->
8704 <!-- <tag>data</tag> -->
8708 pre-save transform: comment containing nowiki
8712 <!-- <nowiki>data</nowiki> -->
8714 <!-- <nowiki>data</nowiki> -->
8718 pre-save transform: <noinclude> in subst (bug 3298)
8728 pre-save transform: <onlyinclude> in subst (bug 3298)
8740 {{<includeonly>subst:</includeonly>Includes}}
8744 Template:SafeSubstTest
8746 {{<includeonly>safesubst:</includeonly>Includes}}
8750 bug 22297: safesubst: works during PST
8754 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
8760 bug 22297: safesubst: works during normal parse
8769 subst: does not work during normal parse
8773 <p>{{subst:Includes}}
8778 pre-save transform: context links ("pipe trick")
8782 [[Article (context)|]]
8785 [[Bar:Article (context)|]]
8786 [[:Bar:Article (context)|]]
8788 [[|Article (context)]]
8792 [[Article (context)|Article]]
8793 [[Bar:Article|Article]]
8794 [[:Bar:Article|Article]]
8795 [[Bar:Article (context)|Article]]
8796 [[:Bar:Article (context)|Article]]
8798 [[Article (context)]]
8799 [[Bar:X (Y) Z|X (Y) Z]]
8800 [[:Bar:X (Y) Z|X (Y) Z]]
8804 pre-save transform: context links ("pipe trick") with interwiki prefix
8808 [[interwiki:Article|]]
8809 [[:interwiki:Article|]]
8810 [[interwiki:Bar:Article|]]
8811 [[:interwiki:Bar:Article|]]
8813 [[interwiki:Article|Article]]
8814 [[:interwiki:Article|Article]]
8815 [[interwiki:Bar:Article|Bar:Article]]
8816 [[:interwiki:Bar:Article|Bar:Article]]
8820 pre-save transform: context links ("pipe trick") with parens in title
8822 pst title=[[Somearticle (context)]]
8826 [[Article (context)|Article]]
8830 pre-save transform: context links ("pipe trick") with comma in title
8832 pst title=[[Someplace, Somewhere]]
8835 [[Otherplace, Elsewhere|]]
8836 [[Otherplace, Elsewhere, Anywhere|]]
8838 [[Otherplace, Somewhere|Otherplace]]
8839 [[Otherplace, Elsewhere|Otherplace]]
8840 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
8844 pre-save transform: context links ("pipe trick") with parens and comma
8846 pst title=[[Someplace (IGNORED), Somewhere]]
8849 [[Otherplace (place), Elsewhere|]]
8851 [[Otherplace, Somewhere|Otherplace]]
8852 [[Otherplace (place), Elsewhere|Otherplace]]
8856 pre-save transform: context links ("pipe trick") with comma and parens
8858 pst title=[[Who, me? (context)]]
8861 [[Me, Myself, and I (1937 song)|]]
8863 [[Yes, you. (context)|Yes, you.]]
8864 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
8868 pre-save transform: context links ("pipe trick") with namespace
8870 pst title=[[Ns:Somearticle]]
8874 [[Ns:Article|Article]]
8878 pre-save transform: context links ("pipe trick") with namespace and parens
8880 pst title=[[Ns:Somearticle (context)]]
8884 [[Ns:Article (context)|Article]]
8888 pre-save transform: context links ("pipe trick") with namespace and comma
8890 pst title=[[Ns:Somearticle, Context, Whatever]]
8894 [[Ns:Article, Context, Whatever|Article]]
8898 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8900 pst title=[[Ns:Somearticle, Context (context)]]
8904 [[Ns:Article (context)|Article]]
8908 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8910 pst title=[[Ns:Somearticle (IGNORED), Context]]
8914 [[Ns:Article, Context|Article]]
8918 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8922 [[Article(context)|]]
8923 [[Bar:Article(context)|]]
8924 [[:Bar:Article(context)|]]
8925 [[|Article(context)]]
8929 [[Article(context)|Article]]
8930 [[Bar:Article(context)|Article]]
8931 [[:Bar:Article(context)|Article]]
8932 [[Article(context)]]
8934 [[:Bar:X(Y)Z|X(Y)Z]]
8938 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8942 [[Article (context)|]]
8943 [[Bar:Article (context)|]]
8944 [[:Bar:Article (context)|]]
8945 [[|Article (context)]]
8949 [[Article (context)|Article]]
8950 [[Bar:Article (context)|Article]]
8951 [[:Bar:Article (context)|Article]]
8952 [[Article (context)]]
8953 [[Bar:X (Y) Z|X (Y) Z]]
8954 [[:Bar:X (Y) Z|X (Y) Z]]
8958 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8962 [[Article(context)|]]
8963 [[Bar:Article(context)|]]
8964 [[:Bar:Article(context)|]]
8965 [[|Article(context)]]
8969 [[Article(context)|Article]]
8970 [[Bar:Article(context)|Article]]
8971 [[:Bar:Article(context)|Article]]
8972 [[Article(context)]]
8974 [[:Bar:X(Y)Z|X(Y)Z]]
8978 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8982 [[Article (context), context|]]
8983 [[Article (context),context|]]
8984 [[Bar:Article (context), context|]]
8985 [[Bar:Article (context),context|]]
8986 [[:Bar:Article (context), context|]]
8987 [[:Bar:Article (context),context|]]
8989 [[Article (context), context|Article]]
8990 [[Article (context),context|Article]]
8991 [[Bar:Article (context), context|Article]]
8992 [[Bar:Article (context),context|Article]]
8993 [[:Bar:Article (context), context|Article]]
8994 [[:Bar:Article (context),context|Article]]
8998 pre-save transform: trim trailing empty lines
9002 Empty lines are trimmed
9008 Empty lines are trimmed
9012 pre-save transform: Signature expansion
9017 * <noinclude>~~~</noinclude>
9018 * <includeonly>~~~</includeonly>
9019 * <onlyinclude>~~~</onlyinclude>
9021 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9022 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9023 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9024 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9029 pre-save transform: Signature expansion in nowiki tags (bug 93)
9035 <nowiki>~~~~</nowiki>
9037 <includeonly><nowiki>~~~~</nowiki></includeonly>
9039 <noinclude><nowiki>~~~~</nowiki></noinclude>
9041 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9043 {{subst:Foo}} shall be converted to FOO
9045 As well as inside noinclude/onlyinclude
9046 <noinclude>{{subst:Foo}}</noinclude>
9047 <onlyinclude>{{subst:Foo}}</onlyinclude>
9049 But not inside includeonly
9050 <includeonly>{{subst:Foo}}</includeonly>
9054 <nowiki>~~~~</nowiki>
9056 <includeonly><nowiki>~~~~</nowiki></includeonly>
9058 <noinclude><nowiki>~~~~</nowiki></noinclude>
9060 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9062 FOO shall be converted to FOO
9064 As well as inside noinclude/onlyinclude
9065 <noinclude>FOO</noinclude>
9066 <onlyinclude>FOO</onlyinclude>
9068 But not inside includeonly
9069 <includeonly>{{subst:Foo}}</includeonly>
9073 Parsoid: Recognize nowiki with trailing space in tags
9077 <nowiki ><div>[[foo]]</nowiki >
9085 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9092 Parsoid: Recognize nowiki with odd capitalization
9096 <noWikI ><div>[[foo]]</Nowiki >
9098 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9103 Parsoid: Escape nowiki with trailing space in tags
9107 <nowiki > foo </nowiki >
9113 <p><nowiki > foo </nowiki ></p>
9114 <p>a<nowiki />b</p>
9115 <p>c<nowiki/ >d</p>
9119 Parsoid: Escape weird noWikI capitalizations
9123 <noWikI > foo </NoWikI >
9125 <p><noWikI > foo </NoWikI ></p>
9129 ### Message transform tests
9132 message transform: magic variables
9142 message transform: should not transform wiki markup
9152 message transform: <noinclude> in transcluded template (bug 4926)
9162 message transform: <onlyinclude> in transcluded template (bug 4926)
9172 {{#special:}} page name, known
9176 {{#special:Recentchanges}}
9178 Special:RecentChanges
9182 {{#special:}} page name with subpage, known
9186 {{#special:Recentchanges/param}}
9188 Special:RecentChanges/param
9192 {{#special:}} page name, unknown
9196 {{#special:foobar nonexistent}}
9198 Special:Foobar nonexistent
9202 {{#speciale:}} page name, known
9206 {{#speciale:Recentchanges}}
9208 Special:RecentChanges
9212 {{#speciale:}} page name with subpage, known
9216 {{#speciale:Recentchanges/param}}
9218 Special:RecentChanges/param
9222 {{#speciale:}} page name, unknown
9226 {{#speciale:foobar nonexistent}}
9228 Special:Foobar_nonexistent
9234 ### For Parsoid-specific tests, see
9235 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9242 [[Image:foobar.jpg]]
9244 <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>
9249 Simple image (parsoid)
9253 [[Image:foobar.jpg]]
9255 <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>
9260 Simple image (using File: namespace, now canonical) (php)
9266 <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>
9271 Simple image (using File: namespace, now canonical) (parsoid)
9277 <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>
9282 Right-aligned image (php)
9286 [[Image:foobar.jpg|right]]
9288 <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>
9293 Right-aligned image (parsoid)
9297 [[File:Foobar.jpg|right]]
9299 <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>
9303 Image with caption (php)
9307 [[File:Foobar.jpg|right|Caption text]]
9309 <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>
9314 Image with caption (parsoid)
9318 [[File:Foobar.jpg|right|Caption text]]
9320 <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>
9324 Image with empty attribute (php)
9328 [[File:Foobar.jpg|right||Caption text]]
9330 <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>
9335 Image with empty attribute (parsoid)
9339 [[File:Foobar.jpg|right||Caption text]]
9341 <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>
9345 Image with attributes from template (php)
9349 [[File:Foobar.jpg|{{image_attribs}}]]
9351 <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>
9356 Image with attributes from template (parsoid)
9360 [[File:Foobar.jpg|{{image_attribs}}]]
9362 <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>
9366 Image with link tails (php)
9370 123[[File:Foobar.jpg]]456
9371 123[[File:Foobar.jpg|right]]456
9372 123[[File:Foobar.jpg|thumb]]456
9374 <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
9376 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
9377 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
9382 Image with link tails (parsoid)
9386 123[[File:Foobar.jpg]]456
9387 123[[File:Foobar.jpg|right]]456
9388 123[[File:Foobar.jpg|thumb]]456
9390 <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>
9391 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
9392 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
9396 Image with multiple captions -- only last one is accepted (php)
9400 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9402 <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>
9407 Image with multiple captions -- only last one is accepted (parsoid)
9411 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9413 <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>
9417 Image with width attribute at different positions (php)
9421 [[File:Foobar.jpg|200px|right|Caption]]
9422 [[File:Foobar.jpg|right|200px|Caption]]
9423 [[File:Foobar.jpg|right|Caption|200px]]
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>
9427 <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>
9432 Image with width attribute at different positions (parsoid)
9436 [[File:Foobar.jpg|200px|right|Caption]]
9437 [[File:Foobar.jpg|right|200px|Caption]]
9438 [[File:Foobar.jpg|right|Caption|200px]]
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>
9442 <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>
9446 Image with link parameter, wiki target (php)
9450 [[File:Foobar.jpg|link=Main Page]]
9452 <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>
9457 Image with link parameter, wiki target (parsoid)
9461 [[File:Foobar.jpg|link=Main Page]]
9463 <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>
9467 Image with link parameter, URL target (php)
9471 [[File:Foobar.jpg|link=http://example.com/]]
9473 <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>
9477 # parsoid bug 49293 (part 1)
9479 Image with link parameter, URL target (parsoid)
9483 [[File:Foobar.jpg|link=http://example.com/]]
9485 <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>
9489 Image with link parameter, protocol-less URL target (php)
9493 [[File:Foobar.jpg|link=//example.com/]]
9495 <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>
9499 # parsoid bug 49293 (part 2)
9501 Image with link parameter, protocol-less URL target (parsoid)
9505 [[File:Foobar.jpg|link=//example.com/]]
9507 <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>
9511 Image with link parameter, wgExternalLinkTarget
9513 [[Image:foobar.jpg|link=http://example.com/]]
9515 wgExternalLinkTarget='foobar'
9517 <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>
9522 Image with link parameter, wgNoFollowLinks set to false
9524 [[Image:foobar.jpg|link=http://example.com/]]
9526 wgNoFollowLinks=false
9528 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9533 Image with link parameter, wgNoFollowDomainExceptions
9535 [[Image:foobar.jpg|link=http://example.com/]]
9537 wgNoFollowDomainExceptions='example.com'
9539 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9544 Image with link parameter, wgExternalLinkTarget, unnamed parameter
9546 [[Image:foobar.jpg|link=http://example.com/|Title]]
9548 wgExternalLinkTarget='foobar'
9550 <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>
9555 Image with empty link parameter (php)
9559 [[File:Foobar.jpg|link=]]
9561 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
9566 Image with empty link parameter (parsoid)
9570 [[File:Foobar.jpg|link=]]
9572 <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>
9576 Image with link parameter (wiki target) and unnamed parameter (php)
9580 [[File:Foobar.jpg|link=Main Page|Title]]
9582 <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>
9587 Image with link parameter (wiki target) and unnamed parameter (parsoid)
9591 [[File:Foobar.jpg|link=Main Page|Title]]
9593 <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>
9597 Image with link parameter (URL target) and unnamed parameter (php)
9601 [[File:Foobar.jpg|link=http://example.com/|Title]]
9603 <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>
9608 Image with link parameter (URL target) and unnamed parameter (parsoid)
9612 [[File:Foobar.jpg|link=http://example.com/|Title]]
9614 <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>
9618 Thumbnail image with link parameter
9622 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
9624 <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>
9629 Manually-specified thumbnail image
9633 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
9635 <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>
9640 Manually-specified thumbnail image with explicit link to wiki page
9644 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
9646 <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>
9651 Manually-specified thumbnail image with explicit link to url
9655 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
9657 <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>
9662 Manually-specified thumbnail image with explicit no link
9666 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
9668 <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>
9673 Manually-specified thumbnail image with explicit link and alt text
9677 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
9679 <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>
9684 Image with frame and link
9686 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
9688 <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>
9693 Image with frame and link and explicit alt
9695 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
9697 <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>
9702 Image with wiki markup in implicit alt
9704 [[Image:Foobar.jpg|testing '''bold''' in alt]]
9706 <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>
9711 Image with wiki markup in explicit alt
9713 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
9715 <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>
9720 Link to image page- image page normally doesn't exists, hence edit link
9721 Add test with existing image page
9722 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
9726 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
9731 bug 18784 Link to non-existent image page with caption should use caption as link text
9733 [[:Image:test|caption]]
9735 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
9740 Frameless image caption with a free URL
9742 [[Image:foobar.jpg|http://example.com]]
9744 <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>
9749 Thumbnail image caption with a free URL
9751 [[Image:foobar.jpg|thumb|http://example.com]]
9753 <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>
9758 Thumbnail image caption with a free URL and explicit alt
9760 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
9762 <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>
9767 SVG thumbnails with no language set
9770 [[File:Foobar.svg|thumb|width=200]]
9772 <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>
9777 SVG thumbnails with language de
9780 [[File:Foobar.svg|thumb|width=200|lang=de]]
9782 <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>
9787 SVG thumbnails with invalid language code
9790 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
9792 <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>
9797 BUG 1887: A ISBN with a thumbnail
9799 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
9801 <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>
9806 BUG 1887: A RFC with a thumbnail
9808 [[Image:foobar.jpg|thumb|This is RFC 12354]]
9810 <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>
9815 BUG 1887: A mailto link with a thumbnail
9817 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
9819 <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>
9823 # Pending resolution to bug 368
9825 BUG 648: Frameless image caption with a link
9827 [[Image:foobar.jpg|text with a [[link]] in it]]
9829 <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>
9834 BUG 648: Frameless image caption with a link (suffix)
9836 [[Image:foobar.jpg|text with a [[link]]foo in it]]
9838 <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>
9843 BUG 648: Frameless image caption with an interwiki link
9845 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
9847 <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>
9852 BUG 648: Frameless image caption with a piped interwiki link
9854 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
9856 <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>
9861 Escape HTML special chars in image alt text
9863 [[Image:foobar.jpg|& < > "]]
9865 <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>
9870 BUG 499: Alt text should have Ӓ, not &1234;
9872 [[Image:foobar.jpg|♀]]
9874 <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>
9879 Broken image caption with link
9881 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
9883 <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.
9888 Image caption containing another image
9890 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
9892 <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>
9897 Image caption containing a newline
9899 [[Image:Foobar.jpg|This
9902 <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>
9907 Parsoid: Image caption containing leading space
9908 (The leading space should not trigger nowiki escaping in wt2wt mode)
9910 [[Image:Foobar.jpg|thumb| bar]]
9912 <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>
9917 Bug 3090: External links other than http: in image captions
9919 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
9921 <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>
9928 [[Image:foobar.jpg|a|class=b]]
9930 <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>
9935 Localized image handling (1).
9939 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
9941 <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>
9946 Localized image handling (2).
9950 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
9952 <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>
9957 "border", "frameless" and "class" attributes on an image.
9959 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
9961 <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>
9968 #REDIRECT [[File:Barfoo.jpg]]
9974 [[Image:Barfoo.jpg]]
9976 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
9981 Missing image with uploads disabled
9985 [[Image:Foobaz.jpg]]
9987 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
9991 # Parsoid-specific testing for images
9992 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9993 # Currently imperfect due to a flaw in the Parsoid testrunner
9995 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
9999 Parsoid-specific image handling - simple image with size and middle alignment
10003 [[Image:Foobar.jpg|50px|middle]]
10006 <span class="mw-valign-middle" typeof="mw:Image">
10007 <a href="File:Foobar.jpg">
10008 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10015 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10019 [[Image:Foobar.jpg|500x10px|baseline|caption]]
10022 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
10023 <a href="File:Foobar.jpg">
10024 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
10031 Parsoid-specific image handling - simple image with border and size spec
10035 [[Image:Foobar.jpg|50px|border|caption]]
10038 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
10039 <a href="File:Foobar.jpg">
10040 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10047 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10051 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
10053 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10054 <a href="File:Foobar.jpg">
10055 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
10057 <figcaption>caption content</figcaption>
10062 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10066 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10068 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10069 <a href="File:Foobar.jpg">
10070 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10072 <figcaption>caption</figcaption>
10077 Parsoid-specific image handling - framed image with specific size and caption
10081 [[Image:Foobar.jpg|500x50px|frame|caption]]
10083 <figure typeof="mw:Image/Frame">
10084 <a href="File:Foobar.jpg">
10085 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10087 <figcaption>caption</figcaption>
10092 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10096 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
10098 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10099 <a href="File:Foobar.jpg">
10100 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10102 <figcaption>caption</figcaption>
10107 Parsoid-specific image handling - frameless image with specific size, border, and caption
10111 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
10114 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
10115 <a href="File:Foobar.jpg">
10116 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10122 #Parsoid-specific image handling - simple image with a formatted caption
10126 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10129 #<span typeof="mw:Image">
10130 #<a class="mw-default-size" href="Image:Foobar.jpg">
10131 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10142 Subpage test/subpage
10150 subpage title=[[Subpage test]]
10154 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10159 Subpage noslash link
10161 subpage title=[[Subpage test]]
10165 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10169 # TODO: make this PHP-parser compatible!
10171 Relative subpage noslash link
10173 parsoid=wt2wt,wt2html,html2html
10174 subpage title=[[Subpage test/1/2/3/4]]
10180 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10181 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10184 # TODO: make this PHP-parser compatible!
10186 Parsoid: dot-slash prefixed wikilinks
10188 parsoid=wt2wt,wt2html,html2html
10196 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10197 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10198 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10206 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10211 BUG 561: {{/Subpage}}
10213 subpage title=[[Page]]
10217 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
10225 Category:MediaWiki User's Guide
10233 [[:Category:MediaWiki User's Guide]]
10235 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
10244 [[Category:MediaWiki User's Guide]]
10246 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10250 PAGESINCATEGORY invalid title fatal (r33546 fix)
10252 {{PAGESINCATEGORY:<bogus>}}
10259 Category with different sort key
10263 [[Category:MediaWiki User's Guide|Foo]]
10265 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10269 Category with identical sort key
10273 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10275 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10279 Category with empty sort key
10284 [[Category:MediaWiki User's Guide|]]
10286 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10290 Category with empty sort key and parentheses
10295 [[Category:Foo (bar)|]]
10297 [[Category:Foo (bar)|Foo]]
10301 Category with link tail
10306 123[[Category:Foo]]456
10308 123[[Category:Foo]]456
10312 Category with template
10317 [[Category:{{echo|Foo}}]]
10319 [[Category:{{echo|Foo}}]]
10323 Category with template in sort key
10328 [[Category:Foo|{{echo|Bar}}]]
10330 [[Category:Foo|{{echo|Bar}}]]
10334 Category with template in sort key and title
10339 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
10341 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
10345 Category / paragraph interactions
10347 Foo [[Category:Baz]] Bar
10349 Foo [[Category:Baz]]
10357 [[Category:Baz]] Bar
10370 {{echo|[[Category:Baz]]}}
10385 Parsoid: Serialize link to category page with colon escape
10391 [[:Category:Foo|Bar]]
10394 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
10395 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
10400 Parsoid: Link prefix/suffixes aren't applied to category links
10402 parsoid=wt2html,wt2wt,html2html
10407 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
10411 Parsoid: Serialize link to file page with colon escape
10417 [[:File:Foo.png|Bar]]
10420 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
10421 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
10426 Parsoid: Serialize a genuine category link without colon escape
10431 [[Category:Foo|Bar]]
10433 <link rel="mw:WikiLink/Category" href="Category:Foo">
10434 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
10438 ### Inter-language links
10441 Inter-language links
10447 [[zh:食品]]
10449 es:Alimento fr:Nourriture zh:食品
10453 Duplicate interlanguage links (bug 24502)
10469 Basic section headings
10476 ===Smaller headline===
10479 <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>
10482 <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>
10485 <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>
10491 Section headings with TOC
10494 === Subheadline 1 ===
10495 ===== Skipping a level =====
10496 ====== Skipping a level ======
10500 ===Another headline===
10502 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10504 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
10506 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
10508 <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>
10510 <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>
10517 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
10519 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
10525 <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>
10526 <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>
10527 <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>
10528 <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>
10529 <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>
10532 <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>
10536 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
10538 Handling of sections up to level 6 and beyond
10541 == Level 2 Heading==
10542 === Level 3 Heading===
10543 ==== Level 4 Heading====
10544 ===== Level 5 Heading=====
10545 ====== Level 6 Heading======
10546 ======= Level 7 Heading=======
10547 ======== Level 8 Heading========
10548 ========= Level 9 Heading=========
10549 ========== Level 10 Heading==========
10551 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10553 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
10555 <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>
10557 <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>
10559 <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>
10561 <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>
10563 <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>
10564 <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>
10565 <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>
10566 <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>
10567 <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>
10581 <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>
10582 <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>
10583 <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>
10584 <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>
10585 <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>
10586 <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>
10587 <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>
10588 <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>
10589 <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>
10590 <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>
10595 TOC regression (bug 9764)
10599 ==== title 1.1.1 ====
10604 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10606 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10608 <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>
10610 <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>
10613 <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>
10616 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
10618 <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>
10624 <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>
10625 <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>
10626 <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>
10627 <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>
10628 <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>
10629 <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>
10634 TOC with wgMaxTocLevel=3 (bug 6204)
10640 ==== title 1.1.1 ====
10645 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10647 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10649 <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>
10650 <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>
10653 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
10655 <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>
10661 <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>
10662 <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>
10663 <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>
10664 <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>
10665 <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>
10666 <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>
10671 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
10677 ====Section 1.1.1====
10678 ====Section 1.1.1.1====
10681 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10683 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
10685 <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>
10688 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
10692 <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>
10693 <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>
10694 <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>
10695 <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>
10696 <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>
10702 Resolving duplicate section names
10707 <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>
10708 <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>
10713 Resolving duplicate section names with differing case (bug 10721)
10718 <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>
10719 <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>
10731 Template with sections, __NOTOC__
10738 <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>
10739 <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>
10740 <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>
10741 <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>
10746 __NOEDITSECTION__ keyword
10752 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
10753 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
10758 Link inside a section heading
10760 ==Section with a [[Main Page|link]] in it==
10762 <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>
10767 TOC regression (bug 12077)
10774 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10776 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10778 <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>
10781 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
10785 <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>
10786 <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>
10787 <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>
10792 BUG 1219 URL next to image (good)
10794 http://example.com [[Image:foobar.jpg]]
10796 <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>
10801 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
10804 The line above must have a trailing space!
10807 But just in case it doesn't...
10809 <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>
10810 <p>The line above must have a trailing space!
10812 <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>
10813 <p>But just in case it doesn't...
10818 Header with special characters (bug 25462)
10820 The tooltips shall not show entities to the user (ie. be double escaped)
10837 <p>The tooltips shall not show entities to the user (ie. be double escaped)
10839 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10841 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
10842 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
10843 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
10844 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
10845 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
10849 <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>
10852 <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>
10855 <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>
10858 <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>
10861 <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>
10867 Headers with excess '=' characters
10868 (Are similar tests necessary beyond the 1st level?)
10872 =''italic'' heading==
10873 ==''italic'' heading=
10875 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10877 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
10878 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
10879 <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>
10880 <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>
10884 <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>
10885 <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>
10886 <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>
10887 <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>
10892 HTML headers vs TOC (bug 23393)
10893 (__NOEDITSECTION__ for clearer output, doesn't matter here)
10905 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10907 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
10909 <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>
10910 <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>
10913 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
10915 <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>
10916 <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>
10922 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
10923 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
10924 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
10925 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
10926 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
10927 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
10932 BUG 1219 URL next to image (broken)
10934 http://example.com[[Image:foobar.jpg]]
10936 <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>
10941 Bug 1186 news: in the middle of text
10943 http://en.wikinews.org/wiki/Wikinews:Workplace
10945 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
10951 Namespaced link must have a title
10960 Namespaced link must have a title (bad fragment version)
10962 [[Project:#fragment]]
10964 <p>[[Project:#fragment]]
10970 ### HTML tags and HTML attributes
10974 div with no attributes
10976 <div>HTML rocks</div>
10978 <div>HTML rocks</div>
10983 div with double-quoted attribute
10985 <div id="rock">HTML rocks</div>
10987 <div id="rock">HTML rocks</div>
10992 div with single-quoted attribute
10994 <div id='rock'>HTML rocks</div>
10996 <div id="rock">HTML rocks</div>
11001 div with unquoted attribute
11003 <div id=rock>HTML rocks</div>
11005 <div id="rock">HTML rocks</div>
11010 div with illegal double attributes
11012 <div id="a" id="b">HTML rocks</div>
11014 <div id="b">HTML rocks</div>
11018 # FIXME: produce empty string instead of "class" in the PHP parser, following
11021 div with empty attribute value, space before equals
11025 <div class =>HTML rocks</div>
11027 <div class="">HTML rocks</div>
11031 # The PHP parser escapes the opening brace to { for some reason, so
11032 # disabled this test for it.
11034 div with braces in attribute value
11038 <div title="{}">Foo</div>
11040 <div title="{}">Foo</div>
11043 # This it very inconsistent in the PHP parser: it returns
11044 # class="class" if there is a space between the name and the equal sign (see
11045 # 'div with empty attribute value, space before equals'), but strips the
11046 # attribute completely if the space is missing. We hope that not much content
11047 # depends on this, so are implementing the behavior below in Parsoid for
11048 # consistencies' sake. Disabled for the PHP parser.
11049 # FIXME: fix this behavior in the PHP parser?
11051 div with empty attribute value, no space before equals
11055 <div class=>HTML rocks</div>
11057 <div class="">HTML rocks</div>
11062 HTML multiple attributes correction
11064 <p class="error" class="awesome">Awesome!</p>
11066 <p class="awesome">Awesome!</p>
11071 Table multiple attributes correction
11074 !+ class="error" class="awesome"| status
11079 <th class="awesome"> status
11087 <DIV ID="x">HTML ROCKS</DIV>
11089 <div id="x">HTML ROCKS</div>
11094 Non-ASCII pseudo-tags are rendered as text
11103 Pseudo-tag with URL 'name' renders as url link
11105 <http://example.com/>
11107 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11112 text with amp in the middle of nowhere
11116 <p>Remember AT&T?
11121 text with character entity: eacute
11123 I always thought é was a cute letter.
11125 <p>I always thought é was a cute letter.
11130 text with entity-escaped character entity-like string: eacute
11132 I always thought &eacute; was a cute letter.
11134 <p>I always thought &eacute; was a cute letter.
11139 text with undefined character entity: xacute
11141 I always thought &xacute; was a cute letter.
11143 <p>I always thought &xacute; was a cute letter.
11149 ### Nesting tests (see bug 41545, 50604, 51081)
11152 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11153 # Note that html2wt is considerably more difficult if we use <b> in
11154 # the test case, instead of <big>
11156 Ensure that HTML adoption agency algorithm is properly implemented.
11158 <big>X<big>Y</big>Z</big>
11160 <p><big>X<big>Y</big>Z</big>
11164 # This was bug 41545 in the PHP parser.
11168 <kbd>X<kbd>Y</kbd>Z</kbd>
11170 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11174 # The following cases were bug 51081 in the PHP parser.
11175 # Note that there are some other nestable tags (b, i, etc) which are
11176 # not covered; see bug 51081 for discussion.
11180 <em>X<em>Y</em>Z</em>
11182 <p><em>X<em>Y</em>Z</em>
11187 Nesting of <strong>
11189 <strong>X<strong>Y</strong>Z</strong>
11191 <p><strong>X<strong>Y</strong>Z</strong>
11200 <p><q>X<q>Y</q>Z</q>
11207 <ruby>X<ruby>Y</ruby>Z</ruby>
11209 <p><ruby>X<ruby>Y</ruby>Z</ruby>
11216 <bdo>X<bdo>Y</bdo>Z</bdo>
11218 <p><bdo>X<bdo>Y</bdo>Z</bdo>
11230 [[Media:Foobar.jpg]]
11232 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
11237 Media link with text
11239 [[Media:Foobar.jpg|A neat file to look at]]
11241 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
11245 # FIXME: this is still bad HTML tag nesting
11247 Media link with nasty text
11248 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
11250 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
11252 <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>
11257 Media link to nonexistent file (bug 1702)
11259 [[Media:No such.jpg]]
11261 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
11266 Image link to nonexistent file (bug 1850 - good)
11268 [[Image:No such.jpg]]
11270 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
11275 :Image link to nonexistent file (bug 1850 - bad)
11277 [[:Image:No such.jpg]]
11279 <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>
11286 Character reference normalization in link text (bug 1938)
11288 [[Main Page|this&that]]
11290 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
11297 Test for unicode normalization
11299 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
11303 (bug 19451) Links should refer to the normalized form.
11311 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11312 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11313 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11314 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11315 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11320 Empty attribute crash test (bug 2067)
11322 <font color="">foo</font>
11324 <p><font color="">foo</font>
11329 Empty attribute crash test single-quotes (bug 2067)
11331 <font color=''>foo</font>
11333 <p><font color="">foo</font>
11338 Attribute test: equals, then nothing
11340 <font color=>foo</font>
11342 <p><font>foo</font>
11347 Attribute test: unquoted value
11349 <font color=x>foo</font>
11351 <p><font color="x">foo</font>
11356 Attribute test: unquoted but illegal value (hash)
11358 <font color=#x>foo</font>
11360 <p><font color="#x">foo</font>
11365 Attribute test: no value
11367 <font color>foo</font>
11369 <p><font color="color">foo</font>
11374 Bug 2095: link with three closing brackets
11378 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
11383 Bug 2095: link with pipe and three closing brackets
11385 [[Main Page|link]]]
11387 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
11392 Bug 2095: link with pipe and three closing brackets, version 2
11394 [[Main Page|[http://example.com/]]]
11396 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
11406 Template:Dangerous attribute
11408 " onmouseover="alert(document.cookie)
11412 Template:Dangerous style attribute
11414 border-size: expression(alert(document.cookie))
11420 <div style="float: right; {{{1}}}">Magic div</div>
11424 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
11426 <div title="{{test}}"></div>
11428 <div title="This is a test template"></div>
11433 Bug 2304: HTML attribute safety (dangerous template; 2309)
11435 <div title="{{dangerous attribute}}"></div>
11437 <div title=""></div>
11442 Bug 2304: HTML attribute safety (dangerous style template; 2309)
11444 <div style="{{dangerous style attribute}}"></div>
11446 <div style="/* insecure input */"></div>
11451 Bug 2304: HTML attribute safety (safe parameter; 2309)
11453 {{div style|width: 200px}}
11455 <div style="float: right; width: 200px">Magic div</div>
11460 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
11462 {{div style|width: expression(alert(document.cookie))}}
11464 <div style="/* insecure input */">Magic div</div>
11469 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
11471 {{div style|"><script>alert(document.cookie)</script>}}
11473 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
11478 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
11480 {{div style|" ><script>alert(document.cookie)</script>}}
11482 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
11487 Bug 2304: HTML attribute safety (link)
11489 <div title="[[Main Page]]"></div>
11491 <div title="[[Main Page]]"></div>
11496 Bug 2304: HTML attribute safety (italics)
11498 <div title="''foobar''"></div>
11500 <div title="''foobar''"></div>
11505 Bug 2304: HTML attribute safety (bold)
11507 <div title="'''foobar'''"></div>
11509 <div title="'''foobar'''"></div>
11515 Bug 2304: HTML attribute safety (ISBN)
11517 <div title="ISBN 1234567890"></div>
11519 <div title="ISBN 1234567890"></div>
11524 Bug 2304: HTML attribute safety (RFC)
11526 <div title="RFC 1234"></div>
11528 <div title="RFC 1234"></div>
11533 Bug 2304: HTML attribute safety (PMID)
11535 <div title="PMID 1234567890"></div>
11537 <div title="PMID 1234567890"></div>
11542 Bug 2304: HTML attribute safety (web link)
11544 <div title="http://example.com/"></div>
11546 <div title="http://example.com/"></div>
11551 Bug 2304: HTML attribute safety (named web link)
11553 <div title="[http://example.com/ link]"></div>
11555 <div title="[http://example.com/ link]"></div>
11560 Bug 3244: HTML attribute safety (extension; safe)
11562 <div style="<nowiki>background:blue</nowiki>"></div>
11564 <div style="background:blue"></div>
11569 Bug 3244: HTML attribute safety (extension; unsafe)
11571 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
11573 <div style="/* insecure input */"></div>
11577 # More MSIE fun discovered by Tom Gilder
11580 MSIE CSS safety test: spurious slash
11582 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
11584 <div style="/* insecure input */">evil</div>
11589 MSIE CSS safety test: hex code
11591 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
11593 <div style="/* insecure input */">evil</div>
11598 MSIE CSS safety test: comment in url
11600 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
11602 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
11607 MSIE CSS safety test: comment in expression
11609 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
11611 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
11617 Table attribute legitimate extension
11620 !+ style="<nowiki>color:blue</nowiki>"| status
11625 <th style="color:blue"> status
11631 Table attribute safety
11634 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
11639 <th style="/* insecure input */"> status
11645 CSS line continuation 1
11647 <div style="background-image: u\ rl(test.jpg);"></div>
11649 <div style="/* insecure input */"></div>
11654 CSS line continuation 2
11656 <div style="background-image: u\ rl(test.jpg); "></div>
11658 <div style="/* insecure input */"></div>
11669 Expansion of multi-line templates in attribute values (bug 6255)
11671 <div style="background: {{identity|#00FF00}}">-</div>
11673 <div style="background: #00FF00">-</div>
11679 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
11681 <div style="background:
11684 <div style="background: #00FF00">-</div>
11689 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
11691 <div style="background: #00FF00">-</div>
11693 <div style="background: #00FF00">-</div>
11698 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
11701 Parser hook: empty input
11714 Parser hook: empty input using terminated empty elements
11727 Parser hook: empty input using terminated empty elements (space before)
11740 Parser hook: basic input
11754 Parser hook: case insensitive
11768 Parser hook: case insensitive, redux
11781 Parser hook: nested tags
11785 <tag><tag></tag></tag>
11796 Parser hook: basic arguments
11798 <tag width=200 height = "100" depth = '50' square></tag>
11806 'square' => 'square',
11813 Parser hook: argument containing a forward slash (bug 5344)
11815 <tag filename='/tmp/bla'></tag>
11820 'filename' => '/tmp/bla',
11827 Parser hook: empty input using terminated empty elements (bug 2374)
11840 # </tag> should be output literally since there is no matching tag that begins it
11842 Parser hook: basic arguments using terminated empty elements (bug 2374)
11844 <tag width=200 height = "100" depth = '50' square/>
11854 'square' => 'square',
11863 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
11867 Parser hook: static parser hook not inside a comment
11869 <statictag>hello, world</statictag>
11870 <statictag action=flush/>
11878 Parser hook: static parser hook inside a comment
11880 <!-- <statictag>hello, world</statictag> -->
11881 <statictag action=flush/>
11887 # Nested template calls; this case was broken by Parser.php rev 1.506,
11891 Template:One-parameter
11893 (My parameter is: {{{1}}})
11897 Template:Map-one-parameter
11899 {{{{{1}}}|{{{2}}}}}
11903 Nested template calls
11905 {{Map-one-parameter|One-parameter|param}}
11907 <p>(My parameter is: param)
11916 Sanitizer: Closing of open tags
11918 <s></s><table></table>
11920 <s></s><table></table>
11925 Sanitizer: Closing of open but not closed tags
11934 Sanitizer: Closing of closed but not open tags
11943 Sanitizer: Closing of closed but not open table tags
11945 Table not started</td></tr></table>
11947 <p>Table not started</td></tr></table>
11952 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
11954 <span id="æ: v">byte</span>[[#æ: v|backlink]]
11956 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
11961 Sanitizer: Validating the contents of the id attribute (bug 4515)
11967 Something, but definitely not <br id="9" />...
11971 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
11975 <br id="foo" /><br id="foo" />
11977 Something need to be done. foo-2 ?
11981 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
11984 <meta itemprop="hello" content="world">
11985 <meta http-equiv="refresh" content="5">
11986 <meta itemprop="hello" http-equiv="refresh" content="5">
11987 <link itemprop="hello" href="{{SERVER}}">
11988 <link rel="stylesheet" href="{{SERVER}}">
11989 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
11992 <div itemscope="itemscope">
11993 <p> <meta itemprop="hello" content="world" />
11994 <meta http-equiv="refresh" content="5">
11995 <meta itemprop="hello" content="5" />
11997 <link itemprop="hello" href="http://example.org" />
11998 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
11999 <link itemprop="hello" href="http://example.org" />
12005 Language converter: output gets cut off unexpectedly (bug 5757)
12009 this bit is safe: }-
12011 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12013 then we get cut off here: }-
12015 all additional text is vanished
12017 <p>this bit is safe: }-
12018 </p><p>but if we add a conversion instance: xxx
12019 </p><p>then we get cut off here: }-
12020 </p><p>all additional text is vanished
12025 Self closed html pairs (bug 5487)
12028 <center><font id="bug" />Centered text</center>
12029 <div><font id="bug2" />In div text</div>
12031 <center><font id="bug" />Centered text</center>
12032 <div><font id="bug2" />In div text</div>
12041 Punctuation: nbsp before exclamation
12045 <p>C'est grave !
12050 Punctuation: CSS !important (bug 11874)
12052 <div style="width:50% !important">important</div>
12054 <div style="width:50% !important">important</div>
12059 Punctuation: CSS ! important (bug 11874; with space after)
12061 <div style="width:50% ! important">important</div>
12063 <div style="width:50% ! important">important</div>
12069 HTML bullet list, closed tags (bug 5497)
12084 HTML bullet list, unclosed tags (bug 5497)
12103 HTML ordered list, closed tags (bug 5497)
12118 HTML ordered list, unclosed tags (bug 5497)
12137 HTML nested bullet list, closed tags (bug 5497)
12162 HTML nested bullet list, open tags (bug 5497)
12191 HTML nested ordered list, closed tags (bug 5497)
12216 HTML nested ordered list, open tags (bug 5497)
12245 HTML ordered list item with parameters oddity
12247 <ol><li id="fragment">One</li>
12250 <ol><li id="fragment">One</li>
12256 bug 5918: autonumbering
12258 [http://first/] [http://second] [ftp://ftp]
12262 [mailto:enclosed@mail.tld With target]
12264 [mailto:enclosed@mail.tld]
12266 mailto:inline@mail.tld
12268 <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>
12269 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
12270 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
12271 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
12272 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
12278 # Security and HTML correctness
12279 # From Nick Jenkins' fuzz testing
12283 Fuzz testing: Parser13
12298 Fuzz testing: Parser14
12303 <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>
12304 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12306 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
12314 Fuzz testing: Parser14-table
12319 <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>
12320 <table style="__TOC__">
12326 # Known to produce bogus xml (extra </td>)
12328 Fuzz testing: Parser16
12348 Fuzz testing: Parser21
12351 ! irc://{{ftp://a" onmouseover="alert('hello world');"
12356 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
12366 Fuzz testing: Parser22
12368 http://===r:::https://b
12372 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
12380 # Known to produce bad XML for now
12382 Fuzz testing: Parser24
12389 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
12390 <br style="onmouseover='alert(document.cookie);' " />
12392 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
12397 <u class="|">}}}} >
12398 <br style="onmouseover='alert(document.cookie);'" />
12400 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
12409 # Note: the current result listed for this is not what the original one was,
12410 # but the original bug was JavaScript injection, which is fixed in any case.
12411 # It's not clear that the original result listed was any more correct than the
12412 # current one. Original result:
12415 # <li class="||">
12416 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
12418 Fuzz testing: Parser25 (bug 6055)
12424 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
12426 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
12431 Fuzz testing: URL adjacent extension (with space, clean)
12434 http://example.com <nowiki>junk</nowiki>
12436 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
12441 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
12444 http://example.com<nowiki>junk</nowiki>
12446 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
12451 Fuzz testing: URL adjacent extension (no space, dirty; pre)
12454 http://example.com<pre>junk</pre>
12456 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
12461 Fuzz testing: image with bogus manual thumbnail
12463 [[Image:foobar.jpg|thumbnail= ]]
12465 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
12470 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
12472 <pre dir=" "></pre>
12474 <pre dir=" "></pre>
12479 Parsing optional HTML elements (Bug 6171)
12484 <td> Some tabular data</td>
12485 <td> More tabular data ...
12486 <td> And yet som tabular data</td>
12492 <td> Some tabular data</td>
12493 <td> More tabular data ...
12494 </td><td> And yet som tabular data</td>
12501 Correct handling of <td>, <tr> (Bug 6171)
12506 <td> Some tabular data</td>
12507 <td> More tabular data ...</td>
12508 <td> And yet som tabular data</td>
12514 <td> Some tabular data</td>
12515 <td> More tabular data ...</td>
12516 <td> And yet som tabular data</td>
12524 Parsing crashing regression (fr:JavaScript)
12528 <p></body></x>
12533 Inline wiki vs wiki block nesting
12539 <p><b>Bold paragraph</b>
12540 </p><p>New wiki paragraph
12545 Inline HTML vs wiki block nesting
12553 <p><b>Bold paragraph</b>
12554 </p><p>New wiki paragraph
12558 # Original result was this:
12559 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
12561 # While that might be marginally more intuitive, maybe, the six-apostrophe
12562 # construct is clearly pathological and the result stated here (which is what
12563 # the parser actually does) is about as reasonable as anything.
12565 Mixing markup for italics and bold
12568 '''bold''''''bold''bolditalics'''''
12570 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
12578 Article for special page transclusion test
12582 Special page transclusion
12585 {{Special:Prefixindex/Xyzzyx}}
12587 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12592 Special page transclusion twice (bug 5021)
12595 {{Special:Prefixindex/Xyzzyx}}
12596 {{Special:Prefixindex/Xyzzyx}}
12598 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12599 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12604 Transclusion of default MediaWiki message
12606 {{MediaWiki:Mainpage}}
12613 Transclusion of nonexistent MediaWiki message
12615 {{MediaWiki:Mainpagexxx}}
12617 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
12622 Transclusion of MediaWiki message with underscore
12624 {{MediaWiki:history_short}}
12631 Transclusion of MediaWiki message with space
12633 {{MediaWiki:history short}}
12640 Invalid header with following text
12650 Section extraction test (section 0)
12670 Section extraction test (section 1)
12692 Section extraction test (section 2)
12713 Section extraction test (section 3)
12733 Section extraction test (section 4)
12757 Section extraction test (section 5)
12777 Section extraction test (section 6)
12798 Section extraction test (section 7)
12818 Section extraction test (section 8)
12838 Section extraction test (section 9)
12859 Section extraction test (section 10)
12879 Section extraction test (nonexistent section 11)
12898 Section extraction test with bogus heading (section 1)
12903 ==bogus== not a legal section
12907 ==bogus== not a legal section
12911 Section extraction test with bogus heading (section 2)
12916 ==bogus== not a legal section
12923 Section extraction test with comment after heading (section 1)
12935 Section extraction test with comment after heading (section 2)
12947 Section extraction test with bogus <nowiki> heading (section 1)
12952 ==bogus== <nowiki>not a legal section</nowiki>
12956 ==bogus== <nowiki>not a legal section</nowiki>
12960 Section extraction test with bogus <nowiki> heading (section 2)
12965 ==bogus== <nowiki>not a legal section</nowiki>
12972 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
12973 # instead of respecting commented sections
12975 Section extraction prefixed by comment (section 1)
12986 Section extraction prefixed by comment (section 2)
12997 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
12998 # instead of respecting HTML-style headings
13000 Section extraction, mixed wiki and html (section 1)
13016 Section extraction, mixed wiki and html (section 2)
13032 # Formerly testing for bug 3342
13034 Section extraction, heading surrounded by <noinclude>
13038 <noinclude>==unmarked==</noinclude>
13044 # Test behavior of bug 19910
13046 Sectiion with all-equals
13051 The line above must have a trailing space
13054 But just in case it doesn't...
13058 But just in case it doesn't...
13062 Section replacement test (section 0)
13093 Section replacement test (section 1)
13122 Section replacement test (section 2)
13152 Section replacement test (section 3)
13183 Section replacement test (section 4)
13210 Section replacement test (section 5)
13241 Section replacement test (section 6)
13271 Section replacement test (section 7)
13302 Section replacement test (section 8)
13333 Section replacement test (section 9)
13362 Section replacement test (section 10)
13392 Section replacement test with initial whitespace (bug 13728)
13396 Preformatted initial line
13400 Preformatted initial line
13407 Section extraction, heading followed by pre with 20 spaces (bug 6398)
13419 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
13432 Section extraction, <pre> around bogus header (bug 10309)
13449 Section replacement, <pre> around bogus header (bug 10309)
13451 noxml replace=2,"xxx"
13472 Handling of 
 in URLs
13478 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
13487 5 quotes, code coverage +1 line (php)
13494 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
13496 5 quotes, code coverage +1 line (parsoid)
13502 <p><b><i></i></b></p>
13506 Special:Search page linking.
13510 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
13517 title=[[Parser test]]
13522 * {{FULLPAGENAMEE}}
13524 * {{BASEPAGENAMEE}}
13528 * {{ROOTPAGENAMEE}}
13530 * {{TALKPAGENAMEE}}
13531 * {{SUBJECTPAGENAME}}
13532 * {{SUBJECTPAGENAMEE}}
13535 * {{NAMESPACENUMBER}}
13539 * {{SUBJECTSPACEE}}
13540 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
13563 <li> Talk:Parser test
13565 <li> Talk:Parser_test
13585 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
13590 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
13600 image4 |300px| centre
13601 image5.svg| http://///////
13606 <ul class="gallery mw-gallery-traditional">
13607 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13608 <div class="thumb" style="height: 150px;">Image1.png</div>
13609 <div class="gallerytext">
13612 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13613 <div class="thumb" style="height: 150px;">Image2.gif</div>
13614 <div class="gallerytext">
13619 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13620 <div class="thumb" style="height: 150px;">Image3</div>
13621 <div class="gallerytext">
13624 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13625 <div class="thumb" style="height: 150px;">Image4</div>
13626 <div class="gallerytext">
13631 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13632 <div class="thumb" style="height: 150px;">Image5.svg</div>
13633 <div class="gallerytext">
13634 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
13638 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13639 <div class="thumb" style="height: 150px;">* image6</div>
13640 <div class="gallerytext">
13648 Gallery (with options)
13650 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
13651 File:Nonexistant.jpg|caption
13652 File:Nonexistant.jpg
13653 image:foobar.jpg|some '''caption''' [[Main Page]]
13655 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
13658 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
13659 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
13660 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13661 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
13662 <div class="gallerytext">
13667 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13668 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
13669 <div class="gallerytext">
13672 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13673 <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>
13674 <div class="gallerytext">
13675 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13679 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13680 <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>
13681 <div class="gallerytext">
13684 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13685 <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>
13686 <div class="gallerytext">
13696 Gallery with wikitext inside caption
13699 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
13700 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
13703 <ul class="gallery mw-gallery-traditional">
13704 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13705 <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>
13706 <div class="gallerytext">
13707 <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>
13711 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13712 <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>
13713 <div class="gallerytext">
13714 <p>This is a test template
13723 gallery (with showfilename option)
13725 <gallery showfilename>
13726 File:Nonexistant.jpg|caption
13727 File:Nonexistant.jpg
13728 image:foobar.jpg|some '''caption''' [[Main Page]]
13732 <ul class="gallery mw-gallery-traditional">
13733 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13734 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13735 <div class="gallerytext">
13736 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13741 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13742 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13743 <div class="gallerytext">
13744 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13748 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13749 <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>
13750 <div class="gallerytext">
13751 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13752 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13756 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13757 <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>
13758 <div class="gallerytext">
13759 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13768 Gallery (with namespace-less filenames)
13771 File:Nonexistant.jpg
13777 <ul class="gallery mw-gallery-traditional">
13778 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13779 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13780 <div class="gallerytext">
13783 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13784 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13785 <div class="gallerytext">
13788 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13789 <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>
13790 <div class="gallerytext">
13793 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13794 <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>
13795 <div class="gallerytext">
13803 HTML Hex character encoding (spells the word "JavaScript")
13805 JavaScript
13807 <p>JavaScript
13812 HTML Hex character encoding bogus encoding (bug 26437 regression check)
13816 <p>&#xsee;&#XSEE;
13821 HTML Hex character encoding mixed case
13830 __FORCETOC__ override
13842 ISBN 978-0-1234-56 789
13844 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
13849 ISBN followed by 5 spaces
13860 ISBN ISBN 1234567890
13862 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13867 Bug 22905: <abbr> followed by ISBN followed by </a>
13869 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
13871 <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>
13880 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
13885 Double RFC with a wiki link
13889 <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>
13898 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
13903 Centre-aligned image
13905 [[Image:foobar.jpg|centre]]
13907 <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>
13914 [[Image:foobar.jpg|none]]
13916 <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>
13921 Width + Height sized image (using px) (height is ignored)
13923 [[Image:foobar.jpg|640x480px]]
13925 <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>
13930 Width-sized image (using px, no following whitespace)
13932 [[Image:foobar.jpg|640px]]
13934 <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>
13939 Width-sized image (using px, with following whitespace - test regression from r39467)
13941 [[Image:foobar.jpg|640px ]]
13943 <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>
13948 Width-sized image (using px, with preceding whitespace - test regression from r39467)
13950 [[Image:foobar.jpg| 640px]]
13952 <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>
13957 Another italics / bold test
13965 # Note the results may be incorrect, as parserTest output included this:
13966 # XML error: Mismatched tag at byte 6120:
13967 # ...<dd> </dt></dl> </dd...
13998 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
14000 Images with the "|" character in the comment
14002 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
14004 <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>
14009 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14011 <html><script>alert(1);</script></html>
14013 <p><html><script>alert(1);</script></html>
14018 HTML with raw HTML ($wgRawHtml==true)
14022 <html><script>alert(1);</script></html>
14024 <p><script>alert(1);</script>
14029 Parents of subpages, one level up
14031 subpage title=[[Subpage test/L1/L2/L3]]
14035 <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>
14041 Parents of subpages, one level up, not named
14043 subpage title=[[Subpage test/L1/L2/L3]]
14047 <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>
14054 Parents of subpages, two levels up
14056 subpage title=[[Subpage test/L1/L2/L3]]
14062 <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
14063 </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>
14068 Parents of subpages, two levels up, without trailing slash or name.
14070 subpage title=[[Subpage test/L1/L2/L3]]
14079 Parents of subpages, two levels up, with lots of extra trailing slashes.
14081 subpage title=[[Subpage test/L1/L2/L3]]
14085 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14090 Subpage test/L1/L2/L3Sibling
14096 Transclusion of a sibling page (one level up)
14098 subpage title=[[Subpage test/L1/L2/L3]]
14107 Transclusion of a child page
14109 subpage title=[[Subpage test/L1/L2]]
14118 Non-transclusion because of too many up levels
14120 subpage title=[[Subpage test/L1/L2/L3]]
14122 {{../../../../More than parent}}
14124 <p>{{../../../../More than parent}}
14129 Definition list code coverage
14136 <dt> title  </dt>
14139 <dt> title </dt>
14150 Don't fall for the self-closing div
14152 <div>hello world</div/>
14154 <div>hello world</div>
14163 <p>[[:Template:Msg]]
14172 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
14176 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
14178 Always escape literal '>' in output, not just after '<'
14192 <p>This is a test template
14193 This is a test template
14205 Inclusion of !userCanEdit() content
14209 <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>
14215 Out-of-order TOC heading levels
14224 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14226 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
14228 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
14229 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
14232 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
14234 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
14235 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
14241 <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>
14242 <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>
14243 <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>
14244 <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>
14245 <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>
14246 <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>
14252 ISBN with a dummy number
14262 ISBN with space-delimited number
14266 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
14272 ISBN with multiple spaces, no number
14291 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14292 </p><p>ISBN 12345678901
14298 ISBN with trailing year (bug 8110)
14300 ISBN 1-234-56789-0 - 2006
14302 ISBN 1 234 56789 0 - 2006
14304 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
14305 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
14313 {{anchorencode:foo bar©#%n}}
14315 <p>foo_bar.C2.A9.23.25n
14320 anchorencode trims spaces
14322 {{anchorencode: __pretty__please__}}
14329 anchorencode deals with links
14331 {{anchorencode: [[hello|world]] [[hi]]}}
14338 anchorencode deals with templates
14340 {{anchorencode: {{Foo}} }}
14347 anchorencode encodes like the TOC generator: (bug 18431)
14349 === _ +:.3A%3A&&]] ===
14350 {{anchorencode: _ +:.3A%3A&&]] }}
14353 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
14354 <p>.2B:.3A.253A.26.26.5D.5D
14359 Bug 6200: blockquotes and paragraph formatting
14380 Bug 8293: Use of center tag ruins paragraph formatting
14401 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
14405 <span><s>x</span></s>
14407 <p><span><s>x</span></s></span>
14412 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
14416 <span><s>x</span></s>
14418 <p><span><s>x</s></span><s></s>
14423 ### Language variants related tests
14426 Self-link in language variants
14428 title=[[Dunav]] language=sr
14430 Both [[Dunav]] and [[Дунав]] are names for this river.
14432 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
14443 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
14445 title=[[Duna]] language=sr
14447 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
14449 <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.
14454 Link to a section of a variant of this title shouldn't be parsed as self-link
14456 title=[[Duna]] language=sr
14458 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
14460 <p><strong class="selflink">Dуна</strong> is a self-link while <a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Dunа#Foo</a> and <a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Dуна#Foo</a> are not self-links.
14465 Link to pages in language variants
14469 Main Page can be written as [[Маин Паге]]
14471 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
14477 Multiple links to pages in language variants
14481 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
14483 <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>.
14489 Simple template in language variants
14495 <p>This is a test template
14501 Template with explicit namespace in language variants
14507 <p>This is a test template
14513 Basic test for template parameter in language variants
14517 {{парамтест|param=foo}}
14519 <p>This is a test template with parameter foo
14525 Simple category in language variants
14529 [[Category:МедиаWики Усер'с Гуиде]]
14531 <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>
14548 Don't convert blue categorylinks to another variant (bug 33210)
14552 [[A]][[Category:分类]]
14554 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
14559 Stripping -{}- tags (language variants)
14563 Latin proverb: -{Ne nuntium necare}-
14565 <p>Latin proverb: Ne nuntium necare
14571 Prevent conversion with -{}- tags (language variants)
14573 language=sr variant=sr-ec
14575 Latinski: -{Ne nuntium necare}-
14577 <p>Латински: Ne nuntium necare
14583 Prevent conversion of text with -{}- tags (language variants)
14585 language=sr variant=sr-ec
14587 Latinski: -{Ne nuntium necare}-
14589 <p>Латински: Ne nuntium necare
14595 Prevent conversion of links with -{}- tags (language variants)
14597 language=sr variant=sr-ec
14601 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14607 -{}- tags within headlines (within html for parserConvert())
14609 language=sr variant=sr-ec
14613 <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>
14619 Explicit definition of language variant alternatives
14621 language=zh variant=zh-tw
14623 -{zh:China;zh-tw:Taiwan}-, not China
14625 <p>Taiwan, not China
14631 Conversion around HTML tags
14633 language=sr variant=sr-ec
14635 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
14636 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
14639 <span title="ЛаCтин">ски</span>
14645 Explicit session-wise language variant mapping (A flag and - flag)
14647 language=zh variant=zh-tw
14649 Taiwan is not China.
14650 But -{A|zh:China;zh-tw:Taiwan}- is China,
14651 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
14652 and -{China}- is China.
14654 <p>Taiwan is not China.
14655 But Taiwan is Taiwan,
14656 (This should be stripped!)
14657 and China is China.
14662 Explicit session-wise language variant mapping (H flag for hide)
14664 language=zh variant=zh-tw
14666 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
14669 <p>(This should be stripped!)
14675 Adding explicit conversion rule for title (T flag)
14677 language=zh variant=zh-tw showtitle
14679 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14682 <p>Should be stripped!
14687 Testing that changing the language variant here in the tests actually works
14689 language=zh variant=zh showtitle
14691 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14694 <p>Should be stripped!
14699 Recursive conversion of alt and title attrs shouldn't clear converter state
14701 language=zh variant=zh-cn showtitle
14703 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
14704 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
14708 Should be stripped<span title="Exclamation">!</span>
14713 Bug 24072: more test on conversion rule for title
14715 language=zh variant=zh-tw showtitle
14717 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14718 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
14721 <p>This should be stripped!
14722 This won't take interferes with the title rule.
14727 Partly disable title conversion if variant == main language code
14729 language=zh variant=zh title=[[ZH]] showtitle
14731 -{T|zh-cn:CN;zh-tw:TW}-
14739 Partly disable title conversion if variant == main language code, more
14741 language=zh variant=zh title=[[ZH]] showtitle
14751 Raw output of variant escape tags (R flag)
14753 language=zh variant=zh-tw
14755 Raw: -{R|zh:China;zh-tw:Taiwan}-
14757 <p>Raw: zh:China;zh-tw:Taiwan
14762 Nested using of manual convert syntax
14764 language=zh variant=zh-hk
14766 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
14768 <p>Nested: Hello Hong Kong!
14773 Proper conversion of text in external links
14775 language=sr variant=sr-ec
14777 http://www.google.com
14778 gopher://www.google.com
14779 [http://www.google.com http://www.google.com]
14780 [gopher://www.google.com gopher://www.google.com]
14781 [https://www.google.com irc://www.google.com]
14782 [ftp://www.google.com www.google.com/ftp://dir]
14783 [//www.google.com www.google.com]
14785 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14786 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14787 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14788 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14789 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
14790 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
14791 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
14796 Do not convert roman numbers to language variants
14798 language=sr variant=sr-ec
14802 <p>Фридрих IV је цар.
14807 Unclosed language converter markup "-{"
14818 Don't convert raw rule "-{R|=>}-" to "=>"
14829 Bug 529: Uncovered bullet
14842 # Plain MediaWiki does not remove empty lists, but tidy actually does.
14843 # Templates in Wikipedia rely on this behavior, as tidy has always been
14844 # enabled there. These tests are normally run *without* tidy, so specify the
14845 # full output here.
14846 # To test realistic parsing behavior, apply a tidy-like transformation to both
14847 # the expected output and your parser's output.
14849 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
14851 ******* Foo {{bullet}}
14881 Bug 529: Uncovered table already at line-start
14904 Bug 529: Uncovered bullet in parser function result
14906 * Foo {{lc:{{bullet}} }}
14918 Bug 5678: Double-parsed template argument
14920 {{lc:{{{1}}}|hello}}
14927 Bug 5678: Double-parsed template invocation
14929 {{lc:{{paramtest {{!}} param = hello }} }}
14931 <p>{{paramtest | param = hello }}
14936 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
14939 title=[[Main Page]]
14941 {{PRVNÍVELKÉ:ěščř}}
14942 {{prvnívelké:ěščř}}
14962 Morwen/13: Unclosed link followed by heading
14969 <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>
14974 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
14981 <h1><span class="mw-headline" id="heading">heading</span></h1>
14986 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
14993 <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>
15008 Paragraphs inside divs (no extra line breaks)
15020 Paragraphs inside divs (extra line break on open)
15035 Paragraphs inside divs (extra line break on close)
15050 Paragraphs inside divs (extra line break on open and close)
15067 Nesting tags, paragraphs on lines which begin with <div>
15071 <div></div><strong>A
15080 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
15082 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
15084 <blockquote>Line one
15086 Line two</blockquote>
15088 <blockquote>Line one
15089 Line two</blockquote>
15094 Bug 6200: paragraphs inside blockquotes (extra line break on open)
15099 Line two</blockquote>
15104 Line two</blockquote>
15109 Bug 6200: paragraphs inside blockquotes (extra line break on close)
15111 <blockquote>Line one
15116 <blockquote>Line one
15124 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
15141 Paragraphs inside blockquotes/divs (no extra line breaks)
15143 <blockquote><div>Line one
15145 Line two</div></blockquote>
15147 <blockquote><div>Line one
15148 Line two</div></blockquote>
15153 Paragraphs inside blockquotes/divs (extra line break on open)
15158 Line two</div></blockquote>
15163 Line two</div></blockquote>
15168 Paragraphs inside blockquotes/divs (extra line break on close)
15170 <blockquote><div>Line one
15173 </div></blockquote>
15175 <blockquote><div>Line one
15178 </div></blockquote>
15183 Paragraphs inside blockquotes/divs (extra line break on open and close)
15189 </div></blockquote>
15195 </div></blockquote>
15200 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
15202 wgLinkHolderBatchSize=0
15208 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
15209 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
15210 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
15215 Free external link invading image caption
15217 [[Image:Foobar.jpg|thumb|http://x|hello]]
15219 <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>
15224 Bug 15196: localised external link numbers
15228 [http://en.wikipedia.org/]
15230 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
15235 Multibyte character in padleft
15237 {{padleft:-Hello|7|Æ}}
15244 Multibyte character in padright
15246 {{padright:Hello-|7|Æ}}
15253 formatdate parser function
15255 {{#formatdate:2009-03-24}}
15257 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
15262 formatdate parser function, with default format
15264 {{#formatdate:2009-03-24|mdy}}
15266 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
15271 Spacing of numbers in formatted dates
15273 {{#formatdate:January 15}}
15275 <p><span class="mw-formatted-date" title="01-15">January 15</span>
15280 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
15282 language=nl title=[[MediaWiki:Common.css]]
15284 {{#formatdate:2009-03-24|dmy}}
15286 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
15299 Edit comment with link
15303 I like the [[Main Page]] a lot
15305 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
15309 Edit comment with link and link text
15313 I like the [[Main Page|best pages]] a lot
15315 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
15319 Edit comment with link and link text with suffix
15323 I like the [[Main Page|best page]]s a lot
15325 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
15329 Edit comment with section link (non-local, eg in history list)
15331 comment title=[[Main Page]]
15333 /* External links */ removed bogus entries
15335 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
15339 Edit comment with section link and text before it (non-local, eg in history list)
15341 comment title=[[Main Page]]
15343 pre-comment text /* External links */ removed bogus entries
15345 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>
15349 Edit comment with section link (local, eg in diff view)
15351 comment local title=[[Main Page]]
15353 /* External links */ removed bogus entries
15355 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
15359 Edit comment with subpage link (bug 14080)
15363 title=[[Subpage test]]
15365 Poked at a [[/subpage]] here...
15367 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
15371 Edit comment with subpage link and link text (bug 14080)
15375 title=[[Subpage test]]
15377 Poked at a [[/subpage|neat little page]] here...
15379 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
15383 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
15386 title=[[Subpage test]]
15388 Poked at a [[/subpage]] here...
15390 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
15394 Edit comment with bare anchor link (local, as on diff)
15398 title=[[Main Page]]
15402 <a href="#section">#section</a>
15406 Edit comment with bare anchor link (non-local, as on history)
15409 title=[[Main Page]]
15413 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
15417 Anchor starting with underscore
15421 <p><a href="#_ref">One</a>
15426 Id starting with underscore
15428 <div id="_ref"></div>
15430 <div id="_ref"></div>
15435 Space normalisation on autocomment (bug 22784)
15438 title=[[Main Page]]
15440 /* __hello__world__ */
15442 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
15446 percent-encoding and + signs in comments (Bug 26410)
15450 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
15452 <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>
15456 Bad images - basic functionality
15465 Bad images - bug 16039: text after bad image disappears
15479 Verify that displaytitle works (bug #22501) no displaytitle
15483 wgAllowDisplayTitle=true
15484 wgRestrictDisplayTitle=false
15486 this is not the the title
15489 <p>this is not the the title
15494 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
15499 wgAllowDisplayTitle=true
15500 wgRestrictDisplayTitle=false
15502 this is not the the title
15503 {{DISPLAYTITLE:whatever}}
15506 <p>this is not the the title
15511 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
15516 wgAllowDisplayTitle=true
15517 wgRestrictDisplayTitle=true
15519 this is not the the title
15520 {{DISPLAYTITLE:whatever}}
15523 <p>this is not the the title
15528 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
15533 wgAllowDisplayTitle=true
15534 wgRestrictDisplayTitle=true
15536 this is not the the title
15537 {{DISPLAYTITLE:screen}}
15540 <p>this is not the the title
15545 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
15550 wgAllowDisplayTitle=false
15552 this is not the the title
15553 {{DISPLAYTITLE:screen}}
15556 <p>this is not the the title
15557 <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>
15562 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
15567 wgAllowDisplayTitle=false
15569 this is not the the title
15572 <p>this is not the the title
15577 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
15582 wgAllowDisplayTitle=true
15583 wgRestrictDisplayTitle=true
15585 this is not the the title
15586 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
15588 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
15589 <p>this is not the the title
15594 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
15599 wgAllowDisplayTitle=true
15600 wgRestrictDisplayTitle=true
15602 this is not the the title
15603 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
15605 <span style="color: red;">s</span>creen
15606 <p>this is not the the title
15611 preload: check <noinclude> and <includeonly>
15615 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
15621 preload: check <onlyinclude>
15625 Goodbye <onlyinclude>Hello world</onlyinclude>
15631 preload: can pass tags through if we want to
15635 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
15637 <includeonly>Hello world</includeonly>
15641 preload: check that it doesn't try to do tricks
15645 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
15647 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
15651 Play a bit with r67090 and bug 3158
15655 <div style="width:50% !important"> </div>
15656 <div style="width:50% !important"> </div>
15657 <div style="width:50% !important"> </div>
15658 <div style="border : solid;"> </div>
15660 <div style="width:50% !important"> </div>
15661 <div style="width:50% !important"> </div>
15662 <div style="width:50% !important"> </div>
15663 <div style="border : solid;"> </div>
15668 HTML5 data attributes
15670 <span data-foo="bar">Baz</span>
15671 <p data-abc-def_hij="">Quuz</p>
15673 <p><span data-foo="bar">Baz</span>
15675 <p data-abc-def_hij="">Quuz</p>
15680 percent-encoding and + signs in internal links (Bug 26410)
15682 [[User:+%]] [[Page+title%]]
15683 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
15684 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
15685 [[%33%45]] [[%33%45+]]
15687 <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>
15688 <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>
15689 <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>
15690 <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>
15695 Special characters in embedded file links (bug 27679)
15697 [[File:Contains & ampersand.jpg]]
15698 [[File:Does not exist.jpg|Title with & ampersand]]
15700 <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>
15701 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
15707 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
15709 Text's been normalized?
15711 <p>Text's been normalized?
15716 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
15718 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
15720 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
15725 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
15727 [http://www.example.org/ ideograms]
15729 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
15734 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
15736 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
15738 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
15762 Bug 31098 Template which includes system messages which includes the template
15766 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15767 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15772 Bug31490 Turkish: ucfirst 'blah'
15783 Bug31490 Turkish: ucfirst 'ix'
15794 Bug31490 Turkish: lcfirst 'BLAH'
15805 Bug31490 Turkish: ucfırst (with a dotless i)
15811 <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>
15816 Bug31490 ucfırst (with a dotless i) with English language
15822 <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>
15827 Bug 26375: TOC with italics
15829 title=[[Main Page]]
15832 == ''Lost'' episodes ==
15834 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15836 <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>
15840 <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>
15845 Bug 26375: TOC with bold
15847 title=[[Main Page]]
15850 == '''should be bold''' then normal text ==
15852 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15854 <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>
15858 <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>
15863 Bug 33845: Headings become cursive in TOC when they contain an image
15865 title=[[Main Page]]
15868 == Image [[Image:foobar.jpg]] ==
15870 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15872 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
15876 <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>
15881 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
15883 title=[[Main Page]]
15886 == <blockquote>Quote</blockquote> ==
15888 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15890 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
15894 <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>
15899 Unclosed tags in TOC
15901 title=[[Main Page]]
15905 <small>Hanc marginis exiguitas non caperet.</small>
15908 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15910 <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>
15914 <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>
15915 <p><small>Hanc marginis exiguitas non caperet.</small>
15921 Multiple tags in TOC
15924 == <i>Foo</i> <b>Bar</b> ==
15926 == <i>Foo</i> <blockquote>Bar</blockquote> ==
15928 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15930 <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>
15931 <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>
15935 <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>
15936 <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>
15941 Tags with parameters in TOC
15944 == <sup class="in-h2">Hello</sup> ==
15946 == <sup class="a > b">Evilbye</sup> ==
15948 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15950 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
15951 <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>
15955 <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>
15956 <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>
15961 span tags with directionality in TOC
15964 == <span dir="ltr">C++</span> ==
15966 == <span dir="rtl">זבנג!</span> ==
15968 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
15970 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
15972 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
15974 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15976 <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>
15977 <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>
15978 <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>
15979 <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>
15980 <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>
15984 <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>
15985 <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>
15986 <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>
15987 <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>
15988 <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>
15995 == {{int:headline_sample}} ==
15999 Bug 32057: Title needed when expanding <h> nodes.
16001 title=[[Main Page]]
16005 <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>
16010 Strip marker in urlencode
16012 {{urlencode:x<nowiki/>y}}
16013 {{urlencode:x<nowiki/>y|wiki}}
16014 {{urlencode:x<nowiki/>y|path}}
16041 Strip marker in formatNum
16043 {{formatnum:1<nowiki/>2}}
16044 {{formatnum:1<nowiki/>2|R}}
16052 Check noCommafy in formatNum
16056 {{formatnum:123456.78}}
16057 {{formatnum:123456.78|NOSEP}}
16065 Strip marker in grammar
16069 {{grammar:elative|foo<nowiki/>bar}}
16076 Strip marker in padleft
16078 {{padleft:|2|x<nowiki/>y}}
16085 Strip marker in padright
16087 {{padright:|2|x<nowiki/>y}}
16094 Strip marker in anchorencode
16096 {{anchorencode:x<nowiki/>y}}
16103 nowiki inside link inside heading (bug 18295)
16105 ==[[foo|x<nowiki>y</nowiki>z]]==
16107 <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>
16112 new support for bdi element (bug 31817)
16114 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
16116 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
16121 Ignore pipe between table row attributes
16125 |- id=foo | style='color: red'
16133 <tr id="foo" style="color: red">
16140 Gallery override link with WikiLink (bug 34852)
16143 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
16146 <ul class="gallery mw-gallery-traditional">
16147 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16148 <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>
16149 <div class="gallerytext">
16159 Gallery override link with absolute external link (bug 34852)
16162 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
16165 <ul class="gallery mw-gallery-traditional">
16166 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16167 <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>
16168 <div class="gallerytext">
16178 Gallery override link with malicious javascript (bug 34852)
16181 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
16184 <ul class="gallery mw-gallery-traditional">
16185 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16186 <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>
16187 <div class="gallerytext">
16197 Gallery with invalid title as link (bug 43964)
16200 File:foobar.jpg|link=<
16203 <ul class="gallery mw-gallery-traditional">
16204 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16205 <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>
16206 <div class="gallerytext">
16214 Language parser function
16223 Padleft and padright as substr
16225 {{padleft:|3|abcde}}
16226 {{padright:|3|abcde}}
16234 Special parser function
16236 {{#special:RandomPage}}
16237 {{#special:BaDtItLe}}
16238 {{#special:Foobar}}
16247 Bug 34939 - Case insensitive link parsing ([HttP://])
16249 [HttP://MediaWiki.Org/]
16251 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
16256 Bug 34939 - Case insensitive link parsing ([HttP:// title])
16258 [HttP://MediaWiki.Org/ MediaWiki]
16260 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
16265 Bug 34939 - Case insensitive link parsing (HttP://)
16267 HttP://MediaWiki.Org/
16269 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
16288 <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>
16289 <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=2" title="Edit section: Section 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16290 <h2><span class="mw-headline" id="Section_3">Section 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: Section 3">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16291 <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=4" title="Edit section: Section 4">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16292 <h2><span class="mw-headline" id="Section_5">Section 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: Section 5">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16298 ### Parsoids-specific tests
16299 ### Parsoid-PHP parser incompatibilities
16302 1. SOL-sensitive wikitext tokens as template-args
16304 parsoid=wt2html,wt2wt
16310 <span about="#mwt1" typeof="mw:Transclusion">
16311 </span><ul about="#mwt1"><li>a</li>
16313 <span about="#mwt2" typeof="mw:Transclusion">
16314 </span><ol about="#mwt2"><li>a</li>
16316 <span about="#mwt3" typeof="mw:Transclusion">
16317 </span><dl about="#mwt3"><dd>a</dd>
16321 #### ----------------------------------------------------------------
16322 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
16323 #### tags. Parsoid's output for these tags differs from that of the
16325 #### ----------------------------------------------------------------
16328 Ref: 1. ref-location should be replaced with an index span
16333 B <ref name="x">foo</ref>
16336 <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>
16337 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>
16338 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>
16342 Ref: 2. ref-tags with identical names should all get the same index
16346 A <ref name="x">foo</ref>
16349 <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>
16350 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>
16354 Ref: 3. spaces in ref-names should be ignored
16358 A <ref name="x">foo</ref>
16359 B <ref name=" x " />
16362 <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>
16363 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>
16364 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>
16368 Ref: 4. 'constructor' should be accepted as a valid ref-name
16369 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
16373 A <ref name="constructor">foo</ref>
16375 <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>
16379 Ref: 5. body should accept generic wikitext
16384 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
16389 <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>
16391 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'>
16392 <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>
16398 Ref: 6. indent-pres should not be output in ref-body
16410 <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>
16412 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
16413 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
16421 Ref: 7. No p-wrapping in ref-body
16440 <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>
16442 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16443 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
16458 Ref: 8. transclusion wikitext has lower precedence
16462 A <ref> foo {{echo|</ref> B C}}
16466 <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>
16468 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16469 <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>
16474 Ref: 9. unclosed comments should not leak out of ref-body
16478 A <ref> foo <!--</ref> B C
16482 <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>
16484 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16485 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li>
16490 Ref: 10. Unclosed HTML tags should not leak out of ref-body
16494 A <ref> <b> foo </ref> B C
16498 <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>
16500 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16501 <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>
16506 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
16513 <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
16514 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>
16518 Ref: 12. ref-tags act as trailing newline migration barrier
16522 <!--the newline at the end of this line moves out of the p-tag-->a
16524 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
16529 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
16532 <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>
16533 <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>
16540 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
16548 <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
16549 <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>
16553 Ref: 14. A nested ref-tag should be emitted as plain text
16557 <ref>foo <ref>bar</ref> baz</ref>
16561 <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>
16563 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
16564 <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>
16569 Ref: 15. ref-tags with identical names should get identical indexes
16573 A1 <ref name="a">foo</ref> A2 <ref name="a" />
16574 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
16578 <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>
16579 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>
16581 <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>
16586 References: 1. references tag without any refs should be handled properly
16592 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
16596 References: 2. references tag with group only outputs references from that group
16600 A <ref group="a">foo</ref>
16601 B <ref group="b">bar</ref>
16603 <references group='a' />
16605 <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>
16606 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>
16608 <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>
16613 References: 3. ref list should be cleared after processing references
16625 <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>
16627 <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>
16630 <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>
16632 <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>
16637 References: 4. only referenced group should be cleared after processing references
16641 A <ref group="a">afoo</ref>
16644 <references group="a"/>
16650 <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>
16651 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>
16653 <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>
16656 <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>
16658 <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>
16663 References: 5. ref tags in references should be processed while ignoring all other content
16668 B <ref name="b">bar</ref>
16671 <ref name="a">foo</ref>
16672 This should just get lost.
16675 <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>
16676 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>
16678 <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>
16683 References: 6. <references /> from a transclusion
16687 {{echo|<references />}}
16689 <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>
16693 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
16697 A <ref>foo bar for a</ref>
16703 <ref name="b">foo</ref>
16706 <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>
16707 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>
16709 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
16710 <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>
16711 <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>
16714 <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":{}}'>
16715 <li about="#cite_note-b-1" id="cite_note-b-1"><span rel="mw:referencedBy">↑</span> foo</li>
16719 #### ----------------------------------------------------------------
16720 #### The following section of tests are primarily to test
16721 #### wikitext escaping capabilities of Parsoid. Given that
16722 #### escaping can be done any number of ways, the wikitext (input)
16723 #### is always adjusted to reflect how Parsoid adds nowiki
16726 #### We are marking several tests as parsoid-only since the
16727 #### HTML in the result section is different from what the
16728 #### PHP parser generates for it.
16729 #### ----------------------------------------------------------------
16732 #### --------------- Headings ---------------
16734 #### 1. Nested inside html <h1>=foo=</h1>
16735 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
16736 #### 3. Nested inside html with wikitext split by html tags
16737 #### 4. No escape needed
16738 #### 5. Empty headings <h1></h1>
16739 #### 6. Heading chars in SOL context
16740 #### ----------------------------------------
16742 Headings: 0. Unnested
16746 <nowiki>=foo=</nowiki>
16748 <nowiki> =foo= </nowiki>
16750 <nowiki>=foo=</nowiki>
16752 =foo''a''<nowiki>=</nowiki>
16754 <p><span typeof="mw:Nowiki">=foo=</span></p>
16756 <p><span typeof="mw:Nowiki"> =foo= </span>
16758 <span typeof="mw:Nowiki">=foo=</span></p>
16760 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
16764 Headings: 1. Nested inside html
16768 =<nowiki>=foo=</nowiki>=
16770 ==<nowiki>=foo=</nowiki>==
16772 ===<nowiki>=foo=</nowiki>===
16774 ====<nowiki>=foo=</nowiki>====
16776 =====<nowiki>=foo=</nowiki>=====
16778 ======<nowiki>=foo=</nowiki>======
16780 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
16781 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
16782 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
16783 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
16784 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
16785 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
16789 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
16794 <nowiki>*</nowiki>bar
16800 <nowiki>=bar=</nowiki>
16808 Headings: 3. Nested inside html with wikitext split by html tags
16812 =='''bold'''<nowiki>foo=</nowiki>=
16814 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
16818 Headings: 4a. No escaping needed (testing just h1 and h2)
16836 =<nowiki>=</nowiki>=
16844 <h1><i>=</i>foo=</h1>
16845 <h1><span typeof="mw:Nowiki">=</span></h1>
16849 Headings: 4b. No escaping needed (inside p-tags)
16864 Headings: 5. Empty headings
16876 =====<nowiki/>=====
16878 ======<nowiki/>======
16889 Headings: 6a. Heading chars in SOL context (with trailing spaces)
16893 <nowiki>=a=</nowiki>
16895 <nowiki>=a=</nowiki>
16897 <nowiki>=a=</nowiki>
16899 <nowiki>=a=</nowiki>
16908 Headings: 6b. Heading chars in SOL context (with trailing newlines)
16936 Headings: 6c. Heading chars in SOL context (leading newline break)
16941 <nowiki>=b=</nowiki>
16948 Headings: 6d. Heading chars in SOL context (with interspersed comments)
16952 <!--c0--><nowiki>=a=</nowiki>
16954 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
16956 <p><!--c0-->=a=</p>
16957 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
16961 Headings: 6d. Heading chars in SOL context (No escaping needed)
16970 #### --------------- Lists ---------------
16971 #### 0. Outside nests (*foo, etc.)
16972 #### 1. Nested inside html <ul><li>*foo</li></ul>
16973 #### 2. Inside definition lists
16974 #### 3. Only bullets at start should be escaped
16975 #### 4. No escapes needed
16976 #### 5. No unnecessary escapes
16977 #### 6. Escape bullets in SOL position
16978 #### 7. Escape bullets in a multi-line context
16979 #### ----------------------------------------
16982 Lists: 0. Outside nests
16984 <nowiki>*</nowiki>foo
16986 <nowiki>#</nowiki>foo
16994 Lists: 1. Nested inside html
16996 *<nowiki>*foo</nowiki>
16998 *<nowiki>#foo</nowiki>
17000 *<nowiki>:foo</nowiki>
17002 *<nowiki>;foo</nowiki>
17004 #<nowiki>*foo</nowiki>
17006 #<nowiki>#foo</nowiki>
17008 #<nowiki>:foo</nowiki>
17010 #<nowiki>;foo</nowiki>
17048 Lists: 2. Inside definition lists
17050 ;<nowiki>;foo</nowiki>
17052 ;<nowiki>:foo</nowiki>
17054 ;<nowiki>:foo</nowiki>
17057 :<nowiki>:foo</nowiki>
17081 Lists: 3. Only bullets at start of text should be escaped
17083 *<nowiki>*foo*bar</nowiki>
17085 *<nowiki>*foo</nowiki>''it''*bar
17092 <li>*foo<i>it</i>*bar
17099 Lists: 4. No escapes needed
17118 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
17124 Lists: 5. No unnecessary escapes
17126 * bar <span><nowiki>[[foo]]</nowiki></span>
17128 *=bar <span><nowiki>[[foo]]</nowiki></span>
17130 *[[bar <span><nowiki>[[foo]]</nowiki></span>
17132 *]]bar <span><nowiki>[[foo]]</nowiki></span>
17134 *=bar <span>foo]]</span>=
17139 <li> bar <span>[[foo]]</span>
17143 <li>=bar <span>[[foo]]</span>
17147 <li>[[bar <span>[[foo]]</span>
17151 <li>]]bar <span>[[foo]]</span>
17155 <li>=bar <span>foo]]</span>=
17166 Lists: 6. Escape bullets in SOL position
17170 <!--cmt--><nowiki>*foo</nowiki>
17172 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
17176 Lists: 7. Escape bullets in a multi-line context
17179 <nowiki>*</nowiki>b
17186 #### --------------- HRs ---------------
17187 #### 1. Single line
17188 #### -----------------------------------
17191 HRs: 1. Single line
17195 ----<nowiki>----</nowiki>
17199 <hr><span typeof="mw:Nowiki">----</span>
17204 #### --------------- Tables ---------------
17205 #### 1a. Simple example
17206 #### 1b. No escaping needed (!foo)
17207 #### 1c. No escaping needed (|foo)
17208 #### 1d. No escaping needed (|}foo)
17210 #### 2a. Nested in td (<td>foo|bar</td>)
17211 #### 2b. Nested in td (<td>foo||bar</td>)
17212 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
17214 #### 3a. Nested in th (<th>foo!bar</th>)
17215 #### 3b. Nested in th (<th>foo!!bar</th>)
17216 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
17220 #### 4c. No escaping needed
17221 #### --------------------------------------
17224 Tables: 1a. Simple example
17235 Tables: 1b. No escaping needed
17244 Tables: 1c. No escaping needed
17253 Tables: 1d. No escaping needed
17262 Tables: 2a. Nested in td
17267 |<nowiki>foo|bar</nowiki>
17271 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
17275 Tables: 2b. Nested in td
17280 |<nowiki>foo||bar</nowiki>
17281 |''it''<nowiki>foo||bar</nowiki>
17285 <td><span typeof="mw:Nowiki">foo||bar</span></td>
17286 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
17290 Tables: 2c. Nested in td -- no escaping needed
17298 <table><tbody><tr><td>foo!!bar
17299 </td></tr></tbody></table>
17304 Tables: 3a. Nested in th
17312 <table><tbody><tr><th>foo!bar
17313 </th></tr></tbody></table>
17318 Tables: 3b. Nested in th
17323 !<nowiki>foo!!bar</nowiki>
17327 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
17332 Tables: 3c. Nested in th -- no escaping needed
17337 !<nowiki>foo||bar</nowiki>
17341 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
17345 Tables: 4a. Escape -
17352 |<nowiki>-bar</nowiki>
17356 <tr><th>-bar</th></tr>
17358 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
17362 Tables: 4b. Escape +
17369 |<nowiki>+bar</nowiki>
17373 <tr><th>+bar</th></tr>
17375 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
17379 Tables: 4c. No escaping needed
17397 <tr><td>foo-bar</td><td>foo+bar</td></tr>
17398 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
17406 ### SSS FIXME: Disabled right now because accurate html2wt
17407 ### on this snippet requires data-parsoid flags that we've
17408 ### stripped out of these tests. We should scheme how we
17409 ### we want to handle these kind of tests that require
17410 ### data-parsoid flags for accurate html2wt serialization
17413 Tables: 4d. No escaping needed
17431 #### --------------- Links ----------------
17432 #### 1. Quote marks in link text
17433 #### 2. Wikilinks: Escapes needed
17434 #### 3. Wikilinks: No escapes needed
17435 #### 4. Extlinks: Escapes needed
17436 #### 5. Extlinks: No escapes needed
17437 #### --------------------------------------
17439 Links 1. Quote marks in link text
17443 [[Foo|Foo<nowiki>''boo''</nowiki>]]
17445 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
17449 Links 2. WikiLinks: Escapes needed
17453 [[Foo|<nowiki>[Foobar]</nowiki>]]
17454 [[Foo|<nowiki>Foobar]</nowiki>]]
17455 [[Foo|x [Foobar] x]]
17456 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
17457 [[Foo|<nowiki>[[Bar]]</nowiki>]]
17458 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
17459 [[Foo|<nowiki>|Bar</nowiki>]]
17460 [[Foo|<nowiki>]]bar</nowiki>]]
17461 [[Foo|<nowiki>[[bar</nowiki>]]
17462 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
17464 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
17465 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
17466 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
17467 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
17468 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
17469 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
17470 <a href="Foo" rel="mw:WikiLink">|Bar</a>
17471 <a href="Foo" rel="mw:WikiLink">]]bar</a>
17472 <a href="Foo" rel="mw:WikiLink">[[bar</a>
17473 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
17477 Links 3. WikiLinks: No escapes needed
17484 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
17485 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
17489 Links 4. ExtLinks: Escapes needed
17493 [http://google.com <nowiki>[google]</nowiki>]
17494 [http://google.com <nowiki>google]</nowiki>]
17496 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
17497 <a href="http://google.com" rel="mw:ExtLink">google]</a>
17501 Links 5. ExtLinks: No escapes needed
17505 [http://google.com [google]
17507 <a href="http://google.com" rel="mw:ExtLink">[google</a>
17510 #### --------------- Quotes ---------------
17511 #### 1. Quotes inside <b> and <i>
17512 #### 2. Link fragments separated by <i> and <b> tags
17513 #### 3. Link fragments inside <i> and <b>
17514 #### 4. No escaping needed
17515 #### --------------------------------------
17517 1. Quotes inside <b> and <i>
17519 parsoid=html2wt,wt2wt
17521 ''<nowiki>'foo'</nowiki>''
17522 ''<nowiki>''foo''</nowiki>''
17523 ''<nowiki>'''foo'''</nowiki>''
17525 '''<nowiki>'foo'</nowiki>'''
17526 '''<nowiki>''foo''</nowiki>'''
17527 '''<nowiki>'''foo'''</nowiki>'''
17528 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
17529 '''foo'''<nowiki/>'s
17532 '<nowiki/>''foo''<nowiki/>'
17534 '''foo'''<nowiki/>'
17535 '<nowiki/>'''foo'''<nowiki/>'
17544 <b>foo'<i>bar'</i>baz</b>
17555 2. Link fragments separated by <i> and <b> tags
17557 [[''foo''<nowiki>hello]]</nowiki>
17559 [['''foo'''<nowiki>hello]]</nowiki>
17561 <p>[[<i>foo</i>hello]]
17562 </p><p>[[<b>foo</b>hello]]
17567 3. Link fragments inside <i> and <b>
17568 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
17569 this is one of the shortcomings of this format)
17571 ''[[foo''<nowiki>]]</nowiki>
17573 '''[[foo'''<nowiki>]]</nowiki>
17576 </p><p><b>[[foo</b>]]
17581 4. No escaping needed
17583 '<span>''bar''</span>'
17584 '<span>'''bar'''</span>'
17586 <p>'<span><i>bar</i></span>'
17587 '<span><b>bar</b></span>'
17591 #### ----------- Paragraphs ---------------
17592 #### 1. No unnecessary escapes
17593 #### --------------------------------------
17596 1. No unnecessary escapes
17598 bar <span><nowiki>[[foo]]</nowiki></span>
17600 =bar <span><nowiki>[[foo]]</nowiki></span>
17602 [[bar <span><nowiki>[[foo]]</nowiki></span>
17604 ]]bar <span><nowiki>[[foo]]</nowiki></span>
17606 =bar <span>foo]]</span><nowiki>=</nowiki>
17608 <p>bar <span>[[foo]]</span>
17609 </p><p>=bar <span>[[foo]]</span>
17610 </p><p>[[bar <span>[[foo]]</span>
17611 </p><p>]]bar <span>[[foo]]</span>
17612 </p><p>=bar <span>foo]]</span>=
17616 #### ----------------------- PRE --------------------------
17617 #### 1. Leading whitespace in SOL context should be escaped
17618 #### ------------------------------------------------------
17620 1. Leading whitespace in SOL context should be escaped
17624 <nowiki> </nowiki>a
17626 <nowiki> </nowiki> a
17628 <nowiki> </nowiki>a(tab)
17630 <nowiki> </nowiki> a
17632 <nowiki> </nowiki> a
17635 <nowiki> </nowiki>b
17638 <nowiki> </nowiki>b
17641 <nowiki> </nowiki> b
17647 <p><!--cmt--> a</p>
17656 #### --------------- Behavior Switches --------------------
17658 1. Valid behavior switches should be escaped
17662 <nowiki>__TOC__</nowiki>
17668 2. Invalid behavior switches should not be escaped
17679 #### --------------- HTML tags ---------------
17682 #### 3. multi-line html tag
17683 #### -----------------------------------------
17689 <a href="http://google.com">google</a>
17691 <a href="http://google.com">google</a>
17697 <nowiki><div>foo</div>
17698 <div style="color:red">foo</div></nowiki>
17700 <p><div>foo</div>
17701 <div style="color:red">foo</div>
17706 3. multi-line html tag
17721 <nowiki><ref>foo</ref></nowiki>
17723 <p><ref>foo</ref>
17727 #### --------------- Others ---------------
17731 <nowiki>foo</nowiki>
17733 <p><nowiki>foo</nowiki>
17737 ## The quote-char in the input is necessary for triggering the bug
17739 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
17741 parsoid=wt2wt,html2wt
17750 Tag-like HTML structures are passed through as text
17772 </p><p>1<d e>f
17777 # This was a bug in the PHP parser (see bug 17663 and its dups,
17778 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
17780 Tag names followed by punctuation should not be recognized as tags
17784 <p><s.ome> text
17789 HTML tag with necessary entities in attributes
17791 <span title="&amp;">foo</span>
17793 <p><span title="&amp;">foo</span>
17798 HTML tag with 'unnecessary' entity encoding in attributes
17800 <span title="&">foo</span>
17802 <p><span title="&">foo</span>
17807 HTML tag with broken attribute value quoting
17809 <span title="Hello world>Foo</span>
17811 <p><span>Foo</span>
17816 Parsoid-only: HTML tag with broken attribute value quoting
17820 <span title="Hello world>Foo</span>
17822 <p><span title="Hello world">Foo</span>
17827 Table with broken attribute value quoting
17830 | title="Hello world|Foo
17841 Table with broken attribute value quoting on consecutive lines
17844 | title="Hello world|Foo
17845 | style="color:red|Bar
17858 Parsoid-only: Table with broken attribute value quoting on consecutive lines
17863 | title="Hello world|Foo
17864 | style="color:red|Bar
17869 <td title="Hello world">Foo
17870 </td><td style="color: red">Bar
17871 </td></tr></tbody></table>
17876 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
17886 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
17896 Accept empty td cell attribute
17899 | align="center" | foo || |
17904 <td align="center"> foo </td>
17911 Non-empty attributes in th-cells
17914 ! Foo !! style="color: red" | Bar
17920 <th style="color: red"> Bar
17926 Accept empty attributes in th-cells
17941 Empty table rows go away
17962 ### Parsoid-centric tests for testing RTing of inter-element separators
17963 ### Edge cases not tested by existing parser tests and specific to
17964 ### Parsoid-specific serialization strategies.
17968 RT-ed inter-element separators should be valid separators
17981 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
17982 (Parsoid-only since PHP parser relies on Tidy for correct output)
17998 Empty TD followed by TD with tpl-generated attribute
18003 |{{echo|style='color:red'}}|foo
18017 Indented table with an empty td
18036 Empty TR followed by a template-generated TR
18037 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
18043 {{echo|<tr><td>foo</td></tr>}}
18049 <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}}]}'>
18054 ## PHP and parsoid output differ for this, and since this is primarily
18055 ## for testing Parsoid's serializer, marking this Parsoid only
18057 Empty TR followed by mixed-ws-comment line should RT correctly
18073 <!--c--> </tr><!--d-->
18079 Multi-line image caption generated by templates with/without trailing newlines
18083 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
18084 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
18086 <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>
18087 <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>
18091 ## PHP emits broken html for this, and since this is primarily
18092 ## a Parsoid serializer test, marking this Parsoid only
18094 Improperly nested inline or quotes tags with whitespace in between
18098 <span> <s>x</span> </s>
18101 <p><span> <s>x</s></span><s> </s>
18102 <b> <i>x</i></b><i> </i>
18107 Encapsulate protected attributes from wt
18111 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
18113 <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>
18117 ## Currently the p-wrapper is fragile in how adds / removes transformations.
18118 ## Having nested or stray pre tags results in the attempt to add duplicates,
18119 ## causing an assertion fail. This test tries to prevent that situation.
18121 Ensure ParagraphWrapper can deal with stray closing pre tags
18131 Ensure fostered text content is wrapped in spans
18135 <table>hi</table><table>ho</table>
18144 Encapsulation properly handles null DSR information from foster box
18146 parsoid=wt2html,wt2wt
18148 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
18150 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
18153 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
18157 <td>bar</td></tr></tbody></table>
18161 1. Encapsulate foster-parented transclusion content
18163 parsoid=wt2wt,wt2html
18165 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
18167 <span typeof="mw:Transclusion" data-mw="{"parts":["
18168 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
18170 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
18174 <td>bar</td></tr></tbody></table>
18178 2. Encapsulate foster-parented transclusion content
18180 parsoid=wt2wt,wt2html
18182 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
18184 <div typeof="mw:Transclusion" data-mw="{"parts":["
18186 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
18188 <td>bar</td></tr></table>"]}">foo</div>
18192 <td>bar</td></tr></tbody></table>
18196 3. Encapsulate foster-parented transclusion content
18198 parsoid=wt2wt,wt2html
18200 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
18202 <div typeof="mw:Transclusion" data-mw="{"parts":["
18205 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
18207 <td>"}},"i":0}},"bar</td></tr></table>"]}">
18212 <td>bar</td></tr></tbody></table>
18216 4. Encapsulate foster-parented transclusion content
18218 parsoid=wt2wt,wt2html
18220 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
18222 <div typeof="mw:Transclusion" data-mw="{"parts":["
18225 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
18227 <td>"}},"i":0}},"bar</td></tr></table>"]}">
18232 <td>bar</td></tr></tbody></table>
18236 5. Encapsulate foster-parented transclusion content
18238 parsoid=wt2wt,wt2html
18240 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
18242 <span typeof="mw:Transclusion" data-mw="{"parts":["
18247 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
18253 <p>foo</p></div></td></tr></tbody></table>
18257 6. Encapsulate foster-parented transclusion content
18259 parsoid=wt2wt,wt2html
18261 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
18263 <span typeof="mw:Transclusion" data-mw="{"parts":["
18268 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
18274 <p>foo</p></div></td></tr></tbody></table>
18279 7. Encapsulate foster-parented transclusion content
18281 parsoid=wt2wt,wt2html
18283 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
18285 <p typeof="mw:Transclusion" data-mw="{"parts":["
18286 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
18287 <p>foo</p>"}},"i":0}},"
18288 <td>bar</td></table>"]}">foo</p>
18292 <td>bar</td></tr></tbody></table>
18296 8. Encapsulate foster-parented transclusion content
18298 parsoid=wt2wt,wt2html
18301 }}{|{{echo|style='color:red'}}
18306 <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>
18310 <td>b</td></tr></tbody></table>
18313 # -----------------------------------------------------------------
18314 # The following section of tests are primarily to spec requirements
18315 # around serialization of new/edited content.
18317 # All these tests are marked Parsoid html2wt and html2html only
18318 # ----------------------------------------------------------------
18321 Image: Modifying size of an image
18325 [[Image:Wiki.png|230x230px]]
18327 <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>
18331 Image: New block level image should have \n before and after
18336 [[File:Wiki.png|right|thumb|150x150px]]
18339 <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>
18342 # Wacky -- the leading newline in input is required because
18343 # that is what the serializer emits. To be fixed. Not fixing
18344 # the test because this test is required to test serialization of
18345 # new content and preferred whitespace style.
18347 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
18355 <li><p>foo</p></li>
18359 # Wacky -- the leading newline in input is required because
18360 # that is what the serializer emits. To be fixed. Not fixing
18361 # the test because this test is required to test serialization of
18362 # new content and preferred whitespace style.
18364 Lists: Add space after bullets
18371 * <span> baz</span>
18376 <li><span> baz</span></li>
18381 Parsoid: Serialize positional parameters with = in them as named parameter
18387 {{echo|1 = f=oo|2 = bar}}
18389 <!--Orig params with data-parsoid has heuristics for handling = chars-->
18390 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
18391 {{echo|<nowiki>f=oo</nowiki>|bar}}
18393 <p about="#mwt1" typeof="mw:Transclusion"
18394 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
18396 <p about="#mwt1" typeof="mw:Transclusion"
18397 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
18399 <!--Orig params with data-parsoid has heuristics for handling = chars-->
18400 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
18401 <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>
18405 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
18421 <div>a<p>b</p></div>
18429 #-----------------------------
18430 # I/B quote minimization tests
18431 #-----------------------------
18434 1. I/B quote minimization: wikitext-only tags should be combined
18454 <p><i>A</i><i>B</i></p>
18455 <p><b>A</b><b>B</b></p>
18456 <p><i>A</i><b><i>B</i></b></p>
18457 <p><b>A</b><i><b>B</b></i></p>
18458 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
18459 <p><i><b>A</b></i><i><b>B</b></i></p>
18460 <p><i><b>A</b></i><b><i>B</i></b></p>
18461 <p><b><i>A</i></b><i><b>B</b></i></p>
18465 2. I/B quote minimization: wikitext and html tags should not be combined
18471 ''A'''''<i>B</i>'''
18473 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
18474 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
18478 3. I/B quote minimization: templated content stops minimization
18482 ''A''{{echo|''B''}}
18484 ''A''{{echo|'''''B'''''}}
18486 <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>
18487 <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>
18491 4. I/B quote minimization: new content should be mimimized with adjacent old content
18501 <p><i>A</i><i data-parsoid='{}'>B</i></p>
18502 <p><b data-parsoid='{}'>A</b><b>B</b></p>
18503 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
18506 # -----------------------------------------------------------------
18507 # End of section for Parsoid-only html2wt tests for serialization
18509 # -----------------------------------------------------------------
18516 Try for 100% code coverage