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 always ignore size options; always render at default size.
10176 # 3. "Unspecified format" and border are the only types which can be
10180 Image: "unspecified format" and border enlarge
10182 parsoid=wt2html,wt2wt,html2html
10184 [[File:Foobar.jpg|2000px]]
10186 [[File:Foobar.jpg|border|2000px]]
10188 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="2000" height="227" /></a>
10189 </p><p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="2000" height="227" class="thumbborder" /></a>
10192 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="227" width="2000"/></a></span></p>
10193 <p><span class="mw-image-border" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="227" width="2000"/></a></span></p>
10197 Image: "unspecified format" and border reduce
10199 parsoid=wt2html,wt2wt,html2html
10201 [[File:Foobar.jpg|1000px]]
10203 [[File:Foobar.jpg|border|1000px]]
10205 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/1000px-Foobar.jpg" width="1000" height="113" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/1500px-Foobar.jpg 1.5x, http://example.com/images/3/3a/Foobar.jpg 2x" /></a>
10206 </p><p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/1000px-Foobar.jpg" width="1000" height="113" class="thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/1500px-Foobar.jpg 1.5x, http://example.com/images/3/3a/Foobar.jpg 2x" /></a>
10209 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="113" width="1000"/></a></span></p>
10210 <p><span class="mw-image-border" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="113" width="1000"/></a></span></p>
10214 Image: thumbs reduce
10216 parsoid=wt2html,wt2wt,html2html
10218 [[File:Foobar.jpg|thumb|50px]]
10220 <div class="thumb tright"><div class="thumbinner" style="width:52px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" width="50" height="6" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/75px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/100px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>
10223 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="6" width="50"/></a></figure>
10227 Image: bitmap thumbs can't be enlarged past original size, but vector can.
10229 parsoid=wt2html,wt2wt,html2html
10231 [[File:Foobar.jpg|thumb|2000px]]
10233 [[File:Foobar.svg|thumb|2000px]]
10235 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>
10236 <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>
10239 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
10240 <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>
10244 Image: frameless can reduce in size
10246 parsoid=wt2html,wt2wt,html2html
10248 [[File:Foobar.jpg|frameless|50px]]
10250 <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>
10253 <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>
10257 Image: bitmap frameless can't be enlarged past original size, but vector can
10259 parsoid=wt2html,wt2wt,html2html
10261 [[File:Foobar.jpg|frameless|2000px]]
10263 [[File:Foobar.svg|frameless|2000px]]
10265 <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>
10266 </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>
10269 <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>
10270 <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>
10274 Image: framed images are always unscaled.
10276 parsoid=wt2html,wt2wt,html2html
10278 [[File:Foobar.jpg|frame]]
10280 [[File:Foobar.jpg|frame|50px]]
10282 [[File:Foobar.jpg|frame|50x50px]]
10284 [[File:Foobar.jpg|frame|2000px]]
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>
10288 <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>
10289 <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>
10292 <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><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>
10295 ###################
10298 Link to image page- image page normally doesn't exists, hence edit link
10299 Add test with existing image page
10300 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
10304 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
10309 bug 18784 Link to non-existent image page with caption should use caption as link text
10311 [[:Image:test|caption]]
10313 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
10318 Frameless image caption with a free URL
10320 [[File:Foobar.jpg|http://example.com]]
10322 <p><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
10325 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"http://example.com"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10329 Thumbnail image caption with a free URL
10333 [[File:Foobar.jpg|thumb|http://example.com]]
10335 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
10338 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></figcaption></figure>
10342 Thumbnail image caption with a free URL and explicit alt
10345 parsoid=wt2html,wt2wt,html2html
10347 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
10349 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
10352 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img alt="Alteration" resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></figcaption></figure>
10356 SVG thumbnails with no language set
10359 [[File:Foobar.svg|thumb|caption]]
10361 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="135" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
10364 <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>
10368 SVG thumbnails with language de
10370 parsoid=wt2html,wt2wt,html2html
10372 [[File:Foobar.svg|thumb|caption|lang=de]]
10374 <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>
10377 <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>
10381 SVG thumbnails with invalid language code
10383 parsoid=wt2html,wt2wt,html2html
10385 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
10387 <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>
10390 <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>
10394 BUG 1887: A ISBN with a thumbnail
10396 [[File:Foobar.jpg|thumb|ISBN 1235467890]]
10398 <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>
10401 <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>
10405 BUG 1887: A RFC with a thumbnail
10407 [[File:Foobar.jpg|thumb|This is RFC 12354]]
10409 <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>
10412 <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>
10416 BUG 1887: A mailto link with a thumbnail
10418 [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]]
10420 <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>
10423 <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>
10426 # Pending resolution to bug 368
10428 BUG 648: Frameless image caption with a link
10430 [[File:Foobar.jpg|text with a [[link]] in it]]
10432 <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>
10435 <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>
10439 BUG 648: Frameless image caption with a link (suffix)
10441 [[File:Foobar.jpg|text with a [[link]]foo in it]]
10443 <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>
10446 <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>
10450 BUG 648: Frameless image caption with an interwiki link
10452 [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]
10454 <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>
10457 <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>
10461 BUG 648: Frameless image caption with a piped interwiki link
10463 [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
10465 <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>
10468 <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>
10472 Escape HTML special chars in image alt text
10474 [[File:Foobar.jpg|& < > "]]
10476 <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>
10479 <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>
10483 BUG 499: Alt text should have Ӓ, not &1234;
10485 [[File:Foobar.jpg|♀]]
10487 <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>
10490 <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>
10494 Broken image caption with link
10496 parsoid=wt2html,wt2wt,html2html
10498 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
10500 <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.
10503 <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>
10507 Image caption containing another image
10509 [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]]
10511 <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>
10514 <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>
10518 Image: caption containing a newline
10520 [[File:Foobar.jpg|This
10523 <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>
10526 <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>
10530 Image: caption containing leading space
10531 (The leading space should not trigger nowiki escaping in wt2wt mode)
10533 [[File:Foobar.jpg|thumb| bar]]
10535 <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>
10538 <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>
10542 Image: caption containing a table
10544 parsoid=wt2html,wt2wt,html2html
10546 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
10552 and some more text.]]
10554 <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>
10557 <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
10560 <tr><th>Foo </th><th>Bar</th></tr>
10563 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
10567 Bug 3090: External links other than http: in image captions
10569 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
10571 <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>
10574 <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>
10580 parsoid=wt2html,wt2wt,html2html
10582 [[Image:foobar.jpg|a|class=b]]
10584 <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>
10587 <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>
10591 Localized image handling (1).
10593 parsoid=wt2html,wt2wt,html2html
10596 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10598 <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>
10601 <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>
10605 Localized image handling (2).
10608 parsoid=wt2html,wt2wt,html2html
10611 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10613 <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>
10616 <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>
10620 "border", "frameless" and "class" attributes on an image.
10623 parsoid=wt2html,wt2wt,html2html
10625 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
10627 <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>
10630 <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>
10633 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
10635 Invalid image attributes (bug 62500)
10638 parsoid=wt2html,wt2wt,html2html
10640 [[File:Foobar.jpg|thumb|float|left|caption]]
10642 [[File:Foobar.jpg|thumb|righ|caption]]
10644 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
10646 <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>
10647 <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>
10648 <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>
10651 <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>
10657 #REDIRECT [[File:Barfoo.jpg]]
10663 [[Image:Barfoo.jpg]]
10665 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
10670 Missing image with uploads disabled
10674 [[Image:Foobaz.jpg]]
10676 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
10680 # Parsoid-specific testing for images
10681 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10682 # Currently imperfect due to a flaw in the Parsoid testrunner
10684 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
10688 Parsoid-specific image handling - simple image with size and middle alignment
10690 [[File:Foobar.jpg|middle|50px]]
10692 <p><span class="mw-valign-middle" typeof="mw:Image">
10693 <a href="File:Foobar.jpg">
10694 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10701 Parsoid-specific image handling - simple image with size, middle alignment,
10702 non-standard namespace alias
10704 parsoid=wt2wt,wt2html,html2html
10706 [[Image:Foobar.jpg|middle|50px]]
10708 <p><span class="mw-valign-middle" typeof="mw:Image">
10709 <a href="File:Foobar.jpg">
10710 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10717 Parsoid-specific image handling - simple image with size and middle alignment
10720 [[File:Foobar.jpg|50px|middle]]
10722 <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>
10726 Parsoid-specific image handling - simple image with size and middle alignment
10727 and non-standard namespace name
10729 parsoid=wt2html,wt2wt,html2html
10731 [[Image:Foobar.jpg|50px|middle]]
10733 <p><span class="mw-valign-middle" typeof="mw:Image">
10734 <a href="File:Foobar.jpg">
10735 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10742 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10744 [[File:Foobar.jpg|500x10px|baseline|caption]]
10746 <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>
10750 Parsoid-specific image handling - simple image with border and size spec
10752 [[File:Foobar.jpg|50px|border|caption]]
10754 <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>
10758 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10760 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
10762 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10763 <a href="File:Foobar.jpg">
10764 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
10766 <figcaption>caption content</figcaption>
10771 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10774 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
10776 <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>
10780 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10782 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
10784 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10785 <a href="File:Foobar.jpg">
10786 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10788 <figcaption>caption</figcaption>
10793 Parsoid-specific image handling - thumbnail with specific size, halign,
10794 valign, and caption (existing content)
10796 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10798 <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>
10802 Parsoid-specific image handling - framed image with specific size and caption
10804 [[Image:Foobar.jpg|frame|500x50px|caption]]
10806 <figure typeof="mw:Image/Frame">
10807 <a href="File:Foobar.jpg">
10808 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10810 <figcaption>caption</figcaption>
10815 Parsoid-specific image handling - framed image with specific size and caption
10818 [[File:Foobar.jpg|442x50px|frame|caption]]
10820 <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>
10824 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10826 [[Image:Foobar.jpg|left|baseline|frame|500x50px|caption]]
10828 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10829 <a href="File:Foobar.jpg">
10830 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10832 <figcaption>caption</figcaption>
10837 Parsoid-specific image handling - framed image with specific size, halign,
10838 valign, and caption (existing content)
10840 [[File:Foobar.jpg|442x50px|frame|left|baseline|caption]]
10842 <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>
10846 Parsoid-specific image handling - frameless image with specific size, border, and caption
10848 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
10850 <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>
10854 Parsoid-specific image handling - simple image with a formatted caption
10856 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10858 <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>"}'>
10859 <a href="File:Foobar.jpg">
10860 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10865 Parsoid-specific image handling - caption with a template in it
10867 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
10869 <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>
10873 Parsoid-specific image handling - caption with unbalanced tags in it
10875 parsoid=wt2html,wt2wt,html2html
10878 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
10882 <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>
10887 Parsoid-specific image handling - empty caption
10889 [[File:Foobar.jpg|thumb|]]
10891 <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>
10895 Parsoid-specific image handling - whitespace caption
10897 [[File:Foobar.jpg|thumb| ]]
10899 <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>
10903 Parsoid-specific image handling - lang option
10906 [[File:Foobar.svg|lang=de|caption]]
10910 <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>
10919 Subpage test/subpage
10927 subpage title=[[Subpage test]]
10931 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10936 Subpage noslash link
10938 subpage title=[[Subpage test]]
10942 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10946 # TODO: make this PHP-parser compatible!
10948 Relative subpage noslash link
10950 parsoid=wt2wt,wt2html,html2html
10951 subpage title=[[Subpage test/1/2/3/4]]
10957 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10958 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10961 # TODO: make this PHP-parser compatible!
10963 Parsoid: dot-slash prefixed wikilinks
10965 parsoid=wt2wt,wt2html,html2html
10973 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10974 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10975 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10983 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10988 BUG 561: {{/Subpage}}
10990 subpage title=[[Page]]
10994 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
11002 Category:MediaWiki User's Guide
11010 [[:Category:MediaWiki User's Guide]]
11012 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
11021 [[Category:MediaWiki User's Guide]]
11023 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11027 PAGESINCATEGORY invalid title fatal (r33546 fix)
11029 {{PAGESINCATEGORY:<bogus>}}
11036 Category with different sort key
11040 [[Category:MediaWiki User's Guide|Foo]]
11042 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11046 Category with identical sort key
11050 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11052 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11056 Category with empty sort key
11061 [[Category:MediaWiki User's Guide|]]
11063 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11067 Category with empty sort key and parentheses
11072 [[Category:Foo (bar)|]]
11074 [[Category:Foo (bar)|Foo]]
11078 Category with link tail
11083 123[[Category:Foo]]456
11085 123[[Category:Foo]]456
11089 Category with template
11094 [[Category:{{echo|Foo}}]]
11096 [[Category:{{echo|Foo}}]]
11100 Category with template in sort key
11105 [[Category:Foo|{{echo|Bar}}]]
11107 [[Category:Foo|{{echo|Bar}}]]
11111 Category with template in sort key and title
11116 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11118 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11122 Category / paragraph interactions
11124 Foo [[Category:Baz]] Bar
11126 Foo [[Category:Baz]]
11134 [[Category:Baz]] Bar
11147 {{echo|[[Category:Baz]]}}
11162 Parsoid: Serialize link to category page with colon escape
11168 [[:Category:Foo|Bar]]
11171 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
11172 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
11177 Parsoid: Link prefix/suffixes aren't applied to category links
11179 parsoid=wt2html,wt2wt,html2html
11184 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
11188 Parsoid: Serialize link to file page with colon escape
11194 [[:File:Foo.png|Bar]]
11197 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
11198 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
11203 Parsoid: Serialize a genuine category link without colon escape
11208 [[Category:Foo|Bar]]
11210 <link rel="mw:PageProp/Category" href="Category:Foo">
11211 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
11215 Parsoid: Defaultsort
11219 {{DEFAULTSORT:Foo}}
11221 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
11225 ### Inter-language links
11228 Inter-language links
11234 [[zh:食品]]
11236 es:Alimento fr:Nourriture zh:食品
11240 Duplicate interlanguage links (bug 24502)
11256 Basic section headings
11263 ===Smaller headline===
11266 <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>
11269 <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>
11272 <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>
11278 Section headings with TOC
11281 === Subheadline 1 ===
11282 ===== Skipping a level =====
11283 ====== Skipping a level ======
11287 ===Another headline===
11289 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11291 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
11293 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
11295 <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>
11297 <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>
11304 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
11306 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
11312 <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>
11313 <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>
11314 <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>
11315 <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>
11316 <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>
11319 <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>
11323 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
11325 Handling of sections up to level 6 and beyond
11328 == Level 2 Heading==
11329 === Level 3 Heading===
11330 ==== Level 4 Heading====
11331 ===== Level 5 Heading=====
11332 ====== Level 6 Heading======
11333 ======= Level 7 Heading=======
11334 ======== Level 8 Heading========
11335 ========= Level 9 Heading=========
11336 ========== Level 10 Heading==========
11338 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11340 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
11342 <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>
11344 <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>
11346 <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>
11348 <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>
11350 <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>
11351 <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>
11352 <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>
11353 <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>
11354 <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>
11368 <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>
11369 <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>
11370 <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>
11371 <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>
11372 <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>
11373 <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>
11374 <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>
11375 <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>
11376 <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>
11377 <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>
11382 TOC regression (bug 9764)
11386 ==== title 1.1.1 ====
11391 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11393 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11395 <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>
11397 <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>
11400 <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>
11403 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11405 <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>
11411 <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>
11412 <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>
11413 <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>
11414 <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>
11415 <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>
11416 <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>
11421 TOC with wgMaxTocLevel=3 (bug 6204)
11427 ==== title 1.1.1 ====
11432 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11434 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11436 <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>
11437 <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>
11440 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11442 <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>
11448 <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>
11449 <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>
11450 <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>
11451 <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>
11452 <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>
11453 <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>
11458 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
11464 ====Section 1.1.1====
11465 ====Section 1.1.1.1====
11468 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11470 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
11472 <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>
11475 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
11479 <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>
11480 <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>
11481 <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>
11482 <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>
11483 <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>
11489 Resolving duplicate section names
11494 <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>
11495 <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>
11500 Resolving duplicate section names with differing case (bug 10721)
11505 <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>
11506 <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>
11518 Template with sections, __NOTOC__
11525 <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>
11526 <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>
11527 <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>
11528 <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>
11533 __NOEDITSECTION__ keyword
11539 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
11540 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
11545 Link inside a section heading
11547 ==Section with a [[Main Page|link]] in it==
11549 <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>
11554 TOC regression (bug 12077)
11561 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11563 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11565 <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>
11568 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
11572 <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>
11573 <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>
11574 <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>
11579 BUG 1219 URL next to image (good)
11581 http://example.com [[Image:foobar.jpg]]
11583 <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>
11588 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
11591 The line above must have a trailing space!
11594 But just in case it doesn't...
11596 <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>
11597 <p>The line above must have a trailing space!
11599 <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>
11600 <p>But just in case it doesn't...
11605 Header with special characters (bug 25462)
11607 The tooltips shall not show entities to the user (ie. be double escaped)
11624 <p>The tooltips shall not show entities to the user (ie. be double escaped)
11626 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11628 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
11629 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
11630 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
11631 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
11632 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
11636 <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>
11639 <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>
11642 <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>
11645 <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>
11648 <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>
11654 Headers with excess '=' characters
11655 (Are similar tests necessary beyond the 1st level?)
11659 =''italic'' heading==
11660 ==''italic'' heading=
11662 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11664 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
11665 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
11666 <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>
11667 <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>
11671 <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>
11672 <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>
11673 <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>
11674 <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>
11679 HTML headers vs TOC (bug 23393)
11680 (__NOEDITSECTION__ for clearer output, doesn't matter here)
11692 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11694 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
11696 <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>
11697 <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>
11700 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
11702 <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>
11703 <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>
11709 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
11710 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
11711 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
11712 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
11713 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
11714 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
11719 BUG 1219 URL next to image (broken)
11721 http://example.com[[Image:foobar.jpg]]
11723 <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>
11728 Bug 1186 news: in the middle of text
11730 http://en.wikinews.org/wiki/Wikinews:Workplace
11732 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
11738 Namespaced link must have a title
11747 Namespaced link must have a title (bad fragment version)
11749 [[Project:#fragment]]
11751 <p>[[Project:#fragment]]
11757 ### HTML tags and HTML attributes
11761 div with no attributes
11763 <div>HTML rocks</div>
11765 <div>HTML rocks</div>
11770 div with double-quoted attribute
11772 <div id="rock">HTML rocks</div>
11774 <div id="rock">HTML rocks</div>
11779 div with single-quoted attribute
11781 <div id='rock'>HTML rocks</div>
11783 <div id="rock">HTML rocks</div>
11788 div with unquoted attribute
11790 <div id=rock>HTML rocks</div>
11792 <div id="rock">HTML rocks</div>
11797 div with illegal double attributes
11799 <div id="a" id="b">HTML rocks</div>
11801 <div id="b">HTML rocks</div>
11805 # FIXME: produce empty string instead of "class" in the PHP parser, following
11808 div with empty attribute value, space before equals
11812 <div class =>HTML rocks</div>
11814 <div class="">HTML rocks</div>
11818 # The PHP parser escapes the opening brace to { for some reason, so
11819 # disabled this test for it.
11821 div with braces in attribute value
11825 <div title="{}">Foo</div>
11827 <div title="{}">Foo</div>
11830 # This it very inconsistent in the PHP parser: it returns
11831 # class="class" if there is a space between the name and the equal sign (see
11832 # 'div with empty attribute value, space before equals'), but strips the
11833 # attribute completely if the space is missing. We hope that not much content
11834 # depends on this, so are implementing the behavior below in Parsoid for
11835 # consistencies' sake. Disabled for the PHP parser.
11836 # FIXME: fix this behavior in the PHP parser?
11838 div with empty attribute value, no space before equals
11842 <div class=>HTML rocks</div>
11844 <div class="">HTML rocks</div>
11849 HTML multiple attributes correction
11851 <p class="error" class="awesome">Awesome!</p>
11853 <p class="awesome">Awesome!</p>
11858 Table multiple attributes correction
11861 !+ class="error" class="awesome"| status
11866 <th class="awesome"> status
11874 <DIV ID="x">HTML ROCKS</DIV>
11876 <div id="x">HTML ROCKS</div>
11881 Non-ASCII pseudo-tags are rendered as text
11890 Pseudo-tag with URL 'name' renders as url link
11892 <http://example.com/>
11894 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11899 text with amp in the middle of nowhere
11903 <p>Remember AT&T?
11908 text with character entity: eacute
11910 I always thought é was a cute letter.
11912 <p>I always thought é was a cute letter.
11917 text with entity-escaped character entity-like string: eacute
11919 I always thought &eacute; was a cute letter.
11921 <p>I always thought &eacute; was a cute letter.
11926 text with undefined character entity: xacute
11928 I always thought &xacute; was a cute letter.
11930 <p>I always thought &xacute; was a cute letter.
11934 # TODO: generalize to PHP parser?
11940 <data value="5">five</data>
11941 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11942 <mark>This highlighted text</mark>
11944 <p><data value="5">five</data>
11945 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11946 <mark>This highlighted text</mark></p>
11950 HTML tag with leading space is parsed as text
11954 <p>< div>foo< /div>
11959 ### Nesting tests (see bug 41545, 50604, 51081)
11962 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11963 # Note that html2wt is considerably more difficult if we use <b> in
11964 # the test case, instead of <big>
11966 Ensure that HTML adoption agency algorithm is properly implemented.
11968 <big>X<big>Y</big>Z</big>
11970 <p><big>X<big>Y</big>Z</big>
11974 # This was bug 41545 in the PHP parser.
11978 <kbd>X<kbd>Y</kbd>Z</kbd>
11980 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11984 # The following cases were bug 51081 in the PHP parser.
11985 # Note that there are some other nestable tags (b, i, etc) which are
11986 # not covered; see bug 51081 for discussion.
11990 <em>X<em>Y</em>Z</em>
11992 <p><em>X<em>Y</em>Z</em>
11997 Nesting of <strong>
11999 <strong>X<strong>Y</strong>Z</strong>
12001 <p><strong>X<strong>Y</strong>Z</strong>
12010 <p><q>X<q>Y</q>Z</q>
12017 <ruby>X<ruby>Y</ruby>Z</ruby>
12019 <p><ruby>X<ruby>Y</ruby>Z</ruby>
12026 <bdo>X<bdo>Y</bdo>Z</bdo>
12028 <p><bdo>X<bdo>Y</bdo>Z</bdo>
12040 [[Media:Foobar.jpg]]
12042 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
12047 Media link with text
12049 [[Media:Foobar.jpg|A neat file to look at]]
12051 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
12055 # FIXME: this is still bad HTML tag nesting
12057 Media link with nasty text
12058 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
12060 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
12062 <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>
12067 Media link to nonexistent file (bug 1702)
12069 [[Media:No such.jpg]]
12071 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
12076 Image link to nonexistent file (bug 1850 - good)
12078 [[Image:No such.jpg]]
12080 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
12085 :Image link to nonexistent file (bug 1850 - bad)
12087 [[:Image:No such.jpg]]
12089 <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>
12096 Character reference normalization in link text (bug 1938)
12098 [[Main Page|this&that]]
12100 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
12107 Test for unicode normalization
12109 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
12113 (bug 19451) Links should refer to the normalized form.
12121 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12122 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12123 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12124 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12125 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12130 Empty attribute crash test (bug 2067)
12132 <font color="">foo</font>
12134 <p><font color="">foo</font>
12139 Empty attribute crash test single-quotes (bug 2067)
12141 <font color=''>foo</font>
12143 <p><font color="">foo</font>
12148 Attribute test: equals, then nothing
12150 <font color=>foo</font>
12152 <p><font>foo</font>
12157 Attribute test: unquoted value
12159 <font color=x>foo</font>
12161 <p><font color="x">foo</font>
12166 Attribute test: unquoted but illegal value (hash)
12168 <font color=#x>foo</font>
12170 <p><font color="#x">foo</font>
12175 Attribute test: no value
12177 <font color>foo</font>
12179 <p><font color="color">foo</font>
12184 Bug 2095: link with three closing brackets
12188 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
12193 Bug 2095: link with pipe and three closing brackets
12195 [[Main Page|link]]]
12197 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
12202 Bug 2095: link with pipe and three closing brackets, version 2
12204 [[Main Page|[http://example.com/]]]
12206 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
12216 Template:Dangerous attribute
12218 " onmouseover="alert(document.cookie)
12222 Template:Dangerous style attribute
12224 border-size: expression(alert(document.cookie))
12230 <div style="float: right; {{{1}}}">Magic div</div>
12234 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
12236 <div title="{{test}}"></div>
12238 <div title="This is a test template"></div>
12243 Bug 2304: HTML attribute safety (dangerous template; 2309)
12245 <div title="{{dangerous attribute}}"></div>
12247 <div title=""></div>
12252 Bug 2304: HTML attribute safety (dangerous style template; 2309)
12254 <div style="{{dangerous style attribute}}"></div>
12256 <div style="/* insecure input */"></div>
12261 Bug 2304: HTML attribute safety (safe parameter; 2309)
12263 {{div style|width: 200px}}
12265 <div style="float: right; width: 200px">Magic div</div>
12270 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
12272 {{div style|width: expression(alert(document.cookie))}}
12274 <div style="/* insecure input */">Magic div</div>
12279 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
12281 {{div style|"><script>alert(document.cookie)</script>}}
12283 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12288 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 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 (link)
12299 <div title="[[Main Page]]"></div>
12301 <div title="[[Main Page]]"></div>
12306 Bug 2304: HTML attribute safety (italics)
12308 <div title="''foobar''"></div>
12310 <div title="''foobar''"></div>
12315 Bug 2304: HTML attribute safety (bold)
12317 <div title="'''foobar'''"></div>
12319 <div title="'''foobar'''"></div>
12325 Bug 2304: HTML attribute safety (ISBN)
12327 <div title="ISBN 1234567890"></div>
12329 <div title="ISBN 1234567890"></div>
12334 Bug 2304: HTML attribute safety (RFC)
12336 <div title="RFC 1234"></div>
12338 <div title="RFC 1234"></div>
12343 Bug 2304: HTML attribute safety (PMID)
12345 <div title="PMID 1234567890"></div>
12347 <div title="PMID 1234567890"></div>
12352 Bug 2304: HTML attribute safety (web link)
12354 <div title="http://example.com/"></div>
12356 <div title="http://example.com/"></div>
12361 Bug 2304: HTML attribute safety (named web link)
12363 <div title="[http://example.com/ link]"></div>
12365 <div title="[http://example.com/ link]"></div>
12370 Bug 3244: HTML attribute safety (extension; safe)
12372 <div style="<nowiki>background:blue</nowiki>"></div>
12374 <div style="background:blue"></div>
12379 Bug 3244: HTML attribute safety (extension; unsafe)
12381 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
12383 <div style="/* insecure input */"></div>
12387 # More MSIE fun discovered by Tom Gilder
12390 MSIE CSS safety test: spurious slash
12392 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
12394 <div style="/* insecure input */">evil</div>
12399 MSIE CSS safety test: hex code
12401 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
12403 <div style="/* insecure input */">evil</div>
12408 MSIE CSS safety test: comment in url
12410 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
12412 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
12417 MSIE CSS safety test: comment in expression
12419 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
12421 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
12426 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
12428 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
12430 <p style="/* invalid control char */">A</p>
12435 MSIE 6 CSS safety test: Fullwidth (bug 55332)
12437 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
12438 <div style="top:EXPRESSION(alert())">B</div>
12440 <p style="/* insecure input */">A</p>
12441 <div style="/* insecure input */">B</div>
12446 MSIE 6 CSS safety test: IPA extensions (bug 55332)
12448 <div style="background-image:uʀʟ(javascript:alert())">A</div>
12449 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
12451 <div style="/* insecure input */">A</div>
12452 <p style="/* insecure input */">B</p>
12457 MSIE 6 CSS safety test: sup/sub script (bug 55332)
12459 <div style="background-image:url⁽javascript:alert())">A</div>
12460 <div style="background-image:url₍javascript:alert())">B</div>
12461 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
12463 <div style="/* insecure input */">A</div>
12464 <div style="/* insecure input */">B</div>
12465 <p style="/* insecure input */">C</p>
12473 title="data:text/html,<img src=1 onerror=alert(1)>"
12474 style="-o-link:attr(title);-o-link-source:current">X</div>
12476 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
12481 MSIE 6 CSS safety test: Repetition markers (bug 55332)
12483 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
12484 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
12485 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
12486 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
12487 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
12488 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
12489 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
12491 <p style="/* insecure input */">A</p>
12492 <p style="/* insecure input */">B</p>
12493 <p style="/* insecure input */">C</p>
12494 <p style="/* insecure input */">D</p>
12495 <p style="/* insecure input */">E</p>
12496 <p style="/* insecure input */">F</p>
12497 <p style="/* insecure input */">G</p>
12502 Table attribute legitimate extension
12505 !+ style="<nowiki>color:blue</nowiki>"| status
12510 <th style="color:blue"> status
12516 Table attribute safety
12519 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
12524 <th style="/* insecure input */"> status
12530 CSS line continuation 1
12532 <div style="background-image: u\ rl(test.jpg);"></div>
12534 <div style="/* insecure input */"></div>
12539 CSS line continuation 2
12541 <div style="background-image: u\ rl(test.jpg); "></div>
12543 <div style="/* insecure input */"></div>
12554 Expansion of multi-line templates in attribute values (bug 6255)
12556 <div style="background: {{identity|#00FF00}}">-</div>
12558 <div style="background: #00FF00">-</div>
12564 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
12566 <div style="background:
12569 <div style="background: #00FF00">-</div>
12574 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
12576 <div style="background: #00FF00">-</div>
12578 <div style="background: #00FF00">-</div>
12583 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
12586 Parser hook: empty input
12599 Parser hook: empty input using terminated empty elements
12612 Parser hook: empty input using terminated empty elements (space before)
12625 Parser hook: basic input
12639 Parser hook: case insensitive
12653 Parser hook: case insensitive, redux
12666 Parser hook: nested tags
12670 <tag><tag></tag></tag>
12681 Parser hook: basic arguments
12683 <tag width=200 height = "100" depth = '50' square></tag>
12691 'square' => 'square',
12698 Parser hook: argument containing a forward slash (bug 5344)
12700 <tag filename='/tmp/bla'></tag>
12705 'filename' => '/tmp/bla',
12712 Parser hook: empty input using terminated empty elements (bug 2374)
12725 # </tag> should be output literally since there is no matching tag that begins it
12727 Parser hook: basic arguments using terminated empty elements (bug 2374)
12729 <tag width=200 height = "100" depth = '50' square/>
12739 'square' => 'square',
12748 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
12752 Parser hook: static parser hook not inside a comment
12754 <statictag>hello, world</statictag>
12755 <statictag action=flush/>
12763 Parser hook: static parser hook inside a comment
12765 <!-- <statictag>hello, world</statictag> -->
12766 <statictag action=flush/>
12772 # Nested template calls; this case was broken by Parser.php rev 1.506,
12776 Template:One-parameter
12778 (My parameter is: {{{1}}})
12782 Template:Map-one-parameter
12784 {{{{{1}}}|{{{2}}}}}
12788 Nested template calls
12790 {{Map-one-parameter|One-parameter|param}}
12792 <p>(My parameter is: param)
12801 Sanitizer: Closing of open tags
12803 <s></s><table></table>
12805 <s></s><table></table>
12810 Sanitizer: Closing of open but not closed tags
12819 Sanitizer: Closing of closed but not open tags
12828 Sanitizer: Closing of closed but not open table tags
12830 Table not started</td></tr></table>
12832 <p>Table not started</td></tr></table>
12837 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
12839 <span id="æ: v">byte</span>[[#æ: v|backlink]]
12841 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
12846 Sanitizer: Validating the contents of the id attribute (bug 4515)
12852 Something, but definitely not <br id="9" />...
12856 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
12860 <br id="foo" /><br id="foo" />
12862 Something need to be done. foo-2 ?
12866 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
12869 <meta itemprop="hello" content="world">
12870 <meta http-equiv="refresh" content="5">
12871 <meta itemprop="hello" http-equiv="refresh" content="5">
12872 <link itemprop="hello" href="{{SERVER}}">
12873 <link rel="stylesheet" href="{{SERVER}}">
12874 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
12877 <div itemscope="itemscope">
12878 <p> <meta itemprop="hello" content="world" />
12879 <meta http-equiv="refresh" content="5">
12880 <meta itemprop="hello" content="5" />
12882 <link itemprop="hello" href="http://example.org" />
12883 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
12884 <link itemprop="hello" href="http://example.org" />
12890 Language converter: output gets cut off unexpectedly (bug 5757)
12894 this bit is safe: }-
12896 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12898 then we get cut off here: }-
12900 all additional text is vanished
12902 <p>this bit is safe: }-
12903 </p><p>but if we add a conversion instance: xxx
12904 </p><p>then we get cut off here: }-
12905 </p><p>all additional text is vanished
12910 Self closed html pairs (bug 5487)
12913 <center><font id="bug" />Centered text</center>
12914 <div><font id="bug2" />In div text</div>
12916 <center><font id="bug" />Centered text</center>
12917 <div><font id="bug2" />In div text</div>
12926 Punctuation: nbsp before exclamation
12930 <p>C'est grave !
12935 Punctuation: CSS !important (bug 11874)
12937 <div style="width:50% !important">important</div>
12939 <div style="width:50% !important">important</div>
12944 Punctuation: CSS ! important (bug 11874; with space after)
12946 <div style="width:50% ! important">important</div>
12948 <div style="width:50% ! important">important</div>
12954 HTML bullet list, closed tags (bug 5497)
12969 HTML bullet list, unclosed tags (bug 5497)
12988 HTML ordered list, closed tags (bug 5497)
13003 HTML ordered list, unclosed tags (bug 5497)
13022 HTML nested bullet list, closed tags (bug 5497)
13047 HTML nested bullet list, open tags (bug 5497)
13076 HTML nested ordered list, closed tags (bug 5497)
13101 HTML nested ordered list, open tags (bug 5497)
13130 HTML ordered list item with parameters oddity
13132 <ol><li id="fragment">One</li>
13135 <ol><li id="fragment">One</li>
13141 bug 5918: autonumbering
13143 [http://first/] [http://second] [ftp://ftp]
13147 [mailto:enclosed@mail.tld With target]
13149 [mailto:enclosed@mail.tld]
13151 mailto:inline@mail.tld
13153 <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>
13154 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
13155 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
13156 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
13157 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
13163 # Security and HTML correctness
13164 # From Nick Jenkins' fuzz testing
13168 Fuzz testing: Parser13
13183 Fuzz testing: Parser14
13188 <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>
13189 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13191 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
13199 Fuzz testing: Parser14-table
13204 <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>
13205 <table style="__TOC__">
13211 # Known to produce bogus xml (extra </td>)
13213 Fuzz testing: Parser16
13233 Fuzz testing: Parser21
13236 ! irc://{{ftp://a" onmouseover="alert('hello world');"
13241 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
13251 Fuzz testing: Parser22
13253 http://===r:::https://b
13257 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
13265 # Known to produce bad XML for now
13267 Fuzz testing: Parser24
13274 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
13275 <br style="onmouseover='alert(document.cookie);' " />
13277 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13282 <u class="|">}}}} >
13283 <br style="onmouseover='alert(document.cookie);'" />
13285 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13294 # Note: the current result listed for this is not what the original one was,
13295 # but the original bug was JavaScript injection, which is fixed in any case.
13296 # It's not clear that the original result listed was any more correct than the
13297 # current one. Original result:
13300 # <li class="||">
13301 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13303 Fuzz testing: Parser25 (bug 6055)
13309 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
13311 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13316 Fuzz testing: URL adjacent extension (with space, clean)
13319 http://example.com <nowiki>junk</nowiki>
13321 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
13326 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
13329 http://example.com<nowiki>junk</nowiki>
13331 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
13336 Fuzz testing: URL adjacent extension (no space, dirty; pre)
13339 http://example.com<pre>junk</pre>
13341 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
13346 Fuzz testing: image with bogus manual thumbnail
13348 [[Image:foobar.jpg|thumbnail= ]]
13350 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
13353 <meta typeof="mw:Placeholder" data-parsoid='{"src":"[[Image:foobar.jpg|thumbnail= ]]","optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,null,null]}'/>
13357 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
13359 <pre dir=" "></pre>
13361 <pre dir=" "></pre>
13366 Parsing optional HTML elements (Bug 6171)
13371 <td> Some tabular data</td>
13372 <td> More tabular data ...
13373 <td> And yet som tabular data</td>
13379 <td> Some tabular data</td>
13380 <td> More tabular data ...
13381 </td><td> And yet som tabular data</td>
13388 Correct handling of <td>, <tr> (Bug 6171)
13393 <td> Some tabular data</td>
13394 <td> More tabular data ...</td>
13395 <td> And yet som tabular data</td>
13401 <td> Some tabular data</td>
13402 <td> More tabular data ...</td>
13403 <td> And yet som tabular data</td>
13411 Parsing crashing regression (fr:JavaScript)
13415 <p></body></x>
13420 Inline wiki vs wiki block nesting
13426 <p><b>Bold paragraph</b>
13427 </p><p>New wiki paragraph
13432 Inline HTML vs wiki block nesting
13440 <p><b>Bold paragraph</b>
13441 </p><p>New wiki paragraph
13445 # Original result was this:
13446 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
13448 # While that might be marginally more intuitive, maybe, the six-apostrophe
13449 # construct is clearly pathological and the result stated here (which is what
13450 # the parser actually does) is about as reasonable as anything.
13452 Mixing markup for italics and bold
13455 '''bold''''''bold''bolditalics'''''
13457 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
13465 Article for special page transclusion test
13469 Special page transclusion
13472 {{Special:Prefixindex/Xyzzyx}}
13474 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13479 Special page transclusion twice (bug 5021)
13482 {{Special:Prefixindex/Xyzzyx}}
13483 {{Special:Prefixindex/Xyzzyx}}
13485 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13486 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13491 Transclusion of default MediaWiki message
13493 {{MediaWiki:Mainpage}}
13500 Transclusion of nonexistent MediaWiki message
13502 {{MediaWiki:Mainpagexxx}}
13504 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
13509 Transclusion of MediaWiki message with underscore
13511 {{MediaWiki:history_short}}
13518 Transclusion of MediaWiki message with space
13520 {{MediaWiki:history short}}
13527 Invalid header with following text
13537 Section extraction test (section 0)
13557 Section extraction test (section 1)
13579 Section extraction test (section 2)
13600 Section extraction test (section 3)
13620 Section extraction test (section 4)
13644 Section extraction test (section 5)
13664 Section extraction test (section 6)
13685 Section extraction test (section 7)
13705 Section extraction test (section 8)
13725 Section extraction test (section 9)
13746 Section extraction test (section 10)
13766 Section extraction test (nonexistent section 11)
13785 Section extraction test with bogus heading (section 1)
13790 ==bogus== not a legal section
13794 ==bogus== not a legal section
13798 Section extraction test with bogus heading (section 2)
13803 ==bogus== not a legal section
13810 Section extraction test with comment after heading (section 1)
13822 Section extraction test with comment after heading (section 2)
13834 Section extraction test with bogus <nowiki> heading (section 1)
13839 ==bogus== <nowiki>not a legal section</nowiki>
13843 ==bogus== <nowiki>not a legal section</nowiki>
13847 Section extraction test with bogus <nowiki> heading (section 2)
13852 ==bogus== <nowiki>not a legal section</nowiki>
13859 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
13860 # instead of respecting commented sections
13862 Section extraction prefixed by comment (section 1)
13873 Section extraction prefixed by comment (section 2)
13884 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
13885 # instead of respecting HTML-style headings
13887 Section extraction, mixed wiki and html (section 1)
13903 Section extraction, mixed wiki and html (section 2)
13919 # Formerly testing for bug 3342
13921 Section extraction, heading surrounded by <noinclude>
13925 <noinclude>==unmarked==</noinclude>
13931 # Test behavior of bug 19910
13933 Sectiion with all-equals
13938 The line above must have a trailing space
13941 But just in case it doesn't...
13945 But just in case it doesn't...
13949 Section replacement test (section 0)
13980 Section replacement test (section 1)
14009 Section replacement test (section 2)
14039 Section replacement test (section 3)
14070 Section replacement test (section 4)
14097 Section replacement test (section 5)
14128 Section replacement test (section 6)
14158 Section replacement test (section 7)
14189 Section replacement test (section 8)
14220 Section replacement test (section 9)
14249 Section replacement test (section 10)
14279 Section replacement test with initial whitespace (bug 13728)
14283 Preformatted initial line
14287 Preformatted initial line
14294 Section extraction, heading followed by pre with 20 spaces (bug 6398)
14306 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
14319 Section extraction, <pre> around bogus header (bug 10309)
14336 Section replacement, <pre> around bogus header (bug 10309)
14338 noxml replace=2,"xxx"
14359 Handling of 
 in URLs
14365 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
14373 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
14375 5 quotes, code coverage +1 line
14380 <p><b><i></i></b></p>
14384 Special:Search page linking.
14388 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
14395 title=[[Parser test]]
14400 * {{FULLPAGENAMEE}}
14402 * {{BASEPAGENAMEE}}
14406 * {{ROOTPAGENAMEE}}
14408 * {{TALKPAGENAMEE}}
14409 * {{SUBJECTPAGENAME}}
14410 * {{SUBJECTPAGENAMEE}}
14413 * {{NAMESPACENUMBER}}
14417 * {{SUBJECTSPACEE}}
14418 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
14441 <li> Talk:Parser test
14443 <li> Talk:Parser_test
14463 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
14468 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
14478 image4 |300px| centre
14479 image5.svg| http://///////
14484 <ul class="gallery mw-gallery-traditional">
14485 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14486 <div class="thumb" style="height: 150px;">Image1.png</div>
14487 <div class="gallerytext">
14490 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14491 <div class="thumb" style="height: 150px;">Image2.gif</div>
14492 <div class="gallerytext">
14497 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14498 <div class="thumb" style="height: 150px;">Image3</div>
14499 <div class="gallerytext">
14502 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14503 <div class="thumb" style="height: 150px;">Image4</div>
14504 <div class="gallerytext">
14509 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14510 <div class="thumb" style="height: 150px;">Image5.svg</div>
14511 <div class="gallerytext">
14512 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
14516 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14517 <div class="thumb" style="height: 150px;">* image6</div>
14518 <div class="gallerytext">
14526 Gallery (with options)
14528 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
14529 File:Nonexistant.jpg|caption
14530 File:Nonexistant.jpg
14531 image:foobar.jpg|some '''caption''' [[Main Page]]
14533 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
14536 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
14537 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
14538 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14539 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14540 <div class="gallerytext">
14545 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14546 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14547 <div class="gallerytext">
14550 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14551 <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>
14552 <div class="gallerytext">
14553 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14557 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14558 <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>
14559 <div class="gallerytext">
14562 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14563 <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>
14564 <div class="gallerytext">
14574 Gallery with wikitext inside caption
14577 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
14578 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
14581 <ul class="gallery mw-gallery-traditional">
14582 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14583 <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>
14584 <div class="gallerytext">
14585 <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>
14589 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14590 <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>
14591 <div class="gallerytext">
14592 <p>This is a test template
14601 gallery (with showfilename option)
14603 <gallery showfilename>
14604 File:Nonexistant.jpg|caption
14605 File:Nonexistant.jpg
14606 image:foobar.jpg|some '''caption''' [[Main Page]]
14610 <ul class="gallery mw-gallery-traditional">
14611 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14612 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14613 <div class="gallerytext">
14614 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14619 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14620 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14621 <div class="gallerytext">
14622 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14626 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14627 <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>
14628 <div class="gallerytext">
14629 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14630 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14634 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14635 <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>
14636 <div class="gallerytext">
14637 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14646 Gallery (with namespace-less filenames)
14649 File:Nonexistant.jpg
14655 <ul class="gallery mw-gallery-traditional">
14656 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14657 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14658 <div class="gallerytext">
14661 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14662 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14663 <div class="gallerytext">
14666 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14667 <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>
14668 <div class="gallerytext">
14671 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14672 <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>
14673 <div class="gallerytext">
14681 HTML Hex character encoding (spells the word "JavaScript")
14683 JavaScript
14685 <p>JavaScript
14690 HTML Hex character encoding bogus encoding (bug 26437 regression check)
14694 <p>&#xsee;&#XSEE;
14699 HTML Hex character encoding mixed case
14708 __FORCETOC__ override
14720 ISBN 978-0-1234-56 789
14722 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
14727 ISBN followed by 5 spaces
14738 ISBN ISBN 1234567890
14740 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14749 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
14754 ISBN with empty prefix (parsoid test)
14758 <p><a href="Special:BookSources/1234567890" rel="mw:ExtLink">ISBN 1234567890</a></p>
14762 Bug 22905: <abbr> followed by ISBN followed by </a>
14764 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
14766 <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>
14775 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
14780 Double RFC with a wiki link
14784 <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>
14793 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
14798 Centre-aligned image
14800 [[Image:foobar.jpg|centre]]
14802 <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>
14809 [[Image:foobar.jpg|none]]
14811 <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>
14816 Width + Height sized image (using px) (height is ignored)
14818 [[Image:foobar.jpg|640x480px]]
14820 <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>
14825 Width-sized image (using px, no following whitespace)
14827 [[Image:foobar.jpg|640px]]
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, with following whitespace - test regression from r39467)
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 preceding 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 Another italics / bold test
14860 # Note the results may be incorrect, as parserTest output included this:
14861 # XML error: Mismatched tag at byte 6120:
14862 # ...<dd> </dt></dl> </dd...
14893 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
14895 Images with the "|" character in the comment
14897 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
14899 <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>
14904 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14906 <html><script>alert(1);</script></html>
14908 <p><html><script>alert(1);</script></html>
14913 HTML with raw HTML ($wgRawHtml==true)
14917 <html><script>alert(1);</script></html>
14919 <p><script>alert(1);</script>
14924 Parents of subpages, one level up
14926 subpage title=[[Subpage test/L1/L2/L3]]
14930 <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>
14936 Parents of subpages, one level up, not named
14938 subpage title=[[Subpage test/L1/L2/L3]]
14942 <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>
14949 Parents of subpages, two levels up
14951 subpage title=[[Subpage test/L1/L2/L3]]
14957 <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
14958 </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>
14963 Parents of subpages, two levels up, without trailing slash or name.
14965 subpage title=[[Subpage test/L1/L2/L3]]
14974 Parents of subpages, two levels up, with lots of extra trailing slashes.
14976 subpage title=[[Subpage test/L1/L2/L3]]
14980 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14985 Subpage test/L1/L2/L3Sibling
14991 Transclusion of a sibling page (one level up)
14993 subpage title=[[Subpage test/L1/L2/L3]]
15002 Transclusion of a child page
15004 subpage title=[[Subpage test/L1/L2]]
15013 Non-transclusion because of too many up levels
15015 subpage title=[[Subpage test/L1/L2/L3]]
15017 {{../../../../More than parent}}
15019 <p>{{../../../../More than parent}}
15024 Definition list code coverage
15031 <dt> title  </dt>
15034 <dt> title </dt>
15045 Don't fall for the self-closing div
15047 <div>hello world</div/>
15049 <div>hello world</div>
15058 <p>[[:Template:Msg]]
15067 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
15071 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
15073 Always escape literal '>' in output, not just after '<'
15087 <p>This is a test template
15088 This is a test template
15100 Inclusion of !userCanEdit() content
15104 <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>
15110 Out-of-order TOC heading levels
15119 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15121 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
15123 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
15124 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
15127 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
15129 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
15130 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
15136 <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>
15137 <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>
15138 <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>
15139 <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>
15140 <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>
15141 <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>
15147 ISBN with a dummy number
15157 ISBN with space-delimited number
15161 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
15167 ISBN with multiple spaces, no number
15186 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
15187 </p><p>ISBN 12345678901
15193 ISBN with trailing year (bug 8110)
15195 ISBN 1-234-56789-0 - 2006
15197 ISBN 1 234 56789 0 - 2006
15199 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
15200 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
15208 {{anchorencode:foo bar©#%n}}
15210 <p>foo_bar.C2.A9.23.25n
15215 anchorencode trims spaces
15217 {{anchorencode: __pretty__please__}}
15224 anchorencode deals with links
15226 {{anchorencode: [[hello|world]] [[hi]]}}
15233 anchorencode deals with templates
15235 {{anchorencode: {{Foo}} }}
15242 anchorencode encodes like the TOC generator: (bug 18431)
15244 === _ +:.3A%3A&&]] ===
15245 {{anchorencode: _ +:.3A%3A&&]] }}
15248 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
15249 <p>.2B:.3A.253A.26.26.5D.5D
15254 Bug 6200: blockquotes and paragraph formatting
15275 Bug 8293: Use of center tag ruins paragraph formatting
15296 Parsing of overlapping (improperly nested) inline html tags
15298 <span><s>x</span></s>
15300 <p><span><s>x</span></s></span>
15303 <p><span><s>x</s></span>
15308 ### Language variants related tests
15311 Self-link in language variants
15313 title=[[Dunav]] language=sr
15315 Both [[Dunav]] and [[Дунав]] are names for this river.
15317 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
15328 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
15330 title=[[Duna]] language=sr
15332 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
15334 <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.
15339 Link to a section of a variant of this title shouldn't be parsed as self-link
15341 title=[[Duna]] language=sr
15343 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
15345 <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.
15350 Link to pages in language variants
15354 Main Page can be written as [[Маин Паге]]
15356 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
15362 Multiple links to pages in language variants
15366 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
15368 <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>.
15374 Simple template in language variants
15380 <p>This is a test template
15386 Template with explicit namespace in language variants
15392 <p>This is a test template
15398 Basic test for template parameter in language variants
15402 {{парамтест|param=foo}}
15404 <p>This is a test template with parameter foo
15410 Simple category in language variants
15414 [[Category:МедиаWики Усер'с Гуиде]]
15416 <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>
15433 Don't convert blue categorylinks to another variant (bug 33210)
15437 [[A]][[Category:分类]]
15439 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
15444 Stripping -{}- tags (language variants)
15448 Latin proverb: -{Ne nuntium necare}-
15450 <p>Latin proverb: Ne nuntium necare
15456 Prevent conversion with -{}- tags (language variants)
15458 language=sr variant=sr-ec
15460 Latinski: -{Ne nuntium necare}-
15462 <p>Латински: Ne nuntium necare
15468 Prevent conversion of text with -{}- tags (language variants)
15470 language=sr variant=sr-ec
15472 Latinski: -{Ne nuntium necare}-
15474 <p>Латински: Ne nuntium necare
15480 Prevent conversion of links with -{}- tags (language variants)
15482 language=sr variant=sr-ec
15486 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15492 -{}- tags within headlines (within html for parserConvert())
15494 language=sr variant=sr-ec
15498 <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>
15504 Explicit definition of language variant alternatives
15506 language=zh variant=zh-tw
15508 -{zh:China;zh-tw:Taiwan}-, not China
15510 <p>Taiwan, not China
15516 Conversion around HTML tags
15518 language=sr variant=sr-ec
15520 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
15521 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
15524 <span title="ЛаCтин">ски</span>
15530 Explicit session-wise language variant mapping (A flag and - flag)
15532 language=zh variant=zh-tw
15534 Taiwan is not China.
15535 But -{A|zh:China;zh-tw:Taiwan}- is China,
15536 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
15537 and -{China}- is China.
15539 <p>Taiwan is not China.
15540 But Taiwan is Taiwan,
15541 (This should be stripped!)
15542 and China is China.
15547 Explicit session-wise language variant mapping (H flag for hide)
15549 language=zh variant=zh-tw
15551 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
15554 <p>(This should be stripped!)
15560 Adding explicit conversion rule for title (T flag)
15562 language=zh variant=zh-tw showtitle
15564 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15567 <p>Should be stripped!
15572 Testing that changing the language variant here in the tests actually works
15574 language=zh variant=zh showtitle
15576 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15579 <p>Should be stripped!
15584 Recursive conversion of alt and title attrs shouldn't clear converter state
15586 language=zh variant=zh-cn showtitle
15588 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
15589 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
15593 Should be stripped<span title="Exclamation">!</span>
15598 Bug 24072: more test on conversion rule for title
15600 language=zh variant=zh-tw showtitle
15602 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15603 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
15606 <p>This should be stripped!
15607 This won't take interferes with the title rule.
15612 Partly disable title conversion if variant == main language code
15614 language=zh variant=zh title=[[ZH]] showtitle
15616 -{T|zh-cn:CN;zh-tw:TW}-
15624 Partly disable title conversion if variant == main language code, more
15626 language=zh variant=zh title=[[ZH]] showtitle
15636 Raw output of variant escape tags (R flag)
15638 language=zh variant=zh-tw
15640 Raw: -{R|zh:China;zh-tw:Taiwan}-
15642 <p>Raw: zh:China;zh-tw:Taiwan
15647 Nested using of manual convert syntax
15649 language=zh variant=zh-hk
15651 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
15653 <p>Nested: Hello Hong Kong!
15658 Proper conversion of text in external links
15660 language=sr variant=sr-ec
15662 http://www.google.com
15663 gopher://www.google.com
15664 [http://www.google.com http://www.google.com]
15665 [gopher://www.google.com gopher://www.google.com]
15666 [https://www.google.com irc://www.google.com]
15667 [ftp://www.google.com www.google.com/ftp://dir]
15668 [//www.google.com www.google.com]
15670 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15671 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15672 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15673 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15674 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
15675 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
15676 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
15681 Do not convert roman numbers to language variants
15683 language=sr variant=sr-ec
15687 <p>Фридрих IV је цар.
15692 Unclosed language converter markup "-{"
15703 Don't convert raw rule "-{R|=>}-" to "=>"
15714 Don't break link parsing if language converter markup is in the caption.
15716 language=sr variant=sr-ec
15718 [[Main Page|-{R|main page}-]]
15720 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
15724 # This test is currently broken in the PHP parser (bug 52661)
15726 Don't break image parsing if language converter markup is in the caption.
15731 [[File:Foobar.jpg|-{R|caption}-]]
15733 <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>
15737 # This test is currently broken in the PHP parser (bug 52661)
15739 Don't break list handling if language converter markup is in the item.
15741 language=zh variant=zh-cn
15744 ;-{zh-cn:AAA;zh-tw:BBB}-
15751 # This test is currently broken in the PHP parser (bug 52661)
15753 Don't break table handling if language converter markup is in the cell.
15755 language=sr variant=sr-ec
15772 Bug 529: Uncovered bullet
15785 # Plain MediaWiki does not remove empty lists, but tidy actually does.
15786 # Templates in Wikipedia rely on this behavior, as tidy has always been
15787 # enabled there. These tests are normally run *without* tidy, so specify the
15788 # full output here.
15789 # To test realistic parsing behavior, apply a tidy-like transformation to both
15790 # the expected output and your parser's output.
15792 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
15794 ******* Foo {{bullet}}
15824 Bug 529: Uncovered table already at line-start
15847 Bug 529: Uncovered bullet in parser function result
15849 * Foo {{lc:{{bullet}} }}
15861 Bug 5678: Double-parsed template argument
15863 {{lc:{{{1}}}|hello}}
15870 Bug 5678: Double-parsed template invocation
15872 {{lc:{{paramtest {{!}} param = hello }} }}
15874 <p>{{paramtest | param = hello }}
15879 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
15882 title=[[Main Page]]
15884 {{PRVNÍVELKÉ:ěščř}}
15885 {{prvnívelké:ěščř}}
15905 Morwen/13: Unclosed link followed by heading
15912 <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>
15917 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
15924 <h1><span class="mw-headline" id="heading">heading</span></h1>
15929 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
15936 <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>
15951 Paragraphs inside divs (no extra line breaks)
15963 Paragraphs inside divs (extra line break on open)
15978 Paragraphs inside divs (extra line break on close)
15993 Paragraphs inside divs (extra line break on open and close)
16010 Nesting tags, paragraphs on lines which begin with <div>
16014 <div></div><strong>A
16023 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
16025 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
16027 <blockquote>Line one
16029 Line two</blockquote>
16031 <blockquote>Line one
16032 Line two</blockquote>
16037 Bug 6200: paragraphs inside blockquotes (extra line break on open)
16042 Line two</blockquote>
16047 Line two</blockquote>
16052 Bug 6200: paragraphs inside blockquotes (extra line break on close)
16054 <blockquote>Line one
16059 <blockquote>Line one
16067 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
16084 Paragraphs inside blockquotes/divs (no extra line breaks)
16086 <blockquote><div>Line one
16088 Line two</div></blockquote>
16090 <blockquote><div>Line one
16091 Line two</div></blockquote>
16096 Paragraphs inside blockquotes/divs (extra line break on open)
16101 Line two</div></blockquote>
16106 Line two</div></blockquote>
16111 Paragraphs inside blockquotes/divs (extra line break on close)
16113 <blockquote><div>Line one
16116 </div></blockquote>
16118 <blockquote><div>Line one
16121 </div></blockquote>
16126 Paragraphs inside blockquotes/divs (extra line break on open and close)
16132 </div></blockquote>
16138 </div></blockquote>
16143 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
16145 wgLinkHolderBatchSize=0
16151 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
16152 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
16153 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
16158 Free external link invading image caption
16160 [[Image:Foobar.jpg|thumb|http://x|hello]]
16162 <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>
16167 Bug 15196: localised external link numbers
16171 [http://en.wikipedia.org/]
16173 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
16178 Multibyte character in padleft
16180 {{padleft:-Hello|7|Æ}}
16187 Multibyte character in padright
16189 {{padright:Hello-|7|Æ}}
16196 formatdate parser function
16198 {{#formatdate:2009-03-24}}
16200 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
16205 formatdate parser function, with default format
16207 {{#formatdate:2009-03-24|mdy}}
16209 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
16214 Spacing of numbers in formatted dates
16216 {{#formatdate:January 15}}
16218 <p><span class="mw-formatted-date" title="01-15">January 15</span>
16223 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
16225 language=nl title=[[MediaWiki:Common.css]]
16227 {{#formatdate:2009-03-24|dmy}}
16229 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
16242 Edit comment with link
16246 I like the [[Main Page]] a lot
16248 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
16252 Edit comment with link and link text
16256 I like the [[Main Page|best pages]] a lot
16258 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16262 Edit comment with link and link text with suffix
16266 I like the [[Main Page|best page]]s a lot
16268 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16272 Edit comment with section link (non-local, eg in history list)
16274 comment title=[[Main Page]]
16276 /* External links */ removed bogus entries
16278 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16282 Edit comment with section link and text before it (non-local, eg in history list)
16284 comment title=[[Main Page]]
16286 pre-comment text /* External links */ removed bogus entries
16288 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>
16292 Edit comment with section link (local, eg in diff view)
16294 comment local title=[[Main Page]]
16296 /* External links */ removed bogus entries
16298 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16302 Edit comment with subpage link (bug 14080)
16306 title=[[Subpage test]]
16308 Poked at a [[/subpage]] here...
16310 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
16314 Edit comment with subpage link and link text (bug 14080)
16318 title=[[Subpage test]]
16320 Poked at a [[/subpage|neat little page]] here...
16322 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
16326 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
16329 title=[[Subpage test]]
16331 Poked at a [[/subpage]] here...
16333 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
16337 Edit comment with bare anchor link (local, as on diff)
16341 title=[[Main Page]]
16345 <a href="#section">#section</a>
16349 Edit comment with bare anchor link (non-local, as on history)
16352 title=[[Main Page]]
16356 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
16360 Anchor starting with underscore
16364 <p><a href="#_ref">One</a>
16369 Id starting with underscore
16371 <div id="_ref"></div>
16373 <div id="_ref"></div>
16378 Space normalisation on autocomment (bug 22784)
16381 title=[[Main Page]]
16383 /* __hello__world__ */
16385 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
16389 percent-encoding and + signs in comments (Bug 26410)
16393 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
16395 <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>
16399 Bad images - basic functionality
16408 Bad images - bug 16039: text after bad image disappears
16422 Verify that displaytitle works (bug #22501) no displaytitle
16426 wgAllowDisplayTitle=true
16427 wgRestrictDisplayTitle=false
16429 this is not the the title
16432 <p>this is not the the title
16437 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
16442 wgAllowDisplayTitle=true
16443 wgRestrictDisplayTitle=false
16445 this is not the the title
16446 {{DISPLAYTITLE:whatever}}
16449 <p>this is not the the title
16454 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
16459 wgAllowDisplayTitle=true
16460 wgRestrictDisplayTitle=true
16462 this is not the the title
16463 {{DISPLAYTITLE:whatever}}
16466 <p>this is not the the title
16471 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
16476 wgAllowDisplayTitle=true
16477 wgRestrictDisplayTitle=true
16479 this is not the the title
16480 {{DISPLAYTITLE:screen}}
16483 <p>this is not the the title
16488 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
16493 wgAllowDisplayTitle=false
16495 this is not the the title
16496 {{DISPLAYTITLE:screen}}
16499 <p>this is not the the title
16500 <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>
16505 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
16510 wgAllowDisplayTitle=false
16512 this is not the the title
16515 <p>this is not the the title
16520 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
16525 wgAllowDisplayTitle=true
16526 wgRestrictDisplayTitle=true
16528 this is not the the title
16529 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
16531 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
16532 <p>this is not the the title
16537 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
16542 wgAllowDisplayTitle=true
16543 wgRestrictDisplayTitle=true
16545 this is not the the title
16546 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
16548 <span style="color: red;">s</span>creen
16549 <p>this is not the the title
16554 preload: check <noinclude> and <includeonly>
16558 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
16564 preload: check <onlyinclude>
16568 Goodbye <onlyinclude>Hello world</onlyinclude>
16574 preload: can pass tags through if we want to
16578 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
16580 <includeonly>Hello world</includeonly>
16584 preload: check that it doesn't try to do tricks
16588 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16590 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16594 Play a bit with r67090 and bug 3158
16598 <div style="width:50% !important"> </div>
16599 <div style="width:50% !important"> </div>
16600 <div style="width:50% !important"> </div>
16601 <div style="border : solid;"> </div>
16603 <div style="width:50% !important"> </div>
16604 <div style="width:50% !important"> </div>
16605 <div style="width:50% !important"> </div>
16606 <div style="border : solid;"> </div>
16611 HTML5 data attributes
16613 <span data-foo="bar">Baz</span>
16614 <p data-abc-def_hij="">Quuz</p>
16616 <p><span data-foo="bar">Baz</span>
16618 <p data-abc-def_hij="">Quuz</p>
16623 percent-encoding and + signs in internal links (Bug 26410)
16625 [[User:+%]] [[Page+title%]]
16626 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
16627 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
16628 [[%33%45]] [[%33%45+]]
16630 <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>
16631 <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>
16632 <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>
16633 <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>
16638 Special characters in embedded file links (bug 27679)
16640 [[File:Contains & ampersand.jpg]]
16641 [[File:Does not exist.jpg|Title with & ampersand]]
16643 <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>
16644 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
16650 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
16652 Text's been normalized?
16654 <p>Text's been normalized?
16659 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
16661 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
16663 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
16668 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
16670 [http://www.example.org/ ideograms]
16672 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
16677 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
16679 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
16681 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
16705 Bug 31098 Template which includes system messages which includes the template
16709 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16710 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16715 Bug31490 Turkish: ucfirst 'blah'
16726 Bug31490 Turkish: ucfirst 'ix'
16737 Bug31490 Turkish: lcfirst 'BLAH'
16748 Bug31490 Turkish: ucfırst (with a dotless i)
16754 <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>
16759 Bug31490 ucfırst (with a dotless i) with English language
16765 <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>
16770 Bug 26375: TOC with italics
16772 title=[[Main Page]]
16775 == ''Lost'' episodes ==
16777 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16779 <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>
16783 <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>
16788 Bug 26375: TOC with bold
16790 title=[[Main Page]]
16793 == '''should be bold''' then normal text ==
16795 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16797 <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>
16801 <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>
16806 Bug 33845: Headings become cursive in TOC when they contain an image
16808 title=[[Main Page]]
16811 == Image [[Image:foobar.jpg]] ==
16813 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16815 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
16819 <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>
16824 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
16826 title=[[Main Page]]
16829 == <blockquote>Quote</blockquote> ==
16831 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16833 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
16837 <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>
16842 Unclosed tags in TOC
16844 title=[[Main Page]]
16848 <small>Hanc marginis exiguitas non caperet.</small>
16851 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16853 <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>
16857 <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>
16858 <p><small>Hanc marginis exiguitas non caperet.</small>
16864 Multiple tags in TOC
16867 == <i>Foo</i> <b>Bar</b> ==
16869 == <i>Foo</i> <blockquote>Bar</blockquote> ==
16871 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16873 <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>
16874 <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>
16878 <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>
16879 <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>
16884 Tags with parameters in TOC
16887 == <sup class="in-h2">Hello</sup> ==
16889 == <sup class="a > b">Evilbye</sup> ==
16891 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16893 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
16894 <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>
16898 <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>
16899 <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>
16904 span tags with directionality in TOC
16907 == <span dir="ltr">C++</span> ==
16909 == <span dir="rtl">זבנג!</span> ==
16911 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
16913 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
16915 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
16917 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16919 <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>
16920 <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>
16921 <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>
16922 <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>
16923 <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>
16927 <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>
16928 <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>
16929 <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>
16930 <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>
16931 <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>
16938 == {{int:headline_sample}} ==
16942 Bug 32057: Title needed when expanding <h> nodes.
16944 title=[[Main Page]]
16948 <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>
16953 Strip marker in urlencode
16955 {{urlencode:x<nowiki/>y}}
16956 {{urlencode:x<nowiki/>y|wiki}}
16957 {{urlencode:x<nowiki/>y|path}}
16984 Strip marker in formatNum
16986 {{formatnum:1<nowiki/>2}}
16987 {{formatnum:1<nowiki/>2|R}}
16995 Check noCommafy in formatNum
16999 {{formatnum:123456.78}}
17000 {{formatnum:123456.78|NOSEP}}
17008 Wrong option for formatNum (bug 56199)
17010 {{formatnum:1,234.56|Random}}
17011 {{formatnum:1,234.56|EVERYTHING}}
17012 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
17021 Strip marker in grammar
17025 {{grammar:elative|foo<nowiki/>bar}}
17032 Strip marker in padleft
17034 {{padleft:|2|x<nowiki/>y}}
17041 Strip marker in padright
17043 {{padright:|2|x<nowiki/>y}}
17050 Strip marker in anchorencode
17052 {{anchorencode:x<nowiki/>y}}
17059 nowiki inside link inside heading (bug 18295)
17061 ==[[foo|x<nowiki>y</nowiki>z]]==
17063 <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>
17068 new support for bdi element (bug 31817)
17070 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17072 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17077 Ignore pipe between table row attributes
17081 |- id=foo | style='color: red'
17089 <tr id="foo" style="color: red">
17096 Gallery override link with WikiLink (bug 34852)
17099 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
17102 <ul class="gallery mw-gallery-traditional">
17103 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17104 <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>
17105 <div class="gallerytext">
17115 Gallery override link with absolute external link (bug 34852)
17118 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
17121 <ul class="gallery mw-gallery-traditional">
17122 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17123 <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>
17124 <div class="gallerytext">
17134 Gallery override link with malicious javascript (bug 34852)
17137 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
17140 <ul class="gallery mw-gallery-traditional">
17141 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17142 <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>
17143 <div class="gallerytext">
17153 Gallery with invalid title as link (bug 43964)
17156 File:foobar.jpg|link=<
17159 <ul class="gallery mw-gallery-traditional">
17160 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17161 <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>
17162 <div class="gallerytext">
17170 Language parser function
17179 Padleft and padright as substr
17181 {{padleft:|3|abcde}}
17182 {{padright:|3|abcde}}
17190 Special parser function
17192 {{#special:RandomPage}}
17193 {{#special:BaDtItLe}}
17194 {{#special:Foobar}}
17203 Bug 34939 - Case insensitive link parsing ([HttP://])
17205 [HttP://MediaWiki.Org/]
17207 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
17212 Bug 34939 - Case insensitive link parsing ([HttP:// title])
17214 [HttP://MediaWiki.Org/ MediaWiki]
17216 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
17221 Bug 34939 - Case insensitive link parsing (HttP://)
17223 HttP://MediaWiki.Org/
17225 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
17244 <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>
17245 <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>
17246 <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>
17247 <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>
17248 <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>
17254 ### Parsoids-specific tests
17255 ### Parsoid-PHP parser incompatibilities
17258 1. SOL-sensitive wikitext tokens as template-args
17260 parsoid=wt2html,wt2wt
17266 <span about="#mwt1" typeof="mw:Transclusion">
17267 </span><ul about="#mwt1"><li>a</li>
17269 <span about="#mwt2" typeof="mw:Transclusion">
17270 </span><ol about="#mwt2"><li>a</li>
17272 <span about="#mwt3" typeof="mw:Transclusion">
17273 </span><dl about="#mwt3"><dd>a</dd>
17277 #### ----------------------------------------------------------------
17278 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
17279 #### tags. Parsoid's output for these tags differs from that of the
17281 #### ----------------------------------------------------------------
17284 Ref: 1. ref-location should be replaced with an index span
17289 B <ref name="x">foo</ref>
17292 <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>
17293 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>
17294 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>
17298 Ref: 2. ref-tags with identical names should all get the same index
17302 A <ref name="x">foo</ref>
17305 <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>
17306 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>
17310 Ref: 3. spaces in ref-names should be ignored
17314 A <ref name="x">foo</ref>
17315 B <ref name=" x " />
17318 <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>
17319 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>
17320 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>
17324 Ref: 4. 'constructor' should be accepted as a valid ref-name
17325 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
17329 A <ref name="constructor">foo</ref>
17331 <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>
17335 Ref: 5. body should accept generic wikitext
17340 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
17345 <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>
17347 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
17348 <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>
17354 Ref: 6. indent-pres should not be output in ref-body
17366 <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>
17368 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
17369 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17377 Ref: 7. No p-wrapping in ref-body
17396 <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>
17398 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17399 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17414 Ref: 8. transclusion wikitext has lower precedence
17418 A <ref> foo {{echo|</ref> B C}}
17422 <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>
17423 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
17424 <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>
17429 Ref: 9. unclosed comments should not leak out of ref-body
17433 A <ref> foo <!--</ref> B C
17436 <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>
17437 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17438 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
17443 Ref: 10. Unclosed HTML tags should not leak out of ref-body
17447 A <ref> <b> foo </ref> B C
17451 <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>
17454 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17455 <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>
17460 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
17467 <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
17468 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>
17472 Ref: 12. ref-tags act as trailing newline migration barrier
17476 <!--the newline at the end of this line moves out of the p-tag-->a
17478 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
17483 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
17486 <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>
17487 <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>
17494 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
17502 <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
17503 <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>
17507 Ref: 14. A nested ref-tag should be emitted as plain text
17511 <ref>foo <ref>bar</ref> baz</ref>
17515 <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>
17517 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17518 <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>
17523 Ref: 15. ref-tags with identical names should get identical indexes
17527 A1 <ref name="a">foo</ref> A2 <ref name="a" />
17528 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
17532 <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>
17533 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>
17535 <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>
17539 ## We don't bother wt2wt-ing non-standard whitespace
17541 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
17549 <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>
17551 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17552 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
17556 References: 1. references tag without any refs should be handled properly
17562 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
17566 References: 2. references tag with group only outputs references from that group
17570 A <ref group="a">foo</ref>
17571 B <ref group="b">bar</ref>
17573 <references group="a" />
17575 <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>
17576 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>
17578 <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>
17583 References: 3. ref list should be cleared after processing references
17595 <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>
17597 <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>
17600 <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>
17602 <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>
17607 References: 4. only referenced group should be cleared after processing references
17611 A <ref group="a">afoo</ref>
17614 <references group="a" />
17620 <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>
17621 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>
17623 <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>
17626 <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>
17628 <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>
17633 References: 5. ref tags in references should be processed while ignoring all other content
17638 B <ref name="b">bar</ref>
17641 <ref name="a">foo</ref>
17642 This should just get lost.
17645 <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>
17646 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>
17649 <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":{}}'>
17650 <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>
17651 <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>
17656 References: 6. <references /> from a transclusion
17660 <ref>Foo</ref> {{echo|<references />}}
17662 <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>
17666 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
17670 A <ref>foo bar for a</ref>
17671 B <ref group="X" name="b" />
17675 <references group="X">
17676 <ref name="b">foo</ref>
17679 <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>
17680 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>
17682 <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>
17684 <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>
17687 # This test is wt2html only because we're permitting the serializer to produce
17688 # dirty diffs, normalizing the unclosed references to the self-closed version.
17690 Generate references for unclosed references tag
17698 <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>
17701 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
17702 <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>
17706 New reference serializes on its own line
17708 parsoid=wt2wt,html2wt
17713 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
17716 #### ----------------------------------------------------------------
17717 #### The following section of tests are primarily to test
17718 #### wikitext escaping capabilities of Parsoid. Given that
17719 #### escaping can be done any number of ways, the wikitext (input)
17720 #### is always adjusted to reflect how Parsoid adds nowiki
17723 #### We are marking several tests as parsoid-only since the
17724 #### HTML in the result section is different from what the
17725 #### PHP parser generates for it.
17726 #### ----------------------------------------------------------------
17729 #### --------------- Headings ---------------
17731 #### 1. Nested inside html <h1>=foo=</h1>
17732 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
17733 #### 3. Nested inside html with wikitext split by html tags
17734 #### 4. No escape needed
17735 #### 5. Empty headings <h1></h1>
17736 #### 6. Heading chars in SOL context
17737 #### ----------------------------------------
17739 Headings: 0. Unnested
17743 <nowiki>=foo=</nowiki>
17745 <nowiki> =foo= </nowiki>
17747 <nowiki>=foo=</nowiki>
17749 =foo''a''<nowiki>=</nowiki>
17751 <p><span typeof="mw:Nowiki">=foo=</span></p>
17753 <p><span typeof="mw:Nowiki"> =foo= </span>
17755 <span typeof="mw:Nowiki">=foo=</span></p>
17757 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
17761 Headings: 1. Nested inside html
17762 (New headings and existing headings are handled differently)
17772 =<nowiki>=foo=</nowiki>=
17773 ==<nowiki>=foo=</nowiki>==
17774 ===<nowiki>=foo=</nowiki>===
17775 ====<nowiki>=foo=</nowiki>====
17776 =====<nowiki>=foo=</nowiki>=====
17777 ======<nowiki>=foo=</nowiki>======
17784 <h1 data-parsoid='{}'>=foo=</h1>
17785 <h2 data-parsoid='{}'>=foo=</h2>
17786 <h3 data-parsoid='{}'>=foo=</h3>
17787 <h4 data-parsoid='{}'>=foo=</h4>
17788 <h5 data-parsoid='{}'>=foo=</h5>
17789 <h6 data-parsoid='{}'>=foo=</h6>
17793 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
17798 <nowiki>*</nowiki>bar
17804 <nowiki>=bar=</nowiki>
17812 Headings: 3. Nested inside html with wikitext split by html tags
17816 = ='''bold'''<nowiki>foo=</nowiki> =
17818 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
17822 Headings: 4a. No escaping needed (testing just h1 and h2)
17840 = <nowiki>=</nowiki> =
17848 <h1><i>=</i>foo=</h1>
17849 <h1><span typeof="mw:Nowiki">=</span></h1>
17853 Headings: 4b. No escaping needed (inside p-tags)
17868 Headings: 5. Empty headings
17880 =====<nowiki/>=====
17882 ======<nowiki/>======
17893 Headings: 6a. Heading chars in SOL context (with trailing spaces)
17897 <nowiki>=a=</nowiki>
17899 <nowiki>=a=</nowiki>
17901 <nowiki>=a=</nowiki>
17903 <nowiki>=a=</nowiki>
17912 Headings: 6b. Heading chars in SOL context (with trailing newlines)
17940 Headings: 6c. Heading chars in SOL context (leading newline break)
17945 <nowiki>=b=</nowiki>
17952 Headings: 6d. Heading chars in SOL context (with interspersed comments)
17956 <!--c0--><nowiki>=a=</nowiki>
17958 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
17960 <p><!--c0-->=a=</p>
17961 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
17965 Headings: 6d. Heading chars in SOL context (No escaping needed)
17974 #### --------------- Lists ---------------
17975 #### 0. Outside nests (*foo, etc.)
17976 #### 1. Nested inside html <ul><li>*foo</li></ul>
17977 #### 2. Inside definition lists
17978 #### 3. Only bullets at start should be escaped
17979 #### 4. No escapes needed
17980 #### 5. No unnecessary escapes
17981 #### 6. Escape bullets in SOL position
17982 #### 7. Escape bullets in a multi-line context
17983 #### ----------------------------------------
17986 Lists: 0. Outside nests
17988 <nowiki>*</nowiki>foo
17990 <nowiki>#</nowiki>foo
17998 Lists: 1. Nested inside html
18000 *<nowiki>*foo</nowiki>
18002 *<nowiki>#foo</nowiki>
18004 *<nowiki>:foo</nowiki>
18006 *<nowiki>;foo</nowiki>
18008 #<nowiki>*foo</nowiki>
18010 #<nowiki>#foo</nowiki>
18012 #<nowiki>:foo</nowiki>
18014 #<nowiki>;foo</nowiki>
18052 Lists: 2. Inside definition lists
18054 ;<nowiki>;foo</nowiki>
18056 ;<nowiki>:foo</nowiki>
18058 ;<nowiki>:foo</nowiki>
18061 :<nowiki>:foo</nowiki>
18085 Lists: 3. Only bullets at start of text should be escaped
18087 *<nowiki>*foo*bar</nowiki>
18089 *<nowiki>*foo</nowiki>''it''*bar
18096 <li>*foo<i>it</i>*bar
18103 Lists: 4. No escapes needed
18124 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
18128 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
18134 Lists: 5. No unnecessary escapes
18136 * bar <span><nowiki>[[foo]]</nowiki></span>
18138 *=bar <span><nowiki>[[foo]]</nowiki></span>
18140 *[[bar <span><nowiki>[[foo]]</nowiki></span>
18142 *]]bar <span><nowiki>[[foo]]</nowiki></span>
18144 *=bar <span>foo]]</span>=
18149 <li> bar <span>[[foo]]</span>
18153 <li>=bar <span>[[foo]]</span>
18157 <li>[[bar <span>[[foo]]</span>
18161 <li>]]bar <span>[[foo]]</span>
18165 <li>=bar <span>foo]]</span>=
18176 Lists: 6. Escape bullets in SOL position
18180 <!--cmt--><nowiki>*foo</nowiki>
18182 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
18186 Lists: 7. Escape bullets in a multi-line context
18189 <nowiki>*</nowiki>b
18196 #### --------------- HRs ---------------
18197 #### 1. Single line
18198 #### -----------------------------------
18201 HRs: 1. Single line
18205 ----<nowiki>----</nowiki>
18209 <hr><span typeof="mw:Nowiki">----</span>
18214 #### --------------- Tables ---------------
18215 #### 1a. Simple example
18216 #### 1b. No escaping needed (!foo)
18217 #### 1c. No escaping needed (|foo)
18218 #### 1d. No escaping needed (|}foo)
18220 #### 2a. Nested in td (<td>foo|bar</td>)
18221 #### 2b. Nested in td (<td>foo||bar</td>)
18222 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
18224 #### 3a. Nested in th (<th>foo!bar</th>)
18225 #### 3b. Nested in th (<th>foo!!bar</th>)
18226 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
18230 #### 4c. No escaping needed
18231 #### --------------------------------------
18234 Tables: 1a. Simple example
18245 Tables: 1b. No escaping needed
18254 Tables: 1c. No escaping needed
18263 Tables: 1d. No escaping needed
18272 Tables: 2a. Nested in td
18277 |<nowiki>foo|bar</nowiki>
18279 |x<div><nowiki>a|b</nowiki></div>
18283 <td>foo|bar</td></tr>
18284 <tr><td>x<div>a|b</div></td>
18289 Tables: 2b. Nested in td
18294 |<nowiki>foo||bar</nowiki>
18295 |''it''<nowiki>foo||bar</nowiki>
18299 <td><span typeof="mw:Nowiki">foo||bar</span></td>
18300 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
18304 Tables: 2c. Nested in td -- no escaping needed
18312 <table><tbody><tr><td>foo!!bar
18313 </td></tr></tbody></table>
18318 Tables: 3a. Nested in th
18326 <table><tbody><tr><th>foo!bar
18327 </th></tr></tbody></table>
18332 Tables: 3b. Nested in th
18337 !<nowiki>foo!!bar</nowiki>
18341 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
18346 Tables: 3c. Nested in th -- no escaping needed
18351 !<nowiki>foo||bar</nowiki>
18355 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
18359 Tables: 4a. Escape -
18366 |<nowiki>-bar</nowiki>
18370 <tr><th>-bar</th></tr>
18372 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
18376 Tables: 4b. Escape +
18383 |<nowiki>+bar</nowiki>
18387 <tr><th>+bar</th></tr>
18389 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
18393 Tables: 4c. No escaping needed
18414 <tr><td>foo-bar</td><td>foo+bar</td></tr>
18415 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
18421 <div>a|b</div></td>
18426 Tables: 4d. No escaping needed
18437 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
18438 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
18439 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
18444 Tables: Digest broken attributes on table and tr tag
18460 #### --------------- Links ----------------
18461 #### 1. Quote marks in link text
18462 #### 2. Wikilinks: Escapes needed
18463 #### 3. Wikilinks: No escapes needed
18464 #### 4. Extlinks: Escapes needed
18465 #### 5. Extlinks: No escapes needed
18466 #### --------------------------------------
18468 Links 1. Quote marks in link text
18472 [[Foo|Foo<nowiki>''boo''</nowiki>]]
18474 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
18478 Links 2. WikiLinks: Escapes needed
18483 [[Foo|<nowiki>Foobar]</nowiki>]]
18484 [[Foo|x [Foobar] x]]
18485 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
18486 [[Foo|<nowiki>[[Bar]]</nowiki>]]
18487 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
18488 [[Foo|<nowiki>|Bar</nowiki>]]
18489 [[Foo|<nowiki>]]bar</nowiki>]]
18490 [[Foo|<nowiki>[[bar</nowiki>]]
18491 [[Foo|<nowiki>x [[ y</nowiki>]]
18492 [[Foo|<nowiki>x ]] y</nowiki>]]
18493 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
18495 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
18496 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
18497 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
18498 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
18499 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
18500 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
18501 <a href="Foo" rel="mw:WikiLink">|Bar</a>
18502 <a href="Foo" rel="mw:WikiLink">]]bar</a>
18503 <a href="Foo" rel="mw:WikiLink">[[bar</a>
18504 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
18505 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
18506 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
18510 Links 3. WikiLinks: No escapes needed
18517 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
18518 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
18522 Links 4. ExtLinks: Escapes needed
18526 [http://google.com <nowiki>[google]</nowiki>]
18527 [http://google.com <nowiki>google]</nowiki>]
18529 <nowiki>[http://google.com]</nowiki>
18531 <nowiki>[http://google.com google]</nowiki>
18534 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
18535 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
18536 <p>[http://google.com]</p>
18537 <p>[http://google.com google]</p>
18541 Links 5. ExtLinks: No escapes needed
18545 [http://google.com [google]
18547 <a href="http://google.com" rel="mw:ExtLink">[google</a>
18550 #### --------------- Quotes ---------------
18551 #### 1. Quotes inside <b> and <i>
18552 #### 2. Link fragments separated by <i> and <b> tags
18553 #### 3. Link fragments inside <i> and <b>
18554 #### 4. No escaping needed
18555 #### --------------------------------------
18557 1. Quotes inside <b> and <i>
18559 parsoid=html2wt,wt2wt
18561 ''<nowiki>'foo'</nowiki>''
18562 ''<nowiki>''foo''</nowiki>''
18563 ''<nowiki>'''foo'''</nowiki>''
18565 '''<nowiki>'foo'</nowiki>'''
18566 '''<nowiki>''foo''</nowiki>'''
18567 '''<nowiki>'''foo'''</nowiki>'''
18568 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
18569 '''foo'''<nowiki/>'s
18572 '<nowiki/>''foo''<nowiki/>'
18574 '''foo'''<nowiki/>'
18575 '<nowiki/>'''foo'''<nowiki/>'
18576 ''fools'<span> errand</span>''
18577 ''<span>fool</span>'s errand''
18586 <b>foo'<i>bar'</i>baz</b>
18594 <i>fools'<span> errand</span></i>
18595 <i><span>fool</span>'s errand</i>
18599 2. Link fragments separated by <i> and <b> tags
18601 [[''foo''<nowiki>hello]]</nowiki>
18603 [['''foo'''<nowiki>hello]]</nowiki>
18605 <p>[[<i>foo</i>hello]]
18606 </p><p>[[<b>foo</b>hello]]
18611 3. Link fragments inside <i> and <b>
18612 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
18613 this is one of the shortcomings of this format)
18615 ''[[foo''<nowiki>]]</nowiki>
18617 '''[[foo'''<nowiki>]]</nowiki>
18620 </p><p><b>[[foo</b>]]
18625 4. No escaping needed
18627 '<span>''bar''</span>'
18628 '<span>'''bar'''</span>'
18630 <p>'<span><i>bar</i></span>'
18631 '<span><b>bar</b></span>'
18635 #### ----------- Paragraphs ---------------
18636 #### 1. No unnecessary escapes
18637 #### --------------------------------------
18640 1. No unnecessary escapes
18642 bar <span><nowiki>[[foo]]</nowiki></span>
18644 =bar <span><nowiki>[[foo]]</nowiki></span>
18646 [[bar <span><nowiki>[[foo]]</nowiki></span>
18648 ]]bar <span><nowiki>[[foo]]</nowiki></span>
18650 =bar <span>foo]]</span><nowiki>=</nowiki>
18652 <p>bar <span>[[foo]]</span>
18653 </p><p>=bar <span>[[foo]]</span>
18654 </p><p>[[bar <span>[[foo]]</span>
18655 </p><p>]]bar <span>[[foo]]</span>
18656 </p><p>=bar <span>foo]]</span>=
18660 #### ----------------------- PRE --------------------------
18661 #### 1. Leading whitespace in SOL context should be escaped
18662 #### ------------------------------------------------------
18664 1. Leading whitespace in SOL context should be escaped
18668 <nowiki> </nowiki>a
18670 <nowiki> </nowiki> a
18672 <nowiki> </nowiki>a(tab)
18674 <nowiki> </nowiki> a
18676 <nowiki> </nowiki> a
18679 <nowiki> </nowiki>b
18682 <nowiki> </nowiki>b
18685 <nowiki> </nowiki> b
18691 <p><!--cmt--> a</p>
18700 #### --------------- Behavior Switches --------------------
18702 1. Valid behavior switches should be escaped
18706 <nowiki>__TOC__</nowiki>
18712 2. Invalid behavior switches should not be escaped
18723 #### --------------- HTML tags ---------------
18726 #### 3. multi-line html tag
18727 #### 4. extension tags
18728 #### -----------------------------------------
18734 <a href="http://google.com">google</a>
18736 <a href="http://google.com">google</a>
18742 <nowiki><div>foo</div>
18743 <div style="color:red">foo</div></nowiki>
18745 <p><div>foo</div>
18746 <div style="color:red">foo</div>
18751 3. multi-line html tag
18766 <nowiki><ref>foo</ref></nowiki>
18768 <nowiki><ref>bar</nowiki>
18770 baz<nowiki></ref></nowiki>
18772 <p><ref>foo</ref>
18773 </p><p><ref>bar
18774 </p><p>baz</ref>
18778 #### --------------- Others ---------------
18782 <nowiki>foo</nowiki>
18784 <p><nowiki>foo</nowiki>
18788 ## The quote-char in the input is necessary for triggering the bug
18790 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
18792 parsoid=wt2wt,html2wt
18801 Tag-like HTML structures are passed through as text
18823 </p><p>1<d e>f
18828 # This was a bug in the PHP parser (see bug 17663 and its dups,
18829 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
18831 Tag names followed by punctuation should not be recognized as tags
18835 <p><s.ome> text
18840 HTML tag with necessary entities in attributes
18842 <span title="&amp;">foo</span>
18844 <p><span title="&amp;">foo</span>
18849 HTML tag with 'unnecessary' entity encoding in attributes
18851 <span title="&">foo</span>
18853 <p><span title="&">foo</span>
18858 HTML tag with broken attribute value quoting
18860 <span title="Hello world>Foo</span>
18862 <p><span>Foo</span>
18867 Parsoid-only: HTML tag with broken attribute value quoting
18871 <span title="Hello world>Foo</span>
18873 <p><span title="Hello world">Foo</span>
18878 Table with broken attribute value quoting
18881 | title="Hello world|Foo
18892 Table with broken attribute value quoting on consecutive lines
18895 | title="Hello world|Foo
18896 | style="color:red|Bar
18909 Parsoid-only: Table with broken attribute value quoting on consecutive lines
18914 | title="Hello world|Foo
18915 | style="color:red|Bar
18920 <td title="Hello world">Foo
18921 </td><td style="color: red">Bar
18922 </td></tr></tbody></table>
18927 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18937 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18947 Accept empty td cell attribute
18950 | align="center" | foo || |
18955 <td align="center"> foo </td>
18962 Non-empty attributes in th-cells
18965 ! Foo !! style="color: red" | Bar
18971 <th style="color: red"> Bar
18977 Accept empty attributes in th-cells
18992 Empty table rows go away
19013 ### Parsoid-centric tests for testing RTing of inter-element separators
19014 ### Edge cases not tested by existing parser tests and specific to
19015 ### Parsoid-specific serialization strategies.
19019 RT-ed inter-element separators should be valid separators
19032 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
19033 (Parsoid-only since PHP parser relies on Tidy for correct output)
19049 Empty TD followed by TD with tpl-generated attribute
19054 |{{echo|style='color:red'}}|foo
19068 Indented table with an empty td
19087 Empty TR followed by a template-generated TR
19088 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
19094 {{echo|<tr><td>foo</td></tr>}}
19100 <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}}]}'>
19105 ## PHP and parsoid output differ for this, and since this is primarily
19106 ## for testing Parsoid's serializer, marking this Parsoid only
19108 Empty TR followed by mixed-ws-comment line should RT correctly
19124 <!--c--> </tr><!--d-->
19130 Multi-line image caption generated by templates with/without trailing newlines
19134 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
19135 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
19137 <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>
19138 <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>
19142 ## PHP emits broken html for this, and since this is primarily
19143 ## a Parsoid serializer test, marking this Parsoid only
19145 Improperly nested inline or quotes tags with whitespace in between
19149 <span> <s>x</span> </s>
19152 <p><span> <s>x</s></span><s> </s>
19153 <b> <i>x</i></b><i> </i>
19158 Encapsulate protected attributes from wt
19162 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
19164 <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>
19168 ## Currently the p-wrapper is fragile in how adds / removes transformations.
19169 ## Having nested or stray pre tags results in the attempt to add duplicates,
19170 ## causing an assertion fail. This test tries to prevent that situation.
19172 Ensure ParagraphWrapper can deal with stray closing pre tags
19182 1. Ensure fostered text content is wrapped in spans
19186 <table>hi</table><table>ho</table>
19195 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
19197 parsoid=wt2html,wt2wt
19204 <span> || ||</span>
19213 Encapsulation properly handles null DSR information from foster box
19215 parsoid=wt2html,wt2wt
19217 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
19219 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19222 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
19226 <td>bar</td></tr></tbody></table>
19230 1. Encapsulate foster-parented transclusion content
19232 parsoid=wt2wt,wt2html
19234 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
19236 <span typeof="mw:Transclusion" data-mw="{"parts":["
19237 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
19239 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
19243 <td>bar</td></tr></tbody></table>
19247 2. Encapsulate foster-parented transclusion content
19249 parsoid=wt2wt,wt2html
19251 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
19253 <div typeof="mw:Transclusion" data-mw="{"parts":["
19255 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
19257 <td>bar</td></tr></table>"]}">foo</div>
19261 <td>bar</td></tr></tbody></table>
19265 3. Encapsulate foster-parented transclusion content
19267 parsoid=wt2wt,wt2html
19269 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19271 <div typeof="mw:Transclusion" data-mw="{"parts":["
19274 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19276 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19281 <td>bar</td></tr></tbody></table>
19285 4. Encapsulate foster-parented transclusion content
19287 parsoid=wt2wt,wt2html
19289 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19291 <div typeof="mw:Transclusion" data-mw="{"parts":["
19294 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19296 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19301 <td>bar</td></tr></tbody></table>
19305 5. Encapsulate foster-parented transclusion content
19307 parsoid=wt2wt,wt2html
19309 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
19311 <span typeof="mw:Transclusion" data-mw="{"parts":["
19316 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
19322 <p>foo</p></div></td></tr></tbody></table>
19326 6. Encapsulate foster-parented transclusion content
19328 parsoid=wt2wt,wt2html
19330 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
19332 <span typeof="mw:Transclusion" data-mw="{"parts":["
19337 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
19343 <p>foo</p></div></td></tr></tbody></table>
19348 7. Encapsulate foster-parented transclusion content
19350 parsoid=wt2wt,wt2html
19352 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
19354 <p typeof="mw:Transclusion" data-mw="{"parts":["
19355 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19356 <p>foo</p>"}},"i":0}},"
19357 <td>bar</td></table>"]}">foo</p>
19361 <td>bar</td></tr></tbody></table>
19365 8. Encapsulate foster-parented transclusion content
19367 parsoid=wt2wt,wt2html
19370 }}{|{{echo|style='color:red'}}
19375 <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>
19379 <td>b</td></tr></tbody></table>
19383 Table in fosterable position
19385 parsoid=wt2html,wt2wt
19394 <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="{}">
19396 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
19403 Support <object> element with .data attribute
19407 <object data="test.swf"></object>
19409 <object data="test.swf"></object>
19412 # -----------------------------------------------------------------
19413 # The following section of tests are primarily to spec requirements
19414 # around serialization of new/edited content.
19416 # All these tests are marked Parsoid html2wt and html2html only
19417 # ----------------------------------------------------------------
19420 Image: Modifying size of an image (1)
19423 "modes": ["wt2wt"],
19425 ["img[height]", "attr", "height", "22"],
19426 ["img[width]", "attr", "width", "200"]
19430 [[Image:Foobar.jpg|230x230px]]
19432 [[Image:Foobar.jpg|200x200px]]
19436 Image: Modifying size of an image (2)
19439 "modes": ["wt2wt"],
19441 ["img[height]", "attr", "height", "100"],
19442 ["img[width]", "attr", "width", "500"]
19446 [[Image:Foobar.jpg|230x230px]]
19448 [[Image:Foobar.jpg|500x500px]]
19451 # Change in size is ignored so long as class='mw-default-size'
19453 Image: Modifying size of an image (3)
19456 "modes": ["wt2wt"],
19458 ["figure[class]", "removeClass", "mw-default-size"],
19459 ["figure img", "attr", "height", "19"],
19460 ["figure img", "attr", "width", "170"]
19464 [[Image:Foobar.jpg|thumb]]
19466 [[Image:Foobar.jpg|thumb|170x170px]]
19470 Image: Modifying alignment of an image (bug 48665)
19473 "modes": ["wt2wt"],
19475 ["figure[class]", "removeClass", "mw-halign-right"],
19476 ["figure[class]", "addClass", "mw-halign-left"]
19480 [[Image:Foobar.jpg|thumb|caption|right]]
19482 [[Image:Foobar.jpg|thumb|caption|left]]
19486 Image: Modifying mw-default-size of an frameless image (bug 62805)
19489 "modes": ["wt2wt"],
19491 ["figure.mw-default-size", "removeClass", "mw-default-size"]
19495 [[Image:Foobar.jpg|frameless|right]]
19497 [[Image:Foobar.jpg|frameless|right|220x220px]]
19501 Image: Modifying valign of an image (bug 49221)
19504 "modes": ["wt2wt"],
19506 ["*[typeof=\"mw:Image\"]", "removeClass", "mw-valign-middle"],
19507 ["*[typeof=\"mw:Image\"]", "addClass", "mw-valign-text-top"]
19511 [[File:Foobar.jpg|20px|middle]]
19513 [[File:Foobar.jpg|20px|text-top]]
19517 Image: Modifying alt attribute of an image (bug 56400)
19520 "modes": ["wt2wt"],
19522 ["img[alt]", "attr", "alt", "some alternate edited text"]
19526 [[File:Foobar.jpg|thumb|some caption|alt=some alternate text]]
19528 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
19532 Image: Modifying caption of an image
19535 "modes": ["wt2wt"],
19537 ["figcaption", "text", "new caption"]
19541 [[Image:Foobar.jpg|thumb|original caption]]
19543 [[Image:Foobar.jpg|thumb|new caption]]
19547 Image: empty alt attribute (bug 48924)
19551 [[File:Foobar.jpg|thumb|alt=|bar]]
19553 <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>
19557 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
19562 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
19564 #<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>
19568 Image: Block level image should have \n before and after
19573 [[File:Foobar.jpg|right|thumb|150x150px]]
19576 <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>
19580 Image: New block level image should have \n before and after (existing
19586 [[File:Foobar.jpg|right|thumb|150x150px]]
19589 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
19590 <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>
19591 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
19595 Image: upright option (parsoid)
19599 [[File:Foobar.jpg|thumb|upright|caption]]
19600 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
19601 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
19603 <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>
19607 Image: upright option is ignored on inline and frame images (parsoid)
19611 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
19613 <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>
19617 Image: from basic HTML (1)
19621 <span typeof="mw:Image">
19622 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
19625 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
19629 Image: from basic HTML (2)
19633 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
19635 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
19639 Image: from basic HTML (3)
19643 <a href="Main"><img src="File:Foobar.jpg" width=100 height=100 alt="Alt"></a>
19645 [[File:Foobar.jpg|link=Main|alt=Alt|100x100px]]
19649 Image: from basic HTML (4)
19653 <img src="File:Foobar.jpg">
19655 [[File:Foobar.jpg|link=]]
19659 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
19666 <li><p>foo</p></li>
19671 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
19677 <ul> <li>foo</li></ul>
19681 Don't strip leading whitespace when handling indent-pre suppressing tags
19689 '''This is very bold of you!'''
19693 indented cell (no pre-wrapping!)
19700 <tr><td> indented row</td></tr>
19703 <b>This is very bold of you!</b>
19706 indented cell (no pre-wrapping!)
19714 Strip leading whitespace when handling indent-pre inducing tags
19746 Lists: Add space after bullets
19752 * <span> baz</span>
19757 <li><span> baz</span></li>
19762 Lists: Dont insert newlines in a serialized list item.
19769 <ul><li>a<br>b</li><li>c</li></ul>
19773 Headings: Add space before/after == (Bug 51744)
19783 == <span> baz</span> ==
19788 <h2><span> baz</span></h2>
19792 Parsoid: Serialize positional parameters with = in them as named parameter
19798 {{echo|1 = f=oo|2 = bar}}
19800 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19801 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19802 {{echo|<nowiki>f=oo</nowiki>|bar}}
19804 <p about="#mwt1" typeof="mw:Transclusion"
19805 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
19807 <p about="#mwt1" typeof="mw:Transclusion"
19808 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
19810 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19811 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19812 <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>
19816 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
19832 <div>a<p>b</p></div>
19840 #-----------------------------
19841 # I/B quote minimization tests
19842 #-----------------------------
19845 1. I/B quote minimization: wikitext-only tags should be combined
19865 <p><i>A</i><i>B</i></p>
19866 <p><b>A</b><b>B</b></p>
19867 <p><i>A</i><b><i>B</i></b></p>
19868 <p><b>A</b><i><b>B</b></i></p>
19869 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
19870 <p><i><b>A</b></i><i><b>B</b></i></p>
19871 <p><i><b>A</b></i><b><i>B</i></b></p>
19872 <p><b><i>A</i></b><i><b>B</b></i></p>
19876 2. I/B quote minimization: wikitext and html tags should not be combined
19882 ''A'''''<i>B</i>'''
19884 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
19885 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
19889 3. I/B quote minimization: templated content stops minimization
19893 ''A''{{echo|''B''}}
19895 ''A''{{echo|'''''B'''''}}
19897 <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>
19898 <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>
19902 4. I/B quote minimization: new content should be mimimized with adjacent old content
19912 <p><i>A</i><i data-parsoid='{}'>B</i></p>
19913 <p><b data-parsoid='{}'>A</b><b>B</b></p>
19914 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
19917 #------------------------------------
19918 # End of I/B quote minimization tests
19919 #------------------------------------
19922 Bug 54262: New entities
19928 <span typeof="mw:Entity">foo</span>
19931 ## Note that there is no wikitext output for 'unknownproperty' ##
19932 ## Unknown magic words are silently dropped ##
19947 __NOCONTENTCONVERT__
19949 <meta property='mw:PageProp/toc' />
19950 <meta property='mw:PageProp/notoc' />
19951 <meta property='mw:PageProp/forcetoc' />
19952 <meta property='mw:PageProp/index' />
19953 <meta property='mw:PageProp/noindex' />
19954 <meta property='mw:PageProp/nogallery' />
19955 <meta property='mw:PageProp/noeditsection' />
19956 <meta property='mw:PageProp/notitleconvert' />
19957 <meta property='mw:PageProp/nocontentconvert' />
19958 <meta property='mw:PageProp/unknownproperty' />
19962 Consecutive <pre>s should not get merged
19964 parsoid=html2wt,html2html
19980 <pre>a</pre><pre>b</pre>
19994 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
19998 [[Special:BookSources/1234567890|ISBN 1234567895]]
20000 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
20004 Edited RFC links not serializable as RFC links should serialize as extlinks
20008 [//tools.ietf.org/html/rfc123 New RFC]
20010 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
20014 Edited PMID links not serializable as PMID links should serialize as extlinks
20018 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
20020 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
20024 Edited Redirect link should emit a non-piped wikitext link
20030 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
20033 # -----------------------------------------------------------------
20034 # End of section for Parsoid-only html2wt tests for serialization
20036 # -----------------------------------------------------------------
20043 Try for 100% code coverage