1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-specific options (not run by PHP parser unless
25 # the test includes an html/php section)
26 # php php-only test (not run by the parsoid parser unless
27 # the test includes an html/parsoid section)
28 # showtitle make the first line the title
29 # comment run through Linker::formatComment() instead of main parser
30 # local format section links in edit comment text as local links
31 # notoc disable table of contents
33 # You can also set the following parser properties via test options:
34 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
35 # wgLinkHolderBatchSize, wgRawHtml
37 # For testing purposes, temporary articles can created:
38 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
39 # where '/' denotes a newline.
41 # This is the standard article assumed to exist.
66 MediaWiki:bad image list
68 * [[File:Bad.jpg]] except [[Nasty page]]
102 Template:echo_with_span
108 Template:echo_with_div
120 Template:table_attribs
123 |</noinclude>style="color: red"| Foo
129 {{table_attribs}} || Bar || Baz
133 Template:image_attribs
136 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
170 This is a simple paragraph.
172 <p>This is a simple paragraph.
177 Paragraphs with extra newline spacing
200 Paragraphs with newline spacing with comment lines in between
208 <!--foo--><!--More than 1 comment, still stripped-->
212 <!--foo--> <!----> <!-- bar -->
273 Paragraphs with newline spacing with non-empty white-space lines in between
300 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
308 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
347 Extra newlines: More paragraphs with indented comment
362 Extra newlines followed by heading
377 <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>
378 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
381 <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>
386 Extra newlines between heading and content are swallowed
394 <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>
395 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
402 http://fr.wikipedia.org/wiki/🍺
403 <!-- EasterEgg we love beer, better be able be able to link to it -->
405 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
428 * plain''italic''plain
429 * plain''italic''plain''italic''plain
430 * plain'''bold'''plain
431 * plain'''bold'''plain'''bold'''plain
432 * plain''italic''plain'''bold'''plain
433 * plain'''bold'''plain''italic''plain
434 * plain''italic'''bold-italic'''italic''plain
435 * plain'''bold''bold-italic''bold'''plain
436 * plain'''''bold-italic'''italic''plain
437 * plain'''''bold-italic''bold'''plain
438 * plain''italic'''bold-italic'''''plain
439 * plain'''bold''bold-italic'''''plain
440 * plain l'''italic''plain
441 * plain l''''bold''' plain
446 <li> plain<i>italic</i>plain
448 <li> plain<i>italic</i>plain<i>italic</i>plain
450 <li> plain<b>bold</b>plain
452 <li> plain<b>bold</b>plain<b>bold</b>plain
454 <li> plain<i>italic</i>plain<b>bold</b>plain
456 <li> plain<b>bold</b>plain<i>italic</i>plain
458 <li> plain<i>italic<b>bold-italic</b>italic</i>plain
460 <li> plain<b>bold<i>bold-italic</i>bold</b>plain
462 <li> plain<i><b>bold-italic</b>italic</i>plain
464 <li> plain<b><i>bold-italic</i>bold</b>plain
466 <li> plain<i>italic<b>bold-italic</b></i>plain
468 <li> plain<b>bold<i>bold-italic</i></b>plain
470 <li> plain l'<i>italic</i>plain
472 <li> plain l'<b>bold</b> plain
478 # this example taken from the [[simple:Moon]] article (bug 47326)
480 Italics and possessives (1)
482 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
484 <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
488 # this example taken from [[en:Flaming Pie]] (bug 49926)
490 Italics and possessives (2)
492 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
494 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
498 # this example taken from [[en:Dictionary]] (bug 49926)
500 Italics and possessives (3)
502 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''.
504 <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>.
510 ### 2-quote opening sequence tests
513 Italics and bold: 2-quote opening sequence: (2,2)
523 Italics and bold: 2-quote opening sequence: (2,3)
533 Italics and bold: 2-quote opening sequence: (2,4)
542 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
544 Italics and bold: 2-quote opening sequence: (2,5)
557 ### 3-quote opening sequence tests
561 Italics and bold: 3-quote opening sequence: (3,2)
571 Italics and bold: 3-quote opening sequence: (3,3)
581 Italics and bold: 3-quote opening sequence: (3,4)
590 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
592 Italics and bold: 3-quote opening sequence: (3,5)
605 ### 4-quote opening sequence tests
609 Italics and bold: 4-quote opening sequence: (4,2)
619 Italics and bold: 4-quote opening sequence: (4,3)
629 Italics and bold: 4-quote opening sequence: (4,4)
638 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
640 Italics and bold: 4-quote opening sequence: (4,5)
647 <p>'<b>foo</b><i></i>
653 ### 5-quote opening sequence tests
657 Italics and bold: 5-quote opening sequence: (5,2)
668 Italics and bold: 5-quote opening sequence: (5,3)
678 Italics and bold: 5-quote opening sequence: (5,4)
682 <p><i><b>foo'</b></i>
688 Italics and bold: 5-quote opening sequence: (5,5)
697 ### multiple quote sequences in a line
700 Italics and bold: multiple quote sequences: (2,4,2)
704 <p><i>foo'<b>bar</b></i>
710 Italics and bold: multiple quote sequences: (2,4,3)
714 <p><i>foo'<b>bar</b></i>
720 Italics and bold: multiple quote sequences: (2,4,4)
724 <p><i>foo'<b>bar'</b></i>
729 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
731 Italics and bold: multiple quote sequences: (3,4,2)
738 <p><b>foo'</b>bar<i></i>
743 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
745 Italics and bold: multiple quote sequences: (3,4,3)
752 <p><b>foo'</b>bar<b></b>
757 ### other quote tests
760 Italics and bold: other quote tests: (2,3,5)
762 ''this is about '''foo's family'''''
764 <p><i>this is about <b>foo's family</b></i>
770 Italics and bold: other quote tests: (2,(3,3),2)
772 ''this is about '''foo's''' family''
774 <p><i>this is about <b>foo's</b> family</i>
780 Italics and bold: other quote tests: (3,2,3,2)
782 '''this is about ''foo'''s family''
784 <p><b>this is about <i>foo</i></b><i>s family</i>
790 Italics and bold: other quote tests: (3,2,3,3)
793 '''this is about ''foo'''s family'''
795 <p>'<i>this is about </i>foo<b>s family</b>
801 Italics and bold: other quote tests: (3,(2,2),3)
803 '''this is about ''foo's'' family'''
805 <p><b>this is about <i>foo's</i> family</b>
811 Italicized possessive
813 The ''[[Main Page]]'''s talk page.
815 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
820 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
821 (Requires tidy for PHP parser output to be fixed up)
823 parsoid=wt2html,wt2wt
831 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
832 <td><i>a</i></td><td><i>b</i></td></tr>
841 Non-html5 tags should be accepted
843 <center>''foo''</center>
846 <strike>''foo''</strike>
849 <center><i>foo</i></center>
850 <p><big><i>foo</i></big>
851 <font><i>foo</i></font>
852 <strike><i>foo</i></strike>
858 <wbr> is valid wikitext (bug 52468)
866 # <strike> is HTML4, <s> is HTML4/5.
868 <s> or <strike> for strikethrough
870 <strike>strike</strike>
874 <p><strike>strike</strike>
880 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
882 <b→> doesn't work! </b→>
884 <bä> doesn't work! </bä>
886 <boo> works fine </boo>
892 <p><b→> doesn't work! </b→>
893 </p><p><bä> doesn't work! </bä>
894 </p><p><boo> works fine </boo>
895 </p><p><s.foo>s.foo</s.foo>
896 </p><p><sub-ID#1>
901 Isolated close tags should be treated as literal text (bug 52760)
908 </p><p><s.foo>s</s>
913 ### Special characters
917 Bare pipe character (bug 52363)
926 Bare pipe character from a template (bug 52363)
935 ### <nowiki> test cases
939 <nowiki> unordered list
941 <nowiki>* This is not an unordered list item.</nowiki>
943 <p>* This is not an unordered list item.
950 <nowiki>Lorem ipsum dolor
971 :There is not nowiki.
972 :There is <nowiki>nowiki</nowiki>.
974 #There is not nowiki.
975 #There is <nowiki>nowiki</nowiki>.
977 *There is not nowiki.
978 *There is <nowiki>nowiki</nowiki>.
981 <dd>There is not nowiki.
987 <li>There is not nowiki.
993 <li>There is not nowiki.
1002 Entities inside <nowiki>
1004 <nowiki><</nowiki>
1011 Entities inside template parameters
1017 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span>
1025 Comments and Indent-Pre
1027 <!-- comment 1 --> asdf
1029 <!-- comment 1 --> asdf
1032 <!-- comment 1 --> asdf
1033 <!-- comment 2 -->xyz
1035 <!-- comment 1 --> asdf
1036 <!-- comment 2 --> xyz
1092 asdf<!-- comment 1 -->jkl
1102 <!-- foo --> b <!-- bar -->
1116 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1122 Comment semantics and delimiters
1124 <!-- --><!----><!-----><!------>
1130 Comment semantics and delimiters, redux
1132 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1133 -- foo -- funky huh? ... -->
1139 Comment semantics and delimiters: directors cut
1141 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1142 everything starting with < followed by !-- until the first -- and > we see,
1143 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1151 Comment semantics: nesting
1153 <!--<!-- no, we're not going to do anything fancy here -->-->
1160 Comment semantics: unclosed comment at end
1162 <!--This comment will run out to the end of the document
1168 Comment in template title
1177 Comment on its own line post-expand
1189 Comment on its own line post-expand with non-significant whitespace
1201 ### paragraph wrapping tests
1216 Block tag on one line (<div>)
1228 Block tag on one line (<blockquote>)
1230 a <blockquote>foo</blockquote>
1234 a <blockquote>foo</blockquote>
1240 Block tag on both lines (<div>)
1252 Block tag on both lines (<blockquote>)
1254 a <blockquote>foo</blockquote>
1256 b <blockquote>foo</blockquote>
1258 a <blockquote>foo</blockquote>
1259 b <blockquote>foo</blockquote>
1264 Multiple lines without block tags
1282 Empty lines between lines with block tags
1311 ## PHP parser emits output which is broken
1313 Unclosed HTML p-tags should be handled properly
1320 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1326 ### Preformatted text
1335 And a [[Main Page|link]]
1341 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1346 Tabs don't trigger preformatted text
1350 This is preformatted text.
1356 <pre>This is preformatted text.
1362 Ident preformatting with inline content
1373 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1390 Regression with preformatted in <center>
1404 Bug 52763: Preformatted in <blockquote>
1410 indented cell (no pre-wrapping!)
1420 <p> indented cell (no pre-wrapping!)
1428 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1445 Bug 15491: <ins>/<del> in blockquote
1448 Foo <del>bar</del> <ins>baz</ins> quux
1452 <p>Foo <del>bar</del> <ins>baz</ins> quux
1458 # Note that the p-wrapping is newline sensitive, which could be
1459 # considered a bug: tidy will wrap only the 'Foo' in the example
1460 # below in a <p> tag. (see comment 23-25 of bug #6200)
1462 Bug 15491: <ins>/<del> in blockquote (2)
1464 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1467 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1473 <pre> with attributes (bug 3202)
1475 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1477 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1482 <pre> with width attribute (bug 3202)
1484 <pre width="8">Narrow screen goodies</pre>
1486 <pre width="8">Narrow screen goodies</pre>
1491 <pre> with forbidden attribute (bug 3202)
1493 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1495 <pre width="8">Narrow screen goodies</pre>
1500 Entities inside <pre>
1509 <pre> with forbidden attribute values (bug 3202)
1511 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1513 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1518 <nowiki> inside <pre> (bug 13238)
1526 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1534 <pre><nowiki>Foo</nowiki></pre>
1539 <nowiki> and <pre> preference (first one wins)
1570 </pre> inside nowiki
1572 <nowiki></pre></nowiki>
1579 Empty pre; pre inside other HTML tags (bug 54946)
1598 HTML pre followed by indent-pre
1613 <p><pre>foo</pre></p>
1615 <p data-parsoid='{"stx":"html","autoInsertedEnd":true}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
1619 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1627 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1637 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1649 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1670 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1674 {{echo| foo}}{{echo| bar}}
1679 {{echo|<!--cmt--> foo}}
1681 <!--cmt-->{{echo| foo}}
1683 {{echo|{{echo| }}bar}}
1701 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1738 Things that look like <pre> tags aren't treated as such
1740 Barack Obama <President> of the United States
1742 <p>Barack Obama <President> of the United States
1747 Parsoid: handle pre with space after attribute
1751 <pre style="width:50%;" >{{echo|foo}}</pre>
1753 <pre style="width:50%;">{{echo|foo}}</pre>
1756 # TODO / maybe: fix wt2wt for this
1758 Parsoid: Don't paragraph-wrap fosterable content
1784 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
1812 #--------------------------------------------------------------------
1813 # Transclusion parameter whitespace stripping tests
1814 # Behavior is different for positional and named parameters
1815 #--------------------------------------------------------------------
1817 Templates: Strip leading and trailing whitespace from named-param values
1821 {{echo|1= {{echo|b}} }}
1842 Templates: Don't strip whitespace from positional-param values
1846 {{echo|{{echo|b}} }}
1889 Templates: Handle empty comment-and-ws-only lines correctly
1892 <!--should be ignored-->
1893 <!--should be ignored as well-->
1901 #--------------------------------------------------------------------
1902 # Transclusion parameter escaping tests
1903 #--------------------------------------------------------------------
1905 Templates: Parsoid parameter escaping test 1
1909 {{echo|[foo]|{{echo|[bar]}}}}
1911 <p about="#mwt1" typeof="mw:Transclusion"
1912 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
1916 Parsoid: Pipes in external links in template parameter
1920 {{echo|[{{echo|http://example.com}} link]}}
1922 <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>
1926 Parsoid: pipe in transclusion parameter
1930 {{echo|http://foo.com/a|b}}
1932 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1933 typeof="mw:Transclusion"
1934 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>
1938 Parsoid: Pipe in external link target and content in template parameter
1940 parsoid=html2wt,wt2wt
1942 {{echo|[http://foo.com/a|b a|b]}}
1944 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1945 typeof="mw:Transclusion"
1946 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
1947 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
1951 Templates: Don't escape already nowiki-escaped text in template parameters
1953 parsoid=html2wt,wt2wt
1955 {{echo|foo<nowiki>|</nowiki>bar}}
1956 {{echo|<nowiki><div></nowiki>}}
1957 {{echo|<nowiki></nowiki>}}
1959 <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>
1960 <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>
1961 <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>
1967 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
1969 parsoid=html2wt,wt2wt
1971 {{echo|{{echo|1=bar}}}}
1973 <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>
1978 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
1984 <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>
1988 ### Parsoid-centric tests for testing RT edge cases for pre
1992 1a. Indent-Pre and Comments
2005 1b. Indent-Pre and Comments
2018 1c. Indent-Pre and Comments
2031 1d. Indent-Pre and Comments
2032 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2045 2a. Indent-Pre and tables
2066 2b. Indent-Pre and tables
2082 2c. Indent-Pre and tables (bug 42252)
2099 3a. Indent-Pre and block tags (single-line html)
2103 c <blockquote> foo </blockquote>
2108 c <blockquote> foo </blockquote>
2109 <pre><span> foo </span>
2114 3b. Indent-Pre and block tags (multi-line html)
2119 <pre>a <span>foo</span>
2126 3c. Indent-Pre and block tags (pre-content on separate line)
2190 4. Indent-Pre and extension tags
2196 a <ul class="gallery mw-gallery-traditional">
2197 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2198 <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>
2199 <div class="gallerytext">
2207 Leading pipes outside of tables
2217 Leading pipes outside of tables 2
2231 Leading pipes outside of tables 3
2236 | class="foo bar" | baz
2240 | class="foo bar" | baz
2245 Render paragraphs when indent-pre is suppressed in blocklevels
2262 4. Multiple spaces at start-of-line
2280 ## NOTE: the leading white-space chars on empty line are significant
2282 5a. White-space in indent-pre
2294 ## NOTE: the leading white-space chars on empty line are significant
2296 5b. White-space in indent-pre
2315 5c. White-space in indent-pre
2328 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2351 7a. Indent-pre and category links
2353 parsoid=wt2html,wt2wt
2355 [[Category:foo]] <!-- No pre-wrapping -->
2356 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2358 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2359 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2360 <link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2364 7b. Indent-pre and category links
2366 parsoid=wt2html,wt2wt
2369 [[Category:foo]] {{echo|b}}
2372 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
2374 <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>
2378 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2382 HTML-pre: 1. embedded newlines
2418 HTML-pre: 2: indented text
2431 HTML-pre: 3: other wikitext
2452 ### Definition lists
2460 <dt> name </dt>
2468 Definition list for indentation only
2480 Definition list with no space
2493 Definition list with URL link
2495 ; http://example.com/ : definition
2498 <dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2506 Definition list with bracketed URL link
2508 ;[http://www.example.com/ Example]:Something about it
2511 <dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2512 <dd>Something about it
2519 Definition list with wikilink containing colon
2521 ; [[Help:FAQ]]: The least-read page on Wikipedia
2524 <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>
2525 <dd> The least-read page on Wikipedia
2531 # At Brion's and JeLuF's insistence... :)
2533 Definition list with news link containing colon
2535 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2538 <dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2539 <dd> This isn't even a real newsgroup!
2546 Malformed definition list with colon
2548 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2551 <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
2558 Definition lists: colon in external link text
2560 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2563 <dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2564 <dd> OK, I made that up
2571 Definition lists: colon in HTML attribute
2573 ;<b style="display: inline">bold</b>
2576 <dt><b style="display: inline">bold</b>
2583 Definition lists: self-closed tag
2585 ;one<br/>two : two-line fun
2588 <dt>one<br />two </dt>
2596 Bug 11748: Literal closing tags
2600 <dd>test test test test test</dd>
2602 <dd>test test test test test</dd>
2607 <dd>test test test test test</dd>
2609 <dd>test test test test test</dd>
2615 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2618 ; term : description
2624 <dt> term </dt>
2638 Definition list with empty definition and following paragraph
2653 Nested definition lists using html syntax
2670 Definition Lists: No nesting: Multiple dd's
2688 Definition Lists: Indentation: Regular
2710 Definition Lists: Indentation: Missing 1st level
2730 Definition Lists: Indentation: Multi-level indent
2748 Definition Lists: Hacky use to indent tables
2755 should be left alone
2757 <dl><dd><dl><dd><table>
2762 </td></tr></table></dd></dl></dd></dl>
2764 should be left alone
2770 Definition Lists: Hacky use to indent tables (WS-insensitive)
2779 <dd> <table><tr><td>a</td></tr></table> </dd>
2782 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2783 ## as an empty dt item. It also ignores all but the last ";" when followed
2784 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2785 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2788 ## Ex: ";;t2 ::d2" is transformed into:
2800 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2801 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2812 ## All Parsoid only definition list tests have this difference.
2814 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2815 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2818 Table / list interaction: indented table with lists in table contents
2844 </td></tr></table></dd></dl>
2849 Table / list interaction: lists nested in tables nested in indented lists
2880 </td></tr></table></dd></dl>
2891 Definition Lists: Nesting: Multi-level (Parsoid only)
2921 Definition Lists: Nesting: Test 2 (Parsoid only)
2941 Definition Lists: Nesting: Test 3 (Parsoid only)
2969 Definition Lists: Nesting: Test 4
2990 ## The Parsoid team believes the following three test exposes a
2991 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2992 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2994 Definition Lists: Mixed Lists: Test 1
3034 Definition Lists: Mixed Lists: Test 2
3053 Definition Lists: Mixed Lists: Test 3
3078 Definition Lists: Mixed Lists: Test 4
3099 Definition Lists: Mixed Lists: Test 5
3120 Definition Lists: Mixed Lists: Test 6
3147 Definition Lists: Mixed Lists: Test 7
3166 Definition Lists: Mixed Lists: Test 8
3190 Definition Lists: Mixed Lists: Test 9
3207 Definition Lists: Mixed Lists: Test 10
3225 # The Parsoid team disagrees with the PHP parser's seemingly-random
3226 # rules regarding dd/dt on the next two tests. Parsoid is more
3227 # consistent, and recognizes the shared nesting and keeps the
3228 # still-open tags around until the nesting is complete.
3231 Definition Lists: Mixed Lists: Test 11
3284 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3285 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3289 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3290 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3300 Definition Lists: Weird Ones: Test 1
3302 *#;*::;; foo : bar (who uses this?)
3313 <dt> bar (who uses this?)
3347 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3348 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3363 External links: non-bracketed
3365 Non-bracketed: http://example.com
3367 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3372 External links: numbered
3374 Numbered: [http://example.com]
3375 Numbered: [http://example.net]
3376 Numbered: [http://example.com]
3378 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3379 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3380 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3385 External links: specified text
3387 Specified text: [http://example.com link]
3389 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3394 External links: trail
3396 Linktrails should not work for external links: [http://example.com link]s
3398 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3403 External links: dollar sign in URL
3405 http://example.com/1$2345
3407 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3412 External links: dollar sign in URL (named)
3414 [http://example.com/1$2345]
3416 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3421 External links: open square bracket forbidden in URL (bug 4377)
3423 http://example.com/1[2345
3425 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3430 External links: open square bracket forbidden in URL (named) (bug 4377)
3432 [http://example.com/1[2345]
3434 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3439 External links: nowiki in URL link text (bug 6230)
3441 [http://example.com/ <nowiki>''example site''</nowiki>]
3443 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3448 External links: newline forbidden in text (bug 6230 regression check)
3450 [http://example.com/ first
3453 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3459 External links: Pipe char between url and text
3461 [http://example.com | link]
3463 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3468 External links: protocol-relative URL in brackets
3470 [//example.com/ Test]
3472 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3477 External links: protocol-relative URL in brackets without text
3481 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3486 External links: protocol-relative URL in free text is left alone
3490 <p>//example.com/Foo
3495 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3497 foo//example.com/Foo
3499 <p>foo//example.com/Foo
3506 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3508 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3513 External image from https
3515 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3517 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3522 External image (when not allowed)
3524 wgAllowExternalImages=0
3526 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3528 <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>
3533 Link to non-http image, no img tag
3535 Link to non-http image, no img tag: ftp://example.com/test.jpg
3537 <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>
3542 External links: terminating separator
3544 Terminating separator: http://example.com/thing,
3546 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3551 External links: intervening separator
3553 Intervening separator: http://example.com/1,2,3
3555 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3560 External links: old bug with URL in query
3562 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3564 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3569 External links: old URL-in-URL bug, mixed protocols
3571 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3573 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3578 External links: URL in text
3580 URL in text: [http://example.com http://example.com]
3582 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3587 External links: Clickable images
3589 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3591 <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>
3596 External links: raw ampersand
3598 Old & use: http://x&y
3600 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3605 External links: encoded ampersand
3607 Old & use: http://x&y
3609 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3614 External links: encoded equals (bug 6102)
3616 http://example.com/?foo=bar
3618 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3623 External links: [raw ampersand]
3625 Old & use: [http://x&y]
3627 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3632 External links: [encoded ampersand]
3634 Old & use: [http://x&y]
3636 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3641 External links: [encoded equals] (bug 6102)
3643 [http://example.com/?foo=bar]
3645 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3650 External links: [IDN ignored character reference in hostname; strip it right off]
3652 [http://e‌xample.com/]
3654 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3658 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3659 # Where an external link could easily circumvent the sanitization of the text of
3660 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3661 # test demands a higher standard. That's a bit strange.
3665 # http://example.com -> [http://example.com|http://example.com]
3666 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3668 # The first example is sanitized, but the second is not. Any security benefits
3669 # from this production are trivial to circumvent. Either remove this test and
3670 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3671 # the test accordingly.
3676 External links: IDN ignored character reference in hostname; strip it right off
3678 http://e‌xample.com/
3680 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3685 External links: www.jpeg.org (bug 554)
3689 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3694 External links: URL within URL (original bug 2)
3696 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3698 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3703 BUG 361: URL inside bracketed URL
3705 [http://www.example.com/foo http://www.example.com/bar]
3707 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3712 BUG 361: URL within URL, not bracketed
3714 http://www.example.com/foo?=http://www.example.com/bar
3716 <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>
3721 BUG 289: ">"-token in URL-tail
3723 http://www.example.com/<hello>
3725 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3730 BUG 289: literal ">"-token in URL-tail
3732 http://www.example.com/<b>html</b>
3734 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3739 BUG 289: ">"-token in bracketed URL
3741 [http://www.example.com/<hello> stuff]
3743 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3748 BUG 289: literal ">"-token in bracketed URL
3750 [http://www.example.com/<b>html</b> stuff]
3752 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3757 BUG 289: literal double quote at end of URL
3759 http://www.example.com/"hello"
3761 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3766 BUG 289: literal double quote in bracketed URL
3768 [http://www.example.com/"hello" stuff]
3770 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3775 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3777 [http://www.example.com test]
3779 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3784 External links: link text with spaces
3786 [http://www.example.com a b c]
3787 [http://www.example.com ''a'' ''b'']
3789 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3790 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3795 External links: wiki links within external link (Bug 3695)
3797 [http://example.com [[wikilink]] embedded in ext link]
3799 <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>
3802 <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>
3806 BUG 787: Links with one slash after the url protocol are invalid
3810 [http:/example.com title]
3812 <p>http:/example.com
3813 </p><p>[http:/example.com title]
3818 Bracketed external links with template-generated invalid target
3820 [{{echo|http:/example.com}} title]
3822 <p>[http:/example.com title]
3827 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3829 ''[http://example.com text'']
3830 [http://example.com '''text]'''
3831 ''Something [http://example.com in italic'']
3832 ''Something [http://example.com mixed''''', even bold]'''
3833 '''''Now [http://example.com both''''']
3835 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3836 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3837 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3838 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3839 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3845 Bug 4781: %26 in URL
3847 http://www.example.com/?title=AT%26T
3849 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3853 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3854 # % is actually legal in HTML5. Any change in output would need testing though.
3856 Bug 4781, 5267: %25 in URL
3858 http://www.example.com/?title=100%25_Bran
3860 <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>
3865 Bug 4781, 5267: %28, %29 in URL
3867 http://www.example.com/?title=Ben-Hur_%281959_film%29
3869 <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>
3875 Bug 4781: %26 in autonumber URL
3877 [http://www.example.com/?title=AT%26T]
3879 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3884 Bug 4781, 5267: %26 in autonumber URL
3886 [http://www.example.com/?title=100%25_Bran]
3888 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3893 Bug 4781, 5267: %28, %29 in autonumber URL
3895 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3897 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3903 Bug 4781: %26 in bracketed URL
3905 [http://www.example.com/?title=AT%26T link]
3907 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3912 Bug 4781, 5267: %26 in bracketed URL
3914 [http://www.example.com/?title=100%25_Bran link]
3916 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3921 Bug 4781, 5267: %28, %29 in bracketed URL
3923 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3925 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3930 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3932 Some [http://example.com/ pretty ''italics'' and stuff]!
3934 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3939 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3941 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3943 <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>
3948 External link containing double-single-quotes with no space separating the url from text in italics
3950 [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]].]
3952 <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>
3955 <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>
3959 External link with comments in link text
3961 [http://www.google.com Google <!-- comment -->]
3963 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3968 URL-encoding in URL functions (single parameter)
3970 {{localurl:Some page|amp=&}}
3972 <p>/index.php?title=Some_page&amp=&
3977 URL-encoding in URL functions (multiple parameters)
3979 {{localurl:Some page|q=?&=&}}
3981 <p>/index.php?title=Some_page&q=?&amp=&
3988 http://example.com/index.php?foozoid%5B%5D=bar
3990 http://example.com/index.php?foozoid[]=bar
3992 <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>
3993 </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>
3998 IPv6 urls (bug 21261)
4002 http://[2404:130:0:1000::187:2]/index.php
4004 <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>
4009 Non-extlinks in brackets
4018 [{{echo|foo}} ''bar'']
4019 [{{echo|foo}}l's] errand
4020 [{{echo|foo}}l's errand]
4022 [url=http://example.com]
4035 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
4040 Percent encoding in external links
4042 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
4044 <p><a rel="nofollow" class="external text" href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a>
4047 <p><a rel="mw:ExtLink"
4048 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
4052 Use url link syntax for links where the content is equal the link target
4056 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4059 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
4063 Parenthesis in external links, especially URL links
4067 http://example.com/test)
4069 http://example.com/(test)
4071 http://example.com/((test)
4073 (http://example.com/(test))
4075 (http://example.com/(test)))))
4077 http://example.com/a)b
4079 [http://example.com) foo]
4081 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</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/(test)))))">http://example.com/(test)))))</a>
4087 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
4088 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
4091 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</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/(test)))))">http://example.com/(test)))))</a></p>
4097 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
4098 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
4102 Parenthesis in external links, w/ transclusion or comment
4104 (http://example.com/{{echo|hi}})
4106 (http://example.com<!-- hi -->)
4108 <p>(<a rel="nofollow" class="external free" href="http://example.com/hi">http://example.com/hi</a>)
4109 </p><p>(<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4112 <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>
4114 <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>
4124 Normal text. '''Bold text.''' Normal text. ''Italic text.''
4126 Normal text. '''''Bold italic text.''''' Normal text.
4128 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
4129 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
4134 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
4135 # parser strips. The wikitext contains just the first half of the bold
4138 Unclosed and unmatched quotes
4140 '''''Bold italic text '''with bold deactivated''' in between.'''''
4142 '''''Bold italic text ''with italic deactivated'' in between.'''''
4146 ..spanning two paragraphs (should not work).'''
4148 '''Bold tag left open
4150 ''Italic tag left open
4154 <!-- Unmatching number of opening, closing tags: -->
4155 '''This year''''s election ''should'' beat '''last year''''s.
4157 ''Tom'''s car is bigger than ''Susan'''s.
4159 Plain ''italic'''s plain
4161 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4162 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4163 </p><p><b>Bold text..</b>
4164 </p><p>..spanning two paragraphs (should not work).
4165 </p><p><b>Bold tag left open</b>
4166 </p><p><i>Italic tag left open</i>
4168 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4169 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4170 </p><p>Plain <i>italic'</i>s plain
4173 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4174 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4175 </p><p><b>Bold text..</b>
4176 </p><p>..spanning two paragraphs (should not work).<b></b>
4177 </p><p><b>Bold tag left open</b>
4178 </p><p><i>Italic tag left open</i>
4180 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4181 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4182 </p><p>Plain <i>italic'</i>s plain
4189 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4192 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4193 # is the bare minimum required by the spec, see:
4194 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4195 # Parsoid team replies: empty table tags are legal in HTML5
4197 A table with no data.
4210 A table with stray table end tags on start tag line (wt2html)
4214 {|style="color: red;"|}
4216 {|style="color: red;" |}
4220 {|style="color: red;"|} id="foo"
4224 {|style="color: red;" |} id="foo"
4228 <table style="color: red;"></table>
4230 <table style="color: red;">
4236 <table style="color: red;" id="foo">
4242 <table style="color: red;" id="foo">
4251 A table with no data (take 2)
4259 # A table with nothing but a caption is invalid XHTML, we might want to render
4260 # this as <p>caption</p>
4261 # Parsoid team replies: table with only a caption is legal in HTML5
4263 A table with nothing but a caption
4271 </caption><tr><td></td></tr></table>
4274 <table><caption> caption</caption></table>
4278 A table with caption with default-spaced attributes and a table row
4281 |+ style="color: red;" | caption1
4287 <caption style="color: red;"> caption1
4296 A table with captions with non-default spaced attributes and a table row
4299 |+style="color: red;"|caption2
4300 |+ style="color: red;"| caption3
4306 <caption style="color: red;">caption2
4308 <caption style="color: red;"> caption3
4317 Table td-cell syntax variations
4321 | foo bar foo || baz
4322 | style='color:red;' | baz
4323 | style='color:red;' || baz
4330 <td> foo bar foo </td>
4333 <td style="color:red;"> baz
4335 <td> style='color:red;' </td>
4363 Simple table but with multiple dashes for row wikitext
4381 Multiplication table
4383 {| border="1" cellpadding="2"
4384 |+Multiplication table
4386 ! × !! 1 !! 2 !! 3
4404 <table border="1" cellpadding="2">
4405 <caption>Multiplication table
4452 Accept "||" in table headings
4467 Accept "||" in indented table headings
4477 </th></tr></table></dd></dl>
4482 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4499 Accept "| !" at start of line in tables (ignore !-attribute)
4503 | !style="color:red" | bar
4515 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 +/-
4519 |style='color:red;'|+1
4520 |style='color:blue;'|-1
4532 <td style="color:red;">+1
4534 <td style="color:blue;">-1
4558 |rowspan=2| Cell 2, row 1 (and 2)
4569 <td rowspan="2"> Cell 2, row 1 (and 2)
4587 {| bgcolor=#ABCDEF border=2
4592 |the original table again
4600 <table bgcolor="#ABCDEF" border="2">
4608 <td>the original table again
4614 Invalid attributes in table cell (bug 1830)
4629 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4632 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4636 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4637 <td>]" onmouseover="alert(document.cookie)">test
4646 Indented table markup mixed with indented pre content (proposed in bug 6200)
4651 Text that should be rendered preformatted
4659 <pre>Text that should be rendered preformatted
4668 Template-generated table cell attributes and cell content
4677 <td style="color: red"> Foo
4679 <td style="color: red"> Foo
4685 Template-generated table cell attributes and cell content (2)
4688 |align=center {{table_attribs}}
4693 <td align="center" style="color: red"> Foo
4699 Template-generated table cell attributes and cell content (3)
4702 |align=center {{table_cells}}
4707 <td align="center" style="color: red"> Foo </td>
4715 Table with row followed by newlines and table heading
4733 Table with empty line following the start tag
4750 # FIXME: Preserve the attribute properly (with an empty string as value) in
4751 # the PHP parser. Parsoid implements the behavior below.
4753 Table attributes with empty value
4763 </td></tr></tbody></table>
4768 Wikitext table with a lot of comments
4791 Wikitext table with double-line table cell
4808 Table cell with a single comment
4824 # The expected HTML structure in this test is debatable. The PHP parser does
4825 # not parse this kind of table at all. The main focus for Parsoid is on
4826 # round-tripping, so this output is ok for now. TODO: revisit!
4828 Wikitext table with html-syntax row
4838 <td>foo</td></tr></tbody></table>
4842 Implicit <td> after a |-
4843 (PHP parser relies on Tidy to add the missing <td> tags)
4845 parsoid=wt2html,wt2wt
4858 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4859 (PHP parser relies on Tidy to add the missing <td> tags)
4861 parsoid=wt2html,wt2wt
4873 <tr><td><pre>a</pre></td></tr>
4874 <tr><td> b</td></tr>
4880 Lists should be recognized in an implicit <td> context
4881 (PHP parser relies on Tidy to add the missing <td> tags)
4883 parsoid=wt2html,wt2wt
4900 Parsoid: Round-trip tables directly followed by content (bug 51219)
4902 parsoid=wt2html,wt2wt
4914 <td>foo</td></tr></tbody></table> bar
4918 <td>baz</td></tr></tbody></table><b>quux</b>
4922 Parsoid: Default to a newline after tables in new content (bug 51219)
4929 <nowiki> </nowiki>bar
4936 <tr><td>foo</td></tr></tbody></table> bar
4938 <tr><td>baz</td></tr></tbody></table><b>quux</b>
4942 Parsoid: newline inducing block nodes don't suppress <nowiki>
4957 Plain link, capitalized
4961 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4966 Plain link, uncapitalized
4970 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4977 [[Main Page|The Main Page]]
4979 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4984 Piped link with comment in link text
4986 [[Main Page|The Main<!--front--> Page]]
4988 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4997 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
5002 Broken link with fragment
5004 [[Zigzagzogzagzig#zug]]
5006 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
5011 Special page link with fragment
5013 [[Special:Version#anchor]]
5015 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
5020 Nonexistent special page link with fragment
5022 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
5024 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
5031 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
5033 <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>
5040 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
5042 <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>!!!
5053 Bug 43661: Piped links with identical prefixes
5055 [[prefixed article|prefixed articles with spaces]]
5057 [[prefixed article|prefixed articlesaoeu]]
5059 [[Main Page|Main Page test]]
5061 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
5062 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
5063 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
5069 Link with HTML entity in suffix / tail
5071 [[Main Page]]", [[Main Page]]a
5073 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
5078 Link with 3 brackets
5087 Link with 4 brackets
5091 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
5096 Piped link with 3 brackets
5098 [[[main page|the main page]]]
5100 <p>[[[main page|the main page]]]
5105 Piped link with extlink-like text
5108 [[Main Page|This is a [bar]]]
5110 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
5111 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
5116 Link with multiple pipes
5118 [[Main Page|The|Main|Page]]
5120 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
5127 [[Talk:Parser testing]], [[Meta:Disclaimers]]
5129 <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>
5134 MemoryAlpha:AlphaTest
5136 This is an article in the MemoryAlpha namespace
5137 (which shadows the memoryalpha interwiki link).
5141 Namespace takes precedence over interwiki link (bug 51680)
5143 [[MemoryAlpha:AlphaTest]]
5145 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5149 # The previous test doesn't work correctly in html2*, due to not recognizing the
5150 # link as an internal one. This one checks for the correct behavior.
5152 Link to namespace preferred over interwiki with correct rel attribute
5154 parsoid=html2wt,html2html
5156 [[MemoryAlpha:AlphaTest]]
5158 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5163 Piped link to namespace
5165 [[Meta:Disclaimers|The disclaimers]]
5167 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
5174 [[Usually caused by a typo (oops}]]
5176 <p>[[Usually caused by a typo (oops}]]
5181 Link containing % (not as a hex sequence)
5185 <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>
5190 Link containing % as a single hex sequence interpreted to char
5194 <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>
5199 Link containing % as a double hex sequence interpreted to hex sequence
5203 <p>[[7%2525 Solution]]
5208 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
5209 Example for such a section: == < ==
5211 [[%23%3c]][[%23%3e]]
5213 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
5218 Link containing "<#" and ">#" as a hex sequences
5220 [[%3c%23]][[%3e%23]]
5222 <p>[[%3c%23]][[%3e%23]]
5227 Link containing an equals sign
5229 [[Special:BookSources/isbn=4-00-026157-6]]
5231 <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>
5238 Just a test of an article title containing a tilde.
5241 # note that links containing signatures, like [[Foo~~~~]], are
5242 # massaged by the pre-save transform (PST) and so the tildes are never
5243 # seen by the parser.
5245 Link containing a tilde
5249 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
5254 Link containing double-single-quotes '' (bug 4598)
5256 [[Lista d''e paise d''o munno]]
5258 <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>
5263 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5265 Some [[Link|pretty ''italics'' and stuff]]!
5267 <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>!
5272 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5274 ''Some [[Link|pretty ''italics'' and stuff]]!
5276 <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>
5281 Link with double quotes in title part (literal) and alternate part (interpreted)
5283 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5287 [[''Pentecoste''|Pentecoste]]
5289 [[''Pentecoste''|''Pentecoste'']]
5291 <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>
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)">Pentecoste</a>
5294 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
5299 Broken image links with HTML captions (bug 39700)
5301 [[File:Nonexistent|<script></script>]]
5302 [[File:Nonexistent|100px|<script></script>]]
5303 [[File:Nonexistent|<]]
5304 [[File:Nonexistent|a<i>b</i>c]]
5306 <p><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"><script></script></a>
5308 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5309 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5316 [[http://www.example.com]]
5318 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5323 Plain link to URL with link text
5325 [[http://www.example.com Link text]]
5327 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5332 Plain link to protocol-relative URL
5334 [[//www.example.com]]
5336 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5341 Plain link to protocol-relative URL with link text
5343 [[//www.example.com Link text]]
5345 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5350 Plain link to page with question mark in title
5356 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5357 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5362 # I'm fairly sure the expected result here is wrong.
5363 # We want these to be URL links, not pseudo-pages with URLs for titles....
5364 # However the current output is also pretty screwy.
5367 # I'm changing it to match the current output--it arguably makes more
5368 # sense in the light of the test above. Old expected result was:
5369 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5371 # But I think this test is bordering on "garbage in, garbage out" anyway.
5376 Piped link to URL: [[http://www.example.com|an example URL]]
5378 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5383 BUG 2: [[page|http://url/]] should link to page, not http://url/
5385 [[Main Page|http://url/]]
5387 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5392 BUG 337: Escaped self-links should be bold
5396 [[Bug462]] [[Bug462]]
5398 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5403 Self-link to section should not be bold
5407 [[Main Page#section]]
5409 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5420 Self-link to numeric title
5426 <p><strong class="selflink">0</strong>
5431 Link to numeric-equivalent title
5437 <p><a href="/wiki/00" title="00">00</a>
5442 <nowiki> inside a link
5444 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5446 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5451 Non-breaking spaces in title
5453 [[ Main Page ]]
5455 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5460 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5466 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5471 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5477 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5482 Internal link with en linktrail: no apostrophes (bug 27473)
5488 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5493 Internal link with ca linktrail with apostrophes (bug 27473)
5499 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5504 Internal link with kaa linktrail with apostrophes (bug 27473)
5510 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5515 1. Interaction of linktrail and template encapsulation
5521 <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>
5525 2. Interaction of linktrail and template encapsulation
5529 {{echo|Some [[Fool]]}}s
5531 <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>
5535 3. Interaction of linktrail and template encapsulation
5539 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
5541 <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>
5551 Internal link with is link prefix
5555 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5557 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5568 Internal link with is link trail and link prefix
5572 [[mótmælendatrú|xxx]]ar
5574 mótmælenda[[söfnuður]]
5575 mótmælenda[[söfnuður|söfnuðir]]
5576 mótmælenda[[söfnuður|söfnuðir]]xxx
5578 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
5579 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
5580 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
5581 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
5582 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
5587 Parsoid link trail escaping
5589 parsoid=html2wt,html2html
5593 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
5597 Parsoid link prefix escaping
5600 parsoid=html2wt,html2html
5602 Aðrir mótmælenda<nowiki/>[[söfnuður]]
5604 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5608 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5616 [http://wp.org ''foo'']
5618 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5619 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5620 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5621 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5626 Parsoid: Scoped parsing should handle mixed transclusions and plain text
5630 [[Foo|{{echo|a}} b {{echo|c}}]]
5632 <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>
5636 ### Interwiki links (see maintenance/interwiki.sql)
5640 Inline interwiki link
5642 [[MeatBall:SoftSecurity]]
5644 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5649 Inline interwiki link with empty title (bug 2372)
5653 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5658 Interwiki link encoding conversion (bug 1636)
5660 *[[Wikipedia:ro:Olteniţa]]
5661 *[[Wikipedia:ro:Olteniţa]]
5664 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5666 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5673 Interwiki link with fragment (bug 2130)
5675 [[MeatBall:SoftSecurity#foo]]
5677 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5681 # Ideally the wikipedia: prefix here should be proto-relative too
5683 Different interwiki prefixes mapping to the same URL
5691 <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>
5693 <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>
5697 Interwiki links that cannot be represented in wiki syntax
5702 [[meatball:ok#foo|ok with fragment]]
5703 [[meatball:ok_as_well?|ok ending with ? mark]]
5704 [http://de.wikipedia.org/wiki/Foo?action=history has query]
5705 [http://de.wikipedia.org/wiki/#foo is just fragment]
5708 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok">meatball:ok</a>
5709 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo">ok with fragment</a>
5710 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F">ok ending with ? mark</a>
5711 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
5712 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
5716 Interwiki links: trail
5720 [[wikipedia:Foo|Ba]]r
5722 <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>
5726 ### Interlanguage links
5727 ### Language links (so that searching for '### language' matches..)
5741 Double interlanguage link
5752 Interlanguage link, with prefix links
5764 Double interlanguage link, with prefix links (bug 8897)
5777 Parsoid-specific test: Wikilinks with should RT properly
5783 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5788 Parsoid bug 53221: Wikilinks should be properly entity-escaped
5792 He&nbsp;llo [[Foo|He&nbsp;llo]]
5794 He&nbsp;llo [[He&nbsp;llo]]
5796 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5797 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5801 Parsoid: handle constructor well
5809 <p><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
5811 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
5815 Parsoid: recognize interlanguage links without a target page
5822 <link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
5826 Parsoid: recognize interwiki links without a target page
5832 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
5836 Parsoid: Bug #45209, handle interwiki links pointing to the current wiki as plain wiki links
5842 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"en:Foo"}}'>Foo</a></p>
5846 ### Redirects, Parsoid-only
5849 1. Simple redirect to page
5853 #REDIRECT [[Main Page]]
5855 <link rel="mw:PageProp/redirect" href="./Main_Page">
5858 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
5860 2. Other redirect variants
5862 parsoid=wt2html,wt2wt
5864 #REDIRECT [[Main_Page]]
5865 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
5867 <link rel="mw:PageProp/redirect" href="./Main_Page">
5868 <link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
5872 Optional colon in #REDIRECT
5874 # the colon is archaic syntax. we support it for wt2html, but we
5875 # don't care that it roundtrips back to the modern syntax.
5876 parsoid=wt2html,html2html
5878 #REDIRECT:[[Main Page]]
5880 <link rel="mw:PageProp/redirect" href="./Main_Page">
5884 Whitespace in #REDIRECT with optional colon
5886 # the colon and gratuitous whitespace is archaic syntax. we support
5887 # it for wt2html, but we don't care that it roundtrips back to the
5888 # modern syntax (without extra whitespace)
5889 parsoid=wt2html,html2html
5896 <link rel="mw:PageProp/redirect" href="./Main_Page">
5900 Piped link in #REDIRECT
5902 # content after piped link is ignored. we support this syntax,
5903 # but don't care that the piped link is lost when we roundtrip this.
5906 #REDIRECT [[Main Page|bar]]
5908 <link rel="mw:PageProp/redirect" href="./Main_Page">
5912 Redirect to category
5916 #REDIRECT [[Category:Foo]]
5918 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5922 Redirect to category with URL encoding
5926 #REDIRECT [[Category%3AFoo]]
5928 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5932 Redirect to category page
5934 parsoid=wt2html,html2html
5936 #REDIRECT [[:Category:Foo]]
5938 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5942 Redirect to image page (1)
5946 #REDIRECT [[File:Wiki.png]]
5948 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5952 Redirect to image page (2)
5956 #REDIRECT [[Image:Wiki.png]]
5958 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5962 Redirect to language
5966 #REDIRECT [[en:File:Wiki.png]]
5968 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5972 Redirect to interwiki
5976 #REDIRECT [[meatball:File:Wiki.png]]
5978 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5982 Non-English #REDIRECT
5987 #TILVÍSUN [[Main Page]]
5989 <link rel="mw:PageProp/redirect" href="./Main_Page">
6000 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
6017 Broken br tag sanitization
6025 # TODO: Fix html2html mode (bug 51055)!
6027 Parsoid: Broken br tag recognition
6037 Incorrecly removing closing slashes from correctly formed XHTML
6039 <br style="clear:both;" />
6041 <p><br style="clear:both;" />
6046 Failing to transform badly formed HTML into correct XHTML
6048 <br style="clear: left;">
6049 <br style="clear: right;">
6050 <br style="clear: both;">
6052 <p><br style="clear: left;" />
6053 <br style="clear: right;" />
6054 <br style="clear: both;" />
6059 Handling html with a div self-closing tag
6068 <p><div title />
6072 <p><div title=bar />
6073 <div title=bar/>
6075 <div title="bar/"></div>
6081 Handling html with a br self-closing tag
6090 <p><br title="title" />
6091 <br title="title" />
6100 Horizontal ruler (should it add that extra space?)
6114 Horizontal ruler -- 4+ dashes render hr
6123 Horizontal ruler -- eats additional dashes on the same line
6132 Horizontal ruler -- does not collapse dashes on consecutive lines
6143 Horizontal ruler -- <4 dashes render as plain text
6152 Horizontal ruler -- Supports content following dashes on same line
6161 ### Block-level elements
6209 ***#Number on level 4
6211 **#Number on level 3
6212 **#Number on level 3
6216 #** Level 3, but ordered
6239 <li>Number on level 4
6247 <li>Number on level 3
6249 <li>Number on level 3
6272 <li> Level 3, but ordered
6318 Nested lists 3 (first element empty)
6335 Nested lists 4 (first element empty)
6353 Nested lists 5 (both elements empty)
6371 Nested lists 6 (both elements empty)
6388 Nested lists 7 (skip initial nesting levels)
6406 Nested lists 8 (multiple nesting transitions)
6432 1. Lists with start-of-line-transparent tokens before bullets: Comments
6450 2. Lists with start-of-line-transparent tokens before bullets: Template close
6465 List items are not parsed correctly following a <pre> block (bug 785)
6483 List items from template
6494 * notSOL{{inner list}}
6525 List interrupted by empty line or heading
6544 <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>
6546 <li> Another list item
6553 Multiple list tags generated by templates
6568 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6571 <!--This line will NOT split the list-->
6573 <!--This line will NOT split the list either-->
6575 <!--foo--> <!----> <!--This line NOT split the list either-->
6592 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6595 <!--This line will NOT split the list-->
6597 <!--This line will NOT split the list either-->
6599 <!--foo--> <!----> <!--This line NOT split the list
6618 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6620 parsoid=wt2html,wt2wt
6624 * {{echo|<li>templated li-hack}}
6625 * <!--foo--> <li> unsupported li-hack with preceding comments
6628 <li><li>not a li-hack
6635 <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>
6636 <li> <!--foo--> </li>
6637 <li> li-hack with preceding comments</li>
6648 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6675 Parsoid: Test of whitespace serialization with Templated bullets
6682 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6686 # ------------------------------------------------------------------------
6687 # The next set of tests are about Parsoid's ability to handle badly nested
6688 # tags (parse, minimize scope of fixup, and roundtrip back)
6689 # ------------------------------------------------------------------------
6692 Unbalanced closing block tags break a list
6693 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6711 Unbalanced closing non-block tags don't break a list
6712 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6729 Unclosed formatting tags that straddle lists are closed and reopened
6730 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6744 List embedded in a non-block tag
6745 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
6751 <p><small></small></p>
6757 <p><small></small></p>
6761 Table with missing opening <tr> tag
6763 parsoid=wt2html,wt2wt
6781 # Note that the current date is hard-coded as
6782 # 1970-01-01T00:02:03Z (a Thursday)
6783 # when running parser tests. The timezone is also fixed to GMT, so
6784 # local date will be identical to current date.
6787 Magic Word: {{CURRENTDAY}}
6796 Magic Word: {{CURRENTDAY2}}
6805 Magic Word: {{CURRENTDAYNAME}}
6814 Magic Word: {{CURRENTDOW}}
6823 Magic Word: {{CURRENTMONTH}}
6832 Magic Word: {{CURRENTMONTH1}}
6841 Magic Word: {{CURRENTMONTHABBREV}}
6843 {{CURRENTMONTHABBREV}}
6850 Magic Word: {{CURRENTMONTHNAME}}
6852 {{CURRENTMONTHNAME}}
6859 Magic Word: {{CURRENTMONTHNAMEGEN}}
6861 {{CURRENTMONTHNAMEGEN}}
6868 Magic Word: {{CURRENTTIME}}
6877 Magic Word: {{CURRENTHOUR}}
6886 Magic Word: {{CURRENTWEEK}} (@bug 4594)
6895 Magic Word: {{CURRENTYEAR}}
6904 Magic Word: {{CURRENTTIMESTAMP}}
6906 {{CURRENTTIMESTAMP}}
6913 Magic Words LOCAL (UTC)
6917 * {{LOCALMONTHNAME}}
6918 * {{LOCALMONTHNAMEGEN}}
6919 * {{LOCALMONTHABBREV}}
6928 * {{LOCALTIMESTAMP}}
6964 Magic Word: {{FULLPAGENAME}}
6966 title=[[User:Ævar Arnfjörð Bjarmason]]
6970 <p>User:Ævar Arnfjörð Bjarmason
6975 Magic Word: {{FULLPAGENAMEE}}
6977 title=[[User:Ævar Arnfjörð Bjarmason]]
6981 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6986 Magic Word: {{TALKSPACE}}
6988 title=[[User:Ævar Arnfjörð Bjarmason]]
6997 Magic Word: {{TALKSPACE}}, same namespace
6999 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7008 Magic Word: {{TALKSPACE}}, main namespace
7010 title=[[Parser Test]]
7019 Magic Word: {{TALKSPACEE}}
7021 title=[[User:Ævar Arnfjörð Bjarmason]]
7030 Magic Word: {{SUBJECTSPACE}}
7032 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7041 Magic Word: {{SUBJECTSPACE}}, same namespace
7043 title=[[User:Ævar Arnfjörð Bjarmason]]
7052 Magic Word: {{SUBJECTSPACE}}, main namespace
7054 title=[[Parser Test]]
7062 Magic Word: {{SUBJECTSPACEE}}
7064 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7073 Magic Word: {{NAMESPACE}}
7075 title=[[User:Ævar Arnfjörð Bjarmason]]
7084 Magic Word: {{NAMESPACEE}}
7086 title=[[User:Ævar Arnfjörð Bjarmason]]
7095 Magic Word: {{NAMESPACENUMBER}}
7097 title=[[User:Ævar Arnfjörð Bjarmason]]
7106 Magic Word: {{SUBPAGENAME}}
7108 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7117 Magic Word: {{SUBPAGENAMEE}}
7119 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7128 Magic Word: {{ROOTPAGENAME}}
7130 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7134 <p>Ævar Arnfjörð Bjarmason
7139 Magic Word: {{ROOTPAGENAMEE}}
7141 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7145 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7150 Magic Word: {{BASEPAGENAME}}
7152 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7156 <p>Ævar Arnfjörð Bjarmason
7161 Magic Word: {{BASEPAGENAMEE}}
7163 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7167 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7172 Magic Word: {{TALKPAGENAME}}
7174 title=[[User:Ævar Arnfjörð Bjarmason]]
7178 <p>User talk:Ævar Arnfjörð Bjarmason
7183 Magic Word: {{TALKPAGENAMEE}}
7185 title=[[User:Ævar Arnfjörð Bjarmason]]
7189 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7194 Magic Word: {{SUBJECTPAGENAME}}
7196 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7200 <p>User:Ævar Arnfjörð Bjarmason
7205 Magic Word: {{SUBJECTPAGENAMEE}}
7207 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7209 {{SUBJECTPAGENAMEE}}
7211 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7216 Magic Word: {{NUMBEROFFILES}}
7225 Magic Word: {{PAGENAME}}
7227 title=[[User:Ævar Arnfjörð Bjarmason]]
7231 <p>Ævar Arnfjörð Bjarmason
7236 Magic Word: {{PAGENAME}} with metacharacters
7238 title=[['foo & bar = baz']]
7242 <p><i>'foo & bar = baz'</i>
7247 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
7249 title=[[*RFC 1234 http://example.com/]]
7253 <p>*RFC 1234 http://example.com/
7258 Magic Word: {{PAGENAMEE}}
7260 title=[[User:Ævar Arnfjörð Bjarmason]]
7264 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7269 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
7271 title=[[*RFC 1234 http://example.com/]]
7275 <p>*RFC_1234_http://example.com/
7280 Magic Word: {{REVISIONID}}
7289 Magic Word: {{SCRIPTPATH}}
7298 Magic Word: {{STYLEPATH}}
7307 Magic Word: {{SERVER}}
7311 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7316 Magic Word: {{SERVERNAME}}
7325 Magic Word: {{SITENAME}}
7334 Case-sensitive magic words, when cased differently, should just be template transclusions
7341 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
7342 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
7343 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
7344 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
7349 Case-insensitive magic words should still work with weird casing.
7359 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7364 Namespace 1 {{ns:1}}
7373 Namespace 1 {{ns:01}}
7382 Namespace 0 {{ns:0}} (bug 4783)
7390 Namespace 0 {{ns:00}} (bug 4783)
7398 Namespace -1 {{ns:-1}}
7407 Namespace User {{ns:User}}
7416 Namespace User talk {{ns:User_talk}}
7425 Namespace User talk {{ns:uSeR tAlK}}
7434 Namespace File {{ns:File}}
7443 Namespace File {{ns:Image}}
7452 Namespace (lang=de) Benutzer {{ns:User}}
7463 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7469 <p>Benutzer Diskussion
7477 {{urlencode:hi world?!}}
7478 {{urlencode:hi world?!|WIKI}}
7479 {{urlencode:hi world?!|PATH}}
7480 {{urlencode:hi world?!|QUERY}}
7490 Magic Word: prioritize type info over data-parsoid
7496 <meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__"}'/>
7500 Magic Word: serialize on separate line (parsoid)
7502 parsoid=wt2wt,html2wt
7508 foo<meta property="mw:PageProp/notoc"/>bar
7512 Magic Word: rt non-english wikis
7519 <meta property="mw:PageProp/noeditsection" data-parsoid='{"src":"__NOEDITSECTION__","magicSrc":"__NOEDITSECTION__"}'/>
7526 Magic links: internal link to RFC (bug 479)
7530 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7535 Magic links: RFC (bug 479)
7539 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7544 Magic links: ISBN (bug 1937)
7548 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7553 Magic links: PMID incorrectly converts space to underscore
7557 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7566 Nonexistent template
7568 {{thistemplatedoesnotexist}}
7570 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7575 Template with invalid target containing tags
7577 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7579 <p>{{a<b>b</b>|foo|a=b|a = b}}
7584 Template with invalid target containing unclosed tag
7586 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7588 <p>{{a<b>|foo|a=b|a = b}}</b>
7593 Template with invalid target containing wikilink
7597 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
7600 <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>
7606 This is a test template
7614 <p>This is a test template
7619 Template with explicit namespace
7623 <p>This is a test template
7631 This is a test template with parameter {{{param}}}
7637 {{paramtest|param=foo}}
7639 <p>This is a test template with parameter foo
7644 Template:paramtestnum
7650 Template unnamed parameter
7652 {{paramtestnum|Main Page|the main page}}
7654 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7659 Template:templatesimple
7665 Template:templateredirect
7667 #redirect [[Template:templatesimple]]
7671 Template:templateasargtestnum
7677 Template:templateasargtest
7679 {{template{{{templ}}}}}
7683 Template:templateasargtest2
7689 Template with template name as unnamed argument
7691 {{templateasargtestnum|templatesimple}}
7698 Template with template name as argument
7700 {{templateasargtest|templ=simple}}
7707 Template with template name as argument (2)
7709 {{templateasargtest2|templ=templatesimple}}
7716 Template:templateasargtestdefault
7718 {{{{{templ|templatesimple}}}}}
7728 Template with default value
7730 {{templateasargtestdefault}}
7737 Template with default value (value set)
7739 {{templateasargtestdefault|templ=templa}}
7748 {{templateredirect}}
7755 Template with argument in separate line
7757 {{ templateasargtest |
7765 Template with complex template as argument
7768 param ={{ templateasargtest |
7771 <p>This is a test template with parameter (test)
7776 Template with thumb image (with link in description)
7779 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
7781 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>
7786 Template:complextemplate
7788 {{{1}}} {{paramtest|
7789 param ={{{param}}}}}
7793 Template with complex arguments
7796 param ={{ templateasargtest |
7797 templ = simple }}|[[Template:complextemplate|link]]}}
7799 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
7804 BUG 553: link with two variables in a piped link
7807 |[[{{{1}}}|{{{2}}}]]
7812 <td>[[{{{1}}}|{{{2}}}]]
7818 Magic variable as template parameter
7820 {{paramtest|param={{SITENAME}}}}
7822 <p>This is a test template with parameter MediaWiki
7829 [[{{{param}}}|link]]
7833 Template parameter as link source
7835 {{linktest|param=Main Page}}
7837 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
7842 Template-generated attribute string (k='v')
7844 <span {{attr_str|id|v1}}>bar</span>
7846 <p><span id="v1">bar</span>
7853 including another template, {{paramtest|param={{{arg}}}}}
7857 Template passing argument to another template
7859 {{paramtest2|arg='hmm'}}
7861 <p>including another template, This is a test template with parameter 'hmm'
7872 Template as link source
7876 [[{{linktest2}}|Main Page]]
7878 [[{{linktest2}}]]Page
7880 <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>
7882 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
7900 Template infinite loop
7904 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
7909 Template from main namespace
7928 BUG 529: Template with table, not included at beginning of line
7947 BUG 523: Template shouldn't eat newline (or add an extra one before table)
7967 BUG 41: Template parameters shown as broken links
7976 Template with targets containing wikilinks
7980 {{[[{{echo|foo}}]]}}
7982 {{{{echo|[[foo}}]]}}
7984 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7985 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7993 ''None'' of '''this''' should be
7995 but rather passed unmodified
7999 # hmm, fix this or just deprecate msgnw and document its behavior?
8005 {{msgnw:MSGNW test}}
8007 <p>''None'' of '''this''' should be
8009 but rather passed unmodified
8017 {{int:youhavenewmessages|lots of money|not!}}
8019 <p>You have lots of money (not!).
8026 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8030 <includeonly> and <noinclude> being included
8041 <onlyinclude>Foo</onlyinclude>bar
8045 <onlyinclude> being included
8057 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
8061 <onlyinclude> and <includeonly> being included
8070 <includeonly> and <noinclude> on a page
8072 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8079 Un-closed <noinclude>
8086 <onlyinclude> on a page
8088 <onlyinclude>Foo</onlyinclude>bar
8095 Un-closed <onlyinclude>
8102 Self-closed noinclude, includeonly, onlyinclude tags
8113 Unbalanced includeonly and noinclude tags
8117 |b</noinclude></noinclude>
8118 |c</noinclude></includeonly>
8119 |d</includeonly></includeonly>
8128 <td>c</includeonly>
8130 <td>d</includeonly></includeonly>
8136 Template:Includeonly section
8139 ==Includeonly section==
8145 Bug 6563: Edit link generation for section shown by <includeonly>
8147 {{includeonly section}}
8149 <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>
8150 <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>
8154 # Uses same input as the contents of [[Template:Includeonly section]]
8156 Bug 6563: Section extraction for section shown by <includeonly>
8161 ==Includeonly section==
8169 Bug 6563: Edit link generation for section suppressed by <includeonly>
8172 ==Includeonly section==
8176 <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>
8181 Bug 6563: Section extraction for section suppressed by <includeonly>
8186 ==Includeonly section==
8194 Un-closed <includeonly>
8200 # TODO: test with DOM fragment reuse!
8202 Parsoid: DOM fragment reuse
8204 parsoid=wt2wt,wt2html
8206 a{{echo|b<table></table>c}}d
8218 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
8219 <table></table>c"}},"i":0}}]}'>b</span>
8220 <table about="#mwt1"></table><span about="#mwt1">c</span>d
8223 <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">
8225 <table about="#mwt2"></table><span about="#mwt2">
8227 <p about="#mwt2">cd</p>
8230 <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">
8233 <table about="#mwt3"></table><span about="#mwt3">
8236 <p about="#mwt3">b</p>
8240 Parsoid: Merge double tds (bug 50603)
8249 <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>
8254 Parsoid: Merge double tds in nested transclusion content (bug 50603)
8264 <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}}]}'>
8266 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
8272 ### <includeonly> and <noinclude> in attributes
8275 0. includeonly around the entire attribute
8277 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
8279 <p><span id="v2">bar</span>
8284 1. includeonly in html attr key
8286 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
8288 <p><span id="foo">bar</span>
8293 2. includeonly in html attr value
8295 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
8296 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
8298 <p><span id="v1">bar</span>
8299 <span id="v1">bar</span>
8304 3. includeonly in part of an attr value
8306 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
8308 <p><span style="color:red;">bar</span>
8313 4. includeonly in table attributes
8337 ### Testing parsing of templates where a template arg
8338 ### has the same name as the template itself.
8348 Templates: Template Name/Arg clash: 1. Use of positional param
8357 Templates: Template Name/Arg clash: 2. Use of named param
8366 Templates: Template Name/Arg clash: 3. Use of named param with empty input
8375 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
8379 Templates: 1. Simple use
8388 Templates: 2. Inside a block tag
8390 <div>{{echo|Foo}}</div>
8391 <blockquote>{{echo|Foo}}</blockquote>
8394 <blockquote>Foo</blockquote>
8399 Templates: P-wrapping: 1a. Templates on consecutive lines
8410 Templates: P-wrapping: 1b. Templates on consecutive lines
8424 Templates: P-wrapping: 1c. Templates on consecutive lines
8427 {{echo|bar}} <div>baz</div>
8436 Templates: P-wrapping: 1d. Template preceded by comment-only line
8445 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8449 Templates: Inline Text: 1. Multiple tmeplate uses
8451 {{echo|Foo}}bar{{echo|baz}}
8458 Templates: Inline Text: 2. Back-to-back template uses
8460 {{echo|Foo}}{{echo|bar}}
8467 Templates: Block Tags: 1. Multiple template uses
8469 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8471 <div>Foo</div><div>bar</div><div>baz</div>
8476 Templates: Block Tags: 2. Back-to-back template uses
8478 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8480 <div>Foo</div><div>bar</div>
8485 Templates: Links: 1. Simple example
8487 {{echo|[[Foo|bar]]}}
8489 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8494 Templates: Links: 2. Generation of link href
8496 [[{{echo|Foo}}|bar]]
8498 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8503 Templates: Links: 3. Generation of part of a link href
8505 [[Fo{{echo|o}}|bar]]
8509 [[Foo{{echo|bar}}baz]]
8511 [[Foo{{echo|bar}}|bar]]
8513 [[:Foo{{echo|bar}}]]
8515 [[:Foo{{echo|bar}}|bar]]
8517 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8518 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8519 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8520 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8521 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8522 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8527 Templates: Links: 4. Multiple templates generating link href
8529 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8531 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8536 Templates: Links: 5. Generation of link text
8538 [[Foo|{{echo|bar}}]]
8540 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8545 Templates: Links: 5. Nested templates (only outermost template should be marked)
8547 {{echo|[[{{echo|Foo}}|bar]]}}
8549 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8554 Templates: HTML Tag: 1. Generation of HTML attr. key
8556 <div {{echo|style}}="color:red;">foo</div>
8558 <div style="color:red;">foo</div>
8563 Templates: HTML Tag: 2. Generation of HTML attr. value
8565 <div style={{echo|'color:red;'}}>foo</div>
8567 <div style="color:red;">foo</div>
8572 Templates: HTML Tag: 3. Generation of HTML attr key and value
8574 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8576 <div style="color:red;">foo</div>
8581 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8583 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8585 <div title="This is a long title with just one piece templated">foo</div>
8590 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8592 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8594 <div title="This is a long title with just one piece templated">foo</div>
8599 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8601 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8603 <div title="This is a long title with just one piece templated">foo</div>
8608 Templates: HTML Tag: 7. Generation of partial attribute key string
8610 <div st{{echo|yle}}="color:red;">foo</div>
8612 <div style="color:red;">foo</div>
8617 Templates: HTML Tables: 1. Generating start of a HTML table
8619 {{echo|<table><tr><td>foo</td>}}</tr></table>
8621 <table><tr><td>foo</td></tr></table>
8626 Templates: HTML Tables: 2a. Generating middle of a HTML table
8628 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8630 <table><tr><td>foo</td></tr></table>
8635 Templates: HTML Tables: 2b. Generating middle of a HTML table
8637 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8639 <table><tr><td>foo</td></tr></table>
8644 Templates: HTML Tables: 3. Generating end of a HTML table
8646 <table><tr>{{echo|<td>foo</td></tr></table>}}
8648 <table><tr><td>foo</td></tr></table>
8653 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8655 {{echo|<table>}}<tr><td>foo</td></tr></table>
8657 <table><tr><td>foo</td></tr></table>
8662 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8664 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8666 <table><tr><td>foo</td></tr></table>
8671 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8673 <table><tr>{{echo|<td>}}foo</td></tr></table>
8675 <table><tr><td>foo</td></tr></table>
8680 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8682 <table><tr><td>foo{{echo|</td>}}</tr></table>
8684 <table><tr><td>foo</td></tr></table>
8689 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8691 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8693 <table><tr><td>foo</td></tr></table>
8698 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
8700 <table><tr><td>foo</td></tr>{{echo|</table>}}
8702 <table><tr><td>foo</td></tr></table>
8707 Templates: HTML Tables: 5. Proper fostering of categories from inside
8709 parsoid=wt2html,wt2wt
8711 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
8712 <!--Two categories (Bug 50330)-->
8713 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
8715 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
8716 <!--Two categories (Bug 50330)-->
8717 <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>
8721 Templates: Wiki Tables: 1a. Fostering of entire template content
8729 <tr><td></td></tr></table>
8734 Templates: Wiki Tables: 1b. Fostering of entire template content
8747 <tr><td></td></tr></table>
8752 Templates: Wiki Tables: 2. Fostering of partial template content
8762 <tr><td></td></tr></table>
8767 Templates: Wiki Tables: 3. td-content via multiple templates
8770 {{echo|{{pipe}}a}}{{echo|b}}
8781 Templates: Wiki Tables: 4. Templated tags, no content
8787 <tr><td></td></tr></table>
8792 Templates: Wiki Tables: 5. Templated tags, regular td-tags
8806 Templates: Wiki Tables: 6. Templated tags, templated td-tags
8820 Templates: Lists: Multi-line list-items via templates
8822 *{{echo|a {{nonexistent|
8824 *{{echo|b {{nonexistent|
8828 <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>
8830 <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>
8837 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
8839 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
8841 <p><i>ab</i>c<i>d</i>e
8846 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
8847 (PHP parser generates misnested html)
8849 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
8851 <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>
8855 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
8856 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
8858 parsoid=wt2html,wt2wt
8860 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
8862 <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>
8863 <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>
8864 <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>
8868 Templates: Ugly nesting: 4. Divs opened/closed across templates
8870 a<div>b{{echo|c</div>d}}e
8877 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
8883 |{{echo|foo</table>}}
8887 <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|}"]}'>
8891 <td>foo</td></tr></tbody></table><span about="#mwt1">
8892 </span><span about="#mwt1">|bar</span><span about="#mwt1">
8897 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
8907 <td>1. {{echo|foo </table>}}</td>
8909 <td>2. {{echo|baz </table>}}</td>
8922 <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>"]}'>
8927 <td>1. foo </td></tr></tbody></table></td>
8929 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
8930 </span><span about="#mwt2">
8931 </span><span about="#mwt2">
8932 </span><span about="#mwt2">abc</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">
8938 </span><span about="#mwt2">xyz</span><span about="#mwt2">
8939 </span><span about="#mwt2">
8944 Templates: Ugly templates: 3. newline-only template parameter
8953 # This looks like a bug: a single newline triggers p/br for some reason.
8955 Templates: Ugly templates: 4. newline-only template parameter inconsistency
8966 Parser Functions: 1. Simple example
8975 Parser Functions: 2. Nested use (only outermost should be marked up)
8984 ### Pre-save transform tests
8987 pre-save transform: subst:
8993 This is a test template
8997 pre-save transform: normal template
9007 pre-save transform: nonexistent template
9011 {{thistemplatedoesnotexist}}
9013 {{thistemplatedoesnotexist}}
9018 pre-save transform: subst magic variables
9027 # This is bug 89, which I fixed. -- wtm
9029 pre-save transform: subst: templates with parameters
9033 {{subst:paramtest|param="something else"}}
9035 This is a test template with parameter "something else"
9041 <nowiki>'''not wiki'''</nowiki>
9045 pre-save transform: nowiki in subst (bug 1188)
9049 {{subst:nowikitest}}
9051 <nowiki>'''not wiki'''</nowiki>
9056 Template:commenttest
9058 This template has <!-- a comment --> in it.
9062 pre-save transform: comment in subst (bug 1936)
9066 {{subst:commenttest}}
9068 This template has <!-- a comment --> in it.
9072 pre-save transform: unclosed tag
9076 <nowiki>'''not wiki'''
9078 <nowiki>'''not wiki'''
9082 pre-save transform: mixed tag case
9086 <NOwiki>'''not wiki'''</noWIKI>
9088 <NOwiki>'''not wiki'''</noWIKI>
9092 pre-save transform: unclosed comment in <nowiki>
9096 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9098 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9101 # Leading @ in this template definition works around a limitation
9102 # in parsoid's parserTests which otherwise strips the <span> from the
9103 # result (confusing it for a template wrapper)
9107 @<span onmouseover="alert('crap')">Oh no</span>
9111 (confirming safety of fix for subst bug 1936)
9113 {{Template:dangerous}}
9115 <p>@<span>Oh no</span>
9120 pre-save transform: comment containing gallery (bug 5024)
9124 <!-- <gallery>data</gallery> -->
9126 <!-- <gallery>data</gallery> -->
9130 pre-save transform: comment containing extension
9134 <!-- <tag>data</tag> -->
9136 <!-- <tag>data</tag> -->
9140 pre-save transform: comment containing nowiki
9144 <!-- <nowiki>data</nowiki> -->
9146 <!-- <nowiki>data</nowiki> -->
9150 pre-save transform: <noinclude> in subst (bug 3298)
9160 pre-save transform: <onlyinclude> in subst (bug 3298)
9172 {{<includeonly>subst:</includeonly>Includes}}
9176 Template:SafeSubstTest
9178 {{<includeonly>safesubst:</includeonly>Includes}}
9182 bug 22297: safesubst: works during PST
9186 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
9192 bug 22297: safesubst: works during normal parse
9201 subst: does not work during normal parse
9205 <p>{{subst:Includes}}
9210 pre-save transform: context links ("pipe trick")
9214 [[Article (context)|]]
9217 [[Bar:Article (context)|]]
9218 [[:Bar:Article (context)|]]
9220 [[|Article (context)]]
9224 [[Article (context)|Article]]
9225 [[Bar:Article|Article]]
9226 [[:Bar:Article|Article]]
9227 [[Bar:Article (context)|Article]]
9228 [[:Bar:Article (context)|Article]]
9230 [[Article (context)]]
9231 [[Bar:X (Y) Z|X (Y) Z]]
9232 [[:Bar:X (Y) Z|X (Y) Z]]
9236 pre-save transform: context links ("pipe trick") with interwiki prefix
9240 [[interwiki:Article|]]
9241 [[:interwiki:Article|]]
9242 [[interwiki:Bar:Article|]]
9243 [[:interwiki:Bar:Article|]]
9245 [[interwiki:Article|Article]]
9246 [[:interwiki:Article|Article]]
9247 [[interwiki:Bar:Article|Bar:Article]]
9248 [[:interwiki:Bar:Article|Bar:Article]]
9252 pre-save transform: context links ("pipe trick") with parens in title
9254 pst title=[[Somearticle (context)]]
9258 [[Article (context)|Article]]
9262 pre-save transform: context links ("pipe trick") with comma in title
9264 pst title=[[Someplace, Somewhere]]
9267 [[Otherplace, Elsewhere|]]
9268 [[Otherplace, Elsewhere, Anywhere|]]
9270 [[Otherplace, Somewhere|Otherplace]]
9271 [[Otherplace, Elsewhere|Otherplace]]
9272 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
9276 pre-save transform: context links ("pipe trick") with parens and comma
9278 pst title=[[Someplace (IGNORED), Somewhere]]
9281 [[Otherplace (place), Elsewhere|]]
9283 [[Otherplace, Somewhere|Otherplace]]
9284 [[Otherplace (place), Elsewhere|Otherplace]]
9288 pre-save transform: context links ("pipe trick") with comma and parens
9290 pst title=[[Who, me? (context)]]
9293 [[Me, Myself, and I (1937 song)|]]
9295 [[Yes, you. (context)|Yes, you.]]
9296 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
9300 pre-save transform: context links ("pipe trick") with namespace
9302 pst title=[[Ns:Somearticle]]
9306 [[Ns:Article|Article]]
9310 pre-save transform: context links ("pipe trick") with namespace and parens
9312 pst title=[[Ns:Somearticle (context)]]
9316 [[Ns:Article (context)|Article]]
9320 pre-save transform: context links ("pipe trick") with namespace and comma
9322 pst title=[[Ns:Somearticle, Context, Whatever]]
9326 [[Ns:Article, Context, Whatever|Article]]
9330 pre-save transform: context links ("pipe trick") with namespace, comma and parens
9332 pst title=[[Ns:Somearticle, Context (context)]]
9336 [[Ns:Article (context)|Article]]
9340 pre-save transform: context links ("pipe trick") with namespace, parens and comma
9342 pst title=[[Ns:Somearticle (IGNORED), Context]]
9346 [[Ns:Article, Context|Article]]
9350 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
9354 [[Article(context)|]]
9355 [[Bar:Article(context)|]]
9356 [[:Bar:Article(context)|]]
9357 [[|Article(context)]]
9361 [[Article(context)|Article]]
9362 [[Bar:Article(context)|Article]]
9363 [[:Bar:Article(context)|Article]]
9364 [[Article(context)]]
9366 [[:Bar:X(Y)Z|X(Y)Z]]
9370 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
9374 [[Article (context)|]]
9375 [[Bar:Article (context)|]]
9376 [[:Bar:Article (context)|]]
9377 [[|Article (context)]]
9381 [[Article (context)|Article]]
9382 [[Bar:Article (context)|Article]]
9383 [[:Bar:Article (context)|Article]]
9384 [[Article (context)]]
9385 [[Bar:X (Y) Z|X (Y) Z]]
9386 [[:Bar:X (Y) Z|X (Y) Z]]
9390 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
9394 [[Article(context)|]]
9395 [[Bar:Article(context)|]]
9396 [[:Bar:Article(context)|]]
9397 [[|Article(context)]]
9401 [[Article(context)|Article]]
9402 [[Bar:Article(context)|Article]]
9403 [[:Bar:Article(context)|Article]]
9404 [[Article(context)]]
9406 [[:Bar:X(Y)Z|X(Y)Z]]
9410 pre-save transform: context links ("pipe trick") with commas (bug 21660)
9414 [[Article (context), context|]]
9415 [[Article (context),context|]]
9416 [[Bar:Article (context), context|]]
9417 [[Bar:Article (context),context|]]
9418 [[:Bar:Article (context), context|]]
9419 [[:Bar:Article (context),context|]]
9421 [[Article (context), context|Article]]
9422 [[Article (context),context|Article]]
9423 [[Bar:Article (context), context|Article]]
9424 [[Bar:Article (context),context|Article]]
9425 [[:Bar:Article (context), context|Article]]
9426 [[:Bar:Article (context),context|Article]]
9430 pre-save transform: trim trailing empty lines
9434 Empty lines are trimmed
9440 Empty lines are trimmed
9444 pre-save transform: Signature expansion
9449 * <noinclude>~~~</noinclude>
9450 * <includeonly>~~~</includeonly>
9451 * <onlyinclude>~~~</onlyinclude>
9453 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9454 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9455 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9456 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9461 pre-save transform: Signature expansion in nowiki tags (bug 93)
9467 <nowiki>~~~~</nowiki>
9469 <includeonly><nowiki>~~~~</nowiki></includeonly>
9471 <noinclude><nowiki>~~~~</nowiki></noinclude>
9473 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9475 {{subst:Foo}} shall be converted to FOO
9477 As well as inside noinclude/onlyinclude
9478 <noinclude>{{subst:Foo}}</noinclude>
9479 <onlyinclude>{{subst:Foo}}</onlyinclude>
9481 But not inside includeonly
9482 <includeonly>{{subst:Foo}}</includeonly>
9486 <nowiki>~~~~</nowiki>
9488 <includeonly><nowiki>~~~~</nowiki></includeonly>
9490 <noinclude><nowiki>~~~~</nowiki></noinclude>
9492 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9494 FOO shall be converted to FOO
9496 As well as inside noinclude/onlyinclude
9497 <noinclude>FOO</noinclude>
9498 <onlyinclude>FOO</onlyinclude>
9500 But not inside includeonly
9501 <includeonly>{{subst:Foo}}</includeonly>
9505 Parsoid: Recognize nowiki with trailing space in tags
9509 <nowiki ><div>[[foo]]</nowiki >
9517 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9524 Parsoid: Recognize nowiki with odd capitalization
9528 <noWikI ><div>[[foo]]</Nowiki >
9530 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9535 Parsoid: Escape nowiki with trailing space in tags
9539 <nowiki > foo </nowiki >
9545 <p><nowiki > foo </nowiki ></p>
9546 <p>a<nowiki />b</p>
9547 <p>c<nowiki/ >d</p>
9551 Parsoid: Escape weird noWikI capitalizations
9555 <noWikI > foo </NoWikI >
9557 <p><noWikI > foo </NoWikI ></p>
9561 ### Message transform tests
9564 message transform: magic variables
9574 message transform: should not transform wiki markup
9584 message transform: <noinclude> in transcluded template (bug 4926)
9594 message transform: <onlyinclude> in transcluded template (bug 4926)
9604 {{#special:}} page name, known
9608 {{#special:Recentchanges}}
9610 Special:RecentChanges
9614 {{#special:}} page name with subpage, known
9618 {{#special:Recentchanges/param}}
9620 Special:RecentChanges/param
9624 {{#special:}} page name, unknown
9628 {{#special:foobar nonexistent}}
9630 Special:Foobar nonexistent
9634 {{#speciale:}} page name, known
9638 {{#speciale:Recentchanges}}
9640 Special:RecentChanges
9644 {{#speciale:}} page name with subpage, known
9648 {{#speciale:Recentchanges/param}}
9650 Special:RecentChanges/param
9654 {{#speciale:}} page name, unknown
9658 {{#speciale:foobar nonexistent}}
9660 Special:Foobar_nonexistent
9666 ### For Parsoid-specific tests, see
9667 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9672 parsoid=wt2html,wt2wt,html2html
9674 [[Image:foobar.jpg]]
9676 <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>
9679 <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>
9684 Simple image (using File: namespace, now canonical)
9688 <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>
9691 <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>
9698 [[File:Foobar.jpg|right]]
9700 <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>
9703 <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>
9709 [[File:Foobar.jpg|right|Caption text]]
9711 <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>
9714 <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>
9718 Image with caption, bug 53312 #1
9720 [[File:Foobar.jpg|right|Caption page stuff]]
9722 <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>
9725 <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>
9729 Image with caption, bug 53312 #2
9731 [[File:Foobar.jpg|right|Caption page=]]
9733 <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>
9736 <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>
9740 Image with caption, bug 53312 #3
9742 [[File:Foobar.jpg|right|Caption page=stuff]]
9744 <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>
9747 <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>
9751 Allow empty links in image captions (Bug 60753)
9753 [[File:Foobar.jpg|thumb|Caption [[Link1]]
9758 <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>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>
9761 <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>
9763 <a rel="mw:WikiLink" href="./Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"},"dsr":[47,56,2,2]}'>Link2</a>
9764 </figcaption></figure>
9768 Link with empty target
9777 Image with empty attribute
9779 parsoid=wt2html,wt2wt,html2html
9781 [[File:Foobar.jpg|right||Caption text]]
9783 <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>
9786 <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>
9790 1. Block image with individual attributes from templates
9792 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
9794 <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>
9797 <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>
9801 2. Block Image with individual attributes from templates
9803 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
9805 <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>
9808 <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>
9812 3. Inline image with individual attributes from templates
9814 [[File:Foobar.jpg|{{echo|50px}}]]
9816 <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>
9819 <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>
9822 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
9823 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
9825 Image with multiple attributes from the same template
9827 [[File:Foobar.jpg|{{image_attribs}}]]
9829 <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>
9832 <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>
9836 Image with link tails
9838 123[[File:Foobar.jpg]]456
9839 123[[File:Foobar.jpg|right]]456
9840 123[[File:Foobar.jpg|thumb]]456
9842 <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
9844 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
9845 123<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
9848 <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>
9849 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
9850 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
9854 Image with multiple captions -- only last one is accepted
9856 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9858 <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>
9861 <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>
9865 Image with multiple widths -- use last
9867 [[File:Foobar.jpg|200px|300px|caption]]
9869 <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>
9872 <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>
9876 Image with multiple alignments -- use first (bug 48664)
9878 [[File:Foobar.jpg|thumb|left|right|center|caption]]
9880 [[File:Foobar.jpg|middle|text-top|caption]]
9882 <div class="thumb tleft"><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>caption</div></div></div>
9883 <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>
9886 <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>
9887 <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>
9891 Image with width attribute at different positions
9893 [[File:Foobar.jpg|200px|right|Caption]]
9894 [[File:Foobar.jpg|right|200px|Caption]]
9895 [[File:Foobar.jpg|right|Caption|200px]]
9897 <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>
9898 <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>
9899 <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>
9902 <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>
9903 <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>
9904 <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>
9907 # a sad bit of backward-compatibility
9909 Image with size specified with pxpx (bug 13500, 51628)
9911 parsoid=wt2html,wt2wt,html2html
9913 [[File:Foobar.jpg|20pxpx]]
9914 [[File:Foobar.jpg|200x20pxpx]]
9916 <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>
9917 <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>
9920 <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>
9924 Image with link parameter, wiki target
9926 [[File:Foobar.jpg|link=Main Page]]
9928 <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>
9931 <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>
9934 # parsoid bug 49293 (part 1)
9936 Image with link parameter, URL target
9938 [[File:Foobar.jpg|link=http://example.com/]]
9940 <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>
9943 <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>
9946 # parsoid bug 49293 (part 2)
9948 Image with link parameter, protocol-less URL target
9950 [[File:Foobar.jpg|link=//example.com/]]
9952 <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>
9955 <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>
9959 Image with link parameter, wgExternalLinkTarget
9961 [[Image:foobar.jpg|link=http://example.com/]]
9963 wgExternalLinkTarget='foobar'
9965 <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>
9970 Image with link parameter, wgNoFollowLinks set to false
9972 [[Image:foobar.jpg|link=http://example.com/]]
9974 wgNoFollowLinks=false
9976 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9981 Image with link parameter, wgNoFollowDomainExceptions
9983 [[Image:foobar.jpg|link=http://example.com/]]
9985 wgNoFollowDomainExceptions='example.com'
9987 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9992 Image with link parameter, wgExternalLinkTarget, unnamed parameter
9994 [[Image:foobar.jpg|link=http://example.com/|Title]]
9996 wgExternalLinkTarget='foobar'
9998 <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>
10003 Image with empty link parameter
10005 [[File:Foobar.jpg|link=]]
10007 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
10010 <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>
10014 Image with link parameter (wiki target) and unnamed parameter
10016 [[File:Foobar.jpg|link=Main_Page|Title]]
10018 <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>
10021 <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>
10025 Image with link parameter (URL target) and unnamed parameter
10027 [[File:Foobar.jpg|link=http://example.com/|Title]]
10029 <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>
10032 <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>
10036 Thumbnail image with link parameter
10038 parsoid=wt2html,wt2wt,html2html
10040 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
10042 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
10045 <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>
10049 Manually-specified thumbnail image
10051 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
10053 <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>
10056 <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>
10060 Manually-specified thumbnail image with explicit link to wiki page
10062 parsoid=wt2html,wt2wt,html2html
10064 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
10066 <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>
10069 <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>
10073 Manually-specified thumbnail image with explicit link to url
10075 parsoid=wt2html,wt2wt,html2html
10077 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
10079 <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>
10082 <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>
10086 Manually-specified thumbnail image with explicit no link
10088 parsoid=wt2html,wt2wt,html2html
10090 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
10092 <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>
10095 <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>
10099 Manually-specified thumbnail image with explicit link and alt text
10101 parsoid=wt2html,wt2wt,html2html
10103 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
10105 <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>
10108 <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>
10112 Image with frame and link
10114 parsoid=wt2html,wt2wt,html2html
10116 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
10118 <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>
10121 <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>
10125 Image with frame and link and explicit alt
10127 parsoid=wt2html,wt2wt,html2html
10129 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
10131 <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>
10134 <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>
10138 Image with wiki markup in implicit alt
10140 parsoid=wt2html,wt2wt,html2html
10142 [[Image:Foobar.jpg|testing '''bold''' in alt]]
10144 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
10146 <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>
10147 </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>
10150 <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>
10151 <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>
10154 ###################
10156 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
10157 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
10158 # Foobar has actual size of 1941x220
10159 # 1. Thumbs & frameless always reduce, can't be enlarged
10160 # 2. Framed images ignore width; always render at default size.
10161 # If given a height, they respect height but continue to ignore width.
10162 # 3. "Unspecified format" and border are the only types which can be
10166 Image: "unspecified format" and border enlarge
10168 parsoid=wt2html,wt2wt,html2html
10170 [[File:Foobar.jpg|2000px]]
10172 [[File:Foobar.jpg|border|2000px]]
10174 <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>
10175 </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>
10178 <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>
10179 <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>
10183 Image: "unspecified format" and border reduce
10185 parsoid=wt2html,wt2wt,html2html
10187 [[File:Foobar.jpg|1000px]]
10189 [[File:Foobar.jpg|border|1000px]]
10191 <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>
10192 </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>
10195 <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>
10196 <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>
10200 Image: thumbs reduce
10202 parsoid=wt2html,wt2wt,html2html
10204 [[File:Foobar.jpg|thumb|50px]]
10206 <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>
10209 <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>
10213 Image: thumbs can't be enlarged past original size
10215 parsoid=wt2html,wt2wt,html2html
10217 [[File:Foobar.jpg|thumb|2000px]]
10219 <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>
10222 <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>
10226 Image: frameless can reduce in size
10228 parsoid=wt2html,wt2wt,html2html
10230 [[File:Foobar.jpg|frameless|50px]]
10232 <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>
10235 <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>
10239 Image: frameless can't be enlarged past original size
10241 parsoid=wt2html,wt2wt,html2html
10243 [[File:Foobar.jpg|frameless|2000px]]
10245 <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>
10248 <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>
10252 Image: framed images ignore size if only width is given
10254 parsoid=wt2html,wt2wt,html2html
10256 [[File:Foobar.jpg|frame]]
10258 [[File:Foobar.jpg|frame|50px]]
10260 [[File:Foobar.jpg|frame|2000px]]
10262 <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>
10263 <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>
10264 <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>
10267 <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>
10271 Image: framed images respect size if given a height, but ignore width.
10273 [[File:Foobar.jpg|frame|50x50px]]
10275 <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>
10278 <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>
10281 ###################
10284 Link to image page- image page normally doesn't exists, hence edit link
10285 Add test with existing image page
10286 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
10290 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
10295 bug 18784 Link to non-existent image page with caption should use caption as link text
10297 [[:Image:test|caption]]
10299 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
10304 Frameless image caption with a free URL
10306 [[File:Foobar.jpg|http://example.com]]
10308 <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>
10311 <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>
10315 Thumbnail image caption with a free URL
10317 [[File:Foobar.jpg|thumb|http://example.com]]
10319 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
10322 <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>
10326 Thumbnail image caption with a free URL and explicit alt
10328 parsoid=wt2html,wt2wt,html2html
10330 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
10332 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
10335 <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>
10339 SVG thumbnails with no language set
10342 [[File:Foobar.svg|thumb|caption]]
10344 <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>
10349 SVG thumbnails with language de
10352 [[File:Foobar.svg|thumb|caption|lang=de]]
10354 <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>
10359 SVG thumbnails with invalid language code
10362 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
10364 <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>
10369 BUG 1887: A ISBN with a thumbnail
10371 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
10373 <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>
10378 BUG 1887: A RFC with a thumbnail
10380 [[Image:foobar.jpg|thumb|This is RFC 12354]]
10382 <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>
10387 BUG 1887: A mailto link with a thumbnail
10389 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
10391 <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>
10395 # Pending resolution to bug 368
10397 BUG 648: Frameless image caption with a link
10399 [[Image:foobar.jpg|text with a [[link]] in it]]
10401 <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>
10406 BUG 648: Frameless image caption with a link (suffix)
10408 [[Image:foobar.jpg|text with a [[link]]foo in it]]
10410 <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>
10415 BUG 648: Frameless image caption with an interwiki link
10417 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
10419 <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>
10424 BUG 648: Frameless image caption with a piped interwiki link
10426 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
10428 <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>
10433 Escape HTML special chars in image alt text
10435 [[Image:foobar.jpg|& < > "]]
10437 <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>
10442 BUG 499: Alt text should have Ӓ, not &1234;
10444 [[Image:foobar.jpg|♀]]
10446 <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>
10451 Broken image caption with link
10453 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
10455 <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.
10460 Image caption containing another image
10462 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
10464 <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>
10469 Image caption containing a newline
10471 [[Image:Foobar.jpg|This
10474 <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>
10479 Parsoid: Image caption containing leading space
10480 (The leading space should not trigger nowiki escaping in wt2wt mode)
10482 [[Image:Foobar.jpg|thumb| bar]]
10484 <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>
10489 Images: caption containing a table
10491 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
10497 and some more text.]]
10499 <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>
10502 <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
10505 <tr><th>Foo </th><th>Bar</th></tr>
10508 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
10512 Bug 3090: External links other than http: in image captions
10514 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
10516 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This 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>
10519 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="23" width="200"/></a><figcaption>This 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>
10525 parsoid=wt2html,wt2wt,html2html
10527 [[Image:foobar.jpg|a|class=b]]
10529 <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>
10532 <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>
10536 Localized image handling (1).
10538 parsoid=wt2html,wt2wt,html2html
10541 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10543 <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>
10546 <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>
10550 Localized image handling (2).
10552 parsoid=wt2html,wt2wt,html2html
10555 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10557 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
10560 <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>
10564 "border", "frameless" and "class" attributes on an image.
10566 parsoid=wt2html,wt2wt,html2html
10568 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
10570 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a>
10573 <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>
10576 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
10578 Invalid image attributes (bug 62500)
10580 parsoid=wt2html,wt2wt,html2html
10582 [[File:Foobar.jpg|thumb|float|left|caption]]
10584 [[File:Foobar.jpg|thumb|righ|caption]]
10586 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
10588 <div class="thumb tleft"><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>caption</div></div></div>
10589 <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>caption</div></div></div>
10590 <div class="thumb tleft"><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>caption</div></div></div>
10593 <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>
10599 #REDIRECT [[File:Barfoo.jpg]]
10605 [[Image:Barfoo.jpg]]
10607 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
10612 Missing image with uploads disabled
10616 [[Image:Foobaz.jpg]]
10618 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
10622 # Parsoid-specific testing for images
10623 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10624 # Currently imperfect due to a flaw in the Parsoid testrunner
10626 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
10630 Parsoid-specific image handling - simple image with size and middle alignment
10632 [[File:Foobar.jpg|middle|50px]]
10634 <p><span class="mw-valign-middle" typeof="mw:Image">
10635 <a href="File:Foobar.jpg">
10636 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10643 Parsoid-specific image handling - simple image with size, middle alignment,
10644 non-standard namespace alias
10646 parsoid=wt2wt,wt2html,html2html
10648 [[Image:Foobar.jpg|middle|50px]]
10650 <p><span class="mw-valign-middle" typeof="mw:Image">
10651 <a href="File:Foobar.jpg">
10652 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10659 Parsoid-specific image handling - simple image with size and middle alignment
10662 [[File:Foobar.jpg|50px|middle]]
10664 <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>
10668 Parsoid-specific image handling - simple image with size and middle alignment
10669 and non-standard namespace name
10671 parsoid=wt2html,wt2wt,html2html
10673 [[Image:Foobar.jpg|50px|middle]]
10675 <p><span class="mw-valign-middle" typeof="mw:Image">
10676 <a href="File:Foobar.jpg">
10677 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10684 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10686 [[File:Foobar.jpg|500x10px|baseline|caption]]
10688 <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>
10692 Parsoid-specific image handling - simple image with border and size spec
10694 [[File:Foobar.jpg|50px|border|caption]]
10696 <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>
10700 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10702 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
10704 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10705 <a href="File:Foobar.jpg">
10706 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
10708 <figcaption>caption content</figcaption>
10713 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10716 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
10718 <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>
10722 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10724 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
10726 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10727 <a href="File:Foobar.jpg">
10728 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10730 <figcaption>caption</figcaption>
10735 Parsoid-specific image handling - thumbnail with specific size, halign,
10736 valign, and caption (existing content)
10738 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10740 <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>
10744 Parsoid-specific image handling - framed image with specific size and caption
10746 [[Image:Foobar.jpg|frame|500x50px|caption]]
10748 <figure typeof="mw:Image/Frame">
10749 <a href="File:Foobar.jpg">
10750 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10752 <figcaption>caption</figcaption>
10757 Parsoid-specific image handling - framed image with specific size and caption
10760 [[File:Foobar.jpg|442x50px|frame|caption]]
10762 <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>
10766 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10768 [[Image:Foobar.jpg|left|baseline|frame|500x50px|caption]]
10770 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10771 <a href="File:Foobar.jpg">
10772 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10774 <figcaption>caption</figcaption>
10779 Parsoid-specific image handling - framed image with specific size, halign,
10780 valign, and caption (existing content)
10782 [[File:Foobar.jpg|442x50px|frame|left|baseline|caption]]
10784 <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>
10788 Parsoid-specific image handling - frameless image with specific size, border, and caption
10790 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
10792 <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>
10796 Parsoid-specific image handling - simple image with a formatted caption
10798 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10800 <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>"}'>
10801 <a href="File:Foobar.jpg">
10802 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10807 Parsoid-specific image handling - caption with a template in it
10809 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
10811 <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>
10815 Parsoid-specific image handling - caption with unbalanced tags in it
10817 parsoid=wt2html,wt2wt,html2html
10820 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
10824 <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>
10829 Parsoid-specific image handling - empty caption
10831 [[File:Foobar.jpg|thumb|]]
10833 <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>
10837 Parsoid-specific image handling - whitespace caption
10839 [[File:Foobar.jpg|thumb| ]]
10841 <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>
10845 Parsoid-specific image handling - lang option
10848 [[File:Foobar.svg|lang=de|caption]]
10852 <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>
10861 Subpage test/subpage
10869 subpage title=[[Subpage test]]
10873 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10878 Subpage noslash link
10880 subpage title=[[Subpage test]]
10884 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10888 # TODO: make this PHP-parser compatible!
10890 Relative subpage noslash link
10892 parsoid=wt2wt,wt2html,html2html
10893 subpage title=[[Subpage test/1/2/3/4]]
10899 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10900 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10903 # TODO: make this PHP-parser compatible!
10905 Parsoid: dot-slash prefixed wikilinks
10907 parsoid=wt2wt,wt2html,html2html
10915 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10916 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10917 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10925 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10930 BUG 561: {{/Subpage}}
10932 subpage title=[[Page]]
10936 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
10944 Category:MediaWiki User's Guide
10952 [[:Category:MediaWiki User's Guide]]
10954 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
10963 [[Category:MediaWiki User's Guide]]
10965 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10969 PAGESINCATEGORY invalid title fatal (r33546 fix)
10971 {{PAGESINCATEGORY:<bogus>}}
10978 Category with different sort key
10982 [[Category:MediaWiki User's Guide|Foo]]
10984 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10988 Category with identical sort key
10992 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10994 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10998 Category with empty sort key
11003 [[Category:MediaWiki User's Guide|]]
11005 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11009 Category with empty sort key and parentheses
11014 [[Category:Foo (bar)|]]
11016 [[Category:Foo (bar)|Foo]]
11020 Category with link tail
11025 123[[Category:Foo]]456
11027 123[[Category:Foo]]456
11031 Category with template
11036 [[Category:{{echo|Foo}}]]
11038 [[Category:{{echo|Foo}}]]
11042 Category with template in sort key
11047 [[Category:Foo|{{echo|Bar}}]]
11049 [[Category:Foo|{{echo|Bar}}]]
11053 Category with template in sort key and title
11058 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11060 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11064 Category / paragraph interactions
11066 Foo [[Category:Baz]] Bar
11068 Foo [[Category:Baz]]
11076 [[Category:Baz]] Bar
11089 {{echo|[[Category:Baz]]}}
11104 Parsoid: Serialize link to category page with colon escape
11110 [[:Category:Foo|Bar]]
11113 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
11114 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
11119 Parsoid: Link prefix/suffixes aren't applied to category links
11121 parsoid=wt2html,wt2wt,html2html
11126 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
11130 Parsoid: Serialize link to file page with colon escape
11136 [[:File:Foo.png|Bar]]
11139 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
11140 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
11145 Parsoid: Serialize a genuine category link without colon escape
11150 [[Category:Foo|Bar]]
11152 <link rel="mw:PageProp/Category" href="Category:Foo">
11153 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
11157 Parsoid: Defaultsort
11161 {{DEFAULTSORT:Foo}}
11163 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
11167 ### Inter-language links
11170 Inter-language links
11176 [[zh:食品]]
11178 es:Alimento fr:Nourriture zh:食品
11182 Duplicate interlanguage links (bug 24502)
11198 Basic section headings
11205 ===Smaller headline===
11208 <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>
11211 <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>
11214 <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>
11220 Section headings with TOC
11223 === Subheadline 1 ===
11224 ===== Skipping a level =====
11225 ====== Skipping a level ======
11229 ===Another headline===
11231 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11233 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
11235 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
11237 <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>
11239 <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>
11246 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
11248 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
11254 <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>
11255 <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>
11256 <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>
11257 <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>
11258 <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>
11261 <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>
11265 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
11267 Handling of sections up to level 6 and beyond
11270 == Level 2 Heading==
11271 === Level 3 Heading===
11272 ==== Level 4 Heading====
11273 ===== Level 5 Heading=====
11274 ====== Level 6 Heading======
11275 ======= Level 7 Heading=======
11276 ======== Level 8 Heading========
11277 ========= Level 9 Heading=========
11278 ========== Level 10 Heading==========
11280 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11282 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
11284 <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>
11286 <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>
11288 <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>
11290 <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>
11292 <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>
11293 <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>
11294 <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>
11295 <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>
11296 <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>
11310 <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>
11311 <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>
11312 <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>
11313 <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>
11314 <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>
11315 <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>
11316 <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>
11317 <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>
11318 <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>
11319 <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>
11324 TOC regression (bug 9764)
11328 ==== title 1.1.1 ====
11333 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11335 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11337 <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>
11339 <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>
11342 <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>
11345 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11347 <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>
11353 <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>
11354 <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>
11355 <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>
11356 <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>
11357 <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>
11358 <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>
11363 TOC with wgMaxTocLevel=3 (bug 6204)
11369 ==== title 1.1.1 ====
11374 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11376 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11378 <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>
11379 <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>
11382 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11384 <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>
11390 <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>
11391 <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>
11392 <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>
11393 <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>
11394 <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>
11395 <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>
11400 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
11406 ====Section 1.1.1====
11407 ====Section 1.1.1.1====
11410 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11412 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
11414 <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>
11417 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
11421 <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>
11422 <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>
11423 <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>
11424 <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>
11425 <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>
11431 Resolving duplicate section names
11436 <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>
11437 <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>
11442 Resolving duplicate section names with differing case (bug 10721)
11447 <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>
11448 <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 Template with sections, __NOTOC__
11467 <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>
11468 <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>
11469 <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>
11470 <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>
11475 __NOEDITSECTION__ keyword
11481 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
11482 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
11487 Link inside a section heading
11489 ==Section with a [[Main Page|link]] in it==
11491 <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>
11496 TOC regression (bug 12077)
11503 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11505 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11507 <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>
11510 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
11514 <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>
11515 <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>
11516 <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>
11521 BUG 1219 URL next to image (good)
11523 http://example.com [[Image:foobar.jpg]]
11525 <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>
11530 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
11533 The line above must have a trailing space!
11536 But just in case it doesn't...
11538 <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>
11539 <p>The line above must have a trailing space!
11541 <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>
11542 <p>But just in case it doesn't...
11547 Header with special characters (bug 25462)
11549 The tooltips shall not show entities to the user (ie. be double escaped)
11566 <p>The tooltips shall not show entities to the user (ie. be double escaped)
11568 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11570 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
11571 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
11572 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
11573 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
11574 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
11578 <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>
11581 <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>
11584 <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>
11587 <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>
11590 <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>
11596 Headers with excess '=' characters
11597 (Are similar tests necessary beyond the 1st level?)
11601 =''italic'' heading==
11602 ==''italic'' heading=
11604 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11606 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
11607 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
11608 <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>
11609 <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>
11613 <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>
11614 <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>
11615 <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>
11616 <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>
11621 HTML headers vs TOC (bug 23393)
11622 (__NOEDITSECTION__ for clearer output, doesn't matter here)
11634 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11636 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
11638 <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>
11639 <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>
11642 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
11644 <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>
11645 <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>
11651 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
11652 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
11653 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
11654 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
11655 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
11656 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
11661 BUG 1219 URL next to image (broken)
11663 http://example.com[[Image:foobar.jpg]]
11665 <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>
11670 Bug 1186 news: in the middle of text
11672 http://en.wikinews.org/wiki/Wikinews:Workplace
11674 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
11680 Namespaced link must have a title
11689 Namespaced link must have a title (bad fragment version)
11691 [[Project:#fragment]]
11693 <p>[[Project:#fragment]]
11699 ### HTML tags and HTML attributes
11703 div with no attributes
11705 <div>HTML rocks</div>
11707 <div>HTML rocks</div>
11712 div with double-quoted attribute
11714 <div id="rock">HTML rocks</div>
11716 <div id="rock">HTML rocks</div>
11721 div with single-quoted attribute
11723 <div id='rock'>HTML rocks</div>
11725 <div id="rock">HTML rocks</div>
11730 div with unquoted attribute
11732 <div id=rock>HTML rocks</div>
11734 <div id="rock">HTML rocks</div>
11739 div with illegal double attributes
11741 <div id="a" id="b">HTML rocks</div>
11743 <div id="b">HTML rocks</div>
11747 # FIXME: produce empty string instead of "class" in the PHP parser, following
11750 div with empty attribute value, space before equals
11754 <div class =>HTML rocks</div>
11756 <div class="">HTML rocks</div>
11760 # The PHP parser escapes the opening brace to { for some reason, so
11761 # disabled this test for it.
11763 div with braces in attribute value
11767 <div title="{}">Foo</div>
11769 <div title="{}">Foo</div>
11772 # This it very inconsistent in the PHP parser: it returns
11773 # class="class" if there is a space between the name and the equal sign (see
11774 # 'div with empty attribute value, space before equals'), but strips the
11775 # attribute completely if the space is missing. We hope that not much content
11776 # depends on this, so are implementing the behavior below in Parsoid for
11777 # consistencies' sake. Disabled for the PHP parser.
11778 # FIXME: fix this behavior in the PHP parser?
11780 div with empty attribute value, no space before equals
11784 <div class=>HTML rocks</div>
11786 <div class="">HTML rocks</div>
11791 HTML multiple attributes correction
11793 <p class="error" class="awesome">Awesome!</p>
11795 <p class="awesome">Awesome!</p>
11800 Table multiple attributes correction
11803 !+ class="error" class="awesome"| status
11808 <th class="awesome"> status
11816 <DIV ID="x">HTML ROCKS</DIV>
11818 <div id="x">HTML ROCKS</div>
11823 Non-ASCII pseudo-tags are rendered as text
11832 Pseudo-tag with URL 'name' renders as url link
11834 <http://example.com/>
11836 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11841 text with amp in the middle of nowhere
11845 <p>Remember AT&T?
11850 text with character entity: eacute
11852 I always thought é was a cute letter.
11854 <p>I always thought é was a cute letter.
11859 text with entity-escaped character entity-like string: eacute
11861 I always thought &eacute; was a cute letter.
11863 <p>I always thought &eacute; was a cute letter.
11868 text with undefined character entity: xacute
11870 I always thought &xacute; was a cute letter.
11872 <p>I always thought &xacute; was a cute letter.
11876 # TODO: generalize to PHP parser?
11882 <data value="5">five</data>
11883 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11884 <mark>This highlighted text</mark>
11886 <p><data value="5">five</data>
11887 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11888 <mark>This highlighted text</mark></p>
11892 HTML tag with leading space is parsed as text
11896 <p>< div>foo< /div>
11901 ### Nesting tests (see bug 41545, 50604, 51081)
11904 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11905 # Note that html2wt is considerably more difficult if we use <b> in
11906 # the test case, instead of <big>
11908 Ensure that HTML adoption agency algorithm is properly implemented.
11910 <big>X<big>Y</big>Z</big>
11912 <p><big>X<big>Y</big>Z</big>
11916 # This was bug 41545 in the PHP parser.
11920 <kbd>X<kbd>Y</kbd>Z</kbd>
11922 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11926 # The following cases were bug 51081 in the PHP parser.
11927 # Note that there are some other nestable tags (b, i, etc) which are
11928 # not covered; see bug 51081 for discussion.
11932 <em>X<em>Y</em>Z</em>
11934 <p><em>X<em>Y</em>Z</em>
11939 Nesting of <strong>
11941 <strong>X<strong>Y</strong>Z</strong>
11943 <p><strong>X<strong>Y</strong>Z</strong>
11952 <p><q>X<q>Y</q>Z</q>
11959 <ruby>X<ruby>Y</ruby>Z</ruby>
11961 <p><ruby>X<ruby>Y</ruby>Z</ruby>
11968 <bdo>X<bdo>Y</bdo>Z</bdo>
11970 <p><bdo>X<bdo>Y</bdo>Z</bdo>
11982 [[Media:Foobar.jpg]]
11984 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
11989 Media link with text
11991 [[Media:Foobar.jpg|A neat file to look at]]
11993 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
11997 # FIXME: this is still bad HTML tag nesting
11999 Media link with nasty text
12000 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
12002 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
12004 <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>
12009 Media link to nonexistent file (bug 1702)
12011 [[Media:No such.jpg]]
12013 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
12018 Image link to nonexistent file (bug 1850 - good)
12020 [[Image:No such.jpg]]
12022 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
12027 :Image link to nonexistent file (bug 1850 - bad)
12029 [[:Image:No such.jpg]]
12031 <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>
12038 Character reference normalization in link text (bug 1938)
12040 [[Main Page|this&that]]
12042 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
12049 Test for unicode normalization
12051 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
12055 (bug 19451) Links should refer to the normalized form.
12063 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12064 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12065 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12066 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12067 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12072 Empty attribute crash test (bug 2067)
12074 <font color="">foo</font>
12076 <p><font color="">foo</font>
12081 Empty attribute crash test single-quotes (bug 2067)
12083 <font color=''>foo</font>
12085 <p><font color="">foo</font>
12090 Attribute test: equals, then nothing
12092 <font color=>foo</font>
12094 <p><font>foo</font>
12099 Attribute test: unquoted value
12101 <font color=x>foo</font>
12103 <p><font color="x">foo</font>
12108 Attribute test: unquoted but illegal value (hash)
12110 <font color=#x>foo</font>
12112 <p><font color="#x">foo</font>
12117 Attribute test: no value
12119 <font color>foo</font>
12121 <p><font color="color">foo</font>
12126 Bug 2095: link with three closing brackets
12130 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
12135 Bug 2095: link with pipe and three closing brackets
12137 [[Main Page|link]]]
12139 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
12144 Bug 2095: link with pipe and three closing brackets, version 2
12146 [[Main Page|[http://example.com/]]]
12148 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
12158 Template:Dangerous attribute
12160 " onmouseover="alert(document.cookie)
12164 Template:Dangerous style attribute
12166 border-size: expression(alert(document.cookie))
12172 <div style="float: right; {{{1}}}">Magic div</div>
12176 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
12178 <div title="{{test}}"></div>
12180 <div title="This is a test template"></div>
12185 Bug 2304: HTML attribute safety (dangerous template; 2309)
12187 <div title="{{dangerous attribute}}"></div>
12189 <div title=""></div>
12194 Bug 2304: HTML attribute safety (dangerous style template; 2309)
12196 <div style="{{dangerous style attribute}}"></div>
12198 <div style="/* insecure input */"></div>
12203 Bug 2304: HTML attribute safety (safe parameter; 2309)
12205 {{div style|width: 200px}}
12207 <div style="float: right; width: 200px">Magic div</div>
12212 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
12214 {{div style|width: expression(alert(document.cookie))}}
12216 <div style="/* insecure input */">Magic div</div>
12221 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
12223 {{div style|"><script>alert(document.cookie)</script>}}
12225 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12230 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
12232 {{div style|" ><script>alert(document.cookie)</script>}}
12234 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12239 Bug 2304: HTML attribute safety (link)
12241 <div title="[[Main Page]]"></div>
12243 <div title="[[Main Page]]"></div>
12248 Bug 2304: HTML attribute safety (italics)
12250 <div title="''foobar''"></div>
12252 <div title="''foobar''"></div>
12257 Bug 2304: HTML attribute safety (bold)
12259 <div title="'''foobar'''"></div>
12261 <div title="'''foobar'''"></div>
12267 Bug 2304: HTML attribute safety (ISBN)
12269 <div title="ISBN 1234567890"></div>
12271 <div title="ISBN 1234567890"></div>
12276 Bug 2304: HTML attribute safety (RFC)
12278 <div title="RFC 1234"></div>
12280 <div title="RFC 1234"></div>
12285 Bug 2304: HTML attribute safety (PMID)
12287 <div title="PMID 1234567890"></div>
12289 <div title="PMID 1234567890"></div>
12294 Bug 2304: HTML attribute safety (web link)
12296 <div title="http://example.com/"></div>
12298 <div title="http://example.com/"></div>
12303 Bug 2304: HTML attribute safety (named web link)
12305 <div title="[http://example.com/ link]"></div>
12307 <div title="[http://example.com/ link]"></div>
12312 Bug 3244: HTML attribute safety (extension; safe)
12314 <div style="<nowiki>background:blue</nowiki>"></div>
12316 <div style="background:blue"></div>
12321 Bug 3244: HTML attribute safety (extension; unsafe)
12323 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
12325 <div style="/* insecure input */"></div>
12329 # More MSIE fun discovered by Tom Gilder
12332 MSIE CSS safety test: spurious slash
12334 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
12336 <div style="/* insecure input */">evil</div>
12341 MSIE CSS safety test: hex code
12343 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
12345 <div style="/* insecure input */">evil</div>
12350 MSIE CSS safety test: comment in url
12352 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
12354 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
12359 MSIE CSS safety test: comment in expression
12361 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
12363 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
12368 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
12370 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
12372 <p style="/* invalid control char */">A</p>
12377 MSIE 6 CSS safety test: Fullwidth (bug 55332)
12379 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
12380 <div style="top:EXPRESSION(alert())">B</div>
12382 <p style="/* insecure input */">A</p>
12383 <div style="/* insecure input */">B</div>
12388 MSIE 6 CSS safety test: IPA extensions (bug 55332)
12390 <div style="background-image:uʀʟ(javascript:alert())">A</div>
12391 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
12393 <div style="/* insecure input */">A</div>
12394 <p style="/* insecure input */">B</p>
12399 MSIE 6 CSS safety test: sup/sub script (bug 55332)
12401 <div style="background-image:url⁽javascript:alert())">A</div>
12402 <div style="background-image:url₍javascript:alert())">B</div>
12403 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
12405 <div style="/* insecure input */">A</div>
12406 <div style="/* insecure input */">B</div>
12407 <p style="/* insecure input */">C</p>
12415 title="data:text/html,<img src=1 onerror=alert(1)>"
12416 style="-o-link:attr(title);-o-link-source:current">X</div>
12418 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
12423 MSIE 6 CSS safety test: Repetition markers (bug 55332)
12425 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
12426 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
12427 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
12428 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
12429 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
12430 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
12431 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
12433 <p style="/* insecure input */">A</p>
12434 <p style="/* insecure input */">B</p>
12435 <p style="/* insecure input */">C</p>
12436 <p style="/* insecure input */">D</p>
12437 <p style="/* insecure input */">E</p>
12438 <p style="/* insecure input */">F</p>
12439 <p style="/* insecure input */">G</p>
12444 Table attribute legitimate extension
12447 !+ style="<nowiki>color:blue</nowiki>"| status
12452 <th style="color:blue"> status
12458 Table attribute safety
12461 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
12466 <th style="/* insecure input */"> status
12472 CSS line continuation 1
12474 <div style="background-image: u\ rl(test.jpg);"></div>
12476 <div style="/* insecure input */"></div>
12481 CSS line continuation 2
12483 <div style="background-image: u\ rl(test.jpg); "></div>
12485 <div style="/* insecure input */"></div>
12496 Expansion of multi-line templates in attribute values (bug 6255)
12498 <div style="background: {{identity|#00FF00}}">-</div>
12500 <div style="background: #00FF00">-</div>
12506 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
12508 <div style="background:
12511 <div style="background: #00FF00">-</div>
12516 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
12518 <div style="background: #00FF00">-</div>
12520 <div style="background: #00FF00">-</div>
12525 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
12528 Parser hook: empty input
12541 Parser hook: empty input using terminated empty elements
12554 Parser hook: empty input using terminated empty elements (space before)
12567 Parser hook: basic input
12581 Parser hook: case insensitive
12595 Parser hook: case insensitive, redux
12608 Parser hook: nested tags
12612 <tag><tag></tag></tag>
12623 Parser hook: basic arguments
12625 <tag width=200 height = "100" depth = '50' square></tag>
12633 'square' => 'square',
12640 Parser hook: argument containing a forward slash (bug 5344)
12642 <tag filename='/tmp/bla'></tag>
12647 'filename' => '/tmp/bla',
12654 Parser hook: empty input using terminated empty elements (bug 2374)
12667 # </tag> should be output literally since there is no matching tag that begins it
12669 Parser hook: basic arguments using terminated empty elements (bug 2374)
12671 <tag width=200 height = "100" depth = '50' square/>
12681 'square' => 'square',
12690 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
12694 Parser hook: static parser hook not inside a comment
12696 <statictag>hello, world</statictag>
12697 <statictag action=flush/>
12705 Parser hook: static parser hook inside a comment
12707 <!-- <statictag>hello, world</statictag> -->
12708 <statictag action=flush/>
12714 # Nested template calls; this case was broken by Parser.php rev 1.506,
12718 Template:One-parameter
12720 (My parameter is: {{{1}}})
12724 Template:Map-one-parameter
12726 {{{{{1}}}|{{{2}}}}}
12730 Nested template calls
12732 {{Map-one-parameter|One-parameter|param}}
12734 <p>(My parameter is: param)
12743 Sanitizer: Closing of open tags
12745 <s></s><table></table>
12747 <s></s><table></table>
12752 Sanitizer: Closing of open but not closed tags
12761 Sanitizer: Closing of closed but not open tags
12770 Sanitizer: Closing of closed but not open table tags
12772 Table not started</td></tr></table>
12774 <p>Table not started</td></tr></table>
12779 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
12781 <span id="æ: v">byte</span>[[#æ: v|backlink]]
12783 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
12788 Sanitizer: Validating the contents of the id attribute (bug 4515)
12794 Something, but definitely not <br id="9" />...
12798 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
12802 <br id="foo" /><br id="foo" />
12804 Something need to be done. foo-2 ?
12808 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
12811 <meta itemprop="hello" content="world">
12812 <meta http-equiv="refresh" content="5">
12813 <meta itemprop="hello" http-equiv="refresh" content="5">
12814 <link itemprop="hello" href="{{SERVER}}">
12815 <link rel="stylesheet" href="{{SERVER}}">
12816 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
12819 <div itemscope="itemscope">
12820 <p> <meta itemprop="hello" content="world" />
12821 <meta http-equiv="refresh" content="5">
12822 <meta itemprop="hello" content="5" />
12824 <link itemprop="hello" href="http://example.org" />
12825 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
12826 <link itemprop="hello" href="http://example.org" />
12832 Language converter: output gets cut off unexpectedly (bug 5757)
12836 this bit is safe: }-
12838 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12840 then we get cut off here: }-
12842 all additional text is vanished
12844 <p>this bit is safe: }-
12845 </p><p>but if we add a conversion instance: xxx
12846 </p><p>then we get cut off here: }-
12847 </p><p>all additional text is vanished
12852 Self closed html pairs (bug 5487)
12855 <center><font id="bug" />Centered text</center>
12856 <div><font id="bug2" />In div text</div>
12858 <center><font id="bug" />Centered text</center>
12859 <div><font id="bug2" />In div text</div>
12868 Punctuation: nbsp before exclamation
12872 <p>C'est grave !
12877 Punctuation: CSS !important (bug 11874)
12879 <div style="width:50% !important">important</div>
12881 <div style="width:50% !important">important</div>
12886 Punctuation: CSS ! important (bug 11874; with space after)
12888 <div style="width:50% ! important">important</div>
12890 <div style="width:50% ! important">important</div>
12896 HTML bullet list, closed tags (bug 5497)
12911 HTML bullet list, unclosed tags (bug 5497)
12930 HTML ordered list, closed tags (bug 5497)
12945 HTML ordered list, unclosed tags (bug 5497)
12964 HTML nested bullet list, closed tags (bug 5497)
12989 HTML nested bullet list, open tags (bug 5497)
13018 HTML nested ordered list, closed tags (bug 5497)
13043 HTML nested ordered list, open tags (bug 5497)
13072 HTML ordered list item with parameters oddity
13074 <ol><li id="fragment">One</li>
13077 <ol><li id="fragment">One</li>
13083 bug 5918: autonumbering
13085 [http://first/] [http://second] [ftp://ftp]
13089 [mailto:enclosed@mail.tld With target]
13091 [mailto:enclosed@mail.tld]
13093 mailto:inline@mail.tld
13095 <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>
13096 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
13097 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
13098 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
13099 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
13105 # Security and HTML correctness
13106 # From Nick Jenkins' fuzz testing
13110 Fuzz testing: Parser13
13125 Fuzz testing: Parser14
13130 <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>
13131 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13133 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
13141 Fuzz testing: Parser14-table
13146 <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>
13147 <table style="__TOC__">
13153 # Known to produce bogus xml (extra </td>)
13155 Fuzz testing: Parser16
13175 Fuzz testing: Parser21
13178 ! irc://{{ftp://a" onmouseover="alert('hello world');"
13183 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
13193 Fuzz testing: Parser22
13195 http://===r:::https://b
13199 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
13207 # Known to produce bad XML for now
13209 Fuzz testing: Parser24
13216 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
13217 <br style="onmouseover='alert(document.cookie);' " />
13219 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13224 <u class="|">}}}} >
13225 <br style="onmouseover='alert(document.cookie);'" />
13227 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13236 # Note: the current result listed for this is not what the original one was,
13237 # but the original bug was JavaScript injection, which is fixed in any case.
13238 # It's not clear that the original result listed was any more correct than the
13239 # current one. Original result:
13242 # <li class="||">
13243 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13245 Fuzz testing: Parser25 (bug 6055)
13251 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
13253 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13258 Fuzz testing: URL adjacent extension (with space, clean)
13261 http://example.com <nowiki>junk</nowiki>
13263 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
13268 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
13271 http://example.com<nowiki>junk</nowiki>
13273 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
13278 Fuzz testing: URL adjacent extension (no space, dirty; pre)
13281 http://example.com<pre>junk</pre>
13283 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
13288 Fuzz testing: image with bogus manual thumbnail
13290 [[Image:foobar.jpg|thumbnail= ]]
13292 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
13295 <meta typeof="mw:Placeholder" data-parsoid='{"src":"[[Image:foobar.jpg|thumbnail= ]]","optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,null,null]}'/>
13299 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
13301 <pre dir=" "></pre>
13303 <pre dir=" "></pre>
13308 Parsing optional HTML elements (Bug 6171)
13313 <td> Some tabular data</td>
13314 <td> More tabular data ...
13315 <td> And yet som tabular data</td>
13321 <td> Some tabular data</td>
13322 <td> More tabular data ...
13323 </td><td> And yet som tabular data</td>
13330 Correct handling of <td>, <tr> (Bug 6171)
13335 <td> Some tabular data</td>
13336 <td> More tabular data ...</td>
13337 <td> And yet som tabular data</td>
13343 <td> Some tabular data</td>
13344 <td> More tabular data ...</td>
13345 <td> And yet som tabular data</td>
13353 Parsing crashing regression (fr:JavaScript)
13357 <p></body></x>
13362 Inline wiki vs wiki block nesting
13368 <p><b>Bold paragraph</b>
13369 </p><p>New wiki paragraph
13374 Inline HTML vs wiki block nesting
13382 <p><b>Bold paragraph</b>
13383 </p><p>New wiki paragraph
13387 # Original result was this:
13388 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
13390 # While that might be marginally more intuitive, maybe, the six-apostrophe
13391 # construct is clearly pathological and the result stated here (which is what
13392 # the parser actually does) is about as reasonable as anything.
13394 Mixing markup for italics and bold
13397 '''bold''''''bold''bolditalics'''''
13399 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
13407 Article for special page transclusion test
13411 Special page transclusion
13414 {{Special:Prefixindex/Xyzzyx}}
13416 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13421 Special page transclusion twice (bug 5021)
13424 {{Special:Prefixindex/Xyzzyx}}
13425 {{Special:Prefixindex/Xyzzyx}}
13427 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13428 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13433 Transclusion of default MediaWiki message
13435 {{MediaWiki:Mainpage}}
13442 Transclusion of nonexistent MediaWiki message
13444 {{MediaWiki:Mainpagexxx}}
13446 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
13451 Transclusion of MediaWiki message with underscore
13453 {{MediaWiki:history_short}}
13460 Transclusion of MediaWiki message with space
13462 {{MediaWiki:history short}}
13469 Invalid header with following text
13479 Section extraction test (section 0)
13499 Section extraction test (section 1)
13521 Section extraction test (section 2)
13542 Section extraction test (section 3)
13562 Section extraction test (section 4)
13586 Section extraction test (section 5)
13606 Section extraction test (section 6)
13627 Section extraction test (section 7)
13647 Section extraction test (section 8)
13667 Section extraction test (section 9)
13688 Section extraction test (section 10)
13708 Section extraction test (nonexistent section 11)
13727 Section extraction test with bogus heading (section 1)
13732 ==bogus== not a legal section
13736 ==bogus== not a legal section
13740 Section extraction test with bogus heading (section 2)
13745 ==bogus== not a legal section
13752 Section extraction test with comment after heading (section 1)
13764 Section extraction test with comment after heading (section 2)
13776 Section extraction test with bogus <nowiki> heading (section 1)
13781 ==bogus== <nowiki>not a legal section</nowiki>
13785 ==bogus== <nowiki>not a legal section</nowiki>
13789 Section extraction test with bogus <nowiki> heading (section 2)
13794 ==bogus== <nowiki>not a legal section</nowiki>
13801 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
13802 # instead of respecting commented sections
13804 Section extraction prefixed by comment (section 1)
13815 Section extraction prefixed by comment (section 2)
13826 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
13827 # instead of respecting HTML-style headings
13829 Section extraction, mixed wiki and html (section 1)
13845 Section extraction, mixed wiki and html (section 2)
13861 # Formerly testing for bug 3342
13863 Section extraction, heading surrounded by <noinclude>
13867 <noinclude>==unmarked==</noinclude>
13873 # Test behavior of bug 19910
13875 Sectiion with all-equals
13880 The line above must have a trailing space
13883 But just in case it doesn't...
13887 But just in case it doesn't...
13891 Section replacement test (section 0)
13922 Section replacement test (section 1)
13951 Section replacement test (section 2)
13981 Section replacement test (section 3)
14012 Section replacement test (section 4)
14039 Section replacement test (section 5)
14070 Section replacement test (section 6)
14100 Section replacement test (section 7)
14131 Section replacement test (section 8)
14162 Section replacement test (section 9)
14191 Section replacement test (section 10)
14221 Section replacement test with initial whitespace (bug 13728)
14225 Preformatted initial line
14229 Preformatted initial line
14236 Section extraction, heading followed by pre with 20 spaces (bug 6398)
14248 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
14261 Section extraction, <pre> around bogus header (bug 10309)
14278 Section replacement, <pre> around bogus header (bug 10309)
14280 noxml replace=2,"xxx"
14301 Handling of 
 in URLs
14307 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
14315 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
14317 5 quotes, code coverage +1 line
14322 <p><b><i></i></b></p>
14326 Special:Search page linking.
14330 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
14337 title=[[Parser test]]
14342 * {{FULLPAGENAMEE}}
14344 * {{BASEPAGENAMEE}}
14348 * {{ROOTPAGENAMEE}}
14350 * {{TALKPAGENAMEE}}
14351 * {{SUBJECTPAGENAME}}
14352 * {{SUBJECTPAGENAMEE}}
14355 * {{NAMESPACENUMBER}}
14359 * {{SUBJECTSPACEE}}
14360 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
14383 <li> Talk:Parser test
14385 <li> Talk:Parser_test
14405 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
14410 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
14420 image4 |300px| centre
14421 image5.svg| http://///////
14426 <ul class="gallery mw-gallery-traditional">
14427 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14428 <div class="thumb" style="height: 150px;">Image1.png</div>
14429 <div class="gallerytext">
14432 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14433 <div class="thumb" style="height: 150px;">Image2.gif</div>
14434 <div class="gallerytext">
14439 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14440 <div class="thumb" style="height: 150px;">Image3</div>
14441 <div class="gallerytext">
14444 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14445 <div class="thumb" style="height: 150px;">Image4</div>
14446 <div class="gallerytext">
14451 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14452 <div class="thumb" style="height: 150px;">Image5.svg</div>
14453 <div class="gallerytext">
14454 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
14458 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14459 <div class="thumb" style="height: 150px;">* image6</div>
14460 <div class="gallerytext">
14468 Gallery (with options)
14470 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
14471 File:Nonexistant.jpg|caption
14472 File:Nonexistant.jpg
14473 image:foobar.jpg|some '''caption''' [[Main Page]]
14475 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
14478 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
14479 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
14480 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14481 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14482 <div class="gallerytext">
14487 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14488 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14489 <div class="gallerytext">
14492 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14493 <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>
14494 <div class="gallerytext">
14495 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14499 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14500 <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>
14501 <div class="gallerytext">
14504 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14505 <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>
14506 <div class="gallerytext">
14516 Gallery with wikitext inside caption
14519 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
14520 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
14523 <ul class="gallery mw-gallery-traditional">
14524 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14525 <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>
14526 <div class="gallerytext">
14527 <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>
14531 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14532 <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>
14533 <div class="gallerytext">
14534 <p>This is a test template
14543 gallery (with showfilename option)
14545 <gallery showfilename>
14546 File:Nonexistant.jpg|caption
14547 File:Nonexistant.jpg
14548 image:foobar.jpg|some '''caption''' [[Main Page]]
14552 <ul class="gallery mw-gallery-traditional">
14553 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14554 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14555 <div class="gallerytext">
14556 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14561 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14562 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14563 <div class="gallerytext">
14564 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14568 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14569 <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>
14570 <div class="gallerytext">
14571 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14572 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14576 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14577 <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>
14578 <div class="gallerytext">
14579 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14588 Gallery (with namespace-less filenames)
14591 File:Nonexistant.jpg
14597 <ul class="gallery mw-gallery-traditional">
14598 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14599 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14600 <div class="gallerytext">
14603 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14604 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14605 <div class="gallerytext">
14608 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14609 <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>
14610 <div class="gallerytext">
14613 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14614 <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>
14615 <div class="gallerytext">
14623 HTML Hex character encoding (spells the word "JavaScript")
14625 JavaScript
14627 <p>JavaScript
14632 HTML Hex character encoding bogus encoding (bug 26437 regression check)
14636 <p>&#xsee;&#XSEE;
14641 HTML Hex character encoding mixed case
14650 __FORCETOC__ override
14662 ISBN 978-0-1234-56 789
14664 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
14669 ISBN followed by 5 spaces
14680 ISBN ISBN 1234567890
14682 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14691 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
14696 Bug 22905: <abbr> followed by ISBN followed by </a>
14698 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
14700 <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>
14709 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
14714 Double RFC with a wiki link
14718 <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>
14727 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
14732 Centre-aligned image
14734 [[Image:foobar.jpg|centre]]
14736 <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>
14743 [[Image:foobar.jpg|none]]
14745 <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>
14750 Width + Height sized image (using px) (height is ignored)
14752 [[Image:foobar.jpg|640x480px]]
14754 <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>
14759 Width-sized image (using px, no following whitespace)
14761 [[Image:foobar.jpg|640px]]
14763 <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>
14768 Width-sized image (using px, with following whitespace - test regression from r39467)
14770 [[Image:foobar.jpg|640px ]]
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, with preceding whitespace - test regression from r39467)
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 Another italics / bold test
14794 # Note the results may be incorrect, as parserTest output included this:
14795 # XML error: Mismatched tag at byte 6120:
14796 # ...<dd> </dt></dl> </dd...
14827 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
14829 Images with the "|" character in the comment
14831 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
14833 <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>
14838 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14840 <html><script>alert(1);</script></html>
14842 <p><html><script>alert(1);</script></html>
14847 HTML with raw HTML ($wgRawHtml==true)
14851 <html><script>alert(1);</script></html>
14853 <p><script>alert(1);</script>
14858 Parents of subpages, one level up
14860 subpage title=[[Subpage test/L1/L2/L3]]
14864 <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>
14870 Parents of subpages, one level up, not named
14872 subpage title=[[Subpage test/L1/L2/L3]]
14876 <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>
14883 Parents of subpages, two levels up
14885 subpage title=[[Subpage test/L1/L2/L3]]
14891 <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
14892 </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>
14897 Parents of subpages, two levels up, without trailing slash or name.
14899 subpage title=[[Subpage test/L1/L2/L3]]
14908 Parents of subpages, two levels up, with lots of extra trailing slashes.
14910 subpage title=[[Subpage test/L1/L2/L3]]
14914 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14919 Subpage test/L1/L2/L3Sibling
14925 Transclusion of a sibling page (one level up)
14927 subpage title=[[Subpage test/L1/L2/L3]]
14936 Transclusion of a child page
14938 subpage title=[[Subpage test/L1/L2]]
14947 Non-transclusion because of too many up levels
14949 subpage title=[[Subpage test/L1/L2/L3]]
14951 {{../../../../More than parent}}
14953 <p>{{../../../../More than parent}}
14958 Definition list code coverage
14965 <dt> title  </dt>
14968 <dt> title </dt>
14979 Don't fall for the self-closing div
14981 <div>hello world</div/>
14983 <div>hello world</div>
14992 <p>[[:Template:Msg]]
15001 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
15005 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
15007 Always escape literal '>' in output, not just after '<'
15021 <p>This is a test template
15022 This is a test template
15034 Inclusion of !userCanEdit() content
15038 <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>
15044 Out-of-order TOC heading levels
15053 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15055 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
15057 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
15058 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
15061 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
15063 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
15064 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
15070 <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>
15071 <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>
15072 <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>
15073 <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>
15074 <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>
15075 <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>
15081 ISBN with a dummy number
15091 ISBN with space-delimited number
15095 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
15101 ISBN with multiple spaces, no number
15120 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
15121 </p><p>ISBN 12345678901
15127 ISBN with trailing year (bug 8110)
15129 ISBN 1-234-56789-0 - 2006
15131 ISBN 1 234 56789 0 - 2006
15133 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
15134 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
15142 {{anchorencode:foo bar©#%n}}
15144 <p>foo_bar.C2.A9.23.25n
15149 anchorencode trims spaces
15151 {{anchorencode: __pretty__please__}}
15158 anchorencode deals with links
15160 {{anchorencode: [[hello|world]] [[hi]]}}
15167 anchorencode deals with templates
15169 {{anchorencode: {{Foo}} }}
15176 anchorencode encodes like the TOC generator: (bug 18431)
15178 === _ +:.3A%3A&&]] ===
15179 {{anchorencode: _ +:.3A%3A&&]] }}
15182 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
15183 <p>.2B:.3A.253A.26.26.5D.5D
15188 Bug 6200: blockquotes and paragraph formatting
15209 Bug 8293: Use of center tag ruins paragraph formatting
15230 Parsing of overlapping (improperly nested) inline html tags
15232 <span><s>x</span></s>
15234 <p><span><s>x</span></s></span>
15237 <p><span><s>x</s></span>
15242 ### Language variants related tests
15245 Self-link in language variants
15247 title=[[Dunav]] language=sr
15249 Both [[Dunav]] and [[Дунав]] are names for this river.
15251 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
15262 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
15264 title=[[Duna]] language=sr
15266 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
15268 <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.
15273 Link to a section of a variant of this title shouldn't be parsed as self-link
15275 title=[[Duna]] language=sr
15277 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
15279 <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.
15284 Link to pages in language variants
15288 Main Page can be written as [[Маин Паге]]
15290 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
15296 Multiple links to pages in language variants
15300 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
15302 <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>.
15308 Simple template in language variants
15314 <p>This is a test template
15320 Template with explicit namespace in language variants
15326 <p>This is a test template
15332 Basic test for template parameter in language variants
15336 {{парамтест|param=foo}}
15338 <p>This is a test template with parameter foo
15344 Simple category in language variants
15348 [[Category:МедиаWики Усер'с Гуиде]]
15350 <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>
15367 Don't convert blue categorylinks to another variant (bug 33210)
15371 [[A]][[Category:分类]]
15373 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
15378 Stripping -{}- tags (language variants)
15382 Latin proverb: -{Ne nuntium necare}-
15384 <p>Latin proverb: Ne nuntium necare
15390 Prevent conversion with -{}- tags (language variants)
15392 language=sr variant=sr-ec
15394 Latinski: -{Ne nuntium necare}-
15396 <p>Латински: Ne nuntium necare
15402 Prevent conversion of text with -{}- tags (language variants)
15404 language=sr variant=sr-ec
15406 Latinski: -{Ne nuntium necare}-
15408 <p>Латински: Ne nuntium necare
15414 Prevent conversion of links with -{}- tags (language variants)
15416 language=sr variant=sr-ec
15420 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15426 -{}- tags within headlines (within html for parserConvert())
15428 language=sr variant=sr-ec
15432 <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>
15438 Explicit definition of language variant alternatives
15440 language=zh variant=zh-tw
15442 -{zh:China;zh-tw:Taiwan}-, not China
15444 <p>Taiwan, not China
15450 Conversion around HTML tags
15452 language=sr variant=sr-ec
15454 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
15455 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
15458 <span title="ЛаCтин">ски</span>
15464 Explicit session-wise language variant mapping (A flag and - flag)
15466 language=zh variant=zh-tw
15468 Taiwan is not China.
15469 But -{A|zh:China;zh-tw:Taiwan}- is China,
15470 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
15471 and -{China}- is China.
15473 <p>Taiwan is not China.
15474 But Taiwan is Taiwan,
15475 (This should be stripped!)
15476 and China is China.
15481 Explicit session-wise language variant mapping (H flag for hide)
15483 language=zh variant=zh-tw
15485 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
15488 <p>(This should be stripped!)
15494 Adding explicit conversion rule for title (T flag)
15496 language=zh variant=zh-tw showtitle
15498 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15501 <p>Should be stripped!
15506 Testing that changing the language variant here in the tests actually works
15508 language=zh variant=zh showtitle
15510 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15513 <p>Should be stripped!
15518 Recursive conversion of alt and title attrs shouldn't clear converter state
15520 language=zh variant=zh-cn showtitle
15522 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
15523 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
15527 Should be stripped<span title="Exclamation">!</span>
15532 Bug 24072: more test on conversion rule for title
15534 language=zh variant=zh-tw showtitle
15536 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15537 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
15540 <p>This should be stripped!
15541 This won't take interferes with the title rule.
15546 Partly disable title conversion if variant == main language code
15548 language=zh variant=zh title=[[ZH]] showtitle
15550 -{T|zh-cn:CN;zh-tw:TW}-
15558 Partly disable title conversion if variant == main language code, more
15560 language=zh variant=zh title=[[ZH]] showtitle
15570 Raw output of variant escape tags (R flag)
15572 language=zh variant=zh-tw
15574 Raw: -{R|zh:China;zh-tw:Taiwan}-
15576 <p>Raw: zh:China;zh-tw:Taiwan
15581 Nested using of manual convert syntax
15583 language=zh variant=zh-hk
15585 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
15587 <p>Nested: Hello Hong Kong!
15592 Proper conversion of text in external links
15594 language=sr variant=sr-ec
15596 http://www.google.com
15597 gopher://www.google.com
15598 [http://www.google.com http://www.google.com]
15599 [gopher://www.google.com gopher://www.google.com]
15600 [https://www.google.com irc://www.google.com]
15601 [ftp://www.google.com www.google.com/ftp://dir]
15602 [//www.google.com www.google.com]
15604 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15605 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15606 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15607 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15608 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
15609 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
15610 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
15615 Do not convert roman numbers to language variants
15617 language=sr variant=sr-ec
15621 <p>Фридрих IV је цар.
15626 Unclosed language converter markup "-{"
15637 Don't convert raw rule "-{R|=>}-" to "=>"
15648 Don't break link parsing if language converter markup is in the caption.
15650 language=sr variant=sr-ec
15652 [[Main Page|-{R|main page}-]]
15654 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
15658 # This test is currently broken in the PHP parser (bug 52661)
15660 Don't break image parsing if language converter markup is in the caption.
15665 [[File:Foobar.jpg|-{R|caption}-]]
15667 <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>
15671 # This test is currently broken in the PHP parser (bug 52661)
15673 Don't break list handling if language converter markup is in the item.
15675 language=zh variant=zh-cn
15678 ;-{zh-cn:AAA;zh-tw:BBB}-
15685 # This test is currently broken in the PHP parser (bug 52661)
15687 Don't break table handling if language converter markup is in the cell.
15689 language=sr variant=sr-ec
15706 Bug 529: Uncovered bullet
15719 # Plain MediaWiki does not remove empty lists, but tidy actually does.
15720 # Templates in Wikipedia rely on this behavior, as tidy has always been
15721 # enabled there. These tests are normally run *without* tidy, so specify the
15722 # full output here.
15723 # To test realistic parsing behavior, apply a tidy-like transformation to both
15724 # the expected output and your parser's output.
15726 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
15728 ******* Foo {{bullet}}
15758 Bug 529: Uncovered table already at line-start
15781 Bug 529: Uncovered bullet in parser function result
15783 * Foo {{lc:{{bullet}} }}
15795 Bug 5678: Double-parsed template argument
15797 {{lc:{{{1}}}|hello}}
15804 Bug 5678: Double-parsed template invocation
15806 {{lc:{{paramtest {{!}} param = hello }} }}
15808 <p>{{paramtest | param = hello }}
15813 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
15816 title=[[Main Page]]
15818 {{PRVNÍVELKÉ:ěščř}}
15819 {{prvnívelké:ěščř}}
15839 Morwen/13: Unclosed link followed by heading
15846 <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>
15851 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
15858 <h1><span class="mw-headline" id="heading">heading</span></h1>
15863 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
15870 <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>
15885 Paragraphs inside divs (no extra line breaks)
15897 Paragraphs inside divs (extra line break on open)
15912 Paragraphs inside divs (extra line break on close)
15927 Paragraphs inside divs (extra line break on open and close)
15944 Nesting tags, paragraphs on lines which begin with <div>
15948 <div></div><strong>A
15957 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
15959 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
15961 <blockquote>Line one
15963 Line two</blockquote>
15965 <blockquote>Line one
15966 Line two</blockquote>
15971 Bug 6200: paragraphs inside blockquotes (extra line break on open)
15976 Line two</blockquote>
15981 Line two</blockquote>
15986 Bug 6200: paragraphs inside blockquotes (extra line break on close)
15988 <blockquote>Line one
15993 <blockquote>Line one
16001 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
16018 Paragraphs inside blockquotes/divs (no extra line breaks)
16020 <blockquote><div>Line one
16022 Line two</div></blockquote>
16024 <blockquote><div>Line one
16025 Line two</div></blockquote>
16030 Paragraphs inside blockquotes/divs (extra line break on open)
16035 Line two</div></blockquote>
16040 Line two</div></blockquote>
16045 Paragraphs inside blockquotes/divs (extra line break on close)
16047 <blockquote><div>Line one
16050 </div></blockquote>
16052 <blockquote><div>Line one
16055 </div></blockquote>
16060 Paragraphs inside blockquotes/divs (extra line break on open and close)
16066 </div></blockquote>
16072 </div></blockquote>
16077 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
16079 wgLinkHolderBatchSize=0
16085 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
16086 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
16087 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
16092 Free external link invading image caption
16094 [[Image:Foobar.jpg|thumb|http://x|hello]]
16096 <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>
16101 Bug 15196: localised external link numbers
16105 [http://en.wikipedia.org/]
16107 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
16112 Multibyte character in padleft
16114 {{padleft:-Hello|7|Æ}}
16121 Multibyte character in padright
16123 {{padright:Hello-|7|Æ}}
16130 formatdate parser function
16132 {{#formatdate:2009-03-24}}
16134 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
16139 formatdate parser function, with default format
16141 {{#formatdate:2009-03-24|mdy}}
16143 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
16148 Spacing of numbers in formatted dates
16150 {{#formatdate:January 15}}
16152 <p><span class="mw-formatted-date" title="01-15">January 15</span>
16157 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
16159 language=nl title=[[MediaWiki:Common.css]]
16161 {{#formatdate:2009-03-24|dmy}}
16163 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
16176 Edit comment with link
16180 I like the [[Main Page]] a lot
16182 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
16186 Edit comment with link and link text
16190 I like the [[Main Page|best pages]] a lot
16192 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16196 Edit comment with link and link text with suffix
16200 I like the [[Main Page|best page]]s a lot
16202 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16206 Edit comment with section link (non-local, eg in history list)
16208 comment title=[[Main Page]]
16210 /* External links */ removed bogus entries
16212 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16216 Edit comment with section link and text before it (non-local, eg in history list)
16218 comment title=[[Main Page]]
16220 pre-comment text /* External links */ removed bogus entries
16222 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>
16226 Edit comment with section link (local, eg in diff view)
16228 comment local title=[[Main Page]]
16230 /* External links */ removed bogus entries
16232 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16236 Edit comment with subpage link (bug 14080)
16240 title=[[Subpage test]]
16242 Poked at a [[/subpage]] here...
16244 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
16248 Edit comment with subpage link and link text (bug 14080)
16252 title=[[Subpage test]]
16254 Poked at a [[/subpage|neat little page]] here...
16256 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
16260 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
16263 title=[[Subpage test]]
16265 Poked at a [[/subpage]] here...
16267 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
16271 Edit comment with bare anchor link (local, as on diff)
16275 title=[[Main Page]]
16279 <a href="#section">#section</a>
16283 Edit comment with bare anchor link (non-local, as on history)
16286 title=[[Main Page]]
16290 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
16294 Anchor starting with underscore
16298 <p><a href="#_ref">One</a>
16303 Id starting with underscore
16305 <div id="_ref"></div>
16307 <div id="_ref"></div>
16312 Space normalisation on autocomment (bug 22784)
16315 title=[[Main Page]]
16317 /* __hello__world__ */
16319 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
16323 percent-encoding and + signs in comments (Bug 26410)
16327 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
16329 <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>
16333 Bad images - basic functionality
16342 Bad images - bug 16039: text after bad image disappears
16356 Verify that displaytitle works (bug #22501) no displaytitle
16360 wgAllowDisplayTitle=true
16361 wgRestrictDisplayTitle=false
16363 this is not the the title
16366 <p>this is not the the title
16371 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
16376 wgAllowDisplayTitle=true
16377 wgRestrictDisplayTitle=false
16379 this is not the the title
16380 {{DISPLAYTITLE:whatever}}
16383 <p>this is not the the title
16388 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
16393 wgAllowDisplayTitle=true
16394 wgRestrictDisplayTitle=true
16396 this is not the the title
16397 {{DISPLAYTITLE:whatever}}
16400 <p>this is not the the title
16405 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
16410 wgAllowDisplayTitle=true
16411 wgRestrictDisplayTitle=true
16413 this is not the the title
16414 {{DISPLAYTITLE:screen}}
16417 <p>this is not the the title
16422 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
16427 wgAllowDisplayTitle=false
16429 this is not the the title
16430 {{DISPLAYTITLE:screen}}
16433 <p>this is not the the title
16434 <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>
16439 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
16444 wgAllowDisplayTitle=false
16446 this is not the the title
16449 <p>this is not the the title
16454 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
16459 wgAllowDisplayTitle=true
16460 wgRestrictDisplayTitle=true
16462 this is not the the title
16463 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
16465 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
16466 <p>this is not the the title
16471 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
16476 wgAllowDisplayTitle=true
16477 wgRestrictDisplayTitle=true
16479 this is not the the title
16480 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
16482 <span style="color: red;">s</span>creen
16483 <p>this is not the the title
16488 preload: check <noinclude> and <includeonly>
16492 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
16498 preload: check <onlyinclude>
16502 Goodbye <onlyinclude>Hello world</onlyinclude>
16508 preload: can pass tags through if we want to
16512 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
16514 <includeonly>Hello world</includeonly>
16518 preload: check that it doesn't try to do tricks
16522 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16524 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16528 Play a bit with r67090 and bug 3158
16532 <div style="width:50% !important"> </div>
16533 <div style="width:50% !important"> </div>
16534 <div style="width:50% !important"> </div>
16535 <div style="border : solid;"> </div>
16537 <div style="width:50% !important"> </div>
16538 <div style="width:50% !important"> </div>
16539 <div style="width:50% !important"> </div>
16540 <div style="border : solid;"> </div>
16545 HTML5 data attributes
16547 <span data-foo="bar">Baz</span>
16548 <p data-abc-def_hij="">Quuz</p>
16550 <p><span data-foo="bar">Baz</span>
16552 <p data-abc-def_hij="">Quuz</p>
16557 percent-encoding and + signs in internal links (Bug 26410)
16559 [[User:+%]] [[Page+title%]]
16560 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
16561 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
16562 [[%33%45]] [[%33%45+]]
16564 <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>
16565 <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>
16566 <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>
16567 <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>
16572 Special characters in embedded file links (bug 27679)
16574 [[File:Contains & ampersand.jpg]]
16575 [[File:Does not exist.jpg|Title with & ampersand]]
16577 <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>
16578 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
16584 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
16586 Text's been normalized?
16588 <p>Text's been normalized?
16593 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
16595 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
16597 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
16602 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
16604 [http://www.example.org/ ideograms]
16606 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
16611 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
16613 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
16615 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
16639 Bug 31098 Template which includes system messages which includes the template
16643 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16644 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16649 Bug31490 Turkish: ucfirst 'blah'
16660 Bug31490 Turkish: ucfirst 'ix'
16671 Bug31490 Turkish: lcfirst 'BLAH'
16682 Bug31490 Turkish: ucfırst (with a dotless i)
16688 <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>
16693 Bug31490 ucfırst (with a dotless i) with English language
16699 <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>
16704 Bug 26375: TOC with italics
16706 title=[[Main Page]]
16709 == ''Lost'' episodes ==
16711 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16713 <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>
16717 <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>
16722 Bug 26375: TOC with bold
16724 title=[[Main Page]]
16727 == '''should be bold''' then normal text ==
16729 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16731 <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>
16735 <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>
16740 Bug 33845: Headings become cursive in TOC when they contain an image
16742 title=[[Main Page]]
16745 == Image [[Image:foobar.jpg]] ==
16747 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16749 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
16753 <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>
16758 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
16760 title=[[Main Page]]
16763 == <blockquote>Quote</blockquote> ==
16765 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16767 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
16771 <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>
16776 Unclosed tags in TOC
16778 title=[[Main Page]]
16782 <small>Hanc marginis exiguitas non caperet.</small>
16785 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16787 <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>
16791 <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>
16792 <p><small>Hanc marginis exiguitas non caperet.</small>
16798 Multiple tags in TOC
16801 == <i>Foo</i> <b>Bar</b> ==
16803 == <i>Foo</i> <blockquote>Bar</blockquote> ==
16805 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16807 <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>
16808 <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>
16812 <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>
16813 <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>
16818 Tags with parameters in TOC
16821 == <sup class="in-h2">Hello</sup> ==
16823 == <sup class="a > b">Evilbye</sup> ==
16825 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16827 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
16828 <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>
16832 <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>
16833 <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>
16838 span tags with directionality in TOC
16841 == <span dir="ltr">C++</span> ==
16843 == <span dir="rtl">זבנג!</span> ==
16845 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
16847 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
16849 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
16851 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16853 <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>
16854 <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>
16855 <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>
16856 <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>
16857 <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>
16861 <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>
16862 <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>
16863 <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>
16864 <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>
16865 <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>
16872 == {{int:headline_sample}} ==
16876 Bug 32057: Title needed when expanding <h> nodes.
16878 title=[[Main Page]]
16882 <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>
16887 Strip marker in urlencode
16889 {{urlencode:x<nowiki/>y}}
16890 {{urlencode:x<nowiki/>y|wiki}}
16891 {{urlencode:x<nowiki/>y|path}}
16918 Strip marker in formatNum
16920 {{formatnum:1<nowiki/>2}}
16921 {{formatnum:1<nowiki/>2|R}}
16929 Check noCommafy in formatNum
16933 {{formatnum:123456.78}}
16934 {{formatnum:123456.78|NOSEP}}
16942 Wrong option for formatNum (bug 56199)
16944 {{formatnum:1,234.56|Random}}
16945 {{formatnum:1,234.56|EVERYTHING}}
16946 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
16955 Strip marker in grammar
16959 {{grammar:elative|foo<nowiki/>bar}}
16966 Strip marker in padleft
16968 {{padleft:|2|x<nowiki/>y}}
16975 Strip marker in padright
16977 {{padright:|2|x<nowiki/>y}}
16984 Strip marker in anchorencode
16986 {{anchorencode:x<nowiki/>y}}
16993 nowiki inside link inside heading (bug 18295)
16995 ==[[foo|x<nowiki>y</nowiki>z]]==
16997 <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>
17002 new support for bdi element (bug 31817)
17004 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17006 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17011 Ignore pipe between table row attributes
17015 |- id=foo | style='color: red'
17023 <tr id="foo" style="color: red">
17030 Gallery override link with WikiLink (bug 34852)
17033 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
17036 <ul class="gallery mw-gallery-traditional">
17037 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17038 <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>
17039 <div class="gallerytext">
17049 Gallery override link with absolute external link (bug 34852)
17052 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
17055 <ul class="gallery mw-gallery-traditional">
17056 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17057 <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>
17058 <div class="gallerytext">
17068 Gallery override link with malicious javascript (bug 34852)
17071 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
17074 <ul class="gallery mw-gallery-traditional">
17075 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17076 <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>
17077 <div class="gallerytext">
17087 Gallery with invalid title as link (bug 43964)
17090 File:foobar.jpg|link=<
17093 <ul class="gallery mw-gallery-traditional">
17094 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17095 <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>
17096 <div class="gallerytext">
17104 Language parser function
17113 Padleft and padright as substr
17115 {{padleft:|3|abcde}}
17116 {{padright:|3|abcde}}
17124 Special parser function
17126 {{#special:RandomPage}}
17127 {{#special:BaDtItLe}}
17128 {{#special:Foobar}}
17137 Bug 34939 - Case insensitive link parsing ([HttP://])
17139 [HttP://MediaWiki.Org/]
17141 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
17146 Bug 34939 - Case insensitive link parsing ([HttP:// title])
17148 [HttP://MediaWiki.Org/ MediaWiki]
17150 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
17155 Bug 34939 - Case insensitive link parsing (HttP://)
17157 HttP://MediaWiki.Org/
17159 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
17178 <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>
17179 <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>
17180 <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>
17181 <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>
17182 <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>
17188 ### Parsoids-specific tests
17189 ### Parsoid-PHP parser incompatibilities
17192 1. SOL-sensitive wikitext tokens as template-args
17194 parsoid=wt2html,wt2wt
17200 <span about="#mwt1" typeof="mw:Transclusion">
17201 </span><ul about="#mwt1"><li>a</li>
17203 <span about="#mwt2" typeof="mw:Transclusion">
17204 </span><ol about="#mwt2"><li>a</li>
17206 <span about="#mwt3" typeof="mw:Transclusion">
17207 </span><dl about="#mwt3"><dd>a</dd>
17211 #### ----------------------------------------------------------------
17212 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
17213 #### tags. Parsoid's output for these tags differs from that of the
17215 #### ----------------------------------------------------------------
17218 Ref: 1. ref-location should be replaced with an index span
17223 B <ref name="x">foo</ref>
17226 <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>
17227 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>
17228 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>
17232 Ref: 2. ref-tags with identical names should all get the same index
17236 A <ref name="x">foo</ref>
17239 <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>
17240 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>
17244 Ref: 3. spaces in ref-names should be ignored
17248 A <ref name="x">foo</ref>
17249 B <ref name=" x " />
17252 <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>
17253 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>
17254 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>
17258 Ref: 4. 'constructor' should be accepted as a valid ref-name
17259 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
17263 A <ref name="constructor">foo</ref>
17265 <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>
17269 Ref: 5. body should accept generic wikitext
17274 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
17279 <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>
17281 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
17282 <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>
17288 Ref: 6. indent-pres should not be output in ref-body
17300 <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>
17302 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
17303 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17311 Ref: 7. No p-wrapping in ref-body
17330 <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>
17332 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17333 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17348 Ref: 8. transclusion wikitext has lower precedence
17352 A <ref> foo {{echo|</ref> B C}}
17356 <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>
17357 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
17358 <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>
17363 Ref: 9. unclosed comments should not leak out of ref-body
17367 A <ref> foo <!--</ref> B C
17370 <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>
17371 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17372 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
17377 Ref: 10. Unclosed HTML tags should not leak out of ref-body
17381 A <ref> <b> foo </ref> B C
17385 <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>
17388 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17389 <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>
17394 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
17401 <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
17402 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>
17406 Ref: 12. ref-tags act as trailing newline migration barrier
17410 <!--the newline at the end of this line moves out of the p-tag-->a
17412 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
17417 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
17420 <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>
17421 <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>
17428 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
17436 <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
17437 <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>
17441 Ref: 14. A nested ref-tag should be emitted as plain text
17445 <ref>foo <ref>bar</ref> baz</ref>
17449 <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>
17451 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17452 <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>
17457 Ref: 15. ref-tags with identical names should get identical indexes
17461 A1 <ref name="a">foo</ref> A2 <ref name="a" />
17462 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
17466 <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>
17467 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>
17469 <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>
17473 ## We don't bother wt2wt-ing non-standard whitespace
17475 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
17483 <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>
17485 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17486 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
17490 References: 1. references tag without any refs should be handled properly
17496 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
17500 References: 2. references tag with group only outputs references from that group
17504 A <ref group="a">foo</ref>
17505 B <ref group="b">bar</ref>
17507 <references group="a" />
17509 <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>
17510 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>
17512 <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>
17517 References: 3. ref list should be cleared after processing references
17529 <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>
17531 <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>
17534 <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>
17536 <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>
17541 References: 4. only referenced group should be cleared after processing references
17545 A <ref group="a">afoo</ref>
17548 <references group="a" />
17554 <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>
17555 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>
17557 <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>
17560 <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>
17562 <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>
17567 References: 5. ref tags in references should be processed while ignoring all other content
17572 B <ref name="b">bar</ref>
17575 <ref name="a">foo</ref>
17576 This should just get lost.
17579 <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>
17580 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>
17583 <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":{}}'>
17584 <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>
17585 <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>
17590 References: 6. <references /> from a transclusion
17594 <ref>Foo</ref> {{echo|<references />}}
17596 <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>
17600 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
17604 A <ref>foo bar for a</ref>
17605 B <ref group="X" name="b" />
17609 <references group="X">
17610 <ref name="b">foo</ref>
17613 <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>
17614 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>
17616 <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>
17618 <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>
17621 # This test is wt2html only because we're permitting the serializer to produce
17622 # dirty diffs, normalizing the unclosed references to the self-closed version.
17624 Generate references for unclosed references tag
17632 <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>
17635 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
17636 <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>
17640 New reference serializes on its own line
17642 parsoid=wt2wt,html2wt
17647 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
17650 #### ----------------------------------------------------------------
17651 #### The following section of tests are primarily to test
17652 #### wikitext escaping capabilities of Parsoid. Given that
17653 #### escaping can be done any number of ways, the wikitext (input)
17654 #### is always adjusted to reflect how Parsoid adds nowiki
17657 #### We are marking several tests as parsoid-only since the
17658 #### HTML in the result section is different from what the
17659 #### PHP parser generates for it.
17660 #### ----------------------------------------------------------------
17663 #### --------------- Headings ---------------
17665 #### 1. Nested inside html <h1>=foo=</h1>
17666 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
17667 #### 3. Nested inside html with wikitext split by html tags
17668 #### 4. No escape needed
17669 #### 5. Empty headings <h1></h1>
17670 #### 6. Heading chars in SOL context
17671 #### ----------------------------------------
17673 Headings: 0. Unnested
17677 <nowiki>=foo=</nowiki>
17679 <nowiki> =foo= </nowiki>
17681 <nowiki>=foo=</nowiki>
17683 =foo''a''<nowiki>=</nowiki>
17685 <p><span typeof="mw:Nowiki">=foo=</span></p>
17687 <p><span typeof="mw:Nowiki"> =foo= </span>
17689 <span typeof="mw:Nowiki">=foo=</span></p>
17691 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
17695 Headings: 1. Nested inside html
17696 (New headings and existing headings are handled differently)
17706 =<nowiki>=foo=</nowiki>=
17707 ==<nowiki>=foo=</nowiki>==
17708 ===<nowiki>=foo=</nowiki>===
17709 ====<nowiki>=foo=</nowiki>====
17710 =====<nowiki>=foo=</nowiki>=====
17711 ======<nowiki>=foo=</nowiki>======
17718 <h1 data-parsoid='{}'>=foo=</h1>
17719 <h2 data-parsoid='{}'>=foo=</h2>
17720 <h3 data-parsoid='{}'>=foo=</h3>
17721 <h4 data-parsoid='{}'>=foo=</h4>
17722 <h5 data-parsoid='{}'>=foo=</h5>
17723 <h6 data-parsoid='{}'>=foo=</h6>
17727 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
17732 <nowiki>*</nowiki>bar
17738 <nowiki>=bar=</nowiki>
17746 Headings: 3. Nested inside html with wikitext split by html tags
17750 = ='''bold'''<nowiki>foo=</nowiki> =
17752 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
17756 Headings: 4a. No escaping needed (testing just h1 and h2)
17774 = <nowiki>=</nowiki> =
17782 <h1><i>=</i>foo=</h1>
17783 <h1><span typeof="mw:Nowiki">=</span></h1>
17787 Headings: 4b. No escaping needed (inside p-tags)
17802 Headings: 5. Empty headings
17814 =====<nowiki/>=====
17816 ======<nowiki/>======
17827 Headings: 6a. Heading chars in SOL context (with trailing spaces)
17831 <nowiki>=a=</nowiki>
17833 <nowiki>=a=</nowiki>
17835 <nowiki>=a=</nowiki>
17837 <nowiki>=a=</nowiki>
17846 Headings: 6b. Heading chars in SOL context (with trailing newlines)
17874 Headings: 6c. Heading chars in SOL context (leading newline break)
17879 <nowiki>=b=</nowiki>
17886 Headings: 6d. Heading chars in SOL context (with interspersed comments)
17890 <!--c0--><nowiki>=a=</nowiki>
17892 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
17894 <p><!--c0-->=a=</p>
17895 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
17899 Headings: 6d. Heading chars in SOL context (No escaping needed)
17908 #### --------------- Lists ---------------
17909 #### 0. Outside nests (*foo, etc.)
17910 #### 1. Nested inside html <ul><li>*foo</li></ul>
17911 #### 2. Inside definition lists
17912 #### 3. Only bullets at start should be escaped
17913 #### 4. No escapes needed
17914 #### 5. No unnecessary escapes
17915 #### 6. Escape bullets in SOL position
17916 #### 7. Escape bullets in a multi-line context
17917 #### ----------------------------------------
17920 Lists: 0. Outside nests
17922 <nowiki>*</nowiki>foo
17924 <nowiki>#</nowiki>foo
17932 Lists: 1. Nested inside html
17934 *<nowiki>*foo</nowiki>
17936 *<nowiki>#foo</nowiki>
17938 *<nowiki>:foo</nowiki>
17940 *<nowiki>;foo</nowiki>
17942 #<nowiki>*foo</nowiki>
17944 #<nowiki>#foo</nowiki>
17946 #<nowiki>:foo</nowiki>
17948 #<nowiki>;foo</nowiki>
17986 Lists: 2. Inside definition lists
17988 ;<nowiki>;foo</nowiki>
17990 ;<nowiki>:foo</nowiki>
17992 ;<nowiki>:foo</nowiki>
17995 :<nowiki>:foo</nowiki>
18019 Lists: 3. Only bullets at start of text should be escaped
18021 *<nowiki>*foo*bar</nowiki>
18023 *<nowiki>*foo</nowiki>''it''*bar
18030 <li>*foo<i>it</i>*bar
18037 Lists: 4. No escapes needed
18058 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
18062 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
18068 Lists: 5. No unnecessary escapes
18070 * bar <span><nowiki>[[foo]]</nowiki></span>
18072 *=bar <span><nowiki>[[foo]]</nowiki></span>
18074 *[[bar <span><nowiki>[[foo]]</nowiki></span>
18076 *]]bar <span><nowiki>[[foo]]</nowiki></span>
18078 *=bar <span>foo]]</span>=
18083 <li> bar <span>[[foo]]</span>
18087 <li>=bar <span>[[foo]]</span>
18091 <li>[[bar <span>[[foo]]</span>
18095 <li>]]bar <span>[[foo]]</span>
18099 <li>=bar <span>foo]]</span>=
18110 Lists: 6. Escape bullets in SOL position
18114 <!--cmt--><nowiki>*foo</nowiki>
18116 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
18120 Lists: 7. Escape bullets in a multi-line context
18123 <nowiki>*</nowiki>b
18130 #### --------------- HRs ---------------
18131 #### 1. Single line
18132 #### -----------------------------------
18135 HRs: 1. Single line
18139 ----<nowiki>----</nowiki>
18143 <hr><span typeof="mw:Nowiki">----</span>
18148 #### --------------- Tables ---------------
18149 #### 1a. Simple example
18150 #### 1b. No escaping needed (!foo)
18151 #### 1c. No escaping needed (|foo)
18152 #### 1d. No escaping needed (|}foo)
18154 #### 2a. Nested in td (<td>foo|bar</td>)
18155 #### 2b. Nested in td (<td>foo||bar</td>)
18156 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
18158 #### 3a. Nested in th (<th>foo!bar</th>)
18159 #### 3b. Nested in th (<th>foo!!bar</th>)
18160 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
18164 #### 4c. No escaping needed
18165 #### --------------------------------------
18168 Tables: 1a. Simple example
18179 Tables: 1b. No escaping needed
18188 Tables: 1c. No escaping needed
18197 Tables: 1d. No escaping needed
18206 Tables: 2a. Nested in td
18211 |<nowiki>foo|bar</nowiki>
18213 |x<div><nowiki>a|b</nowiki></div>
18217 <td>foo|bar</td></tr>
18218 <tr><td>x<div>a|b</div></td>
18223 Tables: 2b. Nested in td
18228 |<nowiki>foo||bar</nowiki>
18229 |''it''<nowiki>foo||bar</nowiki>
18233 <td><span typeof="mw:Nowiki">foo||bar</span></td>
18234 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
18238 Tables: 2c. Nested in td -- no escaping needed
18246 <table><tbody><tr><td>foo!!bar
18247 </td></tr></tbody></table>
18252 Tables: 3a. Nested in th
18260 <table><tbody><tr><th>foo!bar
18261 </th></tr></tbody></table>
18266 Tables: 3b. Nested in th
18271 !<nowiki>foo!!bar</nowiki>
18275 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
18280 Tables: 3c. Nested in th -- no escaping needed
18285 !<nowiki>foo||bar</nowiki>
18289 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
18293 Tables: 4a. Escape -
18300 |<nowiki>-bar</nowiki>
18304 <tr><th>-bar</th></tr>
18306 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
18310 Tables: 4b. Escape +
18317 |<nowiki>+bar</nowiki>
18321 <tr><th>+bar</th></tr>
18323 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
18327 Tables: 4c. No escaping needed
18348 <tr><td>foo-bar</td><td>foo+bar</td></tr>
18349 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
18355 <div>a|b</div></td>
18360 Tables: 4d. No escaping needed
18371 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
18372 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
18373 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
18378 Tables: Digest broken attributes on table and tr tag
18394 #### --------------- Links ----------------
18395 #### 1. Quote marks in link text
18396 #### 2. Wikilinks: Escapes needed
18397 #### 3. Wikilinks: No escapes needed
18398 #### 4. Extlinks: Escapes needed
18399 #### 5. Extlinks: No escapes needed
18400 #### --------------------------------------
18402 Links 1. Quote marks in link text
18406 [[Foo|Foo<nowiki>''boo''</nowiki>]]
18408 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
18412 Links 2. WikiLinks: Escapes needed
18417 [[Foo|<nowiki>Foobar]</nowiki>]]
18418 [[Foo|x [Foobar] x]]
18419 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
18420 [[Foo|<nowiki>[[Bar]]</nowiki>]]
18421 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
18422 [[Foo|<nowiki>|Bar</nowiki>]]
18423 [[Foo|<nowiki>]]bar</nowiki>]]
18424 [[Foo|<nowiki>[[bar</nowiki>]]
18425 [[Foo|<nowiki>x [[ y</nowiki>]]
18426 [[Foo|<nowiki>x ]] y</nowiki>]]
18427 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
18429 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
18430 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
18431 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
18432 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
18433 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
18434 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
18435 <a href="Foo" rel="mw:WikiLink">|Bar</a>
18436 <a href="Foo" rel="mw:WikiLink">]]bar</a>
18437 <a href="Foo" rel="mw:WikiLink">[[bar</a>
18438 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
18439 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
18440 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
18444 Links 3. WikiLinks: No escapes needed
18451 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
18452 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
18456 Links 4. ExtLinks: Escapes needed
18460 [http://google.com <nowiki>[google]</nowiki>]
18461 [http://google.com <nowiki>google]</nowiki>]
18463 <nowiki>[http://google.com]</nowiki>
18465 <nowiki>[http://google.com google]</nowiki>
18468 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
18469 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
18470 <p>[http://google.com]</p>
18471 <p>[http://google.com google]</p>
18475 Links 5. ExtLinks: No escapes needed
18479 [http://google.com [google]
18481 <a href="http://google.com" rel="mw:ExtLink">[google</a>
18484 #### --------------- Quotes ---------------
18485 #### 1. Quotes inside <b> and <i>
18486 #### 2. Link fragments separated by <i> and <b> tags
18487 #### 3. Link fragments inside <i> and <b>
18488 #### 4. No escaping needed
18489 #### --------------------------------------
18491 1. Quotes inside <b> and <i>
18493 parsoid=html2wt,wt2wt
18495 ''<nowiki>'foo'</nowiki>''
18496 ''<nowiki>''foo''</nowiki>''
18497 ''<nowiki>'''foo'''</nowiki>''
18499 '''<nowiki>'foo'</nowiki>'''
18500 '''<nowiki>''foo''</nowiki>'''
18501 '''<nowiki>'''foo'''</nowiki>'''
18502 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
18503 '''foo'''<nowiki/>'s
18506 '<nowiki/>''foo''<nowiki/>'
18508 '''foo'''<nowiki/>'
18509 '<nowiki/>'''foo'''<nowiki/>'
18510 ''fools'<span> errand</span>''
18511 ''<span>fool</span>'s errand''
18520 <b>foo'<i>bar'</i>baz</b>
18528 <i>fools'<span> errand</span></i>
18529 <i><span>fool</span>'s errand</i>
18533 2. Link fragments separated by <i> and <b> tags
18535 [[''foo''<nowiki>hello]]</nowiki>
18537 [['''foo'''<nowiki>hello]]</nowiki>
18539 <p>[[<i>foo</i>hello]]
18540 </p><p>[[<b>foo</b>hello]]
18545 3. Link fragments inside <i> and <b>
18546 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
18547 this is one of the shortcomings of this format)
18549 ''[[foo''<nowiki>]]</nowiki>
18551 '''[[foo'''<nowiki>]]</nowiki>
18554 </p><p><b>[[foo</b>]]
18559 4. No escaping needed
18561 '<span>''bar''</span>'
18562 '<span>'''bar'''</span>'
18564 <p>'<span><i>bar</i></span>'
18565 '<span><b>bar</b></span>'
18569 #### ----------- Paragraphs ---------------
18570 #### 1. No unnecessary escapes
18571 #### --------------------------------------
18574 1. No unnecessary escapes
18576 bar <span><nowiki>[[foo]]</nowiki></span>
18578 =bar <span><nowiki>[[foo]]</nowiki></span>
18580 [[bar <span><nowiki>[[foo]]</nowiki></span>
18582 ]]bar <span><nowiki>[[foo]]</nowiki></span>
18584 =bar <span>foo]]</span><nowiki>=</nowiki>
18586 <p>bar <span>[[foo]]</span>
18587 </p><p>=bar <span>[[foo]]</span>
18588 </p><p>[[bar <span>[[foo]]</span>
18589 </p><p>]]bar <span>[[foo]]</span>
18590 </p><p>=bar <span>foo]]</span>=
18594 #### ----------------------- PRE --------------------------
18595 #### 1. Leading whitespace in SOL context should be escaped
18596 #### ------------------------------------------------------
18598 1. Leading whitespace in SOL context should be escaped
18602 <nowiki> </nowiki>a
18604 <nowiki> </nowiki> a
18606 <nowiki> </nowiki>a(tab)
18608 <nowiki> </nowiki> a
18610 <nowiki> </nowiki> a
18613 <nowiki> </nowiki>b
18616 <nowiki> </nowiki>b
18619 <nowiki> </nowiki> b
18625 <p><!--cmt--> a</p>
18634 #### --------------- Behavior Switches --------------------
18636 1. Valid behavior switches should be escaped
18640 <nowiki>__TOC__</nowiki>
18646 2. Invalid behavior switches should not be escaped
18657 #### --------------- HTML tags ---------------
18660 #### 3. multi-line html tag
18661 #### 4. extension tags
18662 #### -----------------------------------------
18668 <a href="http://google.com">google</a>
18670 <a href="http://google.com">google</a>
18676 <nowiki><div>foo</div>
18677 <div style="color:red">foo</div></nowiki>
18679 <p><div>foo</div>
18680 <div style="color:red">foo</div>
18685 3. multi-line html tag
18700 <nowiki><ref>foo</ref></nowiki>
18702 <nowiki><ref>bar</nowiki>
18704 baz<nowiki></ref></nowiki>
18706 <p><ref>foo</ref>
18707 </p><p><ref>bar
18708 </p><p>baz</ref>
18712 #### --------------- Others ---------------
18716 <nowiki>foo</nowiki>
18718 <p><nowiki>foo</nowiki>
18722 ## The quote-char in the input is necessary for triggering the bug
18724 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
18726 parsoid=wt2wt,html2wt
18735 Tag-like HTML structures are passed through as text
18757 </p><p>1<d e>f
18762 # This was a bug in the PHP parser (see bug 17663 and its dups,
18763 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
18765 Tag names followed by punctuation should not be recognized as tags
18769 <p><s.ome> text
18774 HTML tag with necessary entities in attributes
18776 <span title="&amp;">foo</span>
18778 <p><span title="&amp;">foo</span>
18783 HTML tag with 'unnecessary' entity encoding in attributes
18785 <span title="&">foo</span>
18787 <p><span title="&">foo</span>
18792 HTML tag with broken attribute value quoting
18794 <span title="Hello world>Foo</span>
18796 <p><span>Foo</span>
18801 Parsoid-only: HTML tag with broken attribute value quoting
18805 <span title="Hello world>Foo</span>
18807 <p><span title="Hello world">Foo</span>
18812 Table with broken attribute value quoting
18815 | title="Hello world|Foo
18826 Table with broken attribute value quoting on consecutive lines
18829 | title="Hello world|Foo
18830 | style="color:red|Bar
18843 Parsoid-only: Table with broken attribute value quoting on consecutive lines
18848 | title="Hello world|Foo
18849 | style="color:red|Bar
18854 <td title="Hello world">Foo
18855 </td><td style="color: red">Bar
18856 </td></tr></tbody></table>
18861 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18871 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18881 Accept empty td cell attribute
18884 | align="center" | foo || |
18889 <td align="center"> foo </td>
18896 Non-empty attributes in th-cells
18899 ! Foo !! style="color: red" | Bar
18905 <th style="color: red"> Bar
18911 Accept empty attributes in th-cells
18926 Empty table rows go away
18947 ### Parsoid-centric tests for testing RTing of inter-element separators
18948 ### Edge cases not tested by existing parser tests and specific to
18949 ### Parsoid-specific serialization strategies.
18953 RT-ed inter-element separators should be valid separators
18966 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
18967 (Parsoid-only since PHP parser relies on Tidy for correct output)
18983 Empty TD followed by TD with tpl-generated attribute
18988 |{{echo|style='color:red'}}|foo
19002 Indented table with an empty td
19021 Empty TR followed by a template-generated TR
19022 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
19028 {{echo|<tr><td>foo</td></tr>}}
19034 <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}}]}'>
19039 ## PHP and parsoid output differ for this, and since this is primarily
19040 ## for testing Parsoid's serializer, marking this Parsoid only
19042 Empty TR followed by mixed-ws-comment line should RT correctly
19058 <!--c--> </tr><!--d-->
19064 Multi-line image caption generated by templates with/without trailing newlines
19068 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
19069 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
19071 <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>
19072 <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>
19076 ## PHP emits broken html for this, and since this is primarily
19077 ## a Parsoid serializer test, marking this Parsoid only
19079 Improperly nested inline or quotes tags with whitespace in between
19083 <span> <s>x</span> </s>
19086 <p><span> <s>x</s></span><s> </s>
19087 <b> <i>x</i></b><i> </i>
19092 Encapsulate protected attributes from wt
19096 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
19098 <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>
19102 ## Currently the p-wrapper is fragile in how adds / removes transformations.
19103 ## Having nested or stray pre tags results in the attempt to add duplicates,
19104 ## causing an assertion fail. This test tries to prevent that situation.
19106 Ensure ParagraphWrapper can deal with stray closing pre tags
19116 1. Ensure fostered text content is wrapped in spans
19120 <table>hi</table><table>ho</table>
19129 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
19131 parsoid=wt2html,wt2wt
19138 <span> || ||</span>
19147 Encapsulation properly handles null DSR information from foster box
19149 parsoid=wt2html,wt2wt
19151 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
19153 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19156 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
19160 <td>bar</td></tr></tbody></table>
19164 1. Encapsulate foster-parented transclusion content
19166 parsoid=wt2wt,wt2html
19168 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
19170 <span typeof="mw:Transclusion" data-mw="{"parts":["
19171 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
19173 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
19177 <td>bar</td></tr></tbody></table>
19181 2. Encapsulate foster-parented transclusion content
19183 parsoid=wt2wt,wt2html
19185 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
19187 <div typeof="mw:Transclusion" data-mw="{"parts":["
19189 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
19191 <td>bar</td></tr></table>"]}">foo</div>
19195 <td>bar</td></tr></tbody></table>
19199 3. Encapsulate foster-parented transclusion content
19201 parsoid=wt2wt,wt2html
19203 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19205 <div typeof="mw:Transclusion" data-mw="{"parts":["
19208 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19210 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19215 <td>bar</td></tr></tbody></table>
19219 4. Encapsulate foster-parented transclusion content
19221 parsoid=wt2wt,wt2html
19223 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19225 <div typeof="mw:Transclusion" data-mw="{"parts":["
19228 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19230 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19235 <td>bar</td></tr></tbody></table>
19239 5. Encapsulate foster-parented transclusion content
19241 parsoid=wt2wt,wt2html
19243 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
19245 <span typeof="mw:Transclusion" data-mw="{"parts":["
19250 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
19256 <p>foo</p></div></td></tr></tbody></table>
19260 6. Encapsulate foster-parented transclusion content
19262 parsoid=wt2wt,wt2html
19264 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
19266 <span typeof="mw:Transclusion" data-mw="{"parts":["
19271 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
19277 <p>foo</p></div></td></tr></tbody></table>
19282 7. Encapsulate foster-parented transclusion content
19284 parsoid=wt2wt,wt2html
19286 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
19288 <p typeof="mw:Transclusion" data-mw="{"parts":["
19289 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19290 <p>foo</p>"}},"i":0}},"
19291 <td>bar</td></table>"]}">foo</p>
19295 <td>bar</td></tr></tbody></table>
19299 8. Encapsulate foster-parented transclusion content
19301 parsoid=wt2wt,wt2html
19304 }}{|{{echo|style='color:red'}}
19309 <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>
19313 <td>b</td></tr></tbody></table>
19317 Table in fosterable position
19319 parsoid=wt2html,wt2wt
19328 <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="{}">
19330 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
19337 Support <object> element with .data attribute
19341 <object data="test.swf"></object>
19343 <object data="test.swf"></object>
19346 # -----------------------------------------------------------------
19347 # The following section of tests are primarily to spec requirements
19348 # around serialization of new/edited content.
19350 # All these tests are marked Parsoid html2wt and html2html only
19351 # ----------------------------------------------------------------
19354 Image: Modifying size of an image (1)
19358 [[Image:Foobar.jpg|200x200px]]
19360 <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>
19364 Image: Modifying size of an image (2)
19368 [[Image:Foobar.jpg|500x500px]]
19370 <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>
19373 # note that the data-parsoid value conflicts with the figure's class
19375 Image: Modifying alignment of an image (bug 48665)
19379 [[Image:Foobar.jpg|thumb|caption|left]]
19381 <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>
19385 Image: Modifying valign of an image (bug 49221)
19389 [[File:Foobar.jpg|20px|text-top]]
19391 <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>
19395 Image: Modifying alt attribute of an image (bug 56400)
19399 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
19401 <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>
19405 Image: Modifying caption of an image
19409 [[Image:Foobar.jpg|thumb|new caption]]
19411 <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>
19415 Image: empty alt attribute (bug 48924)
19419 [[File:Foobar.jpg|thumb|alt=|bar]]
19421 <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>
19425 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
19430 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
19432 #<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>
19436 Image: Block level image should have \n before and after
19441 [[File:Foobar.jpg|right|thumb|150x150px]]
19444 <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>
19448 Image: New block level image should have \n before and after (existing
19454 [[File:Foobar.jpg|right|thumb|150x150px]]
19457 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
19458 <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>
19459 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
19463 Images: upright option (parsoid)
19467 [[File:Foobar.jpg|thumb|upright|caption]]
19468 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
19469 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
19471 <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>
19475 Images: upright option is ignored on inline and frame images (parsoid)
19479 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
19481 <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>
19485 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
19492 <li><p>foo</p></li>
19497 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
19503 <ul> <li>foo</li></ul>
19507 Don't strip leading whitespace when handling indent-pre suppressing tags
19515 '''This is very bold of you!'''
19519 indented cell (no pre-wrapping!)
19526 <tr><td> indented row</td></tr>
19529 <b>This is very bold of you!</b>
19532 indented cell (no pre-wrapping!)
19540 Strip leading whitespace when handling indent-pre inducing tags
19572 Lists: Add space after bullets
19578 * <span> baz</span>
19583 <li><span> baz</span></li>
19588 Lists: Dont insert newlines in a serialized list item.
19595 <ul><li>a<br>b</li><li>c</li></ul>
19599 Headings: Add space before/after == (Bug 51744)
19609 == <span> baz</span> ==
19614 <h2><span> baz</span></h2>
19618 Parsoid: Serialize positional parameters with = in them as named parameter
19624 {{echo|1 = f=oo|2 = bar}}
19626 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19627 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19628 {{echo|<nowiki>f=oo</nowiki>|bar}}
19630 <p about="#mwt1" typeof="mw:Transclusion"
19631 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
19633 <p about="#mwt1" typeof="mw:Transclusion"
19634 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
19636 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19637 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19638 <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>
19642 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
19658 <div>a<p>b</p></div>
19666 #-----------------------------
19667 # I/B quote minimization tests
19668 #-----------------------------
19671 1. I/B quote minimization: wikitext-only tags should be combined
19691 <p><i>A</i><i>B</i></p>
19692 <p><b>A</b><b>B</b></p>
19693 <p><i>A</i><b><i>B</i></b></p>
19694 <p><b>A</b><i><b>B</b></i></p>
19695 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
19696 <p><i><b>A</b></i><i><b>B</b></i></p>
19697 <p><i><b>A</b></i><b><i>B</i></b></p>
19698 <p><b><i>A</i></b><i><b>B</b></i></p>
19702 2. I/B quote minimization: wikitext and html tags should not be combined
19708 ''A'''''<i>B</i>'''
19710 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
19711 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
19715 3. I/B quote minimization: templated content stops minimization
19719 ''A''{{echo|''B''}}
19721 ''A''{{echo|'''''B'''''}}
19723 <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>
19724 <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>
19728 4. I/B quote minimization: new content should be mimimized with adjacent old content
19738 <p><i>A</i><i data-parsoid='{}'>B</i></p>
19739 <p><b data-parsoid='{}'>A</b><b>B</b></p>
19740 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
19743 #------------------------------------
19744 # End of I/B quote minimization tests
19745 #------------------------------------
19748 Bug 54262: New entities
19754 <span typeof="mw:Entity">foo</span>
19757 ## Note that there is no wikitext output for 'unknownproperty' ##
19758 ## Unknown magic words are silently dropped ##
19773 __NOCONTENTCONVERT__
19775 <meta property='mw:PageProp/toc' />
19776 <meta property='mw:PageProp/notoc' />
19777 <meta property='mw:PageProp/forcetoc' />
19778 <meta property='mw:PageProp/index' />
19779 <meta property='mw:PageProp/noindex' />
19780 <meta property='mw:PageProp/nogallery' />
19781 <meta property='mw:PageProp/noeditsection' />
19782 <meta property='mw:PageProp/notitleconvert' />
19783 <meta property='mw:PageProp/nocontentconvert' />
19784 <meta property='mw:PageProp/unknownproperty' />
19788 Consecutive <pre>s should not get merged
19790 parsoid=html2wt,html2html
19806 <pre>a</pre><pre>b</pre>
19820 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
19824 [[Special:BookSources/1234567890|ISBN 1234567895]]
19826 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
19830 Edited RFC links not serializable as RFC links should serialize as extlinks
19834 [//tools.ietf.org/html/rfc123 New RFC]
19836 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
19840 Edited PMID links not serializable as PMID links should serialize as extlinks
19844 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
19846 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
19850 Edited Redirect link should emit a non-piped wikitext link
19856 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
19859 # -----------------------------------------------------------------
19860 # End of section for Parsoid-only html2wt tests for serialization
19862 # -----------------------------------------------------------------
19869 Try for 100% code coverage