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>
1424 indented cell (no pre-wrapping!)
1434 <p> indented cell (no pre-wrapping!)
1442 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1459 Bug 15491: <ins>/<del> in blockquote
1462 Foo <del>bar</del> <ins>baz</ins> quux
1466 <p>Foo <del>bar</del> <ins>baz</ins> quux
1472 # Note that the p-wrapping is newline sensitive, which could be
1473 # considered a bug: tidy will wrap only the 'Foo' in the example
1474 # below in a <p> tag. (see comment 23-25 of bug #6200)
1476 Bug 15491: <ins>/<del> in blockquote (2)
1478 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1481 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1487 <pre> with attributes (bug 3202)
1489 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1491 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1496 <pre> with width attribute (bug 3202)
1498 <pre width="8">Narrow screen goodies</pre>
1500 <pre width="8">Narrow screen goodies</pre>
1505 <pre> with forbidden attribute (bug 3202)
1507 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1509 <pre width="8">Narrow screen goodies</pre>
1514 Entities inside <pre>
1523 <pre> with forbidden attribute values (bug 3202)
1525 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1527 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1532 <nowiki> inside <pre> (bug 13238)
1540 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1548 <pre><nowiki>Foo</nowiki></pre>
1553 <nowiki> and <pre> preference (first one wins)
1584 </pre> inside nowiki
1586 <nowiki></pre></nowiki>
1593 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1601 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1611 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1623 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1644 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1648 {{echo| foo}}{{echo| bar}}
1653 {{echo|<!--cmt--> foo}}
1655 <!--cmt-->{{echo| foo}}
1657 {{echo|{{echo| }}bar}}
1675 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1711 # TODO / maybe: fix wt2wt for this
1713 Parsoid: Don't paragraph-wrap fosterable content
1739 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
1767 #--------------------------------------------------------------------
1768 # Transclusion parameter whitespace stripping tests
1769 # Behavior is different for positional and named parameters
1770 #--------------------------------------------------------------------
1772 Templates: Strip leading and trailing whitespace from named-param values
1776 {{echo|1= {{echo|b}} }}
1797 Templates: Don't strip whitespace from positional-param values
1801 {{echo|{{echo|b}} }}
1844 Templates: Handle empty comment-and-ws-only lines correctly
1847 <!--should be ignored-->
1848 <!--should be ignored as well-->
1856 #--------------------------------------------------------------------
1857 # Transclusion parameter escaping tests
1858 #--------------------------------------------------------------------
1860 Templates: Parsoid parameter escaping test 1
1864 {{echo|[foo]|{{echo|[bar]}}}}
1866 <p about="#mwt1" typeof="mw:Transclusion"
1867 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
1871 Parsoid: Pipes in external links in template parameter
1875 {{echo|[{{echo|http://example.com}} link]}}
1877 <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>
1881 Parsoid: pipe in transclusion parameter
1885 {{echo|http://foo.com/a|b}}
1887 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1888 typeof="mw:Transclusion"
1889 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>
1893 Parsoid: Pipe in external link target and content in template parameter
1895 parsoid=html2wt,wt2wt
1897 {{echo|[http://foo.com/a|b a|b]}}
1899 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1900 typeof="mw:Transclusion"
1901 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
1902 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
1906 Templates: Don't escape already nowiki-escaped text in template parameters
1908 parsoid=html2wt,wt2wt
1910 {{echo|foo<nowiki>|</nowiki>bar}}
1911 {{echo|<nowiki><div></nowiki>}}
1912 {{echo|<nowiki></nowiki>}}
1914 <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>
1915 <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>
1916 <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>
1922 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
1924 parsoid=html2wt,wt2wt
1926 {{echo|{{echo|1=bar}}}}
1928 <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>
1932 ### Parsoid-centric tests for testing RT edge cases for pre
1936 1a. Indent-Pre and Comments
1949 1b. Indent-Pre and Comments
1962 1c. Indent-Pre and Comments
1975 1d. Indent-Pre and Comments
1976 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
1989 2a. Indent-Pre and tables
2010 2b. Indent-Pre and tables
2026 2c. Indent-Pre and tables (bug 42252)
2043 3a. Indent-Pre and block tags (single-line html)
2047 <blockquote> foo </blockquote>
2052 <blockquote> foo </blockquote>
2053 <pre><span> foo </span>
2058 3b. Indent-Pre and block tags (pre-content on separate line)
2122 4. Multiple spaces at start-of-line
2141 5. White-space in indent-pre
2142 NOTE: the white-space char on 2nd line is significant
2155 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2178 7a. Indent-pre and category links
2180 parsoid=wt2html,wt2wt
2182 [[Category:foo]] <!-- No pre-wrapping -->
2183 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2185 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2186 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2187 <link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2191 7b. Indent-pre and category links
2193 parsoid=wt2html,wt2wt
2196 [[Category:foo]] {{echo|b}}
2199 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
2201 <link rel="mw:PageProp/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>
2205 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2209 HTML-pre: 1. embedded newlines
2245 HTML-pre: 2: indented text
2258 HTML-pre: 3: other wikitext
2279 ### Definition lists
2287 <dt> name </dt>
2295 Definition list for indentation only
2307 Definition list with no space
2320 Definition list with URL link
2322 ; http://example.com/ : definition
2325 <dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2333 Definition list with bracketed URL link
2335 ;[http://www.example.com/ Example]:Something about it
2338 <dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2339 <dd>Something about it
2346 Definition list with wikilink containing colon
2348 ; [[Help:FAQ]]: The least-read page on Wikipedia
2351 <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>
2352 <dd> The least-read page on Wikipedia
2358 # At Brion's and JeLuF's insistence... :)
2360 Definition list with news link containing colon
2362 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2365 <dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2366 <dd> This isn't even a real newsgroup!
2373 Malformed definition list with colon
2375 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2378 <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
2385 Definition lists: colon in external link text
2387 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2390 <dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2391 <dd> OK, I made that up
2398 Definition lists: colon in HTML attribute
2400 ;<b style="display: inline">bold</b>
2403 <dt><b style="display: inline">bold</b>
2410 Definition lists: self-closed tag
2412 ;one<br/>two : two-line fun
2415 <dt>one<br />two </dt>
2423 Bug 11748: Literal closing tags
2427 <dd>test test test test test</dd>
2429 <dd>test test test test test</dd>
2434 <dd>test test test test test</dd>
2436 <dd>test test test test test</dd>
2442 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2445 ; term : description
2451 <dt> term </dt>
2465 Definition list with empty definition and following paragraph
2480 Nested definition lists using html syntax
2497 Definition Lists: No nesting: Multiple dd's
2515 Definition Lists: Indentation: Regular
2537 Definition Lists: Indentation: Missing 1st level
2557 Definition Lists: Indentation: Multi-level indent
2575 Definition Lists: Hacky use to indent tables
2582 should be left alone
2584 <dl><dd><dl><dd><table>
2589 </td></tr></table></dd></dl></dd></dl>
2591 should be left alone
2597 Definition Lists: Hacky use to indent tables (WS-insensitive)
2606 <dd> <table><tr><td>a</td></tr></table> </dd>
2609 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2610 ## as an empty dt item. It also ignores all but the last ";" when followed
2611 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2612 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2615 ## Ex: ";;t2 ::d2" is transformed into:
2627 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2628 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2639 ## All Parsoid only definition list tests have this difference.
2641 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2642 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2645 Table / list interaction: indented table with lists in table contents
2671 </td></tr></table></dd></dl>
2676 Table / list interaction: lists nested in tables nested in indented lists
2707 </td></tr></table></dd></dl>
2718 Definition Lists: Nesting: Multi-level (Parsoid only)
2748 Definition Lists: Nesting: Test 2 (Parsoid only)
2768 Definition Lists: Nesting: Test 3 (Parsoid only)
2796 Definition Lists: Nesting: Test 4
2817 ## The Parsoid team believes the following three test exposes a
2818 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2819 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2821 Definition Lists: Mixed Lists: Test 1 (php)
2848 Definition Lists: Mixed Lists: Test 1 (parsoid)
2872 Definition Lists: Mixed Lists: Test 2
2891 Definition Lists: Mixed Lists: Test 3
2916 Definition Lists: Mixed Lists: Test 4
2937 Definition Lists: Mixed Lists: Test 5
2958 Definition Lists: Mixed Lists: Test 6
2985 Definition Lists: Mixed Lists: Test 7
3004 Definition Lists: Mixed Lists: Test 8
3028 Definition Lists: Mixed Lists: Test 9
3045 Definition Lists: Mixed Lists: Test 10
3063 # The Parsoid team disagrees with the PHP parser's seemingly-random
3064 # rules regarding dd/dt on the next two tests. Parsoid is more
3065 # consistent, and recognizes the shared nesting and keeps the
3066 # still-open tags around until the nesting is complete.
3069 Definition Lists: Mixed Lists: Test 11 (php)
3110 Definition Lists: Mixed Lists: Test 11 (parsoid)
3132 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3133 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3137 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3138 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3148 Definition Lists: Weird Ones: Test 1 (php)
3152 *#;*::;; foo : bar (who uses this?)
3163 <dt> bar (who uses this?)
3183 Definition Lists: Weird Ones: Test 1 (parsoid)
3187 *#;*::;; foo : bar (who uses this?)
3204 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3205 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3220 External links: non-bracketed
3222 Non-bracketed: http://example.com
3224 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3229 External links: numbered
3231 Numbered: [http://example.com]
3232 Numbered: [http://example.net]
3233 Numbered: [http://example.com]
3235 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3236 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3237 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3242 External links: specified text
3244 Specified text: [http://example.com link]
3246 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3251 External links: trail
3253 Linktrails should not work for external links: [http://example.com link]s
3255 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3260 External links: dollar sign in URL
3262 http://example.com/1$2345
3264 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3269 External links: dollar sign in URL (named)
3271 [http://example.com/1$2345]
3273 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3278 External links: open square bracket forbidden in URL (bug 4377)
3280 http://example.com/1[2345
3282 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3287 External links: open square bracket forbidden in URL (named) (bug 4377)
3289 [http://example.com/1[2345]
3291 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3296 External links: nowiki in URL link text (bug 6230)
3298 [http://example.com/ <nowiki>''example site''</nowiki>]
3300 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3305 External links: newline forbidden in text (bug 6230 regression check)
3307 [http://example.com/ first
3310 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3316 External links: Pipe char between url and text
3318 [http://example.com | link]
3320 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3325 External links: protocol-relative URL in brackets
3327 [//example.com/ Test]
3329 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3334 External links: protocol-relative URL in brackets without text
3338 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3343 External links: protocol-relative URL in free text is left alone
3347 <p>//example.com/Foo
3352 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3354 foo//example.com/Foo
3356 <p>foo//example.com/Foo
3363 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3365 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3370 External image from https
3372 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3374 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3379 External image (when not allowed)
3381 wgAllowExternalImages=0
3383 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3385 <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>
3390 Link to non-http image, no img tag
3392 Link to non-http image, no img tag: ftp://example.com/test.jpg
3394 <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>
3399 External links: terminating separator
3401 Terminating separator: http://example.com/thing,
3403 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3408 External links: intervening separator
3410 Intervening separator: http://example.com/1,2,3
3412 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3417 External links: old bug with URL in query
3419 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3421 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3426 External links: old URL-in-URL bug, mixed protocols
3428 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3430 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3435 External links: URL in text
3437 URL in text: [http://example.com http://example.com]
3439 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3444 External links: Clickable images
3446 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3448 <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>
3453 External links: raw ampersand
3455 Old & use: http://x&y
3457 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3462 External links: encoded ampersand
3464 Old & use: http://x&y
3466 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3471 External links: encoded equals (bug 6102)
3473 http://example.com/?foo=bar
3475 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3480 External links: [raw ampersand]
3482 Old & use: [http://x&y]
3484 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3489 External links: [encoded ampersand]
3491 Old & use: [http://x&y]
3493 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3498 External links: [encoded equals] (bug 6102)
3500 [http://example.com/?foo=bar]
3502 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3507 External links: [IDN ignored character reference in hostname; strip it right off]
3509 [http://e‌xample.com/]
3511 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3515 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3516 # Where an external link could easily circumvent the sanitization of the text of
3517 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3518 # test demands a higher standard. That's a bit strange.
3522 # http://example.com -> [http://example.com|http://example.com]
3523 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3525 # The first example is sanitized, but the second is not. Any security benefits
3526 # from this production are trivial to circumvent. Either remove this test and
3527 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3528 # the test accordingly.
3533 External links: IDN ignored character reference in hostname; strip it right off
3535 http://e‌xample.com/
3537 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3542 External links: www.jpeg.org (bug 554)
3546 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3551 External links: URL within URL (original bug 2)
3553 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3555 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3560 BUG 361: URL inside bracketed URL
3562 [http://www.example.com/foo http://www.example.com/bar]
3564 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3569 BUG 361: URL within URL, not bracketed
3571 http://www.example.com/foo?=http://www.example.com/bar
3573 <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>
3578 BUG 289: ">"-token in URL-tail
3580 http://www.example.com/<hello>
3582 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3587 BUG 289: literal ">"-token in URL-tail
3589 http://www.example.com/<b>html</b>
3591 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3596 BUG 289: ">"-token in bracketed URL
3598 [http://www.example.com/<hello> stuff]
3600 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3605 BUG 289: literal ">"-token in bracketed URL
3607 [http://www.example.com/<b>html</b> stuff]
3609 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3614 BUG 289: literal double quote at end of URL
3616 http://www.example.com/"hello"
3618 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3623 BUG 289: literal double quote in bracketed URL
3625 [http://www.example.com/"hello" stuff]
3627 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3632 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3634 [http://www.example.com test]
3636 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3641 External links: link text with spaces
3643 [http://www.example.com a b c]
3644 [http://www.example.com ''a'' ''b'']
3646 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3647 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3652 External links: wiki links within external link (Bug 3695)
3656 [http://example.com [[wikilink]] embedded in ext link]
3658 <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>
3663 Parsoid: External links: wiki links within external link (Bug 3695)
3667 [http://example.com [[wikilink]] embedded in ext link]
3669 <p><a rel="mw:ExtLink" href="http://example.com"></a><a rel="mw:WikiLink" href="./Wikilink">wikilink</a><span> embedded in ext link</span></p>
3673 BUG 787: Links with one slash after the url protocol are invalid
3677 [http:/example.com title]
3679 <p>http:/example.com
3680 </p><p>[http:/example.com title]
3685 Bracketed external links with template-generated invalid target
3687 [{{echo|http:/example.com}} title]
3689 <p>[http:/example.com title]
3694 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3696 ''[http://example.com text'']
3697 [http://example.com '''text]'''
3698 ''Something [http://example.com in italic'']
3699 ''Something [http://example.com mixed''''', even bold]'''
3700 '''''Now [http://example.com both''''']
3702 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3703 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3704 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3705 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3706 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3712 Bug 4781: %26 in URL
3714 http://www.example.com/?title=AT%26T
3716 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3720 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3721 # % is actually legal in HTML5. Any change in output would need testing though.
3723 Bug 4781, 5267: %25 in URL
3725 http://www.example.com/?title=100%25_Bran
3727 <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>
3732 Bug 4781, 5267: %28, %29 in URL
3734 http://www.example.com/?title=Ben-Hur_%281959_film%29
3736 <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>
3742 Bug 4781: %26 in autonumber URL
3744 [http://www.example.com/?title=AT%26T]
3746 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3751 Bug 4781, 5267: %26 in autonumber URL
3753 [http://www.example.com/?title=100%25_Bran]
3755 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3760 Bug 4781, 5267: %28, %29 in autonumber URL
3762 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3764 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3770 Bug 4781: %26 in bracketed URL
3772 [http://www.example.com/?title=AT%26T link]
3774 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3779 Bug 4781, 5267: %26 in bracketed URL
3781 [http://www.example.com/?title=100%25_Bran link]
3783 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3788 Bug 4781, 5267: %28, %29 in bracketed URL
3790 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3792 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3797 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3799 Some [http://example.com/ pretty ''italics'' and stuff]!
3801 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3806 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3808 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3810 <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>
3815 External link containing double-single-quotes with no space separating the url from text in italics
3819 [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]].]
3821 <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>
3826 Parsoid:External link containing double-single-quotes with no space separating the url from text in italics
3830 [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]].]
3832 <p><a rel="mw:ExtLink" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de </a><a rel="mw:WikiLink" href="./Museo_Picasso_(París)">Museo Picasso</a><span>.</span></p>
3836 External link with comments in link text
3838 [http://www.google.com Google <!-- comment -->]
3840 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3845 URL-encoding in URL functions (single parameter)
3847 {{localurl:Some page|amp=&}}
3849 <p>/index.php?title=Some_page&amp=&
3854 URL-encoding in URL functions (multiple parameters)
3856 {{localurl:Some page|q=?&=&}}
3858 <p>/index.php?title=Some_page&q=?&amp=&
3865 http://example.com/index.php?foozoid%5B%5D=bar
3867 http://example.com/index.php?foozoid[]=bar
3869 <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>
3870 </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>
3875 IPv6 urls (bug 21261)
3879 http://[2404:130:0:1000::187:2]/index.php
3881 <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>
3886 Non-extlinks in brackets
3895 [{{echo|foo}} ''bar'']
3896 [{{echo|foo}}l's] errand
3897 [{{echo|foo}}l's errand]
3899 [url=http://example.com]
3912 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3917 Parsoid: Percent encoding in external links
3921 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3923 <p><a rel="mw:ExtLink"
3924 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3928 Parsoid: use url link syntax for links where the content is equal the link
3935 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3945 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3947 Normal text. '''''Bold italic text.''''' Normal text.
3949 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3950 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3956 Unclosed and unmatched quotes (php)
3960 '''''Bold italic text '''with bold deactivated''' in between.'''''
3962 '''''Bold italic text ''with italic deactivated'' in between.'''''
3966 ..spanning two paragraphs (should not work).'''
3968 '''Bold tag left open
3970 ''Italic tag left open
3974 <!-- Unmatching number of opening, closing tags: -->
3975 '''This year''''s election ''should'' beat '''last year''''s.
3977 ''Tom'''s car is bigger than ''Susan'''s.
3979 Plain ''italic'''s plain
3981 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3982 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3983 </p><p><b>Bold text..</b>
3984 </p><p>..spanning two paragraphs (should not work).
3985 </p><p><b>Bold tag left open</b>
3986 </p><p><i>Italic tag left open</i>
3988 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3989 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3990 </p><p>Plain <i>italic'</i>s plain
3993 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3994 # parser strips. The wikitext contains just the first half of the bold
3997 Unclosed and unmatched quotes (parsoid)
4001 '''''Bold italic text '''with bold deactivated''' in between.'''''
4003 '''''Bold italic text ''with italic deactivated'' in between.'''''
4007 ..spanning two paragraphs (should not work).'''
4009 '''Bold tag left open
4011 ''Italic tag left open
4015 <!-- Unmatching number of opening, closing tags: -->
4016 '''This year''''s election ''should'' beat '''last year''''s.
4018 ''Tom'''s car is bigger than ''Susan'''s.
4020 Plain ''italic'''s plain
4022 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4023 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4024 </p><p><b>Bold text..</b>
4025 </p><p>..spanning two paragraphs (should not work).<b></b>
4026 </p><p><b>Bold tag left open</b>
4027 </p><p><i>Italic tag left open</i>
4029 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4030 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4031 </p><p>Plain <i>italic'</i>s plain
4038 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4041 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4042 # is the bare minimum required by the spec, see:
4043 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4045 A table with no data. (php)
4052 # Parsoid team replies: empty table tags are legal in HTML5
4054 A table with no data. (parsoid)
4063 # A table with nothing but a caption is invalid XHTML, we might want to render
4064 # this as <p>caption</p>
4066 A table with nothing but a caption (php)
4076 </caption><tr><td></td></tr></table>
4079 # Parsoid team replies: table with only a caption is legal in HTML5
4081 A table with nothing but a caption (parsoid)
4089 <table><caption> caption</caption></table>
4093 A table with caption with default-spaced attributes and a table row
4096 |+ style="color: red;" | caption1
4102 <caption style="color: red;"> caption1
4111 A table with captions with non-default spaced attributes and a table row
4114 |+style="color: red;"|caption2
4115 |+ style="color: red;"| caption3
4121 <caption style="color: red;">caption2
4123 <caption style="color: red;"> caption3
4132 Table td-cell syntax variations
4136 | foo bar foo || baz
4137 | style='color:red;' | baz
4138 | style='color:red;' || baz
4145 <td> foo bar foo </td>
4148 <td style="color:red;"> baz
4150 <td> style='color:red;' </td>
4178 Simple table but with multiple dashes for row wikitext
4196 Multiplication table
4198 {| border="1" cellpadding="2"
4199 |+Multiplication table
4201 ! × !! 1 !! 2 !! 3
4219 <table border="1" cellpadding="2">
4220 <caption>Multiplication table
4267 Accept "||" in table headings
4282 Accept "||" in indented table headings
4292 </th></tr></table></dd></dl>
4297 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4314 Accept "| !" at start of line in tables (ignore !-attribute)
4318 | !style="color:red" | bar
4330 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 +/-
4334 |style='color:red;'|+1
4335 |style='color:blue;'|-1
4347 <td style="color:red;">+1
4349 <td style="color:blue;">-1
4373 |rowspan=2| Cell 2, row 1 (and 2)
4384 <td rowspan="2"> Cell 2, row 1 (and 2)
4402 {| bgcolor=#ABCDEF border=2
4407 |the original table again
4415 <table bgcolor="#ABCDEF" border="2">
4423 <td>the original table again
4429 Invalid attributes in table cell (bug 1830)
4444 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4447 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4451 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4452 <td>]" onmouseover="alert(document.cookie)">test
4461 Indented table markup mixed with indented pre content (proposed in bug 6200)
4466 Text that should be rendered preformatted
4474 <pre>Text that should be rendered preformatted
4483 Template-generated table cell attributes and cell content
4492 <td style="color: red"> Foo
4494 <td style="color: red"> Foo
4500 Template-generated table cell attributes and cell content (2)
4503 |align=center {{table_attribs}}
4508 <td align="center" style="color: red"> Foo
4514 Template-generated table cell attributes and cell content (3)
4517 |align=center {{table_cells}}
4522 <td align="center" style="color: red"> Foo </td>
4530 Table with row followed by newlines and table heading
4548 Table with empty line following the start tag
4565 # FIXME: Preserve the attribute properly (with an empty string as value) in
4566 # the PHP parser. Parsoid implements the behavior below.
4568 Table attributes with empty value
4580 </td></tr></tbody></table>
4585 Wikitext table with a lot of comments
4608 Wikitext table with double-line table cell
4625 Table cell with a single comment
4641 # The expected HTML structure in this test is debatable. The PHP parser does
4642 # not parse this kind of table at all. The main focus for Parsoid is on
4643 # round-tripping, so this output is ok for now. TODO: revisit!
4645 Wikitext table with html-syntax row (Parsoid)
4657 <td>foo</td></tr></tbody></table>
4661 Implicit <td> after a |-
4662 (PHP parser relies on Tidy to add the missing <td> tags)
4664 parsoid=wt2html,wt2wt
4677 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4678 (PHP parser relies on Tidy to add the missing <td> tags)
4680 parsoid=wt2html,wt2wt
4692 <tr><td><pre>a</pre></td></tr>
4693 <tr><td> b</td></tr>
4699 Lists should be recognized in an implicit <td> context
4700 (PHP parser relies on Tidy to add the missing <td> tags)
4702 parsoid=wt2html,wt2wt
4719 Parsoid: Round-trip tables directly followed by content (bug 51219)
4721 parsoid=wt2html,wt2wt
4733 <td>foo</td></tr></tbody></table> bar
4737 <td>baz</td></tr></tbody></table><b>quux</b>
4741 Parsoid: Default to a newline after tables in new content (bug 51219)
4748 <nowiki> </nowiki>bar
4755 <tr><td>foo</td></tr></tbody></table> bar
4757 <tr><td>baz</td></tr></tbody></table><b>quux</b>
4764 Plain link, capitalized
4768 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4773 Plain link, uncapitalized
4777 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4784 [[Main Page|The Main Page]]
4786 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4791 Piped link with comment in link text
4793 [[Main Page|The Main<!--front--> Page]]
4795 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4804 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4809 Broken link with fragment
4811 [[Zigzagzogzagzig#zug]]
4813 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4818 Special page link with fragment
4820 [[Special:Version#anchor]]
4822 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4827 Nonexistent special page link with fragment
4829 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4831 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4838 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4840 <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>
4847 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4849 <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>!!!
4860 Bug 43661: Piped links with identical prefixes
4862 [[prefixed article|prefixed articles with spaces]]
4864 [[prefixed article|prefixed articlesaoeu]]
4866 [[Main Page|Main Page test]]
4868 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4869 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4870 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4876 Link with HTML entity in suffix / tail
4878 [[Main Page]]", [[Main Page]]a
4880 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4885 Link with 3 brackets
4894 Piped link with 3 brackets
4896 [[[main page|the main page]]]
4898 <p>[[[main page|the main page]]]
4903 Link with multiple pipes
4905 [[Main Page|The|Main|Page]]
4907 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4914 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4916 <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>
4921 MemoryAlpha:AlphaTest
4923 This is an article in the MemoryAlpha namespace
4924 (which shadows the memoryalpha interwiki link).
4928 Namespace takes precedence over interwiki link (bug 51680)
4930 [[MemoryAlpha:AlphaTest]]
4932 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
4936 # The previous test doesn't work correctly in html2*, due to not recognizing the
4937 # link as an internal one. This one checks for the correct behavior.
4939 Link to namespace preferred over interwiki with correct rel attribute
4941 parsoid=html2wt,html2html
4943 [[MemoryAlpha:AlphaTest]]
4945 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
4950 Piped link to namespace
4952 [[Meta:Disclaimers|The disclaimers]]
4954 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4961 [[Usually caused by a typo (oops}]]
4963 <p>[[Usually caused by a typo (oops}]]
4968 Link containing % (not as a hex sequence)
4972 <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>
4977 Link containing % as a single hex sequence interpreted to char
4981 <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>
4986 Link containing % as a double hex sequence interpreted to hex sequence
4990 <p>[[7%2525 Solution]]
4995 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4996 Example for such a section: == < ==
4998 [[%23%3c]][[%23%3e]]
5000 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
5005 Link containing "<#" and ">#" as a hex sequences
5007 [[%3c%23]][[%3e%23]]
5009 <p>[[%3c%23]][[%3e%23]]
5014 Link containing an equals sign
5016 [[Special:BookSources/isbn=4-00-026157-6]]
5018 <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>
5025 Just a test of an article title containing a tilde.
5028 # note that links containing signatures, like [[Foo~~~~]], are
5029 # massaged by the pre-save transform (PST) and so the tildes are never
5030 # seen by the parser.
5032 Link containing a tilde
5036 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
5041 Link containing double-single-quotes '' (bug 4598)
5043 [[Lista d''e paise d''o munno]]
5045 <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>
5050 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5052 Some [[Link|pretty ''italics'' and stuff]]!
5054 <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>!
5059 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5061 ''Some [[Link|pretty ''italics'' and stuff]]!
5063 <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>
5068 Link with double quotes in title part (literal) and alternate part (interpreted)
5070 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5074 [[''Pentecoste''|Pentecoste]]
5076 [[''Pentecoste''|''Pentecoste'']]
5078 <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>
5079 </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>
5080 </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>
5081 </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>
5086 Broken image links with HTML captions (bug 39700)
5088 [[File:Nonexistent|<script></script>]]
5089 [[File:Nonexistent|100px|<script></script>]]
5090 [[File:Nonexistent|<]]
5091 [[File:Nonexistent|a<i>b</i>c]]
5093 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5094 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5095 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5096 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5103 [[http://www.example.com]]
5105 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5110 Plain link to URL with link text
5112 [[http://www.example.com Link text]]
5114 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5119 Plain link to protocol-relative URL
5121 [[//www.example.com]]
5123 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5128 Plain link to protocol-relative URL with link text
5130 [[//www.example.com Link text]]
5132 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5137 Plain link to page with question mark in title
5143 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5144 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5149 # I'm fairly sure the expected result here is wrong.
5150 # We want these to be URL links, not pseudo-pages with URLs for titles....
5151 # However the current output is also pretty screwy.
5154 # I'm changing it to match the current output--it arguably makes more
5155 # sense in the light of the test above. Old expected result was:
5156 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5158 # But I think this test is bordering on "garbage in, garbage out" anyway.
5163 Piped link to URL: [[http://www.example.com|an example URL]]
5165 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5170 BUG 2: [[page|http://url/]] should link to page, not http://url/
5172 [[Main Page|http://url/]]
5174 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5179 BUG 337: Escaped self-links should be bold
5183 [[Bug462]] [[Bug462]]
5185 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5190 Self-link to section should not be bold
5194 [[Main Page#section]]
5196 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5207 Self-link to numeric title
5213 <p><strong class="selflink">0</strong>
5218 Link to numeric-equivalent title
5224 <p><a href="/wiki/00" title="00">00</a>
5229 <nowiki> inside a link
5231 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5233 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5238 Non-breaking spaces in title
5240 [[ Main Page ]]
5242 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5247 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5253 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5258 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5264 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5269 Internal link with en linktrail: no apostrophes (bug 27473)
5275 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5280 Internal link with ca linktrail with apostrophes (bug 27473)
5286 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5291 Internal link with kaa linktrail with apostrophes (bug 27473)
5297 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5308 Internal link with is link prefix
5312 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5314 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5325 Internal link with is link trail and link prefix
5329 [[mótmælendatrú|xxx]]ar
5331 mótmælenda[[söfnuður]]
5332 mótmælenda[[söfnuður|söfnuðir]]
5333 mótmælenda[[söfnuður|söfnuðir]]xxx
5335 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
5336 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
5337 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
5338 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
5339 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
5344 Parsoid link trail escaping
5346 parsoid=html2wt,html2html
5350 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
5354 Parsoid link prefix escaping
5357 parsoid=html2wt,html2html
5359 Aðrir mótmælenda<nowiki/>[[söfnuður]]
5361 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5365 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5373 [http://wp.org ''foo'']
5375 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5376 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5377 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5378 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5383 Parsoid: Scoped parsing should handle mixed transclusions and plain text
5387 [[Foo|{{echo|a}} b {{echo|c}}]]
5389 <p data-parsoid='{"dsr":[0,20,0,0]}'><a rel="mw:WikiLink" href="Foo"><span about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a"}},"i":0}}]}'>a</span> b <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"c"}},"i":0}}]}'>c</span></a></p>
5393 ### Interwiki links (see maintenance/interwiki.sql)
5397 Inline interwiki link
5399 [[MeatBall:SoftSecurity]]
5401 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5406 Inline interwiki link with empty title (bug 2372)
5410 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5415 Interwiki link encoding conversion (bug 1636)
5417 *[[Wikipedia:ro:Olteniţa]]
5418 *[[Wikipedia:ro:Olteniţa]]
5421 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5423 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5430 Interwiki link with fragment (bug 2130)
5432 [[MeatBall:SoftSecurity#foo]]
5434 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5438 # Ideally the wikipedia: prefix here should be proto-relative too
5440 Different interwiki prefixes mapping to the same URL
5448 <p data-parsoid='{"dsr":[0,17,0,0]}'><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"simple","a":{"href":"http://en.wikipedia.org/wiki/Foo"},"sa":{"href":"wikipedia:Foo"},"isIW":true,"dsr":[0,17,null,1]}'>wikipedia:Foo</a></p>
5451 <p data-parsoid='{"dsr":[19,30,0,0]}'><a rel="mw:ExtLink" href="//en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"simple","a":{"href":"//en.wikipedia.org/wiki/Foo"},"sa":{"href":":en:Foo"},"isIW":true,"dsr":[19,30,null,1]}'>en:Foo</a></p>
5456 ### Interlanguage links
5457 ### Language links (so that searching for '### language' matches..)
5471 Double interlanguage link
5482 Interlanguage link, with prefix links
5494 Double interlanguage link, with prefix links (bug 8897)
5507 Parsoid-specific test: Wikilinks with should RT properly
5513 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5518 Parsoid bug 53221: Wikilinks should be properly entity-escaped
5522 He&nbsp;llo [[Foo|He&nbsp;llo]]
5524 He&nbsp;llo [[He&nbsp;llo]]
5526 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5527 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5531 Parsoid: handle constructor well
5539 <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>
5542 <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>
5546 Parsoid: recognize interlanguage links without a target page
5553 <link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
5557 Parsoid: recognize interwiki links without a target page
5563 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
5567 ### Redirects, Parsoid-only
5570 Simple redirect to page
5574 #REDIRECT [[Main Page]]
5576 <link rel="mw:PageProp/redirect" href="./Main_Page">
5580 Optional colon in #REDIRECT
5582 # the colon is archaic syntax. we support it for wt2html, but we
5583 # don't care that it roundtrips back to the modern syntax.
5584 parsoid=wt2html,html2html
5586 #REDIRECT:[[Main Page]]
5588 <link rel="mw:PageProp/redirect" href="./Main_Page">
5592 Whitespace in #REDIRECT with optional colon
5594 # the colon and gratuitous whitespace is archaic syntax. we support
5595 # it for wt2html, but we don't care that it roundtrips back to the
5596 # modern syntax (without extra whitespace)
5597 parsoid=wt2html,html2html
5604 <link rel="mw:PageProp/redirect" href="./Main_Page">
5608 Piped link in #REDIRECT
5610 # content after piped link is ignored. we support this syntax,
5611 # but don't care that the piped link is lost when we roundtrip this.
5614 #REDIRECT [[Main Page|bar]]
5616 <link rel="mw:PageProp/redirect" href="./Main_Page">
5620 Redirect to category
5624 #REDIRECT [[Category:Foo]]
5626 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5630 Redirect to category with URL encoding
5634 #REDIRECT [[Category%3AFoo]]
5636 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5640 Redirect to category page
5642 parsoid=wt2html,html2html
5644 #REDIRECT [[:Category:Foo]]
5646 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5650 Redirect to image page (1)
5654 #REDIRECT [[File:Wiki.png]]
5656 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5660 Redirect to image page (2)
5664 #REDIRECT [[Image:Wiki.png]]
5666 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5670 Redirect to language
5674 #REDIRECT [[en:File:Wiki.png]]
5676 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5680 Redirect to interwiki
5684 #REDIRECT [[meatball:File:Wiki.png]]
5686 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5690 Non-English #REDIRECT
5695 #TILVÍSUN [[Main Page]]
5697 <link rel="mw:PageProp/redirect" href="./Main_Page">
5714 Broken br tag sanitization
5724 # TODO: Fix html2html mode (bug 51055)!
5726 Parsoid: Broken br tag recognition
5736 Incorrecly removing closing slashes from correctly formed XHTML
5738 <br style="clear:both;" />
5740 <p><br style="clear:both;" />
5745 Failing to transform badly formed HTML into correct XHTML
5747 <br style="clear: left;">
5748 <br style="clear: right;">
5749 <br style="clear: both;">
5751 <p><br style="clear: left;" />
5752 <br style="clear: right;" />
5753 <br style="clear: both;" />
5758 Handling html with a div self-closing tag
5767 <p><div title />
5771 <p><div title=bar />
5772 <div title=bar/>
5774 <div title="bar/"></div>
5780 Handling html with a br self-closing tag
5789 <p><br title="title" />
5790 <br title="title" />
5799 Horizontal ruler (should it add that extra space?)
5813 Horizontal ruler -- 4+ dashes render hr
5822 Horizontal ruler -- eats additional dashes on the same line
5831 Horizontal ruler -- does not collapse dashes on consecutive lines
5842 Horizontal ruler -- <4 dashes render as plain text
5851 Horizontal ruler -- Supports content following dashes on same line
5860 ### Block-level elements
5908 ***#Number on level 4
5910 **#Number on level 3
5911 **#Number on level 3
5915 #** Level 3, but ordered
5938 <li>Number on level 4
5946 <li>Number on level 3
5948 <li>Number on level 3
5971 <li> Level 3, but ordered
6017 Nested lists 3 (first element empty)
6034 Nested lists 4 (first element empty)
6052 Nested lists 5 (both elements empty)
6070 Nested lists 6 (both elements empty)
6087 Nested lists 7 (skip initial nesting levels)
6105 Nested lists 8 (multiple nesting transitions)
6131 1. Lists with start-of-line-transparent tokens before bullets: Comments
6149 2. Lists with start-of-line-transparent tokens before bullets: Template close
6164 List items are not parsed correctly following a <pre> block (bug 785)
6182 List items from template
6193 * notSOL{{inner list}}
6224 List interrupted by empty line or heading
6243 <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>
6245 <li> Another list item
6252 Multiple list tags generated by templates
6267 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6270 <!--This line will NOT split the list-->
6272 <!--This line will NOT split the list either-->
6274 <!--foo--> <!----> <!--This line NOT split the list either-->
6291 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6294 <!--This line will NOT split the list-->
6296 <!--This line will NOT split the list either-->
6298 <!--foo--> <!----> <!--This line NOT split the list
6317 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6319 parsoid=wt2html,wt2wt
6323 * {{echo|<li>templated li-hack}}
6324 * <!--foo--> <li> unsupported li-hack with preceding comments
6327 <li><li>not a li-hack
6334 <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>
6335 <li> <!--foo--> </li>
6336 <li> li-hack with preceding comments</li>
6347 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6374 Parsoid: Test of whitespace serialization with Templated bullets
6381 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6385 # ------------------------------------------------------------------------
6386 # The next set of tests are about Parsoid's ability to handle badly nested
6387 # tags (parse, minimize scope of fixup, and roundtrip back)
6388 # ------------------------------------------------------------------------
6391 Unbalanced closing block tags break a list
6392 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6412 Unbalanced closing non-block tags don't break a list
6413 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6432 Unclosed formatting tags that straddle lists are closed and reopened
6433 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6449 List embedded in a non-block tag
6450 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
6458 <p><small></small></p>
6464 <p><small></small></p>
6468 Table with missing opening <tr> tag
6470 parsoid=wt2html,wt2wt
6488 # Note that the current date is hard-coded as
6489 # 1970-01-01T00:02:03Z (a Thursday)
6490 # when running parser tests. The timezone is also fixed to GMT, so
6491 # local date will be identical to current date.
6494 Magic Word: {{CURRENTDAY}}
6503 Magic Word: {{CURRENTDAY2}}
6512 Magic Word: {{CURRENTDAYNAME}}
6521 Magic Word: {{CURRENTDOW}}
6530 Magic Word: {{CURRENTMONTH}}
6539 Magic Word: {{CURRENTMONTH1}}
6548 Magic Word: {{CURRENTMONTHABBREV}}
6550 {{CURRENTMONTHABBREV}}
6557 Magic Word: {{CURRENTMONTHNAME}}
6559 {{CURRENTMONTHNAME}}
6566 Magic Word: {{CURRENTMONTHNAMEGEN}}
6568 {{CURRENTMONTHNAMEGEN}}
6575 Magic Word: {{CURRENTTIME}}
6584 Magic Word: {{CURRENTHOUR}}
6593 Magic Word: {{CURRENTWEEK}} (@bug 4594)
6602 Magic Word: {{CURRENTYEAR}}
6611 Magic Word: {{CURRENTTIMESTAMP}}
6613 {{CURRENTTIMESTAMP}}
6620 Magic Words LOCAL (UTC)
6624 * {{LOCALMONTHNAME}}
6625 * {{LOCALMONTHNAMEGEN}}
6626 * {{LOCALMONTHABBREV}}
6635 * {{LOCALTIMESTAMP}}
6671 Magic Word: {{FULLPAGENAME}}
6673 title=[[User:Ævar Arnfjörð Bjarmason]]
6677 <p>User:Ævar Arnfjörð Bjarmason
6682 Magic Word: {{FULLPAGENAMEE}}
6684 title=[[User:Ævar Arnfjörð Bjarmason]]
6688 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6693 Magic Word: {{TALKSPACE}}
6695 title=[[User:Ævar Arnfjörð Bjarmason]]
6704 Magic Word: {{TALKSPACE}}, same namespace
6706 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6715 Magic Word: {{TALKSPACE}}, main namespace
6717 title=[[Parser Test]]
6726 Magic Word: {{TALKSPACEE}}
6728 title=[[User:Ævar Arnfjörð Bjarmason]]
6737 Magic Word: {{SUBJECTSPACE}}
6739 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6748 Magic Word: {{SUBJECTSPACE}}, same namespace
6750 title=[[User:Ævar Arnfjörð Bjarmason]]
6759 Magic Word: {{SUBJECTSPACE}}, main namespace
6761 title=[[Parser Test]]
6769 Magic Word: {{SUBJECTSPACEE}}
6771 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6780 Magic Word: {{NAMESPACE}}
6782 title=[[User:Ævar Arnfjörð Bjarmason]]
6791 Magic Word: {{NAMESPACEE}}
6793 title=[[User:Ævar Arnfjörð Bjarmason]]
6802 Magic Word: {{NAMESPACENUMBER}}
6804 title=[[User:Ævar Arnfjörð Bjarmason]]
6813 Magic Word: {{SUBPAGENAME}}
6815 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6824 Magic Word: {{SUBPAGENAMEE}}
6826 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6835 Magic Word: {{ROOTPAGENAME}}
6837 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6841 <p>Ævar Arnfjörð Bjarmason
6846 Magic Word: {{ROOTPAGENAMEE}}
6848 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6852 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6857 Magic Word: {{BASEPAGENAME}}
6859 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6863 <p>Ævar Arnfjörð Bjarmason
6868 Magic Word: {{BASEPAGENAMEE}}
6870 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6874 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6879 Magic Word: {{TALKPAGENAME}}
6881 title=[[User:Ævar Arnfjörð Bjarmason]]
6885 <p>User talk:Ævar Arnfjörð Bjarmason
6890 Magic Word: {{TALKPAGENAMEE}}
6892 title=[[User:Ævar Arnfjörð Bjarmason]]
6896 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6901 Magic Word: {{SUBJECTPAGENAME}}
6903 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6907 <p>User:Ævar Arnfjörð Bjarmason
6912 Magic Word: {{SUBJECTPAGENAMEE}}
6914 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6916 {{SUBJECTPAGENAMEE}}
6918 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6923 Magic Word: {{NUMBEROFFILES}}
6932 Magic Word: {{PAGENAME}}
6934 title=[[User:Ævar Arnfjörð Bjarmason]]
6938 <p>Ævar Arnfjörð Bjarmason
6943 Magic Word: {{PAGENAME}} with metacharacters
6945 title=[['foo & bar = baz']]
6949 <p><i>'foo & bar = baz'</i>
6954 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6956 title=[[*RFC 1234 http://example.com/]]
6960 <p>*RFC 1234 http://example.com/
6965 Magic Word: {{PAGENAMEE}}
6967 title=[[User:Ævar Arnfjörð Bjarmason]]
6971 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6976 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6978 title=[[*RFC 1234 http://example.com/]]
6982 <p>*RFC_1234_http://example.com/
6987 Magic Word: {{REVISIONID}}
6996 Magic Word: {{SCRIPTPATH}}
7005 Magic Word: {{STYLEPATH}}
7014 Magic Word: {{SERVER}}
7018 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7023 Magic Word: {{SERVERNAME}}
7032 Magic Word: {{SITENAME}}
7041 Case-sensitive magic words, when cased differently, should just be template transclusions
7048 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
7049 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
7050 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
7051 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
7056 Case-insensitive magic words should still work with weird casing.
7066 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7071 Namespace 1 {{ns:1}}
7080 Namespace 1 {{ns:01}}
7089 Namespace 0 {{ns:0}} (bug 4783)
7097 Namespace 0 {{ns:00}} (bug 4783)
7105 Namespace -1 {{ns:-1}}
7114 Namespace User {{ns:User}}
7123 Namespace User talk {{ns:User_talk}}
7132 Namespace User talk {{ns:uSeR tAlK}}
7141 Namespace File {{ns:File}}
7150 Namespace File {{ns:Image}}
7159 Namespace (lang=de) Benutzer {{ns:User}}
7170 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7176 <p>Benutzer Diskussion
7184 {{urlencode:hi world?!}}
7185 {{urlencode:hi world?!|WIKI}}
7186 {{urlencode:hi world?!|PATH}}
7187 {{urlencode:hi world?!|QUERY}}
7200 Magic links: internal link to RFC (bug 479)
7204 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7209 Magic links: RFC (bug 479)
7213 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7218 Magic links: ISBN (bug 1937)
7222 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7227 Magic links: PMID incorrectly converts space to underscore
7231 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7240 Nonexistent template
7242 {{thistemplatedoesnotexist}}
7244 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7249 Template with invalid target containing tags
7251 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7253 <p>{{a<b>b</b>|foo|a=b|a = b}}
7258 Template with invalid target containing unclosed tag
7260 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7262 <p>{{a<b>|foo|a=b|a = b}}</b>
7269 This is a test template
7277 <p>This is a test template
7282 Template with explicit namespace
7286 <p>This is a test template
7294 This is a test template with parameter {{{param}}}
7300 {{paramtest|param=foo}}
7302 <p>This is a test template with parameter foo
7307 Template:paramtestnum
7313 Template unnamed parameter
7315 {{paramtestnum|Main Page|the main page}}
7317 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7322 Template:templatesimple
7328 Template:templateredirect
7330 #redirect [[Template:templatesimple]]
7334 Template:templateasargtestnum
7340 Template:templateasargtest
7342 {{template{{{templ}}}}}
7346 Template:templateasargtest2
7352 Template with template name as unnamed argument
7354 {{templateasargtestnum|templatesimple}}
7361 Template with template name as argument
7363 {{templateasargtest|templ=simple}}
7370 Template with template name as argument (2)
7372 {{templateasargtest2|templ=templatesimple}}
7379 Template:templateasargtestdefault
7381 {{{{{templ|templatesimple}}}}}
7391 Template with default value
7393 {{templateasargtestdefault}}
7400 Template with default value (value set)
7402 {{templateasargtestdefault|templ=templa}}
7411 {{templateredirect}}
7418 Template with argument in separate line
7420 {{ templateasargtest |
7428 Template with complex template as argument
7431 param ={{ templateasargtest |
7434 <p>This is a test template with parameter (test)
7439 Template with thumb image (with link in description)
7442 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
7444 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>
7449 Template:complextemplate
7451 {{{1}}} {{paramtest|
7452 param ={{{param}}}}}
7456 Template with complex arguments
7459 param ={{ templateasargtest |
7460 templ = simple }}|[[Template:complextemplate|link]]}}
7462 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
7467 BUG 553: link with two variables in a piped link
7470 |[[{{{1}}}|{{{2}}}]]
7475 <td>[[{{{1}}}|{{{2}}}]]
7481 Magic variable as template parameter
7483 {{paramtest|param={{SITENAME}}}}
7485 <p>This is a test template with parameter MediaWiki
7492 [[{{{param}}}|link]]
7496 Template parameter as link source
7498 {{linktest|param=Main Page}}
7500 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
7505 Template-generated attribute string (k='v')
7507 <span {{attr_str|id|v1}}>bar</span>
7509 <p><span id="v1">bar</span>
7516 including another template, {{paramtest|param={{{arg}}}}}
7520 Template passing argument to another template
7522 {{paramtest2|arg='hmm'}}
7524 <p>including another template, This is a test template with parameter 'hmm'
7535 Template as link source
7539 [[{{linktest2}}|Main Page]]
7541 [[{{linktest2}}]]Page
7543 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7544 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7545 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
7563 Template infinite loop
7567 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
7572 Template from main namespace
7591 BUG 529: Template with table, not included at beginning of line
7610 BUG 523: Template shouldn't eat newline (or add an extra one before table)
7630 BUG 41: Template parameters shown as broken links
7639 Template with targets containing wikilinks
7643 {{[[{{echo|foo}}]]}}
7645 {{{{echo|[[foo}}]]}}
7647 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7648 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7656 ''None'' of '''this''' should be
7658 but rather passed unmodified
7662 # hmm, fix this or just deprecate msgnw and document its behavior?
7668 {{msgnw:MSGNW test}}
7670 <p>''None'' of '''this''' should be
7672 but rather passed unmodified
7680 {{int:youhavenewmessages|lots of money|not!}}
7682 <p>You have lots of money (not!).
7689 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7693 <includeonly> and <noinclude> being included
7704 <onlyinclude>Foo</onlyinclude>bar
7708 <onlyinclude> being included
7720 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
7724 <onlyinclude> and <includeonly> being included
7733 <includeonly> and <noinclude> on a page
7735 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7742 Un-closed <noinclude>
7749 <onlyinclude> on a page
7751 <onlyinclude>Foo</onlyinclude>bar
7758 Un-closed <onlyinclude>
7765 Self-closed noinclude, includeonly, onlyinclude tags
7776 Unbalanced includeonly and noinclude tags
7780 |b</noinclude></noinclude>
7781 |c</noinclude></includeonly>
7782 |d</includeonly></includeonly>
7791 <td>c</includeonly>
7793 <td>d</includeonly></includeonly>
7799 Template:Includeonly section
7802 ==Includeonly section==
7808 Bug 6563: Edit link generation for section shown by <includeonly>
7810 {{includeonly section}}
7812 <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>
7813 <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>
7817 # Uses same input as the contents of [[Template:Includeonly section]]
7819 Bug 6563: Section extraction for section shown by <includeonly>
7824 ==Includeonly section==
7832 Bug 6563: Edit link generation for section suppressed by <includeonly>
7835 ==Includeonly section==
7839 <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>
7844 Bug 6563: Section extraction for section suppressed by <includeonly>
7849 ==Includeonly section==
7857 Un-closed <includeonly>
7863 # TODO: test with DOM fragment reuse!
7865 Parsoid: DOM fragment reuse
7867 parsoid=wt2wt,wt2html
7869 a{{echo|b<table></table>c}}d
7881 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
7882 <table></table>c"}},"i":0}}]}'>b</span>
7883 <table about="#mwt1"></table><span about="#mwt1">c</span>d
7886 <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">
7888 <table about="#mwt2"></table><span about="#mwt2">
7890 <p about="#mwt2">cd</p>
7893 <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">
7896 <table about="#mwt3"></table><span about="#mwt3">
7899 <p about="#mwt3">b</p>
7903 Parsoid: Merge double tds (bug 50603)
7912 <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>
7917 Parsoid: Merge double tds in nested transclusion content (bug 50603)
7927 <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}}]}'>
7929 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
7935 ### <includeonly> and <noinclude> in attributes
7938 0. includeonly around the entire attribute
7940 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
7942 <p><span id="v2">bar</span>
7947 1. includeonly in html attr key
7949 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
7951 <p><span id="foo">bar</span>
7956 2. includeonly in html attr value
7958 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7959 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7961 <p><span id="v1">bar</span>
7962 <span id="v1">bar</span>
7967 3. includeonly in part of an attr value
7969 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7971 <p><span style="color:red;">bar</span>
7976 ### Testing parsing of templates where a template arg
7977 ### has the same name as the template itself.
7987 Templates: Template Name/Arg clash: 1. Use of positional param
7996 Templates: Template Name/Arg clash: 2. Use of named param
8005 Templates: Template Name/Arg clash: 3. Use of named param with empty input
8014 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
8018 Templates: 1. Simple use
8027 Templates: 2. Inside a block tag
8029 <div>{{echo|Foo}}</div>
8030 <blockquote>{{echo|Foo}}</blockquote>
8033 <blockquote>Foo</blockquote>
8038 Templates: P-wrapping: 1a. Templates on consecutive lines
8049 Templates: P-wrapping: 1b. Templates on consecutive lines
8063 Templates: P-wrapping: 1c. Templates on consecutive lines
8066 {{echo|bar}} <div>baz</div>
8075 Templates: P-wrapping: 1d. Template preceded by comment-only line
8084 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8088 Templates: Inline Text: 1. Multiple tmeplate uses
8090 {{echo|Foo}}bar{{echo|baz}}
8097 Templates: Inline Text: 2. Back-to-back template uses
8099 {{echo|Foo}}{{echo|bar}}
8106 Templates: Block Tags: 1. Multiple template uses
8108 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8110 <div>Foo</div><div>bar</div><div>baz</div>
8115 Templates: Block Tags: 2. Back-to-back template uses
8117 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8119 <div>Foo</div><div>bar</div>
8124 Templates: Links: 1. Simple example
8126 {{echo|[[Foo|bar]]}}
8128 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8133 Templates: Links: 2. Generation of link href
8135 [[{{echo|Foo}}|bar]]
8137 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8142 Templates: Links: 3. Generation of part of a link href
8144 [[Fo{{echo|o}}|bar]]
8148 [[Foo{{echo|bar}}baz]]
8150 [[Foo{{echo|bar}}|bar]]
8152 [[:Foo{{echo|bar}}]]
8154 [[:Foo{{echo|bar}}|bar]]
8156 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8157 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8158 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8159 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8160 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8161 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8166 Templates: Links: 4. Multiple templates generating link href
8168 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8170 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8175 Templates: Links: 5. Generation of link text
8177 [[Foo|{{echo|bar}}]]
8179 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8184 Templates: Links: 5. Nested templates (only outermost template should be marked)
8186 {{echo|[[{{echo|Foo}}|bar]]}}
8188 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8193 Templates: HTML Tag: 1. Generation of HTML attr. key
8195 <div {{echo|style}}="color:red;">foo</div>
8197 <div style="color:red;">foo</div>
8202 Templates: HTML Tag: 2. Generation of HTML attr. value
8204 <div style={{echo|'color:red;'}}>foo</div>
8206 <div style="color:red;">foo</div>
8211 Templates: HTML Tag: 3. Generation of HTML attr key and value
8213 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8215 <div style="color:red;">foo</div>
8220 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8222 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8224 <div title="This is a long title with just one piece templated">foo</div>
8229 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8231 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8233 <div title="This is a long title with just one piece templated">foo</div>
8238 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8240 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8242 <div title="This is a long title with just one piece templated">foo</div>
8247 Templates: HTML Tag: 7. Generation of partial attribute key string
8249 <div st{{echo|yle}}="color:red;">foo</div>
8251 <div style="color:red;">foo</div>
8256 Templates: HTML Tables: 1. Generating start of a HTML table
8258 {{echo|<table><tr><td>foo</td>}}</tr></table>
8260 <table><tr><td>foo</td></tr></table>
8265 Templates: HTML Tables: 2a. Generating middle of a HTML table
8267 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8269 <table><tr><td>foo</td></tr></table>
8274 Templates: HTML Tables: 2b. Generating middle of a HTML table
8276 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8278 <table><tr><td>foo</td></tr></table>
8283 Templates: HTML Tables: 3. Generating end of a HTML table
8285 <table><tr>{{echo|<td>foo</td></tr></table>}}
8287 <table><tr><td>foo</td></tr></table>
8292 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8294 {{echo|<table>}}<tr><td>foo</td></tr></table>
8296 <table><tr><td>foo</td></tr></table>
8301 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8303 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8305 <table><tr><td>foo</td></tr></table>
8310 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8312 <table><tr>{{echo|<td>}}foo</td></tr></table>
8314 <table><tr><td>foo</td></tr></table>
8319 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8321 <table><tr><td>foo{{echo|</td>}}</tr></table>
8323 <table><tr><td>foo</td></tr></table>
8328 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8330 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8332 <table><tr><td>foo</td></tr></table>
8337 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
8339 <table><tr><td>foo</td></tr>{{echo|</table>}}
8341 <table><tr><td>foo</td></tr></table>
8346 Templates: HTML Tables: 5. Proper fostering of categories from inside
8348 parsoid=wt2html,wt2wt
8350 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
8351 <!--Two categories (Bug 50330)-->
8352 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
8354 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
8355 <!--Two categories (Bug 50330)-->
8356 <link rel="mw:PageProp/Category" href="./Category:Bar1"><link rel="mw:PageProp/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
8360 Templates: Wiki Tables: 1a. Fostering of entire template content
8368 <tr><td></td></tr></table>
8373 Templates: Wiki Tables: 1b. Fostering of entire template content
8386 <tr><td></td></tr></table>
8391 Templates: Wiki Tables: 2. Fostering of partial template content
8401 <tr><td></td></tr></table>
8406 Templates: Wiki Tables: 3. td-content via multiple templates
8409 {{echo|{{pipe}}a}}{{echo|b}}
8420 Templates: Wiki Tables: 4. Templated tags, no content
8426 <tr><td></td></tr></table>
8431 Templates: Wiki Tables: 5. Templated tags, regular td-tags
8445 Templates: Wiki Tables: 6. Templated tags, templated td-tags
8459 Templates: Lists: Multi-line list-items via templates
8461 *{{echo|a {{nonexistent|
8463 *{{echo|b {{nonexistent|
8467 <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>
8469 <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>
8476 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
8478 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
8480 <p><i>ab</i>c<i>d</i>e
8485 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
8486 (PHP parser generates misnested html)
8490 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
8492 <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>
8496 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
8497 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
8499 parsoid=wt2html,wt2wt
8501 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
8503 <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>
8504 <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>
8505 <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>
8509 Templates: Ugly nesting: 4. Divs opened/closed across templates
8511 a<div>b{{echo|c</div>d}}e
8518 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
8524 |{{echo|foo</table>}}
8528 <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|}"]}'>
8532 <td>foo</td></tr></tbody></table><span about="#mwt1">
8533 </span><span about="#mwt1">bar</span><span about="#mwt1">
8538 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
8548 <td>1. {{echo|foo </table>}}</td>
8550 <td>2. {{echo|baz </table>}}</td>
8563 <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>"]}'>
8568 <td>1. foo </td></tr></tbody></table></td>
8570 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
8571 </span><span about="#mwt2">
8572 </span><span about="#mwt2">
8573 </span><span about="#mwt2">abc</span><span about="#mwt2">
8574 </span><span about="#mwt2">
8575 </span><span about="#mwt2">
8576 </span><span about="#mwt2">
8577 </span><span about="#mwt2">
8578 </span><span about="#mwt2">
8579 </span><span about="#mwt2">xyz</span><span about="#mwt2">
8580 </span><span about="#mwt2">
8585 Templates: Ugly templates: 3. newline-only template parameter
8594 # This looks like a bug: a single newline triggers p/br for some reason.
8596 Templates: Ugly templates: 4. newline-only template parameter inconsistency
8607 Parser Functions: 1. Simple example
8616 Parser Functions: 2. Nested use (only outermost should be marked up)
8625 ### Pre-save transform tests
8628 pre-save transform: subst:
8634 This is a test template
8638 pre-save transform: normal template
8648 pre-save transform: nonexistent template
8652 {{thistemplatedoesnotexist}}
8654 {{thistemplatedoesnotexist}}
8659 pre-save transform: subst magic variables
8668 # This is bug 89, which I fixed. -- wtm
8670 pre-save transform: subst: templates with parameters
8674 {{subst:paramtest|param="something else"}}
8676 This is a test template with parameter "something else"
8682 <nowiki>'''not wiki'''</nowiki>
8686 pre-save transform: nowiki in subst (bug 1188)
8690 {{subst:nowikitest}}
8692 <nowiki>'''not wiki'''</nowiki>
8697 Template:commenttest
8699 This template has <!-- a comment --> in it.
8703 pre-save transform: comment in subst (bug 1936)
8707 {{subst:commenttest}}
8709 This template has <!-- a comment --> in it.
8713 pre-save transform: unclosed tag
8717 <nowiki>'''not wiki'''
8719 <nowiki>'''not wiki'''
8723 pre-save transform: mixed tag case
8727 <NOwiki>'''not wiki'''</noWIKI>
8729 <NOwiki>'''not wiki'''</noWIKI>
8733 pre-save transform: unclosed comment in <nowiki>
8737 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
8739 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
8742 # Leading @ in this template definition works around a limitation
8743 # in parsoid's parserTests which otherwise strips the <span> from the
8744 # result (confusing it for a template wrapper)
8748 @<span onmouseover="alert('crap')">Oh no</span>
8752 (confirming safety of fix for subst bug 1936)
8754 {{Template:dangerous}}
8756 <p>@<span>Oh no</span>
8761 pre-save transform: comment containing gallery (bug 5024)
8765 <!-- <gallery>data</gallery> -->
8767 <!-- <gallery>data</gallery> -->
8771 pre-save transform: comment containing extension
8775 <!-- <tag>data</tag> -->
8777 <!-- <tag>data</tag> -->
8781 pre-save transform: comment containing nowiki
8785 <!-- <nowiki>data</nowiki> -->
8787 <!-- <nowiki>data</nowiki> -->
8791 pre-save transform: <noinclude> in subst (bug 3298)
8801 pre-save transform: <onlyinclude> in subst (bug 3298)
8813 {{<includeonly>subst:</includeonly>Includes}}
8817 Template:SafeSubstTest
8819 {{<includeonly>safesubst:</includeonly>Includes}}
8823 bug 22297: safesubst: works during PST
8827 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
8833 bug 22297: safesubst: works during normal parse
8842 subst: does not work during normal parse
8846 <p>{{subst:Includes}}
8851 pre-save transform: context links ("pipe trick")
8855 [[Article (context)|]]
8858 [[Bar:Article (context)|]]
8859 [[:Bar:Article (context)|]]
8861 [[|Article (context)]]
8865 [[Article (context)|Article]]
8866 [[Bar:Article|Article]]
8867 [[:Bar:Article|Article]]
8868 [[Bar:Article (context)|Article]]
8869 [[:Bar:Article (context)|Article]]
8871 [[Article (context)]]
8872 [[Bar:X (Y) Z|X (Y) Z]]
8873 [[:Bar:X (Y) Z|X (Y) Z]]
8877 pre-save transform: context links ("pipe trick") with interwiki prefix
8881 [[interwiki:Article|]]
8882 [[:interwiki:Article|]]
8883 [[interwiki:Bar:Article|]]
8884 [[:interwiki:Bar:Article|]]
8886 [[interwiki:Article|Article]]
8887 [[:interwiki:Article|Article]]
8888 [[interwiki:Bar:Article|Bar:Article]]
8889 [[:interwiki:Bar:Article|Bar:Article]]
8893 pre-save transform: context links ("pipe trick") with parens in title
8895 pst title=[[Somearticle (context)]]
8899 [[Article (context)|Article]]
8903 pre-save transform: context links ("pipe trick") with comma in title
8905 pst title=[[Someplace, Somewhere]]
8908 [[Otherplace, Elsewhere|]]
8909 [[Otherplace, Elsewhere, Anywhere|]]
8911 [[Otherplace, Somewhere|Otherplace]]
8912 [[Otherplace, Elsewhere|Otherplace]]
8913 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
8917 pre-save transform: context links ("pipe trick") with parens and comma
8919 pst title=[[Someplace (IGNORED), Somewhere]]
8922 [[Otherplace (place), Elsewhere|]]
8924 [[Otherplace, Somewhere|Otherplace]]
8925 [[Otherplace (place), Elsewhere|Otherplace]]
8929 pre-save transform: context links ("pipe trick") with comma and parens
8931 pst title=[[Who, me? (context)]]
8934 [[Me, Myself, and I (1937 song)|]]
8936 [[Yes, you. (context)|Yes, you.]]
8937 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
8941 pre-save transform: context links ("pipe trick") with namespace
8943 pst title=[[Ns:Somearticle]]
8947 [[Ns:Article|Article]]
8951 pre-save transform: context links ("pipe trick") with namespace and parens
8953 pst title=[[Ns:Somearticle (context)]]
8957 [[Ns:Article (context)|Article]]
8961 pre-save transform: context links ("pipe trick") with namespace and comma
8963 pst title=[[Ns:Somearticle, Context, Whatever]]
8967 [[Ns:Article, Context, Whatever|Article]]
8971 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8973 pst title=[[Ns:Somearticle, Context (context)]]
8977 [[Ns:Article (context)|Article]]
8981 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8983 pst title=[[Ns:Somearticle (IGNORED), Context]]
8987 [[Ns:Article, Context|Article]]
8991 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8995 [[Article(context)|]]
8996 [[Bar:Article(context)|]]
8997 [[:Bar:Article(context)|]]
8998 [[|Article(context)]]
9002 [[Article(context)|Article]]
9003 [[Bar:Article(context)|Article]]
9004 [[:Bar:Article(context)|Article]]
9005 [[Article(context)]]
9007 [[:Bar:X(Y)Z|X(Y)Z]]
9011 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
9015 [[Article (context)|]]
9016 [[Bar:Article (context)|]]
9017 [[:Bar:Article (context)|]]
9018 [[|Article (context)]]
9022 [[Article (context)|Article]]
9023 [[Bar:Article (context)|Article]]
9024 [[:Bar:Article (context)|Article]]
9025 [[Article (context)]]
9026 [[Bar:X (Y) Z|X (Y) Z]]
9027 [[:Bar:X (Y) Z|X (Y) Z]]
9031 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
9035 [[Article(context)|]]
9036 [[Bar:Article(context)|]]
9037 [[:Bar:Article(context)|]]
9038 [[|Article(context)]]
9042 [[Article(context)|Article]]
9043 [[Bar:Article(context)|Article]]
9044 [[:Bar:Article(context)|Article]]
9045 [[Article(context)]]
9047 [[:Bar:X(Y)Z|X(Y)Z]]
9051 pre-save transform: context links ("pipe trick") with commas (bug 21660)
9055 [[Article (context), context|]]
9056 [[Article (context),context|]]
9057 [[Bar:Article (context), context|]]
9058 [[Bar:Article (context),context|]]
9059 [[:Bar:Article (context), context|]]
9060 [[:Bar:Article (context),context|]]
9062 [[Article (context), context|Article]]
9063 [[Article (context),context|Article]]
9064 [[Bar:Article (context), context|Article]]
9065 [[Bar:Article (context),context|Article]]
9066 [[:Bar:Article (context), context|Article]]
9067 [[:Bar:Article (context),context|Article]]
9071 pre-save transform: trim trailing empty lines
9075 Empty lines are trimmed
9081 Empty lines are trimmed
9085 pre-save transform: Signature expansion
9090 * <noinclude>~~~</noinclude>
9091 * <includeonly>~~~</includeonly>
9092 * <onlyinclude>~~~</onlyinclude>
9094 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9095 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9096 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9097 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9102 pre-save transform: Signature expansion in nowiki tags (bug 93)
9108 <nowiki>~~~~</nowiki>
9110 <includeonly><nowiki>~~~~</nowiki></includeonly>
9112 <noinclude><nowiki>~~~~</nowiki></noinclude>
9114 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9116 {{subst:Foo}} shall be converted to FOO
9118 As well as inside noinclude/onlyinclude
9119 <noinclude>{{subst:Foo}}</noinclude>
9120 <onlyinclude>{{subst:Foo}}</onlyinclude>
9122 But not inside includeonly
9123 <includeonly>{{subst:Foo}}</includeonly>
9127 <nowiki>~~~~</nowiki>
9129 <includeonly><nowiki>~~~~</nowiki></includeonly>
9131 <noinclude><nowiki>~~~~</nowiki></noinclude>
9133 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9135 FOO shall be converted to FOO
9137 As well as inside noinclude/onlyinclude
9138 <noinclude>FOO</noinclude>
9139 <onlyinclude>FOO</onlyinclude>
9141 But not inside includeonly
9142 <includeonly>{{subst:Foo}}</includeonly>
9146 Parsoid: Recognize nowiki with trailing space in tags
9150 <nowiki ><div>[[foo]]</nowiki >
9158 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9165 Parsoid: Recognize nowiki with odd capitalization
9169 <noWikI ><div>[[foo]]</Nowiki >
9171 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9176 Parsoid: Escape nowiki with trailing space in tags
9180 <nowiki > foo </nowiki >
9186 <p><nowiki > foo </nowiki ></p>
9187 <p>a<nowiki />b</p>
9188 <p>c<nowiki/ >d</p>
9192 Parsoid: Escape weird noWikI capitalizations
9196 <noWikI > foo </NoWikI >
9198 <p><noWikI > foo </NoWikI ></p>
9202 ### Message transform tests
9205 message transform: magic variables
9215 message transform: should not transform wiki markup
9225 message transform: <noinclude> in transcluded template (bug 4926)
9235 message transform: <onlyinclude> in transcluded template (bug 4926)
9245 {{#special:}} page name, known
9249 {{#special:Recentchanges}}
9251 Special:RecentChanges
9255 {{#special:}} page name with subpage, known
9259 {{#special:Recentchanges/param}}
9261 Special:RecentChanges/param
9265 {{#special:}} page name, unknown
9269 {{#special:foobar nonexistent}}
9271 Special:Foobar nonexistent
9275 {{#speciale:}} page name, known
9279 {{#speciale:Recentchanges}}
9281 Special:RecentChanges
9285 {{#speciale:}} page name with subpage, known
9289 {{#speciale:Recentchanges/param}}
9291 Special:RecentChanges/param
9295 {{#speciale:}} page name, unknown
9299 {{#speciale:foobar nonexistent}}
9301 Special:Foobar_nonexistent
9307 ### For Parsoid-specific tests, see
9308 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9315 [[Image:foobar.jpg]]
9317 <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>
9322 Simple image (parsoid)
9326 [[Image:foobar.jpg]]
9328 <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>
9333 Simple image (using File: namespace, now canonical) (php)
9339 <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>
9344 Simple image (using File: namespace, now canonical) (parsoid)
9350 <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>
9355 Right-aligned image (php)
9359 [[Image:foobar.jpg|right]]
9361 <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>
9366 Right-aligned image (parsoid)
9370 [[File:Foobar.jpg|right]]
9372 <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>
9376 Image with caption (php)
9380 [[File:Foobar.jpg|right|Caption text]]
9382 <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>
9387 Image with caption (parsoid)
9391 [[File:Foobar.jpg|right|Caption text]]
9393 <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>
9397 Image with empty attribute (php)
9401 [[File:Foobar.jpg|right||Caption text]]
9403 <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>
9408 Image with empty attribute (parsoid)
9412 [[File:Foobar.jpg|right||Caption text]]
9414 <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>
9418 Image with attributes from template (php)
9422 [[File:Foobar.jpg|{{image_attribs}}]]
9424 <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>
9429 Image with attributes from template (parsoid)
9433 [[File:Foobar.jpg|{{image_attribs}}]]
9435 <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>
9439 Image with link tails (php)
9443 123[[File:Foobar.jpg]]456
9444 123[[File:Foobar.jpg|right]]456
9445 123[[File:Foobar.jpg|thumb]]456
9447 <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
9449 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
9450 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
9455 Image with link tails (parsoid)
9459 123[[File:Foobar.jpg]]456
9460 123[[File:Foobar.jpg|right]]456
9461 123[[File:Foobar.jpg|thumb]]456
9463 <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>
9464 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
9465 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
9469 Image with multiple captions -- only last one is accepted (php)
9473 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9475 <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>
9480 Image with multiple captions -- only last one is accepted (parsoid)
9484 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9486 <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>
9490 Image with width attribute at different positions (php)
9494 [[File:Foobar.jpg|200px|right|Caption]]
9495 [[File:Foobar.jpg|right|200px|Caption]]
9496 [[File:Foobar.jpg|right|Caption|200px]]
9498 <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>
9499 <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>
9500 <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>
9505 Image with width attribute at different positions (parsoid)
9509 [[File:Foobar.jpg|200px|right|Caption]]
9510 [[File:Foobar.jpg|right|200px|Caption]]
9511 [[File:Foobar.jpg|right|Caption|200px]]
9513 <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>
9514 <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>
9515 <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>
9519 Image with link parameter, wiki target (php)
9523 [[File:Foobar.jpg|link=Main Page]]
9525 <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>
9530 Image with link parameter, wiki target (parsoid)
9534 [[File:Foobar.jpg|link=Main Page]]
9536 <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>
9540 Image with link parameter, URL target (php)
9544 [[File:Foobar.jpg|link=http://example.com/]]
9546 <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>
9550 # parsoid bug 49293 (part 1)
9552 Image with link parameter, URL target (parsoid)
9556 [[File:Foobar.jpg|link=http://example.com/]]
9558 <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>
9562 Image with link parameter, protocol-less URL target (php)
9566 [[File:Foobar.jpg|link=//example.com/]]
9568 <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>
9572 # parsoid bug 49293 (part 2)
9574 Image with link parameter, protocol-less URL target (parsoid)
9578 [[File:Foobar.jpg|link=//example.com/]]
9580 <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>
9584 Image with link parameter, wgExternalLinkTarget
9586 [[Image:foobar.jpg|link=http://example.com/]]
9588 wgExternalLinkTarget='foobar'
9590 <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>
9595 Image with link parameter, wgNoFollowLinks set to false
9597 [[Image:foobar.jpg|link=http://example.com/]]
9599 wgNoFollowLinks=false
9601 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9606 Image with link parameter, wgNoFollowDomainExceptions
9608 [[Image:foobar.jpg|link=http://example.com/]]
9610 wgNoFollowDomainExceptions='example.com'
9612 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9617 Image with link parameter, wgExternalLinkTarget, unnamed parameter
9619 [[Image:foobar.jpg|link=http://example.com/|Title]]
9621 wgExternalLinkTarget='foobar'
9623 <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>
9628 Image with empty link parameter (php)
9632 [[File:Foobar.jpg|link=]]
9634 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
9639 Image with empty link parameter (parsoid)
9643 [[File:Foobar.jpg|link=]]
9645 <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>
9649 Image with link parameter (wiki target) and unnamed parameter (php)
9653 [[File:Foobar.jpg|link=Main Page|Title]]
9655 <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>
9660 Image with link parameter (wiki target) and unnamed parameter (parsoid)
9664 [[File:Foobar.jpg|link=Main Page|Title]]
9666 <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>
9670 Image with link parameter (URL target) and unnamed parameter (php)
9674 [[File:Foobar.jpg|link=http://example.com/|Title]]
9676 <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>
9681 Image with link parameter (URL target) and unnamed parameter (parsoid)
9685 [[File:Foobar.jpg|link=http://example.com/|Title]]
9687 <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>
9691 Thumbnail image with link parameter
9695 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
9697 <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>
9702 Manually-specified thumbnail image
9706 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
9708 <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>
9713 Manually-specified thumbnail image with explicit link to wiki page
9717 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
9719 <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>
9724 Manually-specified thumbnail image with explicit link to url
9728 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
9730 <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>
9735 Manually-specified thumbnail image with explicit no link
9739 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
9741 <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>
9746 Manually-specified thumbnail image with explicit link and alt text
9750 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
9752 <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>
9757 Image with frame and link
9759 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
9761 <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>
9766 Image with frame and link and explicit alt
9768 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
9770 <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>
9775 Image with wiki markup in implicit alt
9777 [[Image:Foobar.jpg|testing '''bold''' in alt]]
9779 <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>
9784 Image with wiki markup in explicit alt
9786 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
9788 <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>
9793 Link to image page- image page normally doesn't exists, hence edit link
9794 Add test with existing image page
9795 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
9799 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
9804 bug 18784 Link to non-existent image page with caption should use caption as link text
9806 [[:Image:test|caption]]
9808 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
9813 Frameless image caption with a free URL
9815 [[Image:foobar.jpg|http://example.com]]
9817 <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>
9822 Thumbnail image caption with a free URL
9824 [[Image:foobar.jpg|thumb|http://example.com]]
9826 <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>
9831 Thumbnail image caption with a free URL and explicit alt
9833 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
9835 <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>
9840 SVG thumbnails with no language set
9843 [[File:Foobar.svg|thumb|width=200]]
9845 <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>
9850 SVG thumbnails with language de
9853 [[File:Foobar.svg|thumb|width=200|lang=de]]
9855 <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>
9860 SVG thumbnails with invalid language code
9863 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
9865 <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>
9870 BUG 1887: A ISBN with a thumbnail
9872 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
9874 <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>
9879 BUG 1887: A RFC with a thumbnail
9881 [[Image:foobar.jpg|thumb|This is RFC 12354]]
9883 <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>
9888 BUG 1887: A mailto link with a thumbnail
9890 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
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>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
9896 # Pending resolution to bug 368
9898 BUG 648: Frameless image caption with a link
9900 [[Image:foobar.jpg|text with a [[link]] in it]]
9902 <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>
9907 BUG 648: Frameless image caption with a link (suffix)
9909 [[Image:foobar.jpg|text with a [[link]]foo in it]]
9911 <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>
9916 BUG 648: Frameless image caption with an interwiki link
9918 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
9920 <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>
9925 BUG 648: Frameless image caption with a piped interwiki link
9927 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
9929 <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>
9934 Escape HTML special chars in image alt text
9936 [[Image:foobar.jpg|& < > "]]
9938 <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>
9943 BUG 499: Alt text should have Ӓ, not &1234;
9945 [[Image:foobar.jpg|♀]]
9947 <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>
9952 Broken image caption with link
9954 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
9956 <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.
9961 Image caption containing another image
9963 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
9965 <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>
9970 Image caption containing a newline
9972 [[Image:Foobar.jpg|This
9975 <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>
9980 Parsoid: Image caption containing leading space
9981 (The leading space should not trigger nowiki escaping in wt2wt mode)
9983 [[Image:Foobar.jpg|thumb| bar]]
9985 <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>
9990 Bug 3090: External links other than http: in image captions
9992 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
9994 <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>
10001 [[Image:foobar.jpg|a|class=b]]
10003 <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>
10008 Localized image handling (1).
10012 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10014 <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>
10019 Localized image handling (2).
10023 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10025 <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>
10030 "border", "frameless" and "class" attributes on an image.
10032 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
10034 <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>
10041 #REDIRECT [[File:Barfoo.jpg]]
10047 [[Image:Barfoo.jpg]]
10049 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
10054 Missing image with uploads disabled
10058 [[Image:Foobaz.jpg]]
10060 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
10064 # Parsoid-specific testing for images
10065 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10066 # Currently imperfect due to a flaw in the Parsoid testrunner
10068 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
10072 Parsoid-specific image handling - simple image with size and middle alignment
10076 [[Image:Foobar.jpg|50px|middle]]
10079 <span class="mw-valign-middle" typeof="mw:Image">
10080 <a href="File:Foobar.jpg">
10081 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10088 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10092 [[Image:Foobar.jpg|500x10px|baseline|caption]]
10095 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
10096 <a href="File:Foobar.jpg">
10097 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
10104 Parsoid-specific image handling - simple image with border and size spec
10108 [[Image:Foobar.jpg|50px|border|caption]]
10111 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
10112 <a href="File:Foobar.jpg">
10113 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10120 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10124 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
10126 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10127 <a href="File:Foobar.jpg">
10128 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
10130 <figcaption>caption content</figcaption>
10135 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10139 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10141 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10142 <a href="File:Foobar.jpg">
10143 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10145 <figcaption>caption</figcaption>
10150 Parsoid-specific image handling - framed image with specific size and caption
10154 [[Image:Foobar.jpg|500x50px|frame|caption]]
10156 <figure typeof="mw:Image/Frame">
10157 <a href="File:Foobar.jpg">
10158 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10160 <figcaption>caption</figcaption>
10165 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10169 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
10171 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10172 <a href="File:Foobar.jpg">
10173 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10175 <figcaption>caption</figcaption>
10180 Parsoid-specific image handling - frameless image with specific size, border, and caption
10184 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
10187 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
10188 <a href="File:Foobar.jpg">
10189 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10195 #Parsoid-specific image handling - simple image with a formatted caption
10199 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10202 #<span typeof="mw:Image">
10203 #<a class="mw-default-size" href="Image:Foobar.jpg">
10204 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10211 Caption with a template in it
10215 [[Image:Foobar.jpg|thumb|200px|This caption has a {{echo|transclusion}} in it.]]
10217 <figure typeof="mw:Image/Thumb"><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>This caption has a <span about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}">transclusion</span> in it.</figcaption></figure>
10221 Caption with unbalanced tags in it
10226 [[Image:Foobar.jpg|thumb|200px|This caption has a <center>unbalanced tag in it.]]
10230 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="23" width="200"></a><figcaption>This caption has a <center>unbalanced tag in it.</center></figcaption></figure>
10239 Subpage test/subpage
10247 subpage title=[[Subpage test]]
10251 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10256 Subpage noslash link
10258 subpage title=[[Subpage test]]
10262 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10266 # TODO: make this PHP-parser compatible!
10268 Relative subpage noslash link
10270 parsoid=wt2wt,wt2html,html2html
10271 subpage title=[[Subpage test/1/2/3/4]]
10277 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10278 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10281 # TODO: make this PHP-parser compatible!
10283 Parsoid: dot-slash prefixed wikilinks
10285 parsoid=wt2wt,wt2html,html2html
10293 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10294 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10295 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10303 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10308 BUG 561: {{/Subpage}}
10310 subpage title=[[Page]]
10314 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
10322 Category:MediaWiki User's Guide
10330 [[:Category:MediaWiki User's Guide]]
10332 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
10341 [[Category:MediaWiki User's Guide]]
10343 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10347 PAGESINCATEGORY invalid title fatal (r33546 fix)
10349 {{PAGESINCATEGORY:<bogus>}}
10356 Category with different sort key
10360 [[Category:MediaWiki User's Guide|Foo]]
10362 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10366 Category with identical sort key
10370 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10372 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10376 Category with empty sort key
10381 [[Category:MediaWiki User's Guide|]]
10383 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10387 Category with empty sort key and parentheses
10392 [[Category:Foo (bar)|]]
10394 [[Category:Foo (bar)|Foo]]
10398 Category with link tail
10403 123[[Category:Foo]]456
10405 123[[Category:Foo]]456
10409 Category with template
10414 [[Category:{{echo|Foo}}]]
10416 [[Category:{{echo|Foo}}]]
10420 Category with template in sort key
10425 [[Category:Foo|{{echo|Bar}}]]
10427 [[Category:Foo|{{echo|Bar}}]]
10431 Category with template in sort key and title
10436 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
10438 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
10442 Category / paragraph interactions
10444 Foo [[Category:Baz]] Bar
10446 Foo [[Category:Baz]]
10454 [[Category:Baz]] Bar
10467 {{echo|[[Category:Baz]]}}
10482 Parsoid: Serialize link to category page with colon escape
10488 [[:Category:Foo|Bar]]
10491 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
10492 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
10497 Parsoid: Link prefix/suffixes aren't applied to category links
10499 parsoid=wt2html,wt2wt,html2html
10504 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
10508 Parsoid: Serialize link to file page with colon escape
10514 [[:File:Foo.png|Bar]]
10517 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
10518 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
10523 Parsoid: Serialize a genuine category link without colon escape
10528 [[Category:Foo|Bar]]
10530 <link rel="mw:PageProp/Category" href="Category:Foo">
10531 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
10535 ### Inter-language links
10538 Inter-language links
10544 [[zh:食品]]
10546 es:Alimento fr:Nourriture zh:食品
10550 Duplicate interlanguage links (bug 24502)
10566 Basic section headings
10573 ===Smaller headline===
10576 <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>
10579 <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>
10582 <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>
10588 Section headings with TOC
10591 === Subheadline 1 ===
10592 ===== Skipping a level =====
10593 ====== Skipping a level ======
10597 ===Another headline===
10599 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10601 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
10603 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
10605 <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>
10607 <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>
10614 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
10616 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
10622 <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>
10623 <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>
10624 <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>
10625 <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>
10626 <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>
10629 <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>
10633 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
10635 Handling of sections up to level 6 and beyond
10638 == Level 2 Heading==
10639 === Level 3 Heading===
10640 ==== Level 4 Heading====
10641 ===== Level 5 Heading=====
10642 ====== Level 6 Heading======
10643 ======= Level 7 Heading=======
10644 ======== Level 8 Heading========
10645 ========= Level 9 Heading=========
10646 ========== Level 10 Heading==========
10648 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10650 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
10652 <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>
10654 <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>
10656 <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>
10658 <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>
10660 <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>
10661 <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>
10662 <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>
10663 <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>
10664 <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>
10678 <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>
10679 <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>
10680 <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>
10681 <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>
10682 <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>
10683 <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>
10684 <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>
10685 <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>
10686 <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>
10687 <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>
10692 TOC regression (bug 9764)
10696 ==== title 1.1.1 ====
10701 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10703 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10705 <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>
10707 <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>
10710 <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>
10713 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
10715 <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>
10721 <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>
10722 <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>
10723 <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>
10724 <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>
10725 <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>
10726 <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>
10731 TOC with wgMaxTocLevel=3 (bug 6204)
10737 ==== title 1.1.1 ====
10742 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10744 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10746 <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>
10747 <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>
10750 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
10752 <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>
10758 <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>
10759 <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>
10760 <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>
10761 <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>
10762 <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>
10763 <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>
10768 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
10774 ====Section 1.1.1====
10775 ====Section 1.1.1.1====
10778 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10780 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
10782 <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>
10785 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
10789 <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>
10790 <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>
10791 <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>
10792 <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>
10793 <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>
10799 Resolving duplicate section names
10804 <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>
10805 <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>
10810 Resolving duplicate section names with differing case (bug 10721)
10815 <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>
10816 <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>
10828 Template with sections, __NOTOC__
10835 <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>
10836 <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>
10837 <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>
10838 <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>
10843 __NOEDITSECTION__ keyword
10849 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
10850 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
10855 Link inside a section heading
10857 ==Section with a [[Main Page|link]] in it==
10859 <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>
10864 TOC regression (bug 12077)
10871 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10873 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10875 <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>
10878 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
10882 <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>
10883 <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>
10884 <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>
10889 BUG 1219 URL next to image (good)
10891 http://example.com [[Image:foobar.jpg]]
10893 <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>
10898 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
10901 The line above must have a trailing space!
10904 But just in case it doesn't...
10906 <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>
10907 <p>The line above must have a trailing space!
10909 <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>
10910 <p>But just in case it doesn't...
10915 Header with special characters (bug 25462)
10917 The tooltips shall not show entities to the user (ie. be double escaped)
10934 <p>The tooltips shall not show entities to the user (ie. be double escaped)
10936 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10938 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
10939 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
10940 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
10941 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
10942 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
10946 <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>
10949 <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>
10952 <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>
10955 <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>
10958 <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>
10964 Headers with excess '=' characters
10965 (Are similar tests necessary beyond the 1st level?)
10969 =''italic'' heading==
10970 ==''italic'' heading=
10972 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10974 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
10975 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
10976 <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>
10977 <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>
10981 <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>
10982 <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>
10983 <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>
10984 <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>
10989 HTML headers vs TOC (bug 23393)
10990 (__NOEDITSECTION__ for clearer output, doesn't matter here)
11002 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11004 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
11006 <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>
11007 <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>
11010 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
11012 <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>
11013 <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>
11019 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
11020 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
11021 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
11022 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
11023 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
11024 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
11029 BUG 1219 URL next to image (broken)
11031 http://example.com[[Image:foobar.jpg]]
11033 <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>
11038 Bug 1186 news: in the middle of text
11040 http://en.wikinews.org/wiki/Wikinews:Workplace
11042 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
11048 Namespaced link must have a title
11057 Namespaced link must have a title (bad fragment version)
11059 [[Project:#fragment]]
11061 <p>[[Project:#fragment]]
11067 ### HTML tags and HTML attributes
11071 div with no attributes
11073 <div>HTML rocks</div>
11075 <div>HTML rocks</div>
11080 div with double-quoted attribute
11082 <div id="rock">HTML rocks</div>
11084 <div id="rock">HTML rocks</div>
11089 div with single-quoted attribute
11091 <div id='rock'>HTML rocks</div>
11093 <div id="rock">HTML rocks</div>
11098 div with unquoted attribute
11100 <div id=rock>HTML rocks</div>
11102 <div id="rock">HTML rocks</div>
11107 div with illegal double attributes
11109 <div id="a" id="b">HTML rocks</div>
11111 <div id="b">HTML rocks</div>
11115 # FIXME: produce empty string instead of "class" in the PHP parser, following
11118 div with empty attribute value, space before equals
11122 <div class =>HTML rocks</div>
11124 <div class="">HTML rocks</div>
11128 # The PHP parser escapes the opening brace to { for some reason, so
11129 # disabled this test for it.
11131 div with braces in attribute value
11135 <div title="{}">Foo</div>
11137 <div title="{}">Foo</div>
11140 # This it very inconsistent in the PHP parser: it returns
11141 # class="class" if there is a space between the name and the equal sign (see
11142 # 'div with empty attribute value, space before equals'), but strips the
11143 # attribute completely if the space is missing. We hope that not much content
11144 # depends on this, so are implementing the behavior below in Parsoid for
11145 # consistencies' sake. Disabled for the PHP parser.
11146 # FIXME: fix this behavior in the PHP parser?
11148 div with empty attribute value, no space before equals
11152 <div class=>HTML rocks</div>
11154 <div class="">HTML rocks</div>
11159 HTML multiple attributes correction
11161 <p class="error" class="awesome">Awesome!</p>
11163 <p class="awesome">Awesome!</p>
11168 Table multiple attributes correction
11171 !+ class="error" class="awesome"| status
11176 <th class="awesome"> status
11184 <DIV ID="x">HTML ROCKS</DIV>
11186 <div id="x">HTML ROCKS</div>
11191 Non-ASCII pseudo-tags are rendered as text
11200 Pseudo-tag with URL 'name' renders as url link
11202 <http://example.com/>
11204 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11209 text with amp in the middle of nowhere
11213 <p>Remember AT&T?
11218 text with character entity: eacute
11220 I always thought é was a cute letter.
11222 <p>I always thought é was a cute letter.
11227 text with entity-escaped character entity-like string: eacute
11229 I always thought &eacute; was a cute letter.
11231 <p>I always thought &eacute; was a cute letter.
11236 text with undefined character entity: xacute
11238 I always thought &xacute; was a cute letter.
11240 <p>I always thought &xacute; was a cute letter.
11246 ### Nesting tests (see bug 41545, 50604, 51081)
11249 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11250 # Note that html2wt is considerably more difficult if we use <b> in
11251 # the test case, instead of <big>
11253 Ensure that HTML adoption agency algorithm is properly implemented.
11255 <big>X<big>Y</big>Z</big>
11257 <p><big>X<big>Y</big>Z</big>
11261 # This was bug 41545 in the PHP parser.
11265 <kbd>X<kbd>Y</kbd>Z</kbd>
11267 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11271 # The following cases were bug 51081 in the PHP parser.
11272 # Note that there are some other nestable tags (b, i, etc) which are
11273 # not covered; see bug 51081 for discussion.
11277 <em>X<em>Y</em>Z</em>
11279 <p><em>X<em>Y</em>Z</em>
11284 Nesting of <strong>
11286 <strong>X<strong>Y</strong>Z</strong>
11288 <p><strong>X<strong>Y</strong>Z</strong>
11297 <p><q>X<q>Y</q>Z</q>
11304 <ruby>X<ruby>Y</ruby>Z</ruby>
11306 <p><ruby>X<ruby>Y</ruby>Z</ruby>
11313 <bdo>X<bdo>Y</bdo>Z</bdo>
11315 <p><bdo>X<bdo>Y</bdo>Z</bdo>
11327 [[Media:Foobar.jpg]]
11329 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
11334 Media link with text
11336 [[Media:Foobar.jpg|A neat file to look at]]
11338 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
11342 # FIXME: this is still bad HTML tag nesting
11344 Media link with nasty text
11345 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
11347 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
11349 <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>
11354 Media link to nonexistent file (bug 1702)
11356 [[Media:No such.jpg]]
11358 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
11363 Image link to nonexistent file (bug 1850 - good)
11365 [[Image:No such.jpg]]
11367 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
11372 :Image link to nonexistent file (bug 1850 - bad)
11374 [[:Image:No such.jpg]]
11376 <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>
11383 Character reference normalization in link text (bug 1938)
11385 [[Main Page|this&that]]
11387 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
11394 Test for unicode normalization
11396 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
11400 (bug 19451) Links should refer to the normalized form.
11408 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11409 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11410 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11411 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11412 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11417 Empty attribute crash test (bug 2067)
11419 <font color="">foo</font>
11421 <p><font color="">foo</font>
11426 Empty attribute crash test single-quotes (bug 2067)
11428 <font color=''>foo</font>
11430 <p><font color="">foo</font>
11435 Attribute test: equals, then nothing
11437 <font color=>foo</font>
11439 <p><font>foo</font>
11444 Attribute test: unquoted value
11446 <font color=x>foo</font>
11448 <p><font color="x">foo</font>
11453 Attribute test: unquoted but illegal value (hash)
11455 <font color=#x>foo</font>
11457 <p><font color="#x">foo</font>
11462 Attribute test: no value
11464 <font color>foo</font>
11466 <p><font color="color">foo</font>
11471 Bug 2095: link with three closing brackets
11475 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
11480 Bug 2095: link with pipe and three closing brackets
11482 [[Main Page|link]]]
11484 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
11489 Bug 2095: link with pipe and three closing brackets, version 2
11491 [[Main Page|[http://example.com/]]]
11493 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
11503 Template:Dangerous attribute
11505 " onmouseover="alert(document.cookie)
11509 Template:Dangerous style attribute
11511 border-size: expression(alert(document.cookie))
11517 <div style="float: right; {{{1}}}">Magic div</div>
11521 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
11523 <div title="{{test}}"></div>
11525 <div title="This is a test template"></div>
11530 Bug 2304: HTML attribute safety (dangerous template; 2309)
11532 <div title="{{dangerous attribute}}"></div>
11534 <div title=""></div>
11539 Bug 2304: HTML attribute safety (dangerous style template; 2309)
11541 <div style="{{dangerous style attribute}}"></div>
11543 <div style="/* insecure input */"></div>
11548 Bug 2304: HTML attribute safety (safe parameter; 2309)
11550 {{div style|width: 200px}}
11552 <div style="float: right; width: 200px">Magic div</div>
11557 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
11559 {{div style|width: expression(alert(document.cookie))}}
11561 <div style="/* insecure input */">Magic div</div>
11566 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
11568 {{div style|"><script>alert(document.cookie)</script>}}
11570 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
11575 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
11577 {{div style|" ><script>alert(document.cookie)</script>}}
11579 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
11584 Bug 2304: HTML attribute safety (link)
11586 <div title="[[Main Page]]"></div>
11588 <div title="[[Main Page]]"></div>
11593 Bug 2304: HTML attribute safety (italics)
11595 <div title="''foobar''"></div>
11597 <div title="''foobar''"></div>
11602 Bug 2304: HTML attribute safety (bold)
11604 <div title="'''foobar'''"></div>
11606 <div title="'''foobar'''"></div>
11612 Bug 2304: HTML attribute safety (ISBN)
11614 <div title="ISBN 1234567890"></div>
11616 <div title="ISBN 1234567890"></div>
11621 Bug 2304: HTML attribute safety (RFC)
11623 <div title="RFC 1234"></div>
11625 <div title="RFC 1234"></div>
11630 Bug 2304: HTML attribute safety (PMID)
11632 <div title="PMID 1234567890"></div>
11634 <div title="PMID 1234567890"></div>
11639 Bug 2304: HTML attribute safety (web link)
11641 <div title="http://example.com/"></div>
11643 <div title="http://example.com/"></div>
11648 Bug 2304: HTML attribute safety (named web link)
11650 <div title="[http://example.com/ link]"></div>
11652 <div title="[http://example.com/ link]"></div>
11657 Bug 3244: HTML attribute safety (extension; safe)
11659 <div style="<nowiki>background:blue</nowiki>"></div>
11661 <div style="background:blue"></div>
11666 Bug 3244: HTML attribute safety (extension; unsafe)
11668 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
11670 <div style="/* insecure input */"></div>
11674 # More MSIE fun discovered by Tom Gilder
11677 MSIE CSS safety test: spurious slash
11679 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
11681 <div style="/* insecure input */">evil</div>
11686 MSIE CSS safety test: hex code
11688 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
11690 <div style="/* insecure input */">evil</div>
11695 MSIE CSS safety test: comment in url
11697 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
11699 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
11704 MSIE CSS safety test: comment in expression
11706 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
11708 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
11713 CSS safety test: vertical tab
11715 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
11717 <p style="/* invalid control char */">A</p>
11722 MSIE CSS safety test: Fullwidth
11724 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
11725 <div style="top:EXPRESSION(alert())">B</div>
11727 <p style="/* insecure input */">A</p>
11728 <div style="/* insecure input */">B</div>
11733 MSIE CSS safety test: IPA extensions
11735 <div style="background-image:uʀʟ(javascript:alert())">A</div>
11736 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
11738 <div style="/* insecure input */">A</div>
11739 <p style="/* insecure input */">B</p>
11744 MSIE CSS safety test: sup/sub script
11746 <div style="background-image:url⁽javascript:alert())">A</div>
11747 <div style="background-image:url₍javascript:alert())">B</div>
11748 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
11750 <div style="/* insecure input */">A</div>
11751 <div style="/* insecure input */">B</div>
11752 <p style="/* insecure input */">C</p>
11757 MSIE CSS safety test: Repetition markers
11759 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
11760 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
11761 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
11762 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
11763 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
11764 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
11765 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
11767 <p style="/* insecure input */">A</p>
11768 <p style="/* insecure input */">B</p>
11769 <p style="/* insecure input */">C</p>
11770 <p style="/* insecure input */">D</p>
11771 <p style="/* insecure input */">E</p>
11772 <p style="/* insecure input */">F</p>
11773 <p style="/* insecure input */">G</p>
11778 Table attribute legitimate extension
11781 !+ style="<nowiki>color:blue</nowiki>"| status
11786 <th style="color:blue"> status
11792 Table attribute safety
11795 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
11800 <th style="/* insecure input */"> status
11806 CSS line continuation 1
11808 <div style="background-image: u\ rl(test.jpg);"></div>
11810 <div style="/* insecure input */"></div>
11815 CSS line continuation 2
11817 <div style="background-image: u\ rl(test.jpg); "></div>
11819 <div style="/* insecure input */"></div>
11830 Expansion of multi-line templates in attribute values (bug 6255)
11832 <div style="background: {{identity|#00FF00}}">-</div>
11834 <div style="background: #00FF00">-</div>
11840 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
11842 <div style="background:
11845 <div style="background: #00FF00">-</div>
11850 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
11852 <div style="background: #00FF00">-</div>
11854 <div style="background: #00FF00">-</div>
11859 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
11862 Parser hook: empty input
11875 Parser hook: empty input using terminated empty elements
11888 Parser hook: empty input using terminated empty elements (space before)
11901 Parser hook: basic input
11915 Parser hook: case insensitive
11929 Parser hook: case insensitive, redux
11942 Parser hook: nested tags
11946 <tag><tag></tag></tag>
11957 Parser hook: basic arguments
11959 <tag width=200 height = "100" depth = '50' square></tag>
11967 'square' => 'square',
11974 Parser hook: argument containing a forward slash (bug 5344)
11976 <tag filename='/tmp/bla'></tag>
11981 'filename' => '/tmp/bla',
11988 Parser hook: empty input using terminated empty elements (bug 2374)
12001 # </tag> should be output literally since there is no matching tag that begins it
12003 Parser hook: basic arguments using terminated empty elements (bug 2374)
12005 <tag width=200 height = "100" depth = '50' square/>
12015 'square' => 'square',
12024 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
12028 Parser hook: static parser hook not inside a comment
12030 <statictag>hello, world</statictag>
12031 <statictag action=flush/>
12039 Parser hook: static parser hook inside a comment
12041 <!-- <statictag>hello, world</statictag> -->
12042 <statictag action=flush/>
12048 # Nested template calls; this case was broken by Parser.php rev 1.506,
12052 Template:One-parameter
12054 (My parameter is: {{{1}}})
12058 Template:Map-one-parameter
12060 {{{{{1}}}|{{{2}}}}}
12064 Nested template calls
12066 {{Map-one-parameter|One-parameter|param}}
12068 <p>(My parameter is: param)
12077 Sanitizer: Closing of open tags
12079 <s></s><table></table>
12081 <s></s><table></table>
12086 Sanitizer: Closing of open but not closed tags
12095 Sanitizer: Closing of closed but not open tags
12104 Sanitizer: Closing of closed but not open table tags
12106 Table not started</td></tr></table>
12108 <p>Table not started</td></tr></table>
12113 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
12115 <span id="æ: v">byte</span>[[#æ: v|backlink]]
12117 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
12122 Sanitizer: Validating the contents of the id attribute (bug 4515)
12128 Something, but definitely not <br id="9" />...
12132 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
12136 <br id="foo" /><br id="foo" />
12138 Something need to be done. foo-2 ?
12142 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
12145 <meta itemprop="hello" content="world">
12146 <meta http-equiv="refresh" content="5">
12147 <meta itemprop="hello" http-equiv="refresh" content="5">
12148 <link itemprop="hello" href="{{SERVER}}">
12149 <link rel="stylesheet" href="{{SERVER}}">
12150 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
12153 <div itemscope="itemscope">
12154 <p> <meta itemprop="hello" content="world" />
12155 <meta http-equiv="refresh" content="5">
12156 <meta itemprop="hello" content="5" />
12158 <link itemprop="hello" href="http://example.org" />
12159 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
12160 <link itemprop="hello" href="http://example.org" />
12166 Language converter: output gets cut off unexpectedly (bug 5757)
12170 this bit is safe: }-
12172 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12174 then we get cut off here: }-
12176 all additional text is vanished
12178 <p>this bit is safe: }-
12179 </p><p>but if we add a conversion instance: xxx
12180 </p><p>then we get cut off here: }-
12181 </p><p>all additional text is vanished
12186 Self closed html pairs (bug 5487)
12189 <center><font id="bug" />Centered text</center>
12190 <div><font id="bug2" />In div text</div>
12192 <center><font id="bug" />Centered text</center>
12193 <div><font id="bug2" />In div text</div>
12202 Punctuation: nbsp before exclamation
12206 <p>C'est grave !
12211 Punctuation: CSS !important (bug 11874)
12213 <div style="width:50% !important">important</div>
12215 <div style="width:50% !important">important</div>
12220 Punctuation: CSS ! important (bug 11874; with space after)
12222 <div style="width:50% ! important">important</div>
12224 <div style="width:50% ! important">important</div>
12230 HTML bullet list, closed tags (bug 5497)
12245 HTML bullet list, unclosed tags (bug 5497)
12264 HTML ordered list, closed tags (bug 5497)
12279 HTML ordered list, unclosed tags (bug 5497)
12298 HTML nested bullet list, closed tags (bug 5497)
12323 HTML nested bullet list, open tags (bug 5497)
12352 HTML nested ordered list, closed tags (bug 5497)
12377 HTML nested ordered list, open tags (bug 5497)
12406 HTML ordered list item with parameters oddity
12408 <ol><li id="fragment">One</li>
12411 <ol><li id="fragment">One</li>
12417 bug 5918: autonumbering
12419 [http://first/] [http://second] [ftp://ftp]
12423 [mailto:enclosed@mail.tld With target]
12425 [mailto:enclosed@mail.tld]
12427 mailto:inline@mail.tld
12429 <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>
12430 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
12431 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
12432 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
12433 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
12439 # Security and HTML correctness
12440 # From Nick Jenkins' fuzz testing
12444 Fuzz testing: Parser13
12459 Fuzz testing: Parser14
12464 <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>
12465 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12467 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
12475 Fuzz testing: Parser14-table
12480 <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>
12481 <table style="__TOC__">
12487 # Known to produce bogus xml (extra </td>)
12489 Fuzz testing: Parser16
12509 Fuzz testing: Parser21
12512 ! irc://{{ftp://a" onmouseover="alert('hello world');"
12517 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
12527 Fuzz testing: Parser22
12529 http://===r:::https://b
12533 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
12541 # Known to produce bad XML for now
12543 Fuzz testing: Parser24
12550 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
12551 <br style="onmouseover='alert(document.cookie);' " />
12553 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
12558 <u class="|">}}}} >
12559 <br style="onmouseover='alert(document.cookie);'" />
12561 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
12570 # Note: the current result listed for this is not what the original one was,
12571 # but the original bug was JavaScript injection, which is fixed in any case.
12572 # It's not clear that the original result listed was any more correct than the
12573 # current one. Original result:
12576 # <li class="||">
12577 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
12579 Fuzz testing: Parser25 (bug 6055)
12585 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
12587 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
12592 Fuzz testing: URL adjacent extension (with space, clean)
12595 http://example.com <nowiki>junk</nowiki>
12597 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
12602 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
12605 http://example.com<nowiki>junk</nowiki>
12607 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
12612 Fuzz testing: URL adjacent extension (no space, dirty; pre)
12615 http://example.com<pre>junk</pre>
12617 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
12622 Fuzz testing: image with bogus manual thumbnail
12624 [[Image:foobar.jpg|thumbnail= ]]
12626 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
12631 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
12633 <pre dir=" "></pre>
12635 <pre dir=" "></pre>
12640 Parsing optional HTML elements (Bug 6171)
12645 <td> Some tabular data</td>
12646 <td> More tabular data ...
12647 <td> And yet som tabular data</td>
12653 <td> Some tabular data</td>
12654 <td> More tabular data ...
12655 </td><td> And yet som tabular data</td>
12662 Correct handling of <td>, <tr> (Bug 6171)
12667 <td> Some tabular data</td>
12668 <td> More tabular data ...</td>
12669 <td> And yet som tabular data</td>
12675 <td> Some tabular data</td>
12676 <td> More tabular data ...</td>
12677 <td> And yet som tabular data</td>
12685 Parsing crashing regression (fr:JavaScript)
12689 <p></body></x>
12694 Inline wiki vs wiki block nesting
12700 <p><b>Bold paragraph</b>
12701 </p><p>New wiki paragraph
12706 Inline HTML vs wiki block nesting
12714 <p><b>Bold paragraph</b>
12715 </p><p>New wiki paragraph
12719 # Original result was this:
12720 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
12722 # While that might be marginally more intuitive, maybe, the six-apostrophe
12723 # construct is clearly pathological and the result stated here (which is what
12724 # the parser actually does) is about as reasonable as anything.
12726 Mixing markup for italics and bold
12729 '''bold''''''bold''bolditalics'''''
12731 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
12739 Article for special page transclusion test
12743 Special page transclusion
12746 {{Special:Prefixindex/Xyzzyx}}
12748 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12753 Special page transclusion twice (bug 5021)
12756 {{Special:Prefixindex/Xyzzyx}}
12757 {{Special:Prefixindex/Xyzzyx}}
12759 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12760 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
12765 Transclusion of default MediaWiki message
12767 {{MediaWiki:Mainpage}}
12774 Transclusion of nonexistent MediaWiki message
12776 {{MediaWiki:Mainpagexxx}}
12778 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
12783 Transclusion of MediaWiki message with underscore
12785 {{MediaWiki:history_short}}
12792 Transclusion of MediaWiki message with space
12794 {{MediaWiki:history short}}
12801 Invalid header with following text
12811 Section extraction test (section 0)
12831 Section extraction test (section 1)
12853 Section extraction test (section 2)
12874 Section extraction test (section 3)
12894 Section extraction test (section 4)
12918 Section extraction test (section 5)
12938 Section extraction test (section 6)
12959 Section extraction test (section 7)
12979 Section extraction test (section 8)
12999 Section extraction test (section 9)
13020 Section extraction test (section 10)
13040 Section extraction test (nonexistent section 11)
13059 Section extraction test with bogus heading (section 1)
13064 ==bogus== not a legal section
13068 ==bogus== not a legal section
13072 Section extraction test with bogus heading (section 2)
13077 ==bogus== not a legal section
13084 Section extraction test with comment after heading (section 1)
13096 Section extraction test with comment after heading (section 2)
13108 Section extraction test with bogus <nowiki> heading (section 1)
13113 ==bogus== <nowiki>not a legal section</nowiki>
13117 ==bogus== <nowiki>not a legal section</nowiki>
13121 Section extraction test with bogus <nowiki> heading (section 2)
13126 ==bogus== <nowiki>not a legal section</nowiki>
13133 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
13134 # instead of respecting commented sections
13136 Section extraction prefixed by comment (section 1)
13147 Section extraction prefixed by comment (section 2)
13158 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
13159 # instead of respecting HTML-style headings
13161 Section extraction, mixed wiki and html (section 1)
13177 Section extraction, mixed wiki and html (section 2)
13193 # Formerly testing for bug 3342
13195 Section extraction, heading surrounded by <noinclude>
13199 <noinclude>==unmarked==</noinclude>
13205 # Test behavior of bug 19910
13207 Sectiion with all-equals
13212 The line above must have a trailing space
13215 But just in case it doesn't...
13219 But just in case it doesn't...
13223 Section replacement test (section 0)
13254 Section replacement test (section 1)
13283 Section replacement test (section 2)
13313 Section replacement test (section 3)
13344 Section replacement test (section 4)
13371 Section replacement test (section 5)
13402 Section replacement test (section 6)
13432 Section replacement test (section 7)
13463 Section replacement test (section 8)
13494 Section replacement test (section 9)
13523 Section replacement test (section 10)
13553 Section replacement test with initial whitespace (bug 13728)
13557 Preformatted initial line
13561 Preformatted initial line
13568 Section extraction, heading followed by pre with 20 spaces (bug 6398)
13580 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
13593 Section extraction, <pre> around bogus header (bug 10309)
13610 Section replacement, <pre> around bogus header (bug 10309)
13612 noxml replace=2,"xxx"
13633 Handling of 
 in URLs
13639 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
13648 5 quotes, code coverage +1 line (php)
13655 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
13657 5 quotes, code coverage +1 line (parsoid)
13663 <p><b><i></i></b></p>
13667 Special:Search page linking.
13671 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
13678 title=[[Parser test]]
13683 * {{FULLPAGENAMEE}}
13685 * {{BASEPAGENAMEE}}
13689 * {{ROOTPAGENAMEE}}
13691 * {{TALKPAGENAMEE}}
13692 * {{SUBJECTPAGENAME}}
13693 * {{SUBJECTPAGENAMEE}}
13696 * {{NAMESPACENUMBER}}
13700 * {{SUBJECTSPACEE}}
13701 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
13724 <li> Talk:Parser test
13726 <li> Talk:Parser_test
13746 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
13751 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
13761 image4 |300px| centre
13762 image5.svg| http://///////
13767 <ul class="gallery mw-gallery-traditional">
13768 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13769 <div class="thumb" style="height: 150px;">Image1.png</div>
13770 <div class="gallerytext">
13773 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13774 <div class="thumb" style="height: 150px;">Image2.gif</div>
13775 <div class="gallerytext">
13780 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13781 <div class="thumb" style="height: 150px;">Image3</div>
13782 <div class="gallerytext">
13785 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13786 <div class="thumb" style="height: 150px;">Image4</div>
13787 <div class="gallerytext">
13792 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13793 <div class="thumb" style="height: 150px;">Image5.svg</div>
13794 <div class="gallerytext">
13795 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
13799 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13800 <div class="thumb" style="height: 150px;">* image6</div>
13801 <div class="gallerytext">
13809 Gallery (with options)
13811 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
13812 File:Nonexistant.jpg|caption
13813 File:Nonexistant.jpg
13814 image:foobar.jpg|some '''caption''' [[Main Page]]
13816 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
13819 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
13820 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
13821 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13822 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
13823 <div class="gallerytext">
13828 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13829 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
13830 <div class="gallerytext">
13833 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13834 <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>
13835 <div class="gallerytext">
13836 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13840 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13841 <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>
13842 <div class="gallerytext">
13845 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13846 <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>
13847 <div class="gallerytext">
13857 Gallery with wikitext inside caption
13860 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
13861 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
13864 <ul class="gallery mw-gallery-traditional">
13865 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13866 <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>
13867 <div class="gallerytext">
13868 <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>
13872 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13873 <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>
13874 <div class="gallerytext">
13875 <p>This is a test template
13884 gallery (with showfilename option)
13886 <gallery showfilename>
13887 File:Nonexistant.jpg|caption
13888 File:Nonexistant.jpg
13889 image:foobar.jpg|some '''caption''' [[Main Page]]
13893 <ul class="gallery mw-gallery-traditional">
13894 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13895 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13896 <div class="gallerytext">
13897 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13902 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13903 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13904 <div class="gallerytext">
13905 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13909 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13910 <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>
13911 <div class="gallerytext">
13912 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13913 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13917 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13918 <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>
13919 <div class="gallerytext">
13920 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13929 Gallery (with namespace-less filenames)
13932 File:Nonexistant.jpg
13938 <ul class="gallery mw-gallery-traditional">
13939 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13940 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13941 <div class="gallerytext">
13944 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13945 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13946 <div class="gallerytext">
13949 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13950 <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>
13951 <div class="gallerytext">
13954 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13955 <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>
13956 <div class="gallerytext">
13964 HTML Hex character encoding (spells the word "JavaScript")
13966 JavaScript
13968 <p>JavaScript
13973 HTML Hex character encoding bogus encoding (bug 26437 regression check)
13977 <p>&#xsee;&#XSEE;
13982 HTML Hex character encoding mixed case
13991 __FORCETOC__ override
14003 ISBN 978-0-1234-56 789
14005 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
14010 ISBN followed by 5 spaces
14021 ISBN ISBN 1234567890
14023 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14028 Bug 22905: <abbr> followed by ISBN followed by </a>
14030 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
14032 <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>
14041 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
14046 Double RFC with a wiki link
14050 <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>
14059 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
14064 Centre-aligned image
14066 [[Image:foobar.jpg|centre]]
14068 <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>
14075 [[Image:foobar.jpg|none]]
14077 <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>
14082 Width + Height sized image (using px) (height is ignored)
14084 [[Image:foobar.jpg|640x480px]]
14086 <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>
14091 Width-sized image (using px, no following whitespace)
14093 [[Image:foobar.jpg|640px]]
14095 <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>
14100 Width-sized image (using px, with following whitespace - test regression from r39467)
14102 [[Image:foobar.jpg|640px ]]
14104 <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>
14109 Width-sized image (using px, with preceding whitespace - test regression from r39467)
14111 [[Image:foobar.jpg| 640px]]
14113 <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>
14118 Another italics / bold test
14126 # Note the results may be incorrect, as parserTest output included this:
14127 # XML error: Mismatched tag at byte 6120:
14128 # ...<dd> </dt></dl> </dd...
14159 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
14161 Images with the "|" character in the comment
14163 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
14165 <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>
14170 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14172 <html><script>alert(1);</script></html>
14174 <p><html><script>alert(1);</script></html>
14179 HTML with raw HTML ($wgRawHtml==true)
14183 <html><script>alert(1);</script></html>
14185 <p><script>alert(1);</script>
14190 Parents of subpages, one level up
14192 subpage title=[[Subpage test/L1/L2/L3]]
14196 <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>
14202 Parents of subpages, one level up, not named
14204 subpage title=[[Subpage test/L1/L2/L3]]
14208 <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>
14215 Parents of subpages, two levels up
14217 subpage title=[[Subpage test/L1/L2/L3]]
14223 <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
14224 </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>
14229 Parents of subpages, two levels up, without trailing slash or name.
14231 subpage title=[[Subpage test/L1/L2/L3]]
14240 Parents of subpages, two levels up, with lots of extra trailing slashes.
14242 subpage title=[[Subpage test/L1/L2/L3]]
14246 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14251 Subpage test/L1/L2/L3Sibling
14257 Transclusion of a sibling page (one level up)
14259 subpage title=[[Subpage test/L1/L2/L3]]
14268 Transclusion of a child page
14270 subpage title=[[Subpage test/L1/L2]]
14279 Non-transclusion because of too many up levels
14281 subpage title=[[Subpage test/L1/L2/L3]]
14283 {{../../../../More than parent}}
14285 <p>{{../../../../More than parent}}
14290 Definition list code coverage
14297 <dt> title  </dt>
14300 <dt> title </dt>
14311 Don't fall for the self-closing div
14313 <div>hello world</div/>
14315 <div>hello world</div>
14324 <p>[[:Template:Msg]]
14333 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
14337 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
14339 Always escape literal '>' in output, not just after '<'
14353 <p>This is a test template
14354 This is a test template
14366 Inclusion of !userCanEdit() content
14370 <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>
14376 Out-of-order TOC heading levels
14385 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14387 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
14389 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
14390 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
14393 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
14395 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
14396 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
14402 <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>
14403 <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>
14404 <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>
14405 <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>
14406 <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>
14407 <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>
14413 ISBN with a dummy number
14423 ISBN with space-delimited number
14427 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
14433 ISBN with multiple spaces, no number
14452 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14453 </p><p>ISBN 12345678901
14459 ISBN with trailing year (bug 8110)
14461 ISBN 1-234-56789-0 - 2006
14463 ISBN 1 234 56789 0 - 2006
14465 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
14466 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
14474 {{anchorencode:foo bar©#%n}}
14476 <p>foo_bar.C2.A9.23.25n
14481 anchorencode trims spaces
14483 {{anchorencode: __pretty__please__}}
14490 anchorencode deals with links
14492 {{anchorencode: [[hello|world]] [[hi]]}}
14499 anchorencode deals with templates
14501 {{anchorencode: {{Foo}} }}
14508 anchorencode encodes like the TOC generator: (bug 18431)
14510 === _ +:.3A%3A&&]] ===
14511 {{anchorencode: _ +:.3A%3A&&]] }}
14514 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
14515 <p>.2B:.3A.253A.26.26.5D.5D
14520 Bug 6200: blockquotes and paragraph formatting
14541 Bug 8293: Use of center tag ruins paragraph formatting
14562 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
14566 <span><s>x</span></s>
14568 <p><span><s>x</span></s></span>
14573 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
14577 <span><s>x</span></s>
14579 <p><span><s>x</s></span><s></s>
14584 ### Language variants related tests
14587 Self-link in language variants
14589 title=[[Dunav]] language=sr
14591 Both [[Dunav]] and [[Дунав]] are names for this river.
14593 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
14604 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
14606 title=[[Duna]] language=sr
14608 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
14610 <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.
14615 Link to a section of a variant of this title shouldn't be parsed as self-link
14617 title=[[Duna]] language=sr
14619 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
14621 <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.
14626 Link to pages in language variants
14630 Main Page can be written as [[Маин Паге]]
14632 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
14638 Multiple links to pages in language variants
14642 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
14644 <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>.
14650 Simple template in language variants
14656 <p>This is a test template
14662 Template with explicit namespace in language variants
14668 <p>This is a test template
14674 Basic test for template parameter in language variants
14678 {{парамтест|param=foo}}
14680 <p>This is a test template with parameter foo
14686 Simple category in language variants
14690 [[Category:МедиаWики Усер'с Гуиде]]
14692 <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>
14709 Don't convert blue categorylinks to another variant (bug 33210)
14713 [[A]][[Category:分类]]
14715 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
14720 Stripping -{}- tags (language variants)
14724 Latin proverb: -{Ne nuntium necare}-
14726 <p>Latin proverb: Ne nuntium necare
14732 Prevent conversion with -{}- tags (language variants)
14734 language=sr variant=sr-ec
14736 Latinski: -{Ne nuntium necare}-
14738 <p>Латински: Ne nuntium necare
14744 Prevent conversion of text with -{}- tags (language variants)
14746 language=sr variant=sr-ec
14748 Latinski: -{Ne nuntium necare}-
14750 <p>Латински: Ne nuntium necare
14756 Prevent conversion of links with -{}- tags (language variants)
14758 language=sr variant=sr-ec
14762 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14768 -{}- tags within headlines (within html for parserConvert())
14770 language=sr variant=sr-ec
14774 <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>
14780 Explicit definition of language variant alternatives
14782 language=zh variant=zh-tw
14784 -{zh:China;zh-tw:Taiwan}-, not China
14786 <p>Taiwan, not China
14792 Conversion around HTML tags
14794 language=sr variant=sr-ec
14796 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
14797 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
14800 <span title="ЛаCтин">ски</span>
14806 Explicit session-wise language variant mapping (A flag and - flag)
14808 language=zh variant=zh-tw
14810 Taiwan is not China.
14811 But -{A|zh:China;zh-tw:Taiwan}- is China,
14812 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
14813 and -{China}- is China.
14815 <p>Taiwan is not China.
14816 But Taiwan is Taiwan,
14817 (This should be stripped!)
14818 and China is China.
14823 Explicit session-wise language variant mapping (H flag for hide)
14825 language=zh variant=zh-tw
14827 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
14830 <p>(This should be stripped!)
14836 Adding explicit conversion rule for title (T flag)
14838 language=zh variant=zh-tw showtitle
14840 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14843 <p>Should be stripped!
14848 Testing that changing the language variant here in the tests actually works
14850 language=zh variant=zh showtitle
14852 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14855 <p>Should be stripped!
14860 Recursive conversion of alt and title attrs shouldn't clear converter state
14862 language=zh variant=zh-cn showtitle
14864 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
14865 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
14869 Should be stripped<span title="Exclamation">!</span>
14874 Bug 24072: more test on conversion rule for title
14876 language=zh variant=zh-tw showtitle
14878 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14879 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
14882 <p>This should be stripped!
14883 This won't take interferes with the title rule.
14888 Partly disable title conversion if variant == main language code
14890 language=zh variant=zh title=[[ZH]] showtitle
14892 -{T|zh-cn:CN;zh-tw:TW}-
14900 Partly disable title conversion if variant == main language code, more
14902 language=zh variant=zh title=[[ZH]] showtitle
14912 Raw output of variant escape tags (R flag)
14914 language=zh variant=zh-tw
14916 Raw: -{R|zh:China;zh-tw:Taiwan}-
14918 <p>Raw: zh:China;zh-tw:Taiwan
14923 Nested using of manual convert syntax
14925 language=zh variant=zh-hk
14927 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
14929 <p>Nested: Hello Hong Kong!
14934 Proper conversion of text in external links
14936 language=sr variant=sr-ec
14938 http://www.google.com
14939 gopher://www.google.com
14940 [http://www.google.com http://www.google.com]
14941 [gopher://www.google.com gopher://www.google.com]
14942 [https://www.google.com irc://www.google.com]
14943 [ftp://www.google.com www.google.com/ftp://dir]
14944 [//www.google.com www.google.com]
14946 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14947 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14948 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14949 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14950 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
14951 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
14952 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
14957 Do not convert roman numbers to language variants
14959 language=sr variant=sr-ec
14963 <p>Фридрих IV је цар.
14968 Unclosed language converter markup "-{"
14979 Don't convert raw rule "-{R|=>}-" to "=>"
14990 Don't break link parsing if language converter markup is in the caption.
14992 language=sr variant=sr-ec
14994 [[Main Page|-{R|main page}-]]
14996 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
15000 # This test is currently broken in the PHP parser (bug 52661)
15002 Don't break image parsing if language converter markup is in the caption.
15007 [[File:Foobar.jpg|-{R|caption}-]]
15009 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
15013 # This test is currently broken in the PHP parser (bug 52661)
15015 Don't break list handling if language converter markup is in the item.
15017 language=zh variant=zh-cn
15020 ;-{zh-cn:AAA;zh-tw:BBB}-
15027 # This test is currently broken in the PHP parser (bug 52661)
15029 Don't break table handling if language converter markup is in the cell.
15031 language=sr variant=sr-ec
15048 Bug 529: Uncovered bullet
15061 # Plain MediaWiki does not remove empty lists, but tidy actually does.
15062 # Templates in Wikipedia rely on this behavior, as tidy has always been
15063 # enabled there. These tests are normally run *without* tidy, so specify the
15064 # full output here.
15065 # To test realistic parsing behavior, apply a tidy-like transformation to both
15066 # the expected output and your parser's output.
15068 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
15070 ******* Foo {{bullet}}
15100 Bug 529: Uncovered table already at line-start
15123 Bug 529: Uncovered bullet in parser function result
15125 * Foo {{lc:{{bullet}} }}
15137 Bug 5678: Double-parsed template argument
15139 {{lc:{{{1}}}|hello}}
15146 Bug 5678: Double-parsed template invocation
15148 {{lc:{{paramtest {{!}} param = hello }} }}
15150 <p>{{paramtest | param = hello }}
15155 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
15158 title=[[Main Page]]
15160 {{PRVNÍVELKÉ:ěščř}}
15161 {{prvnívelké:ěščř}}
15181 Morwen/13: Unclosed link followed by heading
15188 <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>
15193 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
15200 <h1><span class="mw-headline" id="heading">heading</span></h1>
15205 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
15212 <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>
15227 Paragraphs inside divs (no extra line breaks)
15239 Paragraphs inside divs (extra line break on open)
15254 Paragraphs inside divs (extra line break on close)
15269 Paragraphs inside divs (extra line break on open and close)
15286 Nesting tags, paragraphs on lines which begin with <div>
15290 <div></div><strong>A
15299 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
15301 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
15303 <blockquote>Line one
15305 Line two</blockquote>
15307 <blockquote>Line one
15308 Line two</blockquote>
15313 Bug 6200: paragraphs inside blockquotes (extra line break on open)
15318 Line two</blockquote>
15323 Line two</blockquote>
15328 Bug 6200: paragraphs inside blockquotes (extra line break on close)
15330 <blockquote>Line one
15335 <blockquote>Line one
15343 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
15360 Paragraphs inside blockquotes/divs (no extra line breaks)
15362 <blockquote><div>Line one
15364 Line two</div></blockquote>
15366 <blockquote><div>Line one
15367 Line two</div></blockquote>
15372 Paragraphs inside blockquotes/divs (extra line break on open)
15377 Line two</div></blockquote>
15382 Line two</div></blockquote>
15387 Paragraphs inside blockquotes/divs (extra line break on close)
15389 <blockquote><div>Line one
15392 </div></blockquote>
15394 <blockquote><div>Line one
15397 </div></blockquote>
15402 Paragraphs inside blockquotes/divs (extra line break on open and close)
15408 </div></blockquote>
15414 </div></blockquote>
15419 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
15421 wgLinkHolderBatchSize=0
15427 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
15428 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
15429 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
15434 Free external link invading image caption
15436 [[Image:Foobar.jpg|thumb|http://x|hello]]
15438 <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>
15443 Bug 15196: localised external link numbers
15447 [http://en.wikipedia.org/]
15449 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
15454 Multibyte character in padleft
15456 {{padleft:-Hello|7|Æ}}
15463 Multibyte character in padright
15465 {{padright:Hello-|7|Æ}}
15472 formatdate parser function
15474 {{#formatdate:2009-03-24}}
15476 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
15481 formatdate parser function, with default format
15483 {{#formatdate:2009-03-24|mdy}}
15485 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
15490 Spacing of numbers in formatted dates
15492 {{#formatdate:January 15}}
15494 <p><span class="mw-formatted-date" title="01-15">January 15</span>
15499 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
15501 language=nl title=[[MediaWiki:Common.css]]
15503 {{#formatdate:2009-03-24|dmy}}
15505 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
15518 Edit comment with link
15522 I like the [[Main Page]] a lot
15524 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
15528 Edit comment with link and link text
15532 I like the [[Main Page|best pages]] a lot
15534 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
15538 Edit comment with link and link text with suffix
15542 I like the [[Main Page|best page]]s a lot
15544 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
15548 Edit comment with section link (non-local, eg in history list)
15550 comment title=[[Main Page]]
15552 /* External links */ removed bogus entries
15554 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
15558 Edit comment with section link and text before it (non-local, eg in history list)
15560 comment title=[[Main Page]]
15562 pre-comment text /* External links */ removed bogus entries
15564 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>
15568 Edit comment with section link (local, eg in diff view)
15570 comment local title=[[Main Page]]
15572 /* External links */ removed bogus entries
15574 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
15578 Edit comment with subpage link (bug 14080)
15582 title=[[Subpage test]]
15584 Poked at a [[/subpage]] here...
15586 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
15590 Edit comment with subpage link and link text (bug 14080)
15594 title=[[Subpage test]]
15596 Poked at a [[/subpage|neat little page]] here...
15598 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
15602 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
15605 title=[[Subpage test]]
15607 Poked at a [[/subpage]] here...
15609 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
15613 Edit comment with bare anchor link (local, as on diff)
15617 title=[[Main Page]]
15621 <a href="#section">#section</a>
15625 Edit comment with bare anchor link (non-local, as on history)
15628 title=[[Main Page]]
15632 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
15636 Anchor starting with underscore
15640 <p><a href="#_ref">One</a>
15645 Id starting with underscore
15647 <div id="_ref"></div>
15649 <div id="_ref"></div>
15654 Space normalisation on autocomment (bug 22784)
15657 title=[[Main Page]]
15659 /* __hello__world__ */
15661 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
15665 percent-encoding and + signs in comments (Bug 26410)
15669 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
15671 <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>
15675 Bad images - basic functionality
15684 Bad images - bug 16039: text after bad image disappears
15698 Verify that displaytitle works (bug #22501) no displaytitle
15702 wgAllowDisplayTitle=true
15703 wgRestrictDisplayTitle=false
15705 this is not the the title
15708 <p>this is not the the title
15713 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
15718 wgAllowDisplayTitle=true
15719 wgRestrictDisplayTitle=false
15721 this is not the the title
15722 {{DISPLAYTITLE:whatever}}
15725 <p>this is not the the title
15730 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
15735 wgAllowDisplayTitle=true
15736 wgRestrictDisplayTitle=true
15738 this is not the the title
15739 {{DISPLAYTITLE:whatever}}
15742 <p>this is not the the title
15747 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
15752 wgAllowDisplayTitle=true
15753 wgRestrictDisplayTitle=true
15755 this is not the the title
15756 {{DISPLAYTITLE:screen}}
15759 <p>this is not the the title
15764 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
15769 wgAllowDisplayTitle=false
15771 this is not the the title
15772 {{DISPLAYTITLE:screen}}
15775 <p>this is not the the title
15776 <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>
15781 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
15786 wgAllowDisplayTitle=false
15788 this is not the the title
15791 <p>this is not the the title
15796 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
15801 wgAllowDisplayTitle=true
15802 wgRestrictDisplayTitle=true
15804 this is not the the title
15805 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
15807 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
15808 <p>this is not the the title
15813 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
15818 wgAllowDisplayTitle=true
15819 wgRestrictDisplayTitle=true
15821 this is not the the title
15822 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
15824 <span style="color: red;">s</span>creen
15825 <p>this is not the the title
15830 preload: check <noinclude> and <includeonly>
15834 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
15840 preload: check <onlyinclude>
15844 Goodbye <onlyinclude>Hello world</onlyinclude>
15850 preload: can pass tags through if we want to
15854 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
15856 <includeonly>Hello world</includeonly>
15860 preload: check that it doesn't try to do tricks
15864 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
15866 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
15870 Play a bit with r67090 and bug 3158
15874 <div style="width:50% !important"> </div>
15875 <div style="width:50% !important"> </div>
15876 <div style="width:50% !important"> </div>
15877 <div style="border : solid;"> </div>
15879 <div style="width:50% !important"> </div>
15880 <div style="width:50% !important"> </div>
15881 <div style="width:50% !important"> </div>
15882 <div style="border : solid;"> </div>
15887 HTML5 data attributes
15889 <span data-foo="bar">Baz</span>
15890 <p data-abc-def_hij="">Quuz</p>
15892 <p><span data-foo="bar">Baz</span>
15894 <p data-abc-def_hij="">Quuz</p>
15899 percent-encoding and + signs in internal links (Bug 26410)
15901 [[User:+%]] [[Page+title%]]
15902 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
15903 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
15904 [[%33%45]] [[%33%45+]]
15906 <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>
15907 <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>
15908 <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>
15909 <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>
15914 Special characters in embedded file links (bug 27679)
15916 [[File:Contains & ampersand.jpg]]
15917 [[File:Does not exist.jpg|Title with & ampersand]]
15919 <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>
15920 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
15926 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
15928 Text's been normalized?
15930 <p>Text's been normalized?
15935 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
15937 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
15939 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
15944 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
15946 [http://www.example.org/ ideograms]
15948 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
15953 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
15955 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
15957 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
15981 Bug 31098 Template which includes system messages which includes the template
15985 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15986 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15991 Bug31490 Turkish: ucfirst 'blah'
16002 Bug31490 Turkish: ucfirst 'ix'
16013 Bug31490 Turkish: lcfirst 'BLAH'
16024 Bug31490 Turkish: ucfırst (with a dotless i)
16030 <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>
16035 Bug31490 ucfırst (with a dotless i) with English language
16041 <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>
16046 Bug 26375: TOC with italics
16048 title=[[Main Page]]
16051 == ''Lost'' episodes ==
16053 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16055 <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>
16059 <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>
16064 Bug 26375: TOC with bold
16066 title=[[Main Page]]
16069 == '''should be bold''' then normal text ==
16071 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16073 <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>
16077 <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>
16082 Bug 33845: Headings become cursive in TOC when they contain an image
16084 title=[[Main Page]]
16087 == Image [[Image:foobar.jpg]] ==
16089 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16091 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
16095 <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>
16100 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
16102 title=[[Main Page]]
16105 == <blockquote>Quote</blockquote> ==
16107 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16109 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
16113 <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>
16118 Unclosed tags in TOC
16120 title=[[Main Page]]
16124 <small>Hanc marginis exiguitas non caperet.</small>
16127 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16129 <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>
16133 <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>
16134 <p><small>Hanc marginis exiguitas non caperet.</small>
16140 Multiple tags in TOC
16143 == <i>Foo</i> <b>Bar</b> ==
16145 == <i>Foo</i> <blockquote>Bar</blockquote> ==
16147 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16149 <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>
16150 <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>
16154 <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>
16155 <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>
16160 Tags with parameters in TOC
16163 == <sup class="in-h2">Hello</sup> ==
16165 == <sup class="a > b">Evilbye</sup> ==
16167 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16169 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
16170 <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>
16174 <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>
16175 <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>
16180 span tags with directionality in TOC
16183 == <span dir="ltr">C++</span> ==
16185 == <span dir="rtl">זבנג!</span> ==
16187 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
16189 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
16191 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
16193 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16195 <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>
16196 <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>
16197 <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>
16198 <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>
16199 <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>
16203 <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>
16204 <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>
16205 <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>
16206 <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>
16207 <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>
16214 == {{int:headline_sample}} ==
16218 Bug 32057: Title needed when expanding <h> nodes.
16220 title=[[Main Page]]
16224 <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>
16229 Strip marker in urlencode
16231 {{urlencode:x<nowiki/>y}}
16232 {{urlencode:x<nowiki/>y|wiki}}
16233 {{urlencode:x<nowiki/>y|path}}
16260 Strip marker in formatNum
16262 {{formatnum:1<nowiki/>2}}
16263 {{formatnum:1<nowiki/>2|R}}
16271 Check noCommafy in formatNum
16275 {{formatnum:123456.78}}
16276 {{formatnum:123456.78|NOSEP}}
16284 Strip marker in grammar
16288 {{grammar:elative|foo<nowiki/>bar}}
16295 Strip marker in padleft
16297 {{padleft:|2|x<nowiki/>y}}
16304 Strip marker in padright
16306 {{padright:|2|x<nowiki/>y}}
16313 Strip marker in anchorencode
16315 {{anchorencode:x<nowiki/>y}}
16322 nowiki inside link inside heading (bug 18295)
16324 ==[[foo|x<nowiki>y</nowiki>z]]==
16326 <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>
16331 new support for bdi element (bug 31817)
16333 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
16335 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
16340 Ignore pipe between table row attributes
16344 |- id=foo | style='color: red'
16352 <tr id="foo" style="color: red">
16359 Gallery override link with WikiLink (bug 34852)
16362 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
16365 <ul class="gallery mw-gallery-traditional">
16366 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16367 <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>
16368 <div class="gallerytext">
16378 Gallery override link with absolute external link (bug 34852)
16381 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
16384 <ul class="gallery mw-gallery-traditional">
16385 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16386 <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>
16387 <div class="gallerytext">
16397 Gallery override link with malicious javascript (bug 34852)
16400 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
16403 <ul class="gallery mw-gallery-traditional">
16404 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16405 <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>
16406 <div class="gallerytext">
16416 Gallery with invalid title as link (bug 43964)
16419 File:foobar.jpg|link=<
16422 <ul class="gallery mw-gallery-traditional">
16423 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16424 <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>
16425 <div class="gallerytext">
16433 Language parser function
16442 Padleft and padright as substr
16444 {{padleft:|3|abcde}}
16445 {{padright:|3|abcde}}
16453 Special parser function
16455 {{#special:RandomPage}}
16456 {{#special:BaDtItLe}}
16457 {{#special:Foobar}}
16466 Bug 34939 - Case insensitive link parsing ([HttP://])
16468 [HttP://MediaWiki.Org/]
16470 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
16475 Bug 34939 - Case insensitive link parsing ([HttP:// title])
16477 [HttP://MediaWiki.Org/ MediaWiki]
16479 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
16484 Bug 34939 - Case insensitive link parsing (HttP://)
16486 HttP://MediaWiki.Org/
16488 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
16507 <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>
16508 <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>
16509 <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>
16510 <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>
16511 <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>
16517 ### Parsoids-specific tests
16518 ### Parsoid-PHP parser incompatibilities
16521 1. SOL-sensitive wikitext tokens as template-args
16523 parsoid=wt2html,wt2wt
16529 <span about="#mwt1" typeof="mw:Transclusion">
16530 </span><ul about="#mwt1"><li>a</li>
16532 <span about="#mwt2" typeof="mw:Transclusion">
16533 </span><ol about="#mwt2"><li>a</li>
16535 <span about="#mwt3" typeof="mw:Transclusion">
16536 </span><dl about="#mwt3"><dd>a</dd>
16540 #### ----------------------------------------------------------------
16541 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
16542 #### tags. Parsoid's output for these tags differs from that of the
16544 #### ----------------------------------------------------------------
16547 Ref: 1. ref-location should be replaced with an index span
16552 B <ref name="x">foo</ref>
16555 <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>
16556 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>
16557 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>
16561 Ref: 2. ref-tags with identical names should all get the same index
16565 A <ref name="x">foo</ref>
16568 <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>
16569 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>
16573 Ref: 3. spaces in ref-names should be ignored
16577 A <ref name="x">foo</ref>
16578 B <ref name=" x " />
16581 <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>
16582 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>
16583 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>
16587 Ref: 4. 'constructor' should be accepted as a valid ref-name
16588 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
16592 A <ref name="constructor">foo</ref>
16594 <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>
16598 Ref: 5. body should accept generic wikitext
16603 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
16608 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid='{\"dsr\":[19,40,3,3]}'><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" data-parsoid='{\"stx\":\"simple\",\"a\":{\"href\":\"./Bolded_link\"},\"sa\":{\"href\":\"bolded link\"},\"dsr\":[22,37,2,2]}'>bolded link</a></b> and this is a <span about=\"#mwt5\" typeof=\"mw:Transclusion\" data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"echo\",\"href\":\"./Template:Echo\"},\"params\":{\"1\":{\"wt\":\"transclusion\"}},\"i\":0}}]}' data-parsoid='{\"dsr\":[55,76,null,null],\"pi\":[[{\"k\":\"1\",\"spc\":[\"\",\"\",\"\",\"\"]}]]}'>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>
16610 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
16611 <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="#mwt5" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}'>transclusion</span>
16617 Ref: 6. indent-pres should not be output in ref-body
16629 <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>
16631 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
16632 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
16640 Ref: 7. No p-wrapping in ref-body
16659 <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>
16661 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16662 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
16677 Ref: 8. transclusion wikitext has lower precedence
16681 A <ref> foo {{echo|</ref> B C}}
16685 <p>A <span class="reference" data-mw="{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid='{\"src\":\"{{\",\"dsr\":[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>
16686 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
16687 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <span typeof="mw:Nowiki">{{</span>echo|</li>
16692 Ref: 9. unclosed comments should not leak out of ref-body
16696 A <ref> foo <!--</ref> B C
16699 <p>A <span 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>
16700 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
16701 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
16706 Ref: 10. Unclosed HTML tags should not leak out of ref-body
16710 A <ref> <b> foo </ref> B C
16714 <p data-parsoid='{"dsr":[0,26,0,0]}'>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"<b data-parsoid='{\"stx\":\"html\",\"autoInsertedEnd\":true,\"dsr\":[8,16,3,0]}'> foo </b>"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref> <b> foo </ref>","dsr":[2,22,5,6]}'><a href="#cite_note-1">[1]</a></span> B C</p>
16717 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />","dsr":[28,42,2,2]}' data-mw='{"name":"references","attrs":{}}'>
16718 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b data-parsoid='{"stx":"html","autoInsertedEnd":true,"dsr":[8,16,3,0]}'> foo </b></li>
16723 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
16730 <p data-parsoid='{"dsr":[0,37,0,0]}'>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" data-parsoid='{"src":"<ref>foo</ref>","dsr":[2,16,5,6]}'><a href="#cite_note-1">[1]</a></span> B
16731 C <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bar</ref>","dsr":[21,35,5,6]}'><a href="#cite_note-2">[2]</a></span> D</p>
16735 Ref: 12. ref-tags act as trailing newline migration barrier
16739 <!--the newline at the end of this line moves out of the p-tag-->a
16741 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
16746 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
16749 <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>
16750 <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>
16757 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
16765 <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
16766 <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>
16770 Ref: 14. A nested ref-tag should be emitted as plain text
16774 <ref>foo <ref>bar</ref> baz</ref>
16778 <p data-parsoid='{"dsr":[0,33,0,0]}'><span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo &lt;ref>bar&lt;/ref> baz"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>foo <ref>bar</ref> baz</ref>","dsr":[0,33,5,6]}'><a href="#cite_note-1">[1]</a></span></p>
16780 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />","dsr":[35,49,2,2]}' data-mw='{"name":"references","attrs":{}}'>
16781 <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>
16786 Ref: 15. ref-tags with identical names should get identical indexes
16790 A1 <ref name="a">foo</ref> A2 <ref name="a" />
16791 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
16795 <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>
16796 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>
16798 <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>
16803 References: 1. references tag without any refs should be handled properly
16809 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
16813 References: 2. references tag with group only outputs references from that group
16817 A <ref group="a">foo</ref>
16818 B <ref group="b">bar</ref>
16820 <references group='a' />
16822 <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>
16823 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>
16825 <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>
16830 References: 3. ref list should be cleared after processing references
16842 <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>
16844 <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>
16847 <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>
16849 <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>
16854 References: 4. only referenced group should be cleared after processing references
16858 A <ref group="a">afoo</ref>
16861 <references group="a"/>
16867 <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>
16868 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>
16870 <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>
16873 <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>
16875 <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>
16880 References: 5. ref tags in references should be processed while ignoring all other content
16885 B <ref name="b">bar</ref>
16888 <ref name="a">foo</ref>
16889 This should just get lost.
16892 <p data-parsoid='{"dsr":[0,57,0,0]}'>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" data-parsoid='{"src":"<ref name=\"a\" />","dsr":[2,18,16,0]}'><a href="#cite_note-a-1">[1]</a></span>
16893 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" data-parsoid='{"src":"<ref name=\"b\">bar</ref>","dsr":[21,44,14,6]}'><a href="#cite_note-b-2">[2]</a></span></p>
16896 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-parsoid='{"src":"<references>\n<ref name=\"a\">foo</ref>\nThis should just get lost.\n</references>","dsr":[46,123,2,2]}' 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='{\"name\":\"ref\",\"body\":{\"html\":\"foo\"},\"attrs\":{\"name\":\"a\"}}' rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-a-1\">[1]</a></span>\n"},"attrs":{}}'>
16897 <li about="#cite_note-a-1" id="cite_note-a-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-a-1-0">↑</a></span> foo</li>
16898 <li about="#cite_note-b-2" id="cite_note-b-2" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> bar</li>
16903 References: 6. <references /> from a transclusion
16907 {{echo|<references />}}
16909 <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>
16913 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
16917 A <ref>foo bar for a</ref>
16923 <ref name="b">foo</ref>
16926 <p data-parsoid='{"dsr":[0,45,0,0]}'>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" data-parsoid='{"src":"<ref>foo bar for a</ref>","dsr":[2,26,5,6]}'><a href="#cite_note-1">[1]</a></span>
16927 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" data-parsoid='{"src":"<ref name=\"b\" />","dsr":[29,45,16,0]}'><a href="#cite_note-b-2">[2]</a></span></p>
16930 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-parsoid='{"src":"<references />","dsr":[47,61,2,2]}' data-mw='{"name":"references","attrs":{}}'>
16931 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo bar for a</li>
16932 <li about="#cite_note-b-2" id="cite_note-b-2" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> </li></ol>
16935 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-parsoid='{"src":"<references>\n<ref name=\"b\">foo</ref>\n</references>","dsr":[63,113,2,2]}' data-mw='{"name":"references","body":{"extsrc":"<ref name=\"b\">foo</ref>","html":"\n<span about=\"#mwt10\" class=\"reference\" data-mw='{\"name\":\"ref\",\"body\":{\"html\":\"foo\"},\"attrs\":{\"name\":\"b\"}}' rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-b-1\">[1]</a></span>\n"},"attrs":{}}'>
16936 <li about="#cite_note-b-1" id="cite_note-b-1" data-parsoid="{}"><span rel="mw:referencedBy">↑</span> foo</li>
16940 #### ----------------------------------------------------------------
16941 #### The following section of tests are primarily to test
16942 #### wikitext escaping capabilities of Parsoid. Given that
16943 #### escaping can be done any number of ways, the wikitext (input)
16944 #### is always adjusted to reflect how Parsoid adds nowiki
16947 #### We are marking several tests as parsoid-only since the
16948 #### HTML in the result section is different from what the
16949 #### PHP parser generates for it.
16950 #### ----------------------------------------------------------------
16953 #### --------------- Headings ---------------
16955 #### 1. Nested inside html <h1>=foo=</h1>
16956 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
16957 #### 3. Nested inside html with wikitext split by html tags
16958 #### 4. No escape needed
16959 #### 5. Empty headings <h1></h1>
16960 #### 6. Heading chars in SOL context
16961 #### ----------------------------------------
16963 Headings: 0. Unnested
16967 <nowiki>=foo=</nowiki>
16969 <nowiki> =foo= </nowiki>
16971 <nowiki>=foo=</nowiki>
16973 =foo''a''<nowiki>=</nowiki>
16975 <p><span typeof="mw:Nowiki">=foo=</span></p>
16977 <p><span typeof="mw:Nowiki"> =foo= </span>
16979 <span typeof="mw:Nowiki">=foo=</span></p>
16981 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
16985 Headings: 1. Nested inside html
16989 =<nowiki>=foo=</nowiki>=
16991 ==<nowiki>=foo=</nowiki>==
16993 ===<nowiki>=foo=</nowiki>===
16995 ====<nowiki>=foo=</nowiki>====
16997 =====<nowiki>=foo=</nowiki>=====
16999 ======<nowiki>=foo=</nowiki>======
17001 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
17002 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
17003 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
17004 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
17005 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
17006 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
17010 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
17015 <nowiki>*</nowiki>bar
17021 <nowiki>=bar=</nowiki>
17029 Headings: 3. Nested inside html with wikitext split by html tags
17033 =='''bold'''<nowiki>foo=</nowiki>=
17035 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
17039 Headings: 4a. No escaping needed (testing just h1 and h2)
17057 =<nowiki>=</nowiki>=
17065 <h1><i>=</i>foo=</h1>
17066 <h1><span typeof="mw:Nowiki">=</span></h1>
17070 Headings: 4b. No escaping needed (inside p-tags)
17085 Headings: 5. Empty headings
17097 =====<nowiki/>=====
17099 ======<nowiki/>======
17110 Headings: 6a. Heading chars in SOL context (with trailing spaces)
17114 <nowiki>=a=</nowiki>
17116 <nowiki>=a=</nowiki>
17118 <nowiki>=a=</nowiki>
17120 <nowiki>=a=</nowiki>
17129 Headings: 6b. Heading chars in SOL context (with trailing newlines)
17157 Headings: 6c. Heading chars in SOL context (leading newline break)
17162 <nowiki>=b=</nowiki>
17169 Headings: 6d. Heading chars in SOL context (with interspersed comments)
17173 <!--c0--><nowiki>=a=</nowiki>
17175 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
17177 <p><!--c0-->=a=</p>
17178 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
17182 Headings: 6d. Heading chars in SOL context (No escaping needed)
17191 #### --------------- Lists ---------------
17192 #### 0. Outside nests (*foo, etc.)
17193 #### 1. Nested inside html <ul><li>*foo</li></ul>
17194 #### 2. Inside definition lists
17195 #### 3. Only bullets at start should be escaped
17196 #### 4. No escapes needed
17197 #### 5. No unnecessary escapes
17198 #### 6. Escape bullets in SOL position
17199 #### 7. Escape bullets in a multi-line context
17200 #### ----------------------------------------
17203 Lists: 0. Outside nests
17205 <nowiki>*</nowiki>foo
17207 <nowiki>#</nowiki>foo
17215 Lists: 1. Nested inside html
17217 *<nowiki>*foo</nowiki>
17219 *<nowiki>#foo</nowiki>
17221 *<nowiki>:foo</nowiki>
17223 *<nowiki>;foo</nowiki>
17225 #<nowiki>*foo</nowiki>
17227 #<nowiki>#foo</nowiki>
17229 #<nowiki>:foo</nowiki>
17231 #<nowiki>;foo</nowiki>
17269 Lists: 2. Inside definition lists
17271 ;<nowiki>;foo</nowiki>
17273 ;<nowiki>:foo</nowiki>
17275 ;<nowiki>:foo</nowiki>
17278 :<nowiki>:foo</nowiki>
17302 Lists: 3. Only bullets at start of text should be escaped
17304 *<nowiki>*foo*bar</nowiki>
17306 *<nowiki>*foo</nowiki>''it''*bar
17313 <li>*foo<i>it</i>*bar
17320 Lists: 4. No escapes needed
17339 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
17345 Lists: 5. No unnecessary escapes
17347 * bar <span><nowiki>[[foo]]</nowiki></span>
17349 *=bar <span><nowiki>[[foo]]</nowiki></span>
17351 *[[bar <span><nowiki>[[foo]]</nowiki></span>
17353 *]]bar <span><nowiki>[[foo]]</nowiki></span>
17355 *=bar <span>foo]]</span>=
17360 <li> bar <span>[[foo]]</span>
17364 <li>=bar <span>[[foo]]</span>
17368 <li>[[bar <span>[[foo]]</span>
17372 <li>]]bar <span>[[foo]]</span>
17376 <li>=bar <span>foo]]</span>=
17387 Lists: 6. Escape bullets in SOL position
17391 <!--cmt--><nowiki>*foo</nowiki>
17393 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
17397 Lists: 7. Escape bullets in a multi-line context
17400 <nowiki>*</nowiki>b
17407 #### --------------- HRs ---------------
17408 #### 1. Single line
17409 #### -----------------------------------
17412 HRs: 1. Single line
17416 ----<nowiki>----</nowiki>
17420 <hr><span typeof="mw:Nowiki">----</span>
17425 #### --------------- Tables ---------------
17426 #### 1a. Simple example
17427 #### 1b. No escaping needed (!foo)
17428 #### 1c. No escaping needed (|foo)
17429 #### 1d. No escaping needed (|}foo)
17431 #### 2a. Nested in td (<td>foo|bar</td>)
17432 #### 2b. Nested in td (<td>foo||bar</td>)
17433 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
17435 #### 3a. Nested in th (<th>foo!bar</th>)
17436 #### 3b. Nested in th (<th>foo!!bar</th>)
17437 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
17441 #### 4c. No escaping needed
17442 #### --------------------------------------
17445 Tables: 1a. Simple example
17456 Tables: 1b. No escaping needed
17465 Tables: 1c. No escaping needed
17474 Tables: 1d. No escaping needed
17483 Tables: 2a. Nested in td
17488 |<nowiki>foo|bar</nowiki>
17492 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
17496 Tables: 2b. Nested in td
17501 |<nowiki>foo||bar</nowiki>
17502 |''it''<nowiki>foo||bar</nowiki>
17506 <td><span typeof="mw:Nowiki">foo||bar</span></td>
17507 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
17511 Tables: 2c. Nested in td -- no escaping needed
17519 <table><tbody><tr><td>foo!!bar
17520 </td></tr></tbody></table>
17525 Tables: 3a. Nested in th
17533 <table><tbody><tr><th>foo!bar
17534 </th></tr></tbody></table>
17539 Tables: 3b. Nested in th
17544 !<nowiki>foo!!bar</nowiki>
17548 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
17553 Tables: 3c. Nested in th -- no escaping needed
17558 !<nowiki>foo||bar</nowiki>
17562 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
17566 Tables: 4a. Escape -
17573 |<nowiki>-bar</nowiki>
17577 <tr><th>-bar</th></tr>
17579 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
17583 Tables: 4b. Escape +
17590 |<nowiki>+bar</nowiki>
17594 <tr><th>+bar</th></tr>
17596 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
17600 Tables: 4c. No escaping needed
17618 <tr><td>foo-bar</td><td>foo+bar</td></tr>
17619 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
17627 ### SSS FIXME: Disabled right now because accurate html2wt
17628 ### on this snippet requires data-parsoid flags that we've
17629 ### stripped out of these tests. We should scheme how we
17630 ### we want to handle these kind of tests that require
17631 ### data-parsoid flags for accurate html2wt serialization
17634 Tables: 4d. No escaping needed
17652 #### --------------- Links ----------------
17653 #### 1. Quote marks in link text
17654 #### 2. Wikilinks: Escapes needed
17655 #### 3. Wikilinks: No escapes needed
17656 #### 4. Extlinks: Escapes needed
17657 #### 5. Extlinks: No escapes needed
17658 #### --------------------------------------
17660 Links 1. Quote marks in link text
17664 [[Foo|Foo<nowiki>''boo''</nowiki>]]
17666 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
17670 Links 2. WikiLinks: Escapes needed
17674 [[Foo|<nowiki>[Foobar]</nowiki>]]
17675 [[Foo|<nowiki>Foobar]</nowiki>]]
17676 [[Foo|x [Foobar] x]]
17677 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
17678 [[Foo|<nowiki>[[Bar]]</nowiki>]]
17679 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
17680 [[Foo|<nowiki>|Bar</nowiki>]]
17681 [[Foo|<nowiki>]]bar</nowiki>]]
17682 [[Foo|<nowiki>[[bar</nowiki>]]
17683 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
17685 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
17686 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
17687 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
17688 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
17689 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
17690 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
17691 <a href="Foo" rel="mw:WikiLink">|Bar</a>
17692 <a href="Foo" rel="mw:WikiLink">]]bar</a>
17693 <a href="Foo" rel="mw:WikiLink">[[bar</a>
17694 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
17698 Links 3. WikiLinks: No escapes needed
17705 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
17706 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
17710 Links 4. ExtLinks: Escapes needed
17714 [http://google.com <nowiki>[google]</nowiki>]
17715 [http://google.com <nowiki>google]</nowiki>]
17717 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
17718 <a href="http://google.com" rel="mw:ExtLink">google]</a>
17722 Links 5. ExtLinks: No escapes needed
17726 [http://google.com [google]
17728 <a href="http://google.com" rel="mw:ExtLink">[google</a>
17731 #### --------------- Quotes ---------------
17732 #### 1. Quotes inside <b> and <i>
17733 #### 2. Link fragments separated by <i> and <b> tags
17734 #### 3. Link fragments inside <i> and <b>
17735 #### 4. No escaping needed
17736 #### --------------------------------------
17738 1. Quotes inside <b> and <i>
17740 parsoid=html2wt,wt2wt
17742 ''<nowiki>'foo'</nowiki>''
17743 ''<nowiki>''foo''</nowiki>''
17744 ''<nowiki>'''foo'''</nowiki>''
17746 '''<nowiki>'foo'</nowiki>'''
17747 '''<nowiki>''foo''</nowiki>'''
17748 '''<nowiki>'''foo'''</nowiki>'''
17749 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
17750 '''foo'''<nowiki/>'s
17753 '<nowiki/>''foo''<nowiki/>'
17755 '''foo'''<nowiki/>'
17756 '<nowiki/>'''foo'''<nowiki/>'
17765 <b>foo'<i>bar'</i>baz</b>
17776 2. Link fragments separated by <i> and <b> tags
17778 [[''foo''<nowiki>hello]]</nowiki>
17780 [['''foo'''<nowiki>hello]]</nowiki>
17782 <p>[[<i>foo</i>hello]]
17783 </p><p>[[<b>foo</b>hello]]
17788 3. Link fragments inside <i> and <b>
17789 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
17790 this is one of the shortcomings of this format)
17792 ''[[foo''<nowiki>]]</nowiki>
17794 '''[[foo'''<nowiki>]]</nowiki>
17797 </p><p><b>[[foo</b>]]
17802 4. No escaping needed
17804 '<span>''bar''</span>'
17805 '<span>'''bar'''</span>'
17807 <p>'<span><i>bar</i></span>'
17808 '<span><b>bar</b></span>'
17812 #### ----------- Paragraphs ---------------
17813 #### 1. No unnecessary escapes
17814 #### --------------------------------------
17817 1. No unnecessary escapes
17819 bar <span><nowiki>[[foo]]</nowiki></span>
17821 =bar <span><nowiki>[[foo]]</nowiki></span>
17823 [[bar <span><nowiki>[[foo]]</nowiki></span>
17825 ]]bar <span><nowiki>[[foo]]</nowiki></span>
17827 =bar <span>foo]]</span><nowiki>=</nowiki>
17829 <p>bar <span>[[foo]]</span>
17830 </p><p>=bar <span>[[foo]]</span>
17831 </p><p>[[bar <span>[[foo]]</span>
17832 </p><p>]]bar <span>[[foo]]</span>
17833 </p><p>=bar <span>foo]]</span>=
17837 #### ----------------------- PRE --------------------------
17838 #### 1. Leading whitespace in SOL context should be escaped
17839 #### ------------------------------------------------------
17841 1. Leading whitespace in SOL context should be escaped
17845 <nowiki> </nowiki>a
17847 <nowiki> </nowiki> a
17849 <nowiki> </nowiki>a(tab)
17851 <nowiki> </nowiki> a
17853 <nowiki> </nowiki> a
17856 <nowiki> </nowiki>b
17859 <nowiki> </nowiki>b
17862 <nowiki> </nowiki> b
17868 <p><!--cmt--> a</p>
17877 #### --------------- Behavior Switches --------------------
17879 1. Valid behavior switches should be escaped
17883 <nowiki>__TOC__</nowiki>
17889 2. Invalid behavior switches should not be escaped
17900 #### --------------- HTML tags ---------------
17903 #### 3. multi-line html tag
17904 #### -----------------------------------------
17910 <a href="http://google.com">google</a>
17912 <a href="http://google.com">google</a>
17918 <nowiki><div>foo</div>
17919 <div style="color:red">foo</div></nowiki>
17921 <p><div>foo</div>
17922 <div style="color:red">foo</div>
17927 3. multi-line html tag
17942 <nowiki><ref>foo</ref></nowiki>
17944 <p><ref>foo</ref>
17948 #### --------------- Others ---------------
17952 <nowiki>foo</nowiki>
17954 <p><nowiki>foo</nowiki>
17958 ## The quote-char in the input is necessary for triggering the bug
17960 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
17962 parsoid=wt2wt,html2wt
17971 Tag-like HTML structures are passed through as text
17993 </p><p>1<d e>f
17998 # This was a bug in the PHP parser (see bug 17663 and its dups,
17999 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
18001 Tag names followed by punctuation should not be recognized as tags
18005 <p><s.ome> text
18010 HTML tag with necessary entities in attributes
18012 <span title="&amp;">foo</span>
18014 <p><span title="&amp;">foo</span>
18019 HTML tag with 'unnecessary' entity encoding in attributes
18021 <span title="&">foo</span>
18023 <p><span title="&">foo</span>
18028 HTML tag with broken attribute value quoting
18030 <span title="Hello world>Foo</span>
18032 <p><span>Foo</span>
18037 Parsoid-only: HTML tag with broken attribute value quoting
18041 <span title="Hello world>Foo</span>
18043 <p><span title="Hello world">Foo</span>
18048 Table with broken attribute value quoting
18051 | title="Hello world|Foo
18062 Table with broken attribute value quoting on consecutive lines
18065 | title="Hello world|Foo
18066 | style="color:red|Bar
18079 Parsoid-only: Table with broken attribute value quoting on consecutive lines
18084 | title="Hello world|Foo
18085 | style="color:red|Bar
18090 <td title="Hello world">Foo
18091 </td><td style="color: red">Bar
18092 </td></tr></tbody></table>
18097 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18107 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18117 Accept empty td cell attribute
18120 | align="center" | foo || |
18125 <td align="center"> foo </td>
18132 Non-empty attributes in th-cells
18135 ! Foo !! style="color: red" | Bar
18141 <th style="color: red"> Bar
18147 Accept empty attributes in th-cells
18162 Empty table rows go away
18183 ### Parsoid-centric tests for testing RTing of inter-element separators
18184 ### Edge cases not tested by existing parser tests and specific to
18185 ### Parsoid-specific serialization strategies.
18189 RT-ed inter-element separators should be valid separators
18202 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
18203 (Parsoid-only since PHP parser relies on Tidy for correct output)
18219 Empty TD followed by TD with tpl-generated attribute
18224 |{{echo|style='color:red'}}|foo
18238 Indented table with an empty td
18257 Empty TR followed by a template-generated TR
18258 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
18264 {{echo|<tr><td>foo</td></tr>}}
18270 <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}}]}'>
18275 ## PHP and parsoid output differ for this, and since this is primarily
18276 ## for testing Parsoid's serializer, marking this Parsoid only
18278 Empty TR followed by mixed-ws-comment line should RT correctly
18294 <!--c--> </tr><!--d-->
18300 Multi-line image caption generated by templates with/without trailing newlines
18304 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
18305 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
18307 <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>
18308 <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>
18312 ## PHP emits broken html for this, and since this is primarily
18313 ## a Parsoid serializer test, marking this Parsoid only
18315 Improperly nested inline or quotes tags with whitespace in between
18319 <span> <s>x</span> </s>
18322 <p><span> <s>x</s></span><s> </s>
18323 <b> <i>x</i></b><i> </i>
18328 Encapsulate protected attributes from wt
18332 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
18334 <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>
18338 ## Currently the p-wrapper is fragile in how adds / removes transformations.
18339 ## Having nested or stray pre tags results in the attempt to add duplicates,
18340 ## causing an assertion fail. This test tries to prevent that situation.
18342 Ensure ParagraphWrapper can deal with stray closing pre tags
18352 Ensure fostered text content is wrapped in spans
18356 <table>hi</table><table>ho</table>
18365 Encapsulation properly handles null DSR information from foster box
18367 parsoid=wt2html,wt2wt
18369 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
18371 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
18374 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
18378 <td>bar</td></tr></tbody></table>
18382 1. Encapsulate foster-parented transclusion content
18384 parsoid=wt2wt,wt2html
18386 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
18388 <span typeof="mw:Transclusion" data-mw="{"parts":["
18389 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
18391 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
18395 <td>bar</td></tr></tbody></table>
18399 2. Encapsulate foster-parented transclusion content
18401 parsoid=wt2wt,wt2html
18403 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
18405 <div typeof="mw:Transclusion" data-mw="{"parts":["
18407 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
18409 <td>bar</td></tr></table>"]}">foo</div>
18413 <td>bar</td></tr></tbody></table>
18417 3. Encapsulate foster-parented transclusion content
18419 parsoid=wt2wt,wt2html
18421 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
18423 <div typeof="mw:Transclusion" data-mw="{"parts":["
18426 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
18428 <td>"}},"i":0}},"bar</td></tr></table>"]}">
18433 <td>bar</td></tr></tbody></table>
18437 4. Encapsulate foster-parented transclusion content
18439 parsoid=wt2wt,wt2html
18441 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
18443 <div typeof="mw:Transclusion" data-mw="{"parts":["
18446 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
18448 <td>"}},"i":0}},"bar</td></tr></table>"]}">
18453 <td>bar</td></tr></tbody></table>
18457 5. Encapsulate foster-parented transclusion content
18459 parsoid=wt2wt,wt2html
18461 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
18463 <span typeof="mw:Transclusion" data-mw="{"parts":["
18468 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
18474 <p>foo</p></div></td></tr></tbody></table>
18478 6. Encapsulate foster-parented transclusion content
18480 parsoid=wt2wt,wt2html
18482 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
18484 <span typeof="mw:Transclusion" data-mw="{"parts":["
18489 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
18495 <p>foo</p></div></td></tr></tbody></table>
18500 7. Encapsulate foster-parented transclusion content
18502 parsoid=wt2wt,wt2html
18504 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
18506 <p typeof="mw:Transclusion" data-mw="{"parts":["
18507 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
18508 <p>foo</p>"}},"i":0}},"
18509 <td>bar</td></table>"]}">foo</p>
18513 <td>bar</td></tr></tbody></table>
18517 8. Encapsulate foster-parented transclusion content
18519 parsoid=wt2wt,wt2html
18522 }}{|{{echo|style='color:red'}}
18527 <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>
18531 <td>b</td></tr></tbody></table>
18534 # -----------------------------------------------------------------
18535 # The following section of tests are primarily to spec requirements
18536 # around serialization of new/edited content.
18538 # All these tests are marked Parsoid html2wt and html2html only
18539 # ----------------------------------------------------------------
18542 Image: Modifying size of an image
18546 [[Image:Wiki.png|230x230px]]
18548 <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>
18552 Image: New block level image should have \n before and after
18557 [[File:Wiki.png|right|thumb|150x150px]]
18560 <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>
18563 # Wacky -- the leading newline in input is required because
18564 # that is what the serializer emits. To be fixed. Not fixing
18565 # the test because this test is required to test serialization of
18566 # new content and preferred whitespace style.
18568 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
18576 <li><p>foo</p></li>
18581 Don't strip leading whitespace when handling indent-pre suppressing tags
18589 '''This is very bold of you!'''
18593 indented cell (no pre-wrapping!)
18600 <tr><td> indented row</td></tr>
18603 <b>This is very bold of you!</b>
18606 indented cell (no pre-wrapping!)
18614 Strip leading whitespace when handling indent-pre inducing tags
18637 # Wacky -- the leading newline in input is required because
18638 # that is what the serializer emits. To be fixed. Not fixing
18639 # the test because this test is required to test serialization of
18640 # new content and preferred whitespace style.
18642 Lists: Add space after bullets
18649 * <span> baz</span>
18654 <li><span> baz</span></li>
18659 Parsoid: Serialize positional parameters with = in them as named parameter
18665 {{echo|1 = f=oo|2 = bar}}
18667 <!--Orig params with data-parsoid has heuristics for handling = chars-->
18668 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
18669 {{echo|<nowiki>f=oo</nowiki>|bar}}
18671 <p about="#mwt1" typeof="mw:Transclusion"
18672 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
18674 <p about="#mwt1" typeof="mw:Transclusion"
18675 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
18677 <!--Orig params with data-parsoid has heuristics for handling = chars-->
18678 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
18679 <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>
18683 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
18699 <div>a<p>b</p></div>
18707 #-----------------------------
18708 # I/B quote minimization tests
18709 #-----------------------------
18712 1. I/B quote minimization: wikitext-only tags should be combined
18732 <p><i>A</i><i>B</i></p>
18733 <p><b>A</b><b>B</b></p>
18734 <p><i>A</i><b><i>B</i></b></p>
18735 <p><b>A</b><i><b>B</b></i></p>
18736 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
18737 <p><i><b>A</b></i><i><b>B</b></i></p>
18738 <p><i><b>A</b></i><b><i>B</i></b></p>
18739 <p><b><i>A</i></b><i><b>B</b></i></p>
18743 2. I/B quote minimization: wikitext and html tags should not be combined
18749 ''A'''''<i>B</i>'''
18751 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
18752 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
18756 3. I/B quote minimization: templated content stops minimization
18760 ''A''{{echo|''B''}}
18762 ''A''{{echo|'''''B'''''}}
18764 <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>
18765 <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>
18769 4. I/B quote minimization: new content should be mimimized with adjacent old content
18779 <p><i>A</i><i data-parsoid='{}'>B</i></p>
18780 <p><b data-parsoid='{}'>A</b><b>B</b></p>
18781 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
18785 5. Bug 54262: New entities
18791 <span typeof="mw:Entity">foo</span>
18794 # -----------------------------------------------------------------
18795 # End of section for Parsoid-only html2wt tests for serialization
18797 # -----------------------------------------------------------------
18804 Try for 100% code coverage