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 unless it's
10174 # a scalable format.
10175 # 2. Framed images ignore width; always render at default size.
10176 # If given a height, they respect height but continue to ignore width.
10177 # 3. "Unspecified format" and border are the only types which can be
10181 Image: "unspecified format" and border enlarge
10183 parsoid=wt2html,wt2wt,html2html
10185 [[File:Foobar.jpg|2000px]]
10187 [[File:Foobar.jpg|border|2000px]]
10189 <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>
10190 </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>
10193 <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>
10194 <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>
10198 Image: "unspecified format" and border reduce
10200 parsoid=wt2html,wt2wt,html2html
10202 [[File:Foobar.jpg|1000px]]
10204 [[File:Foobar.jpg|border|1000px]]
10206 <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>
10207 </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>
10210 <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>
10211 <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>
10215 Image: thumbs reduce
10217 parsoid=wt2html,wt2wt,html2html
10219 [[File:Foobar.jpg|thumb|50px]]
10221 <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>
10224 <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>
10228 Image: bitmap thumbs can't be enlarged past original size, but vector can.
10230 parsoid=wt2html,wt2wt,html2html
10232 [[File:Foobar.jpg|thumb|2000px]]
10234 [[File:Foobar.svg|thumb|2000px]]
10236 <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>
10237 <div class="thumb tright"><div class="thumbinner" style="width:2002px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="Foobar.svg" src="http://example.com/images/thumb/f/ff/Foobar.svg/2000px-Foobar.svg.png" width="2000" height="1500" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/3000px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/4000px-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></div></div></div>
10240 <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>
10241 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="1500" width="2000"/></a></figure>
10245 Image: frameless can reduce in size
10247 parsoid=wt2html,wt2wt,html2html
10249 [[File:Foobar.jpg|frameless|50px]]
10251 <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>
10254 <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>
10258 Image: bitmap frameless can't be enlarged past original size, but vector can
10260 parsoid=wt2html,wt2wt,html2html
10262 [[File:Foobar.jpg|frameless|2000px]]
10264 [[File:Foobar.svg|frameless|2000px]]
10266 <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>
10267 </p><p><a href="/wiki/File:Foobar.svg" class="image"><img alt="Foobar.svg" src="http://example.com/images/thumb/f/ff/Foobar.svg/2000px-Foobar.svg.png" width="2000" height="1500" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/3000px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/4000px-Foobar.svg.png 2x" /></a>
10270 <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>
10271 <p><span typeof="mw:Image/Frameless"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="1500" width="2000"/></a></span></p>
10275 Image: framed images ignore size if only width is given
10277 parsoid=wt2html,wt2wt,html2html
10279 [[File:Foobar.jpg|frame]]
10281 [[File:Foobar.jpg|frame|50px]]
10283 [[File:Foobar.jpg|frame|2000px]]
10285 <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>
10286 <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>
10287 <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>
10290 <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>
10294 Image: framed images respect size if given a height, but ignore width.
10296 [[File:Foobar.jpg|frame|50x50px]]
10298 <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>
10301 <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>
10304 ###################
10307 Link to image page- image page normally doesn't exists, hence edit link
10308 Add test with existing image page
10309 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
10313 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
10318 bug 18784 Link to non-existent image page with caption should use caption as link text
10320 [[:Image:test|caption]]
10322 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
10327 Frameless image caption with a free URL
10329 [[File:Foobar.jpg|http://example.com]]
10331 <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>
10334 <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>
10338 Thumbnail image caption with a free URL
10342 [[File:Foobar.jpg|thumb|http://example.com]]
10344 <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>
10347 <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>
10351 Thumbnail image caption with a free URL and explicit alt
10354 parsoid=wt2html,wt2wt,html2html
10356 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
10358 <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>
10361 <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>
10365 SVG thumbnails with no language set
10368 [[File:Foobar.svg|thumb|caption]]
10370 <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>
10373 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="165" width="220"/></a><figcaption>caption</figcaption></figure>
10377 SVG thumbnails with language de
10379 parsoid=wt2html,wt2wt,html2html
10381 [[File:Foobar.svg|thumb|caption|lang=de]]
10383 <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>
10386 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" lang="de" height="165" width="220"/></a><figcaption>caption</figcaption></figure>
10390 SVG thumbnails with invalid language code
10392 parsoid=wt2html,wt2wt,html2html
10394 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
10396 <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>
10399 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="165" width="220"/></a><figcaption>lang=invalid.language.code</figcaption></figure>
10403 BUG 1887: A ISBN with a thumbnail
10405 [[File:Foobar.jpg|thumb|ISBN 1235467890]]
10407 <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>
10410 <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 href="Special:BookSources/1235467890" rel="mw:ExtLink">ISBN 1235467890</a></figcaption></figure>
10414 BUG 1887: A RFC with a thumbnail
10416 [[File:Foobar.jpg|thumb|This is RFC 12354]]
10418 <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>
10421 <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>This is <a href="//tools.ietf.org/html/rfc12354" rel="mw:ExtLink">RFC 12354</a></figcaption></figure>
10425 BUG 1887: A mailto link with a thumbnail
10427 [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]]
10429 <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>
10432 <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>Please <a rel="mw:ExtLink" href="mailto:nobody@example.com">mailto:nobody@example.com</a></figcaption></figure>
10435 # Pending resolution to bug 368
10437 BUG 648: Frameless image caption with a link
10439 [[File:Foobar.jpg|text with a [[link]] in it]]
10441 <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>
10444 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[link]] in it"}'><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>
10448 BUG 648: Frameless image caption with a link (suffix)
10450 [[File:Foobar.jpg|text with a [[link]]foo in it]]
10452 <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>
10455 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[link]]foo in it"}'><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>
10459 BUG 648: Frameless image caption with an interwiki link
10461 [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]
10463 <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>
10466 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[MeatBall:Link]] in it"}'><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>
10470 BUG 648: Frameless image caption with a piped interwiki link
10472 [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
10474 <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>
10477 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[MeatBall:Link|link]] in it"}'><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>
10481 Escape HTML special chars in image alt text
10483 [[File:Foobar.jpg|& < > "]]
10485 <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>
10488 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"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>
10492 BUG 499: Alt text should have Ӓ, not &1234;
10494 [[File:Foobar.jpg|♀]]
10496 <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>
10499 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"&#9792;"}'><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>
10503 Broken image caption with link
10505 parsoid=wt2html,wt2wt,html2html
10507 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
10509 <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.
10512 <p>[[Image:Foobar.jpg|thumb|This is a broken caption. But <a rel="mw:WikiLink" href="Main_Page">this</a> is just an ordinary link.</p>
10516 Image caption containing another image
10518 [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]]
10520 <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="/wiki/File:Thumb.png" class="image" title="image"><img alt="image" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" /></a> inside it!</div></div></div>
10523 <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>This is a caption with another <span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"image"}'><a href="File:Thumb.png"><img resource="./File:Thumb.png" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a></span> inside it!</figcaption></figure>
10527 Image: caption containing a newline
10529 [[File:Foobar.jpg|This
10532 <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>
10535 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"This\n*is some text"}'><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>
10539 Image: caption containing leading space
10540 (The leading space should not trigger nowiki escaping in wt2wt mode)
10542 [[File:Foobar.jpg|thumb| bar]]
10544 <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>
10547 <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> bar</figcaption></figure>
10551 Image: caption containing a table
10553 parsoid=wt2html,wt2wt,html2html
10555 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
10561 and some more text.]]
10563 <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>
10566 <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
10569 <tr><th>Foo </th><th>Bar</th></tr>
10572 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
10576 Bug 3090: External links other than http: in image captions
10578 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
10580 <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>
10583 <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>
10589 parsoid=wt2html,wt2wt,html2html
10591 [[Image:foobar.jpg|a|class=b]]
10593 <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>
10596 <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>
10600 Localized image handling (1).
10602 parsoid=wt2html,wt2wt,html2html
10605 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10607 <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>
10610 <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>
10614 Localized image handling (2).
10617 parsoid=wt2html,wt2wt,html2html
10620 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10622 <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>
10625 <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>
10629 "border", "frameless" and "class" attributes on an image.
10632 parsoid=wt2html,wt2wt,html2html
10634 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
10636 <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>
10639 <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>
10642 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
10644 Invalid image attributes (bug 62500)
10647 parsoid=wt2html,wt2wt,html2html
10649 [[File:Foobar.jpg|thumb|float|left|caption]]
10651 [[File:Foobar.jpg|thumb|righ|caption]]
10653 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
10655 <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>
10656 <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>
10657 <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>
10660 <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>
10666 #REDIRECT [[File:Barfoo.jpg]]
10672 [[Image:Barfoo.jpg]]
10674 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
10679 Missing image with uploads disabled
10683 [[Image:Foobaz.jpg]]
10685 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
10689 # Parsoid-specific testing for images
10690 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10691 # Currently imperfect due to a flaw in the Parsoid testrunner
10693 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
10697 Parsoid-specific image handling - simple image with size and middle alignment
10699 [[File:Foobar.jpg|middle|50px]]
10701 <p><span class="mw-valign-middle" typeof="mw:Image">
10702 <a href="File:Foobar.jpg">
10703 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10710 Parsoid-specific image handling - simple image with size, middle alignment,
10711 non-standard namespace alias
10713 parsoid=wt2wt,wt2html,html2html
10715 [[Image:Foobar.jpg|middle|50px]]
10717 <p><span class="mw-valign-middle" typeof="mw:Image">
10718 <a href="File:Foobar.jpg">
10719 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10726 Parsoid-specific image handling - simple image with size and middle alignment
10729 [[File:Foobar.jpg|50px|middle]]
10731 <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>
10735 Parsoid-specific image handling - simple image with size and middle alignment
10736 and non-standard namespace name
10738 parsoid=wt2html,wt2wt,html2html
10740 [[Image:Foobar.jpg|50px|middle]]
10742 <p><span class="mw-valign-middle" typeof="mw:Image">
10743 <a href="File:Foobar.jpg">
10744 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10751 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10753 [[File:Foobar.jpg|500x10px|baseline|caption]]
10755 <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>
10759 Parsoid-specific image handling - simple image with border and size spec
10761 [[File:Foobar.jpg|50px|border|caption]]
10763 <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>
10767 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10769 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
10771 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10772 <a href="File:Foobar.jpg">
10773 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
10775 <figcaption>caption content</figcaption>
10780 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10783 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
10785 <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>
10789 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10791 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
10793 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10794 <a href="File:Foobar.jpg">
10795 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10797 <figcaption>caption</figcaption>
10802 Parsoid-specific image handling - thumbnail with specific size, halign,
10803 valign, and caption (existing content)
10805 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10807 <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>
10811 Parsoid-specific image handling - framed image with specific size and caption
10813 [[Image:Foobar.jpg|frame|500x50px|caption]]
10815 <figure typeof="mw:Image/Frame">
10816 <a href="File:Foobar.jpg">
10817 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10819 <figcaption>caption</figcaption>
10824 Parsoid-specific image handling - framed image with specific size and caption
10827 [[File:Foobar.jpg|442x50px|frame|caption]]
10829 <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>
10833 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10835 [[Image:Foobar.jpg|left|baseline|frame|500x50px|caption]]
10837 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10838 <a href="File:Foobar.jpg">
10839 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10841 <figcaption>caption</figcaption>
10846 Parsoid-specific image handling - framed image with specific size, halign,
10847 valign, and caption (existing content)
10849 [[File:Foobar.jpg|442x50px|frame|left|baseline|caption]]
10851 <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>
10855 Parsoid-specific image handling - frameless image with specific size, border, and caption
10857 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
10859 <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>
10863 Parsoid-specific image handling - simple image with a formatted caption
10865 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10867 <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>"}'>
10868 <a href="File:Foobar.jpg">
10869 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10874 Parsoid-specific image handling - caption with a template in it
10876 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
10878 <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>
10882 Parsoid-specific image handling - caption with unbalanced tags in it
10884 parsoid=wt2html,wt2wt,html2html
10887 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
10891 <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>
10896 Parsoid-specific image handling - empty caption
10898 [[File:Foobar.jpg|thumb|]]
10900 <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>
10904 Parsoid-specific image handling - whitespace caption
10906 [[File:Foobar.jpg|thumb| ]]
10908 <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>
10912 Parsoid-specific image handling - lang option
10915 [[File:Foobar.svg|lang=de|caption]]
10919 <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>
10928 Subpage test/subpage
10936 subpage title=[[Subpage test]]
10940 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10945 Subpage noslash link
10947 subpage title=[[Subpage test]]
10951 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10955 # TODO: make this PHP-parser compatible!
10957 Relative subpage noslash link
10959 parsoid=wt2wt,wt2html,html2html
10960 subpage title=[[Subpage test/1/2/3/4]]
10966 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10967 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10970 # TODO: make this PHP-parser compatible!
10972 Parsoid: dot-slash prefixed wikilinks
10974 parsoid=wt2wt,wt2html,html2html
10982 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10983 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10984 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10992 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10997 BUG 561: {{/Subpage}}
10999 subpage title=[[Page]]
11003 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
11011 Category:MediaWiki User's Guide
11019 [[:Category:MediaWiki User's Guide]]
11021 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
11030 [[Category:MediaWiki User's Guide]]
11032 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11036 PAGESINCATEGORY invalid title fatal (r33546 fix)
11038 {{PAGESINCATEGORY:<bogus>}}
11045 Category with different sort key
11049 [[Category:MediaWiki User's Guide|Foo]]
11051 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11055 Category with identical sort key
11059 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11061 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11065 Category with empty sort key
11070 [[Category:MediaWiki User's Guide|]]
11072 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11076 Category with empty sort key and parentheses
11081 [[Category:Foo (bar)|]]
11083 [[Category:Foo (bar)|Foo]]
11087 Category with link tail
11092 123[[Category:Foo]]456
11094 123[[Category:Foo]]456
11098 Category with template
11103 [[Category:{{echo|Foo}}]]
11105 [[Category:{{echo|Foo}}]]
11109 Category with template in sort key
11114 [[Category:Foo|{{echo|Bar}}]]
11116 [[Category:Foo|{{echo|Bar}}]]
11120 Category with template in sort key and title
11125 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11127 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11131 Category / paragraph interactions
11133 Foo [[Category:Baz]] Bar
11135 Foo [[Category:Baz]]
11143 [[Category:Baz]] Bar
11156 {{echo|[[Category:Baz]]}}
11171 Parsoid: Serialize link to category page with colon escape
11177 [[:Category:Foo|Bar]]
11180 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
11181 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
11186 Parsoid: Link prefix/suffixes aren't applied to category links
11188 parsoid=wt2html,wt2wt,html2html
11193 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
11197 Parsoid: Serialize link to file page with colon escape
11203 [[:File:Foo.png|Bar]]
11206 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
11207 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
11212 Parsoid: Serialize a genuine category link without colon escape
11217 [[Category:Foo|Bar]]
11219 <link rel="mw:PageProp/Category" href="Category:Foo">
11220 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
11224 Parsoid: Defaultsort
11228 {{DEFAULTSORT:Foo}}
11230 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
11234 ### Inter-language links
11237 Inter-language links
11243 [[zh:食品]]
11245 es:Alimento fr:Nourriture zh:食品
11249 Duplicate interlanguage links (bug 24502)
11265 Basic section headings
11272 ===Smaller headline===
11275 <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>
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=2" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
11281 <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>
11287 Section headings with TOC
11290 === Subheadline 1 ===
11291 ===== Skipping a level =====
11292 ====== Skipping a level ======
11296 ===Another headline===
11298 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11300 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
11302 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
11304 <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>
11306 <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>
11313 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
11315 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
11321 <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>
11322 <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>
11323 <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>
11324 <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>
11325 <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>
11328 <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>
11332 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
11334 Handling of sections up to level 6 and beyond
11337 == Level 2 Heading==
11338 === Level 3 Heading===
11339 ==== Level 4 Heading====
11340 ===== Level 5 Heading=====
11341 ====== Level 6 Heading======
11342 ======= Level 7 Heading=======
11343 ======== Level 8 Heading========
11344 ========= Level 9 Heading=========
11345 ========== Level 10 Heading==========
11347 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11349 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
11351 <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>
11353 <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>
11355 <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>
11357 <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>
11359 <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>
11360 <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>
11361 <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>
11362 <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>
11363 <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>
11377 <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>
11378 <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>
11379 <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>
11380 <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>
11381 <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>
11382 <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>
11383 <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>
11384 <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>
11385 <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>
11386 <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>
11391 TOC regression (bug 9764)
11395 ==== title 1.1.1 ====
11400 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11402 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11404 <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>
11406 <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>
11409 <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>
11412 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11414 <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>
11420 <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>
11421 <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>
11422 <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>
11423 <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>
11424 <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>
11425 <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>
11430 TOC with wgMaxTocLevel=3 (bug 6204)
11436 ==== title 1.1.1 ====
11441 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11443 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11445 <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>
11446 <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>
11449 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11451 <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>
11457 <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>
11458 <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>
11459 <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>
11460 <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>
11461 <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>
11462 <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>
11467 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
11473 ====Section 1.1.1====
11474 ====Section 1.1.1.1====
11477 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11479 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
11481 <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>
11484 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
11488 <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>
11489 <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>
11490 <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>
11491 <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>
11492 <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>
11498 Resolving duplicate section names
11503 <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>
11504 <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>
11509 Resolving duplicate section names with differing case (bug 10721)
11514 <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>
11515 <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>
11527 Template with sections, __NOTOC__
11534 <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>
11535 <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>
11536 <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>
11537 <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>
11542 __NOEDITSECTION__ keyword
11548 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
11549 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
11554 Link inside a section heading
11556 ==Section with a [[Main Page|link]] in it==
11558 <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>
11563 TOC regression (bug 12077)
11570 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11572 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11574 <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>
11577 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
11581 <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>
11582 <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>
11583 <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>
11588 BUG 1219 URL next to image (good)
11590 http://example.com [[Image:foobar.jpg]]
11592 <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>
11597 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
11600 The line above must have a trailing space!
11603 But just in case it doesn't...
11605 <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>
11606 <p>The line above must have a trailing space!
11608 <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>
11609 <p>But just in case it doesn't...
11614 Header with special characters (bug 25462)
11616 The tooltips shall not show entities to the user (ie. be double escaped)
11633 <p>The tooltips shall not show entities to the user (ie. be double escaped)
11635 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11637 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
11638 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
11639 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
11640 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
11641 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
11645 <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>
11648 <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>
11651 <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>
11654 <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>
11657 <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>
11663 Headers with excess '=' characters
11664 (Are similar tests necessary beyond the 1st level?)
11668 =''italic'' heading==
11669 ==''italic'' heading=
11671 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11673 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
11674 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
11675 <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>
11676 <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>
11680 <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>
11681 <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>
11682 <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>
11683 <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>
11688 HTML headers vs TOC (bug 23393)
11689 (__NOEDITSECTION__ for clearer output, doesn't matter here)
11701 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11703 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
11705 <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>
11706 <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>
11709 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
11711 <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>
11712 <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>
11718 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
11719 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
11720 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
11721 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
11722 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
11723 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
11728 BUG 1219 URL next to image (broken)
11730 http://example.com[[Image:foobar.jpg]]
11732 <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>
11737 Bug 1186 news: in the middle of text
11739 http://en.wikinews.org/wiki/Wikinews:Workplace
11741 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
11747 Namespaced link must have a title
11756 Namespaced link must have a title (bad fragment version)
11758 [[Project:#fragment]]
11760 <p>[[Project:#fragment]]
11766 ### HTML tags and HTML attributes
11770 div with no attributes
11772 <div>HTML rocks</div>
11774 <div>HTML rocks</div>
11779 div with double-quoted attribute
11781 <div id="rock">HTML rocks</div>
11783 <div id="rock">HTML rocks</div>
11788 div with single-quoted attribute
11790 <div id='rock'>HTML rocks</div>
11792 <div id="rock">HTML rocks</div>
11797 div with unquoted attribute
11799 <div id=rock>HTML rocks</div>
11801 <div id="rock">HTML rocks</div>
11806 div with illegal double attributes
11808 <div id="a" id="b">HTML rocks</div>
11810 <div id="b">HTML rocks</div>
11814 # FIXME: produce empty string instead of "class" in the PHP parser, following
11817 div with empty attribute value, space before equals
11821 <div class =>HTML rocks</div>
11823 <div class="">HTML rocks</div>
11827 # The PHP parser escapes the opening brace to { for some reason, so
11828 # disabled this test for it.
11830 div with braces in attribute value
11834 <div title="{}">Foo</div>
11836 <div title="{}">Foo</div>
11839 # This it very inconsistent in the PHP parser: it returns
11840 # class="class" if there is a space between the name and the equal sign (see
11841 # 'div with empty attribute value, space before equals'), but strips the
11842 # attribute completely if the space is missing. We hope that not much content
11843 # depends on this, so are implementing the behavior below in Parsoid for
11844 # consistencies' sake. Disabled for the PHP parser.
11845 # FIXME: fix this behavior in the PHP parser?
11847 div with empty attribute value, no space before equals
11851 <div class=>HTML rocks</div>
11853 <div class="">HTML rocks</div>
11858 HTML multiple attributes correction
11860 <p class="error" class="awesome">Awesome!</p>
11862 <p class="awesome">Awesome!</p>
11867 Table multiple attributes correction
11870 !+ class="error" class="awesome"| status
11875 <th class="awesome"> status
11883 <DIV ID="x">HTML ROCKS</DIV>
11885 <div id="x">HTML ROCKS</div>
11890 Non-ASCII pseudo-tags are rendered as text
11899 Pseudo-tag with URL 'name' renders as url link
11901 <http://example.com/>
11903 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11908 text with amp in the middle of nowhere
11912 <p>Remember AT&T?
11917 text with character entity: eacute
11919 I always thought é was a cute letter.
11921 <p>I always thought é was a cute letter.
11926 text with entity-escaped character entity-like string: eacute
11928 I always thought &eacute; was a cute letter.
11930 <p>I always thought &eacute; was a cute letter.
11935 text with undefined character entity: xacute
11937 I always thought &xacute; was a cute letter.
11939 <p>I always thought &xacute; was a cute letter.
11943 # TODO: generalize to PHP parser?
11949 <data value="5">five</data>
11950 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11951 <mark>This highlighted text</mark>
11953 <p><data value="5">five</data>
11954 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11955 <mark>This highlighted text</mark></p>
11959 HTML tag with leading space is parsed as text
11963 <p>< div>foo< /div>
11968 ### Nesting tests (see bug 41545, 50604, 51081)
11971 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11972 # Note that html2wt is considerably more difficult if we use <b> in
11973 # the test case, instead of <big>
11975 Ensure that HTML adoption agency algorithm is properly implemented.
11977 <big>X<big>Y</big>Z</big>
11979 <p><big>X<big>Y</big>Z</big>
11983 # This was bug 41545 in the PHP parser.
11987 <kbd>X<kbd>Y</kbd>Z</kbd>
11989 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11993 # The following cases were bug 51081 in the PHP parser.
11994 # Note that there are some other nestable tags (b, i, etc) which are
11995 # not covered; see bug 51081 for discussion.
11999 <em>X<em>Y</em>Z</em>
12001 <p><em>X<em>Y</em>Z</em>
12006 Nesting of <strong>
12008 <strong>X<strong>Y</strong>Z</strong>
12010 <p><strong>X<strong>Y</strong>Z</strong>
12019 <p><q>X<q>Y</q>Z</q>
12026 <ruby>X<ruby>Y</ruby>Z</ruby>
12028 <p><ruby>X<ruby>Y</ruby>Z</ruby>
12035 <bdo>X<bdo>Y</bdo>Z</bdo>
12037 <p><bdo>X<bdo>Y</bdo>Z</bdo>
12049 [[Media:Foobar.jpg]]
12051 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
12056 Media link with text
12058 [[Media:Foobar.jpg|A neat file to look at]]
12060 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
12064 # FIXME: this is still bad HTML tag nesting
12066 Media link with nasty text
12067 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
12069 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
12071 <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>
12076 Media link to nonexistent file (bug 1702)
12078 [[Media:No such.jpg]]
12080 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
12085 Image link to nonexistent file (bug 1850 - good)
12087 [[Image:No such.jpg]]
12089 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
12094 :Image link to nonexistent file (bug 1850 - bad)
12096 [[:Image:No such.jpg]]
12098 <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>
12105 Character reference normalization in link text (bug 1938)
12107 [[Main Page|this&that]]
12109 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
12116 Test for unicode normalization
12118 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
12122 (bug 19451) Links should refer to the normalized form.
12130 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12131 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12132 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12133 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12134 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12139 Empty attribute crash test (bug 2067)
12141 <font color="">foo</font>
12143 <p><font color="">foo</font>
12148 Empty attribute crash test single-quotes (bug 2067)
12150 <font color=''>foo</font>
12152 <p><font color="">foo</font>
12157 Attribute test: equals, then nothing
12159 <font color=>foo</font>
12161 <p><font>foo</font>
12166 Attribute test: unquoted value
12168 <font color=x>foo</font>
12170 <p><font color="x">foo</font>
12175 Attribute test: unquoted but illegal value (hash)
12177 <font color=#x>foo</font>
12179 <p><font color="#x">foo</font>
12184 Attribute test: no value
12186 <font color>foo</font>
12188 <p><font color="color">foo</font>
12193 Bug 2095: link with three closing brackets
12197 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
12202 Bug 2095: link with pipe and three closing brackets
12204 [[Main Page|link]]]
12206 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
12211 Bug 2095: link with pipe and three closing brackets, version 2
12213 [[Main Page|[http://example.com/]]]
12215 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
12225 Template:Dangerous attribute
12227 " onmouseover="alert(document.cookie)
12231 Template:Dangerous style attribute
12233 border-size: expression(alert(document.cookie))
12239 <div style="float: right; {{{1}}}">Magic div</div>
12243 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
12245 <div title="{{test}}"></div>
12247 <div title="This is a test template"></div>
12252 Bug 2304: HTML attribute safety (dangerous template; 2309)
12254 <div title="{{dangerous attribute}}"></div>
12256 <div title=""></div>
12261 Bug 2304: HTML attribute safety (dangerous style template; 2309)
12263 <div style="{{dangerous style attribute}}"></div>
12265 <div style="/* insecure input */"></div>
12270 Bug 2304: HTML attribute safety (safe parameter; 2309)
12272 {{div style|width: 200px}}
12274 <div style="float: right; width: 200px">Magic div</div>
12279 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
12281 {{div style|width: expression(alert(document.cookie))}}
12283 <div style="/* insecure input */">Magic div</div>
12288 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
12290 {{div style|"><script>alert(document.cookie)</script>}}
12292 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12297 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
12299 {{div style|" ><script>alert(document.cookie)</script>}}
12301 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12306 Bug 2304: HTML attribute safety (link)
12308 <div title="[[Main Page]]"></div>
12310 <div title="[[Main Page]]"></div>
12315 Bug 2304: HTML attribute safety (italics)
12317 <div title="''foobar''"></div>
12319 <div title="''foobar''"></div>
12324 Bug 2304: HTML attribute safety (bold)
12326 <div title="'''foobar'''"></div>
12328 <div title="'''foobar'''"></div>
12334 Bug 2304: HTML attribute safety (ISBN)
12336 <div title="ISBN 1234567890"></div>
12338 <div title="ISBN 1234567890"></div>
12343 Bug 2304: HTML attribute safety (RFC)
12345 <div title="RFC 1234"></div>
12347 <div title="RFC 1234"></div>
12352 Bug 2304: HTML attribute safety (PMID)
12354 <div title="PMID 1234567890"></div>
12356 <div title="PMID 1234567890"></div>
12361 Bug 2304: HTML attribute safety (web link)
12363 <div title="http://example.com/"></div>
12365 <div title="http://example.com/"></div>
12370 Bug 2304: HTML attribute safety (named web link)
12372 <div title="[http://example.com/ link]"></div>
12374 <div title="[http://example.com/ link]"></div>
12379 Bug 3244: HTML attribute safety (extension; safe)
12381 <div style="<nowiki>background:blue</nowiki>"></div>
12383 <div style="background:blue"></div>
12388 Bug 3244: HTML attribute safety (extension; unsafe)
12390 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
12392 <div style="/* insecure input */"></div>
12396 # More MSIE fun discovered by Tom Gilder
12399 MSIE CSS safety test: spurious slash
12401 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
12403 <div style="/* insecure input */">evil</div>
12408 MSIE CSS safety test: hex code
12410 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
12412 <div style="/* insecure input */">evil</div>
12417 MSIE CSS safety test: comment in url
12419 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
12421 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
12426 MSIE CSS safety test: comment in expression
12428 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
12430 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
12435 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
12437 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
12439 <p style="/* invalid control char */">A</p>
12444 MSIE 6 CSS safety test: Fullwidth (bug 55332)
12446 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
12447 <div style="top:EXPRESSION(alert())">B</div>
12449 <p style="/* insecure input */">A</p>
12450 <div style="/* insecure input */">B</div>
12455 MSIE 6 CSS safety test: IPA extensions (bug 55332)
12457 <div style="background-image:uʀʟ(javascript:alert())">A</div>
12458 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
12460 <div style="/* insecure input */">A</div>
12461 <p style="/* insecure input */">B</p>
12466 MSIE 6 CSS safety test: sup/sub script (bug 55332)
12468 <div style="background-image:url⁽javascript:alert())">A</div>
12469 <div style="background-image:url₍javascript:alert())">B</div>
12470 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
12472 <div style="/* insecure input */">A</div>
12473 <div style="/* insecure input */">B</div>
12474 <p style="/* insecure input */">C</p>
12482 title="data:text/html,<img src=1 onerror=alert(1)>"
12483 style="-o-link:attr(title);-o-link-source:current">X</div>
12485 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
12490 MSIE 6 CSS safety test: Repetition markers (bug 55332)
12492 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
12493 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
12494 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
12495 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
12496 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
12497 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
12498 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
12500 <p style="/* insecure input */">A</p>
12501 <p style="/* insecure input */">B</p>
12502 <p style="/* insecure input */">C</p>
12503 <p style="/* insecure input */">D</p>
12504 <p style="/* insecure input */">E</p>
12505 <p style="/* insecure input */">F</p>
12506 <p style="/* insecure input */">G</p>
12511 Table attribute legitimate extension
12514 !+ style="<nowiki>color:blue</nowiki>"| status
12519 <th style="color:blue"> status
12525 Table attribute safety
12528 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
12533 <th style="/* insecure input */"> status
12539 CSS line continuation 1
12541 <div style="background-image: u\ rl(test.jpg);"></div>
12543 <div style="/* insecure input */"></div>
12548 CSS line continuation 2
12550 <div style="background-image: u\ rl(test.jpg); "></div>
12552 <div style="/* insecure input */"></div>
12563 Expansion of multi-line templates in attribute values (bug 6255)
12565 <div style="background: {{identity|#00FF00}}">-</div>
12567 <div style="background: #00FF00">-</div>
12573 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
12575 <div style="background:
12578 <div style="background: #00FF00">-</div>
12583 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
12585 <div style="background: #00FF00">-</div>
12587 <div style="background: #00FF00">-</div>
12592 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
12595 Parser hook: empty input
12608 Parser hook: empty input using terminated empty elements
12621 Parser hook: empty input using terminated empty elements (space before)
12634 Parser hook: basic input
12648 Parser hook: case insensitive
12662 Parser hook: case insensitive, redux
12675 Parser hook: nested tags
12679 <tag><tag></tag></tag>
12690 Parser hook: basic arguments
12692 <tag width=200 height = "100" depth = '50' square></tag>
12700 'square' => 'square',
12707 Parser hook: argument containing a forward slash (bug 5344)
12709 <tag filename='/tmp/bla'></tag>
12714 'filename' => '/tmp/bla',
12721 Parser hook: empty input using terminated empty elements (bug 2374)
12734 # </tag> should be output literally since there is no matching tag that begins it
12736 Parser hook: basic arguments using terminated empty elements (bug 2374)
12738 <tag width=200 height = "100" depth = '50' square/>
12748 'square' => 'square',
12757 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
12761 Parser hook: static parser hook not inside a comment
12763 <statictag>hello, world</statictag>
12764 <statictag action=flush/>
12772 Parser hook: static parser hook inside a comment
12774 <!-- <statictag>hello, world</statictag> -->
12775 <statictag action=flush/>
12781 # Nested template calls; this case was broken by Parser.php rev 1.506,
12785 Template:One-parameter
12787 (My parameter is: {{{1}}})
12791 Template:Map-one-parameter
12793 {{{{{1}}}|{{{2}}}}}
12797 Nested template calls
12799 {{Map-one-parameter|One-parameter|param}}
12801 <p>(My parameter is: param)
12810 Sanitizer: Closing of open tags
12812 <s></s><table></table>
12814 <s></s><table></table>
12819 Sanitizer: Closing of open but not closed tags
12828 Sanitizer: Closing of closed but not open tags
12837 Sanitizer: Closing of closed but not open table tags
12839 Table not started</td></tr></table>
12841 <p>Table not started</td></tr></table>
12846 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
12848 <span id="æ: v">byte</span>[[#æ: v|backlink]]
12850 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
12855 Sanitizer: Validating the contents of the id attribute (bug 4515)
12861 Something, but definitely not <br id="9" />...
12865 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
12869 <br id="foo" /><br id="foo" />
12871 Something need to be done. foo-2 ?
12875 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
12878 <meta itemprop="hello" content="world">
12879 <meta http-equiv="refresh" content="5">
12880 <meta itemprop="hello" http-equiv="refresh" content="5">
12881 <link itemprop="hello" href="{{SERVER}}">
12882 <link rel="stylesheet" href="{{SERVER}}">
12883 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
12886 <div itemscope="itemscope">
12887 <p> <meta itemprop="hello" content="world" />
12888 <meta http-equiv="refresh" content="5">
12889 <meta itemprop="hello" content="5" />
12891 <link itemprop="hello" href="http://example.org" />
12892 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
12893 <link itemprop="hello" href="http://example.org" />
12899 Language converter: output gets cut off unexpectedly (bug 5757)
12903 this bit is safe: }-
12905 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12907 then we get cut off here: }-
12909 all additional text is vanished
12911 <p>this bit is safe: }-
12912 </p><p>but if we add a conversion instance: xxx
12913 </p><p>then we get cut off here: }-
12914 </p><p>all additional text is vanished
12919 Self closed html pairs (bug 5487)
12922 <center><font id="bug" />Centered text</center>
12923 <div><font id="bug2" />In div text</div>
12925 <center><font id="bug" />Centered text</center>
12926 <div><font id="bug2" />In div text</div>
12935 Punctuation: nbsp before exclamation
12939 <p>C'est grave !
12944 Punctuation: CSS !important (bug 11874)
12946 <div style="width:50% !important">important</div>
12948 <div style="width:50% !important">important</div>
12953 Punctuation: CSS ! important (bug 11874; with space after)
12955 <div style="width:50% ! important">important</div>
12957 <div style="width:50% ! important">important</div>
12963 HTML bullet list, closed tags (bug 5497)
12978 HTML bullet list, unclosed tags (bug 5497)
12997 HTML ordered list, closed tags (bug 5497)
13012 HTML ordered list, unclosed tags (bug 5497)
13031 HTML nested bullet list, closed tags (bug 5497)
13056 HTML nested bullet list, open tags (bug 5497)
13085 HTML nested ordered list, closed tags (bug 5497)
13110 HTML nested ordered list, open tags (bug 5497)
13139 HTML ordered list item with parameters oddity
13141 <ol><li id="fragment">One</li>
13144 <ol><li id="fragment">One</li>
13150 bug 5918: autonumbering
13152 [http://first/] [http://second] [ftp://ftp]
13156 [mailto:enclosed@mail.tld With target]
13158 [mailto:enclosed@mail.tld]
13160 mailto:inline@mail.tld
13162 <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>
13163 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
13164 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
13165 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
13166 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
13172 # Security and HTML correctness
13173 # From Nick Jenkins' fuzz testing
13177 Fuzz testing: Parser13
13192 Fuzz testing: Parser14
13197 <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>
13198 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13200 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
13208 Fuzz testing: Parser14-table
13213 <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>
13214 <table style="__TOC__">
13220 # Known to produce bogus xml (extra </td>)
13222 Fuzz testing: Parser16
13242 Fuzz testing: Parser21
13245 ! irc://{{ftp://a" onmouseover="alert('hello world');"
13250 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
13260 Fuzz testing: Parser22
13262 http://===r:::https://b
13266 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
13274 # Known to produce bad XML for now
13276 Fuzz testing: Parser24
13283 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
13284 <br style="onmouseover='alert(document.cookie);' " />
13286 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13291 <u class="|">}}}} >
13292 <br style="onmouseover='alert(document.cookie);'" />
13294 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13303 # Note: the current result listed for this is not what the original one was,
13304 # but the original bug was JavaScript injection, which is fixed in any case.
13305 # It's not clear that the original result listed was any more correct than the
13306 # current one. Original result:
13309 # <li class="||">
13310 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13312 Fuzz testing: Parser25 (bug 6055)
13318 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
13320 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13325 Fuzz testing: URL adjacent extension (with space, clean)
13328 http://example.com <nowiki>junk</nowiki>
13330 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
13335 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
13338 http://example.com<nowiki>junk</nowiki>
13340 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
13345 Fuzz testing: URL adjacent extension (no space, dirty; pre)
13348 http://example.com<pre>junk</pre>
13350 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
13355 Fuzz testing: image with bogus manual thumbnail
13357 [[Image:foobar.jpg|thumbnail= ]]
13359 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
13362 <meta typeof="mw:Placeholder" data-parsoid='{"src":"[[Image:foobar.jpg|thumbnail= ]]","optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,null,null]}'/>
13366 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
13368 <pre dir=" "></pre>
13370 <pre dir=" "></pre>
13375 Parsing optional HTML elements (Bug 6171)
13380 <td> Some tabular data</td>
13381 <td> More tabular data ...
13382 <td> And yet som tabular data</td>
13388 <td> Some tabular data</td>
13389 <td> More tabular data ...
13390 </td><td> And yet som tabular data</td>
13397 Correct handling of <td>, <tr> (Bug 6171)
13402 <td> Some tabular data</td>
13403 <td> More tabular data ...</td>
13404 <td> And yet som tabular data</td>
13410 <td> Some tabular data</td>
13411 <td> More tabular data ...</td>
13412 <td> And yet som tabular data</td>
13420 Parsing crashing regression (fr:JavaScript)
13424 <p></body></x>
13429 Inline wiki vs wiki block nesting
13435 <p><b>Bold paragraph</b>
13436 </p><p>New wiki paragraph
13441 Inline HTML vs wiki block nesting
13449 <p><b>Bold paragraph</b>
13450 </p><p>New wiki paragraph
13454 # Original result was this:
13455 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
13457 # While that might be marginally more intuitive, maybe, the six-apostrophe
13458 # construct is clearly pathological and the result stated here (which is what
13459 # the parser actually does) is about as reasonable as anything.
13461 Mixing markup for italics and bold
13464 '''bold''''''bold''bolditalics'''''
13466 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
13474 Article for special page transclusion test
13478 Special page transclusion
13481 {{Special:Prefixindex/Xyzzyx}}
13483 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13488 Special page transclusion twice (bug 5021)
13491 {{Special:Prefixindex/Xyzzyx}}
13492 {{Special:Prefixindex/Xyzzyx}}
13494 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13495 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13500 Transclusion of default MediaWiki message
13502 {{MediaWiki:Mainpage}}
13509 Transclusion of nonexistent MediaWiki message
13511 {{MediaWiki:Mainpagexxx}}
13513 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
13518 Transclusion of MediaWiki message with underscore
13520 {{MediaWiki:history_short}}
13527 Transclusion of MediaWiki message with space
13529 {{MediaWiki:history short}}
13536 Invalid header with following text
13546 Section extraction test (section 0)
13566 Section extraction test (section 1)
13588 Section extraction test (section 2)
13609 Section extraction test (section 3)
13629 Section extraction test (section 4)
13653 Section extraction test (section 5)
13673 Section extraction test (section 6)
13694 Section extraction test (section 7)
13714 Section extraction test (section 8)
13734 Section extraction test (section 9)
13755 Section extraction test (section 10)
13775 Section extraction test (nonexistent section 11)
13794 Section extraction test with bogus heading (section 1)
13799 ==bogus== not a legal section
13803 ==bogus== not a legal section
13807 Section extraction test with bogus heading (section 2)
13812 ==bogus== not a legal section
13819 Section extraction test with comment after heading (section 1)
13831 Section extraction test with comment after heading (section 2)
13843 Section extraction test with bogus <nowiki> heading (section 1)
13848 ==bogus== <nowiki>not a legal section</nowiki>
13852 ==bogus== <nowiki>not a legal section</nowiki>
13856 Section extraction test with bogus <nowiki> heading (section 2)
13861 ==bogus== <nowiki>not a legal section</nowiki>
13868 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
13869 # instead of respecting commented sections
13871 Section extraction prefixed by comment (section 1)
13882 Section extraction prefixed by comment (section 2)
13893 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
13894 # instead of respecting HTML-style headings
13896 Section extraction, mixed wiki and html (section 1)
13912 Section extraction, mixed wiki and html (section 2)
13928 # Formerly testing for bug 3342
13930 Section extraction, heading surrounded by <noinclude>
13934 <noinclude>==unmarked==</noinclude>
13940 # Test behavior of bug 19910
13942 Sectiion with all-equals
13947 The line above must have a trailing space
13950 But just in case it doesn't...
13954 But just in case it doesn't...
13958 Section replacement test (section 0)
13989 Section replacement test (section 1)
14018 Section replacement test (section 2)
14048 Section replacement test (section 3)
14079 Section replacement test (section 4)
14106 Section replacement test (section 5)
14137 Section replacement test (section 6)
14167 Section replacement test (section 7)
14198 Section replacement test (section 8)
14229 Section replacement test (section 9)
14258 Section replacement test (section 10)
14288 Section replacement test with initial whitespace (bug 13728)
14292 Preformatted initial line
14296 Preformatted initial line
14303 Section extraction, heading followed by pre with 20 spaces (bug 6398)
14315 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
14328 Section extraction, <pre> around bogus header (bug 10309)
14345 Section replacement, <pre> around bogus header (bug 10309)
14347 noxml replace=2,"xxx"
14368 Handling of 
 in URLs
14374 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
14382 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
14384 5 quotes, code coverage +1 line
14389 <p><b><i></i></b></p>
14393 Special:Search page linking.
14397 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
14404 title=[[Parser test]]
14409 * {{FULLPAGENAMEE}}
14411 * {{BASEPAGENAMEE}}
14415 * {{ROOTPAGENAMEE}}
14417 * {{TALKPAGENAMEE}}
14418 * {{SUBJECTPAGENAME}}
14419 * {{SUBJECTPAGENAMEE}}
14422 * {{NAMESPACENUMBER}}
14426 * {{SUBJECTSPACEE}}
14427 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
14450 <li> Talk:Parser test
14452 <li> Talk:Parser_test
14472 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
14477 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
14487 image4 |300px| centre
14488 image5.svg| http://///////
14493 <ul class="gallery mw-gallery-traditional">
14494 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14495 <div class="thumb" style="height: 150px;">Image1.png</div>
14496 <div class="gallerytext">
14499 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14500 <div class="thumb" style="height: 150px;">Image2.gif</div>
14501 <div class="gallerytext">
14506 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14507 <div class="thumb" style="height: 150px;">Image3</div>
14508 <div class="gallerytext">
14511 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14512 <div class="thumb" style="height: 150px;">Image4</div>
14513 <div class="gallerytext">
14518 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14519 <div class="thumb" style="height: 150px;">Image5.svg</div>
14520 <div class="gallerytext">
14521 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
14525 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14526 <div class="thumb" style="height: 150px;">* image6</div>
14527 <div class="gallerytext">
14535 Gallery (with options)
14537 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
14538 File:Nonexistant.jpg|caption
14539 File:Nonexistant.jpg
14540 image:foobar.jpg|some '''caption''' [[Main Page]]
14542 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
14545 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
14546 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
14547 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14548 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14549 <div class="gallerytext">
14554 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14555 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14556 <div class="gallerytext">
14559 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14560 <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>
14561 <div class="gallerytext">
14562 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14566 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14567 <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>
14568 <div class="gallerytext">
14571 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14572 <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>
14573 <div class="gallerytext">
14583 Gallery with wikitext inside caption
14586 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
14587 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
14590 <ul class="gallery mw-gallery-traditional">
14591 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14592 <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>
14593 <div class="gallerytext">
14594 <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>
14598 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14599 <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>
14600 <div class="gallerytext">
14601 <p>This is a test template
14610 gallery (with showfilename option)
14612 <gallery showfilename>
14613 File:Nonexistant.jpg|caption
14614 File:Nonexistant.jpg
14615 image:foobar.jpg|some '''caption''' [[Main Page]]
14619 <ul class="gallery mw-gallery-traditional">
14620 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14621 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14622 <div class="gallerytext">
14623 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14628 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14629 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14630 <div class="gallerytext">
14631 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14635 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14636 <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>
14637 <div class="gallerytext">
14638 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14639 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14643 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14644 <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>
14645 <div class="gallerytext">
14646 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14655 Gallery (with namespace-less filenames)
14658 File:Nonexistant.jpg
14664 <ul class="gallery mw-gallery-traditional">
14665 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14666 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14667 <div class="gallerytext">
14670 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14671 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14672 <div class="gallerytext">
14675 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14676 <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>
14677 <div class="gallerytext">
14680 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14681 <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>
14682 <div class="gallerytext">
14690 HTML Hex character encoding (spells the word "JavaScript")
14692 JavaScript
14694 <p>JavaScript
14699 HTML Hex character encoding bogus encoding (bug 26437 regression check)
14703 <p>&#xsee;&#XSEE;
14708 HTML Hex character encoding mixed case
14717 __FORCETOC__ override
14729 ISBN 978-0-1234-56 789
14731 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
14736 ISBN followed by 5 spaces
14747 ISBN ISBN 1234567890
14749 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14758 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
14763 ISBN with empty prefix (parsoid test)
14767 <p><a href="Special:BookSources/1234567890" rel="mw:ExtLink">ISBN 1234567890</a></p>
14771 Bug 22905: <abbr> followed by ISBN followed by </a>
14773 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
14775 <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>
14784 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
14789 Double RFC with a wiki link
14793 <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>
14802 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
14807 Centre-aligned image
14809 [[Image:foobar.jpg|centre]]
14811 <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>
14818 [[Image:foobar.jpg|none]]
14820 <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>
14825 Width + Height sized image (using px) (height is ignored)
14827 [[Image:foobar.jpg|640x480px]]
14829 <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>
14834 Width-sized image (using px, no following whitespace)
14836 [[Image:foobar.jpg|640px]]
14838 <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>
14843 Width-sized image (using px, with following whitespace - test regression from r39467)
14845 [[Image:foobar.jpg|640px ]]
14847 <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>
14852 Width-sized image (using px, with preceding whitespace - test regression from r39467)
14854 [[Image:foobar.jpg| 640px]]
14856 <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>
14861 Another italics / bold test
14869 # Note the results may be incorrect, as parserTest output included this:
14870 # XML error: Mismatched tag at byte 6120:
14871 # ...<dd> </dt></dl> </dd...
14902 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
14904 Images with the "|" character in the comment
14906 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
14908 <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>
14913 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14915 <html><script>alert(1);</script></html>
14917 <p><html><script>alert(1);</script></html>
14922 HTML with raw HTML ($wgRawHtml==true)
14926 <html><script>alert(1);</script></html>
14928 <p><script>alert(1);</script>
14933 Parents of subpages, one level up
14935 subpage title=[[Subpage test/L1/L2/L3]]
14939 <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>
14945 Parents of subpages, one level up, not named
14947 subpage title=[[Subpage test/L1/L2/L3]]
14951 <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>
14958 Parents of subpages, two levels up
14960 subpage title=[[Subpage test/L1/L2/L3]]
14966 <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
14967 </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>
14972 Parents of subpages, two levels up, without trailing slash or name.
14974 subpage title=[[Subpage test/L1/L2/L3]]
14983 Parents of subpages, two levels up, with lots of extra trailing slashes.
14985 subpage title=[[Subpage test/L1/L2/L3]]
14989 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14994 Subpage test/L1/L2/L3Sibling
15000 Transclusion of a sibling page (one level up)
15002 subpage title=[[Subpage test/L1/L2/L3]]
15011 Transclusion of a child page
15013 subpage title=[[Subpage test/L1/L2]]
15022 Non-transclusion because of too many up levels
15024 subpage title=[[Subpage test/L1/L2/L3]]
15026 {{../../../../More than parent}}
15028 <p>{{../../../../More than parent}}
15033 Definition list code coverage
15040 <dt> title  </dt>
15043 <dt> title </dt>
15054 Don't fall for the self-closing div
15056 <div>hello world</div/>
15058 <div>hello world</div>
15067 <p>[[:Template:Msg]]
15076 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
15080 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
15082 Always escape literal '>' in output, not just after '<'
15096 <p>This is a test template
15097 This is a test template
15109 Inclusion of !userCanEdit() content
15113 <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>
15119 Out-of-order TOC heading levels
15128 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15130 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
15132 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
15133 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
15136 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
15138 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
15139 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
15145 <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>
15146 <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>
15147 <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>
15148 <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>
15149 <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>
15150 <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>
15156 ISBN with a dummy number
15166 ISBN with space-delimited number
15170 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
15176 ISBN with multiple spaces, no number
15195 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
15196 </p><p>ISBN 12345678901
15202 ISBN with trailing year (bug 8110)
15204 ISBN 1-234-56789-0 - 2006
15206 ISBN 1 234 56789 0 - 2006
15208 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
15209 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
15217 {{anchorencode:foo bar©#%n}}
15219 <p>foo_bar.C2.A9.23.25n
15224 anchorencode trims spaces
15226 {{anchorencode: __pretty__please__}}
15233 anchorencode deals with links
15235 {{anchorencode: [[hello|world]] [[hi]]}}
15242 anchorencode deals with templates
15244 {{anchorencode: {{Foo}} }}
15251 anchorencode encodes like the TOC generator: (bug 18431)
15253 === _ +:.3A%3A&&]] ===
15254 {{anchorencode: _ +:.3A%3A&&]] }}
15257 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
15258 <p>.2B:.3A.253A.26.26.5D.5D
15263 Bug 6200: blockquotes and paragraph formatting
15284 Bug 8293: Use of center tag ruins paragraph formatting
15305 Parsing of overlapping (improperly nested) inline html tags
15307 <span><s>x</span></s>
15309 <p><span><s>x</span></s></span>
15312 <p><span><s>x</s></span>
15317 ### Language variants related tests
15320 Self-link in language variants
15322 title=[[Dunav]] language=sr
15324 Both [[Dunav]] and [[Дунав]] are names for this river.
15326 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
15337 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
15339 title=[[Duna]] language=sr
15341 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
15343 <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.
15348 Link to a section of a variant of this title shouldn't be parsed as self-link
15350 title=[[Duna]] language=sr
15352 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
15354 <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.
15359 Link to pages in language variants
15363 Main Page can be written as [[Маин Паге]]
15365 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
15371 Multiple links to pages in language variants
15375 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
15377 <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>.
15383 Simple template in language variants
15389 <p>This is a test template
15395 Template with explicit namespace in language variants
15401 <p>This is a test template
15407 Basic test for template parameter in language variants
15411 {{парамтест|param=foo}}
15413 <p>This is a test template with parameter foo
15419 Simple category in language variants
15423 [[Category:МедиаWики Усер'с Гуиде]]
15425 <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>
15442 Don't convert blue categorylinks to another variant (bug 33210)
15446 [[A]][[Category:分类]]
15448 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
15453 Stripping -{}- tags (language variants)
15457 Latin proverb: -{Ne nuntium necare}-
15459 <p>Latin proverb: Ne nuntium necare
15465 Prevent conversion with -{}- tags (language variants)
15467 language=sr variant=sr-ec
15469 Latinski: -{Ne nuntium necare}-
15471 <p>Латински: Ne nuntium necare
15477 Prevent conversion of text with -{}- tags (language variants)
15479 language=sr variant=sr-ec
15481 Latinski: -{Ne nuntium necare}-
15483 <p>Латински: Ne nuntium necare
15489 Prevent conversion of links with -{}- tags (language variants)
15491 language=sr variant=sr-ec
15495 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15501 -{}- tags within headlines (within html for parserConvert())
15503 language=sr variant=sr-ec
15507 <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>
15513 Explicit definition of language variant alternatives
15515 language=zh variant=zh-tw
15517 -{zh:China;zh-tw:Taiwan}-, not China
15519 <p>Taiwan, not China
15525 Conversion around HTML tags
15527 language=sr variant=sr-ec
15529 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
15530 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
15533 <span title="ЛаCтин">ски</span>
15539 Explicit session-wise language variant mapping (A flag and - flag)
15541 language=zh variant=zh-tw
15543 Taiwan is not China.
15544 But -{A|zh:China;zh-tw:Taiwan}- is China,
15545 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
15546 and -{China}- is China.
15548 <p>Taiwan is not China.
15549 But Taiwan is Taiwan,
15550 (This should be stripped!)
15551 and China is China.
15556 Explicit session-wise language variant mapping (H flag for hide)
15558 language=zh variant=zh-tw
15560 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
15563 <p>(This should be stripped!)
15569 Adding explicit conversion rule for title (T flag)
15571 language=zh variant=zh-tw showtitle
15573 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15576 <p>Should be stripped!
15581 Testing that changing the language variant here in the tests actually works
15583 language=zh variant=zh showtitle
15585 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15588 <p>Should be stripped!
15593 Recursive conversion of alt and title attrs shouldn't clear converter state
15595 language=zh variant=zh-cn showtitle
15597 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
15598 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
15602 Should be stripped<span title="Exclamation">!</span>
15607 Bug 24072: more test on conversion rule for title
15609 language=zh variant=zh-tw showtitle
15611 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15612 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
15615 <p>This should be stripped!
15616 This won't take interferes with the title rule.
15621 Partly disable title conversion if variant == main language code
15623 language=zh variant=zh title=[[ZH]] showtitle
15625 -{T|zh-cn:CN;zh-tw:TW}-
15633 Partly disable title conversion if variant == main language code, more
15635 language=zh variant=zh title=[[ZH]] showtitle
15645 Raw output of variant escape tags (R flag)
15647 language=zh variant=zh-tw
15649 Raw: -{R|zh:China;zh-tw:Taiwan}-
15651 <p>Raw: zh:China;zh-tw:Taiwan
15656 Nested using of manual convert syntax
15658 language=zh variant=zh-hk
15660 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
15662 <p>Nested: Hello Hong Kong!
15667 Proper conversion of text in external links
15669 language=sr variant=sr-ec
15671 http://www.google.com
15672 gopher://www.google.com
15673 [http://www.google.com http://www.google.com]
15674 [gopher://www.google.com gopher://www.google.com]
15675 [https://www.google.com irc://www.google.com]
15676 [ftp://www.google.com www.google.com/ftp://dir]
15677 [//www.google.com www.google.com]
15679 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15680 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15681 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15682 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15683 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
15684 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
15685 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
15690 Do not convert roman numbers to language variants
15692 language=sr variant=sr-ec
15696 <p>Фридрих IV је цар.
15701 Unclosed language converter markup "-{"
15712 Don't convert raw rule "-{R|=>}-" to "=>"
15723 Don't break link parsing if language converter markup is in the caption.
15725 language=sr variant=sr-ec
15727 [[Main Page|-{R|main page}-]]
15729 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
15733 # This test is currently broken in the PHP parser (bug 52661)
15735 Don't break image parsing if language converter markup is in the caption.
15740 [[File:Foobar.jpg|-{R|caption}-]]
15742 <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>
15746 # This test is currently broken in the PHP parser (bug 52661)
15748 Don't break list handling if language converter markup is in the item.
15750 language=zh variant=zh-cn
15753 ;-{zh-cn:AAA;zh-tw:BBB}-
15760 # This test is currently broken in the PHP parser (bug 52661)
15762 Don't break table handling if language converter markup is in the cell.
15764 language=sr variant=sr-ec
15781 Bug 529: Uncovered bullet
15794 # Plain MediaWiki does not remove empty lists, but tidy actually does.
15795 # Templates in Wikipedia rely on this behavior, as tidy has always been
15796 # enabled there. These tests are normally run *without* tidy, so specify the
15797 # full output here.
15798 # To test realistic parsing behavior, apply a tidy-like transformation to both
15799 # the expected output and your parser's output.
15801 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
15803 ******* Foo {{bullet}}
15833 Bug 529: Uncovered table already at line-start
15856 Bug 529: Uncovered bullet in parser function result
15858 * Foo {{lc:{{bullet}} }}
15870 Bug 5678: Double-parsed template argument
15872 {{lc:{{{1}}}|hello}}
15879 Bug 5678: Double-parsed template invocation
15881 {{lc:{{paramtest {{!}} param = hello }} }}
15883 <p>{{paramtest | param = hello }}
15888 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
15891 title=[[Main Page]]
15893 {{PRVNÍVELKÉ:ěščř}}
15894 {{prvnívelké:ěščř}}
15914 Morwen/13: Unclosed link followed by heading
15921 <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>
15926 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
15933 <h1><span class="mw-headline" id="heading">heading</span></h1>
15938 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
15945 <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>
15960 Paragraphs inside divs (no extra line breaks)
15972 Paragraphs inside divs (extra line break on open)
15987 Paragraphs inside divs (extra line break on close)
16002 Paragraphs inside divs (extra line break on open and close)
16019 Nesting tags, paragraphs on lines which begin with <div>
16023 <div></div><strong>A
16032 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
16034 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
16036 <blockquote>Line one
16038 Line two</blockquote>
16040 <blockquote>Line one
16041 Line two</blockquote>
16046 Bug 6200: paragraphs inside blockquotes (extra line break on open)
16051 Line two</blockquote>
16056 Line two</blockquote>
16061 Bug 6200: paragraphs inside blockquotes (extra line break on close)
16063 <blockquote>Line one
16068 <blockquote>Line one
16076 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
16093 Paragraphs inside blockquotes/divs (no extra line breaks)
16095 <blockquote><div>Line one
16097 Line two</div></blockquote>
16099 <blockquote><div>Line one
16100 Line two</div></blockquote>
16105 Paragraphs inside blockquotes/divs (extra line break on open)
16110 Line two</div></blockquote>
16115 Line two</div></blockquote>
16120 Paragraphs inside blockquotes/divs (extra line break on close)
16122 <blockquote><div>Line one
16125 </div></blockquote>
16127 <blockquote><div>Line one
16130 </div></blockquote>
16135 Paragraphs inside blockquotes/divs (extra line break on open and close)
16141 </div></blockquote>
16147 </div></blockquote>
16152 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
16154 wgLinkHolderBatchSize=0
16160 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
16161 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
16162 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
16167 Free external link invading image caption
16169 [[Image:Foobar.jpg|thumb|http://x|hello]]
16171 <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>
16176 Bug 15196: localised external link numbers
16180 [http://en.wikipedia.org/]
16182 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
16187 Multibyte character in padleft
16189 {{padleft:-Hello|7|Æ}}
16196 Multibyte character in padright
16198 {{padright:Hello-|7|Æ}}
16205 formatdate parser function
16207 {{#formatdate:2009-03-24}}
16209 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
16214 formatdate parser function, with default format
16216 {{#formatdate:2009-03-24|mdy}}
16218 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
16223 Spacing of numbers in formatted dates
16225 {{#formatdate:January 15}}
16227 <p><span class="mw-formatted-date" title="01-15">January 15</span>
16232 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
16234 language=nl title=[[MediaWiki:Common.css]]
16236 {{#formatdate:2009-03-24|dmy}}
16238 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
16251 Edit comment with link
16255 I like the [[Main Page]] a lot
16257 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
16261 Edit comment with link and link text
16265 I like the [[Main Page|best pages]] a lot
16267 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16271 Edit comment with link and link text with suffix
16275 I like the [[Main Page|best page]]s a lot
16277 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16281 Edit comment with section link (non-local, eg in history list)
16283 comment title=[[Main Page]]
16285 /* External links */ removed bogus entries
16287 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16291 Edit comment with section link and text before it (non-local, eg in history list)
16293 comment title=[[Main Page]]
16295 pre-comment text /* External links */ removed bogus entries
16297 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>
16301 Edit comment with section link (local, eg in diff view)
16303 comment local title=[[Main Page]]
16305 /* External links */ removed bogus entries
16307 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16311 Edit comment with subpage link (bug 14080)
16315 title=[[Subpage test]]
16317 Poked at a [[/subpage]] here...
16319 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
16323 Edit comment with subpage link and link text (bug 14080)
16327 title=[[Subpage test]]
16329 Poked at a [[/subpage|neat little page]] here...
16331 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
16335 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
16338 title=[[Subpage test]]
16340 Poked at a [[/subpage]] here...
16342 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
16346 Edit comment with bare anchor link (local, as on diff)
16350 title=[[Main Page]]
16354 <a href="#section">#section</a>
16358 Edit comment with bare anchor link (non-local, as on history)
16361 title=[[Main Page]]
16365 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
16369 Anchor starting with underscore
16373 <p><a href="#_ref">One</a>
16378 Id starting with underscore
16380 <div id="_ref"></div>
16382 <div id="_ref"></div>
16387 Space normalisation on autocomment (bug 22784)
16390 title=[[Main Page]]
16392 /* __hello__world__ */
16394 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
16398 percent-encoding and + signs in comments (Bug 26410)
16402 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
16404 <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>
16408 Bad images - basic functionality
16417 Bad images - bug 16039: text after bad image disappears
16431 Verify that displaytitle works (bug #22501) no displaytitle
16435 wgAllowDisplayTitle=true
16436 wgRestrictDisplayTitle=false
16438 this is not the the title
16441 <p>this is not the the title
16446 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
16451 wgAllowDisplayTitle=true
16452 wgRestrictDisplayTitle=false
16454 this is not the the title
16455 {{DISPLAYTITLE:whatever}}
16458 <p>this is not the the title
16463 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
16468 wgAllowDisplayTitle=true
16469 wgRestrictDisplayTitle=true
16471 this is not the the title
16472 {{DISPLAYTITLE:whatever}}
16475 <p>this is not the the title
16480 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
16485 wgAllowDisplayTitle=true
16486 wgRestrictDisplayTitle=true
16488 this is not the the title
16489 {{DISPLAYTITLE:screen}}
16492 <p>this is not the the title
16497 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
16502 wgAllowDisplayTitle=false
16504 this is not the the title
16505 {{DISPLAYTITLE:screen}}
16508 <p>this is not the the title
16509 <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>
16514 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
16519 wgAllowDisplayTitle=false
16521 this is not the the title
16524 <p>this is not the the title
16529 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
16534 wgAllowDisplayTitle=true
16535 wgRestrictDisplayTitle=true
16537 this is not the the title
16538 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
16540 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
16541 <p>this is not the the title
16546 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
16551 wgAllowDisplayTitle=true
16552 wgRestrictDisplayTitle=true
16554 this is not the the title
16555 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
16557 <span style="color: red;">s</span>creen
16558 <p>this is not the the title
16563 preload: check <noinclude> and <includeonly>
16567 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
16573 preload: check <onlyinclude>
16577 Goodbye <onlyinclude>Hello world</onlyinclude>
16583 preload: can pass tags through if we want to
16587 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
16589 <includeonly>Hello world</includeonly>
16593 preload: check that it doesn't try to do tricks
16597 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16599 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16603 Play a bit with r67090 and bug 3158
16607 <div style="width:50% !important"> </div>
16608 <div style="width:50% !important"> </div>
16609 <div style="width:50% !important"> </div>
16610 <div style="border : solid;"> </div>
16612 <div style="width:50% !important"> </div>
16613 <div style="width:50% !important"> </div>
16614 <div style="width:50% !important"> </div>
16615 <div style="border : solid;"> </div>
16620 HTML5 data attributes
16622 <span data-foo="bar">Baz</span>
16623 <p data-abc-def_hij="">Quuz</p>
16625 <p><span data-foo="bar">Baz</span>
16627 <p data-abc-def_hij="">Quuz</p>
16632 percent-encoding and + signs in internal links (Bug 26410)
16634 [[User:+%]] [[Page+title%]]
16635 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
16636 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
16637 [[%33%45]] [[%33%45+]]
16639 <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>
16640 <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>
16641 <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>
16642 <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>
16647 Special characters in embedded file links (bug 27679)
16649 [[File:Contains & ampersand.jpg]]
16650 [[File:Does not exist.jpg|Title with & ampersand]]
16652 <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>
16653 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
16659 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
16661 Text's been normalized?
16663 <p>Text's been normalized?
16668 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
16670 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
16672 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
16677 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
16679 [http://www.example.org/ ideograms]
16681 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
16686 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
16688 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
16690 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
16714 Bug 31098 Template which includes system messages which includes the template
16718 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16719 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16724 Bug31490 Turkish: ucfirst 'blah'
16735 Bug31490 Turkish: ucfirst 'ix'
16746 Bug31490 Turkish: lcfirst 'BLAH'
16757 Bug31490 Turkish: ucfırst (with a dotless i)
16763 <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>
16768 Bug31490 ucfırst (with a dotless i) with English language
16774 <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>
16779 Bug 26375: TOC with italics
16781 title=[[Main Page]]
16784 == ''Lost'' episodes ==
16786 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16788 <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>
16792 <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>
16797 Bug 26375: TOC with bold
16799 title=[[Main Page]]
16802 == '''should be bold''' then normal text ==
16804 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16806 <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>
16810 <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>
16815 Bug 33845: Headings become cursive in TOC when they contain an image
16817 title=[[Main Page]]
16820 == Image [[Image:foobar.jpg]] ==
16822 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16824 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
16828 <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>
16833 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
16835 title=[[Main Page]]
16838 == <blockquote>Quote</blockquote> ==
16840 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16842 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
16846 <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>
16851 Unclosed tags in TOC
16853 title=[[Main Page]]
16857 <small>Hanc marginis exiguitas non caperet.</small>
16860 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16862 <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>
16866 <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>
16867 <p><small>Hanc marginis exiguitas non caperet.</small>
16873 Multiple tags in TOC
16876 == <i>Foo</i> <b>Bar</b> ==
16878 == <i>Foo</i> <blockquote>Bar</blockquote> ==
16880 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16882 <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>
16883 <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>
16887 <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>
16888 <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>
16893 Tags with parameters in TOC
16896 == <sup class="in-h2">Hello</sup> ==
16898 == <sup class="a > b">Evilbye</sup> ==
16900 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16902 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
16903 <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>
16907 <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>
16908 <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>
16913 span tags with directionality in TOC
16916 == <span dir="ltr">C++</span> ==
16918 == <span dir="rtl">זבנג!</span> ==
16920 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
16922 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
16924 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
16926 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16928 <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>
16929 <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>
16930 <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>
16931 <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>
16932 <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>
16936 <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>
16937 <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>
16938 <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>
16939 <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>
16940 <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>
16947 == {{int:headline_sample}} ==
16951 Bug 32057: Title needed when expanding <h> nodes.
16953 title=[[Main Page]]
16957 <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>
16962 Strip marker in urlencode
16964 {{urlencode:x<nowiki/>y}}
16965 {{urlencode:x<nowiki/>y|wiki}}
16966 {{urlencode:x<nowiki/>y|path}}
16993 Strip marker in formatNum
16995 {{formatnum:1<nowiki/>2}}
16996 {{formatnum:1<nowiki/>2|R}}
17004 Check noCommafy in formatNum
17008 {{formatnum:123456.78}}
17009 {{formatnum:123456.78|NOSEP}}
17017 Wrong option for formatNum (bug 56199)
17019 {{formatnum:1,234.56|Random}}
17020 {{formatnum:1,234.56|EVERYTHING}}
17021 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
17030 Strip marker in grammar
17034 {{grammar:elative|foo<nowiki/>bar}}
17041 Strip marker in padleft
17043 {{padleft:|2|x<nowiki/>y}}
17050 Strip marker in padright
17052 {{padright:|2|x<nowiki/>y}}
17059 Strip marker in anchorencode
17061 {{anchorencode:x<nowiki/>y}}
17068 nowiki inside link inside heading (bug 18295)
17070 ==[[foo|x<nowiki>y</nowiki>z]]==
17072 <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>
17077 new support for bdi element (bug 31817)
17079 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17081 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17086 Ignore pipe between table row attributes
17090 |- id=foo | style='color: red'
17098 <tr id="foo" style="color: red">
17105 Gallery override link with WikiLink (bug 34852)
17108 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
17111 <ul class="gallery mw-gallery-traditional">
17112 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17113 <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>
17114 <div class="gallerytext">
17124 Gallery override link with absolute external link (bug 34852)
17127 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
17130 <ul class="gallery mw-gallery-traditional">
17131 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17132 <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>
17133 <div class="gallerytext">
17143 Gallery override link with malicious javascript (bug 34852)
17146 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
17149 <ul class="gallery mw-gallery-traditional">
17150 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17151 <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>
17152 <div class="gallerytext">
17162 Gallery with invalid title as link (bug 43964)
17165 File:foobar.jpg|link=<
17168 <ul class="gallery mw-gallery-traditional">
17169 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17170 <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>
17171 <div class="gallerytext">
17179 Language parser function
17188 Padleft and padright as substr
17190 {{padleft:|3|abcde}}
17191 {{padright:|3|abcde}}
17199 Special parser function
17201 {{#special:RandomPage}}
17202 {{#special:BaDtItLe}}
17203 {{#special:Foobar}}
17212 Bug 34939 - Case insensitive link parsing ([HttP://])
17214 [HttP://MediaWiki.Org/]
17216 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
17221 Bug 34939 - Case insensitive link parsing ([HttP:// title])
17223 [HttP://MediaWiki.Org/ MediaWiki]
17225 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
17230 Bug 34939 - Case insensitive link parsing (HttP://)
17232 HttP://MediaWiki.Org/
17234 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
17253 <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>
17254 <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>
17255 <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>
17256 <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>
17257 <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>
17263 ### Parsoids-specific tests
17264 ### Parsoid-PHP parser incompatibilities
17267 1. SOL-sensitive wikitext tokens as template-args
17269 parsoid=wt2html,wt2wt
17275 <span about="#mwt1" typeof="mw:Transclusion">
17276 </span><ul about="#mwt1"><li>a</li>
17278 <span about="#mwt2" typeof="mw:Transclusion">
17279 </span><ol about="#mwt2"><li>a</li>
17281 <span about="#mwt3" typeof="mw:Transclusion">
17282 </span><dl about="#mwt3"><dd>a</dd>
17286 #### ----------------------------------------------------------------
17287 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
17288 #### tags. Parsoid's output for these tags differs from that of the
17290 #### ----------------------------------------------------------------
17293 Ref: 1. ref-location should be replaced with an index span
17298 B <ref name="x">foo</ref>
17301 <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>
17302 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>
17303 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>
17307 Ref: 2. ref-tags with identical names should all get the same index
17311 A <ref name="x">foo</ref>
17314 <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>
17315 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>
17319 Ref: 3. spaces in ref-names should be ignored
17323 A <ref name="x">foo</ref>
17324 B <ref name=" x " />
17327 <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>
17328 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>
17329 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>
17333 Ref: 4. 'constructor' should be accepted as a valid ref-name
17334 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
17338 A <ref name="constructor">foo</ref>
17340 <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>
17344 Ref: 5. body should accept generic wikitext
17349 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
17354 <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>
17356 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
17357 <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>
17363 Ref: 6. indent-pres should not be output in ref-body
17375 <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>
17377 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
17378 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17386 Ref: 7. No p-wrapping in ref-body
17405 <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>
17407 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17408 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17423 Ref: 8. transclusion wikitext has lower precedence
17427 A <ref> foo {{echo|</ref> B C}}
17431 <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>
17432 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
17433 <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>
17438 Ref: 9. unclosed comments should not leak out of ref-body
17442 A <ref> foo <!--</ref> B C
17445 <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>
17446 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17447 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
17452 Ref: 10. Unclosed HTML tags should not leak out of ref-body
17456 A <ref> <b> foo </ref> B C
17460 <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>
17463 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17464 <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>
17469 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
17476 <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
17477 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>
17481 Ref: 12. ref-tags act as trailing newline migration barrier
17485 <!--the newline at the end of this line moves out of the p-tag-->a
17487 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
17492 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
17495 <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>
17496 <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>
17503 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
17511 <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
17512 <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>
17516 Ref: 14. A nested ref-tag should be emitted as plain text
17520 <ref>foo <ref>bar</ref> baz</ref>
17524 <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>
17526 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17527 <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>
17532 Ref: 15. ref-tags with identical names should get identical indexes
17536 A1 <ref name="a">foo</ref> A2 <ref name="a" />
17537 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
17541 <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>
17542 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>
17544 <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>
17548 ## We don't bother wt2wt-ing non-standard whitespace
17550 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
17558 <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>
17560 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17561 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
17565 References: 1. references tag without any refs should be handled properly
17571 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
17575 References: 2. references tag with group only outputs references from that group
17579 A <ref group="a">foo</ref>
17580 B <ref group="b">bar</ref>
17582 <references group="a" />
17584 <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>
17585 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>
17587 <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>
17592 References: 3. ref list should be cleared after processing references
17604 <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>
17606 <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>
17609 <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>
17611 <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>
17616 References: 4. only referenced group should be cleared after processing references
17620 A <ref group="a">afoo</ref>
17623 <references group="a" />
17629 <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>
17630 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>
17632 <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>
17635 <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>
17637 <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>
17642 References: 5. ref tags in references should be processed while ignoring all other content
17647 B <ref name="b">bar</ref>
17650 <ref name="a">foo</ref>
17651 This should just get lost.
17654 <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>
17655 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>
17658 <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":{}}'>
17659 <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>
17660 <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>
17665 References: 6. <references /> from a transclusion
17669 <ref>Foo</ref> {{echo|<references />}}
17671 <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>
17675 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
17679 A <ref>foo bar for a</ref>
17680 B <ref group="X" name="b" />
17684 <references group="X">
17685 <ref name="b">foo</ref>
17688 <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>
17689 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>
17691 <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>
17693 <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>
17696 # This test is wt2html only because we're permitting the serializer to produce
17697 # dirty diffs, normalizing the unclosed references to the self-closed version.
17699 Generate references for unclosed references tag
17707 <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>
17710 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
17711 <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>
17715 New reference serializes on its own line
17717 parsoid=wt2wt,html2wt
17722 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
17725 #### ----------------------------------------------------------------
17726 #### The following section of tests are primarily to test
17727 #### wikitext escaping capabilities of Parsoid. Given that
17728 #### escaping can be done any number of ways, the wikitext (input)
17729 #### is always adjusted to reflect how Parsoid adds nowiki
17732 #### We are marking several tests as parsoid-only since the
17733 #### HTML in the result section is different from what the
17734 #### PHP parser generates for it.
17735 #### ----------------------------------------------------------------
17738 #### --------------- Headings ---------------
17740 #### 1. Nested inside html <h1>=foo=</h1>
17741 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
17742 #### 3. Nested inside html with wikitext split by html tags
17743 #### 4. No escape needed
17744 #### 5. Empty headings <h1></h1>
17745 #### 6. Heading chars in SOL context
17746 #### ----------------------------------------
17748 Headings: 0. Unnested
17752 <nowiki>=foo=</nowiki>
17754 <nowiki> =foo= </nowiki>
17756 <nowiki>=foo=</nowiki>
17758 =foo''a''<nowiki>=</nowiki>
17760 <p><span typeof="mw:Nowiki">=foo=</span></p>
17762 <p><span typeof="mw:Nowiki"> =foo= </span>
17764 <span typeof="mw:Nowiki">=foo=</span></p>
17766 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
17770 Headings: 1. Nested inside html
17771 (New headings and existing headings are handled differently)
17781 =<nowiki>=foo=</nowiki>=
17782 ==<nowiki>=foo=</nowiki>==
17783 ===<nowiki>=foo=</nowiki>===
17784 ====<nowiki>=foo=</nowiki>====
17785 =====<nowiki>=foo=</nowiki>=====
17786 ======<nowiki>=foo=</nowiki>======
17793 <h1 data-parsoid='{}'>=foo=</h1>
17794 <h2 data-parsoid='{}'>=foo=</h2>
17795 <h3 data-parsoid='{}'>=foo=</h3>
17796 <h4 data-parsoid='{}'>=foo=</h4>
17797 <h5 data-parsoid='{}'>=foo=</h5>
17798 <h6 data-parsoid='{}'>=foo=</h6>
17802 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
17807 <nowiki>*</nowiki>bar
17813 <nowiki>=bar=</nowiki>
17821 Headings: 3. Nested inside html with wikitext split by html tags
17825 = ='''bold'''<nowiki>foo=</nowiki> =
17827 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
17831 Headings: 4a. No escaping needed (testing just h1 and h2)
17849 = <nowiki>=</nowiki> =
17857 <h1><i>=</i>foo=</h1>
17858 <h1><span typeof="mw:Nowiki">=</span></h1>
17862 Headings: 4b. No escaping needed (inside p-tags)
17877 Headings: 5. Empty headings
17889 =====<nowiki/>=====
17891 ======<nowiki/>======
17902 Headings: 6a. Heading chars in SOL context (with trailing spaces)
17906 <nowiki>=a=</nowiki>
17908 <nowiki>=a=</nowiki>
17910 <nowiki>=a=</nowiki>
17912 <nowiki>=a=</nowiki>
17921 Headings: 6b. Heading chars in SOL context (with trailing newlines)
17949 Headings: 6c. Heading chars in SOL context (leading newline break)
17954 <nowiki>=b=</nowiki>
17961 Headings: 6d. Heading chars in SOL context (with interspersed comments)
17965 <!--c0--><nowiki>=a=</nowiki>
17967 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
17969 <p><!--c0-->=a=</p>
17970 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
17974 Headings: 6d. Heading chars in SOL context (No escaping needed)
17983 #### --------------- Lists ---------------
17984 #### 0. Outside nests (*foo, etc.)
17985 #### 1. Nested inside html <ul><li>*foo</li></ul>
17986 #### 2. Inside definition lists
17987 #### 3. Only bullets at start should be escaped
17988 #### 4. No escapes needed
17989 #### 5. No unnecessary escapes
17990 #### 6. Escape bullets in SOL position
17991 #### 7. Escape bullets in a multi-line context
17992 #### ----------------------------------------
17995 Lists: 0. Outside nests
17997 <nowiki>*</nowiki>foo
17999 <nowiki>#</nowiki>foo
18007 Lists: 1. Nested inside html
18009 *<nowiki>*foo</nowiki>
18011 *<nowiki>#foo</nowiki>
18013 *<nowiki>:foo</nowiki>
18015 *<nowiki>;foo</nowiki>
18017 #<nowiki>*foo</nowiki>
18019 #<nowiki>#foo</nowiki>
18021 #<nowiki>:foo</nowiki>
18023 #<nowiki>;foo</nowiki>
18061 Lists: 2. Inside definition lists
18063 ;<nowiki>;foo</nowiki>
18065 ;<nowiki>:foo</nowiki>
18067 ;<nowiki>:foo</nowiki>
18070 :<nowiki>:foo</nowiki>
18094 Lists: 3. Only bullets at start of text should be escaped
18096 *<nowiki>*foo*bar</nowiki>
18098 *<nowiki>*foo</nowiki>''it''*bar
18105 <li>*foo<i>it</i>*bar
18112 Lists: 4. No escapes needed
18133 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
18137 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
18143 Lists: 5. No unnecessary escapes
18145 * bar <span><nowiki>[[foo]]</nowiki></span>
18147 *=bar <span><nowiki>[[foo]]</nowiki></span>
18149 *[[bar <span><nowiki>[[foo]]</nowiki></span>
18151 *]]bar <span><nowiki>[[foo]]</nowiki></span>
18153 *=bar <span>foo]]</span>=
18158 <li> bar <span>[[foo]]</span>
18162 <li>=bar <span>[[foo]]</span>
18166 <li>[[bar <span>[[foo]]</span>
18170 <li>]]bar <span>[[foo]]</span>
18174 <li>=bar <span>foo]]</span>=
18185 Lists: 6. Escape bullets in SOL position
18189 <!--cmt--><nowiki>*foo</nowiki>
18191 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
18195 Lists: 7. Escape bullets in a multi-line context
18198 <nowiki>*</nowiki>b
18205 #### --------------- HRs ---------------
18206 #### 1. Single line
18207 #### -----------------------------------
18210 HRs: 1. Single line
18214 ----<nowiki>----</nowiki>
18218 <hr><span typeof="mw:Nowiki">----</span>
18223 #### --------------- Tables ---------------
18224 #### 1a. Simple example
18225 #### 1b. No escaping needed (!foo)
18226 #### 1c. No escaping needed (|foo)
18227 #### 1d. No escaping needed (|}foo)
18229 #### 2a. Nested in td (<td>foo|bar</td>)
18230 #### 2b. Nested in td (<td>foo||bar</td>)
18231 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
18233 #### 3a. Nested in th (<th>foo!bar</th>)
18234 #### 3b. Nested in th (<th>foo!!bar</th>)
18235 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
18239 #### 4c. No escaping needed
18240 #### --------------------------------------
18243 Tables: 1a. Simple example
18254 Tables: 1b. No escaping needed
18263 Tables: 1c. No escaping needed
18272 Tables: 1d. No escaping needed
18281 Tables: 2a. Nested in td
18286 |<nowiki>foo|bar</nowiki>
18288 |x<div><nowiki>a|b</nowiki></div>
18292 <td>foo|bar</td></tr>
18293 <tr><td>x<div>a|b</div></td>
18298 Tables: 2b. Nested in td
18303 |<nowiki>foo||bar</nowiki>
18304 |''it''<nowiki>foo||bar</nowiki>
18308 <td><span typeof="mw:Nowiki">foo||bar</span></td>
18309 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
18313 Tables: 2c. Nested in td -- no escaping needed
18321 <table><tbody><tr><td>foo!!bar
18322 </td></tr></tbody></table>
18327 Tables: 3a. Nested in th
18335 <table><tbody><tr><th>foo!bar
18336 </th></tr></tbody></table>
18341 Tables: 3b. Nested in th
18346 !<nowiki>foo!!bar</nowiki>
18350 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
18355 Tables: 3c. Nested in th -- no escaping needed
18360 !<nowiki>foo||bar</nowiki>
18364 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
18368 Tables: 4a. Escape -
18375 |<nowiki>-bar</nowiki>
18379 <tr><th>-bar</th></tr>
18381 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
18385 Tables: 4b. Escape +
18392 |<nowiki>+bar</nowiki>
18396 <tr><th>+bar</th></tr>
18398 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
18402 Tables: 4c. No escaping needed
18423 <tr><td>foo-bar</td><td>foo+bar</td></tr>
18424 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
18430 <div>a|b</div></td>
18435 Tables: 4d. No escaping needed
18446 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
18447 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
18448 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
18453 Tables: Digest broken attributes on table and tr tag
18469 #### --------------- Links ----------------
18470 #### 1. Quote marks in link text
18471 #### 2. Wikilinks: Escapes needed
18472 #### 3. Wikilinks: No escapes needed
18473 #### 4. Extlinks: Escapes needed
18474 #### 5. Extlinks: No escapes needed
18475 #### --------------------------------------
18477 Links 1. Quote marks in link text
18481 [[Foo|Foo<nowiki>''boo''</nowiki>]]
18483 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
18487 Links 2. WikiLinks: Escapes needed
18492 [[Foo|<nowiki>Foobar]</nowiki>]]
18493 [[Foo|x [Foobar] x]]
18494 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
18495 [[Foo|<nowiki>[[Bar]]</nowiki>]]
18496 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
18497 [[Foo|<nowiki>|Bar</nowiki>]]
18498 [[Foo|<nowiki>]]bar</nowiki>]]
18499 [[Foo|<nowiki>[[bar</nowiki>]]
18500 [[Foo|<nowiki>x [[ y</nowiki>]]
18501 [[Foo|<nowiki>x ]] y</nowiki>]]
18502 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
18504 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
18505 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
18506 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
18507 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
18508 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
18509 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
18510 <a href="Foo" rel="mw:WikiLink">|Bar</a>
18511 <a href="Foo" rel="mw:WikiLink">]]bar</a>
18512 <a href="Foo" rel="mw:WikiLink">[[bar</a>
18513 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
18514 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
18515 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
18519 Links 3. WikiLinks: No escapes needed
18526 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
18527 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
18531 Links 4. ExtLinks: Escapes needed
18535 [http://google.com <nowiki>[google]</nowiki>]
18536 [http://google.com <nowiki>google]</nowiki>]
18538 <nowiki>[http://google.com]</nowiki>
18540 <nowiki>[http://google.com google]</nowiki>
18543 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
18544 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
18545 <p>[http://google.com]</p>
18546 <p>[http://google.com google]</p>
18550 Links 5. ExtLinks: No escapes needed
18554 [http://google.com [google]
18556 <a href="http://google.com" rel="mw:ExtLink">[google</a>
18559 #### --------------- Quotes ---------------
18560 #### 1. Quotes inside <b> and <i>
18561 #### 2. Link fragments separated by <i> and <b> tags
18562 #### 3. Link fragments inside <i> and <b>
18563 #### 4. No escaping needed
18564 #### --------------------------------------
18566 1. Quotes inside <b> and <i>
18568 parsoid=html2wt,wt2wt
18570 ''<nowiki>'foo'</nowiki>''
18571 ''<nowiki>''foo''</nowiki>''
18572 ''<nowiki>'''foo'''</nowiki>''
18574 '''<nowiki>'foo'</nowiki>'''
18575 '''<nowiki>''foo''</nowiki>'''
18576 '''<nowiki>'''foo'''</nowiki>'''
18577 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
18578 '''foo'''<nowiki/>'s
18581 '<nowiki/>''foo''<nowiki/>'
18583 '''foo'''<nowiki/>'
18584 '<nowiki/>'''foo'''<nowiki/>'
18585 ''fools'<span> errand</span>''
18586 ''<span>fool</span>'s errand''
18595 <b>foo'<i>bar'</i>baz</b>
18603 <i>fools'<span> errand</span></i>
18604 <i><span>fool</span>'s errand</i>
18608 2. Link fragments separated by <i> and <b> tags
18610 [[''foo''<nowiki>hello]]</nowiki>
18612 [['''foo'''<nowiki>hello]]</nowiki>
18614 <p>[[<i>foo</i>hello]]
18615 </p><p>[[<b>foo</b>hello]]
18620 3. Link fragments inside <i> and <b>
18621 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
18622 this is one of the shortcomings of this format)
18624 ''[[foo''<nowiki>]]</nowiki>
18626 '''[[foo'''<nowiki>]]</nowiki>
18629 </p><p><b>[[foo</b>]]
18634 4. No escaping needed
18636 '<span>''bar''</span>'
18637 '<span>'''bar'''</span>'
18639 <p>'<span><i>bar</i></span>'
18640 '<span><b>bar</b></span>'
18644 #### ----------- Paragraphs ---------------
18645 #### 1. No unnecessary escapes
18646 #### --------------------------------------
18649 1. No unnecessary escapes
18651 bar <span><nowiki>[[foo]]</nowiki></span>
18653 =bar <span><nowiki>[[foo]]</nowiki></span>
18655 [[bar <span><nowiki>[[foo]]</nowiki></span>
18657 ]]bar <span><nowiki>[[foo]]</nowiki></span>
18659 =bar <span>foo]]</span><nowiki>=</nowiki>
18661 <p>bar <span>[[foo]]</span>
18662 </p><p>=bar <span>[[foo]]</span>
18663 </p><p>[[bar <span>[[foo]]</span>
18664 </p><p>]]bar <span>[[foo]]</span>
18665 </p><p>=bar <span>foo]]</span>=
18669 #### ----------------------- PRE --------------------------
18670 #### 1. Leading whitespace in SOL context should be escaped
18671 #### ------------------------------------------------------
18673 1. Leading whitespace in SOL context should be escaped
18677 <nowiki> </nowiki>a
18679 <nowiki> </nowiki> a
18681 <nowiki> </nowiki>a(tab)
18683 <nowiki> </nowiki> a
18685 <nowiki> </nowiki> a
18688 <nowiki> </nowiki>b
18691 <nowiki> </nowiki>b
18694 <nowiki> </nowiki> b
18700 <p><!--cmt--> a</p>
18709 #### --------------- Behavior Switches --------------------
18711 1. Valid behavior switches should be escaped
18715 <nowiki>__TOC__</nowiki>
18721 2. Invalid behavior switches should not be escaped
18732 #### --------------- HTML tags ---------------
18735 #### 3. multi-line html tag
18736 #### 4. extension tags
18737 #### -----------------------------------------
18743 <a href="http://google.com">google</a>
18745 <a href="http://google.com">google</a>
18751 <nowiki><div>foo</div>
18752 <div style="color:red">foo</div></nowiki>
18754 <p><div>foo</div>
18755 <div style="color:red">foo</div>
18760 3. multi-line html tag
18775 <nowiki><ref>foo</ref></nowiki>
18777 <nowiki><ref>bar</nowiki>
18779 baz<nowiki></ref></nowiki>
18781 <p><ref>foo</ref>
18782 </p><p><ref>bar
18783 </p><p>baz</ref>
18787 #### --------------- Others ---------------
18791 <nowiki>foo</nowiki>
18793 <p><nowiki>foo</nowiki>
18797 ## The quote-char in the input is necessary for triggering the bug
18799 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
18801 parsoid=wt2wt,html2wt
18810 Tag-like HTML structures are passed through as text
18832 </p><p>1<d e>f
18837 # This was a bug in the PHP parser (see bug 17663 and its dups,
18838 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
18840 Tag names followed by punctuation should not be recognized as tags
18844 <p><s.ome> text
18849 HTML tag with necessary entities in attributes
18851 <span title="&amp;">foo</span>
18853 <p><span title="&amp;">foo</span>
18858 HTML tag with 'unnecessary' entity encoding in attributes
18860 <span title="&">foo</span>
18862 <p><span title="&">foo</span>
18867 HTML tag with broken attribute value quoting
18869 <span title="Hello world>Foo</span>
18871 <p><span>Foo</span>
18876 Parsoid-only: HTML tag with broken attribute value quoting
18880 <span title="Hello world>Foo</span>
18882 <p><span title="Hello world">Foo</span>
18887 Table with broken attribute value quoting
18890 | title="Hello world|Foo
18901 Table with broken attribute value quoting on consecutive lines
18904 | title="Hello world|Foo
18905 | style="color:red|Bar
18918 Parsoid-only: Table with broken attribute value quoting on consecutive lines
18923 | title="Hello world|Foo
18924 | style="color:red|Bar
18929 <td title="Hello world">Foo
18930 </td><td style="color: red">Bar
18931 </td></tr></tbody></table>
18936 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18946 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18956 Accept empty td cell attribute
18959 | align="center" | foo || |
18964 <td align="center"> foo </td>
18971 Non-empty attributes in th-cells
18974 ! Foo !! style="color: red" | Bar
18980 <th style="color: red"> Bar
18986 Accept empty attributes in th-cells
19001 Empty table rows go away
19022 ### Parsoid-centric tests for testing RTing of inter-element separators
19023 ### Edge cases not tested by existing parser tests and specific to
19024 ### Parsoid-specific serialization strategies.
19028 RT-ed inter-element separators should be valid separators
19041 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
19042 (Parsoid-only since PHP parser relies on Tidy for correct output)
19058 Empty TD followed by TD with tpl-generated attribute
19063 |{{echo|style='color:red'}}|foo
19077 Indented table with an empty td
19096 Empty TR followed by a template-generated TR
19097 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
19103 {{echo|<tr><td>foo</td></tr>}}
19109 <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}}]}'>
19114 ## PHP and parsoid output differ for this, and since this is primarily
19115 ## for testing Parsoid's serializer, marking this Parsoid only
19117 Empty TR followed by mixed-ws-comment line should RT correctly
19133 <!--c--> </tr><!--d-->
19139 Multi-line image caption generated by templates with/without trailing newlines
19143 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
19144 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
19146 <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>
19147 <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>
19151 ## PHP emits broken html for this, and since this is primarily
19152 ## a Parsoid serializer test, marking this Parsoid only
19154 Improperly nested inline or quotes tags with whitespace in between
19158 <span> <s>x</span> </s>
19161 <p><span> <s>x</s></span><s> </s>
19162 <b> <i>x</i></b><i> </i>
19167 Encapsulate protected attributes from wt
19171 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
19173 <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>
19177 ## Currently the p-wrapper is fragile in how adds / removes transformations.
19178 ## Having nested or stray pre tags results in the attempt to add duplicates,
19179 ## causing an assertion fail. This test tries to prevent that situation.
19181 Ensure ParagraphWrapper can deal with stray closing pre tags
19191 1. Ensure fostered text content is wrapped in spans
19195 <table>hi</table><table>ho</table>
19204 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
19206 parsoid=wt2html,wt2wt
19213 <span> || ||</span>
19222 Encapsulation properly handles null DSR information from foster box
19224 parsoid=wt2html,wt2wt
19226 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
19228 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19231 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
19235 <td>bar</td></tr></tbody></table>
19239 1. Encapsulate foster-parented transclusion content
19241 parsoid=wt2wt,wt2html
19243 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
19245 <span typeof="mw:Transclusion" data-mw="{"parts":["
19246 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
19248 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
19252 <td>bar</td></tr></tbody></table>
19256 2. Encapsulate foster-parented transclusion content
19258 parsoid=wt2wt,wt2html
19260 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
19262 <div typeof="mw:Transclusion" data-mw="{"parts":["
19264 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
19266 <td>bar</td></tr></table>"]}">foo</div>
19270 <td>bar</td></tr></tbody></table>
19274 3. Encapsulate foster-parented transclusion content
19276 parsoid=wt2wt,wt2html
19278 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19280 <div typeof="mw:Transclusion" data-mw="{"parts":["
19283 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19285 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19290 <td>bar</td></tr></tbody></table>
19294 4. Encapsulate foster-parented transclusion content
19296 parsoid=wt2wt,wt2html
19298 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19300 <div typeof="mw:Transclusion" data-mw="{"parts":["
19303 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19305 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19310 <td>bar</td></tr></tbody></table>
19314 5. Encapsulate foster-parented transclusion content
19316 parsoid=wt2wt,wt2html
19318 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
19320 <span typeof="mw:Transclusion" data-mw="{"parts":["
19325 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
19331 <p>foo</p></div></td></tr></tbody></table>
19335 6. Encapsulate foster-parented transclusion content
19337 parsoid=wt2wt,wt2html
19339 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
19341 <span typeof="mw:Transclusion" data-mw="{"parts":["
19346 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
19352 <p>foo</p></div></td></tr></tbody></table>
19357 7. Encapsulate foster-parented transclusion content
19359 parsoid=wt2wt,wt2html
19361 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
19363 <p typeof="mw:Transclusion" data-mw="{"parts":["
19364 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19365 <p>foo</p>"}},"i":0}},"
19366 <td>bar</td></table>"]}">foo</p>
19370 <td>bar</td></tr></tbody></table>
19374 8. Encapsulate foster-parented transclusion content
19376 parsoid=wt2wt,wt2html
19379 }}{|{{echo|style='color:red'}}
19384 <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>
19388 <td>b</td></tr></tbody></table>
19392 Table in fosterable position
19394 parsoid=wt2html,wt2wt
19403 <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="{}">
19405 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
19412 Support <object> element with .data attribute
19416 <object data="test.swf"></object>
19418 <object data="test.swf"></object>
19421 # -----------------------------------------------------------------
19422 # The following section of tests are primarily to spec requirements
19423 # around serialization of new/edited content.
19425 # All these tests are marked Parsoid html2wt and html2html only
19426 # ----------------------------------------------------------------
19429 Image: Modifying size of an image (1)
19432 "modes": ["wt2wt"],
19434 ["img[height]", "attr", "height", "22"],
19435 ["img[width]", "attr", "width", "200"]
19439 [[Image:Foobar.jpg|230x230px]]
19441 [[Image:Foobar.jpg|200x200px]]
19445 Image: Modifying size of an image (2)
19448 "modes": ["wt2wt"],
19450 ["img[height]", "attr", "height", "100"],
19451 ["img[width]", "attr", "width", "500"]
19455 [[Image:Foobar.jpg|230x230px]]
19457 [[Image:Foobar.jpg|500x500px]]
19460 # Change in size is ignored so long as class='mw-default-size'
19462 Image: Modifying size of an image (3)
19465 "modes": ["wt2wt"],
19467 ["figure[class]", "removeClass", "mw-default-size"],
19468 ["figure img", "attr", "height", "19"],
19469 ["figure img", "attr", "width", "170"]
19473 [[Image:Foobar.jpg|thumb]]
19475 [[Image:Foobar.jpg|thumb|170x170px]]
19479 Image: Modifying alignment of an image (bug 48665)
19482 "modes": ["wt2wt"],
19484 ["figure[class]", "removeClass", "mw-halign-right"],
19485 ["figure[class]", "addClass", "mw-halign-left"]
19489 [[Image:Foobar.jpg|thumb|caption|right]]
19491 [[Image:Foobar.jpg|thumb|caption|left]]
19495 Image: Modifying mw-default-size of an frameless image (bug 62805)
19498 "modes": ["wt2wt"],
19500 ["figure.mw-default-size", "removeClass", "mw-default-size"]
19504 [[Image:Foobar.jpg|frameless|right]]
19506 [[Image:Foobar.jpg|frameless|right|220x220px]]
19510 Image: Modifying valign of an image (bug 49221)
19513 "modes": ["wt2wt"],
19515 ["*[typeof=\"mw:Image\"]", "removeClass", "mw-valign-middle"],
19516 ["*[typeof=\"mw:Image\"]", "addClass", "mw-valign-text-top"]
19520 [[File:Foobar.jpg|20px|middle]]
19522 [[File:Foobar.jpg|20px|text-top]]
19526 Image: Modifying alt attribute of an image (bug 56400)
19529 "modes": ["wt2wt"],
19531 ["img[alt]", "attr", "alt", "some alternate edited text"]
19535 [[File:Foobar.jpg|thumb|some caption|alt=some alternate text]]
19537 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
19541 Image: Modifying caption of an image
19544 "modes": ["wt2wt"],
19546 ["figcaption", "text", "new caption"]
19550 [[Image:Foobar.jpg|thumb|original caption]]
19552 [[Image:Foobar.jpg|thumb|new caption]]
19556 Image: empty alt attribute (bug 48924)
19560 [[File:Foobar.jpg|thumb|alt=|bar]]
19562 <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>
19566 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
19571 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
19573 #<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>
19577 Image: Block level image should have \n before and after
19582 [[File:Foobar.jpg|right|thumb|150x150px]]
19585 <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>
19589 Image: New block level image should have \n before and after (existing
19595 [[File:Foobar.jpg|right|thumb|150x150px]]
19598 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
19599 <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>
19600 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
19604 Image: upright option (parsoid)
19608 [[File:Foobar.jpg|thumb|upright|caption]]
19609 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
19610 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
19612 <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>
19616 Image: upright option is ignored on inline and frame images (parsoid)
19620 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
19622 <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>
19626 Image: from basic HTML (1)
19630 <span typeof="mw:Image">
19631 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
19634 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
19638 Image: from basic HTML (2)
19642 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
19644 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
19648 Image: from basic HTML (3)
19652 <a href="Main"><img src="File:Foobar.jpg" width=100 height=100 alt="Alt"></a>
19654 [[File:Foobar.jpg|link=Main|alt=Alt|100x100px]]
19658 Image: from basic HTML (4)
19662 <img src="File:Foobar.jpg">
19664 [[File:Foobar.jpg|link=]]
19668 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
19675 <li><p>foo</p></li>
19680 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
19686 <ul> <li>foo</li></ul>
19690 Don't strip leading whitespace when handling indent-pre suppressing tags
19698 '''This is very bold of you!'''
19702 indented cell (no pre-wrapping!)
19709 <tr><td> indented row</td></tr>
19712 <b>This is very bold of you!</b>
19715 indented cell (no pre-wrapping!)
19723 Strip leading whitespace when handling indent-pre inducing tags
19755 Lists: Add space after bullets
19761 * <span> baz</span>
19766 <li><span> baz</span></li>
19771 Lists: Dont insert newlines in a serialized list item.
19778 <ul><li>a<br>b</li><li>c</li></ul>
19782 Headings: Add space before/after == (Bug 51744)
19792 == <span> baz</span> ==
19797 <h2><span> baz</span></h2>
19801 Parsoid: Serialize positional parameters with = in them as named parameter
19807 {{echo|1 = f=oo|2 = bar}}
19809 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19810 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19811 {{echo|<nowiki>f=oo</nowiki>|bar}}
19813 <p about="#mwt1" typeof="mw:Transclusion"
19814 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
19816 <p about="#mwt1" typeof="mw:Transclusion"
19817 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
19819 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19820 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19821 <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>
19825 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
19841 <div>a<p>b</p></div>
19849 #-----------------------------
19850 # I/B quote minimization tests
19851 #-----------------------------
19854 1. I/B quote minimization: wikitext-only tags should be combined
19874 <p><i>A</i><i>B</i></p>
19875 <p><b>A</b><b>B</b></p>
19876 <p><i>A</i><b><i>B</i></b></p>
19877 <p><b>A</b><i><b>B</b></i></p>
19878 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
19879 <p><i><b>A</b></i><i><b>B</b></i></p>
19880 <p><i><b>A</b></i><b><i>B</i></b></p>
19881 <p><b><i>A</i></b><i><b>B</b></i></p>
19885 2. I/B quote minimization: wikitext and html tags should not be combined
19891 ''A'''''<i>B</i>'''
19893 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
19894 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
19898 3. I/B quote minimization: templated content stops minimization
19902 ''A''{{echo|''B''}}
19904 ''A''{{echo|'''''B'''''}}
19906 <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>
19907 <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>
19911 4. I/B quote minimization: new content should be mimimized with adjacent old content
19921 <p><i>A</i><i data-parsoid='{}'>B</i></p>
19922 <p><b data-parsoid='{}'>A</b><b>B</b></p>
19923 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
19926 #------------------------------------
19927 # End of I/B quote minimization tests
19928 #------------------------------------
19931 Bug 54262: New entities
19937 <span typeof="mw:Entity">foo</span>
19940 ## Note that there is no wikitext output for 'unknownproperty' ##
19941 ## Unknown magic words are silently dropped ##
19956 __NOCONTENTCONVERT__
19958 <meta property='mw:PageProp/toc' />
19959 <meta property='mw:PageProp/notoc' />
19960 <meta property='mw:PageProp/forcetoc' />
19961 <meta property='mw:PageProp/index' />
19962 <meta property='mw:PageProp/noindex' />
19963 <meta property='mw:PageProp/nogallery' />
19964 <meta property='mw:PageProp/noeditsection' />
19965 <meta property='mw:PageProp/notitleconvert' />
19966 <meta property='mw:PageProp/nocontentconvert' />
19967 <meta property='mw:PageProp/unknownproperty' />
19971 Consecutive <pre>s should not get merged
19973 parsoid=html2wt,html2html
19989 <pre>a</pre><pre>b</pre>
20003 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
20007 [[Special:BookSources/1234567890|ISBN 1234567895]]
20009 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
20013 Edited RFC links not serializable as RFC links should serialize as extlinks
20017 [//tools.ietf.org/html/rfc123 New RFC]
20019 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
20023 Edited PMID links not serializable as PMID links should serialize as extlinks
20027 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
20029 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
20033 Edited Redirect link should emit a non-piped wikitext link
20039 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
20042 # -----------------------------------------------------------------
20043 # End of section for Parsoid-only html2wt tests for serialization
20045 # -----------------------------------------------------------------
20052 Try for 100% code coverage