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-specific options (not run by PHP parser unless
25 # the test includes an html/php section)
26 # php php-only test (not run by the parsoid parser unless
27 # the test includes an html/parsoid section)
28 # showtitle make the first line the title
29 # comment run through Linker::formatComment() instead of main parser
30 # local format section links in edit comment text as local links
31 # notoc disable table of contents
32 # thumbsize=NNN set the default thumb size to NNNpx for this test
34 # You can also set the following parser properties via test options:
35 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
36 # wgLinkHolderBatchSize, wgRawHtml
38 # For testing purposes, temporary articles can created:
39 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
40 # where '/' denotes a newline.
42 # This is the standard article assumed to exist.
67 MediaWiki:bad image list
69 * [[File:Bad.jpg]] except [[Nasty page]]
103 Template:echo_with_span
109 Template:echo_with_div
121 Template:table_attribs
124 |</noinclude>style="color: red"| Foo
130 {{table_attribs}} || Bar || Baz
134 Template:image_attribs
137 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
171 This is a simple paragraph.
173 <p>This is a simple paragraph.
178 Paragraphs with extra newline spacing
201 Paragraphs with newline spacing with comment lines in between
209 <!--foo--><!--More than 1 comment, still stripped-->
213 <!--foo--> <!----> <!-- bar -->
274 Paragraphs with newline spacing with non-empty white-space lines in between
301 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
309 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
348 Extra newlines: More paragraphs with indented comment
363 Extra newlines followed by heading
378 <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>
379 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
382 <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>
387 Extra newlines between heading and content are swallowed
395 <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>
396 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
403 http://fr.wikipedia.org/wiki/🍺
404 <!-- EasterEgg we love beer, better be able be able to link to it -->
406 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
429 * plain''italic''plain
430 * plain''italic''plain''italic''plain
431 * plain'''bold'''plain
432 * plain'''bold'''plain'''bold'''plain
433 * plain''italic''plain'''bold'''plain
434 * plain'''bold'''plain''italic''plain
435 * plain''italic'''bold-italic'''italic''plain
436 * plain'''bold''bold-italic''bold'''plain
437 * plain'''''bold-italic'''italic''plain
438 * plain'''''bold-italic''bold'''plain
439 * plain''italic'''bold-italic'''''plain
440 * plain'''bold''bold-italic'''''plain
441 * plain l'''italic''plain
442 * plain l''''bold''' plain
447 <li> plain<i>italic</i>plain
449 <li> plain<i>italic</i>plain<i>italic</i>plain
451 <li> plain<b>bold</b>plain
453 <li> plain<b>bold</b>plain<b>bold</b>plain
455 <li> plain<i>italic</i>plain<b>bold</b>plain
457 <li> plain<b>bold</b>plain<i>italic</i>plain
459 <li> plain<i>italic<b>bold-italic</b>italic</i>plain
461 <li> plain<b>bold<i>bold-italic</i>bold</b>plain
463 <li> plain<i><b>bold-italic</b>italic</i>plain
465 <li> plain<b><i>bold-italic</i>bold</b>plain
467 <li> plain<i>italic<b>bold-italic</b></i>plain
469 <li> plain<b>bold<i>bold-italic</i></b>plain
471 <li> plain l'<i>italic</i>plain
473 <li> plain l'<b>bold</b> plain
479 # this example taken from the [[simple:Moon]] article (bug 47326)
481 Italics and possessives (1)
483 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
485 <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
489 # this example taken from [[en:Flaming Pie]] (bug 49926)
491 Italics and possessives (2)
493 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
495 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
499 # this example taken from [[en:Dictionary]] (bug 49926)
501 Italics and possessives (3)
503 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''.
505 <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>.
511 ### 2-quote opening sequence tests
514 Italics and bold: 2-quote opening sequence: (2,2)
524 Italics and bold: 2-quote opening sequence: (2,3)
534 Italics and bold: 2-quote opening sequence: (2,4)
543 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
545 Italics and bold: 2-quote opening sequence: (2,5)
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)
591 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
593 Italics and bold: 3-quote opening sequence: (3,5)
606 ### 4-quote opening sequence tests
610 Italics and bold: 4-quote opening sequence: (4,2)
620 Italics and bold: 4-quote opening sequence: (4,3)
630 Italics and bold: 4-quote opening sequence: (4,4)
639 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
641 Italics and bold: 4-quote opening sequence: (4,5)
648 <p>'<b>foo</b><i></i>
654 ### 5-quote opening sequence tests
658 Italics and bold: 5-quote opening sequence: (5,2)
669 Italics and bold: 5-quote opening sequence: (5,3)
679 Italics and bold: 5-quote opening sequence: (5,4)
683 <p><i><b>foo'</b></i>
689 Italics and bold: 5-quote opening sequence: (5,5)
698 ### multiple quote sequences in a line
701 Italics and bold: multiple quote sequences: (2,4,2)
705 <p><i>foo'<b>bar</b></i>
711 Italics and bold: multiple quote sequences: (2,4,3)
715 <p><i>foo'<b>bar</b></i>
721 Italics and bold: multiple quote sequences: (2,4,4)
725 <p><i>foo'<b>bar'</b></i>
730 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
732 Italics and bold: multiple quote sequences: (3,4,2)
739 <p><b>foo'</b>bar<i></i>
744 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
746 Italics and bold: multiple quote sequences: (3,4,3)
753 <p><b>foo'</b>bar<b></b>
758 ### other quote tests
761 Italics and bold: other quote tests: (2,3,5)
763 ''this is about '''foo's family'''''
765 <p><i>this is about <b>foo's family</b></i>
771 Italics and bold: other quote tests: (2,(3,3),2)
773 ''this is about '''foo's''' family''
775 <p><i>this is about <b>foo's</b> family</i>
781 Italics and bold: other quote tests: (3,2,3,2)
783 '''this is about ''foo'''s family''
785 <p><b>this is about <i>foo</i></b><i>s family</i>
791 Italics and bold: other quote tests: (3,2,3,3)
794 '''this is about ''foo'''s family'''
796 <p>'<i>this is about </i>foo<b>s family</b>
802 Italics and bold: other quote tests: (3,(2,2),3)
804 '''this is about ''foo's'' family'''
806 <p><b>this is about <i>foo's</i> family</b>
812 Italicized possessive
814 The ''[[Main Page]]'''s talk page.
816 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
821 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
822 (Requires tidy for PHP parser output to be fixed up)
824 parsoid=wt2html,wt2wt
832 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
833 <td><i>a</i></td><td><i>b</i></td></tr>
842 Non-html5 tags should be accepted
844 <center>''foo''</center>
847 <strike>''foo''</strike>
850 <center><i>foo</i></center>
851 <p><big><i>foo</i></big>
852 <font><i>foo</i></font>
853 <strike><i>foo</i></strike>
859 <wbr> is valid wikitext (bug 52468)
867 # <strike> is HTML4, <s> is HTML4/5.
869 <s> or <strike> for strikethrough
871 <strike>strike</strike>
875 <p><strike>strike</strike>
881 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
883 <b→> doesn't work! </b→>
885 <bä> doesn't work! </bä>
887 <boo> works fine </boo>
893 <p><b→> doesn't work! </b→>
894 </p><p><bä> doesn't work! </bä>
895 </p><p><boo> works fine </boo>
896 </p><p><s.foo>s.foo</s.foo>
897 </p><p><sub-ID#1>
902 Isolated close tags should be treated as literal text (bug 52760)
909 </p><p><s.foo>s</s>
914 ### Special characters
918 Bare pipe character (bug 52363)
927 Bare pipe character from a template (bug 52363)
936 ### <nowiki> test cases
940 <nowiki> unordered list
942 <nowiki>* This is not an unordered list item.</nowiki>
944 <p>* This is not an unordered list item.
951 <nowiki>Lorem ipsum dolor
972 :There is not nowiki.
973 :There is <nowiki>nowiki</nowiki>.
975 #There is not nowiki.
976 #There is <nowiki>nowiki</nowiki>.
978 *There is not nowiki.
979 *There is <nowiki>nowiki</nowiki>.
982 <dd>There is not nowiki.
988 <li>There is not nowiki.
994 <li>There is not nowiki.
1003 Entities inside <nowiki>
1005 <nowiki><</nowiki>
1012 Entities inside template parameters
1018 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span>
1026 Comments and Indent-Pre
1028 <!-- comment 1 --> asdf
1030 <!-- comment 1 --> asdf
1033 <!-- comment 1 --> asdf
1034 <!-- comment 2 -->xyz
1036 <!-- comment 1 --> asdf
1037 <!-- comment 2 --> xyz
1093 asdf<!-- comment 1 -->jkl
1103 <!-- foo --> b <!-- bar -->
1117 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1123 Comment semantics and delimiters
1125 <!-- --><!----><!-----><!------>
1131 Comment semantics and delimiters, redux
1133 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1134 -- foo -- funky huh? ... -->
1140 Comment semantics and delimiters: directors cut
1142 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1143 everything starting with < followed by !-- until the first -- and > we see,
1144 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1152 Comment semantics: nesting
1154 <!--<!-- no, we're not going to do anything fancy here -->-->
1161 Comment semantics: unclosed comment at end
1163 <!--This comment will run out to the end of the document
1169 Comment in template title
1178 Comment on its own line post-expand
1190 Comment on its own line post-expand with non-significant whitespace
1202 ### paragraph wrapping tests
1217 Block tag on one line (<div>)
1229 Block tag on one line (<blockquote>)
1231 a <blockquote>foo</blockquote>
1235 a <blockquote>foo</blockquote>
1241 Block tag on both lines (<div>)
1253 Block tag on both lines (<blockquote>)
1255 a <blockquote>foo</blockquote>
1257 b <blockquote>foo</blockquote>
1259 a <blockquote>foo</blockquote>
1260 b <blockquote>foo</blockquote>
1265 Multiple lines without block tags
1283 Empty lines between lines with block tags
1312 ## PHP parser emits output which is broken
1314 Unclosed HTML p-tags should be handled properly
1321 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1327 ### Preformatted text
1336 And a [[Main Page|link]]
1342 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1347 Tabs don't trigger preformatted text
1351 This is preformatted text.
1357 <pre>This is preformatted text.
1363 Ident preformatting with inline content
1374 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1391 Regression with preformatted in <center>
1405 Bug 52763: Preformatted in <blockquote>
1411 indented cell (no pre-wrapping!)
1421 <p> indented cell (no pre-wrapping!)
1429 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1446 Bug 15491: <ins>/<del> in blockquote
1449 Foo <del>bar</del> <ins>baz</ins> quux
1453 <p>Foo <del>bar</del> <ins>baz</ins> quux
1459 # Note that the p-wrapping is newline sensitive, which could be
1460 # considered a bug: tidy will wrap only the 'Foo' in the example
1461 # below in a <p> tag. (see comment 23-25 of bug #6200)
1463 Bug 15491: <ins>/<del> in blockquote (2)
1465 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1468 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1474 <pre> with attributes (bug 3202)
1476 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1478 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1483 <pre> with width attribute (bug 3202)
1485 <pre width="8">Narrow screen goodies</pre>
1487 <pre width="8">Narrow screen goodies</pre>
1492 <pre> with forbidden attribute (bug 3202)
1494 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1496 <pre width="8">Narrow screen goodies</pre>
1501 Entities inside <pre>
1510 <pre> with forbidden attribute values (bug 3202)
1512 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1514 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1519 <nowiki> inside <pre> (bug 13238)
1527 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1535 <pre><nowiki>Foo</nowiki></pre>
1540 <nowiki> and <pre> preference (first one wins)
1571 </pre> inside nowiki
1573 <nowiki></pre></nowiki>
1580 Empty pre; pre inside other HTML tags (bug 54946)
1599 HTML pre followed by indent-pre
1614 <p><pre>foo</pre></p>
1616 <p data-parsoid='{"stx":"html","autoInsertedEnd":true}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
1620 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1628 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1638 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1650 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1671 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1675 {{echo| foo}}{{echo| bar}}
1680 {{echo|<!--cmt--> foo}}
1682 <!--cmt-->{{echo| foo}}
1684 {{echo|{{echo| }}bar}}
1702 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1739 Things that look like <pre> tags aren't treated as such
1741 Barack Obama <President> of the United States
1743 <p>Barack Obama <President> of the United States
1748 Parsoid: handle pre with space after attribute
1752 <pre style="width:50%;" >{{echo|foo}}</pre>
1754 <pre style="width:50%;">{{echo|foo}}</pre>
1757 # TODO / maybe: fix wt2wt for this
1759 Parsoid: Don't paragraph-wrap fosterable content
1785 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
1813 #--------------------------------------------------------------------
1814 # Transclusion parameter whitespace stripping tests
1815 # Behavior is different for positional and named parameters
1816 #--------------------------------------------------------------------
1818 Templates: Strip leading and trailing whitespace from named-param values
1822 {{echo|1= {{echo|b}} }}
1843 Templates: Don't strip whitespace from positional-param values
1847 {{echo|{{echo|b}} }}
1890 Templates: Handle empty comment-and-ws-only lines correctly
1893 <!--should be ignored-->
1894 <!--should be ignored as well-->
1902 #--------------------------------------------------------------------
1903 # Transclusion parameter escaping tests
1904 #--------------------------------------------------------------------
1906 Templates: Parsoid parameter escaping test 1
1910 {{echo|[foo]|{{echo|[bar]}}}}
1912 <p about="#mwt1" typeof="mw:Transclusion"
1913 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
1917 Parsoid: Pipes in external links in template parameter
1921 {{echo|[{{echo|http://example.com}} link]}}
1923 <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>
1927 Parsoid: pipe in transclusion parameter
1931 {{echo|http://foo.com/a|b}}
1933 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1934 typeof="mw:Transclusion"
1935 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>
1939 Parsoid: Pipe in external link target and content in template parameter
1941 parsoid=html2wt,wt2wt
1943 {{echo|[http://foo.com/a|b a|b]}}
1945 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1946 typeof="mw:Transclusion"
1947 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
1948 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
1952 Templates: Don't escape already nowiki-escaped text in template parameters
1954 parsoid=html2wt,wt2wt
1956 {{echo|foo<nowiki>|</nowiki>bar}}
1957 {{echo|<nowiki><div></nowiki>}}
1958 {{echo|<nowiki></nowiki>}}
1960 <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>
1961 <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>
1962 <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>
1968 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
1970 parsoid=html2wt,wt2wt
1972 {{echo|{{echo|1=bar}}}}
1974 <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>
1979 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
1985 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a : b"}},"i":0}}]}'>a<span typeof="mw:Placeholder" data-parsoid='{"isDisplayHack":true}'> </span>: b</p>
1989 ### Parsoid-centric tests for testing RT edge cases for pre
1993 1a. Indent-Pre and Comments
2006 1b. Indent-Pre and Comments
2019 1c. Indent-Pre and Comments
2032 1d. Indent-Pre and Comments
2033 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2046 2a. Indent-Pre and tables
2067 2b. Indent-Pre and tables
2083 2c. Indent-Pre and tables (bug 42252)
2100 3a. Indent-Pre and block tags (single-line html)
2104 c <blockquote> foo </blockquote>
2109 c <blockquote> foo </blockquote>
2110 <pre><span> foo </span>
2115 3b. Indent-Pre and block tags (multi-line html)
2120 <pre>a <span>foo</span>
2127 3c. Indent-Pre and block tags (pre-content on separate line)
2191 4. Indent-Pre and extension tags
2197 a <ul class="gallery mw-gallery-traditional">
2198 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2199 <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>
2200 <div class="gallerytext">
2208 Leading pipes outside of tables
2218 Leading pipes outside of tables 2
2232 Leading pipes outside of tables 3
2237 | class="foo bar" | baz
2241 | class="foo bar" | baz
2246 Render paragraphs when indent-pre is suppressed in blocklevels
2263 4. Multiple spaces at start-of-line
2281 ## NOTE: the leading white-space chars on empty line are significant
2283 5a. White-space in indent-pre
2295 ## NOTE: the leading white-space chars on empty line are significant
2297 5b. White-space in indent-pre
2316 5c. White-space in indent-pre
2329 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2352 7a. Indent-pre and category links
2354 parsoid=wt2html,wt2wt
2356 [[Category:foo]] <!-- No pre-wrapping -->
2357 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2359 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2360 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2361 <link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2365 7b. Indent-pre and category links
2367 parsoid=wt2html,wt2wt
2370 [[Category:foo]] {{echo|b}}
2373 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
2375 <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>
2379 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2383 HTML-pre: 1. embedded newlines
2419 HTML-pre: 2: indented text
2432 HTML-pre: 3: other wikitext
2453 ### Definition lists
2461 <dt> name </dt>
2469 Definition list for indentation only
2481 Definition list with no space
2494 Definition list with URL link
2496 ; http://example.com/ : definition
2499 <dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2507 Definition list with bracketed URL link
2509 ;[http://www.example.com/ Example]:Something about it
2512 <dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2513 <dd>Something about it
2520 Definition list with wikilink containing colon
2522 ; [[Help:FAQ]]: The least-read page on Wikipedia
2525 <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>
2526 <dd> The least-read page on Wikipedia
2532 # At Brion's and JeLuF's insistence... :)
2534 Definition list with news link containing colon
2536 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2539 <dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2540 <dd> This isn't even a real newsgroup!
2547 Malformed definition list with colon
2549 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2552 <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
2559 Definition lists: colon in external link text
2561 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2564 <dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2565 <dd> OK, I made that up
2572 Definition lists: colon in HTML attribute
2574 ;<b style="display: inline">bold</b>
2577 <dt><b style="display: inline">bold</b>
2584 Definition lists: self-closed tag
2586 ;one<br/>two : two-line fun
2589 <dt>one<br />two </dt>
2597 Bug 11748: Literal closing tags
2601 <dd>test test test test test</dd>
2603 <dd>test test test test test</dd>
2608 <dd>test test test test test</dd>
2610 <dd>test test test test test</dd>
2616 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2619 ; term : description
2625 <dt> term </dt>
2639 Definition list with empty definition and following paragraph
2654 Nested definition lists using html syntax
2671 Definition Lists: No nesting: Multiple dd's
2689 Definition Lists: Indentation: Regular
2711 Definition Lists: Indentation: Missing 1st level
2731 Definition Lists: Indentation: Multi-level indent
2749 Definition Lists: Hacky use to indent tables
2756 should be left alone
2758 <dl><dd><dl><dd><table>
2763 </td></tr></table></dd></dl></dd></dl>
2765 should be left alone
2771 Definition Lists: Hacky use to indent tables (WS-insensitive)
2780 <dd> <table><tr><td>a</td></tr></table> </dd>
2783 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2784 ## as an empty dt item. It also ignores all but the last ";" when followed
2785 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2786 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2789 ## Ex: ";;t2 ::d2" is transformed into:
2801 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2802 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2813 ## All Parsoid only definition list tests have this difference.
2815 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2816 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2819 Table / list interaction: indented table with lists in table contents
2845 </td></tr></table></dd></dl>
2850 Table / list interaction: lists nested in tables nested in indented lists
2881 </td></tr></table></dd></dl>
2892 Definition Lists: Nesting: Multi-level (Parsoid only)
2922 Definition Lists: Nesting: Test 2 (Parsoid only)
2942 Definition Lists: Nesting: Test 3 (Parsoid only)
2970 Definition Lists: Nesting: Test 4
2991 ## The Parsoid team believes the following three test exposes a
2992 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2993 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2995 Definition Lists: Mixed Lists: Test 1
3035 Definition Lists: Mixed Lists: Test 2
3054 Definition Lists: Mixed Lists: Test 3
3079 Definition Lists: Mixed Lists: Test 4
3100 Definition Lists: Mixed Lists: Test 5
3121 Definition Lists: Mixed Lists: Test 6
3148 Definition Lists: Mixed Lists: Test 7
3167 Definition Lists: Mixed Lists: Test 8
3191 Definition Lists: Mixed Lists: Test 9
3208 Definition Lists: Mixed Lists: Test 10
3226 # The Parsoid team disagrees with the PHP parser's seemingly-random
3227 # rules regarding dd/dt on the next two tests. Parsoid is more
3228 # consistent, and recognizes the shared nesting and keeps the
3229 # still-open tags around until the nesting is complete.
3232 Definition Lists: Mixed Lists: Test 11
3285 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3286 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3290 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3291 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3301 Definition Lists: Weird Ones: Test 1
3303 *#;*::;; foo : bar (who uses this?)
3314 <dt> bar (who uses this?)
3348 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3349 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3364 External links: non-bracketed
3366 Non-bracketed: http://example.com
3368 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3373 External links: numbered
3375 Numbered: [http://example.com]
3376 Numbered: [http://example.net]
3377 Numbered: [http://example.com]
3379 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3380 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3381 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3386 External links: specified text
3388 Specified text: [http://example.com link]
3390 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3395 External links: trail
3397 Linktrails should not work for external links: [http://example.com link]s
3399 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3404 External links: dollar sign in URL
3406 http://example.com/1$2345
3408 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3413 External links: dollar sign in URL (named)
3415 [http://example.com/1$2345]
3417 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3422 External links: open square bracket forbidden in URL (bug 4377)
3424 http://example.com/1[2345
3426 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3431 External links: open square bracket forbidden in URL (named) (bug 4377)
3433 [http://example.com/1[2345]
3435 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3440 External links: nowiki in URL link text (bug 6230)
3442 [http://example.com/ <nowiki>''example site''</nowiki>]
3444 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3449 External links: newline forbidden in text (bug 6230 regression check)
3451 [http://example.com/ first
3454 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3460 External links: Pipe char between url and text
3462 [http://example.com | link]
3464 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3469 External links: protocol-relative URL in brackets
3471 [//example.com/ Test]
3473 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3478 External links: protocol-relative URL in brackets without text
3482 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3487 External links: protocol-relative URL in free text is left alone
3491 <p>//example.com/Foo
3496 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3498 foo//example.com/Foo
3500 <p>foo//example.com/Foo
3507 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3509 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3514 External image from https
3516 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3518 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3523 External image (when not allowed)
3525 wgAllowExternalImages=0
3527 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3529 <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>
3534 Link to non-http image, no img tag
3536 Link to non-http image, no img tag: ftp://example.com/test.jpg
3538 <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>
3543 External links: terminating separator
3545 Terminating separator: http://example.com/thing,
3547 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3552 External links: intervening separator
3554 Intervening separator: http://example.com/1,2,3
3556 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3561 External links: old bug with URL in query
3563 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3565 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3570 External links: old URL-in-URL bug, mixed protocols
3572 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3574 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3579 External links: URL in text
3581 URL in text: [http://example.com http://example.com]
3583 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3588 External links: Clickable images
3590 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3592 <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>
3597 External links: raw ampersand
3599 Old & use: http://x&y
3601 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3606 External links: encoded ampersand
3608 Old & use: http://x&y
3610 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3615 External links: encoded equals (bug 6102)
3617 http://example.com/?foo=bar
3619 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3624 External links: [raw ampersand]
3626 Old & use: [http://x&y]
3628 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3633 External links: [encoded ampersand]
3635 Old & use: [http://x&y]
3637 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3642 External links: [encoded equals] (bug 6102)
3644 [http://example.com/?foo=bar]
3646 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3651 External links: [IDN ignored character reference in hostname; strip it right off]
3653 [http://e‌xample.com/]
3655 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3659 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3660 # Where an external link could easily circumvent the sanitization of the text of
3661 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3662 # test demands a higher standard. That's a bit strange.
3666 # http://example.com -> [http://example.com|http://example.com]
3667 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3669 # The first example is sanitized, but the second is not. Any security benefits
3670 # from this production are trivial to circumvent. Either remove this test and
3671 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3672 # the test accordingly.
3677 External links: IDN ignored character reference in hostname; strip it right off
3679 http://e‌xample.com/
3681 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3686 External links: www.jpeg.org (bug 554)
3690 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3695 External links: URL within URL (original bug 2)
3697 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3699 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3704 BUG 361: URL inside bracketed URL
3706 [http://www.example.com/foo http://www.example.com/bar]
3708 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3713 BUG 361: URL within URL, not bracketed
3715 http://www.example.com/foo?=http://www.example.com/bar
3717 <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>
3722 BUG 289: ">"-token in URL-tail
3724 http://www.example.com/<hello>
3726 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3731 BUG 289: literal ">"-token in URL-tail
3733 http://www.example.com/<b>html</b>
3735 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3740 BUG 289: ">"-token in bracketed URL
3742 [http://www.example.com/<hello> stuff]
3744 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3749 BUG 289: literal ">"-token in bracketed URL
3751 [http://www.example.com/<b>html</b> stuff]
3753 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3758 BUG 289: literal double quote at end of URL
3760 http://www.example.com/"hello"
3762 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3767 BUG 289: literal double quote in bracketed URL
3769 [http://www.example.com/"hello" stuff]
3771 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3776 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3778 [http://www.example.com test]
3780 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3785 External links: link text with spaces
3787 [http://www.example.com a b c]
3788 [http://www.example.com ''a'' ''b'']
3790 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3791 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3796 External links: wiki links within external link (Bug 3695)
3798 [http://example.com [[wikilink]] embedded in ext link]
3800 <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>
3803 <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>
3807 BUG 787: Links with one slash after the url protocol are invalid
3811 [http:/example.com title]
3813 <p>http:/example.com
3814 </p><p>[http:/example.com title]
3819 Bracketed external links with template-generated invalid target
3821 [{{echo|http:/example.com}} title]
3823 <p>[http:/example.com title]
3828 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3830 ''[http://example.com text'']
3831 [http://example.com '''text]'''
3832 ''Something [http://example.com in italic'']
3833 ''Something [http://example.com mixed''''', even bold]'''
3834 '''''Now [http://example.com both''''']
3836 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3837 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3838 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3839 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3840 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3846 Bug 4781: %26 in URL
3848 http://www.example.com/?title=AT%26T
3850 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3854 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3855 # % is actually legal in HTML5. Any change in output would need testing though.
3857 Bug 4781, 5267: %25 in URL
3859 http://www.example.com/?title=100%25_Bran
3861 <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>
3866 Bug 4781, 5267: %28, %29 in URL
3868 http://www.example.com/?title=Ben-Hur_%281959_film%29
3870 <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>
3876 Bug 4781: %26 in autonumber URL
3878 [http://www.example.com/?title=AT%26T]
3880 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3885 Bug 4781, 5267: %26 in autonumber URL
3887 [http://www.example.com/?title=100%25_Bran]
3889 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3894 Bug 4781, 5267: %28, %29 in autonumber URL
3896 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3898 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3904 Bug 4781: %26 in bracketed URL
3906 [http://www.example.com/?title=AT%26T link]
3908 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3913 Bug 4781, 5267: %26 in bracketed URL
3915 [http://www.example.com/?title=100%25_Bran link]
3917 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3922 Bug 4781, 5267: %28, %29 in bracketed URL
3924 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3926 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3931 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3933 Some [http://example.com/ pretty ''italics'' and stuff]!
3935 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3940 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3942 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3944 <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>
3949 External link containing double-single-quotes with no space separating the url from text in italics
3951 [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]].]
3953 <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>
3956 <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>
3960 External link with comments in link text
3962 [http://www.google.com Google <!-- comment -->]
3964 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3969 URL-encoding in URL functions (single parameter)
3971 {{localurl:Some page|amp=&}}
3973 <p>/index.php?title=Some_page&amp=&
3978 URL-encoding in URL functions (multiple parameters)
3980 {{localurl:Some page|q=?&=&}}
3982 <p>/index.php?title=Some_page&q=?&amp=&
3989 http://example.com/index.php?foozoid%5B%5D=bar
3991 http://example.com/index.php?foozoid[]=bar
3993 <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>
3994 </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>
3999 IPv6 urls (bug 21261)
4003 http://[2404:130:0:1000::187:2]/index.php
4005 <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>
4010 Non-extlinks in brackets
4019 [{{echo|foo}} ''bar'']
4020 [{{echo|foo}}l's] errand
4021 [{{echo|foo}}l's errand]
4023 [url=http://example.com]
4036 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
4041 Percent encoding in external links
4043 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
4045 <p><a rel="nofollow" class="external text" href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a>
4048 <p><a rel="mw:ExtLink"
4049 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
4053 Use url link syntax for links where the content is equal the link target
4057 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4060 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
4064 Parenthesis in external links, especially URL links
4068 http://example.com/test)
4070 http://example.com/(test)
4072 http://example.com/((test)
4074 (http://example.com/(test))
4076 (http://example.com/(test)))))
4078 http://example.com/a)b
4080 [http://example.com) foo]
4082 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4083 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
4084 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</a>
4085 </p><p><a rel="nofollow" class="external free" href="http://example.com/((test)">http://example.com/((test)</a>
4086 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test))">http://example.com/(test))</a>
4087 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test)))))">http://example.com/(test)))))</a>
4088 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
4089 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
4092 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
4093 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
4094 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</a></p>
4095 <p><a rel="mw:ExtLink" href="http://example.com/((test)">http://example.com/((test)</a></p>
4096 <p>(<a rel="mw:ExtLink" href="http://example.com/(test))">http://example.com/(test))</a></p>
4097 <p>(<a rel="mw:ExtLink" href="http://example.com/(test)))))">http://example.com/(test)))))</a></p>
4098 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
4099 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
4103 Parenthesis in external links, w/ transclusion or comment
4105 (http://example.com/{{echo|hi}})
4107 (http://example.com<!-- hi -->)
4109 <p>(<a rel="nofollow" class="external free" href="http://example.com/hi">http://example.com/hi</a>)
4110 </p><p>(<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4113 <p>(<a data-mw='{"attribs":[[{"txt":"href"},{"html":"http://example.com/<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;hi&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[20,31,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">hi</span>"}]]}' typeof="mw:ExpandedAttrs" about="#mwt2" rel="mw:ExtLink" href="http://example.com/hi" data-parsoid='{"stx":"url","a":{"href":"http://example.com/hi"},"sa":{"href":"http://example.com/{{echo|hi}}"}}'>http://example.com/hi</a>)</p>
4115 <p>(<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url","a":{"href":"http://example.com"},"sa":{"href":"http://example.com<!-- hi -->"}}'>http://example.com</a>)</p>
4125 Normal text. '''Bold text.''' Normal text. ''Italic text.''
4127 Normal text. '''''Bold italic text.''''' Normal text.
4129 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
4130 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
4135 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
4136 # parser strips. The wikitext contains just the first half of the bold
4139 Unclosed and unmatched quotes
4141 '''''Bold italic text '''with bold deactivated''' in between.'''''
4143 '''''Bold italic text ''with italic deactivated'' in between.'''''
4147 ..spanning two paragraphs (should not work).'''
4149 '''Bold tag left open
4151 ''Italic tag left open
4155 <!-- Unmatching number of opening, closing tags: -->
4156 '''This year''''s election ''should'' beat '''last year''''s.
4158 ''Tom'''s car is bigger than ''Susan'''s.
4160 Plain ''italic'''s plain
4162 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4163 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4164 </p><p><b>Bold text..</b>
4165 </p><p>..spanning two paragraphs (should not work).
4166 </p><p><b>Bold tag left open</b>
4167 </p><p><i>Italic tag left open</i>
4169 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4170 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4171 </p><p>Plain <i>italic'</i>s plain
4174 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4175 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4176 </p><p><b>Bold text..</b>
4177 </p><p>..spanning two paragraphs (should not work).<b></b>
4178 </p><p><b>Bold tag left open</b>
4179 </p><p><i>Italic tag left open</i>
4181 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4182 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4183 </p><p>Plain <i>italic'</i>s plain
4190 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4193 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4194 # is the bare minimum required by the spec, see:
4195 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4196 # Parsoid team replies: empty table tags are legal in HTML5
4198 A table with no data.
4211 A table with stray table end tags on start tag line (wt2html)
4215 {|style="color: red;"|}
4217 {|style="color: red;" |}
4221 {|style="color: red;"|} id="foo"
4225 {|style="color: red;" |} id="foo"
4229 <table style="color: red;"></table>
4231 <table style="color: red;">
4237 <table style="color: red;" id="foo">
4243 <table style="color: red;" id="foo">
4252 A table with no data (take 2)
4260 # A table with nothing but a caption is invalid XHTML, we might want to render
4261 # this as <p>caption</p>
4262 # Parsoid team replies: table with only a caption is legal in HTML5
4264 A table with nothing but a caption
4272 </caption><tr><td></td></tr></table>
4275 <table><caption> caption</caption></table>
4279 A table with caption with default-spaced attributes and a table row
4282 |+ style="color: red;" | caption1
4288 <caption style="color: red;"> caption1
4297 A table with captions with non-default spaced attributes and a table row
4300 |+style="color: red;"|caption2
4301 |+ style="color: red;"| caption3
4307 <caption style="color: red;">caption2
4309 <caption style="color: red;"> caption3
4318 Table td-cell syntax variations
4322 | foo bar foo || baz
4323 | style='color:red;' | baz
4324 | style='color:red;' || baz
4331 <td> foo bar foo </td>
4334 <td style="color:red;"> baz
4336 <td> style='color:red;' </td>
4364 Simple table but with multiple dashes for row wikitext
4382 Multiplication table
4384 {| border="1" cellpadding="2"
4385 |+Multiplication table
4387 ! × !! 1 !! 2 !! 3
4405 <table border="1" cellpadding="2">
4406 <caption>Multiplication table
4453 Accept "||" in table headings
4468 Accept "||" in indented table headings
4478 </th></tr></table></dd></dl>
4483 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4500 Accept "| !" at start of line in tables (ignore !-attribute)
4504 | !style="color:red" | bar
4516 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 +/-
4520 |style='color:red;'|+1
4521 |style='color:blue;'|-1
4533 <td style="color:red;">+1
4535 <td style="color:blue;">-1
4559 |rowspan=2| Cell 2, row 1 (and 2)
4570 <td rowspan="2"> Cell 2, row 1 (and 2)
4588 {| bgcolor=#ABCDEF border=2
4593 |the original table again
4601 <table bgcolor="#ABCDEF" border="2">
4609 <td>the original table again
4615 Invalid attributes in table cell (bug 1830)
4630 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4633 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4637 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4638 <td>]" onmouseover="alert(document.cookie)">test
4647 Indented table markup mixed with indented pre content (proposed in bug 6200)
4652 Text that should be rendered preformatted
4660 <pre>Text that should be rendered preformatted
4669 Template-generated table cell attributes and cell content
4678 <td style="color: red"> Foo
4680 <td style="color: red"> Foo
4686 Template-generated table cell attributes and cell content (2)
4689 |align=center {{table_attribs}}
4694 <td align="center" style="color: red"> Foo
4700 Template-generated table cell attributes and cell content (3)
4703 |align=center {{table_cells}}
4708 <td align="center" style="color: red"> Foo </td>
4716 Table with row followed by newlines and table heading
4734 Table with empty line following the start tag
4751 # FIXME: Preserve the attribute properly (with an empty string as value) in
4752 # the PHP parser. Parsoid implements the behavior below.
4754 Table attributes with empty value
4764 </td></tr></tbody></table>
4769 Wikitext table with a lot of comments
4792 Wikitext table with double-line table cell
4809 Table cell with a single comment
4825 # The expected HTML structure in this test is debatable. The PHP parser does
4826 # not parse this kind of table at all. The main focus for Parsoid is on
4827 # round-tripping, so this output is ok for now. TODO: revisit!
4829 Wikitext table with html-syntax row
4839 <td>foo</td></tr></tbody></table>
4843 Implicit <td> after a |-
4844 (PHP parser relies on Tidy to add the missing <td> tags)
4846 parsoid=wt2html,wt2wt
4859 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4860 (PHP parser relies on Tidy to add the missing <td> tags)
4862 parsoid=wt2html,wt2wt
4874 <tr><td><pre>a</pre></td></tr>
4875 <tr><td> b</td></tr>
4881 Lists should be recognized in an implicit <td> context
4882 (PHP parser relies on Tidy to add the missing <td> tags)
4884 parsoid=wt2html,wt2wt
4901 Parsoid: Round-trip tables directly followed by content (bug 51219)
4903 parsoid=wt2html,wt2wt
4915 <td>foo</td></tr></tbody></table> bar
4919 <td>baz</td></tr></tbody></table><b>quux</b>
4923 Parsoid: Default to a newline after tables in new content (bug 51219)
4930 <nowiki> </nowiki>bar
4937 <tr><td>foo</td></tr></tbody></table> bar
4939 <tr><td>baz</td></tr></tbody></table><b>quux</b>
4943 Parsoid: newline inducing block nodes don't suppress <nowiki>
4958 Plain link, capitalized
4962 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4967 Plain link, uncapitalized
4971 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4978 [[Main Page|The Main Page]]
4980 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4985 Piped link with comment in link text
4987 [[Main Page|The Main<!--front--> Page]]
4989 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4998 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
5003 Broken link with fragment
5005 [[Zigzagzogzagzig#zug]]
5007 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
5012 Special page link with fragment
5014 [[Special:Version#anchor]]
5016 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
5021 Nonexistent special page link with fragment
5023 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
5025 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
5032 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
5034 <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>
5041 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
5043 <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>!!!
5054 Bug 43661: Piped links with identical prefixes
5056 [[prefixed article|prefixed articles with spaces]]
5058 [[prefixed article|prefixed articlesaoeu]]
5060 [[Main Page|Main Page test]]
5062 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
5063 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
5064 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
5070 Link with HTML entity in suffix / tail
5072 [[Main Page]]", [[Main Page]]a
5074 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
5079 Link with 3 brackets
5088 Link with 4 brackets
5092 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
5097 Piped link with 3 brackets
5099 [[[main page|the main page]]]
5101 <p>[[[main page|the main page]]]
5106 Piped link with extlink-like text
5109 [[Main Page|This is a [bar]]]
5111 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
5112 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
5117 Link with multiple pipes
5119 [[Main Page|The|Main|Page]]
5121 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
5128 [[Talk:Parser testing]], [[Meta:Disclaimers]]
5130 <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>
5135 MemoryAlpha:AlphaTest
5137 This is an article in the MemoryAlpha namespace
5138 (which shadows the memoryalpha interwiki link).
5142 Namespace takes precedence over interwiki link (bug 51680)
5144 [[MemoryAlpha:AlphaTest]]
5146 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5150 # The previous test doesn't work correctly in html2*, due to not recognizing the
5151 # link as an internal one. This one checks for the correct behavior.
5153 Link to namespace preferred over interwiki with correct rel attribute
5155 parsoid=html2wt,html2html
5157 [[MemoryAlpha:AlphaTest]]
5159 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5164 Piped link to namespace
5166 [[Meta:Disclaimers|The disclaimers]]
5168 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
5175 [[Usually caused by a typo (oops}]]
5177 <p>[[Usually caused by a typo (oops}]]
5182 Link containing % (not as a hex sequence)
5186 <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>
5191 Link containing % as a single hex sequence interpreted to char
5195 <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>
5200 Link containing % as a double hex sequence interpreted to hex sequence
5204 <p>[[7%2525 Solution]]
5209 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
5210 Example for such a section: == < ==
5212 [[%23%3c]][[%23%3e]]
5214 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
5219 Link containing "<#" and ">#" as a hex sequences
5221 [[%3c%23]][[%3e%23]]
5223 <p>[[%3c%23]][[%3e%23]]
5228 Link containing an equals sign
5230 [[Special:BookSources/isbn=4-00-026157-6]]
5232 <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>
5239 Just a test of an article title containing a tilde.
5242 # note that links containing signatures, like [[Foo~~~~]], are
5243 # massaged by the pre-save transform (PST) and so the tildes are never
5244 # seen by the parser.
5246 Link containing a tilde
5250 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
5255 Link containing double-single-quotes '' (bug 4598)
5257 [[Lista d''e paise d''o munno]]
5259 <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>
5264 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5266 Some [[Link|pretty ''italics'' and stuff]]!
5268 <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>!
5273 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5275 ''Some [[Link|pretty ''italics'' and stuff]]!
5277 <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>
5282 Link with double quotes in title part (literal) and alternate part (interpreted)
5284 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5288 [[''Pentecoste''|Pentecoste]]
5290 [[''Pentecoste''|''Pentecoste'']]
5292 <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>
5293 </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>
5294 </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>
5295 </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>
5300 Broken image links with HTML captions (bug 39700)
5302 [[File:Nonexistent|<script></script>]]
5303 [[File:Nonexistent|100px|<script></script>]]
5304 [[File:Nonexistent|<]]
5305 [[File:Nonexistent|a<i>b</i>c]]
5307 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5308 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5309 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5310 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5317 [[http://www.example.com]]
5319 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5324 Plain link to URL with link text
5326 [[http://www.example.com Link text]]
5328 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5333 Plain link to protocol-relative URL
5335 [[//www.example.com]]
5337 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5342 Plain link to protocol-relative URL with link text
5344 [[//www.example.com Link text]]
5346 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5351 Plain link to page with question mark in title
5357 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5358 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5363 # I'm fairly sure the expected result here is wrong.
5364 # We want these to be URL links, not pseudo-pages with URLs for titles....
5365 # However the current output is also pretty screwy.
5368 # I'm changing it to match the current output--it arguably makes more
5369 # sense in the light of the test above. Old expected result was:
5370 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5372 # But I think this test is bordering on "garbage in, garbage out" anyway.
5377 Piped link to URL: [[http://www.example.com|an example URL]]
5379 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5384 BUG 2: [[page|http://url/]] should link to page, not http://url/
5386 [[Main Page|http://url/]]
5388 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5393 BUG 337: Escaped self-links should be bold
5397 [[Bug462]] [[Bug462]]
5399 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5404 Self-link to section should not be bold
5408 [[Main Page#section]]
5410 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5421 Self-link to numeric title
5427 <p><strong class="selflink">0</strong>
5432 Link to numeric-equivalent title
5438 <p><a href="/wiki/00" title="00">00</a>
5443 <nowiki> inside a link
5445 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5447 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5452 Non-breaking spaces in title
5454 [[ Main Page ]]
5456 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5461 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5467 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5472 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5478 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5483 Internal link with en linktrail: no apostrophes (bug 27473)
5489 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5494 Internal link with ca linktrail with apostrophes (bug 27473)
5500 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5505 Internal link with kaa linktrail with apostrophes (bug 27473)
5511 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5516 1. Interaction of linktrail and template encapsulation
5522 <p><a rel="mw:WikiLink" href="Foo" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[[Foo]]"}},"i":0}},"l"]}'>Fool</a></p>
5526 2. Interaction of linktrail and template encapsulation
5530 {{echo|Some [[Fool]]}}s
5532 <p data-parsoid='{}'><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Some [[Fool]]"}},"i":0}},"s"]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>Some </span><a rel="mw:WikiLink" href="./Fool" about="#mwt1" data-parsoid='{"stx":"simple","a":{"href":"./Fool"},"sa":{"href":"Fool"},"tail":"s"}'>Fools</a></p>
5536 3. Interaction of linktrail and template encapsulation
5540 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
5542 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Some [[Fool]]s are '''bold and foolish'''"}},"i":0}}]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>Some <a rel="mw:WikiLink" href="./Fool" data-parsoid='{"stx":"simple","a":{"href":"./Fool"},"sa":{"href":"Fool"},"tail":"s"}'>Fools</a> are <b data-parsoid="{}">bold and foolish</b></p>
5552 Internal link with is link prefix
5556 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5558 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5569 Internal link with is link trail and link prefix
5573 [[mótmælendatrú|xxx]]ar
5575 mótmælenda[[söfnuður]]
5576 mótmælenda[[söfnuður|söfnuðir]]
5577 mótmælenda[[söfnuður|söfnuðir]]xxx
5579 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
5580 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
5581 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
5582 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
5583 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
5588 Parsoid link trail escaping
5590 parsoid=html2wt,html2html
5594 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
5598 Parsoid link prefix escaping
5601 parsoid=html2wt,html2html
5603 Aðrir mótmælenda<nowiki/>[[söfnuður]]
5605 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5609 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5617 [http://wp.org ''foo'']
5619 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5620 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5621 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5622 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5627 Parsoid: Scoped parsing should handle mixed transclusions and plain text
5631 [[Foo|{{echo|a}} b {{echo|c}}]]
5633 <p><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>
5637 ### Interwiki links (see maintenance/interwiki.sql)
5641 Inline interwiki link
5643 [[MeatBall:SoftSecurity]]
5645 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5650 Inline interwiki link with empty title (bug 2372)
5654 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5659 Interwiki link encoding conversion (bug 1636)
5661 *[[Wikipedia:ro:Olteniţa]]
5662 *[[Wikipedia:ro:Olteniţa]]
5665 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5667 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5674 Interwiki link with fragment (bug 2130)
5676 [[MeatBall:SoftSecurity#foo]]
5678 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5682 # Ideally the wikipedia: prefix here should be proto-relative too
5684 Different interwiki prefixes mapping to the same URL
5692 <p><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}'>wikipedia:Foo</a></p>
5694 <p><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}'>en:Foo</a></p>
5698 Interwiki links that cannot be represented in wiki syntax
5703 [[meatball:ok#foo|ok with fragment]]
5704 [[meatball:ok_as_well?|ok ending with ? mark]]
5705 [http://de.wikipedia.org/wiki/Foo?action=history has query]
5706 [http://de.wikipedia.org/wiki/#foo is just fragment]
5709 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok">meatball:ok</a>
5710 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo">ok with fragment</a>
5711 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F">ok ending with ? mark</a>
5712 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
5713 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
5717 Interwiki links: trail
5721 [[wikipedia:Foo|Ba]]r
5723 <p data-parsoid='{}'><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"piped","a":{"href":"http://en.wikipedia.org/wiki/Foo"},"sa":{"href":"wikipedia:Foo"},"isIW":true,"tail":"r"}'>Bar</a></p>
5727 ### Interlanguage links
5728 ### Language links (so that searching for '### language' matches..)
5742 Double interlanguage link
5753 Interlanguage link, with prefix links
5765 Double interlanguage link, with prefix links (bug 8897)
5778 Parsoid-specific test: Wikilinks with should RT properly
5784 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5789 Parsoid bug 53221: Wikilinks should be properly entity-escaped
5793 He&nbsp;llo [[Foo|He&nbsp;llo]]
5795 He&nbsp;llo [[He&nbsp;llo]]
5797 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5798 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5802 Parsoid: handle constructor well
5810 <p><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
5812 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
5816 Parsoid: recognize interlanguage links without a target page
5823 <link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
5827 Parsoid: recognize interwiki links without a target page
5833 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
5837 Parsoid: Bug #45209, handle interwiki links pointing to the current wiki as plain wiki links
5843 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"en:Foo"}}'>Foo</a></p>
5847 ### Redirects, Parsoid-only
5850 1. Simple redirect to page
5854 #REDIRECT [[Main Page]]
5856 <link rel="mw:PageProp/redirect" href="./Main_Page">
5859 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
5861 2. Other redirect variants
5863 parsoid=wt2html,wt2wt
5865 #REDIRECT [[Main_Page]]
5866 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
5868 <link rel="mw:PageProp/redirect" href="./Main_Page">
5869 <link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
5873 Optional colon in #REDIRECT
5875 # the colon is archaic syntax. we support it for wt2html, but we
5876 # don't care that it roundtrips back to the modern syntax.
5877 parsoid=wt2html,html2html
5879 #REDIRECT:[[Main Page]]
5881 <link rel="mw:PageProp/redirect" href="./Main_Page">
5885 Whitespace in #REDIRECT with optional colon
5887 # the colon and gratuitous whitespace is archaic syntax. we support
5888 # it for wt2html, but we don't care that it roundtrips back to the
5889 # modern syntax (without extra whitespace)
5890 parsoid=wt2html,html2html
5897 <link rel="mw:PageProp/redirect" href="./Main_Page">
5901 Piped link in #REDIRECT
5903 # content after piped link is ignored. we support this syntax,
5904 # but don't care that the piped link is lost when we roundtrip this.
5907 #REDIRECT [[Main Page|bar]]
5909 <link rel="mw:PageProp/redirect" href="./Main_Page">
5913 Redirect to category
5917 #REDIRECT [[Category:Foo]]
5919 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5923 Redirect to category with URL encoding
5927 #REDIRECT [[Category%3AFoo]]
5929 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5933 Redirect to category page
5935 parsoid=wt2html,html2html
5937 #REDIRECT [[:Category:Foo]]
5939 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5943 Redirect to image page (1)
5947 #REDIRECT [[File:Wiki.png]]
5949 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5953 Redirect to image page (2)
5957 #REDIRECT [[Image:Wiki.png]]
5959 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5963 Redirect to language
5967 #REDIRECT [[en:File:Wiki.png]]
5969 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5973 Redirect to interwiki
5977 #REDIRECT [[meatball:File:Wiki.png]]
5979 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5983 Non-English #REDIRECT
5988 #TILVÍSUN [[Main Page]]
5990 <link rel="mw:PageProp/redirect" href="./Main_Page">
6001 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
6018 Broken br tag sanitization
6026 # TODO: Fix html2html mode (bug 51055)!
6028 Parsoid: Broken br tag recognition
6038 Incorrecly removing closing slashes from correctly formed XHTML
6040 <br style="clear:both;" />
6042 <p><br style="clear:both;" />
6047 Failing to transform badly formed HTML into correct XHTML
6049 <br style="clear: left;">
6050 <br style="clear: right;">
6051 <br style="clear: both;">
6053 <p><br style="clear: left;" />
6054 <br style="clear: right;" />
6055 <br style="clear: both;" />
6060 Handling html with a div self-closing tag
6069 <p><div title />
6073 <p><div title=bar />
6074 <div title=bar/>
6076 <div title="bar/"></div>
6082 Handling html with a br self-closing tag
6091 <p><br title="title" />
6092 <br title="title" />
6101 Horizontal ruler (should it add that extra space?)
6115 Horizontal ruler -- 4+ dashes render hr
6124 Horizontal ruler -- eats additional dashes on the same line
6133 Horizontal ruler -- does not collapse dashes on consecutive lines
6144 Horizontal ruler -- <4 dashes render as plain text
6153 Horizontal ruler -- Supports content following dashes on same line
6162 ### Block-level elements
6210 ***#Number on level 4
6212 **#Number on level 3
6213 **#Number on level 3
6217 #** Level 3, but ordered
6240 <li>Number on level 4
6248 <li>Number on level 3
6250 <li>Number on level 3
6273 <li> Level 3, but ordered
6319 Nested lists 3 (first element empty)
6336 Nested lists 4 (first element empty)
6354 Nested lists 5 (both elements empty)
6372 Nested lists 6 (both elements empty)
6389 Nested lists 7 (skip initial nesting levels)
6407 Nested lists 8 (multiple nesting transitions)
6433 1. Lists with start-of-line-transparent tokens before bullets: Comments
6451 2. Lists with start-of-line-transparent tokens before bullets: Template close
6466 List items are not parsed correctly following a <pre> block (bug 785)
6484 List items from template
6495 * notSOL{{inner list}}
6526 List interrupted by empty line or heading
6545 <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>
6547 <li> Another list item
6554 Multiple list tags generated by templates
6569 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6572 <!--This line will NOT split the list-->
6574 <!--This line will NOT split the list either-->
6576 <!--foo--> <!----> <!--This line NOT split the list either-->
6593 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6596 <!--This line will NOT split the list-->
6598 <!--This line will NOT split the list either-->
6600 <!--foo--> <!----> <!--This line NOT split the list
6619 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6621 parsoid=wt2html,wt2wt
6625 * {{echo|<li>templated li-hack}}
6626 * <!--foo--> <li> unsupported li-hack with preceding comments
6629 <li><li>not a li-hack
6636 <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>
6637 <li> <!--foo--> </li>
6638 <li> li-hack with preceding comments</li>
6649 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6676 Parsoid: Test of whitespace serialization with Templated bullets
6683 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6687 # ------------------------------------------------------------------------
6688 # The next set of tests are about Parsoid's ability to handle badly nested
6689 # tags (parse, minimize scope of fixup, and roundtrip back)
6690 # ------------------------------------------------------------------------
6693 Unbalanced closing block tags break a list
6694 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6712 Unbalanced closing non-block tags don't break a list
6713 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6730 Unclosed formatting tags that straddle lists are closed and reopened
6731 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6745 List embedded in a non-block tag
6746 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
6752 <p><small></small></p>
6758 <p><small></small></p>
6762 Table with missing opening <tr> tag
6764 parsoid=wt2html,wt2wt
6782 # Note that the current date is hard-coded as
6783 # 1970-01-01T00:02:03Z (a Thursday)
6784 # when running parser tests. The timezone is also fixed to GMT, so
6785 # local date will be identical to current date.
6788 Magic Word: {{CURRENTDAY}}
6797 Magic Word: {{CURRENTDAY2}}
6806 Magic Word: {{CURRENTDAYNAME}}
6815 Magic Word: {{CURRENTDOW}}
6824 Magic Word: {{CURRENTMONTH}}
6833 Magic Word: {{CURRENTMONTH1}}
6842 Magic Word: {{CURRENTMONTHABBREV}}
6844 {{CURRENTMONTHABBREV}}
6851 Magic Word: {{CURRENTMONTHNAME}}
6853 {{CURRENTMONTHNAME}}
6860 Magic Word: {{CURRENTMONTHNAMEGEN}}
6862 {{CURRENTMONTHNAMEGEN}}
6869 Magic Word: {{CURRENTTIME}}
6878 Magic Word: {{CURRENTHOUR}}
6887 Magic Word: {{CURRENTWEEK}} (@bug 4594)
6896 Magic Word: {{CURRENTYEAR}}
6905 Magic Word: {{CURRENTTIMESTAMP}}
6907 {{CURRENTTIMESTAMP}}
6914 Magic Words LOCAL (UTC)
6918 * {{LOCALMONTHNAME}}
6919 * {{LOCALMONTHNAMEGEN}}
6920 * {{LOCALMONTHABBREV}}
6929 * {{LOCALTIMESTAMP}}
6965 Magic Word: {{FULLPAGENAME}}
6967 title=[[User:Ævar Arnfjörð Bjarmason]]
6971 <p>User:Ævar Arnfjörð Bjarmason
6976 Magic Word: {{FULLPAGENAMEE}}
6978 title=[[User:Ævar Arnfjörð Bjarmason]]
6982 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6987 Magic Word: {{TALKSPACE}}
6989 title=[[User:Ævar Arnfjörð Bjarmason]]
6998 Magic Word: {{TALKSPACE}}, same namespace
7000 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7009 Magic Word: {{TALKSPACE}}, main namespace
7011 title=[[Parser Test]]
7020 Magic Word: {{TALKSPACEE}}
7022 title=[[User:Ævar Arnfjörð Bjarmason]]
7031 Magic Word: {{SUBJECTSPACE}}
7033 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7042 Magic Word: {{SUBJECTSPACE}}, same namespace
7044 title=[[User:Ævar Arnfjörð Bjarmason]]
7053 Magic Word: {{SUBJECTSPACE}}, main namespace
7055 title=[[Parser Test]]
7063 Magic Word: {{SUBJECTSPACEE}}
7065 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7074 Magic Word: {{NAMESPACE}}
7076 title=[[User:Ævar Arnfjörð Bjarmason]]
7085 Magic Word: {{NAMESPACEE}}
7087 title=[[User:Ævar Arnfjörð Bjarmason]]
7096 Magic Word: {{NAMESPACENUMBER}}
7098 title=[[User:Ævar Arnfjörð Bjarmason]]
7107 Magic Word: {{SUBPAGENAME}}
7109 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7118 Magic Word: {{SUBPAGENAMEE}}
7120 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7129 Magic Word: {{ROOTPAGENAME}}
7131 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7135 <p>Ævar Arnfjörð Bjarmason
7140 Magic Word: {{ROOTPAGENAMEE}}
7142 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7146 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7151 Magic Word: {{BASEPAGENAME}}
7153 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7157 <p>Ævar Arnfjörð Bjarmason
7162 Magic Word: {{BASEPAGENAMEE}}
7164 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7168 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7173 Magic Word: {{TALKPAGENAME}}
7175 title=[[User:Ævar Arnfjörð Bjarmason]]
7179 <p>User talk:Ævar Arnfjörð Bjarmason
7184 Magic Word: {{TALKPAGENAMEE}}
7186 title=[[User:Ævar Arnfjörð Bjarmason]]
7190 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7195 Magic Word: {{SUBJECTPAGENAME}}
7197 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7201 <p>User:Ævar Arnfjörð Bjarmason
7206 Magic Word: {{SUBJECTPAGENAMEE}}
7208 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7210 {{SUBJECTPAGENAMEE}}
7212 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7217 Magic Word: {{NUMBEROFFILES}}
7226 Magic Word: {{PAGENAME}}
7228 title=[[User:Ævar Arnfjörð Bjarmason]]
7232 <p>Ævar Arnfjörð Bjarmason
7237 Magic Word: {{PAGENAME}} with metacharacters
7239 title=[['foo & bar = baz']]
7243 <p><i>'foo & bar = baz'</i>
7248 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
7250 title=[[*RFC 1234 http://example.com/]]
7254 <p>*RFC 1234 http://example.com/
7259 Magic Word: {{PAGENAMEE}}
7261 title=[[User:Ævar Arnfjörð Bjarmason]]
7265 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7270 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
7272 title=[[*RFC 1234 http://example.com/]]
7276 <p>*RFC_1234_http://example.com/
7281 Magic Word: {{REVISIONID}}
7290 Magic Word: {{SCRIPTPATH}}
7299 Magic Word: {{STYLEPATH}}
7308 Magic Word: {{SERVER}}
7312 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7317 Magic Word: {{SERVERNAME}}
7326 Magic Word: {{SITENAME}}
7335 Case-sensitive magic words, when cased differently, should just be template transclusions
7342 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
7343 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
7344 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
7345 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
7350 Case-insensitive magic words should still work with weird casing.
7360 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7365 Namespace 1 {{ns:1}}
7374 Namespace 1 {{ns:01}}
7383 Namespace 0 {{ns:0}} (bug 4783)
7391 Namespace 0 {{ns:00}} (bug 4783)
7399 Namespace -1 {{ns:-1}}
7408 Namespace User {{ns:User}}
7417 Namespace User talk {{ns:User_talk}}
7426 Namespace User talk {{ns:uSeR tAlK}}
7435 Namespace File {{ns:File}}
7444 Namespace File {{ns:Image}}
7453 Namespace (lang=de) Benutzer {{ns:User}}
7464 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7470 <p>Benutzer Diskussion
7478 {{urlencode:hi world?!}}
7479 {{urlencode:hi world?!|WIKI}}
7480 {{urlencode:hi world?!|PATH}}
7481 {{urlencode:hi world?!|QUERY}}
7491 Magic Word: prioritize type info over data-parsoid
7497 <meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__"}'/>
7501 Magic Word: serialize on separate line (parsoid)
7503 parsoid=wt2wt,html2wt
7509 foo<meta property="mw:PageProp/notoc"/>bar
7513 Magic Word: rt non-english wikis
7520 <meta property="mw:PageProp/noeditsection" data-parsoid='{"src":"__NOEDITSECTION__","magicSrc":"__NOEDITSECTION__"}'/>
7527 Magic links: internal link to RFC (bug 479)
7531 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7536 Magic links: RFC (bug 479)
7540 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7545 Magic links: ISBN (bug 1937)
7549 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7554 Magic links: PMID incorrectly converts space to underscore
7558 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7567 Nonexistent template
7569 {{thistemplatedoesnotexist}}
7571 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7576 Template with invalid target containing tags
7578 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7580 <p>{{a<b>b</b>|foo|a=b|a = b}}
7585 Template with invalid target containing unclosed tag
7587 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7589 <p>{{a<b>|foo|a=b|a = b}}</b>
7594 Template with invalid target containing wikilink
7598 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
7601 <p><span typeof="mw:Transclusion" about="#mwt1" data-mw='{"parts":[{"template":{"target":{"wt":"[[Main Page]]"},"params":{},"i":0}}]}'>{{</span><a rel="mw:WikiLink" href="./Main_Page" about="#mwt1">Main Page</a><span about="#mwt1">}}</span></p>
7607 This is a test template
7615 <p>This is a test template
7620 Template with explicit namespace
7624 <p>This is a test template
7632 This is a test template with parameter {{{param}}}
7638 {{paramtest|param=foo}}
7640 <p>This is a test template with parameter foo
7645 Template:paramtestnum
7651 Template unnamed parameter
7653 {{paramtestnum|Main Page|the main page}}
7655 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7660 Template:templatesimple
7666 Template:templateredirect
7668 #redirect [[Template:templatesimple]]
7672 Template:templateasargtestnum
7678 Template:templateasargtest
7680 {{template{{{templ}}}}}
7684 Template:templateasargtest2
7690 Template with template name as unnamed argument
7692 {{templateasargtestnum|templatesimple}}
7699 Template with template name as argument
7701 {{templateasargtest|templ=simple}}
7708 Template with template name as argument (2)
7710 {{templateasargtest2|templ=templatesimple}}
7717 Template:templateasargtestdefault
7719 {{{{{templ|templatesimple}}}}}
7729 Template with default value
7731 {{templateasargtestdefault}}
7738 Template with default value (value set)
7740 {{templateasargtestdefault|templ=templa}}
7749 {{templateredirect}}
7756 Template with argument in separate line
7758 {{ templateasargtest |
7766 Template with complex template as argument
7769 param ={{ templateasargtest |
7772 <p>This is a test template with parameter (test)
7777 Template with thumb image (with link in description)
7780 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
7782 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>
7787 Template:complextemplate
7789 {{{1}}} {{paramtest|
7790 param ={{{param}}}}}
7794 Template with complex arguments
7797 param ={{ templateasargtest |
7798 templ = simple }}|[[Template:complextemplate|link]]}}
7800 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
7805 BUG 553: link with two variables in a piped link
7808 |[[{{{1}}}|{{{2}}}]]
7813 <td>[[{{{1}}}|{{{2}}}]]
7819 Magic variable as template parameter
7821 {{paramtest|param={{SITENAME}}}}
7823 <p>This is a test template with parameter MediaWiki
7830 [[{{{param}}}|link]]
7834 Template parameter as link source
7836 {{linktest|param=Main Page}}
7838 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
7843 Template-generated attribute string (k='v')
7845 <span {{attr_str|id|v1}}>bar</span>
7847 <p><span id="v1">bar</span>
7854 including another template, {{paramtest|param={{{arg}}}}}
7858 Template passing argument to another template
7860 {{paramtest2|arg='hmm'}}
7862 <p>including another template, This is a test template with parameter 'hmm'
7873 Template as link source
7877 [[{{linktest2}}|Main Page]]
7879 [[{{linktest2}}]]Page
7881 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7882 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7883 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
7901 Template infinite loop
7905 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
7910 Template from main namespace
7929 BUG 529: Template with table, not included at beginning of line
7948 BUG 523: Template shouldn't eat newline (or add an extra one before table)
7968 BUG 41: Template parameters shown as broken links
7977 Template with targets containing wikilinks
7981 {{[[{{echo|foo}}]]}}
7983 {{{{echo|[[foo}}]]}}
7985 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7986 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7994 ''None'' of '''this''' should be
7996 but rather passed unmodified
8000 # hmm, fix this or just deprecate msgnw and document its behavior?
8006 {{msgnw:MSGNW test}}
8008 <p>''None'' of '''this''' should be
8010 but rather passed unmodified
8018 {{int:youhavenewmessages|lots of money|not!}}
8020 <p>You have lots of money (not!).
8027 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8031 <includeonly> and <noinclude> being included
8042 <onlyinclude>Foo</onlyinclude>bar
8046 <onlyinclude> being included
8058 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
8062 <onlyinclude> and <includeonly> being included
8071 <includeonly> and <noinclude> on a page
8073 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8080 Un-closed <noinclude>
8087 <onlyinclude> on a page
8089 <onlyinclude>Foo</onlyinclude>bar
8096 Un-closed <onlyinclude>
8103 Self-closed noinclude, includeonly, onlyinclude tags
8114 Unbalanced includeonly and noinclude tags
8118 |b</noinclude></noinclude>
8119 |c</noinclude></includeonly>
8120 |d</includeonly></includeonly>
8129 <td>c</includeonly>
8131 <td>d</includeonly></includeonly>
8137 Template:Includeonly section
8140 ==Includeonly section==
8146 Bug 6563: Edit link generation for section shown by <includeonly>
8148 {{includeonly section}}
8150 <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>
8151 <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>
8155 # Uses same input as the contents of [[Template:Includeonly section]]
8157 Bug 6563: Section extraction for section shown by <includeonly>
8162 ==Includeonly section==
8170 Bug 6563: Edit link generation for section suppressed by <includeonly>
8173 ==Includeonly section==
8177 <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>
8182 Bug 6563: Section extraction for section suppressed by <includeonly>
8187 ==Includeonly section==
8195 Un-closed <includeonly>
8201 # TODO: test with DOM fragment reuse!
8203 Parsoid: DOM fragment reuse
8205 parsoid=wt2wt,wt2html
8207 a{{echo|b<table></table>c}}d
8219 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
8220 <table></table>c"}},"i":0}}]}'>b</span>
8221 <table about="#mwt1"></table><span about="#mwt1">c</span>d
8224 <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">
8226 <table about="#mwt2"></table><span about="#mwt2">
8228 <p about="#mwt2">cd</p>
8231 <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">
8234 <table about="#mwt3"></table><span about="#mwt3">
8237 <p about="#mwt3">b</p>
8241 Parsoid: Merge double tds (bug 50603)
8250 <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>
8255 Parsoid: Merge double tds in nested transclusion content (bug 50603)
8265 <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}}]}'>
8267 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
8273 ### <includeonly> and <noinclude> in attributes
8276 0. includeonly around the entire attribute
8278 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
8280 <p><span id="v2">bar</span>
8285 1. includeonly in html attr key
8287 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
8289 <p><span id="foo">bar</span>
8294 2. includeonly in html attr value
8296 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
8297 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
8299 <p><span id="v1">bar</span>
8300 <span id="v1">bar</span>
8305 3. includeonly in part of an attr value
8307 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
8309 <p><span style="color:red;">bar</span>
8314 4. includeonly in table attributes
8338 ### Testing parsing of templates where a template arg
8339 ### has the same name as the template itself.
8349 Templates: Template Name/Arg clash: 1. Use of positional param
8358 Templates: Template Name/Arg clash: 2. Use of named param
8367 Templates: Template Name/Arg clash: 3. Use of named param with empty input
8376 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
8380 Templates: 1. Simple use
8389 Templates: 2. Inside a block tag
8391 <div>{{echo|Foo}}</div>
8392 <blockquote>{{echo|Foo}}</blockquote>
8395 <blockquote>Foo</blockquote>
8400 Templates: P-wrapping: 1a. Templates on consecutive lines
8411 Templates: P-wrapping: 1b. Templates on consecutive lines
8425 Templates: P-wrapping: 1c. Templates on consecutive lines
8428 {{echo|bar}} <div>baz</div>
8437 Templates: P-wrapping: 1d. Template preceded by comment-only line
8446 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8450 Templates: Inline Text: 1. Multiple tmeplate uses
8452 {{echo|Foo}}bar{{echo|baz}}
8459 Templates: Inline Text: 2. Back-to-back template uses
8461 {{echo|Foo}}{{echo|bar}}
8468 Templates: Block Tags: 1. Multiple template uses
8470 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8472 <div>Foo</div><div>bar</div><div>baz</div>
8477 Templates: Block Tags: 2. Back-to-back template uses
8479 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8481 <div>Foo</div><div>bar</div>
8486 Templates: Links: 1. Simple example
8488 {{echo|[[Foo|bar]]}}
8490 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8495 Templates: Links: 2. Generation of link href
8497 [[{{echo|Foo}}|bar]]
8499 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8504 Templates: Links: 3. Generation of part of a link href
8506 [[Fo{{echo|o}}|bar]]
8510 [[Foo{{echo|bar}}baz]]
8512 [[Foo{{echo|bar}}|bar]]
8514 [[:Foo{{echo|bar}}]]
8516 [[:Foo{{echo|bar}}|bar]]
8518 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8519 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8520 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8521 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8522 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8523 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8528 Templates: Links: 4. Multiple templates generating link href
8530 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8532 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8537 Templates: Links: 5. Generation of link text
8539 [[Foo|{{echo|bar}}]]
8541 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8546 Templates: Links: 5. Nested templates (only outermost template should be marked)
8548 {{echo|[[{{echo|Foo}}|bar]]}}
8550 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8555 Templates: HTML Tag: 1. Generation of HTML attr. key
8557 <div {{echo|style}}="color:red;">foo</div>
8559 <div style="color:red;">foo</div>
8564 Templates: HTML Tag: 2. Generation of HTML attr. value
8566 <div style={{echo|'color:red;'}}>foo</div>
8568 <div style="color:red;">foo</div>
8573 Templates: HTML Tag: 3. Generation of HTML attr key and value
8575 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8577 <div style="color:red;">foo</div>
8582 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8584 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8586 <div title="This is a long title with just one piece templated">foo</div>
8591 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8593 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8595 <div title="This is a long title with just one piece templated">foo</div>
8600 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8602 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8604 <div title="This is a long title with just one piece templated">foo</div>
8609 Templates: HTML Tag: 7. Generation of partial attribute key string
8611 <div st{{echo|yle}}="color:red;">foo</div>
8613 <div style="color:red;">foo</div>
8618 Templates: HTML Tables: 1. Generating start of a HTML table
8620 {{echo|<table><tr><td>foo</td>}}</tr></table>
8622 <table><tr><td>foo</td></tr></table>
8627 Templates: HTML Tables: 2a. Generating middle of a HTML table
8629 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8631 <table><tr><td>foo</td></tr></table>
8636 Templates: HTML Tables: 2b. Generating middle of a HTML table
8638 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8640 <table><tr><td>foo</td></tr></table>
8645 Templates: HTML Tables: 3. Generating end of a HTML table
8647 <table><tr>{{echo|<td>foo</td></tr></table>}}
8649 <table><tr><td>foo</td></tr></table>
8654 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8656 {{echo|<table>}}<tr><td>foo</td></tr></table>
8658 <table><tr><td>foo</td></tr></table>
8663 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8665 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8667 <table><tr><td>foo</td></tr></table>
8672 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8674 <table><tr>{{echo|<td>}}foo</td></tr></table>
8676 <table><tr><td>foo</td></tr></table>
8681 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8683 <table><tr><td>foo{{echo|</td>}}</tr></table>
8685 <table><tr><td>foo</td></tr></table>
8690 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8692 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8694 <table><tr><td>foo</td></tr></table>
8699 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
8701 <table><tr><td>foo</td></tr>{{echo|</table>}}
8703 <table><tr><td>foo</td></tr></table>
8708 Templates: HTML Tables: 5. Proper fostering of categories from inside
8710 parsoid=wt2html,wt2wt
8712 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
8713 <!--Two categories (Bug 50330)-->
8714 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
8716 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
8717 <!--Two categories (Bug 50330)-->
8718 <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>
8722 Templates: Wiki Tables: 1a. Fostering of entire template content
8730 <tr><td></td></tr></table>
8735 Templates: Wiki Tables: 1b. Fostering of entire template content
8748 <tr><td></td></tr></table>
8753 Templates: Wiki Tables: 2. Fostering of partial template content
8763 <tr><td></td></tr></table>
8768 Templates: Wiki Tables: 3. td-content via multiple templates
8771 {{echo|{{pipe}}a}}{{echo|b}}
8782 Templates: Wiki Tables: 4. Templated tags, no content
8788 <tr><td></td></tr></table>
8793 Templates: Wiki Tables: 5. Templated tags, regular td-tags
8807 Templates: Wiki Tables: 6. Templated tags, templated td-tags
8821 Templates: Lists: Multi-line list-items via templates
8823 *{{echo|a {{nonexistent|
8825 *{{echo|b {{nonexistent|
8829 <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>
8831 <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>
8838 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
8840 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
8842 <p><i>ab</i>c<i>d</i>e
8847 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
8848 (PHP parser generates misnested html)
8850 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
8852 <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>
8856 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
8857 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
8859 parsoid=wt2html,wt2wt
8861 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
8863 <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>
8864 <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>
8865 <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>
8869 Templates: Ugly nesting: 4. Divs opened/closed across templates
8871 a<div>b{{echo|c</div>d}}e
8878 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
8884 |{{echo|foo</table>}}
8888 <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|}"]}'>
8892 <td>foo</td></tr></tbody></table><span about="#mwt1">
8893 </span><span about="#mwt1">|bar</span><span about="#mwt1">
8898 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
8908 <td>1. {{echo|foo </table>}}</td>
8910 <td>2. {{echo|baz </table>}}</td>
8923 <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>"]}'>
8928 <td>1. foo </td></tr></tbody></table></td>
8930 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
8931 </span><span about="#mwt2">
8932 </span><span about="#mwt2">
8933 </span><span about="#mwt2">abc</span><span about="#mwt2">
8934 </span><span about="#mwt2">
8935 </span><span about="#mwt2">
8936 </span><span about="#mwt2">
8937 </span><span about="#mwt2">
8938 </span><span about="#mwt2">
8939 </span><span about="#mwt2">xyz</span><span about="#mwt2">
8940 </span><span about="#mwt2">
8945 Templates: Ugly templates: 3. newline-only template parameter
8954 # This looks like a bug: a single newline triggers p/br for some reason.
8956 Templates: Ugly templates: 4. newline-only template parameter inconsistency
8967 Parser Functions: 1. Simple example
8976 Parser Functions: 2. Nested use (only outermost should be marked up)
8985 ### Pre-save transform tests
8988 pre-save transform: subst:
8994 This is a test template
8998 pre-save transform: normal template
9008 pre-save transform: nonexistent template
9012 {{thistemplatedoesnotexist}}
9014 {{thistemplatedoesnotexist}}
9019 pre-save transform: subst magic variables
9028 # This is bug 89, which I fixed. -- wtm
9030 pre-save transform: subst: templates with parameters
9034 {{subst:paramtest|param="something else"}}
9036 This is a test template with parameter "something else"
9042 <nowiki>'''not wiki'''</nowiki>
9046 pre-save transform: nowiki in subst (bug 1188)
9050 {{subst:nowikitest}}
9052 <nowiki>'''not wiki'''</nowiki>
9057 Template:commenttest
9059 This template has <!-- a comment --> in it.
9063 pre-save transform: comment in subst (bug 1936)
9067 {{subst:commenttest}}
9069 This template has <!-- a comment --> in it.
9073 pre-save transform: unclosed tag
9077 <nowiki>'''not wiki'''
9079 <nowiki>'''not wiki'''
9083 pre-save transform: mixed tag case
9087 <NOwiki>'''not wiki'''</noWIKI>
9089 <NOwiki>'''not wiki'''</noWIKI>
9093 pre-save transform: unclosed comment in <nowiki>
9097 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9099 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9102 # Leading @ in this template definition works around a limitation
9103 # in parsoid's parserTests which otherwise strips the <span> from the
9104 # result (confusing it for a template wrapper)
9108 @<span onmouseover="alert('crap')">Oh no</span>
9112 (confirming safety of fix for subst bug 1936)
9114 {{Template:dangerous}}
9116 <p>@<span>Oh no</span>
9121 pre-save transform: comment containing gallery (bug 5024)
9125 <!-- <gallery>data</gallery> -->
9127 <!-- <gallery>data</gallery> -->
9131 pre-save transform: comment containing extension
9135 <!-- <tag>data</tag> -->
9137 <!-- <tag>data</tag> -->
9141 pre-save transform: comment containing nowiki
9145 <!-- <nowiki>data</nowiki> -->
9147 <!-- <nowiki>data</nowiki> -->
9151 pre-save transform: <noinclude> in subst (bug 3298)
9161 pre-save transform: <onlyinclude> in subst (bug 3298)
9173 {{<includeonly>subst:</includeonly>Includes}}
9177 Template:SafeSubstTest
9179 {{<includeonly>safesubst:</includeonly>Includes}}
9183 bug 22297: safesubst: works during PST
9187 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
9193 bug 22297: safesubst: works during normal parse
9202 subst: does not work during normal parse
9206 <p>{{subst:Includes}}
9211 pre-save transform: context links ("pipe trick")
9215 [[Article (context)|]]
9218 [[Bar:Article (context)|]]
9219 [[:Bar:Article (context)|]]
9221 [[|Article (context)]]
9225 [[Article (context)|Article]]
9226 [[Bar:Article|Article]]
9227 [[:Bar:Article|Article]]
9228 [[Bar:Article (context)|Article]]
9229 [[:Bar:Article (context)|Article]]
9231 [[Article (context)]]
9232 [[Bar:X (Y) Z|X (Y) Z]]
9233 [[:Bar:X (Y) Z|X (Y) Z]]
9237 pre-save transform: context links ("pipe trick") with interwiki prefix
9241 [[interwiki:Article|]]
9242 [[:interwiki:Article|]]
9243 [[interwiki:Bar:Article|]]
9244 [[:interwiki:Bar:Article|]]
9246 [[interwiki:Article|Article]]
9247 [[:interwiki:Article|Article]]
9248 [[interwiki:Bar:Article|Bar:Article]]
9249 [[:interwiki:Bar:Article|Bar:Article]]
9253 pre-save transform: context links ("pipe trick") with parens in title
9255 pst title=[[Somearticle (context)]]
9259 [[Article (context)|Article]]
9263 pre-save transform: context links ("pipe trick") with comma in title
9265 pst title=[[Someplace, Somewhere]]
9268 [[Otherplace, Elsewhere|]]
9269 [[Otherplace, Elsewhere, Anywhere|]]
9271 [[Otherplace, Somewhere|Otherplace]]
9272 [[Otherplace, Elsewhere|Otherplace]]
9273 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
9277 pre-save transform: context links ("pipe trick") with parens and comma
9279 pst title=[[Someplace (IGNORED), Somewhere]]
9282 [[Otherplace (place), Elsewhere|]]
9284 [[Otherplace, Somewhere|Otherplace]]
9285 [[Otherplace (place), Elsewhere|Otherplace]]
9289 pre-save transform: context links ("pipe trick") with comma and parens
9291 pst title=[[Who, me? (context)]]
9294 [[Me, Myself, and I (1937 song)|]]
9296 [[Yes, you. (context)|Yes, you.]]
9297 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
9301 pre-save transform: context links ("pipe trick") with namespace
9303 pst title=[[Ns:Somearticle]]
9307 [[Ns:Article|Article]]
9311 pre-save transform: context links ("pipe trick") with namespace and parens
9313 pst title=[[Ns:Somearticle (context)]]
9317 [[Ns:Article (context)|Article]]
9321 pre-save transform: context links ("pipe trick") with namespace and comma
9323 pst title=[[Ns:Somearticle, Context, Whatever]]
9327 [[Ns:Article, Context, Whatever|Article]]
9331 pre-save transform: context links ("pipe trick") with namespace, comma and parens
9333 pst title=[[Ns:Somearticle, Context (context)]]
9337 [[Ns:Article (context)|Article]]
9341 pre-save transform: context links ("pipe trick") with namespace, parens and comma
9343 pst title=[[Ns:Somearticle (IGNORED), Context]]
9347 [[Ns:Article, Context|Article]]
9351 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
9355 [[Article(context)|]]
9356 [[Bar:Article(context)|]]
9357 [[:Bar:Article(context)|]]
9358 [[|Article(context)]]
9362 [[Article(context)|Article]]
9363 [[Bar:Article(context)|Article]]
9364 [[:Bar:Article(context)|Article]]
9365 [[Article(context)]]
9367 [[:Bar:X(Y)Z|X(Y)Z]]
9371 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
9375 [[Article (context)|]]
9376 [[Bar:Article (context)|]]
9377 [[:Bar:Article (context)|]]
9378 [[|Article (context)]]
9382 [[Article (context)|Article]]
9383 [[Bar:Article (context)|Article]]
9384 [[:Bar:Article (context)|Article]]
9385 [[Article (context)]]
9386 [[Bar:X (Y) Z|X (Y) Z]]
9387 [[:Bar:X (Y) Z|X (Y) Z]]
9391 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
9395 [[Article(context)|]]
9396 [[Bar:Article(context)|]]
9397 [[:Bar:Article(context)|]]
9398 [[|Article(context)]]
9402 [[Article(context)|Article]]
9403 [[Bar:Article(context)|Article]]
9404 [[:Bar:Article(context)|Article]]
9405 [[Article(context)]]
9407 [[:Bar:X(Y)Z|X(Y)Z]]
9411 pre-save transform: context links ("pipe trick") with commas (bug 21660)
9415 [[Article (context), context|]]
9416 [[Article (context),context|]]
9417 [[Bar:Article (context), context|]]
9418 [[Bar:Article (context),context|]]
9419 [[:Bar:Article (context), context|]]
9420 [[:Bar:Article (context),context|]]
9422 [[Article (context), context|Article]]
9423 [[Article (context),context|Article]]
9424 [[Bar:Article (context), context|Article]]
9425 [[Bar:Article (context),context|Article]]
9426 [[:Bar:Article (context), context|Article]]
9427 [[:Bar:Article (context),context|Article]]
9431 pre-save transform: trim trailing empty lines
9435 Empty lines are trimmed
9441 Empty lines are trimmed
9445 pre-save transform: Signature expansion
9450 * <noinclude>~~~</noinclude>
9451 * <includeonly>~~~</includeonly>
9452 * <onlyinclude>~~~</onlyinclude>
9454 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9455 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9456 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9457 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9462 pre-save transform: Signature expansion in nowiki tags (bug 93)
9468 <nowiki>~~~~</nowiki>
9470 <includeonly><nowiki>~~~~</nowiki></includeonly>
9472 <noinclude><nowiki>~~~~</nowiki></noinclude>
9474 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9476 {{subst:Foo}} shall be converted to FOO
9478 As well as inside noinclude/onlyinclude
9479 <noinclude>{{subst:Foo}}</noinclude>
9480 <onlyinclude>{{subst:Foo}}</onlyinclude>
9482 But not inside includeonly
9483 <includeonly>{{subst:Foo}}</includeonly>
9487 <nowiki>~~~~</nowiki>
9489 <includeonly><nowiki>~~~~</nowiki></includeonly>
9491 <noinclude><nowiki>~~~~</nowiki></noinclude>
9493 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9495 FOO shall be converted to FOO
9497 As well as inside noinclude/onlyinclude
9498 <noinclude>FOO</noinclude>
9499 <onlyinclude>FOO</onlyinclude>
9501 But not inside includeonly
9502 <includeonly>{{subst:Foo}}</includeonly>
9506 Parsoid: Recognize nowiki with trailing space in tags
9510 <nowiki ><div>[[foo]]</nowiki >
9518 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9525 Parsoid: Recognize nowiki with odd capitalization
9529 <noWikI ><div>[[foo]]</Nowiki >
9531 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9536 Parsoid: Escape nowiki with trailing space in tags
9540 <nowiki > foo </nowiki >
9546 <p><nowiki > foo </nowiki ></p>
9547 <p>a<nowiki />b</p>
9548 <p>c<nowiki/ >d</p>
9552 Parsoid: Escape weird noWikI capitalizations
9556 <noWikI > foo </NoWikI >
9558 <p><noWikI > foo </NoWikI ></p>
9562 ### Message transform tests
9565 message transform: magic variables
9575 message transform: should not transform wiki markup
9585 message transform: <noinclude> in transcluded template (bug 4926)
9595 message transform: <onlyinclude> in transcluded template (bug 4926)
9605 {{#special:}} page name, known
9609 {{#special:Recentchanges}}
9611 Special:RecentChanges
9615 {{#special:}} page name with subpage, known
9619 {{#special:Recentchanges/param}}
9621 Special:RecentChanges/param
9625 {{#special:}} page name, unknown
9629 {{#special:foobar nonexistent}}
9631 Special:Foobar nonexistent
9635 {{#speciale:}} page name, known
9639 {{#speciale:Recentchanges}}
9641 Special:RecentChanges
9645 {{#speciale:}} page name with subpage, known
9649 {{#speciale:Recentchanges/param}}
9651 Special:RecentChanges/param
9655 {{#speciale:}} page name, unknown
9659 {{#speciale:foobar nonexistent}}
9661 Special:Foobar_nonexistent
9667 ### For Parsoid-specific tests, see
9668 #### https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9673 parsoid=wt2html,wt2wt,html2html
9675 [[Image:foobar.jpg]]
9677 <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>
9680 <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>
9685 Simple image (using File: namespace, now canonical)
9689 <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>
9692 <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>
9699 [[File:Foobar.jpg|right]]
9701 <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>
9704 <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>
9710 [[File:Foobar.jpg|right|Caption text]]
9712 <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>
9715 <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>
9719 Image with caption, bug 53312 #1
9721 [[File:Foobar.jpg|right|Caption page stuff]]
9723 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption page stuff"><img alt="Caption page stuff" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
9726 <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 page stuff</figcaption></figure>
9730 Image with caption, bug 53312 #2
9732 [[File:Foobar.jpg|right|Caption page=]]
9734 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption page="><img alt="Caption page=" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
9737 <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 page=</figcaption></figure>
9741 Image with caption, bug 53312 #3
9743 [[File:Foobar.jpg|right|Caption page=stuff]]
9745 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption page=stuff"><img alt="Caption page=stuff" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
9748 <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 page=stuff</figcaption></figure>
9752 Allow empty links in image captions (Bug 60753)
9756 [[File:Foobar.jpg|thumb|Caption [[Link1]]
9761 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>Caption <a href="/index.php?title=Link1&action=edit&redlink=1" class="new" title="Link1 (page does not exist)">Link1</a> [[]] <a href="/index.php?title=Link2&action=edit&redlink=1" class="new" title="Link2 (page does not exist)">Link2</a></div></div></div>
9764 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"Caption [[Link1]]\n[[]]\n[[Link2]]\n"}],"dsr":[0,59,2,2]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"dsr":[2,null,null,null]}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption data-parsoid='{"dsr":[null,57,null,null]}'>Caption <a rel="mw:WikiLink" href="./Link1" data-parsoid='{"stx":"simple","a":{"href":"./Link1"},"sa":{"href":"Link1"},"dsr":[32,41,2,2]}'>Link1</a>
9766 <a rel="mw:WikiLink" href="./Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"},"dsr":[47,56,2,2]}'>Link2</a>
9767 </figcaption></figure>
9771 Link with empty target
9780 Image with empty attribute
9782 parsoid=wt2html,wt2wt,html2html
9784 [[File:Foobar.jpg|right||Caption text]]
9786 <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>
9789 <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>
9793 1. Block image with individual attributes from templates
9795 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
9797 <div class="thumb tright"><div class="thumbinner" style="width:139px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/137px-Foobar.jpg" width="137" height="16" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/206px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/274px-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</div></div></div>
9800 <figure typeof="mw:Image/Thumb mw:ExpandedAttrs" data-mw='{"attribs":[["thumbnail",{"html":"thumb"}],["width",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;137px&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[24,38,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">137px</span>"}]]}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="16" width="137"/></a><figcaption>This is a caption</figcaption></figure>
9804 2. Block Image with individual attributes from templates
9806 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
9808 <div class="thumb tright"><div class="thumbinner" style="width:139px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/137px-Foobar.jpg" width="137" height="16" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/206px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/274px-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</div></div></div>
9811 <figure typeof="mw:Image/Thumb mw:ExpandedAttrs" data-mw='{"attribs":[["thumbnail",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;thumb&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[18,32,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">thumb</span>"}],["width",{"html":"<span about=\"#mwt2\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;137px&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[33,47,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">137px</span>"}]]}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="16" width="137"/></a><figcaption>This is a caption</figcaption></figure>
9815 3. Inline image with individual attributes from templates
9817 [[File:Foobar.jpg|{{echo|50px}}]]
9819 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" width="50" height="6" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/75px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/100px-Foobar.jpg 2x" /></a>
9822 <p><span typeof="mw:Image mw:ExpandedAttrs" about="#mwt2" data-mw='{"attribs":[["width",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;50px&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[18,31,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">50px</span>"}]]}' data-parsoid='{"optList":[{"ck":"width","ak":"{{echo|50px}}"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
9825 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
9826 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
9828 Image with multiple attributes from the same template
9830 [[File:Foobar.jpg|{{image_attribs}}]]
9832 <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>
9835 <figure class="mw-default-size mw-halign-right" typeof="mw:Image mw:Placeholder"><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>
9839 Image with link tails
9843 123[[File:Foobar.jpg]]456
9844 123[[File:Foobar.jpg|right]]456
9845 123[[File:Foobar.jpg|thumb]]456
9847 <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
9849 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
9850 123<div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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
9853 <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>
9854 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
9855 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="25" width="220"></a></figure>456
9859 Image with multiple captions -- only last one is accepted
9861 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9863 <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>
9866 <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>
9870 Image with multiple widths -- use last
9872 [[File:Foobar.jpg|200px|300px|caption]]
9874 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg" width="300" height="34" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/450px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/600px-Foobar.jpg 2x" /></a>
9877 <p><span typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="34" width="300"/></a></span></p>
9881 Image with multiple alignments -- use first (bug 48664)
9885 [[File:Foobar.jpg|thumb|left|right|center|caption]]
9887 [[File:Foobar.jpg|middle|text-top|caption]]
9889 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>caption</div></div></div>
9890 <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" style="vertical-align: middle" /></a>
9893 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
9894 <p><span class="mw-default-size mw-valign-middle" typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
9898 Image with width attribute at different positions
9900 [[File:Foobar.jpg|200px|right|Caption]]
9901 [[File:Foobar.jpg|right|200px|Caption]]
9902 [[File:Foobar.jpg|right|Caption|200px]]
9904 <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>
9905 <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>
9906 <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>
9909 <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>
9910 <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>
9911 <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>
9914 # a sad bit of backward-compatibility
9916 Image with size specified with pxpx (bug 13500, 51628)
9918 parsoid=wt2html,wt2wt,html2html
9920 [[File:Foobar.jpg|20pxpx]]
9921 [[File:Foobar.jpg|200x20pxpx]]
9923 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" 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>
9924 <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/177px-Foobar.jpg" width="177" height="20" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/265px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/353px-Foobar.jpg 2x" /></a>
9927 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="2" width="20"/></a></span><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="20" width="177"/></a></span></p>
9931 Image with link parameter, wiki target
9933 [[File:Foobar.jpg|link=Main Page]]
9935 <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>
9938 <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>
9941 # parsoid bug 49293 (part 1)
9943 Image with link parameter, URL target
9945 [[File:Foobar.jpg|link=http://example.com/]]
9947 <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>
9950 <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>
9953 # parsoid bug 49293 (part 2)
9955 Image with link parameter, protocol-less URL target
9957 [[File:Foobar.jpg|link=//example.com/]]
9959 <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>
9962 <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>
9966 Image with link parameter, wgExternalLinkTarget
9968 [[Image:foobar.jpg|link=http://example.com/]]
9970 wgExternalLinkTarget='foobar'
9972 <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>
9977 Image with link parameter, wgNoFollowLinks set to false
9979 [[Image:foobar.jpg|link=http://example.com/]]
9981 wgNoFollowLinks=false
9983 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9988 Image with link parameter, wgNoFollowDomainExceptions
9990 [[Image:foobar.jpg|link=http://example.com/]]
9992 wgNoFollowDomainExceptions='example.com'
9994 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9999 Image with link parameter, wgExternalLinkTarget, unnamed parameter
10001 [[Image:foobar.jpg|link=http://example.com/|Title]]
10003 wgExternalLinkTarget='foobar'
10005 <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>
10010 Image with empty link parameter
10012 [[File:Foobar.jpg|link=]]
10014 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
10017 <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>
10021 Image with link parameter (wiki target) and unnamed parameter
10023 [[File:Foobar.jpg|link=Main_Page|Title]]
10025 <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>
10028 <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>
10032 Image with link parameter (URL target) and unnamed parameter
10034 [[File:Foobar.jpg|link=http://example.com/|Title]]
10036 <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>
10039 <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>
10043 Thumbnail image with link parameter
10046 parsoid=wt2html,wt2wt,html2html
10048 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
10050 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>
10053 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="http://example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>Title</figcaption></figure>
10057 Manually-specified thumbnail image
10061 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
10063 <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>
10066 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a><figcaption>Title</figcaption></figure>
10070 Manually-specified thumbnail image with explicit link to wiki page
10073 parsoid=wt2html,wt2wt,html2html
10075 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
10077 <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>
10080 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><a href="Main_Page"><img resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a><figcaption>Title</figcaption></figure>
10084 Manually-specified thumbnail image with explicit link to url
10087 parsoid=wt2html,wt2wt,html2html
10089 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
10091 <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>
10094 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><a href="http://example.com"><img resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a><figcaption>Title</figcaption></figure>
10098 Manually-specified thumbnail image with explicit no link
10101 parsoid=wt2html,wt2wt,html2html
10103 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
10105 <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>
10108 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><span><img resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></span><figcaption>Title</figcaption></figure>
10112 Manually-specified thumbnail image with explicit link and alt text
10115 parsoid=wt2html,wt2wt,html2html
10117 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
10119 <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>
10122 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><a href="Main_Page"><img alt="alttext" resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a><figcaption>Title</figcaption></figure>
10126 Image with frame and link
10128 parsoid=wt2html,wt2wt,html2html
10130 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
10132 <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>
10135 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a><figcaption>This is a test image <a rel="mw:WikiLink" href="Main_Page">Main Page</a></figcaption></figure>
10139 Image with frame and link and explicit alt
10141 parsoid=wt2html,wt2wt,html2html
10143 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
10145 <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>
10148 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img alt="Altitude" resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a><figcaption>This is a test image <a rel="mw:WikiLink" href="Main_Page">Main Page</a></figcaption></figure>
10152 Image with wiki markup in implicit alt
10154 parsoid=wt2html,wt2wt,html2html
10156 [[Image:Foobar.jpg|testing '''bold''' in alt]]
10158 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
10160 <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>
10161 </p><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>
10164 <p><span class="mw-default-size" typeof="mw:Image" data-mw="{"caption":"testing '''bold''' in alt"}"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10165 <p><span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img alt="testing bold in alt" resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10168 ###################
10170 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
10171 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
10172 # Foobar has actual size of 1941x220
10173 # 1. Thumbs & frameless always reduce, can't be enlarged
10174 # 2. Framed images ignore width; always render at default size.
10175 # If given a height, they respect height but continue to ignore width.
10176 # 3. "Unspecified format" and border are the only types which can be
10180 Image: "unspecified format" and border enlarge
10182 parsoid=wt2html,wt2wt,html2html
10184 [[File:Foobar.jpg|2000px]]
10186 [[File:Foobar.jpg|border|2000px]]
10188 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="2000" height="227" /></a>
10189 </p><p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="2000" height="227" class="thumbborder" /></a>
10192 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="227" width="2000"/></a></span></p>
10193 <p><span class="mw-image-border" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="227" width="2000"/></a></span></p>
10197 Image: "unspecified format" and border reduce
10199 parsoid=wt2html,wt2wt,html2html
10201 [[File:Foobar.jpg|1000px]]
10203 [[File:Foobar.jpg|border|1000px]]
10205 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/1000px-Foobar.jpg" width="1000" height="113" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/1500px-Foobar.jpg 1.5x, http://example.com/images/3/3a/Foobar.jpg 2x" /></a>
10206 </p><p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/1000px-Foobar.jpg" width="1000" height="113" class="thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/1500px-Foobar.jpg 1.5x, http://example.com/images/3/3a/Foobar.jpg 2x" /></a>
10209 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="113" width="1000"/></a></span></p>
10210 <p><span class="mw-image-border" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="113" width="1000"/></a></span></p>
10214 Image: thumbs reduce
10216 parsoid=wt2html,wt2wt,html2html
10218 [[File:Foobar.jpg|thumb|50px]]
10220 <div class="thumb tright"><div class="thumbinner" style="width:52px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" width="50" height="6" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/75px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/100px-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>
10223 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="6" width="50"/></a></figure>
10227 Image: thumbs can't be enlarged past original size
10229 parsoid=wt2html,wt2wt,html2html
10231 [[File:Foobar.jpg|thumb|2000px]]
10233 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" 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></div></div></div>
10236 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
10240 Image: frameless can reduce in size
10242 parsoid=wt2html,wt2wt,html2html
10244 [[File:Foobar.jpg|frameless|50px]]
10246 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" width="50" height="6" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/75px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/100px-Foobar.jpg 2x" /></a>
10249 <p><span typeof="mw:Image/Frameless"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="6" width="50"/></a></span></p>
10253 Image: frameless can't be enlarged past original size
10255 parsoid=wt2html,wt2wt,html2html
10257 [[File:Foobar.jpg|frameless|2000px]]
10259 <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>
10262 <p><span typeof="mw:Image/Frameless"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10266 Image: framed images ignore size if only width is given
10268 parsoid=wt2html,wt2wt,html2html
10270 [[File:Foobar.jpg|frame]]
10272 [[File:Foobar.jpg|frame|50px]]
10274 [[File:Foobar.jpg|frame|2000px]]
10276 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
10277 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
10278 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
10281 <figure class="mw-default-size" typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure><figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure><figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
10285 Image: framed images respect size if given a height, but ignore width.
10287 [[File:Foobar.jpg|frame|50x50px]]
10289 <div class="thumb tright"><div class="thumbinner" style="width:444px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" width="442" height="50" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
10292 <figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="50" width="442"/></a></figure>
10295 ###################
10298 Link to image page- image page normally doesn't exists, hence edit link
10299 Add test with existing image page
10300 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
10304 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
10309 bug 18784 Link to non-existent image page with caption should use caption as link text
10311 [[:Image:test|caption]]
10313 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
10318 Frameless image caption with a free URL
10320 [[File:Foobar.jpg|http://example.com]]
10322 <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>
10325 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"http://example.com"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10329 Thumbnail image caption with a free URL
10333 [[File:Foobar.jpg|thumb|http://example.com]]
10335 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>
10338 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></figcaption></figure>
10342 Thumbnail image caption with a free URL and explicit alt
10345 parsoid=wt2html,wt2wt,html2html
10347 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
10349 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>
10352 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img alt="Alteration" resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></figcaption></figure>
10356 SVG thumbnails with no language set
10359 [[File:Foobar.svg|thumb|caption]]
10361 <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="135" 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>caption</div></div></div>
10366 SVG thumbnails with language de
10369 [[File:Foobar.svg|thumb|caption|lang=de]]
10371 <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="135" 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>caption</div></div></div>
10376 SVG thumbnails with invalid language code
10379 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
10381 <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="135" 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>
10386 BUG 1887: A ISBN with a thumbnail
10388 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
10390 <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>
10395 BUG 1887: A RFC with a thumbnail
10397 [[Image:foobar.jpg|thumb|This is RFC 12354]]
10399 <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>
10404 BUG 1887: A mailto link with a thumbnail
10406 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
10408 <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>
10412 # Pending resolution to bug 368
10414 BUG 648: Frameless image caption with a link
10416 [[Image:foobar.jpg|text with a [[link]] in it]]
10418 <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>
10423 BUG 648: Frameless image caption with a link (suffix)
10425 [[Image:foobar.jpg|text with a [[link]]foo in it]]
10427 <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>
10432 BUG 648: Frameless image caption with an interwiki link
10434 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
10436 <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>
10441 BUG 648: Frameless image caption with a piped interwiki link
10443 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
10445 <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>
10450 Escape HTML special chars in image alt text
10452 [[Image:foobar.jpg|& < > "]]
10454 <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>
10459 BUG 499: Alt text should have Ӓ, not &1234;
10461 [[Image:foobar.jpg|♀]]
10463 <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>
10468 Broken image caption with link
10470 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
10472 <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.
10477 Image caption containing another image
10479 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
10481 <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>
10486 Image caption containing a newline
10488 [[Image:Foobar.jpg|This
10491 <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>
10496 Parsoid: Image caption containing leading space
10497 (The leading space should not trigger nowiki escaping in wt2wt mode)
10499 [[Image:Foobar.jpg|thumb| bar]]
10501 <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>
10506 Images: caption containing a table
10508 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
10514 and some more text.]]
10516 <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 is an example image thumbnail caption with a table <table> <tr> <th> Foo </th> <th> Bar </th></tr> <tr> <td> Foo1 </td> <td> Bar1 </td></tr></table> and some more text.</div></div></div>
10519 <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 is an example image thumbnail caption with a table
10522 <tr><th>Foo </th><th>Bar</th></tr>
10525 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
10529 Bug 3090: External links other than http: in image captions
10531 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
10533 <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>
10536 <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 rel="mw:ExtLink" href="irc://example.net">irc</a> and <a rel="mw:ExtLink" href="https://example.com">Secure</a> ext links in it.</figcaption></figure>
10542 parsoid=wt2html,wt2wt,html2html
10544 [[Image:foobar.jpg|a|class=b]]
10546 <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>
10549 <p><span class="mw-default-size b" typeof="mw:Image" data-mw='{"caption":"a"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10553 Localized image handling (1).
10555 parsoid=wt2html,wt2wt,html2html
10558 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10560 <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>
10563 <figure class="mw-default-size mw-halign-left" typeof="mw:Image"><a href="./Foo"><img resource="./Archivo:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a><figcaption>caption</figcaption></figure>
10567 Localized image handling (2).
10570 parsoid=wt2html,wt2wt,html2html
10573 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10575 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>
10578 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="./Foo"><img resource="./Archivo:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
10582 "border", "frameless" and "class" attributes on an image.
10585 parsoid=wt2html,wt2wt,html2html
10587 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
10589 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a>
10592 <p><span class="mw-default-size mw-image-border extra" typeof="mw:Image/Frameless" data-mw='{"caption":"caption"}'><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a></span></p>
10595 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
10597 Invalid image attributes (bug 62500)
10600 parsoid=wt2html,wt2wt,html2html
10602 [[File:Foobar.jpg|thumb|float|left|caption]]
10604 [[File:Foobar.jpg|thumb|righ|caption]]
10606 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
10608 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>caption</div></div></div>
10609 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>caption</div></div></div>
10610 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-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>caption</div></div></div>
10613 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure><figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure><figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
10619 #REDIRECT [[File:Barfoo.jpg]]
10625 [[Image:Barfoo.jpg]]
10627 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
10632 Missing image with uploads disabled
10636 [[Image:Foobaz.jpg]]
10638 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
10642 # Parsoid-specific testing for images
10643 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10644 # Currently imperfect due to a flaw in the Parsoid testrunner
10646 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
10650 Parsoid-specific image handling - simple image with size and middle alignment
10652 [[File:Foobar.jpg|middle|50px]]
10654 <p><span class="mw-valign-middle" typeof="mw:Image">
10655 <a href="File:Foobar.jpg">
10656 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10663 Parsoid-specific image handling - simple image with size, middle alignment,
10664 non-standard namespace alias
10666 parsoid=wt2wt,wt2html,html2html
10668 [[Image:Foobar.jpg|middle|50px]]
10670 <p><span class="mw-valign-middle" typeof="mw:Image">
10671 <a href="File:Foobar.jpg">
10672 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10679 Parsoid-specific image handling - simple image with size and middle alignment
10682 [[File:Foobar.jpg|50px|middle]]
10684 <p><span class="mw-valign-middle" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"50px"},{"ck":"middle","ak":"middle"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
10688 Parsoid-specific image handling - simple image with size and middle alignment
10689 and non-standard namespace name
10691 parsoid=wt2html,wt2wt,html2html
10693 [[Image:Foobar.jpg|50px|middle]]
10695 <p><span class="mw-valign-middle" typeof="mw:Image">
10696 <a href="File:Foobar.jpg">
10697 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10704 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10706 [[File:Foobar.jpg|500x10px|baseline|caption]]
10708 <p><span class="mw-valign-baseline" typeof="mw:Image" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"width","ak":"500x10px"},{"ck":"baseline","ak":"baseline"},{"ck":"caption","ak":"caption"}],"size":"500x10"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"10","width":"89"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
10712 Parsoid-specific image handling - simple image with border and size spec
10714 [[File:Foobar.jpg|50px|border|caption]]
10716 <p><span class="mw-image-border" typeof="mw:Image" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"width","ak":"50px"},{"ck":"border","ak":"border"},{"ck":"caption","ak":"caption"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
10720 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10722 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
10724 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10725 <a href="File:Foobar.jpg">
10726 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
10728 <figcaption>caption content</figcaption>
10733 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10736 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
10738 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"left","ak":"left"},{"ck":"baseline","ak":"baseline"},{"ck":"caption","ak":"caption content"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption content</figcaption></figure>
10742 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10744 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
10746 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10747 <a href="File:Foobar.jpg">
10748 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10750 <figcaption>caption</figcaption>
10755 Parsoid-specific image handling - thumbnail with specific size, halign,
10756 valign, and caption (existing content)
10758 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10760 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"50x50px"},{"ck":"right","ak":"right"},{"ck":"middle","ak":"middle"},{"ck":"caption","ak":"caption"}],"size":"50x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
10764 Parsoid-specific image handling - framed image with specific size and caption
10766 [[Image:Foobar.jpg|frame|500x50px|caption]]
10768 <figure typeof="mw:Image/Frame">
10769 <a href="File:Foobar.jpg">
10770 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10772 <figcaption>caption</figcaption>
10777 Parsoid-specific image handling - framed image with specific size and caption
10780 [[File:Foobar.jpg|442x50px|frame|caption]]
10782 <figure typeof="mw:Image/Frame" data-parsoid='{"optList":[{"ck":"width","ak":"442x50px"},{"ck":"framed","ak":"frame"},{"ck":"caption","ak":"caption"}],"size":"442x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"50","width":"442"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
10786 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10788 [[Image:Foobar.jpg|left|baseline|frame|500x50px|caption]]
10790 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10791 <a href="File:Foobar.jpg">
10792 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10794 <figcaption>caption</figcaption>
10799 Parsoid-specific image handling - framed image with specific size, halign,
10800 valign, and caption (existing content)
10802 [[File:Foobar.jpg|442x50px|frame|left|baseline|caption]]
10804 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame" data-parsoid='{"optList":[{"ck":"width","ak":"442x50px"},{"ck":"framed","ak":"frame"},{"ck":"left","ak":"left"},{"ck":"baseline","ak":"baseline"},{"ck":"caption","ak":"caption"}],"size":"442x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"50","width":"442"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
10808 Parsoid-specific image handling - frameless image with specific size, border, and caption
10810 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
10812 <p><span class="mw-image-border" typeof="mw:Image/Frameless" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"frameless","ak":"frameless"},{"ck":"width","ak":"442x50px"},{"ck":"border","ak":"border"},{"ck":"caption","ak":"caption"}],"size":"442x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"50","width":"442"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
10816 Parsoid-specific image handling - simple image with a formatted caption
10818 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10820 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>"}'>
10821 <a href="File:Foobar.jpg">
10822 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10827 Parsoid-specific image handling - caption with a template in it
10829 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
10831 <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>
10835 Parsoid-specific image handling - caption with unbalanced tags in it
10837 parsoid=wt2html,wt2wt,html2html
10840 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
10844 <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>
10849 Parsoid-specific image handling - empty caption
10851 [[File:Foobar.jpg|thumb|]]
10853 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption></figcaption></figure>
10857 Parsoid-specific image handling - whitespace caption
10859 [[File:Foobar.jpg|thumb| ]]
10861 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption> </figcaption></figure>
10865 Parsoid-specific image handling - lang option
10868 [[File:Foobar.svg|lang=de|caption]]
10872 <span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="./File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" lang="de" height="180" width="240"/></a></span>
10881 Subpage test/subpage
10889 subpage title=[[Subpage test]]
10893 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10898 Subpage noslash link
10900 subpage title=[[Subpage test]]
10904 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10908 # TODO: make this PHP-parser compatible!
10910 Relative subpage noslash link
10912 parsoid=wt2wt,wt2html,html2html
10913 subpage title=[[Subpage test/1/2/3/4]]
10919 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10920 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10923 # TODO: make this PHP-parser compatible!
10925 Parsoid: dot-slash prefixed wikilinks
10927 parsoid=wt2wt,wt2html,html2html
10935 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10936 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10937 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10945 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10950 BUG 561: {{/Subpage}}
10952 subpage title=[[Page]]
10956 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
10964 Category:MediaWiki User's Guide
10972 [[:Category:MediaWiki User's Guide]]
10974 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
10983 [[Category:MediaWiki User's Guide]]
10985 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10989 PAGESINCATEGORY invalid title fatal (r33546 fix)
10991 {{PAGESINCATEGORY:<bogus>}}
10998 Category with different sort key
11002 [[Category:MediaWiki User's Guide|Foo]]
11004 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11008 Category with identical sort key
11012 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11014 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11018 Category with empty sort key
11023 [[Category:MediaWiki User's Guide|]]
11025 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11029 Category with empty sort key and parentheses
11034 [[Category:Foo (bar)|]]
11036 [[Category:Foo (bar)|Foo]]
11040 Category with link tail
11045 123[[Category:Foo]]456
11047 123[[Category:Foo]]456
11051 Category with template
11056 [[Category:{{echo|Foo}}]]
11058 [[Category:{{echo|Foo}}]]
11062 Category with template in sort key
11067 [[Category:Foo|{{echo|Bar}}]]
11069 [[Category:Foo|{{echo|Bar}}]]
11073 Category with template in sort key and title
11078 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11080 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11084 Category / paragraph interactions
11086 Foo [[Category:Baz]] Bar
11088 Foo [[Category:Baz]]
11096 [[Category:Baz]] Bar
11109 {{echo|[[Category:Baz]]}}
11124 Parsoid: Serialize link to category page with colon escape
11130 [[:Category:Foo|Bar]]
11133 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
11134 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
11139 Parsoid: Link prefix/suffixes aren't applied to category links
11141 parsoid=wt2html,wt2wt,html2html
11146 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
11150 Parsoid: Serialize link to file page with colon escape
11156 [[:File:Foo.png|Bar]]
11159 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
11160 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
11165 Parsoid: Serialize a genuine category link without colon escape
11170 [[Category:Foo|Bar]]
11172 <link rel="mw:PageProp/Category" href="Category:Foo">
11173 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
11177 Parsoid: Defaultsort
11181 {{DEFAULTSORT:Foo}}
11183 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
11187 ### Inter-language links
11190 Inter-language links
11196 [[zh:食品]]
11198 es:Alimento fr:Nourriture zh:食品
11202 Duplicate interlanguage links (bug 24502)
11218 Basic section headings
11225 ===Smaller headline===
11228 <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>
11231 <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>
11234 <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>
11240 Section headings with TOC
11243 === Subheadline 1 ===
11244 ===== Skipping a level =====
11245 ====== Skipping a level ======
11249 ===Another headline===
11251 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11253 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
11255 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
11257 <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>
11259 <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>
11266 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
11268 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
11274 <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>
11275 <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>
11276 <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>
11277 <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>
11278 <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>
11281 <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>
11285 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
11287 Handling of sections up to level 6 and beyond
11290 == Level 2 Heading==
11291 === Level 3 Heading===
11292 ==== Level 4 Heading====
11293 ===== Level 5 Heading=====
11294 ====== Level 6 Heading======
11295 ======= Level 7 Heading=======
11296 ======== Level 8 Heading========
11297 ========= Level 9 Heading=========
11298 ========== Level 10 Heading==========
11300 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11302 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
11304 <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>
11306 <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>
11308 <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>
11310 <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>
11312 <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>
11313 <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>
11314 <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>
11315 <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>
11316 <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>
11330 <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>
11331 <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>
11332 <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>
11333 <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>
11334 <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>
11335 <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>
11336 <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>
11337 <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>
11338 <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>
11339 <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>
11344 TOC regression (bug 9764)
11348 ==== title 1.1.1 ====
11353 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11355 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11357 <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>
11359 <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>
11362 <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>
11365 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11367 <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>
11373 <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>
11374 <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>
11375 <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>
11376 <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>
11377 <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>
11378 <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>
11383 TOC with wgMaxTocLevel=3 (bug 6204)
11389 ==== title 1.1.1 ====
11394 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11396 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11398 <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>
11399 <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>
11402 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11404 <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>
11410 <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>
11411 <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>
11412 <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>
11413 <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>
11414 <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>
11415 <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>
11420 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
11426 ====Section 1.1.1====
11427 ====Section 1.1.1.1====
11430 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11432 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
11434 <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>
11437 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
11441 <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>
11442 <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>
11443 <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>
11444 <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>
11445 <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>
11451 Resolving duplicate section names
11456 <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>
11457 <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>
11462 Resolving duplicate section names with differing case (bug 10721)
11467 <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>
11468 <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>
11480 Template with sections, __NOTOC__
11487 <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>
11488 <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>
11489 <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>
11490 <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>
11495 __NOEDITSECTION__ keyword
11501 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
11502 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
11507 Link inside a section heading
11509 ==Section with a [[Main Page|link]] in it==
11511 <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>
11516 TOC regression (bug 12077)
11523 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11525 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11527 <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>
11530 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
11534 <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>
11535 <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>
11536 <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>
11541 BUG 1219 URL next to image (good)
11543 http://example.com [[Image:foobar.jpg]]
11545 <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>
11550 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
11553 The line above must have a trailing space!
11556 But just in case it doesn't...
11558 <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>
11559 <p>The line above must have a trailing space!
11561 <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>
11562 <p>But just in case it doesn't...
11567 Header with special characters (bug 25462)
11569 The tooltips shall not show entities to the user (ie. be double escaped)
11586 <p>The tooltips shall not show entities to the user (ie. be double escaped)
11588 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11590 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
11591 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
11592 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
11593 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
11594 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
11598 <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>
11601 <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>
11604 <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>
11607 <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>
11610 <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>
11616 Headers with excess '=' characters
11617 (Are similar tests necessary beyond the 1st level?)
11621 =''italic'' heading==
11622 ==''italic'' heading=
11624 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11626 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
11627 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
11628 <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>
11629 <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>
11633 <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>
11634 <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>
11635 <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>
11636 <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>
11641 HTML headers vs TOC (bug 23393)
11642 (__NOEDITSECTION__ for clearer output, doesn't matter here)
11654 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11656 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
11658 <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>
11659 <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>
11662 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
11664 <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>
11665 <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>
11671 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
11672 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
11673 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
11674 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
11675 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
11676 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
11681 BUG 1219 URL next to image (broken)
11683 http://example.com[[Image:foobar.jpg]]
11685 <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>
11690 Bug 1186 news: in the middle of text
11692 http://en.wikinews.org/wiki/Wikinews:Workplace
11694 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
11700 Namespaced link must have a title
11709 Namespaced link must have a title (bad fragment version)
11711 [[Project:#fragment]]
11713 <p>[[Project:#fragment]]
11719 ### HTML tags and HTML attributes
11723 div with no attributes
11725 <div>HTML rocks</div>
11727 <div>HTML rocks</div>
11732 div with double-quoted attribute
11734 <div id="rock">HTML rocks</div>
11736 <div id="rock">HTML rocks</div>
11741 div with single-quoted attribute
11743 <div id='rock'>HTML rocks</div>
11745 <div id="rock">HTML rocks</div>
11750 div with unquoted attribute
11752 <div id=rock>HTML rocks</div>
11754 <div id="rock">HTML rocks</div>
11759 div with illegal double attributes
11761 <div id="a" id="b">HTML rocks</div>
11763 <div id="b">HTML rocks</div>
11767 # FIXME: produce empty string instead of "class" in the PHP parser, following
11770 div with empty attribute value, space before equals
11774 <div class =>HTML rocks</div>
11776 <div class="">HTML rocks</div>
11780 # The PHP parser escapes the opening brace to { for some reason, so
11781 # disabled this test for it.
11783 div with braces in attribute value
11787 <div title="{}">Foo</div>
11789 <div title="{}">Foo</div>
11792 # This it very inconsistent in the PHP parser: it returns
11793 # class="class" if there is a space between the name and the equal sign (see
11794 # 'div with empty attribute value, space before equals'), but strips the
11795 # attribute completely if the space is missing. We hope that not much content
11796 # depends on this, so are implementing the behavior below in Parsoid for
11797 # consistencies' sake. Disabled for the PHP parser.
11798 # FIXME: fix this behavior in the PHP parser?
11800 div with empty attribute value, no space before equals
11804 <div class=>HTML rocks</div>
11806 <div class="">HTML rocks</div>
11811 HTML multiple attributes correction
11813 <p class="error" class="awesome">Awesome!</p>
11815 <p class="awesome">Awesome!</p>
11820 Table multiple attributes correction
11823 !+ class="error" class="awesome"| status
11828 <th class="awesome"> status
11836 <DIV ID="x">HTML ROCKS</DIV>
11838 <div id="x">HTML ROCKS</div>
11843 Non-ASCII pseudo-tags are rendered as text
11852 Pseudo-tag with URL 'name' renders as url link
11854 <http://example.com/>
11856 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11861 text with amp in the middle of nowhere
11865 <p>Remember AT&T?
11870 text with character entity: eacute
11872 I always thought é was a cute letter.
11874 <p>I always thought é was a cute letter.
11879 text with entity-escaped character entity-like string: eacute
11881 I always thought &eacute; was a cute letter.
11883 <p>I always thought &eacute; was a cute letter.
11888 text with undefined character entity: xacute
11890 I always thought &xacute; was a cute letter.
11892 <p>I always thought &xacute; was a cute letter.
11896 # TODO: generalize to PHP parser?
11902 <data value="5">five</data>
11903 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11904 <mark>This highlighted text</mark>
11906 <p><data value="5">five</data>
11907 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11908 <mark>This highlighted text</mark></p>
11912 HTML tag with leading space is parsed as text
11916 <p>< div>foo< /div>
11921 ### Nesting tests (see bug 41545, 50604, 51081)
11924 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11925 # Note that html2wt is considerably more difficult if we use <b> in
11926 # the test case, instead of <big>
11928 Ensure that HTML adoption agency algorithm is properly implemented.
11930 <big>X<big>Y</big>Z</big>
11932 <p><big>X<big>Y</big>Z</big>
11936 # This was bug 41545 in the PHP parser.
11940 <kbd>X<kbd>Y</kbd>Z</kbd>
11942 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11946 # The following cases were bug 51081 in the PHP parser.
11947 # Note that there are some other nestable tags (b, i, etc) which are
11948 # not covered; see bug 51081 for discussion.
11952 <em>X<em>Y</em>Z</em>
11954 <p><em>X<em>Y</em>Z</em>
11959 Nesting of <strong>
11961 <strong>X<strong>Y</strong>Z</strong>
11963 <p><strong>X<strong>Y</strong>Z</strong>
11972 <p><q>X<q>Y</q>Z</q>
11979 <ruby>X<ruby>Y</ruby>Z</ruby>
11981 <p><ruby>X<ruby>Y</ruby>Z</ruby>
11988 <bdo>X<bdo>Y</bdo>Z</bdo>
11990 <p><bdo>X<bdo>Y</bdo>Z</bdo>
12002 [[Media:Foobar.jpg]]
12004 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
12009 Media link with text
12011 [[Media:Foobar.jpg|A neat file to look at]]
12013 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
12017 # FIXME: this is still bad HTML tag nesting
12019 Media link with nasty text
12020 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
12022 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
12024 <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>
12029 Media link to nonexistent file (bug 1702)
12031 [[Media:No such.jpg]]
12033 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
12038 Image link to nonexistent file (bug 1850 - good)
12040 [[Image:No such.jpg]]
12042 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
12047 :Image link to nonexistent file (bug 1850 - bad)
12049 [[:Image:No such.jpg]]
12051 <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>
12058 Character reference normalization in link text (bug 1938)
12060 [[Main Page|this&that]]
12062 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
12069 Test for unicode normalization
12071 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
12075 (bug 19451) Links should refer to the normalized form.
12083 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12084 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12085 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12086 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12087 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12092 Empty attribute crash test (bug 2067)
12094 <font color="">foo</font>
12096 <p><font color="">foo</font>
12101 Empty attribute crash test single-quotes (bug 2067)
12103 <font color=''>foo</font>
12105 <p><font color="">foo</font>
12110 Attribute test: equals, then nothing
12112 <font color=>foo</font>
12114 <p><font>foo</font>
12119 Attribute test: unquoted value
12121 <font color=x>foo</font>
12123 <p><font color="x">foo</font>
12128 Attribute test: unquoted but illegal value (hash)
12130 <font color=#x>foo</font>
12132 <p><font color="#x">foo</font>
12137 Attribute test: no value
12139 <font color>foo</font>
12141 <p><font color="color">foo</font>
12146 Bug 2095: link with three closing brackets
12150 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
12155 Bug 2095: link with pipe and three closing brackets
12157 [[Main Page|link]]]
12159 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
12164 Bug 2095: link with pipe and three closing brackets, version 2
12166 [[Main Page|[http://example.com/]]]
12168 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
12178 Template:Dangerous attribute
12180 " onmouseover="alert(document.cookie)
12184 Template:Dangerous style attribute
12186 border-size: expression(alert(document.cookie))
12192 <div style="float: right; {{{1}}}">Magic div</div>
12196 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
12198 <div title="{{test}}"></div>
12200 <div title="This is a test template"></div>
12205 Bug 2304: HTML attribute safety (dangerous template; 2309)
12207 <div title="{{dangerous attribute}}"></div>
12209 <div title=""></div>
12214 Bug 2304: HTML attribute safety (dangerous style template; 2309)
12216 <div style="{{dangerous style attribute}}"></div>
12218 <div style="/* insecure input */"></div>
12223 Bug 2304: HTML attribute safety (safe parameter; 2309)
12225 {{div style|width: 200px}}
12227 <div style="float: right; width: 200px">Magic div</div>
12232 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
12234 {{div style|width: expression(alert(document.cookie))}}
12236 <div style="/* insecure input */">Magic div</div>
12241 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
12243 {{div style|"><script>alert(document.cookie)</script>}}
12245 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12250 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
12252 {{div style|" ><script>alert(document.cookie)</script>}}
12254 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12259 Bug 2304: HTML attribute safety (link)
12261 <div title="[[Main Page]]"></div>
12263 <div title="[[Main Page]]"></div>
12268 Bug 2304: HTML attribute safety (italics)
12270 <div title="''foobar''"></div>
12272 <div title="''foobar''"></div>
12277 Bug 2304: HTML attribute safety (bold)
12279 <div title="'''foobar'''"></div>
12281 <div title="'''foobar'''"></div>
12287 Bug 2304: HTML attribute safety (ISBN)
12289 <div title="ISBN 1234567890"></div>
12291 <div title="ISBN 1234567890"></div>
12296 Bug 2304: HTML attribute safety (RFC)
12298 <div title="RFC 1234"></div>
12300 <div title="RFC 1234"></div>
12305 Bug 2304: HTML attribute safety (PMID)
12307 <div title="PMID 1234567890"></div>
12309 <div title="PMID 1234567890"></div>
12314 Bug 2304: HTML attribute safety (web link)
12316 <div title="http://example.com/"></div>
12318 <div title="http://example.com/"></div>
12323 Bug 2304: HTML attribute safety (named web link)
12325 <div title="[http://example.com/ link]"></div>
12327 <div title="[http://example.com/ link]"></div>
12332 Bug 3244: HTML attribute safety (extension; safe)
12334 <div style="<nowiki>background:blue</nowiki>"></div>
12336 <div style="background:blue"></div>
12341 Bug 3244: HTML attribute safety (extension; unsafe)
12343 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
12345 <div style="/* insecure input */"></div>
12349 # More MSIE fun discovered by Tom Gilder
12352 MSIE CSS safety test: spurious slash
12354 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
12356 <div style="/* insecure input */">evil</div>
12361 MSIE CSS safety test: hex code
12363 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
12365 <div style="/* insecure input */">evil</div>
12370 MSIE CSS safety test: comment in url
12372 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
12374 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
12379 MSIE CSS safety test: comment in expression
12381 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
12383 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
12388 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
12390 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
12392 <p style="/* invalid control char */">A</p>
12397 MSIE 6 CSS safety test: Fullwidth (bug 55332)
12399 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
12400 <div style="top:EXPRESSION(alert())">B</div>
12402 <p style="/* insecure input */">A</p>
12403 <div style="/* insecure input */">B</div>
12408 MSIE 6 CSS safety test: IPA extensions (bug 55332)
12410 <div style="background-image:uʀʟ(javascript:alert())">A</div>
12411 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
12413 <div style="/* insecure input */">A</div>
12414 <p style="/* insecure input */">B</p>
12419 MSIE 6 CSS safety test: sup/sub script (bug 55332)
12421 <div style="background-image:url⁽javascript:alert())">A</div>
12422 <div style="background-image:url₍javascript:alert())">B</div>
12423 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
12425 <div style="/* insecure input */">A</div>
12426 <div style="/* insecure input */">B</div>
12427 <p style="/* insecure input */">C</p>
12435 title="data:text/html,<img src=1 onerror=alert(1)>"
12436 style="-o-link:attr(title);-o-link-source:current">X</div>
12438 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
12443 MSIE 6 CSS safety test: Repetition markers (bug 55332)
12445 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
12446 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
12447 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
12448 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
12449 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
12450 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
12451 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
12453 <p style="/* insecure input */">A</p>
12454 <p style="/* insecure input */">B</p>
12455 <p style="/* insecure input */">C</p>
12456 <p style="/* insecure input */">D</p>
12457 <p style="/* insecure input */">E</p>
12458 <p style="/* insecure input */">F</p>
12459 <p style="/* insecure input */">G</p>
12464 Table attribute legitimate extension
12467 !+ style="<nowiki>color:blue</nowiki>"| status
12472 <th style="color:blue"> status
12478 Table attribute safety
12481 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
12486 <th style="/* insecure input */"> status
12492 CSS line continuation 1
12494 <div style="background-image: u\ rl(test.jpg);"></div>
12496 <div style="/* insecure input */"></div>
12501 CSS line continuation 2
12503 <div style="background-image: u\ rl(test.jpg); "></div>
12505 <div style="/* insecure input */"></div>
12516 Expansion of multi-line templates in attribute values (bug 6255)
12518 <div style="background: {{identity|#00FF00}}">-</div>
12520 <div style="background: #00FF00">-</div>
12526 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
12528 <div style="background:
12531 <div style="background: #00FF00">-</div>
12536 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
12538 <div style="background: #00FF00">-</div>
12540 <div style="background: #00FF00">-</div>
12545 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
12548 Parser hook: empty input
12561 Parser hook: empty input using terminated empty elements
12574 Parser hook: empty input using terminated empty elements (space before)
12587 Parser hook: basic input
12601 Parser hook: case insensitive
12615 Parser hook: case insensitive, redux
12628 Parser hook: nested tags
12632 <tag><tag></tag></tag>
12643 Parser hook: basic arguments
12645 <tag width=200 height = "100" depth = '50' square></tag>
12653 'square' => 'square',
12660 Parser hook: argument containing a forward slash (bug 5344)
12662 <tag filename='/tmp/bla'></tag>
12667 'filename' => '/tmp/bla',
12674 Parser hook: empty input using terminated empty elements (bug 2374)
12687 # </tag> should be output literally since there is no matching tag that begins it
12689 Parser hook: basic arguments using terminated empty elements (bug 2374)
12691 <tag width=200 height = "100" depth = '50' square/>
12701 'square' => 'square',
12710 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
12714 Parser hook: static parser hook not inside a comment
12716 <statictag>hello, world</statictag>
12717 <statictag action=flush/>
12725 Parser hook: static parser hook inside a comment
12727 <!-- <statictag>hello, world</statictag> -->
12728 <statictag action=flush/>
12734 # Nested template calls; this case was broken by Parser.php rev 1.506,
12738 Template:One-parameter
12740 (My parameter is: {{{1}}})
12744 Template:Map-one-parameter
12746 {{{{{1}}}|{{{2}}}}}
12750 Nested template calls
12752 {{Map-one-parameter|One-parameter|param}}
12754 <p>(My parameter is: param)
12763 Sanitizer: Closing of open tags
12765 <s></s><table></table>
12767 <s></s><table></table>
12772 Sanitizer: Closing of open but not closed tags
12781 Sanitizer: Closing of closed but not open tags
12790 Sanitizer: Closing of closed but not open table tags
12792 Table not started</td></tr></table>
12794 <p>Table not started</td></tr></table>
12799 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
12801 <span id="æ: v">byte</span>[[#æ: v|backlink]]
12803 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
12808 Sanitizer: Validating the contents of the id attribute (bug 4515)
12814 Something, but definitely not <br id="9" />...
12818 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
12822 <br id="foo" /><br id="foo" />
12824 Something need to be done. foo-2 ?
12828 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
12831 <meta itemprop="hello" content="world">
12832 <meta http-equiv="refresh" content="5">
12833 <meta itemprop="hello" http-equiv="refresh" content="5">
12834 <link itemprop="hello" href="{{SERVER}}">
12835 <link rel="stylesheet" href="{{SERVER}}">
12836 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
12839 <div itemscope="itemscope">
12840 <p> <meta itemprop="hello" content="world" />
12841 <meta http-equiv="refresh" content="5">
12842 <meta itemprop="hello" content="5" />
12844 <link itemprop="hello" href="http://example.org" />
12845 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
12846 <link itemprop="hello" href="http://example.org" />
12852 Language converter: output gets cut off unexpectedly (bug 5757)
12856 this bit is safe: }-
12858 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12860 then we get cut off here: }-
12862 all additional text is vanished
12864 <p>this bit is safe: }-
12865 </p><p>but if we add a conversion instance: xxx
12866 </p><p>then we get cut off here: }-
12867 </p><p>all additional text is vanished
12872 Self closed html pairs (bug 5487)
12875 <center><font id="bug" />Centered text</center>
12876 <div><font id="bug2" />In div text</div>
12878 <center><font id="bug" />Centered text</center>
12879 <div><font id="bug2" />In div text</div>
12888 Punctuation: nbsp before exclamation
12892 <p>C'est grave !
12897 Punctuation: CSS !important (bug 11874)
12899 <div style="width:50% !important">important</div>
12901 <div style="width:50% !important">important</div>
12906 Punctuation: CSS ! important (bug 11874; with space after)
12908 <div style="width:50% ! important">important</div>
12910 <div style="width:50% ! important">important</div>
12916 HTML bullet list, closed tags (bug 5497)
12931 HTML bullet list, unclosed tags (bug 5497)
12950 HTML ordered list, closed tags (bug 5497)
12965 HTML ordered list, unclosed tags (bug 5497)
12984 HTML nested bullet list, closed tags (bug 5497)
13009 HTML nested bullet list, open tags (bug 5497)
13038 HTML nested ordered list, closed tags (bug 5497)
13063 HTML nested ordered list, open tags (bug 5497)
13092 HTML ordered list item with parameters oddity
13094 <ol><li id="fragment">One</li>
13097 <ol><li id="fragment">One</li>
13103 bug 5918: autonumbering
13105 [http://first/] [http://second] [ftp://ftp]
13109 [mailto:enclosed@mail.tld With target]
13111 [mailto:enclosed@mail.tld]
13113 mailto:inline@mail.tld
13115 <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>
13116 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
13117 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
13118 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
13119 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
13125 # Security and HTML correctness
13126 # From Nick Jenkins' fuzz testing
13130 Fuzz testing: Parser13
13145 Fuzz testing: Parser14
13150 <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>
13151 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13153 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
13161 Fuzz testing: Parser14-table
13166 <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>
13167 <table style="__TOC__">
13173 # Known to produce bogus xml (extra </td>)
13175 Fuzz testing: Parser16
13195 Fuzz testing: Parser21
13198 ! irc://{{ftp://a" onmouseover="alert('hello world');"
13203 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
13213 Fuzz testing: Parser22
13215 http://===r:::https://b
13219 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
13227 # Known to produce bad XML for now
13229 Fuzz testing: Parser24
13236 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
13237 <br style="onmouseover='alert(document.cookie);' " />
13239 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13244 <u class="|">}}}} >
13245 <br style="onmouseover='alert(document.cookie);'" />
13247 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13256 # Note: the current result listed for this is not what the original one was,
13257 # but the original bug was JavaScript injection, which is fixed in any case.
13258 # It's not clear that the original result listed was any more correct than the
13259 # current one. Original result:
13262 # <li class="||">
13263 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13265 Fuzz testing: Parser25 (bug 6055)
13271 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
13273 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13278 Fuzz testing: URL adjacent extension (with space, clean)
13281 http://example.com <nowiki>junk</nowiki>
13283 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
13288 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
13291 http://example.com<nowiki>junk</nowiki>
13293 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
13298 Fuzz testing: URL adjacent extension (no space, dirty; pre)
13301 http://example.com<pre>junk</pre>
13303 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
13308 Fuzz testing: image with bogus manual thumbnail
13310 [[Image:foobar.jpg|thumbnail= ]]
13312 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
13315 <meta typeof="mw:Placeholder" data-parsoid='{"src":"[[Image:foobar.jpg|thumbnail= ]]","optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,null,null]}'/>
13319 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
13321 <pre dir=" "></pre>
13323 <pre dir=" "></pre>
13328 Parsing optional HTML elements (Bug 6171)
13333 <td> Some tabular data</td>
13334 <td> More tabular data ...
13335 <td> And yet som tabular data</td>
13341 <td> Some tabular data</td>
13342 <td> More tabular data ...
13343 </td><td> And yet som tabular data</td>
13350 Correct handling of <td>, <tr> (Bug 6171)
13355 <td> Some tabular data</td>
13356 <td> More tabular data ...</td>
13357 <td> And yet som tabular data</td>
13363 <td> Some tabular data</td>
13364 <td> More tabular data ...</td>
13365 <td> And yet som tabular data</td>
13373 Parsing crashing regression (fr:JavaScript)
13377 <p></body></x>
13382 Inline wiki vs wiki block nesting
13388 <p><b>Bold paragraph</b>
13389 </p><p>New wiki paragraph
13394 Inline HTML vs wiki block nesting
13402 <p><b>Bold paragraph</b>
13403 </p><p>New wiki paragraph
13407 # Original result was this:
13408 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
13410 # While that might be marginally more intuitive, maybe, the six-apostrophe
13411 # construct is clearly pathological and the result stated here (which is what
13412 # the parser actually does) is about as reasonable as anything.
13414 Mixing markup for italics and bold
13417 '''bold''''''bold''bolditalics'''''
13419 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
13427 Article for special page transclusion test
13431 Special page transclusion
13434 {{Special:Prefixindex/Xyzzyx}}
13436 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13441 Special page transclusion twice (bug 5021)
13444 {{Special:Prefixindex/Xyzzyx}}
13445 {{Special:Prefixindex/Xyzzyx}}
13447 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13448 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13453 Transclusion of default MediaWiki message
13455 {{MediaWiki:Mainpage}}
13462 Transclusion of nonexistent MediaWiki message
13464 {{MediaWiki:Mainpagexxx}}
13466 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
13471 Transclusion of MediaWiki message with underscore
13473 {{MediaWiki:history_short}}
13480 Transclusion of MediaWiki message with space
13482 {{MediaWiki:history short}}
13489 Invalid header with following text
13499 Section extraction test (section 0)
13519 Section extraction test (section 1)
13541 Section extraction test (section 2)
13562 Section extraction test (section 3)
13582 Section extraction test (section 4)
13606 Section extraction test (section 5)
13626 Section extraction test (section 6)
13647 Section extraction test (section 7)
13667 Section extraction test (section 8)
13687 Section extraction test (section 9)
13708 Section extraction test (section 10)
13728 Section extraction test (nonexistent section 11)
13747 Section extraction test with bogus heading (section 1)
13752 ==bogus== not a legal section
13756 ==bogus== not a legal section
13760 Section extraction test with bogus heading (section 2)
13765 ==bogus== not a legal section
13772 Section extraction test with comment after heading (section 1)
13784 Section extraction test with comment after heading (section 2)
13796 Section extraction test with bogus <nowiki> heading (section 1)
13801 ==bogus== <nowiki>not a legal section</nowiki>
13805 ==bogus== <nowiki>not a legal section</nowiki>
13809 Section extraction test with bogus <nowiki> heading (section 2)
13814 ==bogus== <nowiki>not a legal section</nowiki>
13821 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
13822 # instead of respecting commented sections
13824 Section extraction prefixed by comment (section 1)
13835 Section extraction prefixed by comment (section 2)
13846 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
13847 # instead of respecting HTML-style headings
13849 Section extraction, mixed wiki and html (section 1)
13865 Section extraction, mixed wiki and html (section 2)
13881 # Formerly testing for bug 3342
13883 Section extraction, heading surrounded by <noinclude>
13887 <noinclude>==unmarked==</noinclude>
13893 # Test behavior of bug 19910
13895 Sectiion with all-equals
13900 The line above must have a trailing space
13903 But just in case it doesn't...
13907 But just in case it doesn't...
13911 Section replacement test (section 0)
13942 Section replacement test (section 1)
13971 Section replacement test (section 2)
14001 Section replacement test (section 3)
14032 Section replacement test (section 4)
14059 Section replacement test (section 5)
14090 Section replacement test (section 6)
14120 Section replacement test (section 7)
14151 Section replacement test (section 8)
14182 Section replacement test (section 9)
14211 Section replacement test (section 10)
14241 Section replacement test with initial whitespace (bug 13728)
14245 Preformatted initial line
14249 Preformatted initial line
14256 Section extraction, heading followed by pre with 20 spaces (bug 6398)
14268 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
14281 Section extraction, <pre> around bogus header (bug 10309)
14298 Section replacement, <pre> around bogus header (bug 10309)
14300 noxml replace=2,"xxx"
14321 Handling of 
 in URLs
14327 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
14335 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
14337 5 quotes, code coverage +1 line
14342 <p><b><i></i></b></p>
14346 Special:Search page linking.
14350 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
14357 title=[[Parser test]]
14362 * {{FULLPAGENAMEE}}
14364 * {{BASEPAGENAMEE}}
14368 * {{ROOTPAGENAMEE}}
14370 * {{TALKPAGENAMEE}}
14371 * {{SUBJECTPAGENAME}}
14372 * {{SUBJECTPAGENAMEE}}
14375 * {{NAMESPACENUMBER}}
14379 * {{SUBJECTSPACEE}}
14380 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
14403 <li> Talk:Parser test
14405 <li> Talk:Parser_test
14425 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
14430 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
14440 image4 |300px| centre
14441 image5.svg| http://///////
14446 <ul class="gallery mw-gallery-traditional">
14447 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14448 <div class="thumb" style="height: 150px;">Image1.png</div>
14449 <div class="gallerytext">
14452 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14453 <div class="thumb" style="height: 150px;">Image2.gif</div>
14454 <div class="gallerytext">
14459 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14460 <div class="thumb" style="height: 150px;">Image3</div>
14461 <div class="gallerytext">
14464 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14465 <div class="thumb" style="height: 150px;">Image4</div>
14466 <div class="gallerytext">
14471 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14472 <div class="thumb" style="height: 150px;">Image5.svg</div>
14473 <div class="gallerytext">
14474 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
14478 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14479 <div class="thumb" style="height: 150px;">* image6</div>
14480 <div class="gallerytext">
14488 Gallery (with options)
14490 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
14491 File:Nonexistant.jpg|caption
14492 File:Nonexistant.jpg
14493 image:foobar.jpg|some '''caption''' [[Main Page]]
14495 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
14498 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
14499 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
14500 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14501 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14502 <div class="gallerytext">
14507 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14508 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14509 <div class="gallerytext">
14512 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14513 <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>
14514 <div class="gallerytext">
14515 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14519 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14520 <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>
14521 <div class="gallerytext">
14524 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14525 <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>
14526 <div class="gallerytext">
14536 Gallery with wikitext inside caption
14539 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
14540 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
14543 <ul class="gallery mw-gallery-traditional">
14544 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14545 <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>
14546 <div class="gallerytext">
14547 <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>
14551 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14552 <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>
14553 <div class="gallerytext">
14554 <p>This is a test template
14563 gallery (with showfilename option)
14565 <gallery showfilename>
14566 File:Nonexistant.jpg|caption
14567 File:Nonexistant.jpg
14568 image:foobar.jpg|some '''caption''' [[Main Page]]
14572 <ul class="gallery mw-gallery-traditional">
14573 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14574 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14575 <div class="gallerytext">
14576 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14581 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14582 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14583 <div class="gallerytext">
14584 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14588 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14589 <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>
14590 <div class="gallerytext">
14591 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14592 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14596 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14597 <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>
14598 <div class="gallerytext">
14599 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14608 Gallery (with namespace-less filenames)
14611 File:Nonexistant.jpg
14617 <ul class="gallery mw-gallery-traditional">
14618 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14619 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14620 <div class="gallerytext">
14623 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14624 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14625 <div class="gallerytext">
14628 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14629 <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>
14630 <div class="gallerytext">
14633 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14634 <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>
14635 <div class="gallerytext">
14643 HTML Hex character encoding (spells the word "JavaScript")
14645 JavaScript
14647 <p>JavaScript
14652 HTML Hex character encoding bogus encoding (bug 26437 regression check)
14656 <p>&#xsee;&#XSEE;
14661 HTML Hex character encoding mixed case
14670 __FORCETOC__ override
14682 ISBN 978-0-1234-56 789
14684 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
14689 ISBN followed by 5 spaces
14700 ISBN ISBN 1234567890
14702 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14711 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
14716 Bug 22905: <abbr> followed by ISBN followed by </a>
14718 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
14720 <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>
14729 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
14734 Double RFC with a wiki link
14738 <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>
14747 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
14752 Centre-aligned image
14754 [[Image:foobar.jpg|centre]]
14756 <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>
14763 [[Image:foobar.jpg|none]]
14765 <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>
14770 Width + Height sized image (using px) (height is ignored)
14772 [[Image:foobar.jpg|640x480px]]
14774 <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>
14779 Width-sized image (using px, no following whitespace)
14781 [[Image:foobar.jpg|640px]]
14783 <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>
14788 Width-sized image (using px, with following whitespace - test regression from r39467)
14790 [[Image:foobar.jpg|640px ]]
14792 <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>
14797 Width-sized image (using px, with preceding whitespace - test regression from r39467)
14799 [[Image:foobar.jpg| 640px]]
14801 <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>
14806 Another italics / bold test
14814 # Note the results may be incorrect, as parserTest output included this:
14815 # XML error: Mismatched tag at byte 6120:
14816 # ...<dd> </dt></dl> </dd...
14847 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
14849 Images with the "|" character in the comment
14851 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
14853 <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>
14858 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14860 <html><script>alert(1);</script></html>
14862 <p><html><script>alert(1);</script></html>
14867 HTML with raw HTML ($wgRawHtml==true)
14871 <html><script>alert(1);</script></html>
14873 <p><script>alert(1);</script>
14878 Parents of subpages, one level up
14880 subpage title=[[Subpage test/L1/L2/L3]]
14884 <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>
14890 Parents of subpages, one level up, not named
14892 subpage title=[[Subpage test/L1/L2/L3]]
14896 <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>
14903 Parents of subpages, two levels up
14905 subpage title=[[Subpage test/L1/L2/L3]]
14911 <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
14912 </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>
14917 Parents of subpages, two levels up, without trailing slash or name.
14919 subpage title=[[Subpage test/L1/L2/L3]]
14928 Parents of subpages, two levels up, with lots of extra trailing slashes.
14930 subpage title=[[Subpage test/L1/L2/L3]]
14934 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14939 Subpage test/L1/L2/L3Sibling
14945 Transclusion of a sibling page (one level up)
14947 subpage title=[[Subpage test/L1/L2/L3]]
14956 Transclusion of a child page
14958 subpage title=[[Subpage test/L1/L2]]
14967 Non-transclusion because of too many up levels
14969 subpage title=[[Subpage test/L1/L2/L3]]
14971 {{../../../../More than parent}}
14973 <p>{{../../../../More than parent}}
14978 Definition list code coverage
14985 <dt> title  </dt>
14988 <dt> title </dt>
14999 Don't fall for the self-closing div
15001 <div>hello world</div/>
15003 <div>hello world</div>
15012 <p>[[:Template:Msg]]
15021 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
15025 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
15027 Always escape literal '>' in output, not just after '<'
15041 <p>This is a test template
15042 This is a test template
15054 Inclusion of !userCanEdit() content
15058 <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>
15064 Out-of-order TOC heading levels
15073 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15075 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
15077 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
15078 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
15081 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
15083 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
15084 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
15090 <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>
15091 <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>
15092 <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>
15093 <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>
15094 <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>
15095 <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>
15101 ISBN with a dummy number
15111 ISBN with space-delimited number
15115 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
15121 ISBN with multiple spaces, no number
15140 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
15141 </p><p>ISBN 12345678901
15147 ISBN with trailing year (bug 8110)
15149 ISBN 1-234-56789-0 - 2006
15151 ISBN 1 234 56789 0 - 2006
15153 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
15154 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
15162 {{anchorencode:foo bar©#%n}}
15164 <p>foo_bar.C2.A9.23.25n
15169 anchorencode trims spaces
15171 {{anchorencode: __pretty__please__}}
15178 anchorencode deals with links
15180 {{anchorencode: [[hello|world]] [[hi]]}}
15187 anchorencode deals with templates
15189 {{anchorencode: {{Foo}} }}
15196 anchorencode encodes like the TOC generator: (bug 18431)
15198 === _ +:.3A%3A&&]] ===
15199 {{anchorencode: _ +:.3A%3A&&]] }}
15202 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
15203 <p>.2B:.3A.253A.26.26.5D.5D
15208 Bug 6200: blockquotes and paragraph formatting
15229 Bug 8293: Use of center tag ruins paragraph formatting
15250 Parsing of overlapping (improperly nested) inline html tags
15252 <span><s>x</span></s>
15254 <p><span><s>x</span></s></span>
15257 <p><span><s>x</s></span>
15262 ### Language variants related tests
15265 Self-link in language variants
15267 title=[[Dunav]] language=sr
15269 Both [[Dunav]] and [[Дунав]] are names for this river.
15271 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
15282 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
15284 title=[[Duna]] language=sr
15286 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
15288 <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.
15293 Link to a section of a variant of this title shouldn't be parsed as self-link
15295 title=[[Duna]] language=sr
15297 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
15299 <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.
15304 Link to pages in language variants
15308 Main Page can be written as [[Маин Паге]]
15310 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
15316 Multiple links to pages in language variants
15320 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
15322 <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>.
15328 Simple template in language variants
15334 <p>This is a test template
15340 Template with explicit namespace in language variants
15346 <p>This is a test template
15352 Basic test for template parameter in language variants
15356 {{парамтест|param=foo}}
15358 <p>This is a test template with parameter foo
15364 Simple category in language variants
15368 [[Category:МедиаWики Усер'с Гуиде]]
15370 <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>
15387 Don't convert blue categorylinks to another variant (bug 33210)
15391 [[A]][[Category:分类]]
15393 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
15398 Stripping -{}- tags (language variants)
15402 Latin proverb: -{Ne nuntium necare}-
15404 <p>Latin proverb: Ne nuntium necare
15410 Prevent conversion with -{}- tags (language variants)
15412 language=sr variant=sr-ec
15414 Latinski: -{Ne nuntium necare}-
15416 <p>Латински: Ne nuntium necare
15422 Prevent conversion of text with -{}- tags (language variants)
15424 language=sr variant=sr-ec
15426 Latinski: -{Ne nuntium necare}-
15428 <p>Латински: Ne nuntium necare
15434 Prevent conversion of links with -{}- tags (language variants)
15436 language=sr variant=sr-ec
15440 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15446 -{}- tags within headlines (within html for parserConvert())
15448 language=sr variant=sr-ec
15452 <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>
15458 Explicit definition of language variant alternatives
15460 language=zh variant=zh-tw
15462 -{zh:China;zh-tw:Taiwan}-, not China
15464 <p>Taiwan, not China
15470 Conversion around HTML tags
15472 language=sr variant=sr-ec
15474 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
15475 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
15478 <span title="ЛаCтин">ски</span>
15484 Explicit session-wise language variant mapping (A flag and - flag)
15486 language=zh variant=zh-tw
15488 Taiwan is not China.
15489 But -{A|zh:China;zh-tw:Taiwan}- is China,
15490 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
15491 and -{China}- is China.
15493 <p>Taiwan is not China.
15494 But Taiwan is Taiwan,
15495 (This should be stripped!)
15496 and China is China.
15501 Explicit session-wise language variant mapping (H flag for hide)
15503 language=zh variant=zh-tw
15505 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
15508 <p>(This should be stripped!)
15514 Adding explicit conversion rule for title (T flag)
15516 language=zh variant=zh-tw showtitle
15518 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15521 <p>Should be stripped!
15526 Testing that changing the language variant here in the tests actually works
15528 language=zh variant=zh showtitle
15530 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15533 <p>Should be stripped!
15538 Recursive conversion of alt and title attrs shouldn't clear converter state
15540 language=zh variant=zh-cn showtitle
15542 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
15543 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
15547 Should be stripped<span title="Exclamation">!</span>
15552 Bug 24072: more test on conversion rule for title
15554 language=zh variant=zh-tw showtitle
15556 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15557 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
15560 <p>This should be stripped!
15561 This won't take interferes with the title rule.
15566 Partly disable title conversion if variant == main language code
15568 language=zh variant=zh title=[[ZH]] showtitle
15570 -{T|zh-cn:CN;zh-tw:TW}-
15578 Partly disable title conversion if variant == main language code, more
15580 language=zh variant=zh title=[[ZH]] showtitle
15590 Raw output of variant escape tags (R flag)
15592 language=zh variant=zh-tw
15594 Raw: -{R|zh:China;zh-tw:Taiwan}-
15596 <p>Raw: zh:China;zh-tw:Taiwan
15601 Nested using of manual convert syntax
15603 language=zh variant=zh-hk
15605 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
15607 <p>Nested: Hello Hong Kong!
15612 Proper conversion of text in external links
15614 language=sr variant=sr-ec
15616 http://www.google.com
15617 gopher://www.google.com
15618 [http://www.google.com http://www.google.com]
15619 [gopher://www.google.com gopher://www.google.com]
15620 [https://www.google.com irc://www.google.com]
15621 [ftp://www.google.com www.google.com/ftp://dir]
15622 [//www.google.com www.google.com]
15624 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15625 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15626 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15627 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15628 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
15629 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
15630 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
15635 Do not convert roman numbers to language variants
15637 language=sr variant=sr-ec
15641 <p>Фридрих IV је цар.
15646 Unclosed language converter markup "-{"
15657 Don't convert raw rule "-{R|=>}-" to "=>"
15668 Don't break link parsing if language converter markup is in the caption.
15670 language=sr variant=sr-ec
15672 [[Main Page|-{R|main page}-]]
15674 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
15678 # This test is currently broken in the PHP parser (bug 52661)
15680 Don't break image parsing if language converter markup is in the caption.
15685 [[File:Foobar.jpg|-{R|caption}-]]
15687 <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>
15691 # This test is currently broken in the PHP parser (bug 52661)
15693 Don't break list handling if language converter markup is in the item.
15695 language=zh variant=zh-cn
15698 ;-{zh-cn:AAA;zh-tw:BBB}-
15705 # This test is currently broken in the PHP parser (bug 52661)
15707 Don't break table handling if language converter markup is in the cell.
15709 language=sr variant=sr-ec
15726 Bug 529: Uncovered bullet
15739 # Plain MediaWiki does not remove empty lists, but tidy actually does.
15740 # Templates in Wikipedia rely on this behavior, as tidy has always been
15741 # enabled there. These tests are normally run *without* tidy, so specify the
15742 # full output here.
15743 # To test realistic parsing behavior, apply a tidy-like transformation to both
15744 # the expected output and your parser's output.
15746 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
15748 ******* Foo {{bullet}}
15778 Bug 529: Uncovered table already at line-start
15801 Bug 529: Uncovered bullet in parser function result
15803 * Foo {{lc:{{bullet}} }}
15815 Bug 5678: Double-parsed template argument
15817 {{lc:{{{1}}}|hello}}
15824 Bug 5678: Double-parsed template invocation
15826 {{lc:{{paramtest {{!}} param = hello }} }}
15828 <p>{{paramtest | param = hello }}
15833 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
15836 title=[[Main Page]]
15838 {{PRVNÍVELKÉ:ěščř}}
15839 {{prvnívelké:ěščř}}
15859 Morwen/13: Unclosed link followed by heading
15866 <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>
15871 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
15878 <h1><span class="mw-headline" id="heading">heading</span></h1>
15883 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
15890 <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>
15905 Paragraphs inside divs (no extra line breaks)
15917 Paragraphs inside divs (extra line break on open)
15932 Paragraphs inside divs (extra line break on close)
15947 Paragraphs inside divs (extra line break on open and close)
15964 Nesting tags, paragraphs on lines which begin with <div>
15968 <div></div><strong>A
15977 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
15979 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
15981 <blockquote>Line one
15983 Line two</blockquote>
15985 <blockquote>Line one
15986 Line two</blockquote>
15991 Bug 6200: paragraphs inside blockquotes (extra line break on open)
15996 Line two</blockquote>
16001 Line two</blockquote>
16006 Bug 6200: paragraphs inside blockquotes (extra line break on close)
16008 <blockquote>Line one
16013 <blockquote>Line one
16021 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
16038 Paragraphs inside blockquotes/divs (no extra line breaks)
16040 <blockquote><div>Line one
16042 Line two</div></blockquote>
16044 <blockquote><div>Line one
16045 Line two</div></blockquote>
16050 Paragraphs inside blockquotes/divs (extra line break on open)
16055 Line two</div></blockquote>
16060 Line two</div></blockquote>
16065 Paragraphs inside blockquotes/divs (extra line break on close)
16067 <blockquote><div>Line one
16070 </div></blockquote>
16072 <blockquote><div>Line one
16075 </div></blockquote>
16080 Paragraphs inside blockquotes/divs (extra line break on open and close)
16086 </div></blockquote>
16092 </div></blockquote>
16097 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
16099 wgLinkHolderBatchSize=0
16105 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
16106 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
16107 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
16112 Free external link invading image caption
16114 [[Image:Foobar.jpg|thumb|http://x|hello]]
16116 <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>
16121 Bug 15196: localised external link numbers
16125 [http://en.wikipedia.org/]
16127 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
16132 Multibyte character in padleft
16134 {{padleft:-Hello|7|Æ}}
16141 Multibyte character in padright
16143 {{padright:Hello-|7|Æ}}
16150 formatdate parser function
16152 {{#formatdate:2009-03-24}}
16154 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
16159 formatdate parser function, with default format
16161 {{#formatdate:2009-03-24|mdy}}
16163 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
16168 Spacing of numbers in formatted dates
16170 {{#formatdate:January 15}}
16172 <p><span class="mw-formatted-date" title="01-15">January 15</span>
16177 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
16179 language=nl title=[[MediaWiki:Common.css]]
16181 {{#formatdate:2009-03-24|dmy}}
16183 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
16196 Edit comment with link
16200 I like the [[Main Page]] a lot
16202 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
16206 Edit comment with link and link text
16210 I like the [[Main Page|best pages]] a lot
16212 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16216 Edit comment with link and link text with suffix
16220 I like the [[Main Page|best page]]s a lot
16222 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16226 Edit comment with section link (non-local, eg in history list)
16228 comment title=[[Main Page]]
16230 /* External links */ removed bogus entries
16232 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16236 Edit comment with section link and text before it (non-local, eg in history list)
16238 comment title=[[Main Page]]
16240 pre-comment text /* External links */ removed bogus entries
16242 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>
16246 Edit comment with section link (local, eg in diff view)
16248 comment local title=[[Main Page]]
16250 /* External links */ removed bogus entries
16252 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16256 Edit comment with subpage link (bug 14080)
16260 title=[[Subpage test]]
16262 Poked at a [[/subpage]] here...
16264 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
16268 Edit comment with subpage link and link text (bug 14080)
16272 title=[[Subpage test]]
16274 Poked at a [[/subpage|neat little page]] here...
16276 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
16280 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
16283 title=[[Subpage test]]
16285 Poked at a [[/subpage]] here...
16287 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
16291 Edit comment with bare anchor link (local, as on diff)
16295 title=[[Main Page]]
16299 <a href="#section">#section</a>
16303 Edit comment with bare anchor link (non-local, as on history)
16306 title=[[Main Page]]
16310 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
16314 Anchor starting with underscore
16318 <p><a href="#_ref">One</a>
16323 Id starting with underscore
16325 <div id="_ref"></div>
16327 <div id="_ref"></div>
16332 Space normalisation on autocomment (bug 22784)
16335 title=[[Main Page]]
16337 /* __hello__world__ */
16339 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
16343 percent-encoding and + signs in comments (Bug 26410)
16347 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
16349 <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>
16353 Bad images - basic functionality
16362 Bad images - bug 16039: text after bad image disappears
16376 Verify that displaytitle works (bug #22501) no displaytitle
16380 wgAllowDisplayTitle=true
16381 wgRestrictDisplayTitle=false
16383 this is not the the title
16386 <p>this is not the the title
16391 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
16396 wgAllowDisplayTitle=true
16397 wgRestrictDisplayTitle=false
16399 this is not the the title
16400 {{DISPLAYTITLE:whatever}}
16403 <p>this is not the the title
16408 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
16413 wgAllowDisplayTitle=true
16414 wgRestrictDisplayTitle=true
16416 this is not the the title
16417 {{DISPLAYTITLE:whatever}}
16420 <p>this is not the the title
16425 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
16430 wgAllowDisplayTitle=true
16431 wgRestrictDisplayTitle=true
16433 this is not the the title
16434 {{DISPLAYTITLE:screen}}
16437 <p>this is not the the title
16442 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
16447 wgAllowDisplayTitle=false
16449 this is not the the title
16450 {{DISPLAYTITLE:screen}}
16453 <p>this is not the the title
16454 <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>
16459 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
16464 wgAllowDisplayTitle=false
16466 this is not the the title
16469 <p>this is not the the title
16474 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
16479 wgAllowDisplayTitle=true
16480 wgRestrictDisplayTitle=true
16482 this is not the the title
16483 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
16485 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
16486 <p>this is not the the title
16491 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
16496 wgAllowDisplayTitle=true
16497 wgRestrictDisplayTitle=true
16499 this is not the the title
16500 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
16502 <span style="color: red;">s</span>creen
16503 <p>this is not the the title
16508 preload: check <noinclude> and <includeonly>
16512 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
16518 preload: check <onlyinclude>
16522 Goodbye <onlyinclude>Hello world</onlyinclude>
16528 preload: can pass tags through if we want to
16532 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
16534 <includeonly>Hello world</includeonly>
16538 preload: check that it doesn't try to do tricks
16542 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16544 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16548 Play a bit with r67090 and bug 3158
16552 <div style="width:50% !important"> </div>
16553 <div style="width:50% !important"> </div>
16554 <div style="width:50% !important"> </div>
16555 <div style="border : solid;"> </div>
16557 <div style="width:50% !important"> </div>
16558 <div style="width:50% !important"> </div>
16559 <div style="width:50% !important"> </div>
16560 <div style="border : solid;"> </div>
16565 HTML5 data attributes
16567 <span data-foo="bar">Baz</span>
16568 <p data-abc-def_hij="">Quuz</p>
16570 <p><span data-foo="bar">Baz</span>
16572 <p data-abc-def_hij="">Quuz</p>
16577 percent-encoding and + signs in internal links (Bug 26410)
16579 [[User:+%]] [[Page+title%]]
16580 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
16581 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
16582 [[%33%45]] [[%33%45+]]
16584 <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>
16585 <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>
16586 <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>
16587 <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>
16592 Special characters in embedded file links (bug 27679)
16594 [[File:Contains & ampersand.jpg]]
16595 [[File:Does not exist.jpg|Title with & ampersand]]
16597 <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>
16598 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
16604 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
16606 Text's been normalized?
16608 <p>Text's been normalized?
16613 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
16615 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
16617 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
16622 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
16624 [http://www.example.org/ ideograms]
16626 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
16631 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
16633 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
16635 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
16659 Bug 31098 Template which includes system messages which includes the template
16663 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16664 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16669 Bug31490 Turkish: ucfirst 'blah'
16680 Bug31490 Turkish: ucfirst 'ix'
16691 Bug31490 Turkish: lcfirst 'BLAH'
16702 Bug31490 Turkish: ucfırst (with a dotless i)
16708 <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>
16713 Bug31490 ucfırst (with a dotless i) with English language
16719 <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>
16724 Bug 26375: TOC with italics
16726 title=[[Main Page]]
16729 == ''Lost'' episodes ==
16731 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16733 <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>
16737 <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>
16742 Bug 26375: TOC with bold
16744 title=[[Main Page]]
16747 == '''should be bold''' then normal text ==
16749 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16751 <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>
16755 <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>
16760 Bug 33845: Headings become cursive in TOC when they contain an image
16762 title=[[Main Page]]
16765 == Image [[Image:foobar.jpg]] ==
16767 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16769 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
16773 <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>
16778 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
16780 title=[[Main Page]]
16783 == <blockquote>Quote</blockquote> ==
16785 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16787 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
16791 <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>
16796 Unclosed tags in TOC
16798 title=[[Main Page]]
16802 <small>Hanc marginis exiguitas non caperet.</small>
16805 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16807 <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>
16811 <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>
16812 <p><small>Hanc marginis exiguitas non caperet.</small>
16818 Multiple tags in TOC
16821 == <i>Foo</i> <b>Bar</b> ==
16823 == <i>Foo</i> <blockquote>Bar</blockquote> ==
16825 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16827 <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>
16828 <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>
16832 <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>
16833 <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>
16838 Tags with parameters in TOC
16841 == <sup class="in-h2">Hello</sup> ==
16843 == <sup class="a > b">Evilbye</sup> ==
16845 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16847 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
16848 <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>
16852 <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>
16853 <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>
16858 span tags with directionality in TOC
16861 == <span dir="ltr">C++</span> ==
16863 == <span dir="rtl">זבנג!</span> ==
16865 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
16867 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
16869 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
16871 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16873 <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>
16874 <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>
16875 <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>
16876 <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>
16877 <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>
16881 <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>
16882 <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>
16883 <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>
16884 <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>
16885 <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>
16892 == {{int:headline_sample}} ==
16896 Bug 32057: Title needed when expanding <h> nodes.
16898 title=[[Main Page]]
16902 <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>
16907 Strip marker in urlencode
16909 {{urlencode:x<nowiki/>y}}
16910 {{urlencode:x<nowiki/>y|wiki}}
16911 {{urlencode:x<nowiki/>y|path}}
16938 Strip marker in formatNum
16940 {{formatnum:1<nowiki/>2}}
16941 {{formatnum:1<nowiki/>2|R}}
16949 Check noCommafy in formatNum
16953 {{formatnum:123456.78}}
16954 {{formatnum:123456.78|NOSEP}}
16962 Wrong option for formatNum (bug 56199)
16964 {{formatnum:1,234.56|Random}}
16965 {{formatnum:1,234.56|EVERYTHING}}
16966 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
16975 Strip marker in grammar
16979 {{grammar:elative|foo<nowiki/>bar}}
16986 Strip marker in padleft
16988 {{padleft:|2|x<nowiki/>y}}
16995 Strip marker in padright
16997 {{padright:|2|x<nowiki/>y}}
17004 Strip marker in anchorencode
17006 {{anchorencode:x<nowiki/>y}}
17013 nowiki inside link inside heading (bug 18295)
17015 ==[[foo|x<nowiki>y</nowiki>z]]==
17017 <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>
17022 new support for bdi element (bug 31817)
17024 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17026 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17031 Ignore pipe between table row attributes
17035 |- id=foo | style='color: red'
17043 <tr id="foo" style="color: red">
17050 Gallery override link with WikiLink (bug 34852)
17053 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
17056 <ul class="gallery mw-gallery-traditional">
17057 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17058 <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>
17059 <div class="gallerytext">
17069 Gallery override link with absolute external link (bug 34852)
17072 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
17075 <ul class="gallery mw-gallery-traditional">
17076 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17077 <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>
17078 <div class="gallerytext">
17088 Gallery override link with malicious javascript (bug 34852)
17091 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
17094 <ul class="gallery mw-gallery-traditional">
17095 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17096 <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>
17097 <div class="gallerytext">
17107 Gallery with invalid title as link (bug 43964)
17110 File:foobar.jpg|link=<
17113 <ul class="gallery mw-gallery-traditional">
17114 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17115 <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>
17116 <div class="gallerytext">
17124 Language parser function
17133 Padleft and padright as substr
17135 {{padleft:|3|abcde}}
17136 {{padright:|3|abcde}}
17144 Special parser function
17146 {{#special:RandomPage}}
17147 {{#special:BaDtItLe}}
17148 {{#special:Foobar}}
17157 Bug 34939 - Case insensitive link parsing ([HttP://])
17159 [HttP://MediaWiki.Org/]
17161 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
17166 Bug 34939 - Case insensitive link parsing ([HttP:// title])
17168 [HttP://MediaWiki.Org/ MediaWiki]
17170 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
17175 Bug 34939 - Case insensitive link parsing (HttP://)
17177 HttP://MediaWiki.Org/
17179 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
17198 <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>
17199 <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>
17200 <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>
17201 <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>
17202 <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>
17208 ### Parsoids-specific tests
17209 ### Parsoid-PHP parser incompatibilities
17212 1. SOL-sensitive wikitext tokens as template-args
17214 parsoid=wt2html,wt2wt
17220 <span about="#mwt1" typeof="mw:Transclusion">
17221 </span><ul about="#mwt1"><li>a</li>
17223 <span about="#mwt2" typeof="mw:Transclusion">
17224 </span><ol about="#mwt2"><li>a</li>
17226 <span about="#mwt3" typeof="mw:Transclusion">
17227 </span><dl about="#mwt3"><dd>a</dd>
17231 #### ----------------------------------------------------------------
17232 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
17233 #### tags. Parsoid's output for these tags differs from that of the
17235 #### ----------------------------------------------------------------
17238 Ref: 1. ref-location should be replaced with an index span
17243 B <ref name="x">foo</ref>
17246 <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>
17247 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>
17248 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>
17252 Ref: 2. ref-tags with identical names should all get the same index
17256 A <ref name="x">foo</ref>
17259 <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>
17260 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>
17264 Ref: 3. spaces in ref-names should be ignored
17268 A <ref name="x">foo</ref>
17269 B <ref name=" x " />
17272 <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>
17273 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>
17274 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>
17278 Ref: 4. 'constructor' should be accepted as a valid ref-name
17279 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
17283 A <ref name="constructor">foo</ref>
17285 <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>
17289 Ref: 5. body should accept generic wikitext
17294 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
17299 <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=\"#mwt3\" 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>
17301 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
17302 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> This is a <b><a rel="mw:WikiLink" href="./Bolded_link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}'>transclusion</span>
17308 Ref: 6. indent-pres should not be output in ref-body
17320 <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>
17322 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
17323 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17331 Ref: 7. No p-wrapping in ref-body
17350 <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>
17352 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17353 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17368 Ref: 8. transclusion wikitext has lower precedence
17372 A <ref> foo {{echo|</ref> B C}}
17376 <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>
17377 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
17378 <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>
17383 Ref: 9. unclosed comments should not leak out of ref-body
17387 A <ref> foo <!--</ref> B C
17390 <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>
17391 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17392 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
17397 Ref: 10. Unclosed HTML tags should not leak out of ref-body
17401 A <ref> <b> foo </ref> B C
17405 <p>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>"}'><a href="#cite_note-1">[1]</a></span> B C</p>
17408 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17409 <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}'> foo </b></li>
17414 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
17421 <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" data-parsoid='{"src":"<ref>foo</ref>"}'><a href="#cite_note-1">[1]</a></span> B
17422 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>"}'><a href="#cite_note-2">[2]</a></span> D</p>
17426 Ref: 12. ref-tags act as trailing newline migration barrier
17430 <!--the newline at the end of this line moves out of the p-tag-->a
17432 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
17437 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
17440 <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>
17441 <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>
17448 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
17456 <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
17457 <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>
17461 Ref: 14. A nested ref-tag should be emitted as plain text
17465 <ref>foo <ref>bar</ref> baz</ref>
17469 <p><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>"}'><a href="#cite_note-1">[1]</a></span></p>
17471 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17472 <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>
17477 Ref: 15. ref-tags with identical names should get identical indexes
17481 A1 <ref name="a">foo</ref> A2 <ref name="a" />
17482 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
17486 <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>
17487 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>
17489 <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>
17493 ## We don't bother wt2wt-ing non-standard whitespace
17495 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
17503 <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></p>
17505 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17506 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
17510 References: 1. references tag without any refs should be handled properly
17516 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
17520 References: 2. references tag with group only outputs references from that group
17524 A <ref group="a">foo</ref>
17525 B <ref group="b">bar</ref>
17527 <references group="a" />
17529 <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>
17530 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[b 1]</a></span></p>
17532 <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>
17537 References: 3. ref list should be cleared after processing references
17549 <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>
17551 <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>
17554 <p>B <span about="#mwt6" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[1]</a></span></p>
17556 <ol about="#mwt8" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> bar</li>
17561 References: 4. only referenced group should be cleared after processing references
17565 A <ref group="a">afoo</ref>
17568 <references group="a" />
17574 <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>
17575 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bfoo</ref>"}'><a href="#cite_note-2">[1]</a></span></p>
17577 <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>
17580 <p>C <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}' id="cite_ref-3-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-3">[2]</a></span></p>
17582 <ol about="#mwt10" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> bfoo</li><li about="#cite_note-3" id="cite_note-3"><span rel="mw:referencedBy"><a href="#cite_ref-3-0">↑</a></span> cfoo</li>
17587 References: 5. ref tags in references should be processed while ignoring all other content
17592 B <ref name="b">bar</ref>
17595 <ref name="a">foo</ref>
17596 This should just get lost.
17599 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref name=\"a\" />"}'><a href="#cite_note-a-1">[1]</a></span>
17600 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>"}'><a href="#cite_note-b-2">[2]</a></span></p>
17603 <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>"}' 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":{}}'>
17604 <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>
17605 <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>
17610 References: 6. <references /> from a transclusion
17614 <ref>Foo</ref> {{echo|<references />}}
17616 <span about="#mwt3" 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> <ol class="references" typeof="mw:Extension/references mw:Transclusion" about="#mwt4" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}}]}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> Foo</li></ol>
17620 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
17624 A <ref>foo bar for a</ref>
17625 B <ref group="X" name="b" />
17629 <references group="X">
17630 <ref name="b">foo</ref>
17633 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo bar for a"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>foo bar for a</ref>"}'><a href="#cite_note-2" data-parsoid="{}">[2]</a></span>
17634 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"group":"X","name":"b"}}' id="cite_ref-b-3-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref name=\"b\" group=\"X\" />"}'><a href="#cite_note-b-3" data-parsoid="{}">[X 1]</a></span></p>
17636 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-b-1" id="cite_note-b-1" data-parsoid="{}"><span rel="mw:referencedBy" data-parsoid="{}">↑</span> foo</li><li about="#cite_note-2" id="cite_note-2" data-parsoid="{}"><span rel="mw:referencedBy" data-parsoid="{}"><a href="#cite_ref-2-0" data-parsoid="{}">↑</a></span> foo bar for a</li></ol>
17638 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-parsoid='{"src":"<references group=\"X\">\n<ref name=\"b\">foo</ref>\n</references>","group":"X"}' 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":{"group":"X"}}'><li about="#cite_note-b-3" id="cite_note-b-3" data-parsoid="{}"><span rel="mw:referencedBy" data-parsoid="{}"><a href="#cite_ref-b-3-0" data-parsoid="{}">↑</a></span> </li></ol>
17641 # This test is wt2html only because we're permitting the serializer to produce
17642 # dirty diffs, normalizing the unclosed references to the self-closed version.
17644 Generate references for unclosed references tag
17652 <p data-parsoid='{}'>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>"}'><a href="#cite_note-1" data-parsoid="{}">[1]</a></span></p>
17655 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
17656 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy" data-parsoid="{}"><a href="#cite_ref-1-0" data-parsoid="{}">↑</a></span> foo</li></ol>
17660 New reference serializes on its own line
17662 parsoid=wt2wt,html2wt
17667 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
17670 #### ----------------------------------------------------------------
17671 #### The following section of tests are primarily to test
17672 #### wikitext escaping capabilities of Parsoid. Given that
17673 #### escaping can be done any number of ways, the wikitext (input)
17674 #### is always adjusted to reflect how Parsoid adds nowiki
17677 #### We are marking several tests as parsoid-only since the
17678 #### HTML in the result section is different from what the
17679 #### PHP parser generates for it.
17680 #### ----------------------------------------------------------------
17683 #### --------------- Headings ---------------
17685 #### 1. Nested inside html <h1>=foo=</h1>
17686 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
17687 #### 3. Nested inside html with wikitext split by html tags
17688 #### 4. No escape needed
17689 #### 5. Empty headings <h1></h1>
17690 #### 6. Heading chars in SOL context
17691 #### ----------------------------------------
17693 Headings: 0. Unnested
17697 <nowiki>=foo=</nowiki>
17699 <nowiki> =foo= </nowiki>
17701 <nowiki>=foo=</nowiki>
17703 =foo''a''<nowiki>=</nowiki>
17705 <p><span typeof="mw:Nowiki">=foo=</span></p>
17707 <p><span typeof="mw:Nowiki"> =foo= </span>
17709 <span typeof="mw:Nowiki">=foo=</span></p>
17711 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
17715 Headings: 1. Nested inside html
17716 (New headings and existing headings are handled differently)
17726 =<nowiki>=foo=</nowiki>=
17727 ==<nowiki>=foo=</nowiki>==
17728 ===<nowiki>=foo=</nowiki>===
17729 ====<nowiki>=foo=</nowiki>====
17730 =====<nowiki>=foo=</nowiki>=====
17731 ======<nowiki>=foo=</nowiki>======
17738 <h1 data-parsoid='{}'>=foo=</h1>
17739 <h2 data-parsoid='{}'>=foo=</h2>
17740 <h3 data-parsoid='{}'>=foo=</h3>
17741 <h4 data-parsoid='{}'>=foo=</h4>
17742 <h5 data-parsoid='{}'>=foo=</h5>
17743 <h6 data-parsoid='{}'>=foo=</h6>
17747 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
17752 <nowiki>*</nowiki>bar
17758 <nowiki>=bar=</nowiki>
17766 Headings: 3. Nested inside html with wikitext split by html tags
17770 = ='''bold'''<nowiki>foo=</nowiki> =
17772 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
17776 Headings: 4a. No escaping needed (testing just h1 and h2)
17794 = <nowiki>=</nowiki> =
17802 <h1><i>=</i>foo=</h1>
17803 <h1><span typeof="mw:Nowiki">=</span></h1>
17807 Headings: 4b. No escaping needed (inside p-tags)
17822 Headings: 5. Empty headings
17834 =====<nowiki/>=====
17836 ======<nowiki/>======
17847 Headings: 6a. Heading chars in SOL context (with trailing spaces)
17851 <nowiki>=a=</nowiki>
17853 <nowiki>=a=</nowiki>
17855 <nowiki>=a=</nowiki>
17857 <nowiki>=a=</nowiki>
17866 Headings: 6b. Heading chars in SOL context (with trailing newlines)
17894 Headings: 6c. Heading chars in SOL context (leading newline break)
17899 <nowiki>=b=</nowiki>
17906 Headings: 6d. Heading chars in SOL context (with interspersed comments)
17910 <!--c0--><nowiki>=a=</nowiki>
17912 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
17914 <p><!--c0-->=a=</p>
17915 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
17919 Headings: 6d. Heading chars in SOL context (No escaping needed)
17928 #### --------------- Lists ---------------
17929 #### 0. Outside nests (*foo, etc.)
17930 #### 1. Nested inside html <ul><li>*foo</li></ul>
17931 #### 2. Inside definition lists
17932 #### 3. Only bullets at start should be escaped
17933 #### 4. No escapes needed
17934 #### 5. No unnecessary escapes
17935 #### 6. Escape bullets in SOL position
17936 #### 7. Escape bullets in a multi-line context
17937 #### ----------------------------------------
17940 Lists: 0. Outside nests
17942 <nowiki>*</nowiki>foo
17944 <nowiki>#</nowiki>foo
17952 Lists: 1. Nested inside html
17954 *<nowiki>*foo</nowiki>
17956 *<nowiki>#foo</nowiki>
17958 *<nowiki>:foo</nowiki>
17960 *<nowiki>;foo</nowiki>
17962 #<nowiki>*foo</nowiki>
17964 #<nowiki>#foo</nowiki>
17966 #<nowiki>:foo</nowiki>
17968 #<nowiki>;foo</nowiki>
18006 Lists: 2. Inside definition lists
18008 ;<nowiki>;foo</nowiki>
18010 ;<nowiki>:foo</nowiki>
18012 ;<nowiki>:foo</nowiki>
18015 :<nowiki>:foo</nowiki>
18039 Lists: 3. Only bullets at start of text should be escaped
18041 *<nowiki>*foo*bar</nowiki>
18043 *<nowiki>*foo</nowiki>''it''*bar
18050 <li>*foo<i>it</i>*bar
18057 Lists: 4. No escapes needed
18078 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
18082 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
18088 Lists: 5. No unnecessary escapes
18090 * bar <span><nowiki>[[foo]]</nowiki></span>
18092 *=bar <span><nowiki>[[foo]]</nowiki></span>
18094 *[[bar <span><nowiki>[[foo]]</nowiki></span>
18096 *]]bar <span><nowiki>[[foo]]</nowiki></span>
18098 *=bar <span>foo]]</span>=
18103 <li> bar <span>[[foo]]</span>
18107 <li>=bar <span>[[foo]]</span>
18111 <li>[[bar <span>[[foo]]</span>
18115 <li>]]bar <span>[[foo]]</span>
18119 <li>=bar <span>foo]]</span>=
18130 Lists: 6. Escape bullets in SOL position
18134 <!--cmt--><nowiki>*foo</nowiki>
18136 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
18140 Lists: 7. Escape bullets in a multi-line context
18143 <nowiki>*</nowiki>b
18150 #### --------------- HRs ---------------
18151 #### 1. Single line
18152 #### -----------------------------------
18155 HRs: 1. Single line
18159 ----<nowiki>----</nowiki>
18163 <hr><span typeof="mw:Nowiki">----</span>
18168 #### --------------- Tables ---------------
18169 #### 1a. Simple example
18170 #### 1b. No escaping needed (!foo)
18171 #### 1c. No escaping needed (|foo)
18172 #### 1d. No escaping needed (|}foo)
18174 #### 2a. Nested in td (<td>foo|bar</td>)
18175 #### 2b. Nested in td (<td>foo||bar</td>)
18176 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
18178 #### 3a. Nested in th (<th>foo!bar</th>)
18179 #### 3b. Nested in th (<th>foo!!bar</th>)
18180 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
18184 #### 4c. No escaping needed
18185 #### --------------------------------------
18188 Tables: 1a. Simple example
18199 Tables: 1b. No escaping needed
18208 Tables: 1c. No escaping needed
18217 Tables: 1d. No escaping needed
18226 Tables: 2a. Nested in td
18231 |<nowiki>foo|bar</nowiki>
18233 |x<div><nowiki>a|b</nowiki></div>
18237 <td>foo|bar</td></tr>
18238 <tr><td>x<div>a|b</div></td>
18243 Tables: 2b. Nested in td
18248 |<nowiki>foo||bar</nowiki>
18249 |''it''<nowiki>foo||bar</nowiki>
18253 <td><span typeof="mw:Nowiki">foo||bar</span></td>
18254 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
18258 Tables: 2c. Nested in td -- no escaping needed
18266 <table><tbody><tr><td>foo!!bar
18267 </td></tr></tbody></table>
18272 Tables: 3a. Nested in th
18280 <table><tbody><tr><th>foo!bar
18281 </th></tr></tbody></table>
18286 Tables: 3b. Nested in th
18291 !<nowiki>foo!!bar</nowiki>
18295 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
18300 Tables: 3c. Nested in th -- no escaping needed
18305 !<nowiki>foo||bar</nowiki>
18309 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
18313 Tables: 4a. Escape -
18320 |<nowiki>-bar</nowiki>
18324 <tr><th>-bar</th></tr>
18326 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
18330 Tables: 4b. Escape +
18337 |<nowiki>+bar</nowiki>
18341 <tr><th>+bar</th></tr>
18343 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
18347 Tables: 4c. No escaping needed
18368 <tr><td>foo-bar</td><td>foo+bar</td></tr>
18369 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
18375 <div>a|b</div></td>
18380 Tables: 4d. No escaping needed
18391 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
18392 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
18393 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
18398 Tables: Digest broken attributes on table and tr tag
18414 #### --------------- Links ----------------
18415 #### 1. Quote marks in link text
18416 #### 2. Wikilinks: Escapes needed
18417 #### 3. Wikilinks: No escapes needed
18418 #### 4. Extlinks: Escapes needed
18419 #### 5. Extlinks: No escapes needed
18420 #### --------------------------------------
18422 Links 1. Quote marks in link text
18426 [[Foo|Foo<nowiki>''boo''</nowiki>]]
18428 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
18432 Links 2. WikiLinks: Escapes needed
18437 [[Foo|<nowiki>Foobar]</nowiki>]]
18438 [[Foo|x [Foobar] x]]
18439 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
18440 [[Foo|<nowiki>[[Bar]]</nowiki>]]
18441 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
18442 [[Foo|<nowiki>|Bar</nowiki>]]
18443 [[Foo|<nowiki>]]bar</nowiki>]]
18444 [[Foo|<nowiki>[[bar</nowiki>]]
18445 [[Foo|<nowiki>x [[ y</nowiki>]]
18446 [[Foo|<nowiki>x ]] y</nowiki>]]
18447 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
18449 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
18450 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
18451 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
18452 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
18453 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
18454 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
18455 <a href="Foo" rel="mw:WikiLink">|Bar</a>
18456 <a href="Foo" rel="mw:WikiLink">]]bar</a>
18457 <a href="Foo" rel="mw:WikiLink">[[bar</a>
18458 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
18459 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
18460 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
18464 Links 3. WikiLinks: No escapes needed
18471 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
18472 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
18476 Links 4. ExtLinks: Escapes needed
18480 [http://google.com <nowiki>[google]</nowiki>]
18481 [http://google.com <nowiki>google]</nowiki>]
18483 <nowiki>[http://google.com]</nowiki>
18485 <nowiki>[http://google.com google]</nowiki>
18488 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
18489 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
18490 <p>[http://google.com]</p>
18491 <p>[http://google.com google]</p>
18495 Links 5. ExtLinks: No escapes needed
18499 [http://google.com [google]
18501 <a href="http://google.com" rel="mw:ExtLink">[google</a>
18504 #### --------------- Quotes ---------------
18505 #### 1. Quotes inside <b> and <i>
18506 #### 2. Link fragments separated by <i> and <b> tags
18507 #### 3. Link fragments inside <i> and <b>
18508 #### 4. No escaping needed
18509 #### --------------------------------------
18511 1. Quotes inside <b> and <i>
18513 parsoid=html2wt,wt2wt
18515 ''<nowiki>'foo'</nowiki>''
18516 ''<nowiki>''foo''</nowiki>''
18517 ''<nowiki>'''foo'''</nowiki>''
18519 '''<nowiki>'foo'</nowiki>'''
18520 '''<nowiki>''foo''</nowiki>'''
18521 '''<nowiki>'''foo'''</nowiki>'''
18522 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
18523 '''foo'''<nowiki/>'s
18526 '<nowiki/>''foo''<nowiki/>'
18528 '''foo'''<nowiki/>'
18529 '<nowiki/>'''foo'''<nowiki/>'
18530 ''fools'<span> errand</span>''
18531 ''<span>fool</span>'s errand''
18540 <b>foo'<i>bar'</i>baz</b>
18548 <i>fools'<span> errand</span></i>
18549 <i><span>fool</span>'s errand</i>
18553 2. Link fragments separated by <i> and <b> tags
18555 [[''foo''<nowiki>hello]]</nowiki>
18557 [['''foo'''<nowiki>hello]]</nowiki>
18559 <p>[[<i>foo</i>hello]]
18560 </p><p>[[<b>foo</b>hello]]
18565 3. Link fragments inside <i> and <b>
18566 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
18567 this is one of the shortcomings of this format)
18569 ''[[foo''<nowiki>]]</nowiki>
18571 '''[[foo'''<nowiki>]]</nowiki>
18574 </p><p><b>[[foo</b>]]
18579 4. No escaping needed
18581 '<span>''bar''</span>'
18582 '<span>'''bar'''</span>'
18584 <p>'<span><i>bar</i></span>'
18585 '<span><b>bar</b></span>'
18589 #### ----------- Paragraphs ---------------
18590 #### 1. No unnecessary escapes
18591 #### --------------------------------------
18594 1. No unnecessary escapes
18596 bar <span><nowiki>[[foo]]</nowiki></span>
18598 =bar <span><nowiki>[[foo]]</nowiki></span>
18600 [[bar <span><nowiki>[[foo]]</nowiki></span>
18602 ]]bar <span><nowiki>[[foo]]</nowiki></span>
18604 =bar <span>foo]]</span><nowiki>=</nowiki>
18606 <p>bar <span>[[foo]]</span>
18607 </p><p>=bar <span>[[foo]]</span>
18608 </p><p>[[bar <span>[[foo]]</span>
18609 </p><p>]]bar <span>[[foo]]</span>
18610 </p><p>=bar <span>foo]]</span>=
18614 #### ----------------------- PRE --------------------------
18615 #### 1. Leading whitespace in SOL context should be escaped
18616 #### ------------------------------------------------------
18618 1. Leading whitespace in SOL context should be escaped
18622 <nowiki> </nowiki>a
18624 <nowiki> </nowiki> a
18626 <nowiki> </nowiki>a(tab)
18628 <nowiki> </nowiki> a
18630 <nowiki> </nowiki> a
18633 <nowiki> </nowiki>b
18636 <nowiki> </nowiki>b
18639 <nowiki> </nowiki> b
18645 <p><!--cmt--> a</p>
18654 #### --------------- Behavior Switches --------------------
18656 1. Valid behavior switches should be escaped
18660 <nowiki>__TOC__</nowiki>
18666 2. Invalid behavior switches should not be escaped
18677 #### --------------- HTML tags ---------------
18680 #### 3. multi-line html tag
18681 #### 4. extension tags
18682 #### -----------------------------------------
18688 <a href="http://google.com">google</a>
18690 <a href="http://google.com">google</a>
18696 <nowiki><div>foo</div>
18697 <div style="color:red">foo</div></nowiki>
18699 <p><div>foo</div>
18700 <div style="color:red">foo</div>
18705 3. multi-line html tag
18720 <nowiki><ref>foo</ref></nowiki>
18722 <nowiki><ref>bar</nowiki>
18724 baz<nowiki></ref></nowiki>
18726 <p><ref>foo</ref>
18727 </p><p><ref>bar
18728 </p><p>baz</ref>
18732 #### --------------- Others ---------------
18736 <nowiki>foo</nowiki>
18738 <p><nowiki>foo</nowiki>
18742 ## The quote-char in the input is necessary for triggering the bug
18744 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
18746 parsoid=wt2wt,html2wt
18755 Tag-like HTML structures are passed through as text
18777 </p><p>1<d e>f
18782 # This was a bug in the PHP parser (see bug 17663 and its dups,
18783 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
18785 Tag names followed by punctuation should not be recognized as tags
18789 <p><s.ome> text
18794 HTML tag with necessary entities in attributes
18796 <span title="&amp;">foo</span>
18798 <p><span title="&amp;">foo</span>
18803 HTML tag with 'unnecessary' entity encoding in attributes
18805 <span title="&">foo</span>
18807 <p><span title="&">foo</span>
18812 HTML tag with broken attribute value quoting
18814 <span title="Hello world>Foo</span>
18816 <p><span>Foo</span>
18821 Parsoid-only: HTML tag with broken attribute value quoting
18825 <span title="Hello world>Foo</span>
18827 <p><span title="Hello world">Foo</span>
18832 Table with broken attribute value quoting
18835 | title="Hello world|Foo
18846 Table with broken attribute value quoting on consecutive lines
18849 | title="Hello world|Foo
18850 | style="color:red|Bar
18863 Parsoid-only: Table with broken attribute value quoting on consecutive lines
18868 | title="Hello world|Foo
18869 | style="color:red|Bar
18874 <td title="Hello world">Foo
18875 </td><td style="color: red">Bar
18876 </td></tr></tbody></table>
18881 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18891 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18901 Accept empty td cell attribute
18904 | align="center" | foo || |
18909 <td align="center"> foo </td>
18916 Non-empty attributes in th-cells
18919 ! Foo !! style="color: red" | Bar
18925 <th style="color: red"> Bar
18931 Accept empty attributes in th-cells
18946 Empty table rows go away
18967 ### Parsoid-centric tests for testing RTing of inter-element separators
18968 ### Edge cases not tested by existing parser tests and specific to
18969 ### Parsoid-specific serialization strategies.
18973 RT-ed inter-element separators should be valid separators
18986 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
18987 (Parsoid-only since PHP parser relies on Tidy for correct output)
19003 Empty TD followed by TD with tpl-generated attribute
19008 |{{echo|style='color:red'}}|foo
19022 Indented table with an empty td
19041 Empty TR followed by a template-generated TR
19042 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
19048 {{echo|<tr><td>foo</td></tr>}}
19054 <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}}]}'>
19059 ## PHP and parsoid output differ for this, and since this is primarily
19060 ## for testing Parsoid's serializer, marking this Parsoid only
19062 Empty TR followed by mixed-ws-comment line should RT correctly
19078 <!--c--> </tr><!--d-->
19084 Multi-line image caption generated by templates with/without trailing newlines
19088 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
19089 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
19091 <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>
19092 <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>
19096 ## PHP emits broken html for this, and since this is primarily
19097 ## a Parsoid serializer test, marking this Parsoid only
19099 Improperly nested inline or quotes tags with whitespace in between
19103 <span> <s>x</span> </s>
19106 <p><span> <s>x</s></span><s> </s>
19107 <b> <i>x</i></b><i> </i>
19112 Encapsulate protected attributes from wt
19116 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
19118 <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>
19122 ## Currently the p-wrapper is fragile in how adds / removes transformations.
19123 ## Having nested or stray pre tags results in the attempt to add duplicates,
19124 ## causing an assertion fail. This test tries to prevent that situation.
19126 Ensure ParagraphWrapper can deal with stray closing pre tags
19136 1. Ensure fostered text content is wrapped in spans
19140 <table>hi</table><table>ho</table>
19149 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
19151 parsoid=wt2html,wt2wt
19158 <span> || ||</span>
19167 Encapsulation properly handles null DSR information from foster box
19169 parsoid=wt2html,wt2wt
19171 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
19173 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19176 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
19180 <td>bar</td></tr></tbody></table>
19184 1. Encapsulate foster-parented transclusion content
19186 parsoid=wt2wt,wt2html
19188 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
19190 <span typeof="mw:Transclusion" data-mw="{"parts":["
19191 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
19193 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
19197 <td>bar</td></tr></tbody></table>
19201 2. Encapsulate foster-parented transclusion content
19203 parsoid=wt2wt,wt2html
19205 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
19207 <div typeof="mw:Transclusion" data-mw="{"parts":["
19209 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
19211 <td>bar</td></tr></table>"]}">foo</div>
19215 <td>bar</td></tr></tbody></table>
19219 3. Encapsulate foster-parented transclusion content
19221 parsoid=wt2wt,wt2html
19223 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19225 <div typeof="mw:Transclusion" data-mw="{"parts":["
19228 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19230 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19235 <td>bar</td></tr></tbody></table>
19239 4. Encapsulate foster-parented transclusion content
19241 parsoid=wt2wt,wt2html
19243 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19245 <div typeof="mw:Transclusion" data-mw="{"parts":["
19248 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19250 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19255 <td>bar</td></tr></tbody></table>
19259 5. Encapsulate foster-parented transclusion content
19261 parsoid=wt2wt,wt2html
19263 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
19265 <span typeof="mw:Transclusion" data-mw="{"parts":["
19270 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
19276 <p>foo</p></div></td></tr></tbody></table>
19280 6. Encapsulate foster-parented transclusion content
19282 parsoid=wt2wt,wt2html
19284 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
19286 <span typeof="mw:Transclusion" data-mw="{"parts":["
19291 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
19297 <p>foo</p></div></td></tr></tbody></table>
19302 7. Encapsulate foster-parented transclusion content
19304 parsoid=wt2wt,wt2html
19306 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
19308 <p typeof="mw:Transclusion" data-mw="{"parts":["
19309 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19310 <p>foo</p>"}},"i":0}},"
19311 <td>bar</td></table>"]}">foo</p>
19315 <td>bar</td></tr></tbody></table>
19319 8. Encapsulate foster-parented transclusion content
19321 parsoid=wt2wt,wt2html
19324 }}{|{{echo|style='color:red'}}
19329 <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>
19333 <td>b</td></tr></tbody></table>
19337 Table in fosterable position
19339 parsoid=wt2html,wt2wt
19348 <div about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"OpenTable","href":"./Template:OpenTable"},"params":{},"i":0}},"\n<div>"]}' data-parsoid='{"stx":"html","autoInsertedEnd":true,"pi":[[]]}'></div><span about="#mwt1" data-parsoid="{}">
19350 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
19357 Support <object> element with .data attribute
19361 <object data="test.swf"></object>
19363 <object data="test.swf"></object>
19366 # -----------------------------------------------------------------
19367 # The following section of tests are primarily to spec requirements
19368 # around serialization of new/edited content.
19370 # All these tests are marked Parsoid html2wt and html2html only
19371 # ----------------------------------------------------------------
19374 Image: Modifying size of an image (1)
19378 [[Image:Foobar.jpg|200x200px]]
19380 <p><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"230x230px"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/230px-Foobar.jpg" height="22" width="200" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"26","width":"230"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a></span></p>
19384 Image: Modifying size of an image (2)
19388 [[Image:Foobar.jpg|500x500px]]
19390 <p><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"230x230px"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/230px-Foobar.jpg" height="100" width="500" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"26","width":"230"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a></span></p>
19393 # note that the data-parsoid value conflicts with the figure's class
19395 Image: Modifying alignment of an image (bug 48665)
19399 [[Image:Foobar.jpg|thumb|caption|left]]
19401 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"caption"},{"ck":"right","ak":"right"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"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" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
19405 Image: Modifying valign of an image (bug 49221)
19409 [[File:Foobar.jpg|20px|text-top]]
19411 <p><span class="mw-valign-text-top" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"20px"},{"ck":"text_top","ak":"text-top"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg" height="2" width="20" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"2","width":"20"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
19415 Image: Modifying alt attribute of an image (bug 56400)
19419 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
19421 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"some caption"},{"ck":"alt","ak":"alt=some alternate text"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img alt="some alternate edited text" resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180" data-parsoid='{"a":{"alt":"some alternate edited text","resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"alt":"alt=some alternate edited text","resource":"File:Foobar.jpg"}}'/></a><figcaption>some caption</figcaption></figure>
19425 Image: Modifying caption of an image
19429 [[Image:Foobar.jpg|thumb|new caption]]
19431 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"original caption"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"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" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a><figcaption>new caption</figcaption></figure>
19435 Image: empty alt attribute (bug 48924)
19439 [[File:Foobar.jpg|thumb|alt=|bar]]
19441 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"alt","ak":"alt="},{"ck":"caption","ak":"bar"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img alt="" resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"alt":"","resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"alt":"alt=","resource":"File:Foobar.jpg"}}'/></a><figcaption>bar</figcaption></figure>
19445 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
19450 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
19452 #<figure class="mw-default-size mw-halign-right" typeof="mw:Image/Thumb"><a href="Imagen:Foobar.jpg"><img resource="./Imagen:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="20" width="180"/></a></figure>
19456 Image: Block level image should have \n before and after
19461 [[File:Foobar.jpg|right|thumb|150x150px]]
19464 <p>123</p><figure typeof="mw:Image/Thumb" class="mw-halign-right"><a href="./File:Foobar.png"><img src="http://192.168.142.128/mw/images/thumb/b/bc/Foobar.png/131px-Foobar.png" width="131" height="150" resource="./File:Foobar.png" data-parsoid='{"a":{"resource":"./File:Foobar.png","width":"131"},"sa":{"resource":"File:Foobar.png","width":"150"}}'></a></figure><p>456</p>
19468 Image: New block level image should have \n before and after (existing
19474 [[File:Foobar.jpg|right|thumb|150x150px]]
19477 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
19478 <figure class="mw-halign-right" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"right","ak":"right"},{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"150x150px"}],"dsr":[4,45,2,2]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"dsr":[6,43,null,null]}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/150px-Foobar.jpg" height="17" width="150" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"17","width":"150"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></figure>
19479 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
19483 Images: upright option (parsoid)
19487 [[File:Foobar.jpg|thumb|upright|caption]]
19488 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
19489 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
19491 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="19" width="170"/></a><figcaption>caption</figcaption></figure><figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="19" width="170"/></a><figcaption>caption</figcaption></figure><figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="57" width="500"/></a><figcaption>caption</figcaption></figure>
19495 Images: upright option is ignored on inline and frame images (parsoid)
19499 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
19501 <p><span typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="57" width="500"/></a></span></p>
19505 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
19512 <li><p>foo</p></li>
19517 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
19523 <ul> <li>foo</li></ul>
19527 Don't strip leading whitespace when handling indent-pre suppressing tags
19535 '''This is very bold of you!'''
19539 indented cell (no pre-wrapping!)
19546 <tr><td> indented row</td></tr>
19549 <b>This is very bold of you!</b>
19552 indented cell (no pre-wrapping!)
19560 Strip leading whitespace when handling indent-pre inducing tags
19592 Lists: Add space after bullets
19598 * <span> baz</span>
19603 <li><span> baz</span></li>
19608 Lists: Dont insert newlines in a serialized list item.
19615 <ul><li>a<br>b</li><li>c</li></ul>
19619 Headings: Add space before/after == (Bug 51744)
19629 == <span> baz</span> ==
19634 <h2><span> baz</span></h2>
19638 Parsoid: Serialize positional parameters with = in them as named parameter
19644 {{echo|1 = f=oo|2 = bar}}
19646 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19647 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19648 {{echo|<nowiki>f=oo</nowiki>|bar}}
19650 <p about="#mwt1" typeof="mw:Transclusion"
19651 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
19653 <p about="#mwt1" typeof="mw:Transclusion"
19654 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
19656 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19657 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19658 <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>
19662 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
19678 <div>a<p>b</p></div>
19686 #-----------------------------
19687 # I/B quote minimization tests
19688 #-----------------------------
19691 1. I/B quote minimization: wikitext-only tags should be combined
19711 <p><i>A</i><i>B</i></p>
19712 <p><b>A</b><b>B</b></p>
19713 <p><i>A</i><b><i>B</i></b></p>
19714 <p><b>A</b><i><b>B</b></i></p>
19715 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
19716 <p><i><b>A</b></i><i><b>B</b></i></p>
19717 <p><i><b>A</b></i><b><i>B</i></b></p>
19718 <p><b><i>A</i></b><i><b>B</b></i></p>
19722 2. I/B quote minimization: wikitext and html tags should not be combined
19728 ''A'''''<i>B</i>'''
19730 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
19731 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
19735 3. I/B quote minimization: templated content stops minimization
19739 ''A''{{echo|''B''}}
19741 ''A''{{echo|'''''B'''''}}
19743 <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>
19744 <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>
19748 4. I/B quote minimization: new content should be mimimized with adjacent old content
19758 <p><i>A</i><i data-parsoid='{}'>B</i></p>
19759 <p><b data-parsoid='{}'>A</b><b>B</b></p>
19760 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
19763 #------------------------------------
19764 # End of I/B quote minimization tests
19765 #------------------------------------
19768 Bug 54262: New entities
19774 <span typeof="mw:Entity">foo</span>
19777 ## Note that there is no wikitext output for 'unknownproperty' ##
19778 ## Unknown magic words are silently dropped ##
19793 __NOCONTENTCONVERT__
19795 <meta property='mw:PageProp/toc' />
19796 <meta property='mw:PageProp/notoc' />
19797 <meta property='mw:PageProp/forcetoc' />
19798 <meta property='mw:PageProp/index' />
19799 <meta property='mw:PageProp/noindex' />
19800 <meta property='mw:PageProp/nogallery' />
19801 <meta property='mw:PageProp/noeditsection' />
19802 <meta property='mw:PageProp/notitleconvert' />
19803 <meta property='mw:PageProp/nocontentconvert' />
19804 <meta property='mw:PageProp/unknownproperty' />
19808 Consecutive <pre>s should not get merged
19810 parsoid=html2wt,html2html
19826 <pre>a</pre><pre>b</pre>
19840 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
19844 [[Special:BookSources/1234567890|ISBN 1234567895]]
19846 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
19850 Edited RFC links not serializable as RFC links should serialize as extlinks
19854 [//tools.ietf.org/html/rfc123 New RFC]
19856 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
19860 Edited PMID links not serializable as PMID links should serialize as extlinks
19864 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
19866 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
19870 Edited Redirect link should emit a non-piped wikitext link
19876 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
19879 # -----------------------------------------------------------------
19880 # End of section for Parsoid-only html2wt tests for serialization
19882 # -----------------------------------------------------------------
19889 Try for 100% code coverage