1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
29 # notoc disable table of contents
30 # thumbsize=NNN set the default thumb size to NNNpx for this test
32 # You can also set the following parser properties via test options:
33 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
34 # wgLinkHolderBatchSize, wgRawHtml
36 # For testing purposes, temporary articles can created:
37 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
38 # where '/' denotes a newline.
40 # This is the standard article assumed to exist.
65 MediaWiki:bad image list
67 * [[File:Bad.jpg]] except [[Nasty page]]
101 Template:echo_with_span
107 Template:echo_with_div
119 Template:table_attribs
122 |</noinclude>style="color: red"| Foo
128 {{table_attribs}} || Bar || Baz
132 Template:image_attribs
135 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
169 This is a simple paragraph.
171 <p>This is a simple paragraph.
176 Paragraphs with extra newline spacing
199 Paragraphs with newline spacing with comment lines in between
207 <!--foo--><!--More than 1 comment, still stripped-->
211 <!--foo--> <!----> <!-- bar -->
272 Paragraphs with newline spacing with non-empty white-space lines in between
299 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
307 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
346 Extra newlines: More paragraphs with indented comment
361 Extra newlines followed by heading
376 <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>
377 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
380 <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>
385 Extra newlines between heading and content are swallowed
393 <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>
394 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
401 http://fr.wikipedia.org/wiki/🍺
402 <!-- EasterEgg we love beer, better be able be able to link to it -->
404 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
427 * plain''italic''plain
428 * plain''italic''plain''italic''plain
429 * plain'''bold'''plain
430 * plain'''bold'''plain'''bold'''plain
431 * plain''italic''plain'''bold'''plain
432 * plain'''bold'''plain''italic''plain
433 * plain''italic'''bold-italic'''italic''plain
434 * plain'''bold''bold-italic''bold'''plain
435 * plain'''''bold-italic'''italic''plain
436 * plain'''''bold-italic''bold'''plain
437 * plain''italic'''bold-italic'''''plain
438 * plain'''bold''bold-italic'''''plain
439 * plain l'''italic''plain
440 * plain l''''bold''' plain
445 <li> plain<i>italic</i>plain
447 <li> plain<i>italic</i>plain<i>italic</i>plain
449 <li> plain<b>bold</b>plain
451 <li> plain<b>bold</b>plain<b>bold</b>plain
453 <li> plain<i>italic</i>plain<b>bold</b>plain
455 <li> plain<b>bold</b>plain<i>italic</i>plain
457 <li> plain<i>italic<b>bold-italic</b>italic</i>plain
459 <li> plain<b>bold<i>bold-italic</i>bold</b>plain
461 <li> plain<i><b>bold-italic</b>italic</i>plain
463 <li> plain<b><i>bold-italic</i>bold</b>plain
465 <li> plain<i>italic<b>bold-italic</b></i>plain
467 <li> plain<b>bold<i>bold-italic</i></b>plain
469 <li> plain l'<i>italic</i>plain
471 <li> plain l'<b>bold</b> plain
477 # this example taken from the [[simple:Moon]] article (bug 47326)
479 Italics and possessives (1)
481 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
483 <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
487 # this example taken from [[en:Flaming Pie]] (bug 49926)
489 Italics and possessives (2)
491 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
493 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
497 # this example taken from [[en:Dictionary]] (bug 49926)
499 Italics and possessives (3)
501 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''.
503 <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>.
509 ### 2-quote opening sequence tests
512 Italics and bold: 2-quote opening sequence: (2,2)
522 Italics and bold: 2-quote opening sequence: (2,3)
532 Italics and bold: 2-quote opening sequence: (2,4)
541 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
543 Italics and bold: 2-quote opening sequence: (2,5)
556 ### 3-quote opening sequence tests
560 Italics and bold: 3-quote opening sequence: (3,2)
570 Italics and bold: 3-quote opening sequence: (3,3)
580 Italics and bold: 3-quote opening sequence: (3,4)
589 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
591 Italics and bold: 3-quote opening sequence: (3,5)
604 ### 4-quote opening sequence tests
608 Italics and bold: 4-quote opening sequence: (4,2)
618 Italics and bold: 4-quote opening sequence: (4,3)
628 Italics and bold: 4-quote opening sequence: (4,4)
637 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
639 Italics and bold: 4-quote opening sequence: (4,5)
646 <p>'<b>foo</b><i></i>
652 ### 5-quote opening sequence tests
656 Italics and bold: 5-quote opening sequence: (5,2)
667 Italics and bold: 5-quote opening sequence: (5,3)
677 Italics and bold: 5-quote opening sequence: (5,4)
681 <p><i><b>foo'</b></i>
687 Italics and bold: 5-quote opening sequence: (5,5)
696 ### multiple quote sequences in a line
699 Italics and bold: multiple quote sequences: (2,4,2)
703 <p><i>foo'<b>bar</b></i>
709 Italics and bold: multiple quote sequences: (2,4,3)
713 <p><i>foo'<b>bar</b></i>
719 Italics and bold: multiple quote sequences: (2,4,4)
723 <p><i>foo'<b>bar'</b></i>
728 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
730 Italics and bold: multiple quote sequences: (3,4,2)
737 <p><b>foo'</b>bar<i></i>
742 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
744 Italics and bold: multiple quote sequences: (3,4,3)
751 <p><b>foo'</b>bar<b></b>
756 ### other quote tests
759 Italics and bold: other quote tests: (2,3,5)
761 ''this is about '''foo's family'''''
763 <p><i>this is about <b>foo's family</b></i>
769 Italics and bold: other quote tests: (2,(3,3),2)
771 ''this is about '''foo's''' family''
773 <p><i>this is about <b>foo's</b> family</i>
779 Italics and bold: other quote tests: (3,2,3,2)
781 '''this is about ''foo'''s family''
783 <p><b>this is about <i>foo</i></b><i>s family</i>
789 Italics and bold: other quote tests: (3,2,3,3)
792 '''this is about ''foo'''s family'''
794 <p>'<i>this is about </i>foo<b>s family</b>
800 Italics and bold: other quote tests: (3,(2,2),3)
802 '''this is about ''foo's'' family'''
804 <p><b>this is about <i>foo's</i> family</b>
810 Italicized possessive
812 The ''[[Main Page]]'''s talk page.
814 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
819 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
820 (Requires tidy for PHP parser output to be fixed up)
822 parsoid=wt2html,wt2wt
830 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
831 <td><i>a</i></td><td><i>b</i></td></tr>
840 Non-html5 tags should be accepted
842 <center>''foo''</center>
845 <strike>''foo''</strike>
848 <center><i>foo</i></center>
849 <p><big><i>foo</i></big>
850 <font><i>foo</i></font>
851 <strike><i>foo</i></strike>
857 <wbr> is valid wikitext (bug 52468)
865 # <strike> is HTML4, <s> is HTML4/5.
867 <s> or <strike> for strikethrough
869 <strike>strike</strike>
873 <p><strike>strike</strike>
879 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
881 <b→> doesn't work! </b→>
883 <bä> doesn't work! </bä>
885 <boo> works fine </boo>
891 <p><b→> doesn't work! </b→>
892 </p><p><bä> doesn't work! </bä>
893 </p><p><boo> works fine </boo>
894 </p><p><s.foo>s.foo</s.foo>
895 </p><p><sub-ID#1>
900 Isolated close tags should be treated as literal text (bug 52760)
907 </p><p><s.foo>s</s>
912 ### Special characters
916 Bare pipe character (bug 52363)
925 Bare pipe character from a template (bug 52363)
934 ### <nowiki> test cases
938 <nowiki> unordered list
940 <nowiki>* This is not an unordered list item.</nowiki>
942 <p>* This is not an unordered list item.
949 <nowiki>Lorem ipsum dolor
970 :There is not nowiki.
971 :There is <nowiki>nowiki</nowiki>.
973 #There is not nowiki.
974 #There is <nowiki>nowiki</nowiki>.
976 *There is not nowiki.
977 *There is <nowiki>nowiki</nowiki>.
980 <dd>There is not nowiki.
986 <li>There is not nowiki.
992 <li>There is not nowiki.
1001 Entities inside <nowiki>
1003 <nowiki><</nowiki>
1010 Entities inside template parameters
1016 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span>
1024 Comments and Indent-Pre
1026 <!-- comment 1 --> asdf
1028 <!-- comment 1 --> asdf
1031 <!-- comment 1 --> asdf
1032 <!-- comment 2 -->xyz
1034 <!-- comment 1 --> asdf
1035 <!-- comment 2 --> xyz
1091 asdf<!-- comment 1 -->jkl
1101 <!-- foo --> b <!-- bar -->
1115 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1121 Comment semantics and delimiters
1123 <!-- --><!----><!-----><!------>
1129 Comment semantics and delimiters, redux
1131 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1132 -- foo -- funky huh? ... -->
1138 Comment semantics and delimiters: directors cut
1140 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1141 everything starting with < followed by !-- until the first -- and > we see,
1142 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1150 Comment semantics: nesting
1152 <!--<!-- no, we're not going to do anything fancy here -->-->
1159 Comment semantics: unclosed comment at end
1161 <!--This comment will run out to the end of the document
1167 Comment in template title
1176 Comment on its own line post-expand
1188 Comment on its own line post-expand with non-significant whitespace
1200 ### paragraph wrapping tests
1215 Block tag on one line (<div>)
1227 Block tag on one line (<blockquote>)
1229 a <blockquote>foo</blockquote>
1233 a <blockquote>foo</blockquote>
1239 Block tag on both lines (<div>)
1251 Block tag on both lines (<blockquote>)
1253 a <blockquote>foo</blockquote>
1255 b <blockquote>foo</blockquote>
1257 a <blockquote>foo</blockquote>
1258 b <blockquote>foo</blockquote>
1263 Multiple lines without block tags
1281 Empty lines between lines with block tags
1310 ## PHP parser emits output which is broken
1312 Unclosed HTML p-tags should be handled properly
1319 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1325 ### Preformatted text
1334 And a [[Main Page|link]]
1340 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1345 Tabs don't trigger preformatted text
1349 This is preformatted text.
1355 <pre>This is preformatted text.
1361 Ident preformatting with inline content
1372 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1389 Regression with preformatted in <center>
1403 Bug 52763: Preformatted in <blockquote>
1409 indented cell (no pre-wrapping!)
1419 <p> indented cell (no pre-wrapping!)
1427 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1444 Bug 15491: <ins>/<del> in blockquote
1447 Foo <del>bar</del> <ins>baz</ins> quux
1451 <p>Foo <del>bar</del> <ins>baz</ins> quux
1457 # Note that the p-wrapping is newline sensitive, which could be
1458 # considered a bug: tidy will wrap only the 'Foo' in the example
1459 # below in a <p> tag. (see comment 23-25 of bug #6200)
1461 Bug 15491: <ins>/<del> in blockquote (2)
1463 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1466 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1472 <pre> with attributes (bug 3202)
1474 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1476 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1481 <pre> with width attribute (bug 3202)
1483 <pre width="8">Narrow screen goodies</pre>
1485 <pre width="8">Narrow screen goodies</pre>
1490 <pre> with forbidden attribute (bug 3202)
1492 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1494 <pre width="8">Narrow screen goodies</pre>
1499 Entities inside <pre>
1508 <pre> with forbidden attribute values (bug 3202)
1510 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1512 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1517 <nowiki> inside <pre> (bug 13238)
1525 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1533 <pre><nowiki>Foo</nowiki></pre>
1538 <nowiki> and <pre> preference (first one wins)
1569 </pre> inside nowiki
1571 <nowiki></pre></nowiki>
1578 Empty pre; pre inside other HTML tags (bug 54946)
1597 HTML pre followed by indent-pre
1612 <p><pre>foo</pre></p>
1614 <p data-parsoid='{"stx":"html","autoInsertedEnd":true}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
1618 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1626 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1636 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1648 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1669 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1673 {{echo| foo}}{{echo| bar}}
1678 {{echo|<!--cmt--> foo}}
1680 <!--cmt-->{{echo| foo}}
1682 {{echo|{{echo| }}bar}}
1700 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1737 Things that look like <pre> tags aren't treated as such
1739 Barack Obama <President> of the United States
1741 <p>Barack Obama <President> of the United States
1746 Parsoid: handle pre with space after attribute
1750 <pre style="width:50%;" >{{echo|foo}}</pre>
1752 <pre style="width:50%;">{{echo|foo}}</pre>
1755 # TODO / maybe: fix wt2wt for this
1757 Parsoid: Don't paragraph-wrap fosterable content
1783 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
1811 #--------------------------------------------------------------------
1812 # Transclusion parameter whitespace stripping tests
1813 # Behavior is different for positional and named parameters
1814 #--------------------------------------------------------------------
1816 Templates: Strip leading and trailing whitespace from named-param values
1820 {{echo|1= {{echo|b}} }}
1841 Templates: Don't strip whitespace from positional-param values
1845 {{echo|{{echo|b}} }}
1888 Templates: Handle empty comment-and-ws-only lines correctly
1891 <!--should be ignored-->
1892 <!--should be ignored as well-->
1900 #--------------------------------------------------------------------
1901 # Transclusion parameter escaping tests
1902 #--------------------------------------------------------------------
1904 Templates: Parsoid parameter escaping test 1
1908 {{echo|[foo]|{{echo|[bar]}}}}
1910 <p about="#mwt1" typeof="mw:Transclusion"
1911 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
1915 Parsoid: Pipes in external links in template parameter
1919 {{echo|[{{echo|http://example.com}} link]}}
1921 <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>
1925 Parsoid: pipe in transclusion parameter
1929 {{echo|http://foo.com/a|b}}
1931 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1932 typeof="mw:Transclusion"
1933 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>
1937 Parsoid: Pipe in external link target and content in template parameter
1939 parsoid=html2wt,wt2wt
1941 {{echo|[http://foo.com/a|b a|b]}}
1943 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1944 typeof="mw:Transclusion"
1945 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
1946 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
1950 Templates: Don't escape already nowiki-escaped text in template parameters
1952 parsoid=html2wt,wt2wt
1954 {{echo|foo<nowiki>|</nowiki>bar}}
1955 {{echo|<nowiki><div></nowiki>}}
1956 {{echo|<nowiki></nowiki>}}
1958 <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>
1959 <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>
1960 <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>
1966 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
1968 parsoid=html2wt,wt2wt
1970 {{echo|{{echo|1=bar}}}}
1972 <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>
1977 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
1983 <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>
1987 ### Parsoid-centric tests for testing RT edge cases for pre
1991 1a. Indent-Pre and Comments
2004 1b. Indent-Pre and Comments
2017 1c. Indent-Pre and Comments
2030 1d. Indent-Pre and Comments
2031 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2044 2a. Indent-Pre and tables
2065 2b. Indent-Pre and tables
2081 2c. Indent-Pre and tables (bug 42252)
2098 3a. Indent-Pre and block tags (single-line html)
2102 c <blockquote> foo </blockquote>
2107 c <blockquote> foo </blockquote>
2108 <pre><span> foo </span>
2113 3b. Indent-Pre and block tags (multi-line html)
2118 <pre>a <span>foo</span>
2125 3c. Indent-Pre and block tags (pre-content on separate line)
2189 4. Indent-Pre and extension tags
2195 a <ul class="gallery mw-gallery-traditional">
2196 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2197 <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>
2198 <div class="gallerytext">
2206 Leading pipes outside of tables
2216 Leading pipes outside of tables 2
2230 Leading pipes outside of tables 3
2235 | class="foo bar" | baz
2239 | class="foo bar" | baz
2244 Render paragraphs when indent-pre is suppressed in blocklevels
2261 4. Multiple spaces at start-of-line
2279 ## NOTE: the leading white-space chars on empty line are significant
2281 5a. White-space in indent-pre
2293 ## NOTE: the leading white-space chars on empty line are significant
2295 5b. White-space in indent-pre
2314 5c. White-space in indent-pre
2327 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2350 7a. Indent-pre and category links
2352 parsoid=wt2html,wt2wt
2354 [[Category:foo]] <!-- No pre-wrapping -->
2355 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2357 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2358 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2359 <link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2363 7b. Indent-pre and category links
2365 parsoid=wt2html,wt2wt
2368 [[Category:foo]] {{echo|b}}
2371 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
2373 <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>
2377 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2381 HTML-pre: 1. embedded newlines
2417 HTML-pre: 2: indented text
2430 HTML-pre: 3: other wikitext
2451 ### Definition lists
2459 <dt> name </dt>
2467 Definition list for indentation only
2479 Definition list with no space
2492 Definition list with URL link
2494 ; http://example.com/ : definition
2497 <dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2505 Definition list with bracketed URL link
2507 ;[http://www.example.com/ Example]:Something about it
2510 <dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2511 <dd>Something about it
2518 Definition list with wikilink containing colon
2520 ; [[Help:FAQ]]: The least-read page on Wikipedia
2523 <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>
2524 <dd> The least-read page on Wikipedia
2530 # At Brion's and JeLuF's insistence... :)
2532 Definition list with news link containing colon
2534 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2537 <dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2538 <dd> This isn't even a real newsgroup!
2545 Malformed definition list with colon
2547 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2550 <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
2557 Definition lists: colon in external link text
2559 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2562 <dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2563 <dd> OK, I made that up
2570 Definition lists: colon in HTML attribute
2572 ;<b style="display: inline">bold</b>
2575 <dt><b style="display: inline">bold</b>
2582 Definition lists: self-closed tag
2584 ;one<br/>two : two-line fun
2587 <dt>one<br />two </dt>
2595 Bug 11748: Literal closing tags
2599 <dd>test test test test test</dd>
2601 <dd>test test test test test</dd>
2606 <dd>test test test test test</dd>
2608 <dd>test test test test test</dd>
2614 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2617 ; term : description
2623 <dt> term </dt>
2637 Definition list with empty definition and following paragraph
2652 Nested definition lists using html syntax
2669 Definition Lists: No nesting: Multiple dd's
2687 Definition Lists: Indentation: Regular
2709 Definition Lists: Indentation: Missing 1st level
2729 Definition Lists: Indentation: Multi-level indent
2747 Definition Lists: Hacky use to indent tables
2754 should be left alone
2756 <dl><dd><dl><dd><table>
2761 </td></tr></table></dd></dl></dd></dl>
2763 should be left alone
2769 Definition Lists: Hacky use to indent tables (WS-insensitive)
2778 <dd> <table><tr><td>a</td></tr></table> </dd>
2781 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2782 ## as an empty dt item. It also ignores all but the last ";" when followed
2783 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2784 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2787 ## Ex: ";;t2 ::d2" is transformed into:
2799 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2800 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2811 ## All Parsoid only definition list tests have this difference.
2813 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2814 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2817 Table / list interaction: indented table with lists in table contents
2843 </td></tr></table></dd></dl>
2848 Table / list interaction: lists nested in tables nested in indented lists
2879 </td></tr></table></dd></dl>
2890 Definition Lists: Nesting: Multi-level (Parsoid only)
2920 Definition Lists: Nesting: Test 2 (Parsoid only)
2940 Definition Lists: Nesting: Test 3 (Parsoid only)
2968 Definition Lists: Nesting: Test 4
2989 ## The Parsoid team believes the following three test exposes a
2990 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2991 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2993 Definition Lists: Mixed Lists: Test 1
3033 Definition Lists: Mixed Lists: Test 2
3052 Definition Lists: Mixed Lists: Test 3
3077 Definition Lists: Mixed Lists: Test 4
3098 Definition Lists: Mixed Lists: Test 5
3119 Definition Lists: Mixed Lists: Test 6
3146 Definition Lists: Mixed Lists: Test 7
3165 Definition Lists: Mixed Lists: Test 8
3189 Definition Lists: Mixed Lists: Test 9
3206 Definition Lists: Mixed Lists: Test 10
3224 # The Parsoid team disagrees with the PHP parser's seemingly-random
3225 # rules regarding dd/dt on the next two tests. Parsoid is more
3226 # consistent, and recognizes the shared nesting and keeps the
3227 # still-open tags around until the nesting is complete.
3230 Definition Lists: Mixed Lists: Test 11
3283 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3284 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3288 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3289 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3299 Definition Lists: Weird Ones: Test 1
3301 *#;*::;; foo : bar (who uses this?)
3312 <dt> bar (who uses this?)
3346 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3347 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3362 External links: non-bracketed
3364 Non-bracketed: http://example.com
3366 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3371 External links: numbered
3373 Numbered: [http://example.com]
3374 Numbered: [http://example.net]
3375 Numbered: [http://example.com]
3377 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3378 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3379 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3384 External links: specified text
3386 Specified text: [http://example.com link]
3388 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3393 External links: trail
3395 Linktrails should not work for external links: [http://example.com link]s
3397 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3402 External links: dollar sign in URL
3404 http://example.com/1$2345
3406 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3411 External links: dollar sign in URL (named)
3413 [http://example.com/1$2345]
3415 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3420 External links: open square bracket forbidden in URL (bug 4377)
3422 http://example.com/1[2345
3424 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3429 External links: open square bracket forbidden in URL (named) (bug 4377)
3431 [http://example.com/1[2345]
3433 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3438 External links: nowiki in URL link text (bug 6230)
3440 [http://example.com/ <nowiki>''example site''</nowiki>]
3442 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3447 External links: newline forbidden in text (bug 6230 regression check)
3449 [http://example.com/ first
3452 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3458 External links: Pipe char between url and text
3460 [http://example.com | link]
3462 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3467 External links: protocol-relative URL in brackets
3469 [//example.com/ Test]
3471 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3476 External links: protocol-relative URL in brackets without text
3480 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3485 External links: protocol-relative URL in free text is left alone
3489 <p>//example.com/Foo
3494 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3496 foo//example.com/Foo
3498 <p>foo//example.com/Foo
3505 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3507 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3512 External image from https
3514 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3516 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3521 External image (when not allowed)
3523 wgAllowExternalImages=0
3525 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3527 <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>
3532 Link to non-http image, no img tag
3534 Link to non-http image, no img tag: ftp://example.com/test.jpg
3536 <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>
3541 External links: terminating separator
3543 Terminating separator: http://example.com/thing,
3545 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3550 External links: intervening separator
3552 Intervening separator: http://example.com/1,2,3
3554 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3559 External links: old bug with URL in query
3561 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3563 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3568 External links: old URL-in-URL bug, mixed protocols
3570 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3572 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3577 External links: URL in text
3579 URL in text: [http://example.com http://example.com]
3581 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3586 External links: Clickable images
3588 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3590 <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>
3595 External links: raw ampersand
3597 Old & use: http://x&y
3599 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3604 External links: encoded ampersand
3606 Old & use: http://x&y
3608 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3613 External links: encoded equals (bug 6102)
3615 http://example.com/?foo=bar
3617 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3622 External links: [raw ampersand]
3624 Old & use: [http://x&y]
3626 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3631 External links: [encoded ampersand]
3633 Old & use: [http://x&y]
3635 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3640 External links: [encoded equals] (bug 6102)
3642 [http://example.com/?foo=bar]
3644 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3649 External links: [IDN ignored character reference in hostname; strip it right off]
3651 [http://e‌xample.com/]
3653 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3657 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3658 # Where an external link could easily circumvent the sanitization of the text of
3659 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3660 # test demands a higher standard. That's a bit strange.
3664 # http://example.com -> [http://example.com|http://example.com]
3665 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3667 # The first example is sanitized, but the second is not. Any security benefits
3668 # from this production are trivial to circumvent. Either remove this test and
3669 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3670 # the test accordingly.
3675 External links: IDN ignored character reference in hostname; strip it right off
3677 http://e‌xample.com/
3679 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3684 External links: www.jpeg.org (bug 554)
3688 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3693 External links: URL within URL (original bug 2)
3695 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3697 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3702 BUG 361: URL inside bracketed URL
3704 [http://www.example.com/foo http://www.example.com/bar]
3706 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3711 BUG 361: URL within URL, not bracketed
3713 http://www.example.com/foo?=http://www.example.com/bar
3715 <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>
3720 BUG 289: ">"-token in URL-tail
3722 http://www.example.com/<hello>
3724 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3729 BUG 289: literal ">"-token in URL-tail
3731 http://www.example.com/<b>html</b>
3733 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3738 BUG 289: ">"-token in bracketed URL
3740 [http://www.example.com/<hello> stuff]
3742 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3747 BUG 289: literal ">"-token in bracketed URL
3749 [http://www.example.com/<b>html</b> stuff]
3751 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3756 BUG 289: literal double quote at end of URL
3758 http://www.example.com/"hello"
3760 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3765 BUG 289: literal double quote in bracketed URL
3767 [http://www.example.com/"hello" stuff]
3769 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3774 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3776 [http://www.example.com test]
3778 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3783 External links: link text with spaces
3785 [http://www.example.com a b c]
3786 [http://www.example.com ''a'' ''b'']
3788 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3789 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3794 External links: wiki links within external link (Bug 3695)
3796 [http://example.com [[wikilink]] embedded in ext link]
3798 <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>
3801 <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>
3805 BUG 787: Links with one slash after the url protocol are invalid
3809 [http:/example.com title]
3811 <p>http:/example.com
3812 </p><p>[http:/example.com title]
3817 Bracketed external links with template-generated invalid target
3819 [{{echo|http:/example.com}} title]
3821 <p>[http:/example.com title]
3826 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3828 ''[http://example.com text'']
3829 [http://example.com '''text]'''
3830 ''Something [http://example.com in italic'']
3831 ''Something [http://example.com mixed''''', even bold]'''
3832 '''''Now [http://example.com both''''']
3834 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3835 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3836 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3837 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3838 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3844 Bug 4781: %26 in URL
3846 http://www.example.com/?title=AT%26T
3848 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3852 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3853 # % is actually legal in HTML5. Any change in output would need testing though.
3855 Bug 4781, 5267: %25 in URL
3857 http://www.example.com/?title=100%25_Bran
3859 <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>
3864 Bug 4781, 5267: %28, %29 in URL
3866 http://www.example.com/?title=Ben-Hur_%281959_film%29
3868 <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>
3874 Bug 4781: %26 in autonumber URL
3876 [http://www.example.com/?title=AT%26T]
3878 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3883 Bug 4781, 5267: %26 in autonumber URL
3885 [http://www.example.com/?title=100%25_Bran]
3887 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3892 Bug 4781, 5267: %28, %29 in autonumber URL
3894 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3896 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3902 Bug 4781: %26 in bracketed URL
3904 [http://www.example.com/?title=AT%26T link]
3906 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3911 Bug 4781, 5267: %26 in bracketed URL
3913 [http://www.example.com/?title=100%25_Bran link]
3915 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3920 Bug 4781, 5267: %28, %29 in bracketed URL
3922 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3924 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3929 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3931 Some [http://example.com/ pretty ''italics'' and stuff]!
3933 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3938 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3940 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3942 <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>
3947 External link containing double-single-quotes with no space separating the url from text in italics
3949 [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]].]
3951 <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>
3954 <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>
3958 External link with comments in link text
3960 [http://www.google.com Google <!-- comment -->]
3962 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3967 URL-encoding in URL functions (single parameter)
3969 {{localurl:Some page|amp=&}}
3971 <p>/index.php?title=Some_page&amp=&
3976 URL-encoding in URL functions (multiple parameters)
3978 {{localurl:Some page|q=?&=&}}
3980 <p>/index.php?title=Some_page&q=?&amp=&
3987 http://example.com/index.php?foozoid%5B%5D=bar
3989 http://example.com/index.php?foozoid[]=bar
3991 <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>
3992 </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>
3997 IPv6 urls (bug 21261)
4001 http://[2404:130:0:1000::187:2]/index.php
4003 <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>
4008 Non-extlinks in brackets
4017 [{{echo|foo}} ''bar'']
4018 [{{echo|foo}}l's] errand
4019 [{{echo|foo}}l's errand]
4021 [url=http://example.com]
4034 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
4039 Percent encoding in external links
4041 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
4043 <p><a rel="nofollow" class="external text" href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a>
4046 <p><a rel="mw:ExtLink"
4047 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
4051 Use url link syntax for links where the content is equal the link target
4055 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4058 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
4062 Parenthesis in external links, especially URL links
4066 http://example.com/test)
4068 http://example.com/(test)
4070 http://example.com/((test)
4072 (http://example.com/(test))
4074 (http://example.com/(test)))))
4076 http://example.com/a)b
4078 [http://example.com) foo]
4080 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4081 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
4082 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</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/a)b">http://example.com/a)b</a>
4087 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
4090 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
4091 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
4092 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</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/a)b">http://example.com/a)b</a></p>
4097 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
4101 Parenthesis in external links, w/ transclusion or comment
4103 (http://example.com/{{echo|hi}})
4105 (http://example.com<!-- hi -->)
4107 <p>(<a rel="nofollow" class="external free" href="http://example.com/hi">http://example.com/hi</a>)
4108 </p><p>(<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4111 <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>
4113 <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>
4123 Normal text. '''Bold text.''' Normal text. ''Italic text.''
4125 Normal text. '''''Bold italic text.''''' Normal text.
4127 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
4128 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
4133 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
4134 # parser strips. The wikitext contains just the first half of the bold
4137 Unclosed and unmatched quotes
4139 '''''Bold italic text '''with bold deactivated''' in between.'''''
4141 '''''Bold italic text ''with italic deactivated'' in between.'''''
4145 ..spanning two paragraphs (should not work).'''
4147 '''Bold tag left open
4149 ''Italic tag left open
4153 <!-- Unmatching number of opening, closing tags: -->
4154 '''This year''''s election ''should'' beat '''last year''''s.
4156 ''Tom'''s car is bigger than ''Susan'''s.
4158 Plain ''italic'''s plain
4160 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4161 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4162 </p><p><b>Bold text..</b>
4163 </p><p>..spanning two paragraphs (should not work).
4164 </p><p><b>Bold tag left open</b>
4165 </p><p><i>Italic tag left open</i>
4167 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4168 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4169 </p><p>Plain <i>italic'</i>s plain
4172 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4173 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4174 </p><p><b>Bold text..</b>
4175 </p><p>..spanning two paragraphs (should not work).<b></b>
4176 </p><p><b>Bold tag left open</b>
4177 </p><p><i>Italic tag left open</i>
4179 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4180 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4181 </p><p>Plain <i>italic'</i>s plain
4188 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4191 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4192 # is the bare minimum required by the spec, see:
4193 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4194 # Parsoid team replies: empty table tags are legal in HTML5
4196 A table with no data.
4209 A table with stray table end tags on start tag line (wt2html)
4213 {|style="color: red;"|}
4215 {|style="color: red;" |}
4219 {|style="color: red;"|} id="foo"
4223 {|style="color: red;" |} id="foo"
4227 <table style="color: red;"></table>
4229 <table style="color: red;">
4235 <table style="color: red;" id="foo">
4241 <table style="color: red;" id="foo">
4250 A table with no data (take 2)
4258 # A table with nothing but a caption is invalid XHTML, we might want to render
4259 # this as <p>caption</p>
4260 # Parsoid team replies: table with only a caption is legal in HTML5
4262 A table with nothing but a caption
4270 </caption><tr><td></td></tr></table>
4273 <table><caption> caption</caption></table>
4277 A table with caption with default-spaced attributes and a table row
4280 |+ style="color: red;" | caption1
4286 <caption style="color: red;"> caption1
4295 A table with captions with non-default spaced attributes and a table row
4298 |+style="color: red;"|caption2
4299 |+ style="color: red;"| caption3
4305 <caption style="color: red;">caption2
4307 <caption style="color: red;"> caption3
4316 Table td-cell syntax variations
4320 | foo bar foo || baz
4321 | style='color:red;' | baz
4322 | style='color:red;' || baz
4329 <td> foo bar foo </td>
4332 <td style="color:red;"> baz
4334 <td> style='color:red;' </td>
4362 Simple table but with multiple dashes for row wikitext
4380 Multiplication table
4382 {| border="1" cellpadding="2"
4383 |+Multiplication table
4385 ! × !! 1 !! 2 !! 3
4403 <table border="1" cellpadding="2">
4404 <caption>Multiplication table
4451 Accept "||" in table headings
4466 Accept "||" in indented table headings
4476 </th></tr></table></dd></dl>
4481 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4498 Accept "| !" at start of line in tables (ignore !-attribute)
4502 | !style="color:red" | bar
4514 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 +/-
4518 |style='color:red;'|+1
4519 |style='color:blue;'|-1
4531 <td style="color:red;">+1
4533 <td style="color:blue;">-1
4557 |rowspan=2| Cell 2, row 1 (and 2)
4568 <td rowspan="2"> Cell 2, row 1 (and 2)
4586 {| bgcolor=#ABCDEF border=2
4591 |the original table again
4599 <table bgcolor="#ABCDEF" border="2">
4607 <td>the original table again
4613 Invalid attributes in table cell (bug 1830)
4628 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4631 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4635 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4636 <td>]" onmouseover="alert(document.cookie)">test
4645 Indented table markup mixed with indented pre content (proposed in bug 6200)
4650 Text that should be rendered preformatted
4658 <pre>Text that should be rendered preformatted
4667 Template-generated table cell attributes and cell content
4676 <td style="color: red"> Foo
4678 <td style="color: red"> Foo
4684 Template-generated table cell attributes and cell content (2)
4687 |align=center {{table_attribs}}
4692 <td align="center" style="color: red"> Foo
4698 Template-generated table cell attributes and cell content (3)
4701 |align=center {{table_cells}}
4706 <td align="center" style="color: red"> Foo </td>
4714 Table with row followed by newlines and table heading
4732 Table with empty line following the start tag
4749 # FIXME: Preserve the attribute properly (with an empty string as value) in
4750 # the PHP parser. Parsoid implements the behavior below.
4752 Table attributes with empty value
4762 </td></tr></tbody></table>
4767 Wikitext table with a lot of comments
4790 Wikitext table with double-line table cell
4807 Table cell with a single comment
4823 # The expected HTML structure in this test is debatable. The PHP parser does
4824 # not parse this kind of table at all. The main focus for Parsoid is on
4825 # round-tripping, so this output is ok for now. TODO: revisit!
4827 Wikitext table with html-syntax row
4837 <td>foo</td></tr></tbody></table>
4841 Implicit <td> after a |-
4842 (PHP parser relies on Tidy to add the missing <td> tags)
4844 parsoid=wt2html,wt2wt
4857 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4858 (PHP parser relies on Tidy to add the missing <td> tags)
4860 parsoid=wt2html,wt2wt
4872 <tr><td><pre>a</pre></td></tr>
4873 <tr><td> b</td></tr>
4879 Lists should be recognized in an implicit <td> context
4880 (PHP parser relies on Tidy to add the missing <td> tags)
4882 parsoid=wt2html,wt2wt
4899 Parsoid: Round-trip tables directly followed by content (bug 51219)
4901 parsoid=wt2html,wt2wt
4913 <td>foo</td></tr></tbody></table> bar
4917 <td>baz</td></tr></tbody></table><b>quux</b>
4921 Parsoid: Default to a newline after tables in new content (bug 51219)
4928 <nowiki> </nowiki>bar
4935 <tr><td>foo</td></tr></tbody></table> bar
4937 <tr><td>baz</td></tr></tbody></table><b>quux</b>
4941 Parsoid: newline inducing block nodes don't suppress <nowiki>
4956 Plain link, capitalized
4960 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4965 Plain link, uncapitalized
4969 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4976 [[Main Page|The Main Page]]
4978 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4983 Piped link with comment in link text
4985 [[Main Page|The Main<!--front--> Page]]
4987 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4996 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
5001 Broken link with fragment
5003 [[Zigzagzogzagzig#zug]]
5005 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
5010 Special page link with fragment
5012 [[Special:Version#anchor]]
5014 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
5019 Nonexistent special page link with fragment
5021 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
5023 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
5030 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
5032 <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>
5039 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
5041 <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>!!!
5052 Bug 43661: Piped links with identical prefixes
5054 [[prefixed article|prefixed articles with spaces]]
5056 [[prefixed article|prefixed articlesaoeu]]
5058 [[Main Page|Main Page test]]
5060 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
5061 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
5062 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
5068 Link with HTML entity in suffix / tail
5070 [[Main Page]]", [[Main Page]]a
5072 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
5077 Link with 3 brackets
5086 Link with 4 brackets
5090 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
5095 Piped link with 3 brackets
5097 [[[main page|the main page]]]
5099 <p>[[[main page|the main page]]]
5104 Piped link with extlink-like text
5107 [[Main Page|This is a [bar]]]
5109 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
5110 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
5115 Link with multiple pipes
5117 [[Main Page|The|Main|Page]]
5119 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
5126 [[Talk:Parser testing]], [[Meta:Disclaimers]]
5128 <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>
5133 MemoryAlpha:AlphaTest
5135 This is an article in the MemoryAlpha namespace
5136 (which shadows the memoryalpha interwiki link).
5140 Namespace takes precedence over interwiki link (bug 51680)
5142 [[MemoryAlpha:AlphaTest]]
5144 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5148 # The previous test doesn't work correctly in html2*, due to not recognizing the
5149 # link as an internal one. This one checks for the correct behavior.
5151 Link to namespace preferred over interwiki with correct rel attribute
5153 parsoid=html2wt,html2html
5155 [[MemoryAlpha:AlphaTest]]
5157 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5162 Piped link to namespace
5164 [[Meta:Disclaimers|The disclaimers]]
5166 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
5173 [[Usually caused by a typo (oops}]]
5175 <p>[[Usually caused by a typo (oops}]]
5180 Link containing % (not as a hex sequence)
5184 <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>
5189 Link containing % as a single hex sequence interpreted to char
5193 <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>
5198 Link containing % as a double hex sequence interpreted to hex sequence
5202 <p>[[7%2525 Solution]]
5207 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
5208 Example for such a section: == < ==
5210 [[%23%3c]][[%23%3e]]
5212 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
5217 Link containing "<#" and ">#" as a hex sequences
5219 [[%3c%23]][[%3e%23]]
5221 <p>[[%3c%23]][[%3e%23]]
5226 Link containing an equals sign
5228 [[Special:BookSources/isbn=4-00-026157-6]]
5230 <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>
5237 Just a test of an article title containing a tilde.
5240 # note that links containing signatures, like [[Foo~~~~]], are
5241 # massaged by the pre-save transform (PST) and so the tildes are never
5242 # seen by the parser.
5244 Link containing a tilde
5248 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
5253 Link containing double-single-quotes '' (bug 4598)
5255 [[Lista d''e paise d''o munno]]
5257 <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>
5262 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5264 Some [[Link|pretty ''italics'' and stuff]]!
5266 <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>!
5271 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5273 ''Some [[Link|pretty ''italics'' and stuff]]!
5275 <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>
5280 Link with double quotes in title part (literal) and alternate part (interpreted)
5282 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5286 [[''Pentecoste''|Pentecoste]]
5288 [[''Pentecoste''|''Pentecoste'']]
5290 <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>
5291 </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>
5292 </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>
5293 </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>
5298 Broken image links with HTML captions (bug 39700)
5300 [[File:Nonexistent|<script></script>]]
5301 [[File:Nonexistent|100px|<script></script>]]
5302 [[File:Nonexistent|<]]
5303 [[File:Nonexistent|a<i>b</i>c]]
5305 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5306 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5307 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5308 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5315 [[http://www.example.com]]
5317 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5322 Plain link to URL with link text
5324 [[http://www.example.com Link text]]
5326 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5331 Plain link to protocol-relative URL
5333 [[//www.example.com]]
5335 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5340 Plain link to protocol-relative URL with link text
5342 [[//www.example.com Link text]]
5344 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5349 Plain link to page with question mark in title
5355 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5356 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5361 # I'm fairly sure the expected result here is wrong.
5362 # We want these to be URL links, not pseudo-pages with URLs for titles....
5363 # However the current output is also pretty screwy.
5366 # I'm changing it to match the current output--it arguably makes more
5367 # sense in the light of the test above. Old expected result was:
5368 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5370 # But I think this test is bordering on "garbage in, garbage out" anyway.
5375 Piped link to URL: [[http://www.example.com|an example URL]]
5377 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5382 BUG 2: [[page|http://url/]] should link to page, not http://url/
5384 [[Main Page|http://url/]]
5386 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5391 BUG 337: Escaped self-links should be bold
5395 [[Bug462]] [[Bug462]]
5397 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5402 Self-link to section should not be bold
5406 [[Main Page#section]]
5408 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5419 Self-link to numeric title
5425 <p><strong class="selflink">0</strong>
5430 Link to numeric-equivalent title
5436 <p><a href="/wiki/00" title="00">00</a>
5441 <nowiki> inside a link
5443 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5445 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5450 Non-breaking spaces in title
5452 [[ Main Page ]]
5454 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5459 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5465 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5470 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5476 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5481 Internal link with en linktrail: no apostrophes (bug 27473)
5487 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5492 Internal link with ca linktrail with apostrophes (bug 27473)
5498 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5503 Internal link with kaa linktrail with apostrophes (bug 27473)
5509 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5514 1. Interaction of linktrail and template encapsulation
5520 <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>
5524 2. Interaction of linktrail and template encapsulation
5528 {{echo|Some [[Fool]]}}s
5530 <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>
5534 3. Interaction of linktrail and template encapsulation
5538 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
5540 <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>
5550 Internal link with is link prefix
5554 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5556 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5567 Internal link with is link trail and link prefix
5571 [[mótmælendatrú|xxx]]ar
5573 mótmælenda[[söfnuður]]
5574 mótmælenda[[söfnuður|söfnuðir]]
5575 mótmælenda[[söfnuður|söfnuðir]]xxx
5577 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
5578 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
5579 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
5580 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
5581 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
5586 Parsoid link trail escaping
5588 parsoid=html2wt,html2html
5592 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
5596 Parsoid link prefix escaping
5599 parsoid=html2wt,html2html
5601 Aðrir mótmælenda<nowiki/>[[söfnuður]]
5603 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5607 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5615 [http://wp.org ''foo'']
5617 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5618 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5619 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5620 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5625 Parsoid: Scoped parsing should handle mixed transclusions and plain text
5629 [[Foo|{{echo|a}} b {{echo|c}}]]
5631 <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>
5635 ### Interwiki links (see maintenance/interwiki.sql)
5639 Inline interwiki link
5641 [[MeatBall:SoftSecurity]]
5643 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5648 Inline interwiki link with empty title (bug 2372)
5652 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5657 Interwiki link encoding conversion (bug 1636)
5659 *[[Wikipedia:ro:Olteniţa]]
5660 *[[Wikipedia:ro:Olteniţa]]
5663 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</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>
5672 Interwiki link with fragment (bug 2130)
5674 [[MeatBall:SoftSecurity#foo]]
5676 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5680 # Ideally the wikipedia: prefix here should be proto-relative too
5682 Different interwiki prefixes mapping to the same URL
5690 <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>
5692 <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>
5696 Interwiki links that cannot be represented in wiki syntax
5701 [[meatball:ok#foo|ok with fragment]]
5702 [[meatball:ok_as_well?|ok ending with ? mark]]
5703 [http://de.wikipedia.org/wiki/Foo?action=history has query]
5704 [http://de.wikipedia.org/wiki/#foo is just fragment]
5707 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok">meatball:ok</a>
5708 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo">ok with fragment</a>
5709 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F">ok ending with ? mark</a>
5710 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
5711 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
5715 Interwiki links: trail
5719 [[wikipedia:Foo|Ba]]r
5721 <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>
5725 ### Interlanguage links
5726 ### Language links (so that searching for '### language' matches..)
5740 Double interlanguage link
5751 Interlanguage link, with prefix links
5763 Double interlanguage link, with prefix links (bug 8897)
5776 Parsoid-specific test: Wikilinks with should RT properly
5782 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5787 Parsoid bug 53221: Wikilinks should be properly entity-escaped
5791 He&nbsp;llo [[Foo|He&nbsp;llo]]
5793 He&nbsp;llo [[He&nbsp;llo]]
5795 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5796 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5800 Parsoid: handle constructor well
5808 <p><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
5810 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
5814 Parsoid: recognize interlanguage links without a target page
5821 <link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
5825 Parsoid: recognize interwiki links without a target page
5831 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
5835 Parsoid: Bug #45209, handle interwiki links pointing to the current wiki as plain wiki links
5841 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"en:Foo"}}'>Foo</a></p>
5845 ### Redirects, Parsoid-only
5848 1. Simple redirect to page
5852 #REDIRECT [[Main Page]]
5854 <link rel="mw:PageProp/redirect" href="./Main_Page">
5857 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
5859 2. Other redirect variants
5861 parsoid=wt2html,wt2wt
5863 #REDIRECT [[Main_Page]]
5864 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
5866 <link rel="mw:PageProp/redirect" href="./Main_Page">
5867 <link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
5871 Optional colon in #REDIRECT
5873 # the colon is archaic syntax. we support it for wt2html, but we
5874 # don't care that it roundtrips back to the modern syntax.
5875 parsoid=wt2html,html2html
5877 #REDIRECT:[[Main Page]]
5879 <link rel="mw:PageProp/redirect" href="./Main_Page">
5883 Whitespace in #REDIRECT with optional colon
5885 # the colon and gratuitous whitespace is archaic syntax. we support
5886 # it for wt2html, but we don't care that it roundtrips back to the
5887 # modern syntax (without extra whitespace)
5888 parsoid=wt2html,html2html
5895 <link rel="mw:PageProp/redirect" href="./Main_Page">
5899 Piped link in #REDIRECT
5901 # content after piped link is ignored. we support this syntax,
5902 # but don't care that the piped link is lost when we roundtrip this.
5905 #REDIRECT [[Main Page|bar]]
5907 <link rel="mw:PageProp/redirect" href="./Main_Page">
5911 Redirect to category
5915 #REDIRECT [[Category:Foo]]
5917 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5921 Redirect to category with URL encoding
5925 #REDIRECT [[Category%3AFoo]]
5927 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5931 Redirect to category page
5933 parsoid=wt2html,html2html
5935 #REDIRECT [[:Category:Foo]]
5937 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5941 Redirect to image page (1)
5945 #REDIRECT [[File:Wiki.png]]
5947 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5951 Redirect to image page (2)
5955 #REDIRECT [[Image:Wiki.png]]
5957 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5961 Redirect to language
5965 #REDIRECT [[en:File:Wiki.png]]
5967 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5971 Redirect to interwiki
5975 #REDIRECT [[meatball:File:Wiki.png]]
5977 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5981 Non-English #REDIRECT
5986 #TILVÍSUN [[Main Page]]
5988 <link rel="mw:PageProp/redirect" href="./Main_Page">
5999 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
6016 Broken br tag sanitization
6024 # TODO: Fix html2html mode (bug 51055)!
6026 Parsoid: Broken br tag recognition
6036 Incorrecly removing closing slashes from correctly formed XHTML
6038 <br style="clear:both;" />
6040 <p><br style="clear:both;" />
6045 Failing to transform badly formed HTML into correct XHTML
6047 <br style="clear: left;">
6048 <br style="clear: right;">
6049 <br style="clear: both;">
6051 <p><br style="clear: left;" />
6052 <br style="clear: right;" />
6053 <br style="clear: both;" />
6058 Handling html with a div self-closing tag
6067 <p><div title />
6071 <p><div title=bar />
6072 <div title=bar/>
6074 <div title="bar/"></div>
6080 Handling html with a br self-closing tag
6089 <p><br title="title" />
6090 <br title="title" />
6099 Horizontal ruler (should it add that extra space?)
6113 Horizontal ruler -- 4+ dashes render hr
6122 Horizontal ruler -- eats additional dashes on the same line
6131 Horizontal ruler -- does not collapse dashes on consecutive lines
6142 Horizontal ruler -- <4 dashes render as plain text
6151 Horizontal ruler -- Supports content following dashes on same line
6160 ### Block-level elements
6208 ***#Number on level 4
6210 **#Number on level 3
6211 **#Number on level 3
6215 #** Level 3, but ordered
6238 <li>Number on level 4
6246 <li>Number on level 3
6248 <li>Number on level 3
6271 <li> Level 3, but ordered
6317 Nested lists 3 (first element empty)
6334 Nested lists 4 (first element empty)
6352 Nested lists 5 (both elements empty)
6370 Nested lists 6 (both elements empty)
6387 Nested lists 7 (skip initial nesting levels)
6405 Nested lists 8 (multiple nesting transitions)
6431 1. Lists with start-of-line-transparent tokens before bullets: Comments
6449 2. Lists with start-of-line-transparent tokens before bullets: Template close
6464 List items are not parsed correctly following a <pre> block (bug 785)
6482 List items from template
6493 * notSOL{{inner list}}
6524 List interrupted by empty line or heading
6543 <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>
6545 <li> Another list item
6552 Multiple list tags generated by templates
6567 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6570 <!--This line will NOT split the list-->
6572 <!--This line will NOT split the list either-->
6574 <!--foo--> <!----> <!--This line NOT split the list either-->
6591 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6594 <!--This line will NOT split the list-->
6596 <!--This line will NOT split the list either-->
6598 <!--foo--> <!----> <!--This line NOT split the list
6617 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6619 parsoid=wt2html,wt2wt
6623 * {{echo|<li>templated li-hack}}
6624 * <!--foo--> <li> unsupported li-hack with preceding comments
6627 <li><li>not a li-hack
6634 <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>
6635 <li> <!--foo--> </li>
6636 <li> li-hack with preceding comments</li>
6647 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6674 Parsoid: Test of whitespace serialization with Templated bullets
6681 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6685 # ------------------------------------------------------------------------
6686 # The next set of tests are about Parsoid's ability to handle badly nested
6687 # tags (parse, minimize scope of fixup, and roundtrip back)
6688 # ------------------------------------------------------------------------
6691 Unbalanced closing block tags break a list
6692 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6710 Unbalanced closing non-block tags don't break a list
6711 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6728 Unclosed formatting tags that straddle lists are closed and reopened
6729 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6743 List embedded in a non-block tag
6744 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
6750 <p><small></small></p>
6756 <p><small></small></p>
6760 Table with missing opening <tr> tag
6762 parsoid=wt2html,wt2wt
6780 # Note that the current date is hard-coded as
6781 # 1970-01-01T00:02:03Z (a Thursday)
6782 # when running parser tests. The timezone is also fixed to GMT, so
6783 # local date will be identical to current date.
6786 Magic Word: {{CURRENTDAY}}
6795 Magic Word: {{CURRENTDAY2}}
6804 Magic Word: {{CURRENTDAYNAME}}
6813 Magic Word: {{CURRENTDOW}}
6822 Magic Word: {{CURRENTMONTH}}
6831 Magic Word: {{CURRENTMONTH1}}
6840 Magic Word: {{CURRENTMONTHABBREV}}
6842 {{CURRENTMONTHABBREV}}
6849 Magic Word: {{CURRENTMONTHNAME}}
6851 {{CURRENTMONTHNAME}}
6858 Magic Word: {{CURRENTMONTHNAMEGEN}}
6860 {{CURRENTMONTHNAMEGEN}}
6867 Magic Word: {{CURRENTTIME}}
6876 Magic Word: {{CURRENTHOUR}}
6885 Magic Word: {{CURRENTWEEK}} (@bug 4594)
6894 Magic Word: {{CURRENTYEAR}}
6903 Magic Word: {{CURRENTTIMESTAMP}}
6905 {{CURRENTTIMESTAMP}}
6912 Magic Words LOCAL (UTC)
6916 * {{LOCALMONTHNAME}}
6917 * {{LOCALMONTHNAMEGEN}}
6918 * {{LOCALMONTHABBREV}}
6927 * {{LOCALTIMESTAMP}}
6963 Magic Word: {{FULLPAGENAME}}
6965 title=[[User:Ævar Arnfjörð Bjarmason]]
6969 <p>User:Ævar Arnfjörð Bjarmason
6974 Magic Word: {{FULLPAGENAMEE}}
6976 title=[[User:Ævar Arnfjörð Bjarmason]]
6980 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6985 Magic Word: {{TALKSPACE}}
6987 title=[[User:Ævar Arnfjörð Bjarmason]]
6996 Magic Word: {{TALKSPACE}}, same namespace
6998 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7007 Magic Word: {{TALKSPACE}}, main namespace
7009 title=[[Parser Test]]
7018 Magic Word: {{TALKSPACEE}}
7020 title=[[User:Ævar Arnfjörð Bjarmason]]
7029 Magic Word: {{SUBJECTSPACE}}
7031 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7040 Magic Word: {{SUBJECTSPACE}}, same namespace
7042 title=[[User:Ævar Arnfjörð Bjarmason]]
7051 Magic Word: {{SUBJECTSPACE}}, main namespace
7053 title=[[Parser Test]]
7061 Magic Word: {{SUBJECTSPACEE}}
7063 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7072 Magic Word: {{NAMESPACE}}
7074 title=[[User:Ævar Arnfjörð Bjarmason]]
7083 Magic Word: {{NAMESPACEE}}
7085 title=[[User:Ævar Arnfjörð Bjarmason]]
7094 Magic Word: {{NAMESPACENUMBER}}
7096 title=[[User:Ævar Arnfjörð Bjarmason]]
7105 Magic Word: {{SUBPAGENAME}}
7107 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7116 Magic Word: {{SUBPAGENAMEE}}
7118 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7127 Magic Word: {{ROOTPAGENAME}}
7129 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7133 <p>Ævar Arnfjörð Bjarmason
7138 Magic Word: {{ROOTPAGENAMEE}}
7140 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7144 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7149 Magic Word: {{BASEPAGENAME}}
7151 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7155 <p>Ævar Arnfjörð Bjarmason
7160 Magic Word: {{BASEPAGENAMEE}}
7162 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7166 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7171 Magic Word: {{TALKPAGENAME}}
7173 title=[[User:Ævar Arnfjörð Bjarmason]]
7177 <p>User talk:Ævar Arnfjörð Bjarmason
7182 Magic Word: {{TALKPAGENAMEE}}
7184 title=[[User:Ævar Arnfjörð Bjarmason]]
7188 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7193 Magic Word: {{SUBJECTPAGENAME}}
7195 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7199 <p>User:Ævar Arnfjörð Bjarmason
7204 Magic Word: {{SUBJECTPAGENAMEE}}
7206 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7208 {{SUBJECTPAGENAMEE}}
7210 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7215 Magic Word: {{NUMBEROFFILES}}
7224 Magic Word: {{PAGENAME}}
7226 title=[[User:Ævar Arnfjörð Bjarmason]]
7230 <p>Ævar Arnfjörð Bjarmason
7235 Magic Word: {{PAGENAME}} with metacharacters
7237 title=[['foo & bar = baz']]
7241 <p><i>'foo & bar = baz'</i>
7246 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
7248 title=[[*RFC 1234 http://example.com/]]
7252 <p>*RFC 1234 http://example.com/
7257 Magic Word: {{PAGENAMEE}}
7259 title=[[User:Ævar Arnfjörð Bjarmason]]
7263 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7268 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
7270 title=[[*RFC 1234 http://example.com/]]
7274 <p>*RFC_1234_http://example.com/
7279 Magic Word: {{REVISIONID}}
7288 Magic Word: {{SCRIPTPATH}}
7297 Magic Word: {{STYLEPATH}}
7306 Magic Word: {{SERVER}}
7310 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7315 Magic Word: {{SERVERNAME}}
7324 Magic Word: {{SITENAME}}
7333 Case-sensitive magic words, when cased differently, should just be template transclusions
7340 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
7341 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
7342 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
7343 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
7348 Case-insensitive magic words should still work with weird casing.
7358 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7363 Namespace 1 {{ns:1}}
7372 Namespace 1 {{ns:01}}
7381 Namespace 0 {{ns:0}} (bug 4783)
7389 Namespace 0 {{ns:00}} (bug 4783)
7397 Namespace -1 {{ns:-1}}
7406 Namespace User {{ns:User}}
7415 Namespace User talk {{ns:User_talk}}
7424 Namespace User talk {{ns:uSeR tAlK}}
7433 Namespace File {{ns:File}}
7442 Namespace File {{ns:Image}}
7451 Namespace (lang=de) Benutzer {{ns:User}}
7462 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7468 <p>Benutzer Diskussion
7476 {{urlencode:hi world?!}}
7477 {{urlencode:hi world?!|WIKI}}
7478 {{urlencode:hi world?!|PATH}}
7479 {{urlencode:hi world?!|QUERY}}
7489 Magic Word: prioritize type info over data-parsoid
7495 <meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__"}'/>
7499 Magic Word: serialize on separate line (parsoid)
7501 parsoid=wt2wt,html2wt
7507 foo<meta property="mw:PageProp/notoc"/>bar
7511 Magic Word: rt non-english wikis
7518 <meta property="mw:PageProp/noeditsection" data-parsoid='{"src":"__NOEDITSECTION__","magicSrc":"__NOEDITSECTION__"}'/>
7525 Magic links: internal link to RFC (bug 479)
7529 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7534 Magic links: RFC (bug 479)
7538 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7543 Magic links: ISBN (bug 1937)
7547 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7552 Magic links: PMID incorrectly converts space to underscore
7556 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7565 Nonexistent template
7567 {{thistemplatedoesnotexist}}
7569 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7574 Template with invalid target containing tags
7576 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7578 <p>{{a<b>b</b>|foo|a=b|a = b}}
7583 Template with invalid target containing unclosed tag
7585 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7587 <p>{{a<b>|foo|a=b|a = b}}</b>
7592 Template with invalid target containing wikilink
7596 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
7599 <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>
7605 This is a test template
7613 <p>This is a test template
7618 Template with explicit namespace
7622 <p>This is a test template
7630 This is a test template with parameter {{{param}}}
7636 {{paramtest|param=foo}}
7638 <p>This is a test template with parameter foo
7643 Template:paramtestnum
7649 Template unnamed parameter
7651 {{paramtestnum|Main Page|the main page}}
7653 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7658 Template:templatesimple
7664 Template:templateredirect
7666 #redirect [[Template:templatesimple]]
7670 Template:templateasargtestnum
7676 Template:templateasargtest
7678 {{template{{{templ}}}}}
7682 Template:templateasargtest2
7688 Template with template name as unnamed argument
7690 {{templateasargtestnum|templatesimple}}
7697 Template with template name as argument
7699 {{templateasargtest|templ=simple}}
7706 Template with template name as argument (2)
7708 {{templateasargtest2|templ=templatesimple}}
7715 Template:templateasargtestdefault
7717 {{{{{templ|templatesimple}}}}}
7727 Template with default value
7729 {{templateasargtestdefault}}
7736 Template with default value (value set)
7738 {{templateasargtestdefault|templ=templa}}
7747 {{templateredirect}}
7754 Template with argument in separate line
7756 {{ templateasargtest |
7764 Template with complex template as argument
7767 param ={{ templateasargtest |
7770 <p>This is a test template with parameter (test)
7775 Template with thumb image (with link in description)
7778 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
7780 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>
7785 Template:complextemplate
7787 {{{1}}} {{paramtest|
7788 param ={{{param}}}}}
7792 Template with complex arguments
7795 param ={{ templateasargtest |
7796 templ = simple }}|[[Template:complextemplate|link]]}}
7798 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
7803 BUG 553: link with two variables in a piped link
7806 |[[{{{1}}}|{{{2}}}]]
7811 <td>[[{{{1}}}|{{{2}}}]]
7817 Magic variable as template parameter
7819 {{paramtest|param={{SITENAME}}}}
7821 <p>This is a test template with parameter MediaWiki
7828 [[{{{param}}}|link]]
7832 Template parameter as link source
7834 {{linktest|param=Main Page}}
7836 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
7841 Template-generated attribute string (k='v')
7843 <span {{attr_str|id|v1}}>bar</span>
7845 <p><span id="v1">bar</span>
7852 including another template, {{paramtest|param={{{arg}}}}}
7856 Template passing argument to another template
7858 {{paramtest2|arg='hmm'}}
7860 <p>including another template, This is a test template with parameter 'hmm'
7871 Template as link source
7875 [[{{linktest2}}|Main Page]]
7877 [[{{linktest2}}]]Page
7879 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7880 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7881 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
7899 Template infinite loop
7903 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
7908 Template from main namespace
7927 BUG 529: Template with table, not included at beginning of line
7946 BUG 523: Template shouldn't eat newline (or add an extra one before table)
7966 BUG 41: Template parameters shown as broken links
7975 Template with targets containing wikilinks
7979 {{[[{{echo|foo}}]]}}
7981 {{{{echo|[[foo}}]]}}
7983 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7984 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7992 ''None'' of '''this''' should be
7994 but rather passed unmodified
7998 # hmm, fix this or just deprecate msgnw and document its behavior?
8004 {{msgnw:MSGNW test}}
8006 <p>''None'' of '''this''' should be
8008 but rather passed unmodified
8016 {{int:youhavenewmessages|lots of money|not!}}
8018 <p>You have lots of money (not!).
8025 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8029 <includeonly> and <noinclude> being included
8040 <onlyinclude>Foo</onlyinclude>bar
8044 <onlyinclude> being included
8056 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
8060 <onlyinclude> and <includeonly> being included
8069 <includeonly> and <noinclude> on a page
8071 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8078 Un-closed <noinclude>
8085 <onlyinclude> on a page
8087 <onlyinclude>Foo</onlyinclude>bar
8094 Un-closed <onlyinclude>
8101 Self-closed noinclude, includeonly, onlyinclude tags
8112 Unbalanced includeonly and noinclude tags
8116 |b</noinclude></noinclude>
8117 |c</noinclude></includeonly>
8118 |d</includeonly></includeonly>
8127 <td>c</includeonly>
8129 <td>d</includeonly></includeonly>
8135 Template:Includeonly section
8138 ==Includeonly section==
8144 Bug 6563: Edit link generation for section shown by <includeonly>
8146 {{includeonly section}}
8148 <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>
8149 <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>
8153 # Uses same input as the contents of [[Template:Includeonly section]]
8155 Bug 6563: Section extraction for section shown by <includeonly>
8160 ==Includeonly section==
8168 Bug 6563: Edit link generation for section suppressed by <includeonly>
8171 ==Includeonly section==
8175 <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>
8180 Bug 6563: Section extraction for section suppressed by <includeonly>
8185 ==Includeonly section==
8193 Un-closed <includeonly>
8199 # TODO: test with DOM fragment reuse!
8201 Parsoid: DOM fragment reuse
8203 parsoid=wt2wt,wt2html
8205 a{{echo|b<table></table>c}}d
8217 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
8218 <table></table>c"}},"i":0}}]}'>b</span>
8219 <table about="#mwt1"></table><span about="#mwt1">c</span>d
8222 <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">
8224 <table about="#mwt2"></table><span about="#mwt2">
8226 <p about="#mwt2">cd</p>
8229 <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">
8232 <table about="#mwt3"></table><span about="#mwt3">
8235 <p about="#mwt3">b</p>
8239 Parsoid: Merge double tds (bug 50603)
8248 <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>
8253 Parsoid: Merge double tds in nested transclusion content (bug 50603)
8263 <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}}]}'>
8265 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
8271 ### <includeonly> and <noinclude> in attributes
8274 0. includeonly around the entire attribute
8276 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
8278 <p><span id="v2">bar</span>
8283 1. includeonly in html attr key
8285 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
8287 <p><span id="foo">bar</span>
8292 2. includeonly in html attr value
8294 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
8295 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
8297 <p><span id="v1">bar</span>
8298 <span id="v1">bar</span>
8303 3. includeonly in part of an attr value
8305 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
8307 <p><span style="color:red;">bar</span>
8312 4. includeonly in table attributes
8336 ### Testing parsing of templates where a template arg
8337 ### has the same name as the template itself.
8347 Templates: Template Name/Arg clash: 1. Use of positional param
8356 Templates: Template Name/Arg clash: 2. Use of named param
8365 Templates: Template Name/Arg clash: 3. Use of named param with empty input
8374 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
8378 Templates: 1. Simple use
8387 Templates: 2. Inside a block tag
8389 <div>{{echo|Foo}}</div>
8390 <blockquote>{{echo|Foo}}</blockquote>
8393 <blockquote>Foo</blockquote>
8398 Templates: P-wrapping: 1a. Templates on consecutive lines
8409 Templates: P-wrapping: 1b. Templates on consecutive lines
8423 Templates: P-wrapping: 1c. Templates on consecutive lines
8426 {{echo|bar}} <div>baz</div>
8435 Templates: P-wrapping: 1d. Template preceded by comment-only line
8444 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8448 Templates: Inline Text: 1. Multiple tmeplate uses
8450 {{echo|Foo}}bar{{echo|baz}}
8457 Templates: Inline Text: 2. Back-to-back template uses
8459 {{echo|Foo}}{{echo|bar}}
8466 Templates: Block Tags: 1. Multiple template uses
8468 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8470 <div>Foo</div><div>bar</div><div>baz</div>
8475 Templates: Block Tags: 2. Back-to-back template uses
8477 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8479 <div>Foo</div><div>bar</div>
8484 Templates: Links: 1. Simple example
8486 {{echo|[[Foo|bar]]}}
8488 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8493 Templates: Links: 2. Generation of link href
8495 [[{{echo|Foo}}|bar]]
8497 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8502 Templates: Links: 3. Generation of part of a link href
8504 [[Fo{{echo|o}}|bar]]
8508 [[Foo{{echo|bar}}baz]]
8510 [[Foo{{echo|bar}}|bar]]
8512 [[:Foo{{echo|bar}}]]
8514 [[:Foo{{echo|bar}}|bar]]
8516 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8517 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8518 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8519 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8520 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8521 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8526 Templates: Links: 4. Multiple templates generating link href
8528 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8530 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8535 Templates: Links: 5. Generation of link text
8537 [[Foo|{{echo|bar}}]]
8539 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8544 Templates: Links: 5. Nested templates (only outermost template should be marked)
8546 {{echo|[[{{echo|Foo}}|bar]]}}
8548 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8553 Templates: HTML Tag: 1. Generation of HTML attr. key
8555 <div {{echo|style}}="color:red;">foo</div>
8557 <div style="color:red;">foo</div>
8562 Templates: HTML Tag: 2. Generation of HTML attr. value
8564 <div style={{echo|'color:red;'}}>foo</div>
8566 <div style="color:red;">foo</div>
8571 Templates: HTML Tag: 3. Generation of HTML attr key and value
8573 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8575 <div style="color:red;">foo</div>
8580 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8582 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8584 <div title="This is a long title with just one piece templated">foo</div>
8589 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8591 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8593 <div title="This is a long title with just one piece templated">foo</div>
8598 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8600 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8602 <div title="This is a long title with just one piece templated">foo</div>
8607 Templates: HTML Tag: 7. Generation of partial attribute key string
8609 <div st{{echo|yle}}="color:red;">foo</div>
8611 <div style="color:red;">foo</div>
8616 Templates: HTML Tables: 1. Generating start of a HTML table
8618 {{echo|<table><tr><td>foo</td>}}</tr></table>
8620 <table><tr><td>foo</td></tr></table>
8625 Templates: HTML Tables: 2a. Generating middle of a HTML table
8627 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8629 <table><tr><td>foo</td></tr></table>
8634 Templates: HTML Tables: 2b. Generating middle of a HTML table
8636 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8638 <table><tr><td>foo</td></tr></table>
8643 Templates: HTML Tables: 3. Generating end of a HTML table
8645 <table><tr>{{echo|<td>foo</td></tr></table>}}
8647 <table><tr><td>foo</td></tr></table>
8652 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8654 {{echo|<table>}}<tr><td>foo</td></tr></table>
8656 <table><tr><td>foo</td></tr></table>
8661 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8663 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8665 <table><tr><td>foo</td></tr></table>
8670 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8672 <table><tr>{{echo|<td>}}foo</td></tr></table>
8674 <table><tr><td>foo</td></tr></table>
8679 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8681 <table><tr><td>foo{{echo|</td>}}</tr></table>
8683 <table><tr><td>foo</td></tr></table>
8688 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8690 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8692 <table><tr><td>foo</td></tr></table>
8697 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
8699 <table><tr><td>foo</td></tr>{{echo|</table>}}
8701 <table><tr><td>foo</td></tr></table>
8706 Templates: HTML Tables: 5. Proper fostering of categories from inside
8708 parsoid=wt2html,wt2wt
8710 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
8711 <!--Two categories (Bug 50330)-->
8712 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
8714 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
8715 <!--Two categories (Bug 50330)-->
8716 <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>
8720 Templates: Wiki Tables: 1a. Fostering of entire template content
8728 <tr><td></td></tr></table>
8733 Templates: Wiki Tables: 1b. Fostering of entire template content
8746 <tr><td></td></tr></table>
8751 Templates: Wiki Tables: 2. Fostering of partial template content
8761 <tr><td></td></tr></table>
8766 Templates: Wiki Tables: 3. td-content via multiple templates
8769 {{echo|{{pipe}}a}}{{echo|b}}
8780 Templates: Wiki Tables: 4. Templated tags, no content
8786 <tr><td></td></tr></table>
8791 Templates: Wiki Tables: 5. Templated tags, regular td-tags
8805 Templates: Wiki Tables: 6. Templated tags, templated td-tags
8819 Templates: Lists: Multi-line list-items via templates
8821 *{{echo|a {{nonexistent|
8823 *{{echo|b {{nonexistent|
8827 <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>
8829 <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>
8836 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
8838 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
8840 <p><i>ab</i>c<i>d</i>e
8845 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
8846 (PHP parser generates misnested html)
8848 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
8850 <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>
8854 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
8855 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
8857 parsoid=wt2html,wt2wt
8859 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
8861 <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>
8862 <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>
8863 <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>
8867 Templates: Ugly nesting: 4. Divs opened/closed across templates
8869 a<div>b{{echo|c</div>d}}e
8876 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
8882 |{{echo|foo</table>}}
8886 <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|}"]}'>
8890 <td>foo</td></tr></tbody></table><span about="#mwt1">
8891 </span><span about="#mwt1">|bar</span><span about="#mwt1">
8896 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
8906 <td>1. {{echo|foo </table>}}</td>
8908 <td>2. {{echo|baz </table>}}</td>
8921 <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>"]}'>
8926 <td>1. foo </td></tr></tbody></table></td>
8928 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
8929 </span><span about="#mwt2">
8930 </span><span about="#mwt2">
8931 </span><span about="#mwt2">abc</span><span about="#mwt2">
8932 </span><span about="#mwt2">
8933 </span><span about="#mwt2">
8934 </span><span about="#mwt2">
8935 </span><span about="#mwt2">
8936 </span><span about="#mwt2">
8937 </span><span about="#mwt2">xyz</span><span about="#mwt2">
8938 </span><span about="#mwt2">
8943 Templates: Ugly templates: 3. newline-only template parameter
8952 # This looks like a bug: a single newline triggers p/br for some reason.
8954 Templates: Ugly templates: 4. newline-only template parameter inconsistency
8965 Parser Functions: 1. Simple example
8974 Parser Functions: 2. Nested use (only outermost should be marked up)
8983 ### Pre-save transform tests
8986 pre-save transform: subst:
8992 This is a test template
8996 pre-save transform: normal template
9006 pre-save transform: nonexistent template
9010 {{thistemplatedoesnotexist}}
9012 {{thistemplatedoesnotexist}}
9017 pre-save transform: subst magic variables
9026 # This is bug 89, which I fixed. -- wtm
9028 pre-save transform: subst: templates with parameters
9032 {{subst:paramtest|param="something else"}}
9034 This is a test template with parameter "something else"
9040 <nowiki>'''not wiki'''</nowiki>
9044 pre-save transform: nowiki in subst (bug 1188)
9048 {{subst:nowikitest}}
9050 <nowiki>'''not wiki'''</nowiki>
9055 Template:commenttest
9057 This template has <!-- a comment --> in it.
9061 pre-save transform: comment in subst (bug 1936)
9065 {{subst:commenttest}}
9067 This template has <!-- a comment --> in it.
9071 pre-save transform: unclosed tag
9075 <nowiki>'''not wiki'''
9077 <nowiki>'''not wiki'''
9081 pre-save transform: mixed tag case
9085 <NOwiki>'''not wiki'''</noWIKI>
9087 <NOwiki>'''not wiki'''</noWIKI>
9091 pre-save transform: unclosed comment in <nowiki>
9095 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9097 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9100 # Leading @ in this template definition works around a limitation
9101 # in parsoid's parserTests which otherwise strips the <span> from the
9102 # result (confusing it for a template wrapper)
9106 @<span onmouseover="alert('crap')">Oh no</span>
9110 (confirming safety of fix for subst bug 1936)
9112 {{Template:dangerous}}
9114 <p>@<span>Oh no</span>
9119 pre-save transform: comment containing gallery (bug 5024)
9123 <!-- <gallery>data</gallery> -->
9125 <!-- <gallery>data</gallery> -->
9129 pre-save transform: comment containing extension
9133 <!-- <tag>data</tag> -->
9135 <!-- <tag>data</tag> -->
9139 pre-save transform: comment containing nowiki
9143 <!-- <nowiki>data</nowiki> -->
9145 <!-- <nowiki>data</nowiki> -->
9149 pre-save transform: <noinclude> in subst (bug 3298)
9159 pre-save transform: <onlyinclude> in subst (bug 3298)
9171 {{<includeonly>subst:</includeonly>Includes}}
9175 Template:SafeSubstTest
9177 {{<includeonly>safesubst:</includeonly>Includes}}
9181 bug 22297: safesubst: works during PST
9185 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
9191 bug 22297: safesubst: works during normal parse
9200 subst: does not work during normal parse
9204 <p>{{subst:Includes}}
9209 pre-save transform: context links ("pipe trick")
9213 [[Article (context)|]]
9216 [[Bar:Article (context)|]]
9217 [[:Bar:Article (context)|]]
9219 [[|Article (context)]]
9223 [[Article (context)|Article]]
9224 [[Bar:Article|Article]]
9225 [[:Bar:Article|Article]]
9226 [[Bar:Article (context)|Article]]
9227 [[:Bar:Article (context)|Article]]
9229 [[Article (context)]]
9230 [[Bar:X (Y) Z|X (Y) Z]]
9231 [[:Bar:X (Y) Z|X (Y) Z]]
9235 pre-save transform: context links ("pipe trick") with interwiki prefix
9239 [[interwiki:Article|]]
9240 [[:interwiki:Article|]]
9241 [[interwiki:Bar:Article|]]
9242 [[:interwiki:Bar:Article|]]
9244 [[interwiki:Article|Article]]
9245 [[:interwiki:Article|Article]]
9246 [[interwiki:Bar:Article|Bar:Article]]
9247 [[:interwiki:Bar:Article|Bar:Article]]
9251 pre-save transform: context links ("pipe trick") with parens in title
9253 pst title=[[Somearticle (context)]]
9257 [[Article (context)|Article]]
9261 pre-save transform: context links ("pipe trick") with comma in title
9263 pst title=[[Someplace, Somewhere]]
9266 [[Otherplace, Elsewhere|]]
9267 [[Otherplace, Elsewhere, Anywhere|]]
9269 [[Otherplace, Somewhere|Otherplace]]
9270 [[Otherplace, Elsewhere|Otherplace]]
9271 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
9275 pre-save transform: context links ("pipe trick") with parens and comma
9277 pst title=[[Someplace (IGNORED), Somewhere]]
9280 [[Otherplace (place), Elsewhere|]]
9282 [[Otherplace, Somewhere|Otherplace]]
9283 [[Otherplace (place), Elsewhere|Otherplace]]
9287 pre-save transform: context links ("pipe trick") with comma and parens
9289 pst title=[[Who, me? (context)]]
9292 [[Me, Myself, and I (1937 song)|]]
9294 [[Yes, you. (context)|Yes, you.]]
9295 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
9299 pre-save transform: context links ("pipe trick") with namespace
9301 pst title=[[Ns:Somearticle]]
9305 [[Ns:Article|Article]]
9309 pre-save transform: context links ("pipe trick") with namespace and parens
9311 pst title=[[Ns:Somearticle (context)]]
9315 [[Ns:Article (context)|Article]]
9319 pre-save transform: context links ("pipe trick") with namespace and comma
9321 pst title=[[Ns:Somearticle, Context, Whatever]]
9325 [[Ns:Article, Context, Whatever|Article]]
9329 pre-save transform: context links ("pipe trick") with namespace, comma and parens
9331 pst title=[[Ns:Somearticle, Context (context)]]
9335 [[Ns:Article (context)|Article]]
9339 pre-save transform: context links ("pipe trick") with namespace, parens and comma
9341 pst title=[[Ns:Somearticle (IGNORED), Context]]
9345 [[Ns:Article, Context|Article]]
9349 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
9353 [[Article(context)|]]
9354 [[Bar:Article(context)|]]
9355 [[:Bar:Article(context)|]]
9356 [[|Article(context)]]
9360 [[Article(context)|Article]]
9361 [[Bar:Article(context)|Article]]
9362 [[:Bar:Article(context)|Article]]
9363 [[Article(context)]]
9365 [[:Bar:X(Y)Z|X(Y)Z]]
9369 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
9373 [[Article (context)|]]
9374 [[Bar:Article (context)|]]
9375 [[:Bar:Article (context)|]]
9376 [[|Article (context)]]
9380 [[Article (context)|Article]]
9381 [[Bar:Article (context)|Article]]
9382 [[:Bar:Article (context)|Article]]
9383 [[Article (context)]]
9384 [[Bar:X (Y) Z|X (Y) Z]]
9385 [[:Bar:X (Y) Z|X (Y) Z]]
9389 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
9393 [[Article(context)|]]
9394 [[Bar:Article(context)|]]
9395 [[:Bar:Article(context)|]]
9396 [[|Article(context)]]
9400 [[Article(context)|Article]]
9401 [[Bar:Article(context)|Article]]
9402 [[:Bar:Article(context)|Article]]
9403 [[Article(context)]]
9405 [[:Bar:X(Y)Z|X(Y)Z]]
9409 pre-save transform: context links ("pipe trick") with commas (bug 21660)
9413 [[Article (context), context|]]
9414 [[Article (context),context|]]
9415 [[Bar:Article (context), context|]]
9416 [[Bar:Article (context),context|]]
9417 [[:Bar:Article (context), context|]]
9418 [[:Bar:Article (context),context|]]
9420 [[Article (context), context|Article]]
9421 [[Article (context),context|Article]]
9422 [[Bar:Article (context), context|Article]]
9423 [[Bar:Article (context),context|Article]]
9424 [[:Bar:Article (context), context|Article]]
9425 [[:Bar:Article (context),context|Article]]
9429 pre-save transform: trim trailing empty lines
9433 Empty lines are trimmed
9439 Empty lines are trimmed
9443 pre-save transform: Signature expansion
9448 * <noinclude>~~~</noinclude>
9449 * <includeonly>~~~</includeonly>
9450 * <onlyinclude>~~~</onlyinclude>
9452 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9453 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9454 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9455 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9460 pre-save transform: Signature expansion in nowiki tags (bug 93)
9466 <nowiki>~~~~</nowiki>
9468 <includeonly><nowiki>~~~~</nowiki></includeonly>
9470 <noinclude><nowiki>~~~~</nowiki></noinclude>
9472 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9474 {{subst:Foo}} shall be converted to FOO
9476 As well as inside noinclude/onlyinclude
9477 <noinclude>{{subst:Foo}}</noinclude>
9478 <onlyinclude>{{subst:Foo}}</onlyinclude>
9480 But not inside includeonly
9481 <includeonly>{{subst:Foo}}</includeonly>
9485 <nowiki>~~~~</nowiki>
9487 <includeonly><nowiki>~~~~</nowiki></includeonly>
9489 <noinclude><nowiki>~~~~</nowiki></noinclude>
9491 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9493 FOO shall be converted to FOO
9495 As well as inside noinclude/onlyinclude
9496 <noinclude>FOO</noinclude>
9497 <onlyinclude>FOO</onlyinclude>
9499 But not inside includeonly
9500 <includeonly>{{subst:Foo}}</includeonly>
9504 Parsoid: Recognize nowiki with trailing space in tags
9508 <nowiki ><div>[[foo]]</nowiki >
9516 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9523 Parsoid: Recognize nowiki with odd capitalization
9527 <noWikI ><div>[[foo]]</Nowiki >
9529 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9534 Parsoid: Escape nowiki with trailing space in tags
9538 <nowiki > foo </nowiki >
9544 <p><nowiki > foo </nowiki ></p>
9545 <p>a<nowiki />b</p>
9546 <p>c<nowiki/ >d</p>
9550 Parsoid: Escape weird noWikI capitalizations
9554 <noWikI > foo </NoWikI >
9556 <p><noWikI > foo </NoWikI ></p>
9560 ### Message transform tests
9563 message transform: magic variables
9573 message transform: should not transform wiki markup
9583 message transform: <noinclude> in transcluded template (bug 4926)
9593 message transform: <onlyinclude> in transcluded template (bug 4926)
9603 {{#special:}} page name, known
9607 {{#special:Recentchanges}}
9609 Special:RecentChanges
9613 {{#special:}} page name with subpage, known
9617 {{#special:Recentchanges/param}}
9619 Special:RecentChanges/param
9623 {{#special:}} page name, unknown
9627 {{#special:foobar nonexistent}}
9629 Special:Foobar nonexistent
9633 {{#speciale:}} page name, known
9637 {{#speciale:Recentchanges}}
9639 Special:RecentChanges
9643 {{#speciale:}} page name with subpage, known
9647 {{#speciale:Recentchanges/param}}
9649 Special:RecentChanges/param
9653 {{#speciale:}} page name, unknown
9657 {{#speciale:foobar nonexistent}}
9659 Special:Foobar_nonexistent
9665 ### For Parsoid-specific tests, see
9666 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9671 parsoid=wt2html,wt2wt,html2html
9673 [[Image:foobar.jpg]]
9675 <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>
9678 <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>
9683 Simple image (using File: namespace, now canonical)
9687 <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>
9690 <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>
9697 [[File:Foobar.jpg|right]]
9699 <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>
9702 <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>
9708 [[File:Foobar.jpg|right|Caption text]]
9710 <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>
9713 <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>
9717 Image with caption, bug 53312 #1
9719 [[File:Foobar.jpg|right|Caption page stuff]]
9721 <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>
9724 <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>
9728 Image with caption, bug 53312 #2
9730 [[File:Foobar.jpg|right|Caption page=]]
9732 <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>
9735 <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>
9739 Image with caption, bug 53312 #3
9741 [[File:Foobar.jpg|right|Caption page=stuff]]
9743 <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>
9746 <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>
9750 Allow empty links in image captions (Bug 60753)
9754 [[File:Foobar.jpg|thumb|Caption [[Link1]]
9759 <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>
9762 <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>
9764 <a rel="mw:WikiLink" href="./Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"},"dsr":[47,56,2,2]}'>Link2</a>
9765 </figcaption></figure>
9769 Link with empty target
9778 Image with empty attribute
9780 parsoid=wt2html,wt2wt,html2html
9782 [[File:Foobar.jpg|right||Caption text]]
9784 <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>
9787 <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>
9791 1. Block image with individual attributes from templates
9793 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
9795 <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>
9798 <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>
9802 2. Block Image with individual attributes from templates
9804 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
9806 <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>
9809 <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>
9813 3. Inline image with individual attributes from templates
9815 [[File:Foobar.jpg|{{echo|50px}}]]
9817 <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>
9820 <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>
9823 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
9824 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
9826 Image with multiple attributes from the same template
9828 [[File:Foobar.jpg|{{image_attribs}}]]
9830 <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>
9833 <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>
9837 Image with link tails
9841 123[[File:Foobar.jpg]]456
9842 123[[File:Foobar.jpg|right]]456
9843 123[[File:Foobar.jpg|thumb]]456
9845 <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
9847 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
9848 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
9851 <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>
9852 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
9853 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
9857 Image with multiple captions -- only last one is accepted
9859 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9861 <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>
9864 <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>
9868 Image with multiple widths -- use last
9870 [[File:Foobar.jpg|200px|300px|caption]]
9872 <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>
9875 <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>
9879 Image with multiple alignments -- use first (bug 48664)
9883 [[File:Foobar.jpg|thumb|left|right|center|caption]]
9885 [[File:Foobar.jpg|middle|text-top|caption]]
9887 <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>
9888 <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>
9891 <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>
9892 <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>
9896 Image with width attribute at different positions
9898 [[File:Foobar.jpg|200px|right|Caption]]
9899 [[File:Foobar.jpg|right|200px|Caption]]
9900 [[File:Foobar.jpg|right|Caption|200px]]
9902 <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>
9903 <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>
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>
9907 <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>
9908 <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>
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>
9912 # a sad bit of backward-compatibility
9914 Image with size specified with pxpx (bug 13500, 51628)
9916 parsoid=wt2html,wt2wt,html2html
9918 [[File:Foobar.jpg|20pxpx]]
9919 [[File:Foobar.jpg|200x20pxpx]]
9921 <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>
9922 <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>
9925 <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>
9929 Image with link parameter, wiki target
9931 [[File:Foobar.jpg|link=Main Page]]
9933 <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>
9936 <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>
9939 # parsoid bug 49293 (part 1)
9941 Image with link parameter, URL target
9943 [[File:Foobar.jpg|link=http://example.com/]]
9945 <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>
9948 <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>
9951 # parsoid bug 49293 (part 2)
9953 Image with link parameter, protocol-less URL target
9955 [[File:Foobar.jpg|link=//example.com/]]
9957 <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>
9960 <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>
9964 Image with link parameter, wgExternalLinkTarget
9966 [[Image:foobar.jpg|link=http://example.com/]]
9968 wgExternalLinkTarget='foobar'
9970 <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>
9975 Image with link parameter, wgNoFollowLinks set to false
9977 [[Image:foobar.jpg|link=http://example.com/]]
9979 wgNoFollowLinks=false
9981 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9986 Image with link parameter, wgNoFollowDomainExceptions
9988 [[Image:foobar.jpg|link=http://example.com/]]
9990 wgNoFollowDomainExceptions='example.com'
9992 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9997 Image with link parameter, wgExternalLinkTarget, unnamed parameter
9999 [[Image:foobar.jpg|link=http://example.com/|Title]]
10001 wgExternalLinkTarget='foobar'
10003 <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>
10008 Image with empty link parameter
10010 [[File:Foobar.jpg|link=]]
10012 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
10015 <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>
10019 Image with link parameter (wiki target) and unnamed parameter
10021 [[File:Foobar.jpg|link=Main_Page|Title]]
10023 <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>
10026 <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>
10030 Image with link parameter (URL target) and unnamed parameter
10032 [[File:Foobar.jpg|link=http://example.com/|Title]]
10034 <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>
10037 <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>
10041 Thumbnail image with link parameter
10044 parsoid=wt2html,wt2wt,html2html
10046 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
10048 <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>
10051 <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>
10055 Manually-specified thumbnail image
10059 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
10061 <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>
10064 <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>
10068 Manually-specified thumbnail image with explicit link to wiki page
10071 parsoid=wt2html,wt2wt,html2html
10073 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
10075 <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>
10078 <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>
10082 Manually-specified thumbnail image with explicit link to url
10085 parsoid=wt2html,wt2wt,html2html
10087 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
10089 <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>
10092 <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>
10096 Manually-specified thumbnail image with explicit no link
10099 parsoid=wt2html,wt2wt,html2html
10101 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
10103 <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>
10106 <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>
10110 Manually-specified thumbnail image with explicit link and alt text
10113 parsoid=wt2html,wt2wt,html2html
10115 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
10117 <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>
10120 <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>
10124 Image with frame and link
10126 parsoid=wt2html,wt2wt,html2html
10128 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
10130 <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>
10133 <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>
10137 Image with frame and link and explicit alt
10139 parsoid=wt2html,wt2wt,html2html
10141 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
10143 <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>
10146 <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>
10150 Image with wiki markup in implicit alt
10152 parsoid=wt2html,wt2wt,html2html
10154 [[Image:Foobar.jpg|testing '''bold''' in alt]]
10156 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
10158 <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>
10159 </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>
10162 <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>
10163 <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>
10166 ###################
10168 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
10169 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
10170 # Foobar has actual size of 1941x220
10171 # 1. Thumbs & frameless always reduce, can't be enlarged
10172 # 2. Framed images ignore width; always render at default size.
10173 # If given a height, they respect height but continue to ignore width.
10174 # 3. "Unspecified format" and border are the only types which can be
10178 Image: "unspecified format" and border enlarge
10180 parsoid=wt2html,wt2wt,html2html
10182 [[File:Foobar.jpg|2000px]]
10184 [[File:Foobar.jpg|border|2000px]]
10186 <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>
10187 </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>
10190 <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>
10191 <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>
10195 Image: "unspecified format" and border reduce
10197 parsoid=wt2html,wt2wt,html2html
10199 [[File:Foobar.jpg|1000px]]
10201 [[File:Foobar.jpg|border|1000px]]
10203 <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>
10204 </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>
10207 <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>
10208 <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>
10212 Image: thumbs reduce
10214 parsoid=wt2html,wt2wt,html2html
10216 [[File:Foobar.jpg|thumb|50px]]
10218 <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>
10221 <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>
10225 Image: thumbs can't be enlarged past original size
10227 parsoid=wt2html,wt2wt,html2html
10229 [[File:Foobar.jpg|thumb|2000px]]
10231 <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>
10234 <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>
10238 Image: frameless can reduce in size
10240 parsoid=wt2html,wt2wt,html2html
10242 [[File:Foobar.jpg|frameless|50px]]
10244 <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>
10247 <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>
10251 Image: frameless can't be enlarged past original size
10253 parsoid=wt2html,wt2wt,html2html
10255 [[File:Foobar.jpg|frameless|2000px]]
10257 <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>
10260 <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>
10264 Image: framed images ignore size if only width is given
10266 parsoid=wt2html,wt2wt,html2html
10268 [[File:Foobar.jpg|frame]]
10270 [[File:Foobar.jpg|frame|50px]]
10272 [[File:Foobar.jpg|frame|2000px]]
10274 <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>
10275 <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>
10276 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
10279 <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>
10283 Image: framed images respect size if given a height, but ignore width.
10285 [[File:Foobar.jpg|frame|50x50px]]
10287 <div class="thumb tright"><div class="thumbinner" style="width:444px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" width="442" height="50" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
10290 <figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="50" width="442"/></a></figure>
10293 ###################
10296 Link to image page- image page normally doesn't exists, hence edit link
10297 Add test with existing image page
10298 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
10302 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
10307 bug 18784 Link to non-existent image page with caption should use caption as link text
10309 [[:Image:test|caption]]
10311 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
10316 Frameless image caption with a free URL
10318 [[File:Foobar.jpg|http://example.com]]
10320 <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>
10323 <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>
10327 Thumbnail image caption with a free URL
10331 [[File:Foobar.jpg|thumb|http://example.com]]
10333 <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>
10336 <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>
10340 Thumbnail image caption with a free URL and explicit alt
10343 parsoid=wt2html,wt2wt,html2html
10345 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
10347 <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>
10350 <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>
10354 SVG thumbnails with no language set
10357 [[File:Foobar.svg|thumb|caption]]
10359 <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 SVG thumbnails with language de
10367 [[File:Foobar.svg|thumb|caption|lang=de]]
10369 <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>
10374 SVG thumbnails with invalid language code
10377 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
10379 <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>
10384 BUG 1887: A ISBN with a thumbnail
10386 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
10388 <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>
10393 BUG 1887: A RFC with a thumbnail
10395 [[Image:foobar.jpg|thumb|This is RFC 12354]]
10397 <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>
10402 BUG 1887: A mailto link with a thumbnail
10404 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
10406 <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>
10410 # Pending resolution to bug 368
10412 BUG 648: Frameless image caption with a link
10414 [[Image:foobar.jpg|text with a [[link]] in it]]
10416 <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>
10421 BUG 648: Frameless image caption with a link (suffix)
10423 [[Image:foobar.jpg|text with a [[link]]foo in it]]
10425 <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>
10430 BUG 648: Frameless image caption with an interwiki link
10432 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
10434 <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>
10439 BUG 648: Frameless image caption with a piped interwiki link
10441 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
10443 <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>
10448 Escape HTML special chars in image alt text
10450 [[Image:foobar.jpg|& < > "]]
10452 <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>
10457 BUG 499: Alt text should have Ӓ, not &1234;
10459 [[Image:foobar.jpg|♀]]
10461 <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>
10466 Broken image caption with link
10468 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
10470 <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.
10475 Image caption containing another image
10477 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
10479 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
10484 Image caption containing a newline
10486 [[Image:Foobar.jpg|This
10489 <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>
10494 Parsoid: Image caption containing leading space
10495 (The leading space should not trigger nowiki escaping in wt2wt mode)
10497 [[Image:Foobar.jpg|thumb| bar]]
10499 <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>
10504 Images: caption containing a table
10506 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
10512 and some more text.]]
10514 <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>
10517 <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
10520 <tr><th>Foo </th><th>Bar</th></tr>
10523 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
10527 Bug 3090: External links other than http: in image captions
10529 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
10531 <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>
10534 <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>
10540 parsoid=wt2html,wt2wt,html2html
10542 [[Image:foobar.jpg|a|class=b]]
10544 <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>
10547 <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>
10551 Localized image handling (1).
10553 parsoid=wt2html,wt2wt,html2html
10556 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10558 <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>
10561 <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>
10565 Localized image handling (2).
10568 parsoid=wt2html,wt2wt,html2html
10571 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10573 <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>
10576 <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>
10580 "border", "frameless" and "class" attributes on an image.
10583 parsoid=wt2html,wt2wt,html2html
10585 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
10587 <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>
10590 <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>
10593 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
10595 Invalid image attributes (bug 62500)
10598 parsoid=wt2html,wt2wt,html2html
10600 [[File:Foobar.jpg|thumb|float|left|caption]]
10602 [[File:Foobar.jpg|thumb|righ|caption]]
10604 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
10606 <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>
10607 <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>
10608 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
10611 <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>
10617 #REDIRECT [[File:Barfoo.jpg]]
10623 [[Image:Barfoo.jpg]]
10625 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
10630 Missing image with uploads disabled
10634 [[Image:Foobaz.jpg]]
10636 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
10640 # Parsoid-specific testing for images
10641 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10642 # Currently imperfect due to a flaw in the Parsoid testrunner
10644 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
10648 Parsoid-specific image handling - simple image with size and middle alignment
10650 [[File:Foobar.jpg|middle|50px]]
10652 <p><span class="mw-valign-middle" typeof="mw:Image">
10653 <a href="File:Foobar.jpg">
10654 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10661 Parsoid-specific image handling - simple image with size, middle alignment,
10662 non-standard namespace alias
10664 parsoid=wt2wt,wt2html,html2html
10666 [[Image:Foobar.jpg|middle|50px]]
10668 <p><span class="mw-valign-middle" typeof="mw:Image">
10669 <a href="File:Foobar.jpg">
10670 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10677 Parsoid-specific image handling - simple image with size and middle alignment
10680 [[File:Foobar.jpg|50px|middle]]
10682 <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>
10686 Parsoid-specific image handling - simple image with size and middle alignment
10687 and non-standard namespace name
10689 parsoid=wt2html,wt2wt,html2html
10691 [[Image:Foobar.jpg|50px|middle]]
10693 <p><span class="mw-valign-middle" typeof="mw:Image">
10694 <a href="File:Foobar.jpg">
10695 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10702 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10704 [[File:Foobar.jpg|500x10px|baseline|caption]]
10706 <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>
10710 Parsoid-specific image handling - simple image with border and size spec
10712 [[File:Foobar.jpg|50px|border|caption]]
10714 <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>
10718 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10720 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
10722 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10723 <a href="File:Foobar.jpg">
10724 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
10726 <figcaption>caption content</figcaption>
10731 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10734 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
10736 <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>
10740 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10742 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
10744 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10745 <a href="File:Foobar.jpg">
10746 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10748 <figcaption>caption</figcaption>
10753 Parsoid-specific image handling - thumbnail with specific size, halign,
10754 valign, and caption (existing content)
10756 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10758 <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>
10762 Parsoid-specific image handling - framed image with specific size and caption
10764 [[Image:Foobar.jpg|frame|500x50px|caption]]
10766 <figure typeof="mw:Image/Frame">
10767 <a href="File:Foobar.jpg">
10768 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10770 <figcaption>caption</figcaption>
10775 Parsoid-specific image handling - framed image with specific size and caption
10778 [[File:Foobar.jpg|442x50px|frame|caption]]
10780 <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>
10784 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10786 [[Image:Foobar.jpg|left|baseline|frame|500x50px|caption]]
10788 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10789 <a href="File:Foobar.jpg">
10790 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10792 <figcaption>caption</figcaption>
10797 Parsoid-specific image handling - framed image with specific size, halign,
10798 valign, and caption (existing content)
10800 [[File:Foobar.jpg|442x50px|frame|left|baseline|caption]]
10802 <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>
10806 Parsoid-specific image handling - frameless image with specific size, border, and caption
10808 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
10810 <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>
10814 Parsoid-specific image handling - simple image with a formatted caption
10816 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10818 <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>"}'>
10819 <a href="File:Foobar.jpg">
10820 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10825 Parsoid-specific image handling - caption with a template in it
10827 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
10829 <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>
10833 Parsoid-specific image handling - caption with unbalanced tags in it
10835 parsoid=wt2html,wt2wt,html2html
10838 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
10842 <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>
10847 Parsoid-specific image handling - empty caption
10849 [[File:Foobar.jpg|thumb|]]
10851 <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>
10855 Parsoid-specific image handling - whitespace caption
10857 [[File:Foobar.jpg|thumb| ]]
10859 <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>
10863 Parsoid-specific image handling - lang option
10866 [[File:Foobar.svg|lang=de|caption]]
10870 <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>
10879 Subpage test/subpage
10887 subpage title=[[Subpage test]]
10891 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10896 Subpage noslash link
10898 subpage title=[[Subpage test]]
10902 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10906 # TODO: make this PHP-parser compatible!
10908 Relative subpage noslash link
10910 parsoid=wt2wt,wt2html,html2html
10911 subpage title=[[Subpage test/1/2/3/4]]
10917 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10918 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10921 # TODO: make this PHP-parser compatible!
10923 Parsoid: dot-slash prefixed wikilinks
10925 parsoid=wt2wt,wt2html,html2html
10933 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10934 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10935 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10943 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10948 BUG 561: {{/Subpage}}
10950 subpage title=[[Page]]
10954 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
10962 Category:MediaWiki User's Guide
10970 [[:Category:MediaWiki User's Guide]]
10972 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
10981 [[Category:MediaWiki User's Guide]]
10983 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10987 PAGESINCATEGORY invalid title fatal (r33546 fix)
10989 {{PAGESINCATEGORY:<bogus>}}
10996 Category with different sort key
11000 [[Category:MediaWiki User's Guide|Foo]]
11002 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11006 Category with identical sort key
11010 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11012 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11016 Category with empty sort key
11021 [[Category:MediaWiki User's Guide|]]
11023 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11027 Category with empty sort key and parentheses
11032 [[Category:Foo (bar)|]]
11034 [[Category:Foo (bar)|Foo]]
11038 Category with link tail
11043 123[[Category:Foo]]456
11045 123[[Category:Foo]]456
11049 Category with template
11054 [[Category:{{echo|Foo}}]]
11056 [[Category:{{echo|Foo}}]]
11060 Category with template in sort key
11065 [[Category:Foo|{{echo|Bar}}]]
11067 [[Category:Foo|{{echo|Bar}}]]
11071 Category with template in sort key and title
11076 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11078 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11082 Category / paragraph interactions
11084 Foo [[Category:Baz]] Bar
11086 Foo [[Category:Baz]]
11094 [[Category:Baz]] Bar
11107 {{echo|[[Category:Baz]]}}
11122 Parsoid: Serialize link to category page with colon escape
11128 [[:Category:Foo|Bar]]
11131 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
11132 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
11137 Parsoid: Link prefix/suffixes aren't applied to category links
11139 parsoid=wt2html,wt2wt,html2html
11144 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
11148 Parsoid: Serialize link to file page with colon escape
11154 [[:File:Foo.png|Bar]]
11157 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
11158 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
11163 Parsoid: Serialize a genuine category link without colon escape
11168 [[Category:Foo|Bar]]
11170 <link rel="mw:PageProp/Category" href="Category:Foo">
11171 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
11175 Parsoid: Defaultsort
11179 {{DEFAULTSORT:Foo}}
11181 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
11185 ### Inter-language links
11188 Inter-language links
11194 [[zh:食品]]
11196 es:Alimento fr:Nourriture zh:食品
11200 Duplicate interlanguage links (bug 24502)
11216 Basic section headings
11223 ===Smaller headline===
11226 <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>
11229 <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>
11232 <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>
11238 Section headings with TOC
11241 === Subheadline 1 ===
11242 ===== Skipping a level =====
11243 ====== Skipping a level ======
11247 ===Another headline===
11249 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11251 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
11253 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
11255 <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>
11257 <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>
11264 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
11266 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
11272 <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>
11273 <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>
11274 <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>
11275 <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>
11276 <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>
11279 <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>
11283 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
11285 Handling of sections up to level 6 and beyond
11288 == Level 2 Heading==
11289 === Level 3 Heading===
11290 ==== Level 4 Heading====
11291 ===== Level 5 Heading=====
11292 ====== Level 6 Heading======
11293 ======= Level 7 Heading=======
11294 ======== Level 8 Heading========
11295 ========= Level 9 Heading=========
11296 ========== Level 10 Heading==========
11298 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11300 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
11302 <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>
11304 <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>
11306 <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>
11308 <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>
11310 <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>
11311 <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>
11312 <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>
11313 <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>
11314 <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>
11328 <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>
11329 <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>
11330 <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>
11331 <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>
11332 <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>
11333 <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>
11334 <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>
11335 <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>
11336 <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>
11337 <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>
11342 TOC regression (bug 9764)
11346 ==== title 1.1.1 ====
11351 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11353 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11355 <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>
11357 <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>
11360 <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>
11363 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11365 <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>
11371 <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>
11372 <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>
11373 <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>
11374 <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>
11375 <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>
11376 <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>
11381 TOC with wgMaxTocLevel=3 (bug 6204)
11387 ==== title 1.1.1 ====
11392 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11394 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11396 <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>
11397 <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>
11400 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11402 <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>
11408 <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>
11409 <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>
11410 <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>
11411 <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>
11412 <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>
11413 <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>
11418 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
11424 ====Section 1.1.1====
11425 ====Section 1.1.1.1====
11428 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11430 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
11432 <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>
11435 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
11439 <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>
11440 <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>
11441 <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>
11442 <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>
11443 <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>
11449 Resolving duplicate section names
11454 <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>
11455 <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>
11460 Resolving duplicate section names with differing case (bug 10721)
11465 <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>
11466 <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>
11478 Template with sections, __NOTOC__
11485 <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>
11486 <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>
11487 <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>
11488 <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>
11493 __NOEDITSECTION__ keyword
11499 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
11500 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
11505 Link inside a section heading
11507 ==Section with a [[Main Page|link]] in it==
11509 <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>
11514 TOC regression (bug 12077)
11521 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11523 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11525 <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>
11528 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
11532 <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>
11533 <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>
11534 <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>
11539 BUG 1219 URL next to image (good)
11541 http://example.com [[Image:foobar.jpg]]
11543 <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>
11548 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
11551 The line above must have a trailing space!
11554 But just in case it doesn't...
11556 <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>
11557 <p>The line above must have a trailing space!
11559 <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>
11560 <p>But just in case it doesn't...
11565 Header with special characters (bug 25462)
11567 The tooltips shall not show entities to the user (ie. be double escaped)
11584 <p>The tooltips shall not show entities to the user (ie. be double escaped)
11586 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11588 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
11589 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
11590 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
11591 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
11592 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
11596 <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>
11599 <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>
11602 <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>
11605 <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>
11608 <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>
11614 Headers with excess '=' characters
11615 (Are similar tests necessary beyond the 1st level?)
11619 =''italic'' heading==
11620 ==''italic'' heading=
11622 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11624 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
11625 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
11626 <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>
11627 <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>
11631 <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>
11632 <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>
11633 <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>
11634 <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>
11639 HTML headers vs TOC (bug 23393)
11640 (__NOEDITSECTION__ for clearer output, doesn't matter here)
11652 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11654 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
11656 <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>
11657 <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>
11660 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
11662 <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>
11663 <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>
11669 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
11670 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
11671 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
11672 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
11673 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
11674 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
11679 BUG 1219 URL next to image (broken)
11681 http://example.com[[Image:foobar.jpg]]
11683 <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>
11688 Bug 1186 news: in the middle of text
11690 http://en.wikinews.org/wiki/Wikinews:Workplace
11692 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
11698 Namespaced link must have a title
11707 Namespaced link must have a title (bad fragment version)
11709 [[Project:#fragment]]
11711 <p>[[Project:#fragment]]
11717 ### HTML tags and HTML attributes
11721 div with no attributes
11723 <div>HTML rocks</div>
11725 <div>HTML rocks</div>
11730 div with double-quoted attribute
11732 <div id="rock">HTML rocks</div>
11734 <div id="rock">HTML rocks</div>
11739 div with single-quoted attribute
11741 <div id='rock'>HTML rocks</div>
11743 <div id="rock">HTML rocks</div>
11748 div with unquoted attribute
11750 <div id=rock>HTML rocks</div>
11752 <div id="rock">HTML rocks</div>
11757 div with illegal double attributes
11759 <div id="a" id="b">HTML rocks</div>
11761 <div id="b">HTML rocks</div>
11765 # FIXME: produce empty string instead of "class" in the PHP parser, following
11768 div with empty attribute value, space before equals
11772 <div class =>HTML rocks</div>
11774 <div class="">HTML rocks</div>
11778 # The PHP parser escapes the opening brace to { for some reason, so
11779 # disabled this test for it.
11781 div with braces in attribute value
11785 <div title="{}">Foo</div>
11787 <div title="{}">Foo</div>
11790 # This it very inconsistent in the PHP parser: it returns
11791 # class="class" if there is a space between the name and the equal sign (see
11792 # 'div with empty attribute value, space before equals'), but strips the
11793 # attribute completely if the space is missing. We hope that not much content
11794 # depends on this, so are implementing the behavior below in Parsoid for
11795 # consistencies' sake. Disabled for the PHP parser.
11796 # FIXME: fix this behavior in the PHP parser?
11798 div with empty attribute value, no space before equals
11802 <div class=>HTML rocks</div>
11804 <div class="">HTML rocks</div>
11809 HTML multiple attributes correction
11811 <p class="error" class="awesome">Awesome!</p>
11813 <p class="awesome">Awesome!</p>
11818 Table multiple attributes correction
11821 !+ class="error" class="awesome"| status
11826 <th class="awesome"> status
11834 <DIV ID="x">HTML ROCKS</DIV>
11836 <div id="x">HTML ROCKS</div>
11841 Non-ASCII pseudo-tags are rendered as text
11850 Pseudo-tag with URL 'name' renders as url link
11852 <http://example.com/>
11854 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11859 text with amp in the middle of nowhere
11863 <p>Remember AT&T?
11868 text with character entity: eacute
11870 I always thought é was a cute letter.
11872 <p>I always thought é was a cute letter.
11877 text with entity-escaped character entity-like string: eacute
11879 I always thought &eacute; was a cute letter.
11881 <p>I always thought &eacute; was a cute letter.
11886 text with undefined character entity: xacute
11888 I always thought &xacute; was a cute letter.
11890 <p>I always thought &xacute; was a cute letter.
11894 # TODO: generalize to PHP parser?
11900 <data value="5">five</data>
11901 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11902 <mark>This highlighted text</mark>
11904 <p><data value="5">five</data>
11905 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11906 <mark>This highlighted text</mark></p>
11910 HTML tag with leading space is parsed as text
11914 <p>< div>foo< /div>
11919 ### Nesting tests (see bug 41545, 50604, 51081)
11922 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11923 # Note that html2wt is considerably more difficult if we use <b> in
11924 # the test case, instead of <big>
11926 Ensure that HTML adoption agency algorithm is properly implemented.
11928 <big>X<big>Y</big>Z</big>
11930 <p><big>X<big>Y</big>Z</big>
11934 # This was bug 41545 in the PHP parser.
11938 <kbd>X<kbd>Y</kbd>Z</kbd>
11940 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11944 # The following cases were bug 51081 in the PHP parser.
11945 # Note that there are some other nestable tags (b, i, etc) which are
11946 # not covered; see bug 51081 for discussion.
11950 <em>X<em>Y</em>Z</em>
11952 <p><em>X<em>Y</em>Z</em>
11957 Nesting of <strong>
11959 <strong>X<strong>Y</strong>Z</strong>
11961 <p><strong>X<strong>Y</strong>Z</strong>
11970 <p><q>X<q>Y</q>Z</q>
11977 <ruby>X<ruby>Y</ruby>Z</ruby>
11979 <p><ruby>X<ruby>Y</ruby>Z</ruby>
11986 <bdo>X<bdo>Y</bdo>Z</bdo>
11988 <p><bdo>X<bdo>Y</bdo>Z</bdo>
12000 [[Media:Foobar.jpg]]
12002 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
12007 Media link with text
12009 [[Media:Foobar.jpg|A neat file to look at]]
12011 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
12015 # FIXME: this is still bad HTML tag nesting
12017 Media link with nasty text
12018 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
12020 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
12022 <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>
12027 Media link to nonexistent file (bug 1702)
12029 [[Media:No such.jpg]]
12031 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
12036 Image link to nonexistent file (bug 1850 - good)
12038 [[Image:No such.jpg]]
12040 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
12045 :Image link to nonexistent file (bug 1850 - bad)
12047 [[:Image:No such.jpg]]
12049 <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>
12056 Character reference normalization in link text (bug 1938)
12058 [[Main Page|this&that]]
12060 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
12067 Test for unicode normalization
12069 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
12073 (bug 19451) Links should refer to the normalized form.
12081 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12082 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12083 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12084 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12085 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12090 Empty attribute crash test (bug 2067)
12092 <font color="">foo</font>
12094 <p><font color="">foo</font>
12099 Empty attribute crash test single-quotes (bug 2067)
12101 <font color=''>foo</font>
12103 <p><font color="">foo</font>
12108 Attribute test: equals, then nothing
12110 <font color=>foo</font>
12112 <p><font>foo</font>
12117 Attribute test: unquoted value
12119 <font color=x>foo</font>
12121 <p><font color="x">foo</font>
12126 Attribute test: unquoted but illegal value (hash)
12128 <font color=#x>foo</font>
12130 <p><font color="#x">foo</font>
12135 Attribute test: no value
12137 <font color>foo</font>
12139 <p><font color="color">foo</font>
12144 Bug 2095: link with three closing brackets
12148 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
12153 Bug 2095: link with pipe and three closing brackets
12155 [[Main Page|link]]]
12157 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
12162 Bug 2095: link with pipe and three closing brackets, version 2
12164 [[Main Page|[http://example.com/]]]
12166 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
12176 Template:Dangerous attribute
12178 " onmouseover="alert(document.cookie)
12182 Template:Dangerous style attribute
12184 border-size: expression(alert(document.cookie))
12190 <div style="float: right; {{{1}}}">Magic div</div>
12194 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
12196 <div title="{{test}}"></div>
12198 <div title="This is a test template"></div>
12203 Bug 2304: HTML attribute safety (dangerous template; 2309)
12205 <div title="{{dangerous attribute}}"></div>
12207 <div title=""></div>
12212 Bug 2304: HTML attribute safety (dangerous style template; 2309)
12214 <div style="{{dangerous style attribute}}"></div>
12216 <div style="/* insecure input */"></div>
12221 Bug 2304: HTML attribute safety (safe parameter; 2309)
12223 {{div style|width: 200px}}
12225 <div style="float: right; width: 200px">Magic div</div>
12230 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
12232 {{div style|width: expression(alert(document.cookie))}}
12234 <div style="/* insecure input */">Magic div</div>
12239 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
12241 {{div style|"><script>alert(document.cookie)</script>}}
12243 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12248 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
12250 {{div style|" ><script>alert(document.cookie)</script>}}
12252 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12257 Bug 2304: HTML attribute safety (link)
12259 <div title="[[Main Page]]"></div>
12261 <div title="[[Main Page]]"></div>
12266 Bug 2304: HTML attribute safety (italics)
12268 <div title="''foobar''"></div>
12270 <div title="''foobar''"></div>
12275 Bug 2304: HTML attribute safety (bold)
12277 <div title="'''foobar'''"></div>
12279 <div title="'''foobar'''"></div>
12285 Bug 2304: HTML attribute safety (ISBN)
12287 <div title="ISBN 1234567890"></div>
12289 <div title="ISBN 1234567890"></div>
12294 Bug 2304: HTML attribute safety (RFC)
12296 <div title="RFC 1234"></div>
12298 <div title="RFC 1234"></div>
12303 Bug 2304: HTML attribute safety (PMID)
12305 <div title="PMID 1234567890"></div>
12307 <div title="PMID 1234567890"></div>
12312 Bug 2304: HTML attribute safety (web link)
12314 <div title="http://example.com/"></div>
12316 <div title="http://example.com/"></div>
12321 Bug 2304: HTML attribute safety (named web link)
12323 <div title="[http://example.com/ link]"></div>
12325 <div title="[http://example.com/ link]"></div>
12330 Bug 3244: HTML attribute safety (extension; safe)
12332 <div style="<nowiki>background:blue</nowiki>"></div>
12334 <div style="background:blue"></div>
12339 Bug 3244: HTML attribute safety (extension; unsafe)
12341 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
12343 <div style="/* insecure input */"></div>
12347 # More MSIE fun discovered by Tom Gilder
12350 MSIE CSS safety test: spurious slash
12352 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
12354 <div style="/* insecure input */">evil</div>
12359 MSIE CSS safety test: hex code
12361 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
12363 <div style="/* insecure input */">evil</div>
12368 MSIE CSS safety test: comment in url
12370 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
12372 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
12377 MSIE CSS safety test: comment in expression
12379 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
12381 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
12386 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
12388 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
12390 <p style="/* invalid control char */">A</p>
12395 MSIE 6 CSS safety test: Fullwidth (bug 55332)
12397 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
12398 <div style="top:EXPRESSION(alert())">B</div>
12400 <p style="/* insecure input */">A</p>
12401 <div style="/* insecure input */">B</div>
12406 MSIE 6 CSS safety test: IPA extensions (bug 55332)
12408 <div style="background-image:uʀʟ(javascript:alert())">A</div>
12409 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
12411 <div style="/* insecure input */">A</div>
12412 <p style="/* insecure input */">B</p>
12417 MSIE 6 CSS safety test: sup/sub script (bug 55332)
12419 <div style="background-image:url⁽javascript:alert())">A</div>
12420 <div style="background-image:url₍javascript:alert())">B</div>
12421 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
12423 <div style="/* insecure input */">A</div>
12424 <div style="/* insecure input */">B</div>
12425 <p style="/* insecure input */">C</p>
12433 title="data:text/html,<img src=1 onerror=alert(1)>"
12434 style="-o-link:attr(title);-o-link-source:current">X</div>
12436 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
12441 MSIE 6 CSS safety test: Repetition markers (bug 55332)
12443 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
12444 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
12445 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
12446 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
12447 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
12448 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
12449 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
12451 <p style="/* insecure input */">A</p>
12452 <p style="/* insecure input */">B</p>
12453 <p style="/* insecure input */">C</p>
12454 <p style="/* insecure input */">D</p>
12455 <p style="/* insecure input */">E</p>
12456 <p style="/* insecure input */">F</p>
12457 <p style="/* insecure input */">G</p>
12462 Table attribute legitimate extension
12465 !+ style="<nowiki>color:blue</nowiki>"| status
12470 <th style="color:blue"> status
12476 Table attribute safety
12479 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
12484 <th style="/* insecure input */"> status
12490 CSS line continuation 1
12492 <div style="background-image: u\ rl(test.jpg);"></div>
12494 <div style="/* insecure input */"></div>
12499 CSS line continuation 2
12501 <div style="background-image: u\ rl(test.jpg); "></div>
12503 <div style="/* insecure input */"></div>
12514 Expansion of multi-line templates in attribute values (bug 6255)
12516 <div style="background: {{identity|#00FF00}}">-</div>
12518 <div style="background: #00FF00">-</div>
12524 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
12526 <div style="background:
12529 <div style="background: #00FF00">-</div>
12534 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
12536 <div style="background: #00FF00">-</div>
12538 <div style="background: #00FF00">-</div>
12543 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
12546 Parser hook: empty input
12559 Parser hook: empty input using terminated empty elements
12572 Parser hook: empty input using terminated empty elements (space before)
12585 Parser hook: basic input
12599 Parser hook: case insensitive
12613 Parser hook: case insensitive, redux
12626 Parser hook: nested tags
12630 <tag><tag></tag></tag>
12641 Parser hook: basic arguments
12643 <tag width=200 height = "100" depth = '50' square></tag>
12651 'square' => 'square',
12658 Parser hook: argument containing a forward slash (bug 5344)
12660 <tag filename='/tmp/bla'></tag>
12665 'filename' => '/tmp/bla',
12672 Parser hook: empty input using terminated empty elements (bug 2374)
12685 # </tag> should be output literally since there is no matching tag that begins it
12687 Parser hook: basic arguments using terminated empty elements (bug 2374)
12689 <tag width=200 height = "100" depth = '50' square/>
12699 'square' => 'square',
12708 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
12712 Parser hook: static parser hook not inside a comment
12714 <statictag>hello, world</statictag>
12715 <statictag action=flush/>
12723 Parser hook: static parser hook inside a comment
12725 <!-- <statictag>hello, world</statictag> -->
12726 <statictag action=flush/>
12732 # Nested template calls; this case was broken by Parser.php rev 1.506,
12736 Template:One-parameter
12738 (My parameter is: {{{1}}})
12742 Template:Map-one-parameter
12744 {{{{{1}}}|{{{2}}}}}
12748 Nested template calls
12750 {{Map-one-parameter|One-parameter|param}}
12752 <p>(My parameter is: param)
12761 Sanitizer: Closing of open tags
12763 <s></s><table></table>
12765 <s></s><table></table>
12770 Sanitizer: Closing of open but not closed tags
12779 Sanitizer: Closing of closed but not open tags
12788 Sanitizer: Closing of closed but not open table tags
12790 Table not started</td></tr></table>
12792 <p>Table not started</td></tr></table>
12797 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
12799 <span id="æ: v">byte</span>[[#æ: v|backlink]]
12801 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
12806 Sanitizer: Validating the contents of the id attribute (bug 4515)
12812 Something, but definitely not <br id="9" />...
12816 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
12820 <br id="foo" /><br id="foo" />
12822 Something need to be done. foo-2 ?
12826 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
12829 <meta itemprop="hello" content="world">
12830 <meta http-equiv="refresh" content="5">
12831 <meta itemprop="hello" http-equiv="refresh" content="5">
12832 <link itemprop="hello" href="{{SERVER}}">
12833 <link rel="stylesheet" href="{{SERVER}}">
12834 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
12837 <div itemscope="itemscope">
12838 <p> <meta itemprop="hello" content="world" />
12839 <meta http-equiv="refresh" content="5">
12840 <meta itemprop="hello" content="5" />
12842 <link itemprop="hello" href="http://example.org" />
12843 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
12844 <link itemprop="hello" href="http://example.org" />
12850 Language converter: output gets cut off unexpectedly (bug 5757)
12854 this bit is safe: }-
12856 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12858 then we get cut off here: }-
12860 all additional text is vanished
12862 <p>this bit is safe: }-
12863 </p><p>but if we add a conversion instance: xxx
12864 </p><p>then we get cut off here: }-
12865 </p><p>all additional text is vanished
12870 Self closed html pairs (bug 5487)
12873 <center><font id="bug" />Centered text</center>
12874 <div><font id="bug2" />In div text</div>
12876 <center><font id="bug" />Centered text</center>
12877 <div><font id="bug2" />In div text</div>
12886 Punctuation: nbsp before exclamation
12890 <p>C'est grave !
12895 Punctuation: CSS !important (bug 11874)
12897 <div style="width:50% !important">important</div>
12899 <div style="width:50% !important">important</div>
12904 Punctuation: CSS ! important (bug 11874; with space after)
12906 <div style="width:50% ! important">important</div>
12908 <div style="width:50% ! important">important</div>
12914 HTML bullet list, closed tags (bug 5497)
12929 HTML bullet list, unclosed tags (bug 5497)
12948 HTML ordered list, closed tags (bug 5497)
12963 HTML ordered list, unclosed tags (bug 5497)
12982 HTML nested bullet list, closed tags (bug 5497)
13007 HTML nested bullet list, open tags (bug 5497)
13036 HTML nested ordered list, closed tags (bug 5497)
13061 HTML nested ordered list, open tags (bug 5497)
13090 HTML ordered list item with parameters oddity
13092 <ol><li id="fragment">One</li>
13095 <ol><li id="fragment">One</li>
13101 bug 5918: autonumbering
13103 [http://first/] [http://second] [ftp://ftp]
13107 [mailto:enclosed@mail.tld With target]
13109 [mailto:enclosed@mail.tld]
13111 mailto:inline@mail.tld
13113 <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>
13114 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
13115 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
13116 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
13117 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
13123 # Security and HTML correctness
13124 # From Nick Jenkins' fuzz testing
13128 Fuzz testing: Parser13
13143 Fuzz testing: Parser14
13148 <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>
13149 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13151 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
13159 Fuzz testing: Parser14-table
13164 <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>
13165 <table style="__TOC__">
13171 # Known to produce bogus xml (extra </td>)
13173 Fuzz testing: Parser16
13193 Fuzz testing: Parser21
13196 ! irc://{{ftp://a" onmouseover="alert('hello world');"
13201 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
13211 Fuzz testing: Parser22
13213 http://===r:::https://b
13217 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
13225 # Known to produce bad XML for now
13227 Fuzz testing: Parser24
13234 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
13235 <br style="onmouseover='alert(document.cookie);' " />
13237 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13242 <u class="|">}}}} >
13243 <br style="onmouseover='alert(document.cookie);'" />
13245 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13254 # Note: the current result listed for this is not what the original one was,
13255 # but the original bug was JavaScript injection, which is fixed in any case.
13256 # It's not clear that the original result listed was any more correct than the
13257 # current one. Original result:
13260 # <li class="||">
13261 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13263 Fuzz testing: Parser25 (bug 6055)
13269 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
13271 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13276 Fuzz testing: URL adjacent extension (with space, clean)
13279 http://example.com <nowiki>junk</nowiki>
13281 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
13286 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
13289 http://example.com<nowiki>junk</nowiki>
13291 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
13296 Fuzz testing: URL adjacent extension (no space, dirty; pre)
13299 http://example.com<pre>junk</pre>
13301 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
13306 Fuzz testing: image with bogus manual thumbnail
13308 [[Image:foobar.jpg|thumbnail= ]]
13310 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
13313 <meta typeof="mw:Placeholder" data-parsoid='{"src":"[[Image:foobar.jpg|thumbnail= ]]","optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,null,null]}'/>
13317 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
13319 <pre dir=" "></pre>
13321 <pre dir=" "></pre>
13326 Parsing optional HTML elements (Bug 6171)
13331 <td> Some tabular data</td>
13332 <td> More tabular data ...
13333 <td> And yet som tabular data</td>
13339 <td> Some tabular data</td>
13340 <td> More tabular data ...
13341 </td><td> And yet som tabular data</td>
13348 Correct handling of <td>, <tr> (Bug 6171)
13353 <td> Some tabular data</td>
13354 <td> More tabular data ...</td>
13355 <td> And yet som tabular data</td>
13361 <td> Some tabular data</td>
13362 <td> More tabular data ...</td>
13363 <td> And yet som tabular data</td>
13371 Parsing crashing regression (fr:JavaScript)
13375 <p></body></x>
13380 Inline wiki vs wiki block nesting
13386 <p><b>Bold paragraph</b>
13387 </p><p>New wiki paragraph
13392 Inline HTML vs wiki block nesting
13400 <p><b>Bold paragraph</b>
13401 </p><p>New wiki paragraph
13405 # Original result was this:
13406 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
13408 # While that might be marginally more intuitive, maybe, the six-apostrophe
13409 # construct is clearly pathological and the result stated here (which is what
13410 # the parser actually does) is about as reasonable as anything.
13412 Mixing markup for italics and bold
13415 '''bold''''''bold''bolditalics'''''
13417 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
13425 Article for special page transclusion test
13429 Special page transclusion
13432 {{Special:Prefixindex/Xyzzyx}}
13434 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13439 Special page transclusion twice (bug 5021)
13442 {{Special:Prefixindex/Xyzzyx}}
13443 {{Special:Prefixindex/Xyzzyx}}
13445 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13446 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13451 Transclusion of default MediaWiki message
13453 {{MediaWiki:Mainpage}}
13460 Transclusion of nonexistent MediaWiki message
13462 {{MediaWiki:Mainpagexxx}}
13464 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
13469 Transclusion of MediaWiki message with underscore
13471 {{MediaWiki:history_short}}
13478 Transclusion of MediaWiki message with space
13480 {{MediaWiki:history short}}
13487 Invalid header with following text
13497 Section extraction test (section 0)
13517 Section extraction test (section 1)
13539 Section extraction test (section 2)
13560 Section extraction test (section 3)
13580 Section extraction test (section 4)
13604 Section extraction test (section 5)
13624 Section extraction test (section 6)
13645 Section extraction test (section 7)
13665 Section extraction test (section 8)
13685 Section extraction test (section 9)
13706 Section extraction test (section 10)
13726 Section extraction test (nonexistent section 11)
13745 Section extraction test with bogus heading (section 1)
13750 ==bogus== not a legal section
13754 ==bogus== not a legal section
13758 Section extraction test with bogus heading (section 2)
13763 ==bogus== not a legal section
13770 Section extraction test with comment after heading (section 1)
13782 Section extraction test with comment after heading (section 2)
13794 Section extraction test with bogus <nowiki> heading (section 1)
13799 ==bogus== <nowiki>not a legal section</nowiki>
13803 ==bogus== <nowiki>not a legal section</nowiki>
13807 Section extraction test with bogus <nowiki> heading (section 2)
13812 ==bogus== <nowiki>not a legal section</nowiki>
13819 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
13820 # instead of respecting commented sections
13822 Section extraction prefixed by comment (section 1)
13833 Section extraction prefixed by comment (section 2)
13844 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
13845 # instead of respecting HTML-style headings
13847 Section extraction, mixed wiki and html (section 1)
13863 Section extraction, mixed wiki and html (section 2)
13879 # Formerly testing for bug 3342
13881 Section extraction, heading surrounded by <noinclude>
13885 <noinclude>==unmarked==</noinclude>
13891 # Test behavior of bug 19910
13893 Sectiion with all-equals
13898 The line above must have a trailing space
13901 But just in case it doesn't...
13905 But just in case it doesn't...
13909 Section replacement test (section 0)
13940 Section replacement test (section 1)
13969 Section replacement test (section 2)
13999 Section replacement test (section 3)
14030 Section replacement test (section 4)
14057 Section replacement test (section 5)
14088 Section replacement test (section 6)
14118 Section replacement test (section 7)
14149 Section replacement test (section 8)
14180 Section replacement test (section 9)
14209 Section replacement test (section 10)
14239 Section replacement test with initial whitespace (bug 13728)
14243 Preformatted initial line
14247 Preformatted initial line
14254 Section extraction, heading followed by pre with 20 spaces (bug 6398)
14266 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
14279 Section extraction, <pre> around bogus header (bug 10309)
14296 Section replacement, <pre> around bogus header (bug 10309)
14298 noxml replace=2,"xxx"
14319 Handling of 
 in URLs
14325 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
14333 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
14335 5 quotes, code coverage +1 line
14340 <p><b><i></i></b></p>
14344 Special:Search page linking.
14348 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
14355 title=[[Parser test]]
14360 * {{FULLPAGENAMEE}}
14362 * {{BASEPAGENAMEE}}
14366 * {{ROOTPAGENAMEE}}
14368 * {{TALKPAGENAMEE}}
14369 * {{SUBJECTPAGENAME}}
14370 * {{SUBJECTPAGENAMEE}}
14373 * {{NAMESPACENUMBER}}
14377 * {{SUBJECTSPACEE}}
14378 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
14401 <li> Talk:Parser test
14403 <li> Talk:Parser_test
14423 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
14428 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
14438 image4 |300px| centre
14439 image5.svg| http://///////
14444 <ul class="gallery mw-gallery-traditional">
14445 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14446 <div class="thumb" style="height: 150px;">Image1.png</div>
14447 <div class="gallerytext">
14450 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14451 <div class="thumb" style="height: 150px;">Image2.gif</div>
14452 <div class="gallerytext">
14457 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14458 <div class="thumb" style="height: 150px;">Image3</div>
14459 <div class="gallerytext">
14462 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14463 <div class="thumb" style="height: 150px;">Image4</div>
14464 <div class="gallerytext">
14469 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14470 <div class="thumb" style="height: 150px;">Image5.svg</div>
14471 <div class="gallerytext">
14472 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
14476 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14477 <div class="thumb" style="height: 150px;">* image6</div>
14478 <div class="gallerytext">
14486 Gallery (with options)
14488 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
14489 File:Nonexistant.jpg|caption
14490 File:Nonexistant.jpg
14491 image:foobar.jpg|some '''caption''' [[Main Page]]
14493 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
14496 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
14497 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
14498 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14499 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14500 <div class="gallerytext">
14505 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14506 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14507 <div class="gallerytext">
14510 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14511 <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>
14512 <div class="gallerytext">
14513 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14517 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14518 <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>
14519 <div class="gallerytext">
14522 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14523 <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>
14524 <div class="gallerytext">
14534 Gallery with wikitext inside caption
14537 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
14538 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
14541 <ul class="gallery mw-gallery-traditional">
14542 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14543 <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>
14544 <div class="gallerytext">
14545 <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>
14549 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14550 <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>
14551 <div class="gallerytext">
14552 <p>This is a test template
14561 gallery (with showfilename option)
14563 <gallery showfilename>
14564 File:Nonexistant.jpg|caption
14565 File:Nonexistant.jpg
14566 image:foobar.jpg|some '''caption''' [[Main Page]]
14570 <ul class="gallery mw-gallery-traditional">
14571 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14572 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14573 <div class="gallerytext">
14574 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14579 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14580 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14581 <div class="gallerytext">
14582 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14586 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14587 <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>
14588 <div class="gallerytext">
14589 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14590 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14594 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14595 <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>
14596 <div class="gallerytext">
14597 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14606 Gallery (with namespace-less filenames)
14609 File:Nonexistant.jpg
14615 <ul class="gallery mw-gallery-traditional">
14616 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14617 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14618 <div class="gallerytext">
14621 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14622 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14623 <div class="gallerytext">
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="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
14628 <div class="gallerytext">
14631 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14632 <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>
14633 <div class="gallerytext">
14641 HTML Hex character encoding (spells the word "JavaScript")
14643 JavaScript
14645 <p>JavaScript
14650 HTML Hex character encoding bogus encoding (bug 26437 regression check)
14654 <p>&#xsee;&#XSEE;
14659 HTML Hex character encoding mixed case
14668 __FORCETOC__ override
14680 ISBN 978-0-1234-56 789
14682 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
14687 ISBN followed by 5 spaces
14698 ISBN ISBN 1234567890
14700 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14709 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
14714 Bug 22905: <abbr> followed by ISBN followed by </a>
14716 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
14718 <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>
14727 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
14732 Double RFC with a wiki link
14736 <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>
14745 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
14750 Centre-aligned image
14752 [[Image:foobar.jpg|centre]]
14754 <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>
14761 [[Image:foobar.jpg|none]]
14763 <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>
14768 Width + Height sized image (using px) (height is ignored)
14770 [[Image:foobar.jpg|640x480px]]
14772 <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>
14777 Width-sized image (using px, no following whitespace)
14779 [[Image:foobar.jpg|640px]]
14781 <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>
14786 Width-sized image (using px, with following whitespace - test regression from r39467)
14788 [[Image:foobar.jpg|640px ]]
14790 <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>
14795 Width-sized image (using px, with preceding whitespace - test regression from r39467)
14797 [[Image:foobar.jpg| 640px]]
14799 <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>
14804 Another italics / bold test
14812 # Note the results may be incorrect, as parserTest output included this:
14813 # XML error: Mismatched tag at byte 6120:
14814 # ...<dd> </dt></dl> </dd...
14845 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
14847 Images with the "|" character in the comment
14849 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
14851 <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>
14856 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14858 <html><script>alert(1);</script></html>
14860 <p><html><script>alert(1);</script></html>
14865 HTML with raw HTML ($wgRawHtml==true)
14869 <html><script>alert(1);</script></html>
14871 <p><script>alert(1);</script>
14876 Parents of subpages, one level up
14878 subpage title=[[Subpage test/L1/L2/L3]]
14882 <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>
14888 Parents of subpages, one level up, not named
14890 subpage title=[[Subpage test/L1/L2/L3]]
14894 <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>
14901 Parents of subpages, two levels up
14903 subpage title=[[Subpage test/L1/L2/L3]]
14909 <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
14910 </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>
14915 Parents of subpages, two levels up, without trailing slash or name.
14917 subpage title=[[Subpage test/L1/L2/L3]]
14926 Parents of subpages, two levels up, with lots of extra trailing slashes.
14928 subpage title=[[Subpage test/L1/L2/L3]]
14932 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14937 Subpage test/L1/L2/L3Sibling
14943 Transclusion of a sibling page (one level up)
14945 subpage title=[[Subpage test/L1/L2/L3]]
14954 Transclusion of a child page
14956 subpage title=[[Subpage test/L1/L2]]
14965 Non-transclusion because of too many up levels
14967 subpage title=[[Subpage test/L1/L2/L3]]
14969 {{../../../../More than parent}}
14971 <p>{{../../../../More than parent}}
14976 Definition list code coverage
14983 <dt> title  </dt>
14986 <dt> title </dt>
14997 Don't fall for the self-closing div
14999 <div>hello world</div/>
15001 <div>hello world</div>
15010 <p>[[:Template:Msg]]
15019 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
15023 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
15025 Always escape literal '>' in output, not just after '<'
15039 <p>This is a test template
15040 This is a test template
15052 Inclusion of !userCanEdit() content
15056 <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>
15062 Out-of-order TOC heading levels
15071 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15073 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
15075 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
15076 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
15079 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
15081 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
15082 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
15088 <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>
15089 <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>
15090 <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>
15091 <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>
15092 <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>
15093 <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>
15099 ISBN with a dummy number
15109 ISBN with space-delimited number
15113 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
15119 ISBN with multiple spaces, no number
15138 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
15139 </p><p>ISBN 12345678901
15145 ISBN with trailing year (bug 8110)
15147 ISBN 1-234-56789-0 - 2006
15149 ISBN 1 234 56789 0 - 2006
15151 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
15152 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
15160 {{anchorencode:foo bar©#%n}}
15162 <p>foo_bar.C2.A9.23.25n
15167 anchorencode trims spaces
15169 {{anchorencode: __pretty__please__}}
15176 anchorencode deals with links
15178 {{anchorencode: [[hello|world]] [[hi]]}}
15185 anchorencode deals with templates
15187 {{anchorencode: {{Foo}} }}
15194 anchorencode encodes like the TOC generator: (bug 18431)
15196 === _ +:.3A%3A&&]] ===
15197 {{anchorencode: _ +:.3A%3A&&]] }}
15200 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
15201 <p>.2B:.3A.253A.26.26.5D.5D
15206 Bug 6200: blockquotes and paragraph formatting
15227 Bug 8293: Use of center tag ruins paragraph formatting
15248 Parsing of overlapping (improperly nested) inline html tags
15250 <span><s>x</span></s>
15252 <p><span><s>x</span></s></span>
15255 <p><span><s>x</s></span>
15260 ### Language variants related tests
15263 Self-link in language variants
15265 title=[[Dunav]] language=sr
15267 Both [[Dunav]] and [[Дунав]] are names for this river.
15269 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
15280 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
15282 title=[[Duna]] language=sr
15284 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
15286 <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.
15291 Link to a section of a variant of this title shouldn't be parsed as self-link
15293 title=[[Duna]] language=sr
15295 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
15297 <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.
15302 Link to pages in language variants
15306 Main Page can be written as [[Маин Паге]]
15308 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
15314 Multiple links to pages in language variants
15318 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
15320 <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>.
15326 Simple template in language variants
15332 <p>This is a test template
15338 Template with explicit namespace in language variants
15344 <p>This is a test template
15350 Basic test for template parameter in language variants
15354 {{парамтест|param=foo}}
15356 <p>This is a test template with parameter foo
15362 Simple category in language variants
15366 [[Category:МедиаWики Усер'с Гуиде]]
15368 <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>
15385 Don't convert blue categorylinks to another variant (bug 33210)
15389 [[A]][[Category:分类]]
15391 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
15396 Stripping -{}- tags (language variants)
15400 Latin proverb: -{Ne nuntium necare}-
15402 <p>Latin proverb: Ne nuntium necare
15408 Prevent conversion with -{}- tags (language variants)
15410 language=sr variant=sr-ec
15412 Latinski: -{Ne nuntium necare}-
15414 <p>Латински: Ne nuntium necare
15420 Prevent conversion of text with -{}- tags (language variants)
15422 language=sr variant=sr-ec
15424 Latinski: -{Ne nuntium necare}-
15426 <p>Латински: Ne nuntium necare
15432 Prevent conversion of links with -{}- tags (language variants)
15434 language=sr variant=sr-ec
15438 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15444 -{}- tags within headlines (within html for parserConvert())
15446 language=sr variant=sr-ec
15450 <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>
15456 Explicit definition of language variant alternatives
15458 language=zh variant=zh-tw
15460 -{zh:China;zh-tw:Taiwan}-, not China
15462 <p>Taiwan, not China
15468 Conversion around HTML tags
15470 language=sr variant=sr-ec
15472 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
15473 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
15476 <span title="ЛаCтин">ски</span>
15482 Explicit session-wise language variant mapping (A flag and - flag)
15484 language=zh variant=zh-tw
15486 Taiwan is not China.
15487 But -{A|zh:China;zh-tw:Taiwan}- is China,
15488 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
15489 and -{China}- is China.
15491 <p>Taiwan is not China.
15492 But Taiwan is Taiwan,
15493 (This should be stripped!)
15494 and China is China.
15499 Explicit session-wise language variant mapping (H flag for hide)
15501 language=zh variant=zh-tw
15503 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
15506 <p>(This should be stripped!)
15512 Adding explicit conversion rule for title (T flag)
15514 language=zh variant=zh-tw showtitle
15516 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15519 <p>Should be stripped!
15524 Testing that changing the language variant here in the tests actually works
15526 language=zh variant=zh showtitle
15528 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15531 <p>Should be stripped!
15536 Recursive conversion of alt and title attrs shouldn't clear converter state
15538 language=zh variant=zh-cn showtitle
15540 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
15541 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
15545 Should be stripped<span title="Exclamation">!</span>
15550 Bug 24072: more test on conversion rule for title
15552 language=zh variant=zh-tw showtitle
15554 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15555 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
15558 <p>This should be stripped!
15559 This won't take interferes with the title rule.
15564 Partly disable title conversion if variant == main language code
15566 language=zh variant=zh title=[[ZH]] showtitle
15568 -{T|zh-cn:CN;zh-tw:TW}-
15576 Partly disable title conversion if variant == main language code, more
15578 language=zh variant=zh title=[[ZH]] showtitle
15588 Raw output of variant escape tags (R flag)
15590 language=zh variant=zh-tw
15592 Raw: -{R|zh:China;zh-tw:Taiwan}-
15594 <p>Raw: zh:China;zh-tw:Taiwan
15599 Nested using of manual convert syntax
15601 language=zh variant=zh-hk
15603 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
15605 <p>Nested: Hello Hong Kong!
15610 Proper conversion of text in external links
15612 language=sr variant=sr-ec
15614 http://www.google.com
15615 gopher://www.google.com
15616 [http://www.google.com http://www.google.com]
15617 [gopher://www.google.com gopher://www.google.com]
15618 [https://www.google.com irc://www.google.com]
15619 [ftp://www.google.com www.google.com/ftp://dir]
15620 [//www.google.com www.google.com]
15622 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15623 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15624 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15625 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15626 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
15627 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
15628 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
15633 Do not convert roman numbers to language variants
15635 language=sr variant=sr-ec
15639 <p>Фридрих IV је цар.
15644 Unclosed language converter markup "-{"
15655 Don't convert raw rule "-{R|=>}-" to "=>"
15666 Don't break link parsing if language converter markup is in the caption.
15668 language=sr variant=sr-ec
15670 [[Main Page|-{R|main page}-]]
15672 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
15676 # This test is currently broken in the PHP parser (bug 52661)
15678 Don't break image parsing if language converter markup is in the caption.
15683 [[File:Foobar.jpg|-{R|caption}-]]
15685 <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>
15689 # This test is currently broken in the PHP parser (bug 52661)
15691 Don't break list handling if language converter markup is in the item.
15693 language=zh variant=zh-cn
15696 ;-{zh-cn:AAA;zh-tw:BBB}-
15703 # This test is currently broken in the PHP parser (bug 52661)
15705 Don't break table handling if language converter markup is in the cell.
15707 language=sr variant=sr-ec
15724 Bug 529: Uncovered bullet
15737 # Plain MediaWiki does not remove empty lists, but tidy actually does.
15738 # Templates in Wikipedia rely on this behavior, as tidy has always been
15739 # enabled there. These tests are normally run *without* tidy, so specify the
15740 # full output here.
15741 # To test realistic parsing behavior, apply a tidy-like transformation to both
15742 # the expected output and your parser's output.
15744 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
15746 ******* Foo {{bullet}}
15776 Bug 529: Uncovered table already at line-start
15799 Bug 529: Uncovered bullet in parser function result
15801 * Foo {{lc:{{bullet}} }}
15813 Bug 5678: Double-parsed template argument
15815 {{lc:{{{1}}}|hello}}
15822 Bug 5678: Double-parsed template invocation
15824 {{lc:{{paramtest {{!}} param = hello }} }}
15826 <p>{{paramtest | param = hello }}
15831 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
15834 title=[[Main Page]]
15836 {{PRVNÍVELKÉ:ěščř}}
15837 {{prvnívelké:ěščř}}
15857 Morwen/13: Unclosed link followed by heading
15864 <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>
15869 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
15876 <h1><span class="mw-headline" id="heading">heading</span></h1>
15881 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
15888 <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>
15903 Paragraphs inside divs (no extra line breaks)
15915 Paragraphs inside divs (extra line break on open)
15930 Paragraphs inside divs (extra line break on close)
15945 Paragraphs inside divs (extra line break on open and close)
15962 Nesting tags, paragraphs on lines which begin with <div>
15966 <div></div><strong>A
15975 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
15977 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
15979 <blockquote>Line one
15981 Line two</blockquote>
15983 <blockquote>Line one
15984 Line two</blockquote>
15989 Bug 6200: paragraphs inside blockquotes (extra line break on open)
15994 Line two</blockquote>
15999 Line two</blockquote>
16004 Bug 6200: paragraphs inside blockquotes (extra line break on close)
16006 <blockquote>Line one
16011 <blockquote>Line one
16019 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
16036 Paragraphs inside blockquotes/divs (no extra line breaks)
16038 <blockquote><div>Line one
16040 Line two</div></blockquote>
16042 <blockquote><div>Line one
16043 Line two</div></blockquote>
16048 Paragraphs inside blockquotes/divs (extra line break on open)
16053 Line two</div></blockquote>
16058 Line two</div></blockquote>
16063 Paragraphs inside blockquotes/divs (extra line break on close)
16065 <blockquote><div>Line one
16068 </div></blockquote>
16070 <blockquote><div>Line one
16073 </div></blockquote>
16078 Paragraphs inside blockquotes/divs (extra line break on open and close)
16084 </div></blockquote>
16090 </div></blockquote>
16095 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
16097 wgLinkHolderBatchSize=0
16103 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
16104 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
16105 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
16110 Free external link invading image caption
16112 [[Image:Foobar.jpg|thumb|http://x|hello]]
16114 <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>
16119 Bug 15196: localised external link numbers
16123 [http://en.wikipedia.org/]
16125 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
16130 Multibyte character in padleft
16132 {{padleft:-Hello|7|Æ}}
16139 Multibyte character in padright
16141 {{padright:Hello-|7|Æ}}
16148 formatdate parser function
16150 {{#formatdate:2009-03-24}}
16152 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
16157 formatdate parser function, with default format
16159 {{#formatdate:2009-03-24|mdy}}
16161 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
16166 Spacing of numbers in formatted dates
16168 {{#formatdate:January 15}}
16170 <p><span class="mw-formatted-date" title="01-15">January 15</span>
16175 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
16177 language=nl title=[[MediaWiki:Common.css]]
16179 {{#formatdate:2009-03-24|dmy}}
16181 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
16194 Edit comment with link
16198 I like the [[Main Page]] a lot
16200 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
16204 Edit comment with link and link text
16208 I like the [[Main Page|best pages]] a lot
16210 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16214 Edit comment with link and link text with suffix
16218 I like the [[Main Page|best page]]s a lot
16220 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16224 Edit comment with section link (non-local, eg in history list)
16226 comment title=[[Main Page]]
16228 /* External links */ removed bogus entries
16230 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16234 Edit comment with section link and text before it (non-local, eg in history list)
16236 comment title=[[Main Page]]
16238 pre-comment text /* External links */ removed bogus entries
16240 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>
16244 Edit comment with section link (local, eg in diff view)
16246 comment local title=[[Main Page]]
16248 /* External links */ removed bogus entries
16250 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16254 Edit comment with subpage link (bug 14080)
16258 title=[[Subpage test]]
16260 Poked at a [[/subpage]] here...
16262 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
16266 Edit comment with subpage link and link text (bug 14080)
16270 title=[[Subpage test]]
16272 Poked at a [[/subpage|neat little page]] here...
16274 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
16278 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
16281 title=[[Subpage test]]
16283 Poked at a [[/subpage]] here...
16285 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
16289 Edit comment with bare anchor link (local, as on diff)
16293 title=[[Main Page]]
16297 <a href="#section">#section</a>
16301 Edit comment with bare anchor link (non-local, as on history)
16304 title=[[Main Page]]
16308 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
16312 Anchor starting with underscore
16316 <p><a href="#_ref">One</a>
16321 Id starting with underscore
16323 <div id="_ref"></div>
16325 <div id="_ref"></div>
16330 Space normalisation on autocomment (bug 22784)
16333 title=[[Main Page]]
16335 /* __hello__world__ */
16337 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
16341 percent-encoding and + signs in comments (Bug 26410)
16345 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
16347 <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>
16351 Bad images - basic functionality
16360 Bad images - bug 16039: text after bad image disappears
16374 Verify that displaytitle works (bug #22501) no displaytitle
16378 wgAllowDisplayTitle=true
16379 wgRestrictDisplayTitle=false
16381 this is not the the title
16384 <p>this is not the the title
16389 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
16394 wgAllowDisplayTitle=true
16395 wgRestrictDisplayTitle=false
16397 this is not the the title
16398 {{DISPLAYTITLE:whatever}}
16401 <p>this is not the the title
16406 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
16411 wgAllowDisplayTitle=true
16412 wgRestrictDisplayTitle=true
16414 this is not the the title
16415 {{DISPLAYTITLE:whatever}}
16418 <p>this is not the the title
16423 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
16428 wgAllowDisplayTitle=true
16429 wgRestrictDisplayTitle=true
16431 this is not the the title
16432 {{DISPLAYTITLE:screen}}
16435 <p>this is not the the title
16440 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
16445 wgAllowDisplayTitle=false
16447 this is not the the title
16448 {{DISPLAYTITLE:screen}}
16451 <p>this is not the the title
16452 <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>
16457 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
16462 wgAllowDisplayTitle=false
16464 this is not the the title
16467 <p>this is not the the title
16472 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
16477 wgAllowDisplayTitle=true
16478 wgRestrictDisplayTitle=true
16480 this is not the the title
16481 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
16483 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
16484 <p>this is not the the title
16489 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
16494 wgAllowDisplayTitle=true
16495 wgRestrictDisplayTitle=true
16497 this is not the the title
16498 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
16500 <span style="color: red;">s</span>creen
16501 <p>this is not the the title
16506 preload: check <noinclude> and <includeonly>
16510 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
16516 preload: check <onlyinclude>
16520 Goodbye <onlyinclude>Hello world</onlyinclude>
16526 preload: can pass tags through if we want to
16530 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
16532 <includeonly>Hello world</includeonly>
16536 preload: check that it doesn't try to do tricks
16540 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16542 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16546 Play a bit with r67090 and bug 3158
16550 <div style="width:50% !important"> </div>
16551 <div style="width:50% !important"> </div>
16552 <div style="width:50% !important"> </div>
16553 <div style="border : solid;"> </div>
16555 <div style="width:50% !important"> </div>
16556 <div style="width:50% !important"> </div>
16557 <div style="width:50% !important"> </div>
16558 <div style="border : solid;"> </div>
16563 HTML5 data attributes
16565 <span data-foo="bar">Baz</span>
16566 <p data-abc-def_hij="">Quuz</p>
16568 <p><span data-foo="bar">Baz</span>
16570 <p data-abc-def_hij="">Quuz</p>
16575 percent-encoding and + signs in internal links (Bug 26410)
16577 [[User:+%]] [[Page+title%]]
16578 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
16579 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
16580 [[%33%45]] [[%33%45+]]
16582 <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>
16583 <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>
16584 <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>
16585 <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>
16590 Special characters in embedded file links (bug 27679)
16592 [[File:Contains & ampersand.jpg]]
16593 [[File:Does not exist.jpg|Title with & ampersand]]
16595 <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>
16596 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
16602 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
16604 Text's been normalized?
16606 <p>Text's been normalized?
16611 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
16613 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
16615 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
16620 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
16622 [http://www.example.org/ ideograms]
16624 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
16629 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
16631 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
16633 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
16657 Bug 31098 Template which includes system messages which includes the template
16661 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16662 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16667 Bug31490 Turkish: ucfirst 'blah'
16678 Bug31490 Turkish: ucfirst 'ix'
16689 Bug31490 Turkish: lcfirst 'BLAH'
16700 Bug31490 Turkish: ucfırst (with a dotless i)
16706 <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>
16711 Bug31490 ucfırst (with a dotless i) with English language
16717 <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>
16722 Bug 26375: TOC with italics
16724 title=[[Main Page]]
16727 == ''Lost'' episodes ==
16729 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16731 <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>
16735 <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>
16740 Bug 26375: TOC with bold
16742 title=[[Main Page]]
16745 == '''should be bold''' then normal text ==
16747 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16749 <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>
16753 <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>
16758 Bug 33845: Headings become cursive in TOC when they contain an image
16760 title=[[Main Page]]
16763 == Image [[Image:foobar.jpg]] ==
16765 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16767 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
16771 <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>
16776 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
16778 title=[[Main Page]]
16781 == <blockquote>Quote</blockquote> ==
16783 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16785 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
16789 <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>
16794 Unclosed tags in TOC
16796 title=[[Main Page]]
16800 <small>Hanc marginis exiguitas non caperet.</small>
16803 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16805 <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>
16809 <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>
16810 <p><small>Hanc marginis exiguitas non caperet.</small>
16816 Multiple tags in TOC
16819 == <i>Foo</i> <b>Bar</b> ==
16821 == <i>Foo</i> <blockquote>Bar</blockquote> ==
16823 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16825 <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>
16826 <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>
16830 <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>
16831 <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>
16836 Tags with parameters in TOC
16839 == <sup class="in-h2">Hello</sup> ==
16841 == <sup class="a > b">Evilbye</sup> ==
16843 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16845 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
16846 <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>
16850 <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>
16851 <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>
16856 span tags with directionality in TOC
16859 == <span dir="ltr">C++</span> ==
16861 == <span dir="rtl">זבנג!</span> ==
16863 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
16865 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
16867 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
16869 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16871 <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>
16872 <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>
16873 <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>
16874 <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>
16875 <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>
16879 <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>
16880 <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>
16881 <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>
16882 <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>
16883 <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>
16890 == {{int:headline_sample}} ==
16894 Bug 32057: Title needed when expanding <h> nodes.
16896 title=[[Main Page]]
16900 <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>
16905 Strip marker in urlencode
16907 {{urlencode:x<nowiki/>y}}
16908 {{urlencode:x<nowiki/>y|wiki}}
16909 {{urlencode:x<nowiki/>y|path}}
16936 Strip marker in formatNum
16938 {{formatnum:1<nowiki/>2}}
16939 {{formatnum:1<nowiki/>2|R}}
16947 Check noCommafy in formatNum
16951 {{formatnum:123456.78}}
16952 {{formatnum:123456.78|NOSEP}}
16960 Wrong option for formatNum (bug 56199)
16962 {{formatnum:1,234.56|Random}}
16963 {{formatnum:1,234.56|EVERYTHING}}
16964 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
16973 Strip marker in grammar
16977 {{grammar:elative|foo<nowiki/>bar}}
16984 Strip marker in padleft
16986 {{padleft:|2|x<nowiki/>y}}
16993 Strip marker in padright
16995 {{padright:|2|x<nowiki/>y}}
17002 Strip marker in anchorencode
17004 {{anchorencode:x<nowiki/>y}}
17011 nowiki inside link inside heading (bug 18295)
17013 ==[[foo|x<nowiki>y</nowiki>z]]==
17015 <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>
17020 new support for bdi element (bug 31817)
17022 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17024 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17029 Ignore pipe between table row attributes
17033 |- id=foo | style='color: red'
17041 <tr id="foo" style="color: red">
17048 Gallery override link with WikiLink (bug 34852)
17051 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
17054 <ul class="gallery mw-gallery-traditional">
17055 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17056 <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>
17057 <div class="gallerytext">
17067 Gallery override link with absolute external link (bug 34852)
17070 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
17073 <ul class="gallery mw-gallery-traditional">
17074 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17075 <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>
17076 <div class="gallerytext">
17086 Gallery override link with malicious javascript (bug 34852)
17089 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
17092 <ul class="gallery mw-gallery-traditional">
17093 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17094 <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>
17095 <div class="gallerytext">
17105 Gallery with invalid title as link (bug 43964)
17108 File:foobar.jpg|link=<
17111 <ul class="gallery mw-gallery-traditional">
17112 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17113 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/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>
17114 <div class="gallerytext">
17122 Language parser function
17131 Padleft and padright as substr
17133 {{padleft:|3|abcde}}
17134 {{padright:|3|abcde}}
17142 Special parser function
17144 {{#special:RandomPage}}
17145 {{#special:BaDtItLe}}
17146 {{#special:Foobar}}
17155 Bug 34939 - Case insensitive link parsing ([HttP://])
17157 [HttP://MediaWiki.Org/]
17159 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
17164 Bug 34939 - Case insensitive link parsing ([HttP:// title])
17166 [HttP://MediaWiki.Org/ MediaWiki]
17168 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
17173 Bug 34939 - Case insensitive link parsing (HttP://)
17175 HttP://MediaWiki.Org/
17177 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
17196 <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>
17197 <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>
17198 <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>
17199 <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>
17200 <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>
17206 ### Parsoids-specific tests
17207 ### Parsoid-PHP parser incompatibilities
17210 1. SOL-sensitive wikitext tokens as template-args
17212 parsoid=wt2html,wt2wt
17218 <span about="#mwt1" typeof="mw:Transclusion">
17219 </span><ul about="#mwt1"><li>a</li>
17221 <span about="#mwt2" typeof="mw:Transclusion">
17222 </span><ol about="#mwt2"><li>a</li>
17224 <span about="#mwt3" typeof="mw:Transclusion">
17225 </span><dl about="#mwt3"><dd>a</dd>
17229 #### ----------------------------------------------------------------
17230 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
17231 #### tags. Parsoid's output for these tags differs from that of the
17233 #### ----------------------------------------------------------------
17236 Ref: 1. ref-location should be replaced with an index span
17241 B <ref name="x">foo</ref>
17244 <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>
17245 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>
17246 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>
17250 Ref: 2. ref-tags with identical names should all get the same index
17254 A <ref name="x">foo</ref>
17257 <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>
17258 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>
17262 Ref: 3. spaces in ref-names should be ignored
17266 A <ref name="x">foo</ref>
17267 B <ref name=" x " />
17270 <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>
17271 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>
17272 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>
17276 Ref: 4. 'constructor' should be accepted as a valid ref-name
17277 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
17281 A <ref name="constructor">foo</ref>
17283 <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>
17287 Ref: 5. body should accept generic wikitext
17292 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
17297 <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>
17299 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
17300 <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>
17306 Ref: 6. indent-pres should not be output in ref-body
17318 <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>
17320 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
17321 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17329 Ref: 7. No p-wrapping in ref-body
17348 <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>
17350 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17351 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17366 Ref: 8. transclusion wikitext has lower precedence
17370 A <ref> foo {{echo|</ref> B C}}
17374 <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>
17375 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
17376 <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>
17381 Ref: 9. unclosed comments should not leak out of ref-body
17385 A <ref> foo <!--</ref> B C
17388 <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>
17389 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17390 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
17395 Ref: 10. Unclosed HTML tags should not leak out of ref-body
17399 A <ref> <b> foo </ref> B C
17403 <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>
17406 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17407 <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>
17412 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
17419 <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
17420 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>
17424 Ref: 12. ref-tags act as trailing newline migration barrier
17428 <!--the newline at the end of this line moves out of the p-tag-->a
17430 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
17435 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
17438 <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>
17439 <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>
17446 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
17454 <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
17455 <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>
17459 Ref: 14. A nested ref-tag should be emitted as plain text
17463 <ref>foo <ref>bar</ref> baz</ref>
17467 <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>
17469 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17470 <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>
17475 Ref: 15. ref-tags with identical names should get identical indexes
17479 A1 <ref name="a">foo</ref> A2 <ref name="a" />
17480 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
17484 <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>
17485 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>
17487 <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>
17491 ## We don't bother wt2wt-ing non-standard whitespace
17493 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
17501 <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>
17503 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17504 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
17508 References: 1. references tag without any refs should be handled properly
17514 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
17518 References: 2. references tag with group only outputs references from that group
17522 A <ref group="a">foo</ref>
17523 B <ref group="b">bar</ref>
17525 <references group="a" />
17527 <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>
17528 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>
17530 <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>
17535 References: 3. ref list should be cleared after processing references
17547 <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>
17549 <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>
17552 <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>
17554 <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>
17559 References: 4. only referenced group should be cleared after processing references
17563 A <ref group="a">afoo</ref>
17566 <references group="a" />
17572 <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>
17573 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>
17575 <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>
17578 <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>
17580 <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>
17585 References: 5. ref tags in references should be processed while ignoring all other content
17590 B <ref name="b">bar</ref>
17593 <ref name="a">foo</ref>
17594 This should just get lost.
17597 <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>
17598 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>
17601 <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":{}}'>
17602 <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>
17603 <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>
17608 References: 6. <references /> from a transclusion
17612 <ref>Foo</ref> {{echo|<references />}}
17614 <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>
17618 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
17622 A <ref>foo bar for a</ref>
17623 B <ref group="X" name="b" />
17627 <references group="X">
17628 <ref name="b">foo</ref>
17631 <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>
17632 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>
17634 <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>
17636 <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>
17639 # This test is wt2html only because we're permitting the serializer to produce
17640 # dirty diffs, normalizing the unclosed references to the self-closed version.
17642 Generate references for unclosed references tag
17650 <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>
17653 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
17654 <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>
17658 New reference serializes on its own line
17660 parsoid=wt2wt,html2wt
17665 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
17668 #### ----------------------------------------------------------------
17669 #### The following section of tests are primarily to test
17670 #### wikitext escaping capabilities of Parsoid. Given that
17671 #### escaping can be done any number of ways, the wikitext (input)
17672 #### is always adjusted to reflect how Parsoid adds nowiki
17675 #### We are marking several tests as parsoid-only since the
17676 #### HTML in the result section is different from what the
17677 #### PHP parser generates for it.
17678 #### ----------------------------------------------------------------
17681 #### --------------- Headings ---------------
17683 #### 1. Nested inside html <h1>=foo=</h1>
17684 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
17685 #### 3. Nested inside html with wikitext split by html tags
17686 #### 4. No escape needed
17687 #### 5. Empty headings <h1></h1>
17688 #### 6. Heading chars in SOL context
17689 #### ----------------------------------------
17691 Headings: 0. Unnested
17695 <nowiki>=foo=</nowiki>
17697 <nowiki> =foo= </nowiki>
17699 <nowiki>=foo=</nowiki>
17701 =foo''a''<nowiki>=</nowiki>
17703 <p><span typeof="mw:Nowiki">=foo=</span></p>
17705 <p><span typeof="mw:Nowiki"> =foo= </span>
17707 <span typeof="mw:Nowiki">=foo=</span></p>
17709 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
17713 Headings: 1. Nested inside html
17714 (New headings and existing headings are handled differently)
17724 =<nowiki>=foo=</nowiki>=
17725 ==<nowiki>=foo=</nowiki>==
17726 ===<nowiki>=foo=</nowiki>===
17727 ====<nowiki>=foo=</nowiki>====
17728 =====<nowiki>=foo=</nowiki>=====
17729 ======<nowiki>=foo=</nowiki>======
17736 <h1 data-parsoid='{}'>=foo=</h1>
17737 <h2 data-parsoid='{}'>=foo=</h2>
17738 <h3 data-parsoid='{}'>=foo=</h3>
17739 <h4 data-parsoid='{}'>=foo=</h4>
17740 <h5 data-parsoid='{}'>=foo=</h5>
17741 <h6 data-parsoid='{}'>=foo=</h6>
17745 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
17750 <nowiki>*</nowiki>bar
17756 <nowiki>=bar=</nowiki>
17764 Headings: 3. Nested inside html with wikitext split by html tags
17768 = ='''bold'''<nowiki>foo=</nowiki> =
17770 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
17774 Headings: 4a. No escaping needed (testing just h1 and h2)
17792 = <nowiki>=</nowiki> =
17800 <h1><i>=</i>foo=</h1>
17801 <h1><span typeof="mw:Nowiki">=</span></h1>
17805 Headings: 4b. No escaping needed (inside p-tags)
17820 Headings: 5. Empty headings
17832 =====<nowiki/>=====
17834 ======<nowiki/>======
17845 Headings: 6a. Heading chars in SOL context (with trailing spaces)
17849 <nowiki>=a=</nowiki>
17851 <nowiki>=a=</nowiki>
17853 <nowiki>=a=</nowiki>
17855 <nowiki>=a=</nowiki>
17864 Headings: 6b. Heading chars in SOL context (with trailing newlines)
17892 Headings: 6c. Heading chars in SOL context (leading newline break)
17897 <nowiki>=b=</nowiki>
17904 Headings: 6d. Heading chars in SOL context (with interspersed comments)
17908 <!--c0--><nowiki>=a=</nowiki>
17910 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
17912 <p><!--c0-->=a=</p>
17913 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
17917 Headings: 6d. Heading chars in SOL context (No escaping needed)
17926 #### --------------- Lists ---------------
17927 #### 0. Outside nests (*foo, etc.)
17928 #### 1. Nested inside html <ul><li>*foo</li></ul>
17929 #### 2. Inside definition lists
17930 #### 3. Only bullets at start should be escaped
17931 #### 4. No escapes needed
17932 #### 5. No unnecessary escapes
17933 #### 6. Escape bullets in SOL position
17934 #### 7. Escape bullets in a multi-line context
17935 #### ----------------------------------------
17938 Lists: 0. Outside nests
17940 <nowiki>*</nowiki>foo
17942 <nowiki>#</nowiki>foo
17950 Lists: 1. Nested inside html
17952 *<nowiki>*foo</nowiki>
17954 *<nowiki>#foo</nowiki>
17956 *<nowiki>:foo</nowiki>
17958 *<nowiki>;foo</nowiki>
17960 #<nowiki>*foo</nowiki>
17962 #<nowiki>#foo</nowiki>
17964 #<nowiki>:foo</nowiki>
17966 #<nowiki>;foo</nowiki>
18004 Lists: 2. Inside definition lists
18006 ;<nowiki>;foo</nowiki>
18008 ;<nowiki>:foo</nowiki>
18010 ;<nowiki>:foo</nowiki>
18013 :<nowiki>:foo</nowiki>
18037 Lists: 3. Only bullets at start of text should be escaped
18039 *<nowiki>*foo*bar</nowiki>
18041 *<nowiki>*foo</nowiki>''it''*bar
18048 <li>*foo<i>it</i>*bar
18055 Lists: 4. No escapes needed
18076 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
18080 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
18086 Lists: 5. No unnecessary escapes
18088 * bar <span><nowiki>[[foo]]</nowiki></span>
18090 *=bar <span><nowiki>[[foo]]</nowiki></span>
18092 *[[bar <span><nowiki>[[foo]]</nowiki></span>
18094 *]]bar <span><nowiki>[[foo]]</nowiki></span>
18096 *=bar <span>foo]]</span>=
18101 <li> bar <span>[[foo]]</span>
18105 <li>=bar <span>[[foo]]</span>
18109 <li>[[bar <span>[[foo]]</span>
18113 <li>]]bar <span>[[foo]]</span>
18117 <li>=bar <span>foo]]</span>=
18128 Lists: 6. Escape bullets in SOL position
18132 <!--cmt--><nowiki>*foo</nowiki>
18134 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
18138 Lists: 7. Escape bullets in a multi-line context
18141 <nowiki>*</nowiki>b
18148 #### --------------- HRs ---------------
18149 #### 1. Single line
18150 #### -----------------------------------
18153 HRs: 1. Single line
18157 ----<nowiki>----</nowiki>
18161 <hr><span typeof="mw:Nowiki">----</span>
18166 #### --------------- Tables ---------------
18167 #### 1a. Simple example
18168 #### 1b. No escaping needed (!foo)
18169 #### 1c. No escaping needed (|foo)
18170 #### 1d. No escaping needed (|}foo)
18172 #### 2a. Nested in td (<td>foo|bar</td>)
18173 #### 2b. Nested in td (<td>foo||bar</td>)
18174 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
18176 #### 3a. Nested in th (<th>foo!bar</th>)
18177 #### 3b. Nested in th (<th>foo!!bar</th>)
18178 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
18182 #### 4c. No escaping needed
18183 #### --------------------------------------
18186 Tables: 1a. Simple example
18197 Tables: 1b. No escaping needed
18206 Tables: 1c. No escaping needed
18215 Tables: 1d. No escaping needed
18224 Tables: 2a. Nested in td
18229 |<nowiki>foo|bar</nowiki>
18231 |x<div><nowiki>a|b</nowiki></div>
18235 <td>foo|bar</td></tr>
18236 <tr><td>x<div>a|b</div></td>
18241 Tables: 2b. Nested in td
18246 |<nowiki>foo||bar</nowiki>
18247 |''it''<nowiki>foo||bar</nowiki>
18251 <td><span typeof="mw:Nowiki">foo||bar</span></td>
18252 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
18256 Tables: 2c. Nested in td -- no escaping needed
18264 <table><tbody><tr><td>foo!!bar
18265 </td></tr></tbody></table>
18270 Tables: 3a. Nested in th
18278 <table><tbody><tr><th>foo!bar
18279 </th></tr></tbody></table>
18284 Tables: 3b. Nested in th
18289 !<nowiki>foo!!bar</nowiki>
18293 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
18298 Tables: 3c. Nested in th -- no escaping needed
18303 !<nowiki>foo||bar</nowiki>
18307 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
18311 Tables: 4a. Escape -
18318 |<nowiki>-bar</nowiki>
18322 <tr><th>-bar</th></tr>
18324 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
18328 Tables: 4b. Escape +
18335 |<nowiki>+bar</nowiki>
18339 <tr><th>+bar</th></tr>
18341 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
18345 Tables: 4c. No escaping needed
18366 <tr><td>foo-bar</td><td>foo+bar</td></tr>
18367 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
18373 <div>a|b</div></td>
18378 Tables: 4d. No escaping needed
18389 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
18390 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
18391 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
18396 Tables: Digest broken attributes on table and tr tag
18412 #### --------------- Links ----------------
18413 #### 1. Quote marks in link text
18414 #### 2. Wikilinks: Escapes needed
18415 #### 3. Wikilinks: No escapes needed
18416 #### 4. Extlinks: Escapes needed
18417 #### 5. Extlinks: No escapes needed
18418 #### --------------------------------------
18420 Links 1. Quote marks in link text
18424 [[Foo|Foo<nowiki>''boo''</nowiki>]]
18426 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
18430 Links 2. WikiLinks: Escapes needed
18435 [[Foo|<nowiki>Foobar]</nowiki>]]
18436 [[Foo|x [Foobar] x]]
18437 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
18438 [[Foo|<nowiki>[[Bar]]</nowiki>]]
18439 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
18440 [[Foo|<nowiki>|Bar</nowiki>]]
18441 [[Foo|<nowiki>]]bar</nowiki>]]
18442 [[Foo|<nowiki>[[bar</nowiki>]]
18443 [[Foo|<nowiki>x [[ y</nowiki>]]
18444 [[Foo|<nowiki>x ]] y</nowiki>]]
18445 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
18447 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
18448 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
18449 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
18450 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
18451 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
18452 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
18453 <a href="Foo" rel="mw:WikiLink">|Bar</a>
18454 <a href="Foo" rel="mw:WikiLink">]]bar</a>
18455 <a href="Foo" rel="mw:WikiLink">[[bar</a>
18456 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
18457 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
18458 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
18462 Links 3. WikiLinks: No escapes needed
18469 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
18470 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
18474 Links 4. ExtLinks: Escapes needed
18478 [http://google.com <nowiki>[google]</nowiki>]
18479 [http://google.com <nowiki>google]</nowiki>]
18481 <nowiki>[http://google.com]</nowiki>
18483 <nowiki>[http://google.com google]</nowiki>
18486 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
18487 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
18488 <p>[http://google.com]</p>
18489 <p>[http://google.com google]</p>
18493 Links 5. ExtLinks: No escapes needed
18497 [http://google.com [google]
18499 <a href="http://google.com" rel="mw:ExtLink">[google</a>
18502 #### --------------- Quotes ---------------
18503 #### 1. Quotes inside <b> and <i>
18504 #### 2. Link fragments separated by <i> and <b> tags
18505 #### 3. Link fragments inside <i> and <b>
18506 #### 4. No escaping needed
18507 #### --------------------------------------
18509 1. Quotes inside <b> and <i>
18511 parsoid=html2wt,wt2wt
18513 ''<nowiki>'foo'</nowiki>''
18514 ''<nowiki>''foo''</nowiki>''
18515 ''<nowiki>'''foo'''</nowiki>''
18517 '''<nowiki>'foo'</nowiki>'''
18518 '''<nowiki>''foo''</nowiki>'''
18519 '''<nowiki>'''foo'''</nowiki>'''
18520 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
18521 '''foo'''<nowiki/>'s
18524 '<nowiki/>''foo''<nowiki/>'
18526 '''foo'''<nowiki/>'
18527 '<nowiki/>'''foo'''<nowiki/>'
18528 ''fools'<span> errand</span>''
18529 ''<span>fool</span>'s errand''
18538 <b>foo'<i>bar'</i>baz</b>
18546 <i>fools'<span> errand</span></i>
18547 <i><span>fool</span>'s errand</i>
18551 2. Link fragments separated by <i> and <b> tags
18553 [[''foo''<nowiki>hello]]</nowiki>
18555 [['''foo'''<nowiki>hello]]</nowiki>
18557 <p>[[<i>foo</i>hello]]
18558 </p><p>[[<b>foo</b>hello]]
18563 3. Link fragments inside <i> and <b>
18564 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
18565 this is one of the shortcomings of this format)
18567 ''[[foo''<nowiki>]]</nowiki>
18569 '''[[foo'''<nowiki>]]</nowiki>
18572 </p><p><b>[[foo</b>]]
18577 4. No escaping needed
18579 '<span>''bar''</span>'
18580 '<span>'''bar'''</span>'
18582 <p>'<span><i>bar</i></span>'
18583 '<span><b>bar</b></span>'
18587 #### ----------- Paragraphs ---------------
18588 #### 1. No unnecessary escapes
18589 #### --------------------------------------
18592 1. No unnecessary escapes
18594 bar <span><nowiki>[[foo]]</nowiki></span>
18596 =bar <span><nowiki>[[foo]]</nowiki></span>
18598 [[bar <span><nowiki>[[foo]]</nowiki></span>
18600 ]]bar <span><nowiki>[[foo]]</nowiki></span>
18602 =bar <span>foo]]</span><nowiki>=</nowiki>
18604 <p>bar <span>[[foo]]</span>
18605 </p><p>=bar <span>[[foo]]</span>
18606 </p><p>[[bar <span>[[foo]]</span>
18607 </p><p>]]bar <span>[[foo]]</span>
18608 </p><p>=bar <span>foo]]</span>=
18612 #### ----------------------- PRE --------------------------
18613 #### 1. Leading whitespace in SOL context should be escaped
18614 #### ------------------------------------------------------
18616 1. Leading whitespace in SOL context should be escaped
18620 <nowiki> </nowiki>a
18622 <nowiki> </nowiki> a
18624 <nowiki> </nowiki>a(tab)
18626 <nowiki> </nowiki> a
18628 <nowiki> </nowiki> a
18631 <nowiki> </nowiki>b
18634 <nowiki> </nowiki>b
18637 <nowiki> </nowiki> b
18643 <p><!--cmt--> a</p>
18652 #### --------------- Behavior Switches --------------------
18654 1. Valid behavior switches should be escaped
18658 <nowiki>__TOC__</nowiki>
18664 2. Invalid behavior switches should not be escaped
18675 #### --------------- HTML tags ---------------
18678 #### 3. multi-line html tag
18679 #### 4. extension tags
18680 #### -----------------------------------------
18686 <a href="http://google.com">google</a>
18688 <a href="http://google.com">google</a>
18694 <nowiki><div>foo</div>
18695 <div style="color:red">foo</div></nowiki>
18697 <p><div>foo</div>
18698 <div style="color:red">foo</div>
18703 3. multi-line html tag
18718 <nowiki><ref>foo</ref></nowiki>
18720 <nowiki><ref>bar</nowiki>
18722 baz<nowiki></ref></nowiki>
18724 <p><ref>foo</ref>
18725 </p><p><ref>bar
18726 </p><p>baz</ref>
18730 #### --------------- Others ---------------
18734 <nowiki>foo</nowiki>
18736 <p><nowiki>foo</nowiki>
18740 ## The quote-char in the input is necessary for triggering the bug
18742 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
18744 parsoid=wt2wt,html2wt
18753 Tag-like HTML structures are passed through as text
18775 </p><p>1<d e>f
18780 # This was a bug in the PHP parser (see bug 17663 and its dups,
18781 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
18783 Tag names followed by punctuation should not be recognized as tags
18787 <p><s.ome> text
18792 HTML tag with necessary entities in attributes
18794 <span title="&amp;">foo</span>
18796 <p><span title="&amp;">foo</span>
18801 HTML tag with 'unnecessary' entity encoding in attributes
18803 <span title="&">foo</span>
18805 <p><span title="&">foo</span>
18810 HTML tag with broken attribute value quoting
18812 <span title="Hello world>Foo</span>
18814 <p><span>Foo</span>
18819 Parsoid-only: HTML tag with broken attribute value quoting
18823 <span title="Hello world>Foo</span>
18825 <p><span title="Hello world">Foo</span>
18830 Table with broken attribute value quoting
18833 | title="Hello world|Foo
18844 Table with broken attribute value quoting on consecutive lines
18847 | title="Hello world|Foo
18848 | style="color:red|Bar
18861 Parsoid-only: Table with broken attribute value quoting on consecutive lines
18866 | title="Hello world|Foo
18867 | style="color:red|Bar
18872 <td title="Hello world">Foo
18873 </td><td style="color: red">Bar
18874 </td></tr></tbody></table>
18879 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18889 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18899 Accept empty td cell attribute
18902 | align="center" | foo || |
18907 <td align="center"> foo </td>
18914 Non-empty attributes in th-cells
18917 ! Foo !! style="color: red" | Bar
18923 <th style="color: red"> Bar
18929 Accept empty attributes in th-cells
18944 Empty table rows go away
18965 ### Parsoid-centric tests for testing RTing of inter-element separators
18966 ### Edge cases not tested by existing parser tests and specific to
18967 ### Parsoid-specific serialization strategies.
18971 RT-ed inter-element separators should be valid separators
18984 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
18985 (Parsoid-only since PHP parser relies on Tidy for correct output)
19001 Empty TD followed by TD with tpl-generated attribute
19006 |{{echo|style='color:red'}}|foo
19020 Indented table with an empty td
19039 Empty TR followed by a template-generated TR
19040 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
19046 {{echo|<tr><td>foo</td></tr>}}
19052 <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}}]}'>
19057 ## PHP and parsoid output differ for this, and since this is primarily
19058 ## for testing Parsoid's serializer, marking this Parsoid only
19060 Empty TR followed by mixed-ws-comment line should RT correctly
19076 <!--c--> </tr><!--d-->
19082 Multi-line image caption generated by templates with/without trailing newlines
19086 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
19087 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
19089 <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>
19090 <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>
19094 ## PHP emits broken html for this, and since this is primarily
19095 ## a Parsoid serializer test, marking this Parsoid only
19097 Improperly nested inline or quotes tags with whitespace in between
19101 <span> <s>x</span> </s>
19104 <p><span> <s>x</s></span><s> </s>
19105 <b> <i>x</i></b><i> </i>
19110 Encapsulate protected attributes from wt
19114 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
19116 <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>
19120 ## Currently the p-wrapper is fragile in how adds / removes transformations.
19121 ## Having nested or stray pre tags results in the attempt to add duplicates,
19122 ## causing an assertion fail. This test tries to prevent that situation.
19124 Ensure ParagraphWrapper can deal with stray closing pre tags
19134 1. Ensure fostered text content is wrapped in spans
19138 <table>hi</table><table>ho</table>
19147 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
19149 parsoid=wt2html,wt2wt
19156 <span> || ||</span>
19165 Encapsulation properly handles null DSR information from foster box
19167 parsoid=wt2html,wt2wt
19169 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
19171 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19174 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
19178 <td>bar</td></tr></tbody></table>
19182 1. Encapsulate foster-parented transclusion content
19184 parsoid=wt2wt,wt2html
19186 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
19188 <span typeof="mw:Transclusion" data-mw="{"parts":["
19189 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
19191 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
19195 <td>bar</td></tr></tbody></table>
19199 2. Encapsulate foster-parented transclusion content
19201 parsoid=wt2wt,wt2html
19203 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
19205 <div typeof="mw:Transclusion" data-mw="{"parts":["
19207 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
19209 <td>bar</td></tr></table>"]}">foo</div>
19213 <td>bar</td></tr></tbody></table>
19217 3. Encapsulate foster-parented transclusion content
19219 parsoid=wt2wt,wt2html
19221 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19223 <div typeof="mw:Transclusion" data-mw="{"parts":["
19226 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19228 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19233 <td>bar</td></tr></tbody></table>
19237 4. Encapsulate foster-parented transclusion content
19239 parsoid=wt2wt,wt2html
19241 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19243 <div typeof="mw:Transclusion" data-mw="{"parts":["
19246 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19248 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19253 <td>bar</td></tr></tbody></table>
19257 5. Encapsulate foster-parented transclusion content
19259 parsoid=wt2wt,wt2html
19261 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
19263 <span typeof="mw:Transclusion" data-mw="{"parts":["
19268 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
19274 <p>foo</p></div></td></tr></tbody></table>
19278 6. Encapsulate foster-parented transclusion content
19280 parsoid=wt2wt,wt2html
19282 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
19284 <span typeof="mw:Transclusion" data-mw="{"parts":["
19289 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
19295 <p>foo</p></div></td></tr></tbody></table>
19300 7. Encapsulate foster-parented transclusion content
19302 parsoid=wt2wt,wt2html
19304 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
19306 <p typeof="mw:Transclusion" data-mw="{"parts":["
19307 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19308 <p>foo</p>"}},"i":0}},"
19309 <td>bar</td></table>"]}">foo</p>
19313 <td>bar</td></tr></tbody></table>
19317 8. Encapsulate foster-parented transclusion content
19319 parsoid=wt2wt,wt2html
19322 }}{|{{echo|style='color:red'}}
19327 <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>
19331 <td>b</td></tr></tbody></table>
19335 Table in fosterable position
19337 parsoid=wt2html,wt2wt
19346 <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="{}">
19348 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
19355 Support <object> element with .data attribute
19359 <object data="test.swf"></object>
19361 <object data="test.swf"></object>
19364 # -----------------------------------------------------------------
19365 # The following section of tests are primarily to spec requirements
19366 # around serialization of new/edited content.
19368 # All these tests are marked Parsoid html2wt and html2html only
19369 # ----------------------------------------------------------------
19372 Image: Modifying size of an image (1)
19376 [[Image:Foobar.jpg|200x200px]]
19378 <p><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"230x230px"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/230px-Foobar.jpg" height="22" width="200" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"26","width":"230"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a></span></p>
19382 Image: Modifying size of an image (2)
19386 [[Image:Foobar.jpg|500x500px]]
19388 <p><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"230x230px"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/230px-Foobar.jpg" height="100" width="500" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"26","width":"230"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a></span></p>
19391 # note that the data-parsoid value conflicts with the figure's class
19393 Image: Modifying alignment of an image (bug 48665)
19397 [[Image:Foobar.jpg|thumb|caption|left]]
19399 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"caption"},{"ck":"right","ak":"right"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
19403 Image: Modifying valign of an image (bug 49221)
19407 [[File:Foobar.jpg|20px|text-top]]
19409 <p><span class="mw-valign-text-top" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"20px"},{"ck":"text_top","ak":"text-top"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg" height="2" width="20" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"2","width":"20"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
19413 Image: Modifying alt attribute of an image (bug 56400)
19417 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
19419 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"some caption"},{"ck":"alt","ak":"alt=some alternate text"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img alt="some alternate edited text" resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180" data-parsoid='{"a":{"alt":"some alternate edited text","resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"alt":"alt=some alternate edited text","resource":"File:Foobar.jpg"}}'/></a><figcaption>some caption</figcaption></figure>
19423 Image: Modifying caption of an image
19427 [[Image:Foobar.jpg|thumb|new caption]]
19429 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"original caption"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a><figcaption>new caption</figcaption></figure>
19433 Image: empty alt attribute (bug 48924)
19437 [[File:Foobar.jpg|thumb|alt=|bar]]
19439 <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>
19443 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
19448 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
19450 #<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>
19454 Image: Block level image should have \n before and after
19459 [[File:Foobar.jpg|right|thumb|150x150px]]
19462 <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>
19466 Image: New block level image should have \n before and after (existing
19472 [[File:Foobar.jpg|right|thumb|150x150px]]
19475 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
19476 <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>
19477 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
19481 Images: upright option (parsoid)
19485 [[File:Foobar.jpg|thumb|upright|caption]]
19486 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
19487 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
19489 <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>
19493 Images: upright option is ignored on inline and frame images (parsoid)
19497 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
19499 <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>
19503 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
19510 <li><p>foo</p></li>
19515 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
19521 <ul> <li>foo</li></ul>
19525 Don't strip leading whitespace when handling indent-pre suppressing tags
19533 '''This is very bold of you!'''
19537 indented cell (no pre-wrapping!)
19544 <tr><td> indented row</td></tr>
19547 <b>This is very bold of you!</b>
19550 indented cell (no pre-wrapping!)
19558 Strip leading whitespace when handling indent-pre inducing tags
19590 Lists: Add space after bullets
19596 * <span> baz</span>
19601 <li><span> baz</span></li>
19606 Lists: Dont insert newlines in a serialized list item.
19613 <ul><li>a<br>b</li><li>c</li></ul>
19617 Headings: Add space before/after == (Bug 51744)
19627 == <span> baz</span> ==
19632 <h2><span> baz</span></h2>
19636 Parsoid: Serialize positional parameters with = in them as named parameter
19642 {{echo|1 = f=oo|2 = bar}}
19644 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19645 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19646 {{echo|<nowiki>f=oo</nowiki>|bar}}
19648 <p about="#mwt1" typeof="mw:Transclusion"
19649 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
19651 <p about="#mwt1" typeof="mw:Transclusion"
19652 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
19654 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19655 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19656 <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>
19660 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
19676 <div>a<p>b</p></div>
19684 #-----------------------------
19685 # I/B quote minimization tests
19686 #-----------------------------
19689 1. I/B quote minimization: wikitext-only tags should be combined
19709 <p><i>A</i><i>B</i></p>
19710 <p><b>A</b><b>B</b></p>
19711 <p><i>A</i><b><i>B</i></b></p>
19712 <p><b>A</b><i><b>B</b></i></p>
19713 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
19714 <p><i><b>A</b></i><i><b>B</b></i></p>
19715 <p><i><b>A</b></i><b><i>B</i></b></p>
19716 <p><b><i>A</i></b><i><b>B</b></i></p>
19720 2. I/B quote minimization: wikitext and html tags should not be combined
19726 ''A'''''<i>B</i>'''
19728 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
19729 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
19733 3. I/B quote minimization: templated content stops minimization
19737 ''A''{{echo|''B''}}
19739 ''A''{{echo|'''''B'''''}}
19741 <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>
19742 <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>
19746 4. I/B quote minimization: new content should be mimimized with adjacent old content
19756 <p><i>A</i><i data-parsoid='{}'>B</i></p>
19757 <p><b data-parsoid='{}'>A</b><b>B</b></p>
19758 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
19761 #------------------------------------
19762 # End of I/B quote minimization tests
19763 #------------------------------------
19766 Bug 54262: New entities
19772 <span typeof="mw:Entity">foo</span>
19775 ## Note that there is no wikitext output for 'unknownproperty' ##
19776 ## Unknown magic words are silently dropped ##
19791 __NOCONTENTCONVERT__
19793 <meta property='mw:PageProp/toc' />
19794 <meta property='mw:PageProp/notoc' />
19795 <meta property='mw:PageProp/forcetoc' />
19796 <meta property='mw:PageProp/index' />
19797 <meta property='mw:PageProp/noindex' />
19798 <meta property='mw:PageProp/nogallery' />
19799 <meta property='mw:PageProp/noeditsection' />
19800 <meta property='mw:PageProp/notitleconvert' />
19801 <meta property='mw:PageProp/nocontentconvert' />
19802 <meta property='mw:PageProp/unknownproperty' />
19806 Consecutive <pre>s should not get merged
19808 parsoid=html2wt,html2html
19824 <pre>a</pre><pre>b</pre>
19838 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
19842 [[Special:BookSources/1234567890|ISBN 1234567895]]
19844 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
19848 Edited RFC links not serializable as RFC links should serialize as extlinks
19852 [//tools.ietf.org/html/rfc123 New RFC]
19854 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
19858 Edited PMID links not serializable as PMID links should serialize as extlinks
19862 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
19864 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
19868 Edited Redirect link should emit a non-piped wikitext link
19874 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
19877 # -----------------------------------------------------------------
19878 # End of section for Parsoid-only html2wt tests for serialization
19880 # -----------------------------------------------------------------
19887 Try for 100% code coverage