1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-specific options (not run by PHP parser unless
25 # the test includes an html/php section)
26 # php php-only test (not run by the parsoid parser unless
27 # the test includes an html/parsoid section)
28 # showtitle make the first line the title
29 # comment run through Linker::formatComment() instead of main parser
30 # local format section links in edit comment text as local links
31 # notoc disable table of contents
32 # thumbsize=NNN set the default thumb size to NNNpx for this test
34 # You can also set the following parser properties via test options:
35 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
36 # wgLinkHolderBatchSize, wgRawHtml
38 # For testing purposes, temporary articles can created:
39 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
40 # where '/' denotes a newline.
42 # This is the standard article assumed to exist.
67 MediaWiki:bad image list
69 * [[File:Bad.jpg]] except [[Nasty page]]
103 Template:echo_with_span
109 Template:echo_with_div
121 Template:table_attribs
124 |</noinclude>style="color: red"| Foo
130 {{table_attribs}} || Bar || Baz
134 Template:image_attribs
137 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
171 This is a simple paragraph.
173 <p>This is a simple paragraph.
178 Paragraphs with extra newline spacing
201 Paragraphs with newline spacing with comment lines in between
209 <!--foo--><!--More than 1 comment, still stripped-->
213 <!--foo--> <!----> <!-- bar -->
274 Paragraphs with newline spacing with non-empty white-space lines in between
301 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
309 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
348 Extra newlines: More paragraphs with indented comment
363 Extra newlines followed by heading
378 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
379 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
382 <h1><span class="mw-headline" id="b_2">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
387 Extra newlines between heading and content are swallowed
395 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
396 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
403 http://fr.wikipedia.org/wiki/🍺
404 <!-- EasterEgg we love beer, better be able be able to link to it -->
406 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
417 <li> Item 2</li></ul>
425 * plain''italic''plain
426 * plain''italic''plain''italic''plain
427 * plain'''bold'''plain
428 * plain'''bold'''plain'''bold'''plain
429 * plain''italic''plain'''bold'''plain
430 * plain'''bold'''plain''italic''plain
431 * plain''italic'''bold-italic'''italic''plain
432 * plain'''bold''bold-italic''bold'''plain
433 * plain'''''bold-italic'''italic''plain
434 * plain'''''bold-italic''bold'''plain
435 * plain''italic'''bold-italic'''''plain
436 * plain'''bold''bold-italic'''''plain
437 * plain l'''italic''plain
438 * plain l''''bold''' plain
441 <li> plain<i>italic</i>plain</li>
442 <li> plain<i>italic</i>plain<i>italic</i>plain</li>
443 <li> plain<b>bold</b>plain</li>
444 <li> plain<b>bold</b>plain<b>bold</b>plain</li>
445 <li> plain<i>italic</i>plain<b>bold</b>plain</li>
446 <li> plain<b>bold</b>plain<i>italic</i>plain</li>
447 <li> plain<i>italic<b>bold-italic</b>italic</i>plain</li>
448 <li> plain<b>bold<i>bold-italic</i>bold</b>plain</li>
449 <li> plain<i><b>bold-italic</b>italic</i>plain</li>
450 <li> plain<b><i>bold-italic</i>bold</b>plain</li>
451 <li> plain<i>italic<b>bold-italic</b></i>plain</li>
452 <li> plain<b>bold<i>bold-italic</i></b>plain</li>
453 <li> plain l'<i>italic</i>plain</li>
454 <li> plain l'<b>bold</b> plain</li></ul>
458 # this example taken from the [[simple:Moon]] article (bug 47326)
460 Italics and possessives (1)
462 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
464 <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
468 # this example taken from [[en:Flaming Pie]] (bug 49926)
470 Italics and possessives (2)
472 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
474 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
478 # this example taken from [[en:Dictionary]] (bug 49926)
480 Italics and possessives (3)
482 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''.
484 <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>.
490 ### 2-quote opening sequence tests
493 Italics and bold: 2-quote opening sequence: (2,2)
503 Italics and bold: 2-quote opening sequence: (2,3)
514 # same html as previous, but wikitext adjusted to match parsoid html2wt
516 Italics and bold: 2-quote opening sequence: (2,3) w/ nowiki
518 ''<nowiki>foo'</nowiki>''
526 Italics and bold: 2-quote opening sequence: (2,4)
537 # same html as previous, but wikitext adjusted to match parsoid html2wt
539 Italics and bold: 2-quote opening sequence: (2,4) w/ nowiki
541 ''<nowiki>foo''</nowiki>''
548 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
550 Italics and bold: 2-quote opening sequence: (2,5)
563 # same html as previous, but wikitext adjusted to match parsoid html2wt
565 Italics and bold: 2-quote opening sequence: (2,5+3) w/ nowiki
567 ''foo'''''<nowiki/>'''
578 ### 3-quote opening sequence tests
582 Italics and bold: 3-quote opening sequence: (3,2)
592 Italics and bold: 3-quote opening sequence: (3,3)
602 Italics and bold: 3-quote opening sequence: (3,4)
613 # same html as previous, but wikitext adjusted to match parsoid html2wt
615 Italics and bold: 3-quote opening sequence: (3,4) w/ nowiki
617 '''<nowiki>foo'</nowiki>'''
624 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
626 Italics and bold: 3-quote opening sequence: (3,5)
639 # same html as previous, but wikitext adjusted to match parsoid html2wt
641 Italics and bold: 3-quote opening sequence: (3,5+2) w/ nowiki
643 '''foo'''''<nowiki/>''
654 ### 4-quote opening sequence tests
658 Italics and bold: 4-quote opening sequence: (4,2)
669 # same html as previous, but wikitext adjusted to match parsoid html2wt
671 Italics and bold: 4-quote opening sequence: (4,2) w/ nowiki
673 <nowiki>''</nowiki>''foo''
681 Italics and bold: 4-quote opening sequence: (4,3)
691 Italics and bold: 4-quote opening sequence: (4,4)
702 # same html as previous, but wikitext adjusted to match parsoid html2wt
704 Italics and bold: 4-quote opening sequence: (4,4) w/ nowiki
706 ''''<nowiki>foo'</nowiki>'''
713 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
715 Italics and bold: 4-quote opening sequence: (4,5)
724 <p>'<b>foo</b><i></i>
728 # same html as previous, but wikitext adjusted to match parsoid html2wt
730 Italics and bold: 4-quote opening sequence: (4,5+2) w/ nowiki
732 ''''foo'''''<nowiki/>''
737 <p>'<b>foo</b><i></i>
743 ### 5-quote opening sequence tests
747 Italics and bold: 5-quote opening sequence: (5,2)
758 # same html as previous, but wikitext adjusted to match parsoid html2wt
759 # skipping wt2html and html2html because it wants to put <i> before <b>
761 Italics and bold: 5-quote opening sequence: (5,2+3)
763 parsoid=wt2wt,html2wt
772 Italics and bold: 5-quote opening sequence: (5,3)
783 # same html as previous, but wikitext adjusted to match parsoid html2wt
785 Italics and bold: 5-quote opening sequence: (5,3+2)
795 Italics and bold: 5-quote opening sequence: (5,4)
801 <p><i><b>foo'</b></i>
806 # same html as previous, but wikitext adjusted to match parsoid html2wt
808 Italics and bold: 5-quote opening sequence: (5,4+2) w/ nowiki
810 '''''<nowiki>foo'</nowiki>'''''
812 <p><i><b>foo'</b></i>
818 Italics and bold: 5-quote opening sequence: (5,5)
827 ### multiple quote sequences in a line
830 Italics and bold: multiple quote sequences: (2,4,2)
836 <p><i>foo'<b>bar</b></i>
841 # same html as previous, but wikitext adjusted to match parsoid html2wt
843 Italics and bold: multiple quote sequences: (2,4,2+3) w/ nowiki
845 ''<nowiki>foo'</nowiki>'''bar'''''
847 <p><i>foo'<b>bar</b></i>
853 Italics and bold: multiple quote sequences: (2,4,3)
859 <p><i>foo'<b>bar</b></i>
864 # same html as previous, but wikitext adjusted to match parsoid html2wt
866 Italics and bold: multiple quote sequences: (2,4,3+2) w/ nowiki
868 ''<nowiki>foo'</nowiki>'''bar'''''
870 <p><i>foo'<b>bar</b></i>
876 Italics and bold: multiple quote sequences: (2,4,4)
882 <p><i>foo'<b>bar'</b></i>
887 # same html as previous, but wikitext adjusted to match parsoid html2wt
889 Italics and bold: multiple quote sequences: (2,4,4+2) w/ nowiki
891 ''<nowiki>foo'</nowiki>'''<nowiki>bar'</nowiki>'''''
893 <p><i>foo'<b>bar'</b></i>
898 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
900 Italics and bold: multiple quote sequences: (3,4,2)
909 <p><b>foo'</b>bar<i></i>
913 # same html as previous, but wikitext adjusted to match parsoid html2wt
915 Italics and bold: multiple quote sequences: (3,4,2+2) w/ nowiki
919 '''<nowiki>foo'</nowiki>'''bar''<nowiki/>''
924 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<i></i>
929 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
931 Italics and bold: multiple quote sequences: (3,4,3)
940 <p><b>foo'</b>bar<b></b>
944 # same html as previous, but wikitext adjusted to match parsoid html2wt
946 Italics and bold: multiple quote sequences: (3,4,3+3) w/ nowiki
948 '''<nowiki>foo'</nowiki>'''bar'''<nowiki/>'''
953 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<b></b>
958 ### other quote tests
961 Italics and bold: other quote tests: (2,3,5)
963 ''this is about '''foo's family'''''
965 <p><i>this is about <b>foo's family</b></i>
971 Italics and bold: other quote tests: (2,(3,3),2)
973 ''this is about '''foo's''' family''
975 <p><i>this is about <b>foo's</b> family</i>
981 Italics and bold: other quote tests: (3,2,3,2)
985 '''this is about ''foo'''s family''
987 <p><b>this is about <i>foo</i></b><i>s family</i>
992 # same html as previous, but wikitext adjusted to match parsoid html2wt
993 # add 'parsoid' option to use 'parsoid' normalization of the placeholder
995 Italics and bold: other quote tests: (3,2,3+2+2,2)
999 '''this is about ''foo'''''<nowiki/>''s family''
1001 <p><b>this is about <i>foo</i></b><i>s family</i>
1007 Italics and bold: other quote tests: (3,2,3,3)
1010 '''this is about ''foo'''s family'''
1012 <p>'<i>this is about </i>foo<b>s family</b>
1018 Italics and bold: other quote tests: (3,(2,2),3)
1020 '''this is about ''foo's'' family'''
1022 <p><b>this is about <i>foo's</i> family</b>
1028 Italicized possessive
1030 The ''[[Main Page]]'''s talk page.
1032 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
1037 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
1038 (Requires tidy for PHP parser output to be fixed up)
1040 parsoid=wt2html,wt2wt
1048 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
1049 <td><i>a</i></td><td><i>b</i></td></tr>
1058 Non-html5 tags should be accepted
1060 <center>''foo''</center>
1062 <font>''foo''</font>
1063 <strike>''foo''</strike>
1066 <center><i>foo</i></center>
1067 <p><big><i>foo</i></big>
1068 <font><i>foo</i></font>
1069 <strike><i>foo</i></strike>
1075 <wbr> is valid wikitext (bug 52468)
1083 # <strike> is HTML4, <s> is HTML4/5.
1085 <s> or <strike> for strikethrough
1087 <strike>strike</strike>
1091 <p><strike>strike</strike>
1097 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
1099 <b→> doesn't work! </b→>
1101 <bä> doesn't work! </bä>
1103 <boo> works fine </boo>
1105 <s.foo>s.foo</s.foo>
1109 <p><b→> doesn't work! </b→>
1110 </p><p><bä> doesn't work! </bä>
1111 </p><p><boo> works fine </boo>
1112 </p><p><s.foo>s.foo</s.foo>
1113 </p><p><sub-ID#1>
1118 Isolated close tags should be treated as literal text (bug 52760)
1125 </p><p><s.foo>s</s>
1130 ### Special characters
1134 Bare pipe character (bug 52363)
1143 Bare pipe character from a template (bug 52363)
1152 ### <nowiki> test cases
1156 <nowiki> unordered list
1158 <nowiki>* This is not an unordered list item.</nowiki>
1160 <p>* This is not an unordered list item.
1167 <nowiki>Lorem ipsum dolor
1175 <p>Lorem ipsum dolor
1188 :There is not nowiki.
1189 :There is <nowiki>nowiki</nowiki>.
1191 #There is not nowiki.
1192 #There is <nowiki>nowiki</nowiki>.
1194 *There is not nowiki.
1195 *There is <nowiki>nowiki</nowiki>.
1197 <dl><dd>There is not nowiki.</dd>
1198 <dd>There is nowiki.</dd></dl>
1199 <ol><li>There is not nowiki.</li>
1200 <li>There is nowiki.</li></ol>
1201 <ul><li>There is not nowiki.</li>
1202 <li>There is nowiki.</li></ul>
1207 Entities inside <nowiki>
1209 <nowiki><</nowiki>
1216 Entities inside template parameters
1222 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span>
1230 Comments and Indent-Pre
1232 <!-- comment 1 --> asdf
1234 <!-- comment 1 --> asdf
1237 <!-- comment 1 --> asdf
1238 <!-- comment 2 -->xyz
1240 <!-- comment 1 --> asdf
1241 <!-- comment 2 --> xyz
1297 asdf<!-- comment 1 -->jkl
1307 <!-- foo --> b <!-- bar -->
1321 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1327 Comment semantics and delimiters
1329 <!-- --><!----><!-----><!------>
1335 Comment semantics and delimiters, redux
1337 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1338 -- foo -- funky huh? ... -->
1344 Comment semantics and delimiters: directors cut
1346 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1347 everything starting with < followed by !-- until the first -- and > we see,
1348 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1356 Comment semantics: nesting
1358 <!--<!-- no, we're not going to do anything fancy here -->-->
1365 Comment semantics: unclosed comment at end
1367 <!--This comment will run out to the end of the document
1373 Comment in template title
1382 Comment on its own line post-expand
1394 Comment on its own line post-expand with non-significant whitespace
1406 Multiple comments should still parse as SOL-transparent
1408 parsoid=wt2html,wt2wt
1411 <!--c2--><!--c3--><!--c4-->*b
1422 ### paragraph wrapping tests
1437 Block tag on one line (<div>)
1449 Block tag on one line (<blockquote>)
1451 a <blockquote>foo</blockquote>
1455 a <blockquote>foo</blockquote>
1461 Block tag on both lines (<div>)
1473 Block tag on both lines (<blockquote>)
1475 a <blockquote>foo</blockquote>
1477 b <blockquote>foo</blockquote>
1479 a <blockquote>foo</blockquote>
1480 b <blockquote>foo</blockquote>
1485 Multiple lines without block tags
1503 Empty lines between lines with block tags
1532 ## PHP parser emits output which is broken
1534 Unclosed HTML p-tags should be handled properly
1541 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1547 ### Preformatted text
1556 And a [[Main Page|link]]
1562 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1567 Tabs don't trigger preformatted text
1571 This is preformatted text.
1577 <pre>This is preformatted text.
1583 Ident preformatting with inline content
1594 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1611 Regression with preformatted in <center>
1625 Bug 52763: Preformatted in <blockquote>
1631 indented cell (no pre-wrapping!)
1641 <p> indented cell (no pre-wrapping!)
1649 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1666 Bug 15491: <ins>/<del> in blockquote
1669 Foo <del>bar</del> <ins>baz</ins> quux
1673 <p>Foo <del>bar</del> <ins>baz</ins> quux
1679 # Note that the p-wrapping is newline sensitive, which could be
1680 # considered a bug: tidy will wrap only the 'Foo' in the example
1681 # below in a <p> tag. (see comment 23-25 of bug #6200)
1683 Bug 15491: <ins>/<del> in blockquote (2)
1685 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1688 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1694 <pre> with attributes (bug 3202)
1696 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1698 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1703 <pre> with width attribute (bug 3202)
1705 <pre width="8">Narrow screen goodies</pre>
1707 <pre width="8">Narrow screen goodies</pre>
1712 <pre> with forbidden attribute (bug 3202)
1714 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1716 <pre width="8">Narrow screen goodies</pre>
1721 Entities inside <pre>
1730 <pre> with forbidden attribute values (bug 3202)
1732 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1734 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1739 <nowiki> inside <pre> (bug 13238)
1747 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1755 <pre><nowiki>Foo</nowiki></pre>
1760 <nowiki> and <pre> preference (first one wins)
1791 </pre> inside nowiki
1793 <nowiki></pre></nowiki>
1800 Empty pre; pre inside other HTML tags (bug 54946)
1819 HTML pre followed by indent-pre
1834 <p><pre>foo</pre></p>
1836 <p data-parsoid='{"stx":"html","autoInsertedEnd":true}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
1840 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1848 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1858 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1870 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1891 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1895 {{echo| foo}}{{echo| bar}}
1900 {{echo|<!--cmt--> foo}}
1902 <!--cmt-->{{echo| foo}}
1904 {{echo|{{echo| }}bar}}
1922 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1959 Things that look like <pre> tags aren't treated as such
1961 Barack Obama <President> of the United States
1962 <President></President>
1964 <p>Barack Obama <President> of the United States
1965 <President></President>
1969 ## PHP parser discards the "<pre " string
1971 Handle broken pre-like tags (bug 64025)
1975 {{echo|<pre <pre>x</pre>}}
1977 <table><pre </table>
1980 <table><pre></pre></table>
1983 <span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<pre <pre>x</pre>"}},"i":0}}]}'><pre </span>
1986 <span><pre </span>
1991 Parsoid: handle pre with space after attribute
1995 <pre style="width:50%;" >{{echo|foo}}</pre>
1997 <pre style="width:50%;">{{echo|foo}}</pre>
2000 # TODO / maybe: fix wt2wt for this
2002 Parsoid: Don't paragraph-wrap fosterable content
2028 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
2056 #--------------------------------------------------------------------
2057 # Transclusion parameter whitespace stripping tests
2058 # Behavior is different for positional and named parameters
2059 #--------------------------------------------------------------------
2061 Templates: Strip leading and trailing whitespace from named-param values
2065 {{echo|1= {{echo|b}} }}
2078 <ul><li> d</li></ul>
2083 Templates: Don't strip whitespace from positional-param values
2087 {{echo|{{echo|b}} }}
2119 <ul><li> f</li></ul>
2127 Templates: Handle empty comment-and-ws-only lines correctly
2130 <!--should be ignored-->
2131 <!--should be ignored as well-->
2140 Templates: Handle comments in the target
2143 <!-- should be ignored -->
2146 {{echo<!-- should be ignored -->
2149 {{echo<!-- should be ignored -->|foo}}
2151 {{<!-- should be ignored -->echo|foo}}
2153 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo\n<!-- should be ignored -->\n","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2155 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo<!-- should be ignored -->\n","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2157 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo<!-- should be ignored -->","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2159 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2162 #--------------------------------------------------------------------
2163 # Transclusion parameter escaping tests
2164 #--------------------------------------------------------------------
2166 Templates: Parsoid parameter escaping test 1
2170 {{echo|[foo]|{{echo|[bar]}}}}
2172 <p about="#mwt1" typeof="mw:Transclusion"
2173 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
2177 Parsoid: Pipes in external links in template parameter
2181 {{echo|[{{echo|http://example.com}} link]}}
2183 <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>
2187 Parsoid: pipe in transclusion parameter
2191 {{echo|http://foo.com/a|b}}
2193 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2194 typeof="mw:Transclusion"
2195 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>
2199 Parsoid: Pipe in external link target and content in template parameter
2201 parsoid=html2wt,wt2wt
2203 {{echo|[http://foo.com/a|b a|b]}}
2205 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2206 typeof="mw:Transclusion"
2207 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
2208 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
2212 Templates: Don't escape already nowiki-escaped text in template parameters
2214 parsoid=html2wt,wt2wt
2216 {{echo|foo<nowiki>|</nowiki>bar}}
2217 {{echo|<nowiki><div></nowiki>}}
2218 {{echo|<nowiki></nowiki>}}
2220 <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>
2221 <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>
2222 <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>
2228 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
2230 parsoid=html2wt,wt2wt
2232 {{echo|{{echo|1=bar}}}}
2234 <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>
2239 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
2245 <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>
2249 ### Parsoid-centric tests for testing RT edge cases for pre
2253 1a. Indent-Pre and Comments
2266 1b. Indent-Pre and Comments
2279 1c. Indent-Pre and Comments
2292 1d. Indent-Pre and Comments
2293 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2306 2a. Indent-Pre and tables
2327 2b. Indent-Pre and tables
2343 2c. Indent-Pre and tables (bug 42252)
2360 3a. Indent-Pre and block tags (single-line html)
2364 c <blockquote> foo </blockquote>
2369 c <blockquote> foo </blockquote>
2370 <pre><span> foo </span>
2375 3b. Indent-Pre and block tags (multi-line html)
2380 <pre>a <span>foo</span>
2387 3c. Indent-Pre and block tags (pre-content on separate line)
2451 4. Indent-Pre and extension tags
2457 a <ul class="gallery mw-gallery-traditional">
2458 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2459 <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>
2460 <div class="gallerytext">
2468 Leading pipes outside of tables
2478 Leading pipes outside of tables 2
2492 Leading pipes outside of tables 3
2497 | class="foo bar" | baz
2501 | class="foo bar" | baz
2506 Render paragraphs when indent-pre is suppressed in blocklevels
2523 4. Multiple spaces at start-of-line
2541 ## NOTE: the leading white-space chars on empty line are significant
2543 5a. White-space in indent-pre
2555 ## NOTE: the leading white-space chars on empty line are significant
2557 5b. White-space in indent-pre
2576 5c. White-space in indent-pre
2589 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2612 7a. Indent-pre and category links
2614 parsoid=wt2html,wt2wt
2616 [[Category:foo]] <!-- No pre-wrapping -->
2617 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2619 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2620 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2621 <link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2625 7b. Indent-pre and category links
2627 parsoid=wt2html,wt2wt
2630 [[Category:foo]] {{echo|b}}
2633 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
2635 <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>
2639 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2643 HTML-pre: 1. embedded newlines
2677 <pre data-parsoid='{"stx":"html"}'>foo</pre>
2679 <pre data-parsoid='{"stx":"html","strippedNL":"\n"}'>
2683 <pre data-parsoid='{"stx":"html"}'>
2688 <pre data-parsoid='{"stx":"html"}'>
2696 HTML-pre: big spaces
2733 <pre data-parsoid='{"stx":"html"}'>
2752 HTML-pre: 2: indented text
2765 HTML-pre: 3: other wikitext
2786 ### Definition lists
2793 <dl><dt> name </dt>
2794 <dd> Definition</dd></dl>
2799 Definition list for indentation only
2803 <dl><dd> Indented text</dd></dl>
2808 Definition list with no space
2813 <dd>Definition</dd></dl>
2818 Definition list with URL link
2820 ; http://example.com/ : definition
2822 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2823 <dd> definition</dd></dl>
2828 Definition list with bracketed URL link
2830 ;[http://www.example.com/ Example]:Something about it
2832 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2833 <dd>Something about it</dd></dl>
2838 Definition list with wikilink containing colon
2840 ; [[Help:FAQ]]: The least-read page on Wikipedia
2842 <dl><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>
2843 <dd> The least-read page on Wikipedia</dd></dl>
2847 # At Brion's and JeLuF's insistence... :)
2849 Definition list with news link containing colon
2851 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2853 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2854 <dd> This isn't even a real newsgroup!</dd></dl>
2859 Malformed definition list with colon
2861 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2863 <dl><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</dt></dl>
2868 Definition lists: colon in external link text
2870 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2872 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2873 <dd> OK, I made that up</dd></dl>
2878 Definition lists: colon in HTML attribute
2880 ;<b style="display: inline">bold</b>
2882 <dl><dt><b style="display: inline">bold</b></dt></dl>
2887 Definition lists: self-closed tag
2889 ;one<br/>two : two-line fun
2891 <dl><dt>one<br />two </dt>
2892 <dd> two-line fun</dd></dl>
2897 Bug 11748: Literal closing tags
2901 <dd>test test test test test</dd>
2903 <dd>test test test test test</dd>
2908 <dd>test test test test test</dd>
2910 <dd>test test test test test</dd>
2916 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2919 ; term : description
2924 <dl><dt> term </dt>
2925 <dd> description</dd></dl>
2926 <ul><li> unordered</li></ul>
2933 Definition list with empty definition and following paragraph
2945 Nested definition lists using html syntax
2954 Definition Lists: No nesting: Multiple dd's
2967 Definition Lists: Indentation: Regular
2975 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
2980 Definition Lists: Indentation: Missing 1st level
2986 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
2991 Definition Lists: Indentation: Multi-level indent
2995 <dl><dd><dl><dd><dl><dd>i3</dd></dl></dd></dl></dd></dl>
3000 Definition Lists: Hacky use to indent tables
3007 should be left alone
3009 <dl><dd><dl><dd><table>
3014 </td></tr></table></dd></dl></dd></dl>
3016 should be left alone
3021 Definition Lists: Hacky use to indent tables, with comments (bug 63979)
3029 should be left alone
3032 <dl><dd><dl><dd><table><tr>
3035 </tr></table><!-- bar --></dd></dl></dd></dl>
3037 should be left alone</p>
3041 Definition Lists: Hacky use to indent tables, with comment before table
3047 <dl><dd><dl><dd><!-- foo --><table><tr>
3049 </tr></table></dd></dl></dd></dl>
3054 Definition Lists: Hacky use to indent tables (WS-insensitive)
3063 <dd> <table><tr><td>a</td></tr></table> </dd>
3066 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
3067 ## as an empty dt item. It also ignores all but the last ";" when followed
3068 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
3069 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
3072 ## Ex: ";;t2 ::d2" is transformed into:
3084 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
3085 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
3096 ## All Parsoid only definition list tests have this difference.
3098 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
3099 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
3102 Table / list interaction: indented table with lists in table contents
3117 <ul><li> b</li></ul>
3121 <ul><li> d</li></ul>
3122 </td></tr></table></dd></dl>
3127 Table / list interaction: lists nested in tables nested in indented lists
3150 </td></tr></table></dd></dl>
3157 Definition Lists: Nesting: Multi-level (Parsoid only)
3187 Definition Lists: Nesting: Test 2 (Parsoid only)
3207 Definition Lists: Nesting: Test 3 (Parsoid only)
3235 Definition Lists: Nesting: Test 4
3240 <dl><dd><dl><dd><dl><dt>t3</dt>
3241 <dd>d3</dd></dl></dd></dl></dd></dl>
3246 ## The Parsoid team believes the following three test exposes a
3247 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
3248 ## wrong to close the <dl> after the <dt> containing the <ul>.)
3250 Definition Lists: Mixed Lists: Test 1
3256 <dl><dd><dl><dt><ul><li> foo</li>
3257 <li> bar</li></ul></dt></dl>
3258 <dl><dt> baz</dt></dl></dd></dl>
3277 Definition Lists: Mixed Lists: Test 2
3282 <ul><li><dl><dd> d1</dd>
3283 <dd> d2</dd></dl></li></ul>
3289 Definition Lists: Mixed Lists: Test 3
3294 <ul><li><dl><dd><dl><dd><dl><dd> d1</dd>
3295 <dd> d2</dd></dl></dd></dl></dd></dl></li></ul>
3301 Definition Lists: Mixed Lists: Test 4
3306 <ul><li><dl><dt>d1 </dt>
3309 <dd>d4</dd></dl></li></ul>
3315 Definition Lists: Mixed Lists: Test 5
3321 <dl><dd> d2</dd></dl></dd></dl></li></ul>
3327 Definition Lists: Mixed Lists: Test 6
3332 <ol><li><ul><li><dl><dd>d1
3333 <dl><dd><dl><dd> d3</dd></dl></dd></dl></dd></dl></li></ul></li></ol>
3339 Definition Lists: Mixed Lists: Test 7
3344 <dl><dd><ul><li> d1</li>
3345 <li> d2</li></ul></dd></dl>
3351 Definition Lists: Mixed Lists: Test 8
3356 <dl><dd><ul><li> d1</li></ul>
3357 <dl><dd><ul><li> d2</li></ul></dd></dl></dd></dl>
3363 Definition Lists: Mixed Lists: Test 9
3367 <ul><li><dl><dt>foo </dt>
3368 <dd>bar</dd></dl></li></ul>
3374 Definition Lists: Mixed Lists: Test 10
3378 <ul><li><ol><li><dl><dt>foo </dt>
3379 <dd>bar</dd></dl></li></ol></li></ul>
3383 # The Parsoid team disagrees with the PHP parser's seemingly-random
3384 # rules regarding dd/dt on the next two tests. Parsoid is more
3385 # consistent, and recognizes the shared nesting and keeps the
3386 # still-open tags around until the nesting is complete.
3389 Definition Lists: Mixed Lists: Test 11
3394 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt>
3395 <dd><ul><li><dl><dt><dl><dt>bar</dt></dl></dd></dl></li></ul></dd></dl>
3396 <dl><dt>boo </dt>
3397 <dd>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
3415 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3416 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3420 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3421 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3431 Definition Lists: Weird Ones: Test 1
3433 *#;*::;; foo : bar (who uses this?)
3435 <ul><li><ol><li><dl><dt> foo </dt>
3436 <dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)</dt></dl></dd></dl></dd></dl></dd></dl></li></ul></dd></dl></li></ol></li></ul>
3454 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3455 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3470 External links: non-bracketed
3472 Non-bracketed: http://example.com
3474 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3478 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
3480 External links: numbered
3482 Numbered: [http://example.com]
3483 Numbered: [http://example.net]
3484 Numbered: [http://example.com]
3486 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3487 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3488 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3491 <p>Numbered: <a rel="mw:ExtLink" href="http://example.com"></a>
3492 Numbered: <a rel="mw:ExtLink" href="http://example.net"></a>
3493 Numbered: <a rel="mw:ExtLink" href="http://example.com"></a></p>
3497 External links: specified text
3499 Specified text: [http://example.com link]
3501 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3506 External links: trail
3508 Linktrails should not work for external links: [http://example.com link]s
3510 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3515 External links: dollar sign in URL
3517 http://example.com/1$2345
3519 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3523 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
3525 External links: dollar sign in URL (autonumber)
3527 [http://example.com/1$2345]
3529 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3532 <p><a rel="mw:ExtLink" href="http://example.com/1$2345"></a></p>
3536 External links: open square bracket forbidden in URL (bug 4377)
3538 parsoid=wt2html,wt2wt,html2html
3540 http://example.com/1[2345
3542 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3545 <p><a rel="mw:ExtLink" href="http://example.com/1">http://example.com/1</a>[2345</p>
3549 External links: open square bracket forbidden in URL (named) (bug 4377)
3551 parsoid=wt2html,html2html
3553 [http://example.com/1[2345]
3555 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3558 <p><a rel="mw:ExtLink" href="http://example.com/1">[2345</a></p>
3561 # parsoid adds a space before the link name
3563 External links: open square bracket forbidden in URL (named) (bug 4377)
3566 [http://example.com/1 [2345]
3568 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3573 External links: nowiki in URL link text (bug 6230)
3575 [http://example.com/ <nowiki>''example site''</nowiki>]
3577 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3582 External links: newline forbidden in text (bug 6230 regression check)
3584 [http://example.com/ first
3587 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3593 External links: Pipe char between url and text
3595 [http://example.com | link]
3597 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3602 External links: protocol-relative URL in brackets
3604 [//example.com/ Test]
3606 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3610 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
3612 External links: protocol-relative URL in brackets without text
3616 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3619 <p><a rel="mw:ExtLink" href="//example.com"></a></p>
3623 External links: protocol-relative URL in free text is left alone
3627 <p>//example.com/Foo
3632 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3634 foo//example.com/Foo
3636 <p>foo//example.com/Foo
3641 External links: with no contents
3643 [http://en.wikipedia.org/wiki/Foo]
3645 [[wikipedia:Foo|Bar]]
3647 [[wikipedia:Foo|<span>Bar</span>]]
3649 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo"></a></p>
3650 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo">Bar</a></p>
3651 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo"><span>Bar</span></a></p>
3657 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3659 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3664 External image from https
3666 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3668 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3673 External image (when not allowed)
3675 wgAllowExternalImages=0
3677 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3679 <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>
3684 Link to non-http image, no img tag
3686 Link to non-http image, no img tag: ftp://example.com/test.jpg
3688 <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>
3693 External links: terminating separator
3695 Terminating separator: http://example.com/thing,
3697 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3702 External links: intervening separator
3704 Intervening separator: http://example.com/1,2,3
3706 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3711 External links: old bug with URL in query
3713 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3715 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3720 External links: old URL-in-URL bug, mixed protocols
3722 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3724 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3729 External links: URL in text
3731 URL in text: [http://example.com http://example.com]
3733 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3738 External links: Clickable images
3740 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3742 <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>
3747 External links: raw ampersand
3749 Old & use: http://x&y
3751 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3756 External links: encoded ampersand
3758 Old & use: http://x&y
3760 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3763 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y">http://x&y</a></p>
3767 External links: encoded equals (bug 6102)
3769 http://example.com/?foo=bar
3771 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3774 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a></p>
3778 ## Note that parsoid doesn't explicit mark autonumbered links, nor
3779 ## does it number them. As discussed in bug 53505, we can identify
3780 ## autonumbered links via CSS.
3784 External links: [raw ampersand]
3786 Old & use: [http://x&y]
3788 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3791 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
3794 # note that parsoid html is identical to [raw ampersand] case; so html2wt
3795 # mode will return the [raw ampersand] wikitext
3797 External links: [encoded ampersand]
3799 parsoid=wt2html,wt2wt,html2html
3801 Old & use: [http://x&y]
3803 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3806 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
3810 External links: [raw equals]
3812 [http://example.com/?foo=bar]
3814 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3817 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
3820 # note that parsoid html is identical to [raw equals] case; so html2wt
3821 # mode will return the [raw equals] wikitext
3823 External links: [encoded equals] (bug 6102)
3825 parsoid=wt2html,wt2wt,html2html
3827 [http://example.com/?foo=bar]
3829 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3832 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
3835 # xxx parsoid strips the IDN character, so the round-trip tests will
3836 # obviously fail and are disabled. --cscott
3838 External links: [IDN ignored character reference in hostname; strip it right off]
3840 parsoid=wt2html,wt2wt,html2html
3842 [http://e‌xample.com/]
3844 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3847 <p><a rel="mw:ExtLink" href="http://example.com/"></a></p>
3850 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3851 # Where an external link could easily circumvent the sanitization of the text of
3852 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3853 # test demands a higher standard. That's a bit strange.
3857 # http://example.com -> [http://example.com|http://example.com]
3858 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3860 # The first example is sanitized, but the second is not. Any security benefits
3861 # from this production are trivial to circumvent. Either remove this test and
3862 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3863 # the test accordingly.
3867 # xxx parsoid strips the IDN character, so the round-trip tests will
3868 # obviously fail and are disabled. --cscott
3870 External links: IDN ignored character reference in hostname; strip it right off
3872 parsoid=wt2html,html2html
3874 http://e‌xample.com/
3876 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3879 <p><a rel="mw:ExtLink" href="http://example.com/">http://example.com/</a></p>
3883 External links: www.jpeg.org (bug 554)
3887 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3891 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
3893 External links: URL within URL (original bug 2)
3895 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3897 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3900 <p><a rel="mw:ExtLink" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp"></a></p>
3904 BUG 361: URL inside bracketed URL
3906 [http://www.example.com/foo http://www.example.com/bar]
3908 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3913 BUG 361: URL within URL, not bracketed
3915 http://www.example.com/foo?=http://www.example.com/bar
3917 <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>
3922 BUG 289: ">"-token in URL-tail
3924 http://www.example.com/<hello>
3926 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3931 BUG 289: literal ">"-token in URL-tail
3933 http://www.example.com/<b>html</b>
3935 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3940 BUG 289: ">"-token in bracketed URL
3942 [http://www.example.com/<hello> stuff]
3944 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3949 BUG 289: literal ">"-token in bracketed URL
3951 [http://www.example.com/<b>html</b> stuff]
3953 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3958 BUG 289: literal double quote at end of URL
3960 http://www.example.com/"hello"
3962 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3967 BUG 289: literal double quote in bracketed URL
3969 [http://www.example.com/"hello" stuff]
3971 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3976 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3978 [http://www.example.com test]
3980 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3985 External links: link text with spaces
3987 [http://www.example.com a b c]
3988 [http://www.example.com ''a'' ''b'']
3990 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3991 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3996 External links: wiki links within external link (Bug 3695)
3998 [http://example.com [[wikilink]] embedded in ext link]
4000 <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>
4003 <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>
4007 BUG 787: Links with one slash after the url protocol are invalid
4011 [http:/example.com title]
4013 <p>http:/example.com
4014 </p><p>[http:/example.com title]
4019 Bracketed external links with template-generated invalid target
4021 [{{echo|http:/example.com}} title]
4023 <p>[http:/example.com title]
4028 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
4030 ''[http://example.com text'']
4031 [http://example.com '''text]'''
4032 ''Something [http://example.com in italic'']
4033 ''Something [http://example.com mixed''''', even bold]'''
4034 '''''Now [http://example.com both''''']
4036 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
4037 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
4038 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
4039 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
4040 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
4046 Bug 4781: %26 in URL
4048 http://www.example.com/?title=AT%26T
4050 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
4053 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a></p>
4056 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
4057 # % is actually legal in HTML5. Any change in output would need testing though.
4059 Bug 4781, 5267: %25 in URL
4061 http://www.example.com/?title=100%25_Bran
4063 <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>
4066 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a></p>
4070 Bug 4781, 5267: %28, %29 in URL
4072 http://www.example.com/?title=Ben-Hur_%281959_film%29
4074 <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>
4077 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a></p>
4082 Bug 4781: %26 in autonumber URL
4084 [http://www.example.com/?title=AT%26T]
4086 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
4089 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T"></a></p>
4093 Bug 4781, 5267: %26 in autonumber URL
4095 [http://www.example.com/?title=100%25_Bran]
4097 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
4100 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran"></a></p>
4104 Bug 4781, 5267: %28, %29 in autonumber URL
4106 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
4108 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
4111 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29"></a></p>
4116 Bug 4781: %26 in bracketed URL
4118 [http://www.example.com/?title=AT%26T link]
4120 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
4123 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">link</a></p>
4127 Bug 4781, 5267: %25 in bracketed URL
4129 [http://www.example.com/?title=100%25_Bran link]
4131 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
4136 Bug 4781, 5267: %28, %29 in bracketed URL
4138 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
4140 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
4143 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a></p>
4146 # Note that parsoid does not munge anchor text; all non-space
4147 # characters are valid in HTML5 ids.
4149 Anchor containing a #. (bug 63430)
4151 [[Main Page#And#Link]]
4153 <p><a href="/wiki/Main_Page#And.23Link" title="Main Page">Main Page#And#Link</a>
4156 <p><a rel="mw:WikiLink" href="./Main_Page#And%23Link">Main Page#And#Link</a></p>
4159 # Note that parsoid does not munge anchor text; all non-space
4160 # characters are valid in HTML5 ids.
4162 Anchor containing a #. (bug 63430)
4164 [[Main Page#And#Link]]
4166 <p><a href="/wiki/Main_Page#And.23Link" title="Main Page">Main Page#And#Link</a>
4169 <p><a rel="mw:WikiLink" href="./Main_Page#And%23Link">Main Page#And#Link</a></p>
4173 External link containing a period in the anchor. (bug 63947)
4175 [//foo.org/bar#baz. bang]
4177 [//foo.org/bar. bang]
4179 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4180 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4183 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4184 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4188 External link containing a single quote. (bug 63947)
4192 [//foo.org/bar'baz bang]
4194 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4195 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4198 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4199 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4204 External link containing a period in the anchor. (bug 63947)
4206 [//foo.org/bar#baz. bang]
4208 [//foo.org/bar. bang]
4210 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4211 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4214 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4215 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4219 External link containing a single quote. (bug 63947)
4223 [//foo.org/bar'baz bang]
4225 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4226 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4229 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4230 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4235 External link containing double-single-quotes in text '' (bug 4598 sanity check)
4237 Some [http://example.com/ pretty ''italics'' and stuff]!
4239 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
4244 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
4246 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
4248 <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>
4253 External link containing double-single-quotes with no space separating the url from text in italics
4255 [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]].]
4257 <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>
4260 <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>
4264 External link with comments in link text
4266 [http://www.google.com Google <!-- comment -->]
4268 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
4273 URL-encoding in URL functions (single parameter)
4275 {{localurl:Some page|amp=&}}
4277 <p>/index.php?title=Some_page&amp=&
4282 URL-encoding in URL functions (multiple parameters)
4284 {{localurl:Some page|q=?&=&}}
4286 <p>/index.php?title=Some_page&q=?&amp=&
4293 http://example.com/index.php?foozoid%5B%5D=bar
4295 http://example.com/index.php?foozoid[]=bar
4297 <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>
4298 </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>
4301 <p><a rel="mw:ExtLink" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a></p>
4303 <p><a rel="mw:ExtLink" href="http://example.com/index.php?foozoid[]=bar">http://example.com/index.php?foozoid[]=bar</a></p>
4307 IPv6 urls (bug 21261)
4311 http://[2404:130:0:1000::187:2]/index.php
4313 <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>
4318 Non-extlinks in brackets
4327 [{{echo|foo}} ''bar'']
4328 [{{echo|foo}}l's] errand
4329 [{{echo|foo}}l's errand]
4331 [url=http://example.com]
4344 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
4349 Percent encoding in external links
4351 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
4353 <p><a rel="nofollow" class="external text" href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a>
4356 <p><a rel="mw:ExtLink"
4357 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
4361 Use url link syntax for links where the content is equal the link target
4365 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4368 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
4372 Parenthesis in external links, especially URL links
4376 http://example.com/test)
4378 http://example.com/(test)
4380 http://example.com/((test)
4382 (http://example.com/(test))
4384 (http://example.com/(test)))))
4386 http://example.com/a)b
4388 [http://example.com) foo]
4390 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4391 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
4392 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</a>
4393 </p><p><a rel="nofollow" class="external free" href="http://example.com/((test)">http://example.com/((test)</a>
4394 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test))">http://example.com/(test))</a>
4395 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test)))))">http://example.com/(test)))))</a>
4396 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
4397 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
4400 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
4401 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
4402 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</a></p>
4403 <p><a rel="mw:ExtLink" href="http://example.com/((test)">http://example.com/((test)</a></p>
4404 <p>(<a rel="mw:ExtLink" href="http://example.com/(test))">http://example.com/(test))</a></p>
4405 <p>(<a rel="mw:ExtLink" href="http://example.com/(test)))))">http://example.com/(test)))))</a></p>
4406 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
4407 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
4411 Parenthesis in external links, w/ transclusion or comment
4413 (http://example.com/{{echo|hi}})
4415 (http://example.com<!-- hi -->)
4417 <p>(<a rel="nofollow" class="external free" href="http://example.com/hi">http://example.com/hi</a>)
4418 </p><p>(<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4421 <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;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[20,31,null,null]}\">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>
4423 <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>
4433 Normal text. '''Bold text.''' Normal text. ''Italic text.''
4435 Normal text. '''''Bold italic text.''''' Normal text.
4437 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
4438 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
4443 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
4444 # parser strips. The wikitext contains just the first half of the bold
4447 Unclosed and unmatched quotes
4449 '''''Bold italic text '''with bold deactivated''' in between.'''''
4451 '''''Bold italic text ''with italic deactivated'' in between.'''''
4455 ..spanning two paragraphs (should not work).'''
4457 '''Bold tag left open
4459 ''Italic tag left open
4463 <!-- Unmatching number of opening, closing tags: -->
4464 '''This year''''s election ''should'' beat '''last year''''s.
4466 ''Tom'''s car is bigger than ''Susan'''s.
4468 Plain ''italic'''s plain
4470 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4471 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4472 </p><p><b>Bold text..</b>
4473 </p><p>..spanning two paragraphs (should not work).
4474 </p><p><b>Bold tag left open</b>
4475 </p><p><i>Italic tag left open</i>
4477 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4478 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4479 </p><p>Plain <i>italic'</i>s plain
4482 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4483 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4484 </p><p><b>Bold text..</b>
4485 </p><p>..spanning two paragraphs (should not work).<b></b>
4486 </p><p><b>Bold tag left open</b>
4487 </p><p><i>Italic tag left open</i>
4489 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4490 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4491 </p><p>Plain <i>italic'</i>s plain
4498 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4501 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4502 # is the bare minimum required by the spec, see:
4503 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4504 # Parsoid team replies: empty table tags are legal in HTML5
4506 A table with no data.
4519 A table with stray table end tags on start tag line (wt2html)
4523 {|style="color: red;"|}
4525 {|style="color: red;" |}
4529 {|style="color: red;"|} id="foo"
4533 {|style="color: red;" |} id="foo"
4537 <table style="color: red;"></table>
4539 <table style="color: red;">
4545 <table style="color: red;" id="foo">
4551 <table style="color: red;" id="foo">
4560 A table with no data (take 2)
4568 # A table with nothing but a caption is invalid XHTML, we might want to render
4569 # this as <p>caption</p>
4570 # Parsoid team replies: table with only a caption is legal in HTML5
4572 A table with nothing but a caption
4580 </caption><tr><td></td></tr></table>
4583 <table><caption> caption</caption></table>
4587 A table with caption with default-spaced attributes and a table row
4590 |+ style="color: red;" | caption1
4596 <caption style="color: red;"> caption1
4605 A table with captions with non-default spaced attributes and a table row
4608 |+style="color: red;"|caption2
4609 |+ style="color: red;"| caption3
4615 <caption style="color: red;">caption2
4617 <caption style="color: red;"> caption3
4626 Table td-cell syntax variations
4630 | foo bar foo || baz
4631 | style='color:red;' | baz
4632 | style='color:red;' || baz
4639 <td> foo bar foo </td>
4642 <td style="color:red;"> baz
4644 <td> style='color:red;' </td>
4672 Simple table but with multiple dashes for row wikitext
4690 Multiplication table
4692 {| border="1" cellpadding="2"
4693 |+Multiplication table
4695 ! × !! 1 !! 2 !! 3
4713 <table border="1" cellpadding="2">
4714 <caption>Multiplication table
4761 Accept "||" in table headings
4776 Accept "||" in indented table headings
4786 </th></tr></table></dd></dl>
4791 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4808 Accept "| !" at start of line in tables (ignore !-attribute)
4812 | !style="color:red" | bar
4824 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 +/-
4828 |style='color:red;'|+1
4829 |style='color:blue;'|-1
4841 <td style="color:red;">+1
4843 <td style="color:blue;">-1
4867 |rowspan=2| Cell 2, row 1 (and 2)
4878 <td rowspan="2"> Cell 2, row 1 (and 2)
4896 {| bgcolor=#ABCDEF border=2
4901 |the original table again
4909 <table bgcolor="#ABCDEF" border="2">
4917 <td>the original table again
4923 Invalid attributes in table cell (bug 1830)
4937 # The "|}" to close the table is missing from the input, so parsoid's
4938 # *2wt modes will fail.
4940 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4942 parsoid=wt2html,html2html
4945 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4949 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4950 <td>]" onmouseover="alert(document.cookie)">test
4958 <td><a rel="mw:ExtLink" href="ftp://|x||"></a>" onmouseover="alert(document.cookie)">test</td></tr></tbody></table>
4963 Indented table markup mixed with indented pre content (proposed in bug 6200)
4968 Text that should be rendered preformatted
4976 <pre>Text that should be rendered preformatted
4985 Template-generated table cell attributes and cell content
4994 <td style="color: red"> Foo
4996 <td style="color: red"> Foo
5002 Template-generated table cell attributes and cell content (2)
5005 |align=center {{table_attribs}}
5010 <td align="center" style="color: red"> Foo
5016 Template-generated table cell attributes and cell content (3)
5019 |align=center {{table_cells}}
5024 <td align="center" style="color: red"> Foo </td>
5032 Table with row followed by newlines and table heading
5050 Table with empty line following the start tag
5067 # FIXME: Preserve the attribute properly (with an empty string as value) in
5068 # the PHP parser. Parsoid implements the behavior below.
5070 Table attributes with empty value
5080 </td></tr></tbody></table>
5085 Wikitext table with a lot of comments
5108 Wikitext table with double-line table cell
5125 Table cell with a single comment
5141 # The expected HTML structure in this test is debatable. The PHP parser does
5142 # not parse this kind of table at all. The main focus for Parsoid is on
5143 # round-tripping, so this output is ok for now. TODO: revisit!
5145 Wikitext table with html-syntax row
5155 <td>foo</td></tr></tbody></table>
5159 Implicit <td> after a |-
5160 (PHP parser relies on Tidy to add the missing <td> tags)
5162 parsoid=wt2html,wt2wt
5175 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
5176 (PHP parser relies on Tidy to add the missing <td> tags)
5178 parsoid=wt2html,wt2wt
5190 <tr><td><pre>a</pre></td></tr>
5191 <tr><td> b</td></tr>
5197 Lists should be recognized in an implicit <td> context
5198 (PHP parser relies on Tidy to add the missing <td> tags)
5200 parsoid=wt2html,wt2wt
5217 Parsoid: Round-trip tables directly followed by content (bug 51219)
5219 parsoid=wt2html,wt2wt
5231 <td>foo</td></tr></tbody></table> bar
5235 <td>baz</td></tr></tbody></table><b>quux</b>
5239 Parsoid: Default to a newline after tables in new content (bug 51219)
5246 <nowiki> </nowiki>bar
5253 <tr><td>foo</td></tr></tbody></table> bar
5255 <tr><td>baz</td></tr></tbody></table><b>quux</b>
5259 Parsoid: newline inducing block nodes don't suppress <nowiki>
5271 Parsoid: Row-syntax table headings followed by comment & table cells
5273 parsoid=wt2html,wt2wt
5277 <!-- foo --> || baz || quux
5282 <tr><th>foo </th><th>bar </th>
5284 <td>quux</td></tr></tbody></table>
5289 Parsoid: Recover better from broken table attributes
5301 <p>foo</p></td></tr>
5309 Plain link, capitalized
5313 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5318 Plain link, uncapitalized
5322 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
5329 [[Main Page|The Main Page]]
5331 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
5336 Piped link with comment in link text
5338 [[Main Page|The Main<!--front--> Page]]
5340 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
5345 Piped link with multiple pipe characters in link text
5347 [[Main Page||The|Main|Page|]]
5349 <p><a href="/wiki/Main_Page" title="Main Page">|The|Main|Page|</a>
5352 <p><a rel="mw:WikiLink" href="Main_Page">|The|Main|Page|</a></p>
5360 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
5365 Broken link with fragment
5367 [[Zigzagzogzagzig#zug]]
5369 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
5374 Special page link with fragment
5376 [[Special:Version#anchor]]
5378 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
5383 Nonexistent special page link with fragment
5385 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
5387 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
5394 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
5396 <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>
5403 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
5405 <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>!!!
5416 Bug 43661: Piped links with identical prefixes
5418 [[prefixed article|prefixed articles with spaces]]
5420 [[prefixed article|prefixed articlesaoeu]]
5422 [[Main Page|Main Page test]]
5424 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
5425 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
5426 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
5432 Link with HTML entity in suffix / tail
5434 [[Main Page]]", [[Main Page]]a
5436 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
5441 Link with 3 brackets
5450 Link with 4 brackets
5454 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
5459 Piped link with 3 brackets
5461 [[[main page|the main page]]]
5463 <p>[[[main page|the main page]]]
5468 Piped link with extlink-like text
5471 [[Main Page|This is a [bar]]]
5473 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
5474 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
5479 Link with multiple pipes
5481 [[Main Page|The|Main|Page]]
5483 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
5490 [[Talk:Parser testing]], [[Meta:Disclaimers]]
5492 <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>
5497 Link with space in namespace
5499 [[User talk:Foo bar]]
5501 <p><a href="/index.php?title=User_talk:Foo_bar&action=edit&redlink=1" class="new" title="User talk:Foo bar (page does not exist)">User talk:Foo bar</a>
5506 MemoryAlpha:AlphaTest
5508 This is an article in the MemoryAlpha namespace
5509 (which shadows the memoryalpha interwiki link).
5513 Namespace takes precedence over interwiki link (bug 51680)
5515 [[MemoryAlpha:AlphaTest]]
5517 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5521 # The previous test doesn't work correctly in html2*, due to not recognizing the
5522 # link as an internal one. This one checks for the correct behavior.
5524 Link to namespace preferred over interwiki with correct rel attribute
5526 parsoid=html2wt,html2html
5528 [[MemoryAlpha:AlphaTest]]
5530 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5535 Piped link to namespace
5537 [[Meta:Disclaimers|The disclaimers]]
5539 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
5546 [[Usually caused by a typo (oops}]]
5548 <p>[[Usually caused by a typo (oops}]]
5555 Just a test of an article title containing a percent.
5559 Link containing % (not as a hex sequence)
5563 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
5566 <p><a rel="mw:WikiLink" href="./7%25_Solution">7% Solution</a></p>
5569 # note that the parsoid HTML is identical to the previous test output,
5570 # so the previous test ensures that the html2wt mode will generate the
5571 # "not as a hex sequence" wikitext.
5573 Link containing % as a single hex sequence interpreted to char
5575 parsoid=wt2wt,wt2html,html2html
5579 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
5582 <p><a rel="mw:WikiLink" href="./7%25_Solution">7% Solution</a></p>
5586 Link containing % as a double hex sequence interpreted to hex sequence
5590 <p>[[7%2525 Solution]]
5594 # note that parsoid does not munge anchor text; all non-space
5595 # characters are valid in HTML5 anchors.
5597 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
5598 Example for such a section: == < ==
5600 [[%23%3c]][[%23%3e]]
5602 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
5605 <p><a rel="mw:WikiLink" href="./Main%20Page#%3C">#<</a><a rel="mw:WikiLink" href="./Main%20Page#%3E">#></a></p>
5609 Link containing "<#" and ">#" as a hex sequences
5611 [[%3c%23]][[%3e%23]]
5613 <p>[[%3c%23]][[%3e%23]]
5618 Link containing an equals sign
5620 [[Special:BookSources/isbn=4-00-026157-6]]
5622 <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>
5625 <p><a rel="mw:WikiLink" href="./Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a></p>
5631 Just a test of an article title containing a tilde.
5634 # note that links containing signatures, like [[Foo~~~~]], are
5635 # massaged by the pre-save transform (PST) and so the tildes are never
5636 # seen by the parser.
5638 Link containing a tilde
5642 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
5645 <p><a rel="mw:WikiLink" href="./Foo~bar">Foo~bar</a></p>
5649 Link containing double-single-quotes '' (bug 4598)
5651 [[Lista d''e paise d''o munno]]
5653 <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>
5656 <p><a rel="mw:WikiLink" href="./Lista_d''e_paise_d''o_munno">Lista d''e paise d''o munno</a></p>
5660 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5662 Some [[Link|pretty ''italics'' and stuff]]!
5664 <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>!
5667 <p>Some <a rel="mw:WikiLink" href="Link">pretty <i>italics</i> and stuff</a>!</p>
5671 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5673 ''Some [[Link|pretty ''italics'' and stuff]]!''
5675 <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>
5680 Link with double quotes in title part (literal) and alternate part (interpreted)
5682 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5686 [[''Pentecoste''|Pentecoste]]
5688 [[''Pentecoste''|''Pentecoste'']]
5690 <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>
5691 </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>
5692 </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>
5693 </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>
5696 <meta typeof="mw:Placeholder"/>
5697 <p><a rel="mw:WikiLink" href="''Pentecoste''">''Pentecoste''</a></p>
5698 <p><a rel="mw:WikiLink" href="''Pentecoste''">Pentecoste</a></p>
5699 <p><a rel="mw:WikiLink" href="''Pentecoste''"><i>Pentecoste</i></a></p>
5703 Broken image links with HTML captions (bug 39700)
5705 [[File:Nonexistent|<script></script>]]
5706 [[File:Nonexistent|100px|<script></script>]]
5707 [[File:Nonexistent|<]]
5708 [[File:Nonexistent|a<i>b</i>c]]
5710 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5711 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5712 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5713 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5720 [[http://www.example.com]]
5722 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5725 <p>[<a rel="mw:ExtLink" href="http://www.example.com"></a>]</p>
5729 Plain link to URL with link text
5731 [[http://www.example.com Link text]]
5733 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5738 Plain link to protocol-relative URL
5740 [[//www.example.com]]
5742 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5745 <p>[<a rel="mw:ExtLink" href="//www.example.com"></a>]</p>
5749 Plain link to protocol-relative URL with link text
5751 [[//www.example.com Link text]]
5753 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5758 Plain link to page with question mark in title
5764 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5765 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5770 # I'm fairly sure the expected result here is wrong.
5771 # We want these to be URL links, not pseudo-pages with URLs for titles....
5772 # However the current output is also pretty screwy.
5775 # I'm changing it to match the current output--it arguably makes more
5776 # sense in the light of the test above. Old expected result was:
5777 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5779 # But I think this test is bordering on "garbage in, garbage out" anyway.
5784 Piped link to URL: [[http://www.example.com|an example URL]]
5786 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5789 <p>Piped link to URL: [<a rel="mw:ExtLink" href="http://www.example.com|an">example URL</a>]</p>
5793 BUG 2: [[page|http://url/]] should link to page, not http://url/
5795 [[Main Page|http://url/]]
5797 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5800 <p><a rel="mw:WikiLink" href="./Main_Page">http://url/</a></p>
5803 # Parsoid does not mark self-links, by design.
5805 BUG 337: Escaped self-links should be bold
5809 [[Bug462]] [[Bug462]]
5811 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5814 <p><a rel="mw:WikiLink" href="./Bug462">Bug462</a> <a rel="mw:WikiLink" href="./Bug462">Bug462</a></p>
5818 Self-link to section should not be bold
5822 [[Main Page#section]]
5824 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5835 Self-link to numeric title
5841 <p><strong class="selflink">0</strong>
5846 Link to numeric-equivalent title
5852 <p><a href="/wiki/00" title="00">00</a>
5857 <nowiki> inside a link
5859 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5861 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5866 Non-breaking spaces in title
5868 [[ Main Page ]]
5870 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5875 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5881 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5886 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5892 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5897 Internal link with en linktrail: no apostrophes (bug 27473)
5903 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5908 Internal link with ca linktrail with apostrophes (bug 27473)
5914 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5919 Internal link with kaa linktrail with apostrophes (bug 27473)
5925 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5930 Link with multiple ":" in a subpage-supporting namespace (bug 63636)
5932 [[User:Foo/Test/63636:Bar|Test]]
5934 <p><a href="/index.php?title=User:Foo/Test/63636:Bar&action=edit&redlink=1" class="new" title="User:Foo/Test/63636:Bar (page does not exist)">Test</a>
5937 <p><a rel="mw:WikiLink" href="./User:Foo/Test/63636:Bar">Test</a></p>
5941 1. Interaction of linktrail and template encapsulation
5947 <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>
5951 2. Interaction of linktrail and template encapsulation
5955 {{echo|Some [[Fool]]}}s
5957 <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>
5961 3. Interaction of linktrail and template encapsulation
5965 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
5967 <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>
5977 Internal link with is link prefix
5981 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5983 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5994 Internal link with is link trail and link prefix
5998 [[mótmælendatrú|xxx]]ar
6000 mótmælenda[[söfnuður]]
6001 mótmælenda[[söfnuður|söfnuðir]]
6002 mótmælenda[[söfnuður|söfnuðir]]xxx
6004 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
6005 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
6006 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
6007 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
6008 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
6013 Parsoid link trail escaping
6015 parsoid=html2wt,html2html
6019 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
6023 Parsoid link prefix escaping
6026 parsoid=html2wt,html2html
6028 Aðrir mótmælenda<nowiki/>[[söfnuður]]
6030 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
6034 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
6042 [http://wp.org ''foo'']
6044 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
6045 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
6046 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
6047 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
6052 Parsoid: Scoped parsing should handle mixed transclusions and plain text
6056 [[Foo|{{echo|a}} b {{echo|c}}]]
6058 <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>
6062 ### Interwiki links (see maintenance/interwiki.sql)
6066 Inline interwiki link
6068 [[MeatBall:SoftSecurity]]
6070 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
6075 Inline interwiki link with empty title (bug 2372)
6079 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
6084 Interwiki link encoding conversion (bug 1636)
6086 *[[Wikipedia:ro:Olteniţa]]
6087 *[[Wikipedia:ro:Olteniţa]]
6089 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a></li>
6090 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a></li></ul>
6095 Interwiki link with fragment (bug 2130)
6097 [[MeatBall:SoftSecurity#foo]]
6099 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
6103 # Ideally the wikipedia: prefix here should be proto-relative too
6105 Different interwiki prefixes mapping to the same URL
6113 [[:wikipedia:Foo|Foo]]
6115 [[wikipedia:en:Foo]]
6117 [[:wikipedia:en:Foo]]
6119 <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>
6121 <p><a rel="mw:ExtLink" href="//en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"piped","a":{"href":"//en.wikipedia.org/wiki/Foo"},"sa":{"href":":en:Foo"},"isIW":true}'>Foo</a></p>
6123 <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>
6125 <p><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}'>Foo</a></p>
6127 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/en:Foo" data-parsoid='{"stx":"simple","a":{"href":"http://en.wikipedia.org/wiki/en:Foo"},"sa":{"href":"wikipedia:en:Foo"},"isIW":true}'>wikipedia:en:Foo</a></p>
6129 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/en:Foo" data-parsoid='{"stx":"simple","a":{"href":"http://en.wikipedia.org/wiki/en:Foo"},"sa":{"href":":wikipedia:en:Foo"},"isIW":true}'>wikipedia:en:Foo</a></p>
6133 Interwiki links that cannot be represented in wiki syntax
6136 [[meatball:ok#foo|ok with fragment]]
6137 [[meatball:ok_as_well?|ok ending with ? mark]]
6138 [http://de.wikipedia.org/wiki/Foo?action=history has query]
6139 [http://de.wikipedia.org/wiki/#foo is just fragment]
6142 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok">meatball:ok</a>
6143 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo">ok with fragment</a>
6144 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well?">ok ending with ? mark</a>
6145 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
6146 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
6150 Interwiki links: trail
6154 [[wikipedia:Foo|Ba]]r
6156 <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>
6160 ### Interlanguage links
6161 ### Language links (so that searching for '### language' matches..)
6175 Double interlanguage link
6186 Interlanguage link, with prefix links
6198 Double interlanguage link, with prefix links (bug 8897)
6211 Parsoid-specific test: Wikilinks with should RT properly
6217 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
6222 Parsoid bug 53221: Wikilinks should be properly entity-escaped
6226 He&nbsp;llo [[Foo|He&nbsp;llo]]
6228 He&nbsp;llo [[He&nbsp;llo]]
6230 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
6231 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
6235 Parsoid: handle constructor well
6243 <p><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
6245 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
6249 Parsoid: recognize interlanguage links without a target page
6255 <p><link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
6259 Parsoid: recognize interwiki links without a target page
6265 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
6269 Parsoid: Bug #45209, handle interwiki links pointing to the current wiki as plain wiki links
6275 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"en:Foo"}}'>Foo</a></p>
6279 ### Redirects, Parsoid-only
6282 1. Simple redirect to page
6286 #REDIRECT [[Main Page]]
6288 <link rel="mw:PageProp/redirect" href="./Main_Page">
6291 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
6293 2. Other redirect variants
6295 parsoid=wt2html,wt2wt
6297 #REDIRECT [[Main_Page]]
6298 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
6300 <link rel="mw:PageProp/redirect" href="./Main_Page">
6301 <link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
6307 parsoid=wt2html,wt2wt
6312 <li>REDIRECT [[]]</li></ol>
6316 Optional colon in #REDIRECT
6318 # the colon is archaic syntax. we support it for wt2html, but we
6319 # don't care that it roundtrips back to the modern syntax.
6320 parsoid=wt2html,html2html
6322 #REDIRECT:[[Main Page]]
6324 <link rel="mw:PageProp/redirect" href="./Main_Page">
6328 Whitespace in #REDIRECT with optional colon
6330 # the colon and gratuitous whitespace is archaic syntax. we support
6331 # it for wt2html, but we don't care that it roundtrips back to the
6332 # modern syntax (without extra whitespace)
6333 parsoid=wt2html,html2html
6340 <link rel="mw:PageProp/redirect" href="./Main_Page">
6344 Piped link in #REDIRECT
6346 # content after piped link is ignored. we support this syntax,
6347 # but don't care that the piped link is lost when we roundtrip this.
6350 #REDIRECT [[Main Page|bar]]
6352 <link rel="mw:PageProp/redirect" href="./Main_Page">
6356 Redirect to category
6360 #REDIRECT [[Category:Foo]]
6362 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
6366 Redirect to category with URL encoding
6370 #REDIRECT [[Category%3AFoo]]
6372 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
6376 Redirect to category page
6378 parsoid=wt2html,html2html
6380 #REDIRECT [[:Category:Foo]]
6382 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
6386 Redirect to image page (1)
6390 #REDIRECT [[File:Wiki.png]]
6392 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
6396 Redirect to image page (2)
6400 #REDIRECT [[Image:Wiki.png]]
6402 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
6406 Redirect to language
6410 #REDIRECT [[en:File:Wiki.png]]
6412 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
6416 Redirect to interwiki
6420 #REDIRECT [[meatball:File:Wiki.png]]
6422 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
6426 Non-English #REDIRECT
6431 #TILVÍSUN [[Main Page]]
6433 <link rel="mw:PageProp/redirect" href="./Main_Page">
6444 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
6461 Broken br tag sanitization
6469 # TODO: Fix html2html mode (bug 51055)!
6471 Parsoid: Broken br tag recognition
6484 Incorrecly removing closing slashes from correctly formed XHTML
6486 <br style="clear:both;" />
6488 <p><br style="clear:both;" />
6493 Failing to transform badly formed HTML into correct XHTML
6495 <br style="clear: left;">
6496 <br style="clear: right;">
6497 <br style="clear: both;">
6499 <p><br style="clear: left;" />
6500 <br style="clear: right;" />
6501 <br style="clear: both;" />
6506 Handling html with a div self-closing tag
6515 <p><div title />
6519 <p><div title=bar />
6520 <div title=bar/>
6522 <div title="bar/"></div>
6528 Handling html with a br self-closing tag
6537 <p><br title="title" />
6538 <br title="title" />
6547 Horizontal ruler (should it add that extra space?)
6561 Horizontal ruler -- 4+ dashes render hr
6570 Horizontal ruler -- eats additional dashes on the same line
6579 Horizontal ruler -- does not collapse dashes on consecutive lines
6590 Horizontal ruler -- <4 dashes render as plain text
6599 Horizontal ruler -- Supports content following dashes on same line
6608 ### Block-level elements
6617 <ul><li>Common list</li>
6619 <li>item 3</li></ul>
6630 <ol><li>Numbered list</li>
6632 <li> item 3</li></ol>
6646 ***#Number on level 4
6648 **#Number on level 3
6649 **#Number on level 3
6653 #** Level 3, but ordered
6656 <ol><li> with numbers</li></ol>
6657 <ul><li> and bullets</li></ul>
6658 <ol><li> and numbers</li></ol></li>
6660 <ul><li>bullet level 2
6661 <ul><li>bullet level 3
6662 <ol><li>Number on level 4</li></ol></li></ul></li>
6664 <ol><li>Number on level 3</li>
6665 <li>Number on level 3</li></ol></li></ul>
6666 <ol><li>number level 2</li></ol></li>
6668 <ul><li><ul><li> Level 3</li></ul></li></ul></li></ul>
6669 <ol><li><ul><li><ul><li> Level 3, but ordered</li></ul></li></ul></li></ol>
6680 <ul><li>bar</li></ul></li></ul>
6690 <ul><li><ul><li>foo</li></ul></li>
6696 Nested lists 3 (first element empty)
6702 <ul><li>bar</li></ul></li></ul>
6707 Nested lists 4 (first element empty)
6712 <ul><li><ul><li></li></ul></li>
6718 Nested lists 5 (both elements empty)
6723 <ul><li><ul><li></li></ul></li>
6729 Nested lists 6 (both elements empty)
6735 <ul><li></li></ul></li></ul>
6740 Nested lists 7 (skip initial nesting levels)
6744 <ul><li><ul><li><ul><li> foo</li></ul></li></ul></li></ul>
6749 Nested lists 8 (multiple nesting transitions)
6757 <ul><li><ul><li> bar</li></ul></li>
6758 <li> baz</li></ul></li>
6764 1. Lists with start-of-line-transparent tokens before bullets: Comments
6777 2. Lists with start-of-line-transparent tokens before bullets: Template close
6782 <ul><li>foo bar</li>
6788 List items are not parsed correctly following a <pre> block (bug 785)
6794 <ul><li> <pre>foo</pre></li>
6795 <li> <pre>bar</pre></li>
6801 List items from template
6812 * notSOL{{inner list}}
6815 <ul><li> item 1</li>
6816 <li> item 2</li></ul>
6817 <ul><li> item 0</li>
6819 <li> item 2</li></ul>
6820 <ul><li> item 0</li>
6823 <li> item 2</li></ul>
6828 List interrupted by empty line or heading
6836 <ul><li> foo</li></ul>
6837 <ul><li><ul><li> bar</li></ul></li></ul>
6838 <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>
6839 <ul><li> Another list item</li></ul>
6844 Multiple list tags generated by templates
6859 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6862 <!--This line will NOT split the list-->
6864 <!--This line will NOT split the list either-->
6866 <!--foo--> <!----> <!--This line NOT split the list either-->
6877 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6880 <!--This line will NOT split the list-->
6882 <!--This line will NOT split the list either-->
6884 <!--foo--> <!----> <!--This line NOT split the list
6897 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6899 parsoid=wt2html,wt2wt
6903 * {{echo|<li>templated li-hack}}
6904 * <!--foo--> <li> unsupported li-hack with preceding comments
6907 <li><li>not a li-hack
6914 <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>
6915 <li> <!--foo--> </li>
6916 <li> li-hack with preceding comments</li>
6927 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6954 Parsoid: Test of whitespace serialization with Templated bullets
6961 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6965 # ------------------------------------------------------------------------
6966 # The next set of tests are about Parsoid's ability to handle badly nested
6967 # tags (parse, minimize scope of fixup, and roundtrip back)
6968 # ------------------------------------------------------------------------
6971 Unbalanced closing block tags break a list
6972 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6990 Unbalanced closing non-block tags don't break a list
6991 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
7008 Unclosed formatting tags that straddle lists are closed and reopened
7009 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
7023 List embedded in a non-block tag
7024 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
7030 <p><small></small></p>
7036 <p><small></small></p>
7040 Table with missing opening <tr> tag
7042 parsoid=wt2html,wt2wt
7060 # Note that the current date is hard-coded as
7061 # 1970-01-01T00:02:03Z (a Thursday)
7062 # when running parser tests. The timezone is also fixed to GMT, so
7063 # local date will be identical to current date.
7066 Magic Word: {{CURRENTDAY}}
7075 Magic Word: {{CURRENTDAY2}}
7084 Magic Word: {{CURRENTDAYNAME}}
7093 Magic Word: {{CURRENTDOW}}
7102 Magic Word: {{CURRENTMONTH}}
7111 Magic Word: {{CURRENTMONTH1}}
7120 Magic Word: {{CURRENTMONTHABBREV}}
7122 {{CURRENTMONTHABBREV}}
7129 Magic Word: {{CURRENTMONTHNAME}}
7131 {{CURRENTMONTHNAME}}
7138 Magic Word: {{CURRENTMONTHNAMEGEN}}
7140 {{CURRENTMONTHNAMEGEN}}
7147 Magic Word: {{CURRENTTIME}}
7156 Magic Word: {{CURRENTHOUR}}
7165 Magic Word: {{CURRENTWEEK}} (@bug 4594)
7174 Magic Word: {{CURRENTYEAR}}
7183 Magic Word: {{CURRENTTIMESTAMP}}
7185 {{CURRENTTIMESTAMP}}
7192 Magic Words LOCAL (UTC)
7196 * {{LOCALMONTHNAME}}
7197 * {{LOCALMONTHNAMEGEN}}
7198 * {{LOCALMONTHABBREV}}
7207 * {{LOCALTIMESTAMP}}
7222 <li> 19700101000203</li></ul>
7227 Magic Word: {{FULLPAGENAME}}
7229 title=[[User:Ævar Arnfjörð Bjarmason]]
7233 <p>User:Ævar Arnfjörð Bjarmason
7238 Magic Word: {{FULLPAGENAMEE}}
7240 title=[[User:Ævar Arnfjörð Bjarmason]]
7244 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7249 Magic Word: {{TALKSPACE}}
7251 title=[[User:Ævar Arnfjörð Bjarmason]]
7260 Magic Word: {{TALKSPACE}}, same namespace
7262 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7271 Magic Word: {{TALKSPACE}}, main namespace
7273 title=[[Parser Test]]
7282 Magic Word: {{TALKSPACEE}}
7284 title=[[User:Ævar Arnfjörð Bjarmason]]
7293 Magic Word: {{SUBJECTSPACE}}
7295 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7304 Magic Word: {{SUBJECTSPACE}}, same namespace
7306 title=[[User:Ævar Arnfjörð Bjarmason]]
7315 Magic Word: {{SUBJECTSPACE}}, main namespace
7317 title=[[Parser Test]]
7325 Magic Word: {{SUBJECTSPACEE}}
7327 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7336 Magic Word: {{NAMESPACE}}
7338 title=[[User:Ævar Arnfjörð Bjarmason]]
7347 Magic Word: {{NAMESPACEE}}
7349 title=[[User:Ævar Arnfjörð Bjarmason]]
7358 Magic Word: {{NAMESPACENUMBER}}
7360 title=[[User:Ævar Arnfjörð Bjarmason]]
7369 Magic Word: {{SUBPAGENAME}}
7371 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7380 Magic Word: {{SUBPAGENAMEE}}
7382 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7391 Magic Word: {{ROOTPAGENAME}}
7393 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7397 <p>Ævar Arnfjörð Bjarmason
7402 Magic Word: {{ROOTPAGENAMEE}}
7404 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7408 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7413 Magic Word: {{BASEPAGENAME}}
7415 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7419 <p>Ævar Arnfjörð Bjarmason
7424 Magic Word: {{BASEPAGENAMEE}}
7426 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7430 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7435 Magic Word: {{TALKPAGENAME}}
7437 title=[[User:Ævar Arnfjörð Bjarmason]]
7441 <p>User talk:Ævar Arnfjörð Bjarmason
7446 Magic Word: {{TALKPAGENAMEE}}
7448 title=[[User:Ævar Arnfjörð Bjarmason]]
7452 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7457 Magic Word: {{SUBJECTPAGENAME}}
7459 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7463 <p>User:Ævar Arnfjörð Bjarmason
7468 Magic Word: {{SUBJECTPAGENAMEE}}
7470 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7472 {{SUBJECTPAGENAMEE}}
7474 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7479 Magic Word: {{NUMBEROFFILES}}
7488 Magic Word: {{PAGENAME}}
7490 title=[[User:Ævar Arnfjörð Bjarmason]]
7494 <p>Ævar Arnfjörð Bjarmason
7499 Magic Word: {{PAGENAME}} with metacharacters
7501 title=[['foo & bar = baz']]
7505 <p><i>'foo & bar = baz'</i>
7510 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
7512 title=[[*RFC 1234 http://example.com/]]
7516 <p>*RFC 1234 http://example.com/
7521 Magic Word: {{PAGENAMEE}}
7523 title=[[User:Ævar Arnfjörð Bjarmason]]
7527 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7532 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
7534 title=[[*RFC 1234 http://example.com/]]
7538 <p>*RFC_1234_http://example.com/
7543 Magic Word: {{REVISIONID}}
7552 Magic Word: {{SCRIPTPATH}}
7561 Magic Word: {{STYLEPATH}}
7570 Magic Word: {{SERVER}}
7574 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7579 Magic Word: {{SERVERNAME}}
7588 Magic Word: {{SITENAME}}
7597 Case-sensitive magic words, when cased differently, should just be template transclusions
7604 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
7605 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
7606 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
7607 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
7612 Case-insensitive magic words should still work with weird casing.
7622 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7627 Namespace 1 {{ns:1}}
7636 Namespace 1 {{ns:01}}
7645 Namespace 0 {{ns:0}} (bug 4783)
7653 Namespace 0 {{ns:00}} (bug 4783)
7661 Namespace -1 {{ns:-1}}
7670 Namespace User {{ns:User}}
7679 Namespace User talk {{ns:User_talk}}
7688 Namespace User talk {{ns:uSeR tAlK}}
7697 Namespace File {{ns:File}}
7706 Namespace File {{ns:Image}}
7715 Namespace (lang=de) Benutzer {{ns:User}}
7726 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7732 <p>Benutzer Diskussion
7740 {{urlencode:hi world?!}}
7741 {{urlencode:hi world?!|WIKI}}
7742 {{urlencode:hi world?!|PATH}}
7743 {{urlencode:hi world?!|QUERY}}
7753 Magic Word: prioritize type info over data-parsoid
7759 <meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__"}'/>
7763 Magic Word: serialize on separate line (parsoid)
7765 parsoid=wt2wt,html2wt
7771 foo<meta property="mw:PageProp/notoc"/>bar
7775 Magic Word: rt non-english wikis
7782 <meta property="mw:PageProp/noeditsection" data-parsoid='{"src":"__NOEDITSECTION__","magicSrc":"__NOEDITSECTION__"}'/>
7789 Magic links: internal link to RFC (bug 479)
7793 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7798 Magic links: RFC (bug 479)
7802 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7807 Magic links: ISBN (bug 1937)
7811 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7816 Magic links: PMID incorrectly converts space to underscore
7820 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7829 Nonexistent template
7831 {{thistemplatedoesnotexist}}
7833 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7838 Template with invalid target containing tags
7840 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7842 <p>{{a<b>b</b>|foo|a=b|a = b}}
7847 Template with invalid target containing unclosed tag
7849 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7851 <p>{{a<b>|foo|a=b|a = b}}</b>
7856 Template with invalid target containing wikilink
7860 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
7863 <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>
7869 This is a test template
7877 <p>This is a test template
7882 Template with explicit namespace
7886 <p>This is a test template
7894 This is a test template with parameter {{{param}}}
7900 {{paramtest|param=foo}}
7902 <p>This is a test template with parameter foo
7907 Template:paramtestnum
7913 Template unnamed parameter
7915 {{paramtestnum|Main Page|the main page}}
7917 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7922 Template:templatesimple
7928 Template:templateredirect
7930 #redirect [[Template:templatesimple]]
7934 Template:templateasargtestnum
7940 Template:templateasargtest
7942 {{template{{{templ}}}}}
7946 Template:templateasargtest2
7952 Template with template name as unnamed argument
7954 {{templateasargtestnum|templatesimple}}
7961 Template with template name as argument
7963 {{templateasargtest|templ=simple}}
7970 Template with template name as argument (2)
7972 {{templateasargtest2|templ=templatesimple}}
7979 Template:templateasargtestdefault
7981 {{{{{templ|templatesimple}}}}}
7991 Template with default value
7993 {{templateasargtestdefault}}
8000 Template with default value (value set)
8002 {{templateasargtestdefault|templ=templa}}
8011 {{templateredirect}}
8018 Template with argument in separate line
8020 {{ templateasargtest |
8028 Template with complex template as argument
8031 param ={{ templateasargtest |
8034 <p>This is a test template with parameter (test)
8039 Template with thumb image (with link in description)
8042 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
8044 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>
8049 Template:complextemplate
8051 {{{1}}} {{paramtest|
8052 param ={{{param}}}}}
8056 Template with complex arguments
8059 param ={{ templateasargtest |
8060 templ = simple }}|[[Template:complextemplate|link]]}}
8062 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
8067 BUG 553: link with two variables in a piped link
8070 |[[{{{1}}}|{{{2}}}]]
8075 <td>[[{{{1}}}|{{{2}}}]]
8081 Magic variable as template parameter
8083 {{paramtest|param={{SITENAME}}}}
8085 <p>This is a test template with parameter MediaWiki
8092 [[{{{param}}}|link]]
8096 Template parameter as link source
8098 {{linktest|param=Main Page}}
8100 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
8105 Template-generated attribute string (k='v')
8107 <span {{attr_str|id|v1}}>bar</span>
8109 <p><span id="v1">bar</span>
8116 including another template, {{paramtest|param={{{arg}}}}}
8120 Template passing argument to another template
8122 {{paramtest2|arg='hmm'}}
8124 <p>including another template, This is a test template with parameter 'hmm'
8135 Template as link source
8139 [[{{linktest2}}|Main Page]]
8141 [[{{linktest2}}]]Page
8143 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8144 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8145 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
8163 Template infinite loop
8167 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
8172 Template from main namespace
8191 BUG 529: Template with table, not included at beginning of line
8210 BUG 523: Template shouldn't eat newline (or add an extra one before table)
8230 BUG 41: Template parameters shown as broken links
8239 Template with targets containing wikilinks
8243 {{[[{{echo|foo}}]]}}
8245 {{{{echo|[[foo}}]]}}
8247 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
8248 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
8256 ''None'' of '''this''' should be
8258 but rather passed unmodified
8262 # hmm, fix this or just deprecate msgnw and document its behavior?
8268 {{msgnw:MSGNW test}}
8270 <p>''None'' of '''this''' should be
8272 but rather passed unmodified
8280 {{int:youhavenewmessages|lots of money|not!}}
8282 <p>You have lots of money (not!).
8289 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8293 <includeonly> and <noinclude> being included
8304 <onlyinclude>Foo</onlyinclude>bar
8308 <onlyinclude> being included
8320 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
8324 <onlyinclude> and <includeonly> being included
8333 <includeonly> and <noinclude> on a page
8335 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8342 Un-closed <noinclude>
8349 <onlyinclude> on a page
8351 <onlyinclude>Foo</onlyinclude>bar
8358 Un-closed <onlyinclude>
8365 Self-closed noinclude, includeonly, onlyinclude tags
8376 Unbalanced includeonly and noinclude tags
8380 |b</noinclude></noinclude>
8381 |c</noinclude></includeonly>
8382 |d</includeonly></includeonly>
8391 <td>c</includeonly>
8393 <td>d</includeonly></includeonly>
8399 Template:Includeonly section
8402 ==Includeonly section==
8408 Bug 6563: Edit link generation for section shown by <includeonly>
8410 {{includeonly section}}
8412 <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>
8413 <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>
8417 # Uses same input as the contents of [[Template:Includeonly section]]
8419 Bug 6563: Section extraction for section shown by <includeonly>
8424 ==Includeonly section==
8432 Bug 6563: Edit link generation for section suppressed by <includeonly>
8435 ==Includeonly section==
8439 <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>
8444 Bug 6563: Section extraction for section suppressed by <includeonly>
8449 ==Includeonly section==
8457 Un-closed <includeonly>
8463 # TODO: test with DOM fragment reuse!
8465 Parsoid: DOM fragment reuse
8467 parsoid=wt2wt,wt2html
8469 a{{echo|b<table></table>c}}d
8481 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
8482 <table></table>c"}},"i":0}}]}'>b</span>
8483 <table about="#mwt1"></table><span about="#mwt1">c</span>d
8486 <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">
8488 <table about="#mwt2"></table><span about="#mwt2">
8490 <p about="#mwt2">cd</p>
8493 <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">
8496 <table about="#mwt3"></table><span about="#mwt3">
8499 <p about="#mwt3">b</p>
8503 Parsoid: Merge double tds (bug 50603)
8512 <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>
8517 Parsoid: Merge double tds in nested transclusion content (bug 50603)
8527 <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}}]}'>
8529 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
8535 ### <includeonly> and <noinclude> in attributes
8538 0. includeonly around the entire attribute
8540 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
8542 <p><span id="v2">bar</span>
8547 1. includeonly in html attr key
8549 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
8551 <p><span id="foo">bar</span>
8556 2. includeonly in html attr value
8558 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
8559 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
8561 <p><span id="v1">bar</span>
8562 <span id="v1">bar</span>
8567 3. includeonly in part of an attr value
8569 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
8571 <p><span style="color:red;">bar</span>
8576 4. includeonly in table attributes
8600 ### Token Stream Patcher tests
8602 ### These tests won't always pass wt2wt and other modes because
8603 ### on serialization, the table will be output on a new line.
8604 ### For now, we are blacklisting them, and using this to test selser.
8608 1. Table tag in SOL posn. should get reparsed correctly with valid TSR
8610 parsoid=wt2html,wt2wt
8612 {{echo|}}{| width = '100%'
8616 <span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":""}},"i":0}}]}'></span>
8617 <table width="100%">
8620 <td>foo</td></tr></tbody></table>
8624 2. Table tag in SOL posn. should get reparsed correctly with valid TSR
8626 parsoid=wt2html,wt2wt
8628 <includeonly>a</includeonly>{| {{{b}}}
8632 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>a</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":"</includeonly>"}'/><span typeof="mw:Param" about="#mwt1" id="mwt1" data-mw="{}">{{{b}}}</span><table about="#mwt1">
8633 <tbody><tr><td>c</td></tr>
8638 ### Testing parsing of templates where a template arg
8639 ### has the same name as the template itself.
8649 Templates: Template Name/Arg clash: 1. Use of positional param
8658 Templates: Template Name/Arg clash: 2. Use of named param
8667 Templates: Template Name/Arg clash: 3. Use of named param with empty input
8676 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
8680 Templates: 1. Simple use
8689 Templates: 2. Inside a block tag
8691 <div>{{echo|Foo}}</div>
8692 <blockquote>{{echo|Foo}}</blockquote>
8695 <blockquote>Foo</blockquote>
8700 Templates: P-wrapping: 1a. Templates on consecutive lines
8711 Templates: P-wrapping: 1b. Templates on consecutive lines
8725 Templates: P-wrapping: 1c. Templates on consecutive lines
8728 {{echo|bar}} <div>baz</div>
8737 Templates: P-wrapping: 1d. Template preceded by comment-only line
8746 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8750 Templates: Inline Text: 1. Multiple template uses
8752 {{echo|Foo}}bar{{echo|baz}}
8759 Templates: Inline Text: 2. Back-to-back template uses
8761 {{echo|Foo}}{{echo|bar}}
8768 Templates: Block Tags: 1. Multiple template uses
8770 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8772 <div>Foo</div><div>bar</div><div>baz</div>
8777 Templates: Block Tags: 2. Back-to-back template uses
8779 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8781 <div>Foo</div><div>bar</div>
8786 Templates: Links: 1. Simple example
8788 {{echo|[[Foo|bar]]}}
8790 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8795 Templates: Links: 2. Generation of link href
8797 [[{{echo|Foo}}|bar]]
8799 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8804 Templates: Links: 3. Generation of part of a link href
8806 [[Fo{{echo|o}}|bar]]
8810 [[Foo{{echo|bar}}baz]]
8812 [[Foo{{echo|bar}}|bar]]
8814 [[:Foo{{echo|bar}}]]
8816 [[:Foo{{echo|bar}}|bar]]
8818 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8819 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8820 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8821 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8822 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8823 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8828 Templates: Links: 4. Multiple templates generating link href
8830 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8832 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8837 Templates: Links: 5. Generation of link text
8839 [[Foo|{{echo|bar}}]]
8841 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8846 Templates: Links: 5. Nested templates (only outermost template should be marked)
8848 {{echo|[[{{echo|Foo}}|bar]]}}
8850 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8855 Templates: HTML Tag: 1. Generation of HTML attr. key
8857 <div {{echo|style}}="color:red;">foo</div>
8859 <div style="color:red;">foo</div>
8864 Templates: HTML Tag: 2. Generation of HTML attr. value
8866 <div style={{echo|'color:red;'}}>foo</div>
8868 <div style="color:red;">foo</div>
8873 Templates: HTML Tag: 3. Generation of HTML attr key and value
8875 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8877 <div style="color:red;">foo</div>
8882 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8884 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8886 <div title="This is a long title with just one piece templated">foo</div>
8891 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8893 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8895 <div title="This is a long title with just one piece templated">foo</div>
8900 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8902 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8904 <div title="This is a long title with just one piece templated">foo</div>
8909 Templates: HTML Tag: 7. Generation of partial attribute key string
8911 <div st{{echo|yle}}="color:red;">foo</div>
8913 <div style="color:red;">foo</div>
8918 Templates: HTML Tables: 1. Generating start of a HTML table
8920 {{echo|<table><tr><td>foo</td>}}</tr></table>
8922 <table><tr><td>foo</td></tr></table>
8927 Templates: HTML Tables: 2a. Generating middle of a HTML table
8929 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8931 <table><tr><td>foo</td></tr></table>
8936 Templates: HTML Tables: 2b. Generating middle of a HTML table
8938 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8940 <table><tr><td>foo</td></tr></table>
8945 Templates: HTML Tables: 3. Generating end of a HTML table
8947 <table><tr>{{echo|<td>foo</td></tr></table>}}
8949 <table><tr><td>foo</td></tr></table>
8954 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8956 {{echo|<table>}}<tr><td>foo</td></tr></table>
8958 <table><tr><td>foo</td></tr></table>
8963 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8965 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8967 <table><tr><td>foo</td></tr></table>
8972 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8974 <table><tr>{{echo|<td>}}foo</td></tr></table>
8976 <table><tr><td>foo</td></tr></table>
8981 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8983 <table><tr><td>foo{{echo|</td>}}</tr></table>
8985 <table><tr><td>foo</td></tr></table>
8990 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8992 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8994 <table><tr><td>foo</td></tr></table>
8999 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
9001 <table><tr><td>foo</td></tr>{{echo|</table>}}
9003 <table><tr><td>foo</td></tr></table>
9008 Templates: HTML Tables: 5. Proper fostering of categories from inside
9010 parsoid=wt2html,wt2wt
9012 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
9013 <!--Two categories (Bug 50330)-->
9014 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
9016 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
9017 <!--Two categories (Bug 50330)-->
9018 <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>
9022 Templates: Wiki Tables: 1a. Fostering of entire template content
9030 <tr><td></td></tr></table>
9035 Templates: Wiki Tables: 1b. Fostering of entire template content
9048 <tr><td></td></tr></table>
9053 Templates: Wiki Tables: 2. Fostering of partial template content
9063 <tr><td></td></tr></table>
9068 Templates: Wiki Tables: 3. td-content via multiple templates
9071 {{echo|{{pipe}}a}}{{echo|b}}
9082 Templates: Wiki Tables: 4. Templated tags, no content
9088 <tr><td></td></tr></table>
9093 Templates: Wiki Tables: 5. Templated tags, regular td-tags
9107 Templates: Wiki Tables: 6. Templated tags, templated td-tags
9121 Templates: Lists: Multi-line list-items via templates
9123 *{{echo|a {{nonexistent|
9125 *{{echo|b {{nonexistent|
9128 <ul><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></li>
9129 <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></li></ul>
9134 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
9136 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
9138 <p><i>ab</i>c<i>d</i>e
9143 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
9144 (PHP parser generates misnested html)
9146 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
9148 <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>
9152 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
9153 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
9155 parsoid=wt2html,wt2wt
9157 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
9159 <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>
9160 <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>
9161 <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>
9165 Templates: Ugly nesting: 4. Divs opened/closed across templates
9167 a<div>b{{echo|c</div>d}}e
9174 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
9180 |{{echo|foo</table>}}
9184 <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|}"]}'>
9188 <td>foo</td></tr></tbody></table><span about="#mwt1">
9189 </span><span about="#mwt1">|bar</span><span about="#mwt1">
9194 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
9204 <td>1. {{echo|foo </table>}}</td>
9206 <td>2. {{echo|baz </table>}}</td>
9219 <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>"]}'>
9224 <td>1. foo </td></tr></tbody></table></td>
9226 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
9227 </span><span about="#mwt2">
9228 </span><span about="#mwt2">
9229 </span><span about="#mwt2">abc</span><span about="#mwt2">
9230 </span><span about="#mwt2">
9231 </span><span about="#mwt2">
9232 </span><span about="#mwt2">
9233 </span><span about="#mwt2">
9234 </span><span about="#mwt2">
9235 </span><span about="#mwt2">xyz</span><span about="#mwt2">
9236 </span><span about="#mwt2">
9241 Templates: Ugly templates: 3. newline-only template parameter
9250 # This looks like a bug: a single newline triggers p/br for some reason.
9252 Templates: Ugly templates: 4. newline-only template parameter inconsistency
9261 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges that
9262 # have a true overlap (T1-start - T2-start - T1-end - T2-end).
9264 Templates: Ugly templates: 5. Template encapsulation test: Non-trivial overlap of template ranges is properly handled
9270 <div about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<table>"}},"i":0}},"\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<div>foo"}},"i":1}},"\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"</table>"}},"i":2}}]}' data-parsoid='{"stx":"html","autoInsertedEnd":true,"pi":[[{"k":"1","spc":["","","",""]}],[{"k":"1","spc":["","","",""]}],[{"k":"1","spc":["","","",""]}]]}'>foo
9271 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
9275 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges
9276 # that are "identical" and generate nesting cycles in the algorithm
9278 Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of template ranges is properly handled
9280 {{echo|<table><tr><td><table>}}
9284 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<table><tr><td><table>"}},"i":0}},"\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<div>"}},"i":1}},"\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"</div>"}},"i":2}}]}' data-parsoid='{"stx":"html","autoInsertedEnd":true,"pi":[[{"k":"1","spc":["","","",""]}],[{"k":"1","spc":["","","",""]}],[{"k":"1","spc":["","","",""]}]]}'><tbody><tr data-parsoid='{"stx":"html"}'><td data-parsoid='{"stx":"html"}'><div data-parsoid='{"stx":"html"}'>
9285 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
9286 </table></td></tr></tbody></table>
9290 Parser Functions: 1. Simple example
9299 Parser Functions: 2. Nested use (only outermost should be marked up)
9308 ### Pre-save transform tests
9311 pre-save transform: subst:
9317 This is a test template
9321 pre-save transform: normal template
9331 pre-save transform: nonexistent template
9335 {{thistemplatedoesnotexist}}
9337 {{thistemplatedoesnotexist}}
9342 pre-save transform: subst magic variables
9351 # This is bug 89, which I fixed. -- wtm
9353 pre-save transform: subst: templates with parameters
9357 {{subst:paramtest|param="something else"}}
9359 This is a test template with parameter "something else"
9365 <nowiki>'''not wiki'''</nowiki>
9369 pre-save transform: nowiki in subst (bug 1188)
9373 {{subst:nowikitest}}
9375 <nowiki>'''not wiki'''</nowiki>
9380 Template:commenttest
9382 This template has <!-- a comment --> in it.
9386 pre-save transform: comment in subst (bug 1936)
9390 {{subst:commenttest}}
9392 This template has <!-- a comment --> in it.
9396 pre-save transform: unclosed tag
9400 <nowiki>'''not wiki'''
9402 <nowiki>'''not wiki'''
9406 pre-save transform: mixed tag case
9410 <NOwiki>'''not wiki'''</noWIKI>
9412 <NOwiki>'''not wiki'''</noWIKI>
9416 pre-save transform: unclosed comment in <nowiki>
9420 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9422 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9425 # Leading @ in this template definition works around a limitation
9426 # in parsoid's parserTests which otherwise strips the <span> from the
9427 # result (confusing it for a template wrapper)
9431 @<span onmouseover="alert('crap')">Oh no</span>
9435 (confirming safety of fix for subst bug 1936)
9437 {{Template:dangerous}}
9439 <p>@<span>Oh no</span>
9444 pre-save transform: comment containing gallery (bug 5024)
9448 <!-- <gallery>data</gallery> -->
9450 <!-- <gallery>data</gallery> -->
9454 pre-save transform: comment containing extension
9458 <!-- <tag>data</tag> -->
9460 <!-- <tag>data</tag> -->
9464 pre-save transform: comment containing nowiki
9468 <!-- <nowiki>data</nowiki> -->
9470 <!-- <nowiki>data</nowiki> -->
9474 pre-save transform: <noinclude> in subst (bug 3298)
9484 pre-save transform: <onlyinclude> in subst (bug 3298)
9496 {{<includeonly>subst:</includeonly>Includes}}
9500 Template:SafeSubstTest
9502 {{<includeonly>safesubst:</includeonly>Includes}}
9506 bug 22297: safesubst: works during PST
9510 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
9516 bug 22297: safesubst: works during normal parse
9525 subst: does not work during normal parse
9529 <p>{{subst:Includes}}
9534 pre-save transform: context links ("pipe trick")
9538 [[Article (context)|]]
9541 [[Bar:Article (context)|]]
9542 [[:Bar:Article (context)|]]
9544 [[|Article (context)]]
9548 [[Article (context)|Article]]
9549 [[Bar:Article|Article]]
9550 [[:Bar:Article|Article]]
9551 [[Bar:Article (context)|Article]]
9552 [[:Bar:Article (context)|Article]]
9554 [[Article (context)]]
9555 [[Bar:X (Y) Z|X (Y) Z]]
9556 [[:Bar:X (Y) Z|X (Y) Z]]
9560 pre-save transform: context links ("pipe trick") with interwiki prefix
9564 [[interwiki:Article|]]
9565 [[:interwiki:Article|]]
9566 [[interwiki:Bar:Article|]]
9567 [[:interwiki:Bar:Article|]]
9569 [[interwiki:Article|Article]]
9570 [[:interwiki:Article|Article]]
9571 [[interwiki:Bar:Article|Bar:Article]]
9572 [[:interwiki:Bar:Article|Bar:Article]]
9576 pre-save transform: context links ("pipe trick") with parens in title
9578 pst title=[[Somearticle (context)]]
9582 [[Article (context)|Article]]
9586 pre-save transform: context links ("pipe trick") with comma in title
9588 pst title=[[Someplace, Somewhere]]
9591 [[Otherplace, Elsewhere|]]
9592 [[Otherplace, Elsewhere, Anywhere|]]
9594 [[Otherplace, Somewhere|Otherplace]]
9595 [[Otherplace, Elsewhere|Otherplace]]
9596 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
9600 pre-save transform: context links ("pipe trick") with parens and comma
9602 pst title=[[Someplace (IGNORED), Somewhere]]
9605 [[Otherplace (place), Elsewhere|]]
9607 [[Otherplace, Somewhere|Otherplace]]
9608 [[Otherplace (place), Elsewhere|Otherplace]]
9612 pre-save transform: context links ("pipe trick") with comma and parens
9614 pst title=[[Who, me? (context)]]
9617 [[Me, Myself, and I (1937 song)|]]
9619 [[Yes, you. (context)|Yes, you.]]
9620 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
9624 pre-save transform: context links ("pipe trick") with namespace
9626 pst title=[[Ns:Somearticle]]
9630 [[Ns:Article|Article]]
9634 pre-save transform: context links ("pipe trick") with namespace and parens
9636 pst title=[[Ns:Somearticle (context)]]
9640 [[Ns:Article (context)|Article]]
9644 pre-save transform: context links ("pipe trick") with namespace and comma
9646 pst title=[[Ns:Somearticle, Context, Whatever]]
9650 [[Ns:Article, Context, Whatever|Article]]
9654 pre-save transform: context links ("pipe trick") with namespace, comma and parens
9656 pst title=[[Ns:Somearticle, Context (context)]]
9660 [[Ns:Article (context)|Article]]
9664 pre-save transform: context links ("pipe trick") with namespace, parens and comma
9666 pst title=[[Ns:Somearticle (IGNORED), Context]]
9670 [[Ns:Article, Context|Article]]
9674 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
9678 [[Article(context)|]]
9679 [[Bar:Article(context)|]]
9680 [[:Bar:Article(context)|]]
9681 [[|Article(context)]]
9685 [[Article(context)|Article]]
9686 [[Bar:Article(context)|Article]]
9687 [[:Bar:Article(context)|Article]]
9688 [[Article(context)]]
9690 [[:Bar:X(Y)Z|X(Y)Z]]
9694 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
9698 [[Article (context)|]]
9699 [[Bar:Article (context)|]]
9700 [[:Bar:Article (context)|]]
9701 [[|Article (context)]]
9705 [[Article (context)|Article]]
9706 [[Bar:Article (context)|Article]]
9707 [[:Bar:Article (context)|Article]]
9708 [[Article (context)]]
9709 [[Bar:X (Y) Z|X (Y) Z]]
9710 [[:Bar:X (Y) Z|X (Y) Z]]
9714 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
9718 [[Article(context)|]]
9719 [[Bar:Article(context)|]]
9720 [[:Bar:Article(context)|]]
9721 [[|Article(context)]]
9725 [[Article(context)|Article]]
9726 [[Bar:Article(context)|Article]]
9727 [[:Bar:Article(context)|Article]]
9728 [[Article(context)]]
9730 [[:Bar:X(Y)Z|X(Y)Z]]
9734 pre-save transform: context links ("pipe trick") with commas (bug 21660)
9738 [[Article (context), context|]]
9739 [[Article (context),context|]]
9740 [[Bar:Article (context), context|]]
9741 [[Bar:Article (context),context|]]
9742 [[:Bar:Article (context), context|]]
9743 [[:Bar:Article (context),context|]]
9745 [[Article (context), context|Article]]
9746 [[Article (context),context|Article]]
9747 [[Bar:Article (context), context|Article]]
9748 [[Bar:Article (context),context|Article]]
9749 [[:Bar:Article (context), context|Article]]
9750 [[:Bar:Article (context),context|Article]]
9754 pre-save transform: trim trailing empty lines
9758 Empty lines are trimmed
9764 Empty lines are trimmed
9768 pre-save transform: Signature expansion
9773 * <noinclude>~~~</noinclude>
9774 * <includeonly>~~~</includeonly>
9775 * <onlyinclude>~~~</onlyinclude>
9777 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9778 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9779 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9780 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9785 pre-save transform: Signature expansion in nowiki tags (bug 93)
9791 <nowiki>~~~~</nowiki>
9793 <includeonly><nowiki>~~~~</nowiki></includeonly>
9795 <noinclude><nowiki>~~~~</nowiki></noinclude>
9797 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9799 {{subst:Foo}} shall be converted to FOO
9801 As well as inside noinclude/onlyinclude
9802 <noinclude>{{subst:Foo}}</noinclude>
9803 <onlyinclude>{{subst:Foo}}</onlyinclude>
9805 But not inside includeonly
9806 <includeonly>{{subst:Foo}}</includeonly>
9810 <nowiki>~~~~</nowiki>
9812 <includeonly><nowiki>~~~~</nowiki></includeonly>
9814 <noinclude><nowiki>~~~~</nowiki></noinclude>
9816 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9818 FOO shall be converted to FOO
9820 As well as inside noinclude/onlyinclude
9821 <noinclude>FOO</noinclude>
9822 <onlyinclude>FOO</onlyinclude>
9824 But not inside includeonly
9825 <includeonly>{{subst:Foo}}</includeonly>
9829 Parsoid: Recognize nowiki with trailing space in tags
9833 <nowiki ><div>[[foo]]</nowiki >
9841 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9848 Parsoid: Recognize nowiki with odd capitalization
9852 <noWikI ><div>[[foo]]</Nowiki >
9854 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9859 Parsoid: Escape nowiki with trailing space in tags
9863 <nowiki > foo </nowiki >
9869 <p><nowiki > foo </nowiki ></p>
9870 <p>a<nowiki />b</p>
9871 <p>c<nowiki/ >d</p>
9875 Parsoid: Escape weird noWikI capitalizations
9879 <noWikI > foo </NoWikI >
9881 <p><noWikI > foo </NoWikI ></p>
9885 ### Message transform tests
9888 message transform: magic variables
9898 message transform: should not transform wiki markup
9908 message transform: <noinclude> in transcluded template (bug 4926)
9918 message transform: <onlyinclude> in transcluded template (bug 4926)
9928 {{#special:}} page name, known
9932 {{#special:Recentchanges}}
9934 Special:RecentChanges
9938 {{#special:}} page name with subpage, known
9942 {{#special:Recentchanges/param}}
9944 Special:RecentChanges/param
9948 {{#special:}} page name, unknown
9952 {{#special:foobar nonexistent}}
9954 Special:Foobar nonexistent
9958 {{#speciale:}} page name, known
9962 {{#speciale:Recentchanges}}
9964 Special:RecentChanges
9968 {{#speciale:}} page name with subpage, known
9972 {{#speciale:Recentchanges/param}}
9974 Special:RecentChanges/param
9978 {{#speciale:}} page name, unknown
9982 {{#speciale:foobar nonexistent}}
9984 Special:Foobar_nonexistent
9990 ### For Parsoid-specific tests, see
9991 #### https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9996 parsoid=wt2html,wt2wt,html2html
9998 [[Image:foobar.jpg]]
10000 <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>
10003 <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>
10008 Simple image (using File: namespace, now canonical)
10010 [[File:Foobar.jpg]]
10012 <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>
10015 <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>
10020 Right-aligned image
10022 [[File:Foobar.jpg|right]]
10024 <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>
10027 <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>
10033 [[File:Foobar.jpg|right|Caption text]]
10035 <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>
10038 <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>
10042 Image with caption, bug 53312 #1
10044 [[File:Foobar.jpg|right|Caption page stuff]]
10046 <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>
10049 <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>
10053 Image with caption, bug 53312 #2
10055 [[File:Foobar.jpg|right|Caption page=]]
10057 <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>
10060 <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>
10064 Image with caption, bug 53312 #3
10066 [[File:Foobar.jpg|right|Caption page=stuff]]
10068 <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>
10071 <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>
10075 Allow empty links in image captions (Bug 60753)
10079 [[File:Foobar.jpg|thumb|Caption [[Link1]]
10084 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Caption <a href="/index.php?title=Link1&action=edit&redlink=1" class="new" title="Link1 (page does not exist)">Link1</a> [[]] <a href="/index.php?title=Link2&action=edit&redlink=1" class="new" title="Link2 (page does not exist)">Link2</a></div></div></div>
10087 <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>
10089 <a rel="mw:WikiLink" href="./Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"},"dsr":[47,56,2,2]}'>Link2</a>
10090 </figcaption></figure>
10094 Link with empty target
10103 Image with empty attribute
10105 parsoid=wt2html,wt2wt,html2html
10107 [[File:Foobar.jpg|right||Caption text]]
10109 <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>
10112 <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>
10116 1. Block image with individual attributes from templates
10118 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
10120 <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>
10123 <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;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[24,38,null,null]}\">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>
10127 2. Block Image with individual attributes from templates
10129 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
10131 <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>
10134 <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;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[18,32,null,null]}\">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;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[33,47,null,null]}\">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>
10138 3. Inline image with individual attributes from templates
10140 [[File:Foobar.jpg|{{echo|50px}}]]
10142 <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>
10145 <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;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[18,31,null,null]}\">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>
10148 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
10149 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
10151 Image with multiple attributes from the same template
10153 [[File:Foobar.jpg|{{image_attribs}}]]
10155 <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>
10158 <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>
10162 Image with link tails
10166 123[[File:Foobar.jpg]]456
10167 123[[File:Foobar.jpg|right]]456
10168 123[[File:Foobar.jpg|thumb]]456
10170 <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
10172 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
10173 123<div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
10176 <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>
10177 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
10178 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
10182 Image with multiple captions -- only last one is accepted
10184 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
10186 <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>
10189 <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>
10193 Image with multiple widths -- use last
10195 [[File:Foobar.jpg|200px|300px|caption]]
10197 <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>
10200 <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>
10204 Image with multiple alignments -- use first (bug 48664)
10208 [[File:Foobar.jpg|thumb|left|right|center|caption]]
10210 [[File:Foobar.jpg|middle|text-top|caption]]
10212 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
10213 <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>
10216 <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>
10217 <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>
10221 Image with width attribute at different positions
10223 [[File:Foobar.jpg|200px|right|Caption]]
10224 [[File:Foobar.jpg|right|200px|Caption]]
10225 [[File:Foobar.jpg|right|Caption|200px]]
10227 <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>
10228 <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>
10229 <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>
10232 <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>
10233 <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>
10234 <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>
10237 # a sad bit of backward-compatibility
10239 Image with size specified with pxpx (bug 13500, 51628)
10241 parsoid=wt2html,wt2wt,html2html
10243 [[File:Foobar.jpg|20pxpx]]
10244 [[File:Foobar.jpg|200x20pxpx]]
10246 <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>
10247 <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>
10250 <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>
10254 Image with link parameter, wiki target
10256 [[File:Foobar.jpg|link=Main Page]]
10258 <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>
10261 <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>
10264 # parsoid bug 49293 (part 1)
10266 Image with link parameter, URL target
10268 [[File:Foobar.jpg|link=http://example.com/]]
10270 <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>
10273 <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>
10276 # parsoid bug 49293 (part 2)
10278 Image with link parameter, protocol-less URL target
10280 [[File:Foobar.jpg|link=//example.com/]]
10282 <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>
10285 <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>
10289 Image with link parameter, wgExternalLinkTarget
10291 [[Image:foobar.jpg|link=http://example.com/]]
10293 wgExternalLinkTarget='foobar'
10295 <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>
10300 Image with link parameter, wgNoFollowLinks set to false
10302 [[Image:foobar.jpg|link=http://example.com/]]
10304 wgNoFollowLinks=false
10306 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
10311 Image with link parameter, wgNoFollowDomainExceptions
10313 [[Image:foobar.jpg|link=http://example.com/]]
10315 wgNoFollowDomainExceptions='example.com'
10317 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
10322 Image with link parameter, wgExternalLinkTarget, unnamed parameter
10324 [[Image:foobar.jpg|link=http://example.com/|Title]]
10326 wgExternalLinkTarget='foobar'
10328 <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>
10333 Image with empty link parameter
10335 [[File:Foobar.jpg|link=]]
10337 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
10340 <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>
10344 Image with link parameter (wiki target) and unnamed parameter
10346 [[File:Foobar.jpg|link=Main_Page|Title]]
10348 <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>
10351 <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>
10355 Image with link parameter (URL target) and unnamed parameter
10357 [[File:Foobar.jpg|link=http://example.com/|Title]]
10359 <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>
10362 <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>
10366 Thumbnail image with link parameter
10369 parsoid=wt2html,wt2wt,html2html
10371 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
10373 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
10376 <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>
10380 Manually-specified thumbnail image
10384 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
10386 <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>
10389 <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>
10393 Manually-specified thumbnail image with explicit link to wiki page
10396 parsoid=wt2html,wt2wt,html2html
10398 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
10400 <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>
10403 <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>
10407 Manually-specified thumbnail image with explicit link to url
10410 parsoid=wt2html,wt2wt,html2html
10412 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
10414 <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>
10417 <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>
10421 Manually-specified thumbnail image with explicit no link
10424 parsoid=wt2html,wt2wt,html2html
10426 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
10428 <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>
10431 <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>
10435 Manually-specified thumbnail image with explicit link and alt text
10438 parsoid=wt2html,wt2wt,html2html
10440 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
10442 <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>
10445 <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>
10449 Image with frame and link
10451 parsoid=wt2html,wt2wt,html2html
10453 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
10455 <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>
10458 <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>
10462 Image with frame and link and explicit alt
10464 parsoid=wt2html,wt2wt,html2html
10466 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
10468 <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>
10471 <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>
10475 Image with wiki markup in implicit alt
10477 parsoid=wt2html,wt2wt,html2html
10479 [[Image:Foobar.jpg|testing '''bold''' in alt]]
10481 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
10483 <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>
10484 </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>
10487 <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>
10488 <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>
10491 ###################
10492 # Conflicting image format options.
10493 # First option specified should 'win'.
10494 # All three cases in each test should be identical.
10497 Image with 'frameless' first.
10499 parsoid=wt2html,wt2wt,html2html
10501 [[File:Foobar.jpg|frameless|caption]]
10503 [[File:Foobar.jpg|frameless|frame|caption]]
10505 [[File:Foobar.jpg|frameless|thumb|caption]]
10507 <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" 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>
10508 </p><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" 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>
10509 </p><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" 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>
10512 <p><span class="mw-default-size" 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>
10513 <p><span class="mw-default-size" 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>
10514 <p><span class="mw-default-size" 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>
10518 Image with 'frame' first.
10520 parsoid=wt2html,wt2wt,html2html
10522 [[File:Foobar.jpg|frame|caption]]
10523 [[File:Foobar.jpg|frame|frameless|caption]]
10524 [[File:Foobar.jpg|frame|thumb|caption]]
10526 <div class="thumb tright"><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">caption</div></div></div>
10527 <div class="thumb tright"><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">caption</div></div></div>
10528 <div class="thumb tright"><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">caption</div></div></div>
10531 <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><figcaption>caption</figcaption></figure><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><figcaption>caption</figcaption></figure><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><figcaption>caption</figcaption></figure>
10535 Image with 'thumb' first.
10537 parsoid=wt2html,wt2wt,html2html
10539 [[File:Foobar.jpg|thumb|caption]]
10540 [[File:Foobar.jpg|thumb|frameless|caption]]
10541 [[File:Foobar.jpg|thumb|frame|caption]]
10543 <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>
10544 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
10545 <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>
10548 <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" 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>
10551 ###################
10553 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
10554 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
10555 # Foobar has actual size of 1941x220
10556 # 1. Thumbs & frameless always reduce, can't be enlarged unless it's
10557 # a scalable format.
10558 # 2. Framed images always ignore size options; always render at default size.
10559 # 3. "Unspecified format" and border are the only types which can be
10563 Image: "unspecified format" and border enlarge
10565 parsoid=wt2html,wt2wt,html2html
10567 [[File:Foobar.jpg|2000px]]
10569 [[File:Foobar.jpg|border|2000px]]
10571 <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>
10572 </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>
10575 <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>
10576 <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>
10580 Image: "unspecified format" and border reduce
10582 parsoid=wt2html,wt2wt,html2html
10584 [[File:Foobar.jpg|1000px]]
10586 [[File:Foobar.jpg|border|1000px]]
10588 <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>
10589 </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>
10592 <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>
10593 <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>
10597 Image: thumbs reduce
10599 parsoid=wt2html,wt2wt,html2html
10601 [[File:Foobar.jpg|thumb|50px]]
10603 <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>
10606 <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>
10610 Image: bitmap thumbs can't be enlarged past original size, but vector can.
10612 parsoid=wt2html,wt2wt,html2html
10614 [[File:Foobar.jpg|thumb|2000px]]
10616 [[File:Foobar.svg|thumb|2000px]]
10618 <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>
10619 <div class="thumb tright"><div class="thumbinner" style="width:2002px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="Foobar.svg" src="http://example.com/images/thumb/f/ff/Foobar.svg/2000px-Foobar.svg.png" width="2000" height="1500" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/3000px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/4000px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>
10622 <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>
10623 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="1500" width="2000"/></a></figure>
10627 Image: frameless can reduce in size
10629 parsoid=wt2html,wt2wt,html2html
10631 [[File:Foobar.jpg|frameless|50px]]
10633 <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>
10636 <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>
10640 Image: bitmap frameless can't be enlarged past original size, but vector can
10642 parsoid=wt2html,wt2wt,html2html
10644 [[File:Foobar.jpg|frameless|2000px]]
10646 [[File:Foobar.svg|frameless|2000px]]
10648 <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>
10649 </p><p><a href="/wiki/File:Foobar.svg" class="image"><img alt="Foobar.svg" src="http://example.com/images/thumb/f/ff/Foobar.svg/2000px-Foobar.svg.png" width="2000" height="1500" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/3000px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/4000px-Foobar.svg.png 2x" /></a>
10652 <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>
10653 <p><span typeof="mw:Image/Frameless"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="1500" width="2000"/></a></span></p>
10657 Image: framed images are always unscaled.
10659 parsoid=wt2html,wt2wt,html2html
10661 [[File:Foobar.jpg|frame]]
10663 [[File:Foobar.jpg|frame|50px]]
10665 [[File:Foobar.jpg|frame|50x50px]]
10667 [[File:Foobar.jpg|frame|2000px]]
10669 <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>
10670 <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>
10671 <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>
10672 <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>
10675 <figure class="mw-default-size" typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure><figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure><figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure><figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
10678 ###################
10681 Link to image page- image page normally doesn't exists, hence edit link
10682 Add test with existing image page
10683 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
10687 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
10692 bug 18784 Link to non-existent image page with caption should use caption as link text
10694 [[:Image:test|caption]]
10696 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
10701 Frameless image caption with a free URL
10703 [[File:Foobar.jpg|http://example.com]]
10705 <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>
10708 <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>
10712 Thumbnail image caption with a free URL
10716 [[File:Foobar.jpg|thumb|http://example.com]]
10718 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
10721 <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>
10725 Thumbnail image caption with a free URL and explicit alt
10728 parsoid=wt2html,wt2wt,html2html
10730 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
10732 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
10735 <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>
10739 SVG thumbnails with no language set
10742 [[File:Foobar.svg|thumb|caption]]
10744 <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>
10747 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="165" width="220"/></a><figcaption>caption</figcaption></figure>
10751 SVG thumbnails with language de
10753 parsoid=wt2html,wt2wt,html2html
10755 [[File:Foobar.svg|thumb|caption|lang=de]]
10757 <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>
10760 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" lang="de" height="165" width="220"/></a><figcaption>caption</figcaption></figure>
10764 SVG thumbnails with invalid language code
10766 parsoid=wt2html,wt2wt,html2html
10768 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
10770 <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>
10773 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="165" width="220"/></a><figcaption>lang=invalid.language.code</figcaption></figure>
10777 BUG 1887: A ISBN with a thumbnail
10779 [[File:Foobar.jpg|thumb|ISBN 1235467890]]
10781 <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>
10784 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><a href="Special:BookSources/1235467890" rel="mw:ExtLink">ISBN 1235467890</a></figcaption></figure>
10788 BUG 1887: A RFC with a thumbnail
10790 [[File:Foobar.jpg|thumb|This is RFC 12354]]
10792 <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>
10795 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>This is <a href="//tools.ietf.org/html/rfc12354" rel="mw:ExtLink">RFC 12354</a></figcaption></figure>
10799 BUG 1887: A mailto link with a thumbnail
10801 [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]]
10803 <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>
10806 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>Please <a rel="mw:ExtLink" href="mailto:nobody@example.com">mailto:nobody@example.com</a></figcaption></figure>
10809 # Pending resolution to bug 368
10811 BUG 648: Frameless image caption with a link
10813 [[File:Foobar.jpg|text with a [[link]] in it]]
10815 <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>
10818 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[link]] in it"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10822 BUG 648: Frameless image caption with a link (suffix)
10824 [[File:Foobar.jpg|text with a [[link]]foo in it]]
10826 <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>
10829 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[link]]foo in it"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10833 BUG 648: Frameless image caption with an interwiki link
10835 [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]
10837 <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>
10840 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[MeatBall:Link]] in it"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10844 BUG 648: Frameless image caption with a piped interwiki link
10846 [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
10848 <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>
10851 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[MeatBall:Link|link]] in it"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10855 Escape HTML special chars in image alt text
10857 [[File:Foobar.jpg|& < > "]]
10859 <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>
10862 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"& < > \""}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10866 BUG 499: Alt text should have Ӓ, not &1234;
10868 [[File:Foobar.jpg|♀]]
10870 <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>
10873 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"&#9792;"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10877 Broken image caption with link
10879 parsoid=wt2html,wt2wt,html2html
10881 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
10883 <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.
10886 <p>[[Image:Foobar.jpg|thumb|This is a broken caption. But <a rel="mw:WikiLink" href="Main_Page">this</a> is just an ordinary link.</p>
10890 Image caption containing another image
10892 [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]]
10894 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/wiki/File:Thumb.png" class="image" title="image"><img alt="image" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" /></a> inside it!</div></div></div>
10897 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>This is a caption with another <span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"image"}'><a href="File:Thumb.png"><img resource="./File:Thumb.png" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a></span> inside it!</figcaption></figure>
10901 Image: caption containing a newline
10903 [[File:Foobar.jpg|This
10906 <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>
10909 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"This\n*is some text"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10913 Image: caption containing leading space
10914 (The leading space should not trigger nowiki escaping in wt2wt mode)
10916 [[File:Foobar.jpg|thumb| bar]]
10918 <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>
10921 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption> bar</figcaption></figure>
10925 Image: caption containing a table
10927 parsoid=wt2html,wt2wt,html2html
10929 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
10935 and some more text.]]
10937 <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>
10940 <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
10943 <tr><th>Foo </th><th>Bar</th></tr>
10946 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
10950 Bug 3090: External links other than http: in image captions
10952 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
10954 <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>
10957 <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>
10963 parsoid=wt2html,wt2wt,html2html
10965 [[Image:foobar.jpg|a|class=b]]
10967 <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>
10970 <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>
10974 Localized image handling (1).
10976 parsoid=wt2html,wt2wt,html2html
10979 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10981 <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>
10984 <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>
10988 Localized image handling (2).
10991 parsoid=wt2html,wt2wt,html2html
10994 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10996 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
10999 <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>
11003 "border", "frameless" and "class" attributes on an image.
11006 parsoid=wt2html,wt2wt,html2html
11008 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
11010 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a>
11013 <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>
11016 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
11018 Invalid image attributes (bug 62500)
11021 parsoid=wt2html,wt2wt,html2html
11023 [[File:Foobar.jpg|thumb|float|left|caption]]
11025 [[File:Foobar.jpg|thumb|righ|caption]]
11027 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
11029 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
11030 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
11031 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
11034 <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>
11040 #REDIRECT [[File:Barfoo.jpg]]
11046 [[Image:Barfoo.jpg]]
11048 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
11053 Missing image with uploads disabled
11057 [[Image:Foobaz.jpg]]
11059 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
11063 # Parsoid-specific testing for images
11064 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
11065 # Currently imperfect due to a flaw in the Parsoid testrunner
11067 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
11071 Parsoid-specific image handling - simple image with size and middle alignment
11073 [[File:Foobar.jpg|middle|50px]]
11075 <p><span class="mw-valign-middle" typeof="mw:Image">
11076 <a href="File:Foobar.jpg">
11077 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11084 Parsoid-specific image handling - simple image with size, middle alignment,
11085 non-standard namespace alias
11087 parsoid=wt2wt,wt2html,html2html
11089 [[Image:Foobar.jpg|middle|50px]]
11091 <p><span class="mw-valign-middle" typeof="mw:Image">
11092 <a href="File:Foobar.jpg">
11093 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11100 Parsoid-specific image handling - simple image with size and middle alignment
11103 [[File:Foobar.jpg|50px|middle]]
11105 <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>
11109 Parsoid-specific image handling - simple image with size and middle alignment
11110 and non-standard namespace name
11112 parsoid=wt2html,wt2wt,html2html
11114 [[Image:Foobar.jpg|50px|middle]]
11116 <p><span class="mw-valign-middle" typeof="mw:Image">
11117 <a href="File:Foobar.jpg">
11118 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11125 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
11127 [[File:Foobar.jpg|500x10px|baseline|caption]]
11129 <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>
11133 Parsoid-specific image handling - simple image with border and size spec
11135 [[File:Foobar.jpg|50px|border|caption]]
11137 <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>
11141 Parsoid-specific image handling - thumbnail with halign, valign, and caption
11143 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
11145 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
11146 <a href="File:Foobar.jpg">
11147 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
11149 <figcaption>caption content</figcaption>
11154 Parsoid-specific image handling - thumbnail with halign, valign, and caption
11157 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
11159 <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>
11163 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
11165 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
11167 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
11168 <a href="File:Foobar.jpg">
11169 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
11171 <figcaption>caption</figcaption>
11176 Parsoid-specific image handling - thumbnail with specific size, halign,
11177 valign, and caption (existing content)
11179 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
11181 <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>
11185 Parsoid-specific image handling - framed image with specific size and caption
11188 parsoid=wt2html,wt2wt,html2html
11190 [[File:Foobar.jpg|frame|500x50px|caption]]
11192 <figure typeof="mw:Image/Frame">
11193 <a href="File:Foobar.jpg">
11194 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941" />
11196 <figcaption>caption</figcaption>
11201 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
11204 parsoid=wt2html,wt2wt,html2html
11206 [[File:Foobar.jpg|left|baseline|frame|500x50px|caption]]
11208 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
11209 <a href="File:Foobar.jpg">
11210 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941" />
11212 <figcaption>caption</figcaption>
11217 Parsoid-specific image handling - frameless image with specific size, border, and caption
11219 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
11221 <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>
11225 Parsoid-specific image handling - simple image with a formatted caption
11227 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
11229 <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>"}'>
11230 <a href="File:Foobar.jpg">
11231 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
11236 Parsoid-specific image handling - caption with a template in it
11238 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
11240 <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>
11244 Parsoid-specific image handling - caption with unbalanced tags in it
11246 parsoid=wt2html,wt2wt,html2html
11249 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
11253 <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>
11258 Parsoid-specific image handling - empty caption (1)
11260 parsoid=wt2html,wt2wt
11262 [[File:Foobar.jpg|thumb|]]
11264 <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>
11267 # empty captions don't get serialized unless we're in the "round trip" case
11269 Parsoid-specific image handling - empty caption (2)
11273 <figure class="mw-default-size" typeof="mw:Image/Thumb">
11274 <a href="File:Foobar.jpg">
11275 <img resource="./File:Foobar.jpg"
11276 src="//example.com/images/3/3a/Foobar.jpg"
11277 height="25" width="220"/>
11279 <figcaption></figcaption>
11282 [[File:Foobar.jpg|thumb]]
11286 Parsoid-specific image handling - whitespace caption
11288 [[File:Foobar.jpg|thumb| ]]
11290 <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>
11294 Parsoid-specific image handling - lang option
11297 [[File:Foobar.svg|lang=de|caption]]
11301 <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>
11310 Subpage test/subpage
11318 subpage title=[[Subpage test]]
11322 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
11327 Subpage noslash link
11329 subpage title=[[Subpage test]]
11333 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
11337 # TODO: make this PHP-parser compatible!
11339 Relative subpage noslash link
11341 parsoid=wt2wt,wt2html,html2html
11342 subpage title=[[Subpage test/1/2/3/4]]
11348 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
11349 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
11353 Parsoid: dot-slash prefixed wikilinks
11363 </p><p>[[././baz/]]
11368 </p><p>[[././baz/]]
11373 Render invalid page names as plain text (bug 51090)
11386 [[{{echo|./../foo}}|bar]]
11387 [[{{echo|foo/.}}|bar]]
11388 [[{{echo|foo/..}}|bar]]
11389 [[{{echo|foo~~~~bar}}]]
11390 [[{{echo|foo>bar}}]]
11391 [[{{echo|foo././bar}}]]
11392 [[{{echo|foo{bar}}]]
11393 [[{{echo|foo}bar}}]]
11394 [[{{echo|foo[bar}}]]
11395 [[{{echo|foo]bar}}]]
11396 [[{{echo|foo<bar}}]]
11398 <p>[[./../foo|bar]]
11408 </p><p>[[./../foo|bar]]
11421 <p>[[./../foo|bar]][[foo�|bar]][[foo/.|bar]][[foo/..|bar]][[foo~~~bar]][[foo>bar]][[foo[bar]][[.]][[..]][[foo././bar]]</p>
11422 <p>[[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"./../foo"}},"i":0}}]}'>./../foo</span>|bar]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo/."}},"i":0}}]}'>foo/.</span>|bar]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo/.."}},"i":0}}]}'>foo/..</span>|bar]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo~~~~bar"}},"i":0}}]}'>foo~~~~bar</span>]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo>bar"}},"i":0}}]}'>foo>bar</span>]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo././bar"}},"i":0}}]}'>foo././bar</span>]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo{bar"}},"i":0}}]}'>foo{bar</span>]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo}bar"}},"i":0}}]}'>foo}bar</span>]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo[bar"}},"i":0}}]}'>foo[bar</span>]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo]bar"}},"i":0}}]}'>foo]bar</span>]][[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<bar"}},"i":0}}]}'>foo<bar</span>]]</p>
11430 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
11435 BUG 561: {{/Subpage}}
11437 subpage title=[[Page]]
11441 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
11449 Category:MediaWiki User's Guide
11457 [[:Category:MediaWiki User's Guide]]
11459 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
11468 [[Category:MediaWiki User's Guide]]
11470 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11474 PAGESINCATEGORY invalid title fatal (r33546 fix)
11476 {{PAGESINCATEGORY:<bogus>}}
11483 Category with different sort key
11487 [[Category:MediaWiki User's Guide|Foo]]
11489 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11493 Category with identical sort key
11497 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11499 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11503 Category with empty sort key
11508 [[Category:MediaWiki User's Guide|]]
11510 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11514 Category with empty sort key and parentheses
11519 [[Category:Foo (bar)|]]
11521 [[Category:Foo (bar)|Foo]]
11525 Category with link tail
11530 123[[Category:Foo]]456
11532 123[[Category:Foo]]456
11536 Category with template
11541 [[Category:{{echo|Foo}}]]
11543 [[Category:{{echo|Foo}}]]
11547 Category with template in sort key
11552 [[Category:Foo|{{echo|Bar}}]]
11554 [[Category:Foo|{{echo|Bar}}]]
11558 Category with template in sort key and title
11563 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11565 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11569 Category / paragraph interactions
11571 Foo [[Category:Baz]] Bar
11573 Foo [[Category:Baz]]
11581 [[Category:Baz]] Bar
11594 {{echo|[[Category:Baz]]}}
11609 Parsoid: Serialize link to category page with colon escape
11615 [[:Category:Foo|Bar]]
11618 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
11619 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
11624 Parsoid: Link prefix/suffixes aren't applied to category links
11626 parsoid=wt2html,wt2wt,html2html
11631 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
11635 Parsoid: Serialize link to file page with colon escape
11641 [[:File:Foo.png|Bar]]
11644 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
11645 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
11650 Parsoid: Serialize a genuine category link without colon escape
11655 [[Category:Foo|Bar]]
11657 <link rel="mw:PageProp/Category" href="Category:Foo">
11658 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
11662 Parsoid: Defaultsort
11666 {{DEFAULTSORT:Foo}}
11668 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
11672 ### Inter-language links
11675 Inter-language links
11681 [[zh:食品]]
11683 es:Alimento fr:Nourriture zh:食品
11687 Duplicate interlanguage links (bug 24502)
11703 Basic section headings
11710 ===Smaller headline===
11713 <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>
11716 <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>
11719 <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>
11725 Section headings with TOC
11728 === Subheadline 1 ===
11729 ===== Skipping a level =====
11730 ====== Skipping a level ======
11734 ===Another headline===
11736 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11738 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
11740 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
11742 <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>
11744 <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>
11751 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
11753 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
11759 <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>
11760 <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>
11761 <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>
11762 <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>
11763 <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>
11766 <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>
11770 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
11772 Handling of sections up to level 6 and beyond
11775 == Level 2 Heading==
11776 === Level 3 Heading===
11777 ==== Level 4 Heading====
11778 ===== Level 5 Heading=====
11779 ====== Level 6 Heading======
11780 ======= Level 7 Heading=======
11781 ======== Level 8 Heading========
11782 ========= Level 9 Heading=========
11783 ========== Level 10 Heading==========
11785 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11787 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
11789 <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>
11791 <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>
11793 <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>
11795 <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>
11797 <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>
11798 <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>
11799 <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>
11800 <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>
11801 <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>
11815 <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>
11816 <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>
11817 <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>
11818 <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>
11819 <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>
11820 <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>
11821 <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>
11822 <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>
11823 <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>
11824 <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>
11829 TOC regression (bug 9764)
11833 ==== title 1.1.1 ====
11838 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11840 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11842 <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>
11844 <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>
11847 <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>
11850 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11852 <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>
11858 <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>
11859 <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>
11860 <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>
11861 <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>
11862 <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>
11863 <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>
11868 TOC with wgMaxTocLevel=3 (bug 6204)
11874 ==== title 1.1.1 ====
11879 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11881 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11883 <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>
11884 <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>
11887 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11889 <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>
11895 <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>
11896 <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>
11897 <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>
11898 <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>
11899 <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>
11900 <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>
11905 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
11911 ====Section 1.1.1====
11912 ====Section 1.1.1.1====
11915 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11917 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
11919 <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>
11922 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
11926 <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>
11927 <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>
11928 <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>
11929 <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>
11930 <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>
11936 Resolving duplicate section names
11941 <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>
11942 <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>
11947 Resolving duplicate section names with differing case (bug 10721)
11952 <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>
11953 <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>
11965 Template with sections, __NOTOC__
11972 <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>
11973 <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>
11974 <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>
11975 <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>
11980 __NOEDITSECTION__ keyword
11986 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
11987 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
11992 Link inside a section heading
11994 ==Section with a [[Main Page|link]] in it==
11996 <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>
12001 TOC regression (bug 12077)
12008 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12010 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
12012 <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>
12015 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
12019 <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>
12020 <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>
12021 <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>
12026 BUG 1219 URL next to image (good)
12028 http://example.com [[Image:foobar.jpg]]
12030 <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>
12035 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
12038 The line above must have a trailing space!
12041 But just in case it doesn't...
12043 <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>
12044 <p>The line above must have a trailing space!
12046 <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>
12047 <p>But just in case it doesn't...
12052 Header with special characters (bug 25462)
12054 The tooltips shall not show entities to the user (ie. be double escaped)
12071 <p>The tooltips shall not show entities to the user (ie. be double escaped)
12073 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12075 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
12076 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
12077 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
12078 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
12079 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
12083 <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>
12086 <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>
12089 <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>
12092 <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>
12095 <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>
12101 Headers with excess '=' characters
12102 (Are similar tests necessary beyond the 1st level?)
12106 =''italic'' heading==
12107 ==''italic'' heading=
12109 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12111 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
12112 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
12113 <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>
12114 <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>
12118 <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>
12119 <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>
12120 <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>
12121 <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>
12126 HTML headers vs TOC (bug 23393)
12127 (__NOEDITSECTION__ for clearer output, doesn't matter here)
12139 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12141 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
12143 <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>
12144 <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>
12147 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
12149 <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>
12150 <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>
12156 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
12157 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
12158 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
12159 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
12160 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
12161 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
12166 Single-line or multiline-comments can follow headings
12168 parsoid=wt2html,wt2wt
12176 <h2><span class="mw-headline" id="foo">foo</span></h2>
12177 <h2><span class="mw-headline" id="bar">bar</span></h2>
12178 <h2><span class="mw-headline" id="baz">baz</span></h2>
12183 BUG 1219 URL next to image (broken)
12185 http://example.com[[Image:foobar.jpg]]
12187 <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>
12192 Bug 1186 news: in the middle of text
12194 http://en.wikinews.org/wiki/Wikinews:Workplace
12196 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
12202 Namespaced link must have a title
12211 Namespaced link must have a title (bad fragment version)
12213 [[Project:#fragment]]
12215 <p>[[Project:#fragment]]
12221 ### HTML tags and HTML attributes
12225 div with no attributes
12227 <div>HTML rocks</div>
12229 <div>HTML rocks</div>
12234 div with double-quoted attribute
12236 <div id="rock">HTML rocks</div>
12238 <div id="rock">HTML rocks</div>
12243 div with single-quoted attribute
12245 <div id='rock'>HTML rocks</div>
12247 <div id="rock">HTML rocks</div>
12252 div with unquoted attribute
12254 <div id=rock>HTML rocks</div>
12256 <div id="rock">HTML rocks</div>
12261 div with illegal double attributes
12263 <div id="a" id="b">HTML rocks</div>
12265 <div id="b">HTML rocks</div>
12269 # FIXME: produce empty string instead of "class" in the PHP parser, following
12272 div with empty attribute value, space before equals
12276 <div class =>HTML rocks</div>
12278 <div class="">HTML rocks</div>
12282 # The PHP parser escapes the opening brace to { for some reason, so
12283 # disabled this test for it.
12285 div with braces in attribute value
12289 <div title="{}">Foo</div>
12291 <div title="{}">Foo</div>
12294 # This it very inconsistent in the PHP parser: it returns
12295 # class="class" if there is a space between the name and the equal sign (see
12296 # 'div with empty attribute value, space before equals'), but strips the
12297 # attribute completely if the space is missing. We hope that not much content
12298 # depends on this, so are implementing the behavior below in Parsoid for
12299 # consistencies' sake. Disabled for the PHP parser.
12300 # FIXME: fix this behavior in the PHP parser?
12302 div with empty attribute value, no space before equals
12306 <div class=>HTML rocks</div>
12308 <div class="">HTML rocks</div>
12313 HTML multiple attributes correction
12315 <p class="error" class="awesome">Awesome!</p>
12317 <p class="awesome">Awesome!</p>
12322 Table multiple attributes correction
12325 !+ class="error" class="awesome"| status
12330 <th class="awesome"> status
12338 <DIV ID="x">HTML ROCKS</DIV>
12340 <div id="x">HTML ROCKS</div>
12345 Non-ASCII pseudo-tags are rendered as text
12354 Pseudo-tag with URL 'name' renders as url link
12356 <http://example.com/>
12358 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
12363 text with amp in the middle of nowhere
12367 <p>Remember AT&T?
12372 text with character entity: eacute
12374 I always thought é was a cute letter.
12376 <p>I always thought é was a cute letter.
12381 text with entity-escaped character entity-like string: eacute
12383 I always thought &eacute; was a cute letter.
12385 <p>I always thought &eacute; was a cute letter.
12390 text with undefined character entity: xacute
12392 I always thought &xacute; was a cute letter.
12394 <p>I always thought &xacute; was a cute letter.
12398 # TODO: generalize to PHP parser?
12404 <data value="5">five</data>
12405 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
12406 <mark>This highlighted text</mark>
12408 <p><data value="5">five</data>
12409 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
12410 <mark>This highlighted text</mark></p>
12414 HTML tag with leading space is parsed as text
12418 <p>< div>foo< /div>
12423 ### Nesting tests (see bug 41545, 50604, 51081)
12426 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
12427 # Note that html2wt is considerably more difficult if we use <b> in
12428 # the test case, instead of <big>
12430 Ensure that HTML adoption agency algorithm is properly implemented.
12432 <big>X<big>Y</big>Z</big>
12434 <p><big>X<big>Y</big>Z</big>
12438 # This was bug 41545 in the PHP parser.
12442 <kbd>X<kbd>Y</kbd>Z</kbd>
12444 <p><kbd>X<kbd>Y</kbd>Z</kbd>
12448 # The following cases were bug 51081 in the PHP parser.
12449 # Note that there are some other nestable tags (b, i, etc) which are
12450 # not covered; see bug 51081 for discussion.
12454 <em>X<em>Y</em>Z</em>
12456 <p><em>X<em>Y</em>Z</em>
12461 Nesting of <strong>
12463 <strong>X<strong>Y</strong>Z</strong>
12465 <p><strong>X<strong>Y</strong>Z</strong>
12474 <p><q>X<q>Y</q>Z</q>
12481 <ruby>X<ruby>Y</ruby>Z</ruby>
12483 <p><ruby>X<ruby>Y</ruby>Z</ruby>
12490 <bdo>X<bdo>Y</bdo>Z</bdo>
12492 <p><bdo>X<bdo>Y</bdo>Z</bdo>
12504 [[Media:Foobar.jpg]]
12506 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
12511 Media link with text
12513 [[Media:Foobar.jpg|A neat file to look at]]
12515 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
12519 # FIXME: this is still bad HTML tag nesting
12521 Media link with nasty text
12522 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
12524 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
12526 <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>
12531 Media link to nonexistent file (bug 1702)
12533 [[Media:No such.jpg]]
12535 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
12540 Image link to nonexistent file (bug 1850 - good)
12542 [[Image:No such.jpg]]
12544 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
12549 :Image link to nonexistent file (bug 1850 - bad)
12551 [[:Image:No such.jpg]]
12553 <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>
12560 Character reference normalization in link text (bug 1938)
12562 [[Main Page|this&that]]
12564 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
12571 Test for unicode normalization
12573 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
12577 (bug 19451) Links should refer to the normalized form.
12585 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12586 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12587 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12588 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12589 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12594 Empty attribute crash test (bug 2067)
12596 <font color="">foo</font>
12598 <p><font color="">foo</font>
12603 Empty attribute crash test single-quotes (bug 2067)
12605 <font color=''>foo</font>
12607 <p><font color="">foo</font>
12612 Attribute test: equals, then nothing
12614 <font color=>foo</font>
12616 <p><font>foo</font>
12621 Attribute test: unquoted value
12623 <font color=x>foo</font>
12625 <p><font color="x">foo</font>
12630 Attribute test: unquoted but illegal value (hash)
12632 <font color=#x>foo</font>
12634 <p><font color="#x">foo</font>
12639 Attribute test: no value
12641 <font color>foo</font>
12643 <p><font color="color">foo</font>
12648 Bug 2095: link with three closing brackets
12652 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
12655 <p><a rel="mw:WikiLink" href="./Main_Page">Main Page</a>]</p>
12659 Bug 2095: link with pipe and three closing brackets
12661 [[Main Page|link]]]
12663 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
12666 <p><a rel="mw:WikiLink" href="./Main_Page">link</a>]</p>
12670 Bug 2095: link with pipe and three closing brackets, version 2
12672 [[Main Page|[http://example.com/]]]
12674 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
12677 <p><a rel="mw:WikiLink" href="./Main_Page">[http://example.com/]</a></p>
12686 Template:Dangerous attribute
12688 " onmouseover="alert(document.cookie)
12692 Template:Dangerous style attribute
12694 border-size: expression(alert(document.cookie))
12700 <div style="float: right; {{{1}}}">Magic div</div>
12704 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
12706 <div title="{{test}}"></div>
12708 <div title="This is a test template"></div>
12713 Bug 2304: HTML attribute safety (dangerous template; 2309)
12715 <div title="{{dangerous attribute}}"></div>
12717 <div title=""></div>
12722 Bug 2304: HTML attribute safety (dangerous style template; 2309)
12724 <div style="{{dangerous style attribute}}"></div>
12726 <div style="/* insecure input */"></div>
12731 Bug 2304: HTML attribute safety (safe parameter; 2309)
12733 {{div style|width: 200px}}
12735 <div style="float: right; width: 200px">Magic div</div>
12740 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
12742 {{div style|width: expression(alert(document.cookie))}}
12744 <div style="/* insecure input */">Magic div</div>
12749 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
12751 {{div style|"><script>alert(document.cookie)</script>}}
12753 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12758 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
12760 {{div style|" ><script>alert(document.cookie)</script>}}
12762 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12767 Bug 2304: HTML attribute safety (link)
12769 <div title="[[Main Page]]"></div>
12771 <div title="[[Main Page]]"></div>
12776 Bug 2304: HTML attribute safety (italics)
12778 <div title="''foobar''"></div>
12780 <div title="''foobar''"></div>
12785 Bug 2304: HTML attribute safety (bold)
12787 <div title="'''foobar'''"></div>
12789 <div title="'''foobar'''"></div>
12795 Bug 2304: HTML attribute safety (ISBN)
12797 <div title="ISBN 1234567890"></div>
12799 <div title="ISBN 1234567890"></div>
12804 Bug 2304: HTML attribute safety (RFC)
12806 <div title="RFC 1234"></div>
12808 <div title="RFC 1234"></div>
12813 Bug 2304: HTML attribute safety (PMID)
12815 <div title="PMID 1234567890"></div>
12817 <div title="PMID 1234567890"></div>
12822 Bug 2304: HTML attribute safety (web link)
12824 <div title="http://example.com/"></div>
12826 <div title="http://example.com/"></div>
12831 Bug 2304: HTML attribute safety (named web link)
12833 <div title="[http://example.com/ link]"></div>
12835 <div title="[http://example.com/ link]"></div>
12840 Bug 3244: HTML attribute safety (extension; safe)
12842 <div style="<nowiki>background:blue</nowiki>"></div>
12844 <div style="background:blue"></div>
12849 Bug 3244: HTML attribute safety (extension; unsafe)
12851 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
12853 <div style="/* insecure input */"></div>
12857 # More MSIE fun discovered by Tom Gilder
12860 MSIE CSS safety test: spurious slash
12862 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
12864 <div style="/* insecure input */">evil</div>
12869 MSIE CSS safety test: hex code
12871 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
12873 <div style="/* insecure input */">evil</div>
12878 MSIE CSS safety test: comment in url
12880 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
12882 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
12887 MSIE CSS safety test: comment in expression
12889 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
12891 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
12896 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
12898 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
12900 <p style="/* invalid control char */">A</p>
12905 MSIE 6 CSS safety test: Fullwidth (bug 55332)
12907 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
12908 <div style="top:EXPRESSION(alert())">B</div>
12910 <p style="/* insecure input */">A</p>
12911 <div style="/* insecure input */">B</div>
12916 MSIE 6 CSS safety test: IPA extensions (bug 55332)
12918 <div style="background-image:uʀʟ(javascript:alert())">A</div>
12919 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
12921 <div style="/* insecure input */">A</div>
12922 <p style="/* insecure input */">B</p>
12927 MSIE 6 CSS safety test: sup/sub script (bug 55332)
12929 <div style="background-image:url⁽javascript:alert())">A</div>
12930 <div style="background-image:url₍javascript:alert())">B</div>
12931 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
12933 <div style="/* insecure input */">A</div>
12934 <div style="/* insecure input */">B</div>
12935 <p style="/* insecure input */">C</p>
12943 title="data:text/html,<img src=1 onerror=alert(1)>"
12944 style="-o-link:attr(title);-o-link-source:current">X</div>
12946 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
12951 MSIE 6 CSS safety test: Repetition markers (bug 55332)
12953 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
12954 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
12955 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
12956 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
12957 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
12958 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
12959 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
12961 <p style="/* insecure input */">A</p>
12962 <p style="/* insecure input */">B</p>
12963 <p style="/* insecure input */">C</p>
12964 <p style="/* insecure input */">D</p>
12965 <p style="/* insecure input */">E</p>
12966 <p style="/* insecure input */">F</p>
12967 <p style="/* insecure input */">G</p>
12972 Table attribute legitimate extension
12975 !+ style="<nowiki>color:blue</nowiki>"| status
12980 <th style="color:blue"> status
12986 Table attribute safety
12989 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
12994 <th style="/* insecure input */"> status
13000 CSS line continuation 1
13002 <div style="background-image: u\ rl(test.jpg);"></div>
13004 <div style="/* insecure input */"></div>
13009 CSS line continuation 2
13011 <div style="background-image: u\ rl(test.jpg); "></div>
13013 <div style="/* insecure input */"></div>
13024 Expansion of multi-line templates in attribute values (bug 6255)
13026 <div style="background: {{identity|#00FF00}}">-</div>
13028 <div style="background: #00FF00">-</div>
13034 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
13036 <div style="background:
13039 <div style="background: #00FF00">-</div>
13044 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
13046 <div style="background: #00FF00">-</div>
13048 <div style="background: #00FF00">-</div>
13053 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
13056 Parser hook: empty input
13069 Parser hook: empty input using terminated empty elements
13082 Parser hook: empty input using terminated empty elements (space before)
13095 Parser hook: basic input
13109 Parser hook: case insensitive
13123 Parser hook: case insensitive, redux
13136 Parser hook: nested tags
13140 <tag><tag></tag></tag>
13151 Parser hook: basic arguments
13153 <tag width=200 height = "100" depth = '50' square></tag>
13161 'square' => 'square',
13168 Parser hook: argument containing a forward slash (bug 5344)
13170 <tag filename='/tmp/bla'></tag>
13175 'filename' => '/tmp/bla',
13182 Parser hook: empty input using terminated empty elements (bug 2374)
13195 # </tag> should be output literally since there is no matching tag that begins it
13197 Parser hook: basic arguments using terminated empty elements (bug 2374)
13199 <tag width=200 height = "100" depth = '50' square/>
13209 'square' => 'square',
13218 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
13222 Parser hook: static parser hook not inside a comment
13224 <statictag>hello, world</statictag>
13225 <statictag action=flush/>
13233 Parser hook: static parser hook inside a comment
13235 <!-- <statictag>hello, world</statictag> -->
13236 <statictag action=flush/>
13242 # Nested template calls; this case was broken by Parser.php rev 1.506,
13246 Template:One-parameter
13248 (My parameter is: {{{1}}})
13252 Template:Map-one-parameter
13254 {{{{{1}}}|{{{2}}}}}
13258 Nested template calls
13260 {{Map-one-parameter|One-parameter|param}}
13262 <p>(My parameter is: param)
13271 Sanitizer: Closing of open tags
13273 <s></s><table></table>
13275 <s></s><table></table>
13280 Sanitizer: Closing of open but not closed tags
13289 Sanitizer: Closing of closed but not open tags
13298 Sanitizer: Closing of closed but not open table tags
13300 Table not started</td></tr></table>
13302 <p>Table not started</td></tr></table>
13307 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
13309 <span id="æ: v">byte</span>[[#æ: v|backlink]]
13311 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
13316 Sanitizer: Validating the contents of the id attribute (bug 4515)
13322 Something, but definitely not <br id="9" />...
13326 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
13330 <br id="foo" /><br id="foo" />
13332 Something need to be done. foo-2 ?
13336 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
13339 <meta itemprop="hello" content="world">
13340 <meta http-equiv="refresh" content="5">
13341 <meta itemprop="hello" http-equiv="refresh" content="5">
13342 <link itemprop="hello" href="{{SERVER}}">
13343 <link rel="stylesheet" href="{{SERVER}}">
13344 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
13347 <div itemscope="itemscope">
13348 <p> <meta itemprop="hello" content="world" />
13349 <meta http-equiv="refresh" content="5">
13350 <meta itemprop="hello" content="5" />
13352 <link itemprop="hello" href="http://example.org" />
13353 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
13354 <link itemprop="hello" href="http://example.org" />
13360 Language converter: output gets cut off unexpectedly (bug 5757)
13364 this bit is safe: }-
13366 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
13368 then we get cut off here: }-
13370 all additional text is vanished
13372 <p>this bit is safe: }-
13373 </p><p>but if we add a conversion instance: xxx
13374 </p><p>then we get cut off here: }-
13375 </p><p>all additional text is vanished
13380 Self closed html pairs (bug 5487)
13383 <center><font id="bug" />Centered text</center>
13384 <div><font id="bug2" />In div text</div>
13386 <center><font id="bug" />Centered text</center>
13387 <div><font id="bug2" />In div text</div>
13396 Punctuation: nbsp before exclamation
13400 <p>C'est grave !
13405 Punctuation: CSS !important (bug 11874)
13407 <div style="width:50% !important">important</div>
13409 <div style="width:50% !important">important</div>
13414 Punctuation: CSS ! important (bug 11874; with space after)
13416 <div style="width:50% ! important">important</div>
13418 <div style="width:50% ! important">important</div>
13424 HTML bullet list, closed tags (bug 5497)
13439 HTML bullet list, unclosed tags (bug 5497)
13458 HTML ordered list, closed tags (bug 5497)
13473 HTML ordered list, unclosed tags (bug 5497)
13492 HTML nested bullet list, closed tags (bug 5497)
13517 HTML nested bullet list, open tags (bug 5497)
13546 HTML nested ordered list, closed tags (bug 5497)
13571 HTML nested ordered list, open tags (bug 5497)
13600 HTML ordered list item with parameters oddity
13602 <ol><li id="fragment">One</li>
13605 <ol><li id="fragment">One</li>
13610 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
13612 bug 5918: autonumbering
13614 [http://first/] [http://second] [ftp://ftp]
13618 [mailto:enclosed@mail.tld With target]
13620 [mailto:enclosed@mail.tld]
13622 mailto:inline@mail.tld
13624 <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>
13625 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
13626 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
13627 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
13628 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
13631 <p><a rel="mw:ExtLink" href="http://first/"></a> <a rel="mw:ExtLink" href="http://second"></a> <a rel="mw:ExtLink" href="ftp://ftp"></a></p>
13632 <p><a rel="mw:ExtLink" href="ftp://inlineftp">ftp://inlineftp</a></p>
13633 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld">With target</a></p>
13634 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld"></a></p>
13635 <p><a rel="mw:ExtLink" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a></p>
13640 # Security and HTML correctness
13641 # From Nick Jenkins' fuzz testing
13645 Fuzz testing: Parser13
13660 Fuzz testing: Parser14
13665 <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>
13666 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13668 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
13676 Fuzz testing: Parser14-table
13681 <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>
13682 <table style="__TOC__">
13688 # Known to produce bogus xml (extra </td>)
13690 Fuzz testing: Parser16
13710 Fuzz testing: Parser21
13713 ! irc://{{ftp://a" onmouseover="alert('hello world');"
13718 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
13728 Fuzz testing: Parser22
13730 http://===r:::https://b
13734 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
13742 # Known to produce bad XML for now
13744 Fuzz testing: Parser24
13751 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
13752 <br style="onmouseover='alert(document.cookie);' " />
13754 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13759 <u class="|">}}}} >
13760 <br style="onmouseover='alert(document.cookie);'" />
13762 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13771 # Note: the current result listed for this is not what the original one was,
13772 # but the original bug was JavaScript injection, which is fixed in any case.
13773 # It's not clear that the original result listed was any more correct than the
13774 # current one. Original result:
13777 # <li class="||">
13778 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13780 Fuzz testing: Parser25 (bug 6055)
13786 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
13788 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13793 Fuzz testing: URL adjacent extension (with space, clean)
13796 http://example.com <nowiki>junk</nowiki>
13798 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
13803 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
13806 http://example.com<nowiki>junk</nowiki>
13808 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
13813 Fuzz testing: URL adjacent extension (no space, dirty; pre)
13816 http://example.com<pre>junk</pre>
13818 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
13823 Fuzz testing: image with bogus manual thumbnail
13825 [[Image:foobar.jpg|thumbnail= ]]
13827 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
13830 <meta typeof="mw:Placeholder" data-parsoid='{"src":"[[Image:foobar.jpg|thumbnail= ]]","optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,null,null]}'/>
13834 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
13836 <pre dir=" "></pre>
13838 <pre dir=" "></pre>
13843 Parsing optional HTML elements (Bug 6171)
13848 <td> Some tabular data</td>
13849 <td> More tabular data ...
13850 <td> And yet som tabular data</td>
13856 <td> Some tabular data</td>
13857 <td> More tabular data ...
13858 </td><td> And yet som tabular data</td>
13865 Correct handling of <td>, <tr> (Bug 6171)
13870 <td> Some tabular data</td>
13871 <td> More tabular data ...</td>
13872 <td> And yet som tabular data</td>
13878 <td> Some tabular data</td>
13879 <td> More tabular data ...</td>
13880 <td> And yet som tabular data</td>
13888 Parsing crashing regression (fr:JavaScript)
13892 <p></body></x>
13897 Inline wiki vs wiki block nesting
13903 <p><b>Bold paragraph</b>
13904 </p><p>New wiki paragraph
13909 Inline HTML vs wiki block nesting
13917 <p><b>Bold paragraph</b>
13918 </p><p>New wiki paragraph
13922 # Original result was this:
13923 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
13925 # While that might be marginally more intuitive, maybe, the six-apostrophe
13926 # construct is clearly pathological and the result stated here (which is what
13927 # the parser actually does) is about as reasonable as anything.
13929 Mixing markup for italics and bold
13932 '''bold''''''bold''bolditalics'''''
13934 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
13942 Article for special page transclusion test
13946 Special page transclusion
13949 {{Special:Prefixindex/Xyzzyx}}
13951 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13956 Special page transclusion twice (bug 5021)
13959 {{Special:Prefixindex/Xyzzyx}}
13960 {{Special:Prefixindex/Xyzzyx}}
13962 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13963 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13968 Transclusion of default MediaWiki message
13970 {{MediaWiki:Mainpage}}
13977 Transclusion of nonexistent MediaWiki message
13979 {{MediaWiki:Mainpagexxx}}
13981 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
13986 Transclusion of MediaWiki message with underscore
13988 {{MediaWiki:history_short}}
13995 Transclusion of MediaWiki message with space
13997 {{MediaWiki:history short}}
14004 Invalid header with following text
14014 Section extraction test (section 0)
14034 Section extraction test (section 1)
14056 Section extraction test (section 2)
14077 Section extraction test (section 3)
14097 Section extraction test (section 4)
14121 Section extraction test (section 5)
14141 Section extraction test (section 6)
14162 Section extraction test (section 7)
14182 Section extraction test (section 8)
14202 Section extraction test (section 9)
14223 Section extraction test (section 10)
14243 Section extraction test (nonexistent section 11)
14262 Section extraction test with bogus heading (section 1)
14267 ==bogus== not a legal section
14271 ==bogus== not a legal section
14275 Section extraction test with bogus heading (section 2)
14280 ==bogus== not a legal section
14287 Section extraction test with comment after heading (section 1)
14299 Section extraction test with comment after heading (section 2)
14311 Section extraction test with bogus <nowiki> heading (section 1)
14316 ==bogus== <nowiki>not a legal section</nowiki>
14320 ==bogus== <nowiki>not a legal section</nowiki>
14324 Section extraction test with bogus <nowiki> heading (section 2)
14329 ==bogus== <nowiki>not a legal section</nowiki>
14336 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
14337 # instead of respecting commented sections
14339 Section extraction prefixed by comment (section 1)
14350 Section extraction prefixed by comment (section 2)
14361 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
14362 # instead of respecting HTML-style headings
14364 Section extraction, mixed wiki and html (section 1)
14380 Section extraction, mixed wiki and html (section 2)
14396 # Formerly testing for bug 3342
14398 Section extraction, heading surrounded by <noinclude>
14402 <noinclude>==unmarked==</noinclude>
14408 # Test behavior of bug 19910
14410 Sectiion with all-equals
14415 The line above must have a trailing space
14418 But just in case it doesn't...
14422 But just in case it doesn't...
14426 Section replacement test (section 0)
14457 Section replacement test (section 1)
14486 Section replacement test (section 2)
14516 Section replacement test (section 3)
14547 Section replacement test (section 4)
14574 Section replacement test (section 5)
14605 Section replacement test (section 6)
14635 Section replacement test (section 7)
14666 Section replacement test (section 8)
14697 Section replacement test (section 9)
14726 Section replacement test (section 10)
14756 Section replacement test with initial whitespace (bug 13728)
14760 Preformatted initial line
14764 Preformatted initial line
14771 Section extraction, heading followed by pre with 20 spaces (bug 6398)
14783 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
14796 Section extraction, <pre> around bogus header (bug 10309)
14813 Section replacement, <pre> around bogus header (bug 10309)
14815 noxml replace=2,"xxx"
14836 Handling of 
 in URLs
14840 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
14843 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://
14845 a</a></li></ul></li></ul>
14849 Handling of %0A in URLs
14853 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
14856 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
14860 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
14862 5 quotes, code coverage +1 line
14869 <p><b><i></i></b></p>
14872 # same html as previous, but wikitext adjusted to match parsoid html2wt
14873 # note that wt2html and html2html will put the <i> before the <b>
14875 5 quotes, code coverage +1 line w/ nowiki (1)
14877 parsoid=wt2wt,html2wt
14879 '''''<nowiki/>'''''
14884 <p><b><i></i></b></p>
14887 # same as previous, just swapping the <i> and <b>
14889 5 quotes, code coverage +1 line w/ nowiki (2)
14891 '''''<nowiki/>'''''
14896 <p><i><b></b></i></p>
14900 Special:Search page linking.
14904 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
14911 title=[[Parser test]]
14916 * {{FULLPAGENAMEE}}
14918 * {{BASEPAGENAMEE}}
14922 * {{ROOTPAGENAMEE}}
14924 * {{TALKPAGENAMEE}}
14925 * {{SUBJECTPAGENAME}}
14926 * {{SUBJECTPAGENAMEE}}
14929 * {{NAMESPACENUMBER}}
14933 * {{SUBJECTSPACEE}}
14934 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
14936 <ul><li> Parser test</li>
14937 <li> Parser_test</li>
14938 <li> Parser test</li>
14939 <li> Parser_test</li>
14940 <li> Parser test</li>
14941 <li> Parser_test</li>
14942 <li> Parser test</li>
14943 <li> Parser_test</li>
14944 <li> Parser test</li>
14945 <li> Parser_test</li>
14946 <li> Talk:Parser test</li>
14947 <li> Talk:Parser_test</li>
14948 <li> Parser test</li>
14949 <li> Parser_test</li>
14957 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a></li></ul>
14960 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
14970 image4 |300px| centre
14971 image5.svg| http://///////
14976 <ul class="gallery mw-gallery-traditional">
14977 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14978 <div class="thumb" style="height: 150px;">Image1.png</div>
14979 <div class="gallerytext">
14982 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14983 <div class="thumb" style="height: 150px;">Image2.gif</div>
14984 <div class="gallerytext">
14989 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14990 <div class="thumb" style="height: 150px;">Image3</div>
14991 <div class="gallerytext">
14994 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14995 <div class="thumb" style="height: 150px;">Image4</div>
14996 <div class="gallerytext">
15001 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15002 <div class="thumb" style="height: 150px;">Image5.svg</div>
15003 <div class="gallerytext">
15004 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
15008 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15009 <div class="thumb" style="height: 150px;">* image6</div>
15010 <div class="gallerytext">
15018 Gallery (with options)
15020 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
15021 File:Nonexistant.jpg|caption
15022 File:Nonexistant.jpg
15023 image:foobar.jpg|some '''caption''' [[Main Page]]
15025 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
15028 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
15029 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
15030 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15031 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
15032 <div class="gallerytext">
15037 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15038 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
15039 <div class="gallerytext">
15042 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15043 <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>
15044 <div class="gallerytext">
15045 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15049 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15050 <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>
15051 <div class="gallerytext">
15054 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15055 <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>
15056 <div class="gallerytext">
15066 Gallery with wikitext inside caption
15069 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
15070 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
15073 <ul class="gallery mw-gallery-traditional">
15074 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15075 <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>
15076 <div class="gallerytext">
15077 <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>
15081 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15082 <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>
15083 <div class="gallerytext">
15084 <p>This is a test template
15093 gallery (with showfilename option)
15095 <gallery showfilename>
15096 File:Nonexistant.jpg|caption
15097 File:Nonexistant.jpg
15098 image:foobar.jpg|some '''caption''' [[Main Page]]
15102 <ul class="gallery mw-gallery-traditional">
15103 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15104 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
15105 <div class="gallerytext">
15106 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
15111 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15112 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
15113 <div class="gallerytext">
15114 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
15118 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15119 <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>
15120 <div class="gallerytext">
15121 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
15122 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15126 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15127 <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>
15128 <div class="gallerytext">
15129 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
15138 Gallery (with namespace-less filenames)
15141 File:Nonexistant.jpg
15147 <ul class="gallery mw-gallery-traditional">
15148 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15149 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
15150 <div class="gallerytext">
15153 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15154 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
15155 <div class="gallerytext">
15158 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15159 <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>
15160 <div class="gallerytext">
15163 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15164 <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>
15165 <div class="gallerytext">
15173 HTML Hex character encoding (spells the word "JavaScript")
15175 parsoid=wt2html,wt2wt,html2html
15177 JavaScript
15179 <p>JavaScript
15182 <p><span typeof="mw:Entity">J</span><span typeof="mw:Entity">a</span><span typeof="mw:Entity">v</span><span typeof="mw:Entity">a</span><span typeof="mw:Entity">S</span><span typeof="mw:Entity">c</span><span typeof="mw:Entity">r</span><span typeof="mw:Entity">i</span><span typeof="mw:Entity">p</span><span typeof="mw:Entity">t</span></p>
15186 HTML Hex character encoding bogus encoding (bug 26437 regression check)
15190 <p>&#xsee;&#XSEE;
15193 <p>&#xsee;&#XSEE;</p>
15197 HTML Hex character encoding mixed case
15199 parsoid=wt2html,wt2wt,html2html
15206 <p><span typeof="mw:Entity">î</span><span typeof="mw:Entity">î</span></p>
15210 __FORCETOC__ override
15222 ISBN 978-0-1234-56 789
15224 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
15229 ISBN followed by 5 spaces
15240 ISBN ISBN 1234567890
15242 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
15251 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
15256 ISBN with empty prefix (parsoid test)
15260 <p><a href="Special:BookSources/1234567890" rel="mw:ExtLink">ISBN 1234567890</a></p>
15264 Bug 22905: <abbr> followed by ISBN followed by </a>
15266 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
15268 <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>
15277 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
15282 Double RFC with a wiki link
15286 <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>
15295 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
15300 Centre-aligned image
15302 [[Image:foobar.jpg|centre]]
15304 <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>
15311 [[Image:foobar.jpg|none]]
15313 <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>
15318 Width + Height sized image (using px) (height is ignored)
15320 [[Image:foobar.jpg|640x480px]]
15322 <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>
15327 Width-sized image (using px, no following whitespace)
15329 [[Image:foobar.jpg|640px]]
15331 <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>
15336 Width-sized image (using px, with following whitespace - test regression from r39467)
15338 [[Image:foobar.jpg|640px ]]
15340 <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>
15345 Width-sized image (using px, with preceding whitespace - test regression from r39467)
15347 [[Image:foobar.jpg| 640px]]
15349 <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>
15354 Image with page parameter
15358 [[File:LoremIpsum.djvu|page=2]]
15360 <p><a href="/index.php?title=File:LoremIpsum.djvu&page=2" class="image"><img alt="LoremIpsum.djvu" src="http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-2480px-LoremIpsum.djvu.jpg" width="2480" height="3508" srcset="http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-3720px-LoremIpsum.djvu.jpg 1.5x, http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-4960px-LoremIpsum.djvu.jpg 2x" /></a>
15365 Another italics / bold test
15373 # Note the results may be incorrect, as parserTest output included this:
15374 # XML error: Mismatched tag at byte 6120:
15375 # ...<dd> </dt></dl> </dd...
15406 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
15408 Images with the "|" character in the comment
15410 [[File:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
15412 <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>
15415 <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>An <a rel="mw:ExtLink" href="http://test/?param1=|left|&param2=|x">external</a> URL</figcaption></figure>
15419 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
15421 <html><script>alert(1);</script></html>
15423 <p><html><script>alert(1);</script></html>
15428 HTML with raw HTML ($wgRawHtml==true)
15432 <html><script>alert(1);</script></html>
15434 <p><script>alert(1);</script>
15439 Parents of subpages, one level up
15441 subpage title=[[Subpage test/L1/L2/L3]]
15445 <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>
15451 Parents of subpages, one level up, not named
15453 subpage title=[[Subpage test/L1/L2/L3]]
15457 <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>
15464 Parents of subpages, two levels up
15466 subpage title=[[Subpage test/L1/L2/L3]]
15472 <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
15473 </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>
15478 Parents of subpages, two levels up, without trailing slash or name.
15480 subpage title=[[Subpage test/L1/L2/L3]]
15489 Parents of subpages, two levels up, with lots of extra trailing slashes.
15491 subpage title=[[Subpage test/L1/L2/L3]]
15495 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
15500 Subpage test/L1/L2/L3Sibling
15506 Transclusion of a sibling page (one level up)
15508 subpage title=[[Subpage test/L1/L2/L3]]
15517 Transclusion of a child page
15519 subpage title=[[Subpage test/L1/L2]]
15528 Non-transclusion because of too many up levels
15530 subpage title=[[Subpage test/L1/L2/L3]]
15532 {{../../../../More than parent}}
15534 <p>{{../../../../More than parent}}
15539 Definition list code coverage
15545 <dl><dt> title  </dt>
15547 <dt> title </dt>
15555 Don't fall for the self-closing div
15557 <div>hello world</div/>
15559 <div>hello world</div>
15568 <p>[[:Template:Msg]]
15577 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
15581 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
15583 Always escape literal '>' in output, not just after '<'
15597 <p>This is a test template
15598 This is a test template
15610 Inclusion of !userCanEdit() content
15614 <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>
15620 Out-of-order TOC heading levels
15629 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15631 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
15633 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
15634 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
15637 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
15639 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
15640 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
15646 <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>
15647 <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>
15648 <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>
15649 <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>
15650 <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>
15651 <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>
15657 ISBN with a dummy number
15667 ISBN with space-delimited number
15671 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
15677 ISBN with multiple spaces, no number
15696 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
15697 </p><p>ISBN 12345678901
15703 ISBN with trailing year (bug 8110)
15705 ISBN 1-234-56789-0 - 2006
15707 ISBN 1 234 56789 0 - 2006
15709 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
15710 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
15718 {{anchorencode:foo bar©#%n}}
15720 <p>foo_bar.C2.A9.23.25n
15725 anchorencode trims spaces
15727 {{anchorencode: __pretty__please__}}
15734 anchorencode deals with links
15736 {{anchorencode: [[hello|world]] [[hi]]}}
15743 anchorencode deals with templates
15745 {{anchorencode: {{Foo}} }}
15752 anchorencode encodes like the TOC generator: (bug 18431)
15754 === _ +:.3A%3A&&]] ===
15755 {{anchorencode: _ +:.3A%3A&&]] }}
15758 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
15759 <p>.2B:.3A.253A.26.26.5D.5D
15764 Bug 6200: blockquotes and paragraph formatting
15785 Bug 8293: Use of center tag ruins paragraph formatting
15806 Parsing of overlapping (improperly nested) inline html tags
15808 <span><s>x</span></s>
15810 <p><span><s>x</span></s></span>
15813 <p><span><s>x</s></span>
15818 ### Language variants related tests
15821 Self-link in language variants
15823 title=[[Dunav]] language=sr
15825 Both [[Dunav]] and [[Дунав]] are names for this river.
15827 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
15838 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
15840 title=[[Duna]] language=sr
15842 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
15844 <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.
15849 Link to a section of a variant of this title shouldn't be parsed as self-link
15851 title=[[Duna]] language=sr
15853 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
15855 <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.
15860 Link to pages in language variants
15864 Main Page can be written as [[Маин Паге]]
15866 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
15872 Multiple links to pages in language variants
15876 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
15878 <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>.
15884 Simple template in language variants
15890 <p>This is a test template
15896 Template with explicit namespace in language variants
15902 <p>This is a test template
15908 Basic test for template parameter in language variants
15912 {{парамтест|param=foo}}
15914 <p>This is a test template with parameter foo
15920 Simple category in language variants
15924 [[Category:МедиаWики Усер'с Гуиде]]
15926 <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>
15943 Don't convert blue categorylinks to another variant (bug 33210)
15947 [[A]][[Category:分类]]
15949 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
15954 Stripping -{}- tags (language variants)
15958 Latin proverb: -{Ne nuntium necare}-
15960 <p>Latin proverb: Ne nuntium necare
15966 Prevent conversion with -{}- tags (language variants)
15968 language=sr variant=sr-ec
15970 Latinski: -{Ne nuntium necare}-
15972 <p>Латински: Ne nuntium necare
15978 Prevent conversion of text with -{}- tags (language variants)
15980 language=sr variant=sr-ec
15982 Latinski: -{Ne nuntium necare}-
15984 <p>Латински: Ne nuntium necare
15990 Prevent conversion of links with -{}- tags (language variants)
15992 language=sr variant=sr-ec
15996 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
16002 -{}- tags within headlines (within html for parserConvert())
16004 language=sr variant=sr-ec
16008 <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>
16014 Explicit definition of language variant alternatives
16016 language=zh variant=zh-tw
16018 -{zh:China;zh-tw:Taiwan}-, not China
16020 <p>Taiwan, not China
16026 Conversion around HTML tags
16028 language=sr variant=sr-ec
16030 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
16031 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
16034 <span title="ЛаCтин">ски</span>
16040 Explicit session-wise language variant mapping (A flag and - flag)
16042 language=zh variant=zh-tw
16044 Taiwan is not China.
16045 But -{A|zh:China;zh-tw:Taiwan}- is China,
16046 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
16047 and -{China}- is China.
16049 <p>Taiwan is not China.
16050 But Taiwan is Taiwan,
16051 (This should be stripped!)
16052 and China is China.
16057 Explicit session-wise language variant mapping (H flag for hide)
16059 language=zh variant=zh-tw
16061 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
16064 <p>(This should be stripped!)
16070 Adding explicit conversion rule for title (T flag)
16072 language=zh variant=zh-tw showtitle
16074 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
16077 <p>Should be stripped!
16082 Testing that changing the language variant here in the tests actually works
16084 language=zh variant=zh showtitle
16086 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
16089 <p>Should be stripped!
16094 Recursive conversion of alt and title attrs shouldn't clear converter state
16096 language=zh variant=zh-cn showtitle
16098 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
16099 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
16103 Should be stripped<span title="Exclamation">!</span>
16108 Bug 24072: more test on conversion rule for title
16110 language=zh variant=zh-tw showtitle
16112 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
16113 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
16116 <p>This should be stripped!
16117 This won't take interferes with the title rule.
16122 Partly disable title conversion if variant == main language code
16124 language=zh variant=zh title=[[ZH]] showtitle
16126 -{T|zh-cn:CN;zh-tw:TW}-
16134 Partly disable title conversion if variant == main language code, more
16136 language=zh variant=zh title=[[ZH]] showtitle
16146 Raw output of variant escape tags (R flag)
16148 language=zh variant=zh-tw
16150 Raw: -{R|zh:China;zh-tw:Taiwan}-
16152 <p>Raw: zh:China;zh-tw:Taiwan
16157 Nested using of manual convert syntax
16159 language=zh variant=zh-hk
16161 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
16163 <p>Nested: Hello Hong Kong!
16168 Proper conversion of text in external links
16170 language=sr variant=sr-ec
16172 http://www.google.com
16173 gopher://www.google.com
16174 [http://www.google.com http://www.google.com]
16175 [gopher://www.google.com gopher://www.google.com]
16176 [https://www.google.com irc://www.google.com]
16177 [ftp://www.google.com www.google.com/ftp://dir]
16178 [//www.google.com www.google.com]
16180 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
16181 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
16182 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
16183 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
16184 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
16185 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
16186 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
16191 Do not convert roman numbers to language variants
16193 language=sr variant=sr-ec
16197 <p>Фридрих IV је цар.
16202 Unclosed language converter markup "-{"
16213 Don't convert raw rule "-{R|=>}-" to "=>"
16224 Don't break link parsing if language converter markup is in the caption.
16226 language=sr variant=sr-ec
16228 [[Main Page|-{R|main page}-]]
16230 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
16234 # This test is currently broken in the PHP parser (bug 52661)
16236 Don't break image parsing if language converter markup is in the caption.
16241 [[File:Foobar.jpg|-{R|caption}-]]
16243 <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>
16247 # This test is currently broken in the PHP parser (bug 52661)
16249 Don't break list handling if language converter markup is in the item.
16251 language=zh variant=zh-cn
16254 ;-{zh-cn:AAA;zh-tw:BBB}-
16261 # This test is currently broken in the PHP parser (bug 52661)
16263 Don't break table handling if language converter markup is in the cell.
16265 language=sr variant=sr-ec
16282 Bug 529: Uncovered bullet
16291 # Plain MediaWiki does not remove empty lists, but tidy actually does.
16292 # Templates in Wikipedia rely on this behavior, as tidy has always been
16293 # enabled there. These tests are normally run *without* tidy, so specify the
16294 # full output here.
16295 # To test realistic parsing behavior, apply a tidy-like transformation to both
16296 # the expected output and your parser's output.
16298 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
16300 ******* Foo {{bullet}}
16302 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo </li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li>
16308 Bug 529: Uncovered table already at line-start
16331 Bug 529: Uncovered bullet in parser function result
16333 * Foo {{lc:{{bullet}} }}
16341 Bug 5678: Double-parsed template argument
16343 {{lc:{{{1}}}|hello}}
16350 Bug 5678: Double-parsed template invocation
16352 {{lc:{{paramtest {{!}} param = hello }} }}
16354 <p>{{paramtest | param = hello }}
16359 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
16362 title=[[Main Page]]
16364 {{PRVNÍVELKÉ:ěščř}}
16365 {{prvnívelké:ěščř}}
16385 Morwen/13: Unclosed link followed by heading
16392 <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>
16397 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
16404 <h1><span class="mw-headline" id="heading">heading</span></h1>
16409 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
16416 <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>
16431 Paragraphs inside divs (no extra line breaks)
16443 Paragraphs inside divs (extra line break on open)
16458 Paragraphs inside divs (extra line break on close)
16473 Paragraphs inside divs (extra line break on open and close)
16490 Nesting tags, paragraphs on lines which begin with <div>
16494 <div></div><strong>A
16503 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
16505 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
16507 <blockquote>Line one
16509 Line two</blockquote>
16511 <blockquote>Line one
16512 Line two</blockquote>
16517 Bug 6200: paragraphs inside blockquotes (extra line break on open)
16522 Line two</blockquote>
16527 Line two</blockquote>
16532 Bug 6200: paragraphs inside blockquotes (extra line break on close)
16534 <blockquote>Line one
16539 <blockquote>Line one
16547 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
16564 Paragraphs inside blockquotes/divs (no extra line breaks)
16566 <blockquote><div>Line one
16568 Line two</div></blockquote>
16570 <blockquote><div>Line one
16571 Line two</div></blockquote>
16576 Paragraphs inside blockquotes/divs (extra line break on open)
16581 Line two</div></blockquote>
16586 Line two</div></blockquote>
16591 Paragraphs inside blockquotes/divs (extra line break on close)
16593 <blockquote><div>Line one
16596 </div></blockquote>
16598 <blockquote><div>Line one
16601 </div></blockquote>
16606 Paragraphs inside blockquotes/divs (extra line break on open and close)
16612 </div></blockquote>
16618 </div></blockquote>
16623 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
16625 wgLinkHolderBatchSize=0
16631 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
16632 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
16633 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
16638 Free external link invading image caption
16640 [[Image:Foobar.jpg|thumb|http://x|hello]]
16642 <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>
16647 Bug 15196: localised external link numbers
16651 [http://en.wikipedia.org/]
16653 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
16656 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/"></a></p>
16660 Multibyte character in padleft
16662 {{padleft:-Hello|7|Æ}}
16669 Multibyte character in padright
16671 {{padright:Hello-|7|Æ}}
16678 formatdate parser function
16680 {{#formatdate:2009-03-24}}
16682 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
16687 formatdate parser function, with default format
16689 {{#formatdate:2009-03-24|mdy}}
16691 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
16696 Spacing of numbers in formatted dates
16698 {{#formatdate:January 15}}
16700 <p><span class="mw-formatted-date" title="01-15">January 15</span>
16705 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
16707 language=nl title=[[MediaWiki:Common.css]]
16709 {{#formatdate:2009-03-24|dmy}}
16711 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
16724 Edit comment with link
16728 I like the [[Main Page]] a lot
16730 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
16734 Edit comment with link and link text
16738 I like the [[Main Page|best pages]] a lot
16740 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16744 Edit comment with link and link text with suffix
16748 I like the [[Main Page|best page]]s a lot
16750 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16754 Edit comment with section link (non-local, eg in history list)
16756 comment title=[[Main Page]]
16758 /* External links */ removed bogus entries
16760 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16764 Edit comment with section link and text before it (non-local, eg in history list)
16766 comment title=[[Main Page]]
16768 pre-comment text /* External links */ removed bogus entries
16770 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>
16774 Edit comment with section link (local, eg in diff view)
16776 comment local title=[[Main Page]]
16778 /* External links */ removed bogus entries
16780 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16784 Edit comment with subpage link (bug 14080)
16788 title=[[Subpage test]]
16790 Poked at a [[/subpage]] here...
16792 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
16796 Edit comment with subpage link and link text (bug 14080)
16800 title=[[Subpage test]]
16802 Poked at a [[/subpage|neat little page]] here...
16804 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
16808 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
16811 title=[[Subpage test]]
16813 Poked at a [[/subpage]] here...
16815 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
16819 Edit comment with bare anchor link (local, as on diff)
16823 title=[[Main Page]]
16827 <a href="#section">#section</a>
16831 Edit comment with bare anchor link (non-local, as on history)
16834 title=[[Main Page]]
16838 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
16842 Anchor starting with underscore
16846 <p><a href="#_ref">One</a>
16851 Id starting with underscore
16853 <div id="_ref"></div>
16855 <div id="_ref"></div>
16860 Space normalisation on autocomment (bug 22784)
16863 title=[[Main Page]]
16865 /* __hello__world__ */
16867 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
16871 percent-encoding and + signs in comments (Bug 26410)
16875 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
16877 <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>
16881 Bad images - basic functionality
16890 Bad images - bug 16039: text after bad image disappears
16904 Verify that displaytitle works (bug #22501) no displaytitle
16908 wgAllowDisplayTitle=true
16909 wgRestrictDisplayTitle=false
16911 this is not the the title
16914 <p>this is not the the title
16919 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
16924 wgAllowDisplayTitle=true
16925 wgRestrictDisplayTitle=false
16927 this is not the the title
16928 {{DISPLAYTITLE:whatever}}
16931 <p>this is not the the title
16936 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
16941 wgAllowDisplayTitle=true
16942 wgRestrictDisplayTitle=true
16944 this is not the the title
16945 {{DISPLAYTITLE:whatever}}
16948 <p>this is not the the title
16953 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
16958 wgAllowDisplayTitle=true
16959 wgRestrictDisplayTitle=true
16961 this is not the the title
16962 {{DISPLAYTITLE:screen}}
16965 <p>this is not the the title
16970 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
16975 wgAllowDisplayTitle=false
16977 this is not the the title
16978 {{DISPLAYTITLE:screen}}
16981 <p>this is not the the title
16982 <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>
16987 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
16992 wgAllowDisplayTitle=false
16994 this is not the the title
16997 <p>this is not the the title
17002 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
17007 wgAllowDisplayTitle=true
17008 wgRestrictDisplayTitle=true
17010 this is not the the title
17011 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
17013 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
17014 <p>this is not the the title
17019 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
17024 wgAllowDisplayTitle=true
17025 wgRestrictDisplayTitle=true
17027 this is not the the title
17028 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
17030 <span style="color: red;">s</span>creen
17031 <p>this is not the the title
17036 preload: check <noinclude> and <includeonly>
17040 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
17046 preload: check <onlyinclude>
17050 Goodbye <onlyinclude>Hello world</onlyinclude>
17056 preload: can pass tags through if we want to
17060 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
17062 <includeonly>Hello world</includeonly>
17066 preload: check that it doesn't try to do tricks
17070 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
17072 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
17076 Play a bit with r67090 and bug 3158
17080 <div style="width:50% !important"> </div>
17081 <div style="width:50% !important"> </div>
17082 <div style="width:50% !important"> </div>
17083 <div style="border : solid;"> </div>
17085 <div style="width:50% !important"> </div>
17086 <div style="width:50% !important"> </div>
17087 <div style="width:50% !important"> </div>
17088 <div style="border : solid;"> </div>
17093 HTML5 data attributes
17095 <span data-foo="bar">Baz</span>
17096 <p data-abc-def_hij="">Quuz</p>
17098 <p><span data-foo="bar">Baz</span>
17100 <p data-abc-def_hij="">Quuz</p>
17105 percent-encoding and + signs in internal links (Bug 26410)
17107 [[User:+%]] [[Page+title%]]
17108 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
17109 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
17110 [[%33%45]] [[%33%45+]]
17112 <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>
17113 <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>
17114 <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>
17115 <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>
17120 Special characters in embedded file links (bug 27679)
17122 [[File:Contains & ampersand.jpg]]
17123 [[File:Does not exist.jpg|Title with & ampersand]]
17125 <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>
17126 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
17132 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
17134 Text's been normalized?
17136 <p>Text's been normalized?
17141 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
17143 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
17145 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
17150 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
17152 [http://www.example.org/ ideograms]
17154 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
17159 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
17161 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
17163 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
17187 Bug 31098 Template which includes system messages which includes the template
17191 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
17192 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
17197 Bug31490 Turkish: ucfirst 'blah'
17208 Bug31490 Turkish: ucfirst 'ix'
17219 Bug31490 Turkish: lcfirst 'BLAH'
17230 Bug31490 Turkish: ucfırst (with a dotless i)
17236 <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>
17241 Bug31490 ucfırst (with a dotless i) with English language
17247 <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>
17252 Bug 26375: TOC with italics
17254 title=[[Main Page]]
17257 == ''Lost'' episodes ==
17259 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17261 <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>
17265 <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>
17270 Bug 26375: TOC with bold
17272 title=[[Main Page]]
17275 == '''should be bold''' then normal text ==
17277 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17279 <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>
17283 <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>
17288 Bug 33845: Headings become cursive in TOC when they contain an image
17290 title=[[Main Page]]
17293 == Image [[Image:foobar.jpg]] ==
17295 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17297 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
17301 <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>
17306 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
17308 title=[[Main Page]]
17311 == <blockquote>Quote</blockquote> ==
17313 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17315 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
17319 <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>
17324 Unclosed tags in TOC
17326 title=[[Main Page]]
17330 <small>Hanc marginis exiguitas non caperet.</small>
17333 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17335 <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>
17339 <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>
17340 <p><small>Hanc marginis exiguitas non caperet.</small>
17346 Multiple tags in TOC
17349 == <i>Foo</i> <b>Bar</b> ==
17351 == <i>Foo</i> <blockquote>Bar</blockquote> ==
17353 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17355 <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>
17356 <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>
17360 <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>
17361 <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>
17366 Tags with parameters in TOC
17369 == <sup class="in-h2">Hello</sup> ==
17371 == <sup class="a > b">Evilbye</sup> ==
17373 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17375 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
17376 <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>
17380 <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>
17381 <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>
17386 span tags with directionality in TOC
17389 == <span dir="ltr">C++</span> ==
17391 == <span dir="rtl">זבנג!</span> ==
17393 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
17395 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
17397 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
17399 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17401 <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>
17402 <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>
17403 <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>
17404 <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>
17405 <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>
17409 <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>
17410 <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>
17411 <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>
17412 <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>
17413 <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>
17420 == {{int:headline_sample}} ==
17424 Bug 32057: Title needed when expanding <h> nodes.
17426 title=[[Main Page]]
17430 <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>
17435 Strip marker in urlencode
17437 {{urlencode:x<nowiki/>y}}
17438 {{urlencode:x<nowiki/>y|wiki}}
17439 {{urlencode:x<nowiki/>y|path}}
17466 Strip marker in formatNum
17468 {{formatnum:1<nowiki/>2}}
17469 {{formatnum:1<nowiki/>2|R}}
17477 Check noCommafy in formatNum
17481 {{formatnum:123456.78}}
17482 {{formatnum:123456.78|NOSEP}}
17490 Wrong option for formatNum (bug 56199)
17492 {{formatnum:1,234.56|Random}}
17493 {{formatnum:1,234.56|EVERYTHING}}
17494 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
17503 Strip marker in grammar
17507 {{grammar:elative|foo<nowiki/>bar}}
17514 Strip marker in padleft
17516 {{padleft:|2|x<nowiki/>y}}
17523 Strip marker in padright
17525 {{padright:|2|x<nowiki/>y}}
17532 Strip marker in anchorencode
17534 {{anchorencode:x<nowiki/>y}}
17541 nowiki inside link inside heading (bug 18295)
17543 ==[[foo|x<nowiki>y</nowiki>z]]==
17545 <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>
17550 new support for bdi element (bug 31817)
17552 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17554 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17559 Ignore pipe between table row attributes
17563 |- id=foo | style='color: red'
17571 <tr id="foo" style="color: red">
17578 Gallery override link with WikiLink (bug 34852)
17581 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
17584 <ul class="gallery mw-gallery-traditional">
17585 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17586 <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>
17587 <div class="gallerytext">
17597 Gallery override link with absolute external link (bug 34852)
17600 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
17603 <ul class="gallery mw-gallery-traditional">
17604 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17605 <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>
17606 <div class="gallerytext">
17616 Gallery override link with malicious javascript (bug 34852)
17619 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
17622 <ul class="gallery mw-gallery-traditional">
17623 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17624 <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>
17625 <div class="gallerytext">
17635 Gallery with invalid title as link (bug 43964)
17638 File:foobar.jpg|link=<
17641 <ul class="gallery mw-gallery-traditional">
17642 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17643 <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>
17644 <div class="gallerytext">
17652 Language parser function
17661 Padleft and padright as substr
17663 {{padleft:|3|abcde}}
17664 {{padright:|3|abcde}}
17672 Special parser function
17674 {{#special:RandomPage}}
17675 {{#special:BaDtItLe}}
17676 {{#special:Foobar}}
17685 Bug 34939 - Case insensitive link parsing ([HttP://])
17687 [HttP://MediaWiki.Org/]
17689 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
17692 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/"></a></p>
17696 Bug 34939 - Case insensitive link parsing ([HttP:// title])
17698 [HttP://MediaWiki.Org/ MediaWiki]
17700 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
17705 Bug 34939 - Case insensitive link parsing (HttP://)
17707 HttP://MediaWiki.Org/
17709 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
17712 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a></p>
17730 <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>
17731 <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>
17732 <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>
17733 <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>
17734 <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>
17740 ### Parsoid-specific tests
17741 ### Parsoid-PHP parser incompatibilities
17744 1. SOL-sensitive wikitext tokens as template-args
17746 parsoid=wt2html,wt2wt
17752 <span about="#mwt1" typeof="mw:Transclusion">
17753 </span><ul about="#mwt1"><li>a</li>
17755 <span about="#mwt2" typeof="mw:Transclusion">
17756 </span><ol about="#mwt2"><li>a</li>
17758 <span about="#mwt3" typeof="mw:Transclusion">
17759 </span><dl about="#mwt3"><dd>a</dd>
17763 #### -----------------------------------------------------------------
17764 #### Parsoid-specific functionality tests
17765 #### -----------------------------------------------------------------
17767 # Bug 63642: Formatting elt fixup is cleaned up.
17768 # We know wt2wt will fail, but we expect selser to pass.
17769 # Due to the nature of our testing, wt2wt and selser tests will enter the
17770 # blacklist and we'll catch selser regressions based on changes to the
17771 # blacklist entries for selser tests.
17773 Bad treebuilder fixup of formatting elt is cleaned up
17775 parsoid=wt2html,wt2wt
17780 [[Image:Foobar.jpg|right|Test]]
17786 <p><small></small></p>
17787 <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><small>Test</small></figcaption></figure>
17792 #### ----------------------------------------------------------------
17793 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
17794 #### tags. Parsoid's output for these tags differs from that of the
17796 #### ----------------------------------------------------------------
17799 Ref: 1. ref-location should be replaced with an index span
17804 B <ref name="x">foo</ref>
17807 <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>
17808 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>
17809 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>
17813 Ref: 2. ref-tags with identical names should all get the same index
17817 A <ref name="x">foo</ref>
17820 <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>
17821 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>
17825 Ref: 3. spaces in ref-names should be ignored
17829 A <ref name="x">foo</ref>
17830 B <ref name=" x " />
17833 <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>
17834 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>
17835 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>
17839 Ref: 4. 'constructor' should be accepted as a valid ref-name
17840 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
17844 A <ref name="constructor">foo</ref>
17846 <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>
17850 Ref: 5. body should accept generic wikitext
17855 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
17860 <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='{\"pi\":[[{\"k\":\"1\",\"spc\":[\"\",\"\",\"\",\"\"]}]],\"dsr\":[55,76,null,null]}'>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>
17862 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
17863 <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>
17869 Ref: 6. indent-pres should not be output in ref-body
17881 <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>
17883 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
17884 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17892 Ref: 7. No p-wrapping in ref-body
17911 <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>
17913 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17914 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17929 Ref: 8. transclusion wikitext has lower precedence
17933 A <ref> foo {{echo|</ref> B C}}
17937 <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>
17938 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
17939 <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>
17944 Ref: 9. unclosed comments should not leak out of ref-body
17948 A <ref> foo <!--</ref> B C
17951 <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>
17952 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17953 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
17958 Ref: 10. Unclosed HTML tags should not leak out of ref-body
17962 A <ref> <b> foo </ref> B C
17966 <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>
17969 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17970 <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>
17975 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
17982 <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
17983 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>
17987 Ref: 12. ref-tags act as trailing newline migration barrier
17991 <!--the newline at the end of this line moves out of the p-tag-->a
17993 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
17998 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
18001 <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>
18002 <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>
18009 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
18017 <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
18018 <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>
18022 Ref: 14. A nested ref-tag should be emitted as plain text
18026 <ref>foo <ref>bar</ref> baz</ref>
18030 <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>
18032 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
18033 <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>
18038 Ref: 15. ref-tags with identical names should get identical indexes
18042 A1 <ref name="a">foo</ref> A2 <ref name="a" />
18043 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
18047 <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>
18048 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>
18050 <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>
18054 ## We don't bother wt2wt-ing non-standard whitespace
18056 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
18064 <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>
18066 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
18067 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
18071 References: 1. references tag without any refs should be handled properly
18077 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
18081 References: 2. references tag with group only outputs references from that group
18085 A <ref group="a">foo</ref>
18086 B <ref group="b">bar</ref>
18088 <references group="a" />
18090 <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>
18091 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>
18093 <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>
18098 References: 3. ref list should be cleared after processing references
18110 <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>
18112 <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>
18115 <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>
18117 <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>
18122 References: 4. only referenced group should be cleared after processing references
18126 A <ref group="a">afoo</ref>
18129 <references group="a" />
18135 <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>
18136 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>
18138 <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>
18141 <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>
18143 <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>
18148 References: 5. ref tags in references should be processed while ignoring all other content
18153 B <ref name="b">bar</ref>
18156 <ref name="a">foo</ref>
18157 This should just get lost.
18160 <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>
18161 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>
18164 <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":{}}'>
18165 <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>
18166 <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>
18171 References: 6. <references /> from a transclusion
18175 <ref>Foo</ref> {{echo|<references />}}
18177 <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>
18181 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
18185 A <ref>foo bar for a</ref>
18186 B <ref group="X" name="b" />
18190 <references group="X">
18191 <ref name="b">foo</ref>
18194 <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>
18195 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>
18197 <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>
18199 <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>
18203 Entities in ref name
18207 <ref name="test & me">hi</ref>
18209 <p data-parsoid='{}'><span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"hi"},"attrs":{"name":"test & me"}}' id="cite_ref-test & me-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref name=\"test &amp; me\">hi</ref>"}'><a href="#cite_note-test & me-1" data-parsoid="{}">[1]</a></span></p>
18212 # This test is wt2html only because we're permitting the serializer to produce
18213 # dirty diffs, normalizing the unclosed references to the self-closed version.
18215 Generate references for unclosed references tag
18223 <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>
18226 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
18227 <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>
18231 New reference serializes on its own line
18233 parsoid=wt2wt,html2wt
18238 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
18241 #### ----------------------------------------------------------------
18242 #### The following section of tests are primarily to test
18243 #### wikitext escaping capabilities of Parsoid. Given that
18244 #### escaping can be done any number of ways, the wikitext (input)
18245 #### is always adjusted to reflect how Parsoid adds nowiki
18248 #### We are marking several tests as parsoid-only since the
18249 #### HTML in the result section is different from what the
18250 #### PHP parser generates for it.
18251 #### ----------------------------------------------------------------
18254 #### --------------- Headings ---------------
18256 #### 1. Nested inside html <h1>=foo=</h1>
18257 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
18258 #### 3. Nested inside html with wikitext split by html tags
18259 #### 4. No escape needed
18260 #### 5. Empty headings <h1></h1>
18261 #### 6. Heading chars in SOL context
18262 #### ----------------------------------------
18264 Headings: 0. Unnested
18268 <nowiki>=foo=</nowiki>
18270 <nowiki> =foo= </nowiki>
18272 <nowiki>=foo=</nowiki>
18274 =foo''a''<nowiki>=</nowiki>
18276 <p><span typeof="mw:Nowiki">=foo=</span></p>
18278 <p><span typeof="mw:Nowiki"> =foo= </span>
18280 <span typeof="mw:Nowiki">=foo=</span></p>
18282 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
18286 Headings: 1. Nested inside html
18287 (New headings and existing headings are handled differently)
18297 =<nowiki>=foo=</nowiki>=
18298 ==<nowiki>=foo=</nowiki>==
18299 ===<nowiki>=foo=</nowiki>===
18300 ====<nowiki>=foo=</nowiki>====
18301 =====<nowiki>=foo=</nowiki>=====
18302 ======<nowiki>=foo=</nowiki>======
18309 <h1 data-parsoid='{}'>=foo=</h1>
18310 <h2 data-parsoid='{}'>=foo=</h2>
18311 <h3 data-parsoid='{}'>=foo=</h3>
18312 <h4 data-parsoid='{}'>=foo=</h4>
18313 <h5 data-parsoid='{}'>=foo=</h5>
18314 <h6 data-parsoid='{}'>=foo=</h6>
18318 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
18323 <nowiki>*</nowiki>bar
18329 <nowiki>=bar=</nowiki>
18337 Headings: 3. Nested inside html with wikitext split by html tags
18341 = ='''bold'''<nowiki>foo=</nowiki> =
18343 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
18347 Headings: 4a. No escaping needed (testing just h1 and h2)
18365 = <nowiki>=</nowiki> =
18373 <h1><i>=</i>foo=</h1>
18374 <h1><span typeof="mw:Nowiki">=</span></h1>
18378 Headings: 4b. No escaping needed (inside p-tags)
18393 Headings: 5. Empty headings
18405 =====<nowiki/>=====
18407 ======<nowiki/>======
18418 Headings: 6a. Heading chars in SOL context (with trailing spaces)
18422 <nowiki>=a=</nowiki>
18424 <nowiki>=a=</nowiki>
18426 <nowiki>=a=</nowiki>
18428 <nowiki>=a=</nowiki>
18437 Headings: 6b. Heading chars in SOL context (with trailing newlines)
18465 Headings: 6c. Heading chars in SOL context (leading newline break)
18470 <nowiki>=b=</nowiki>
18477 Headings: 6d. Heading chars in SOL context (with interspersed comments)
18481 <!--c0--><nowiki>=a=</nowiki>
18483 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
18485 <p><!--c0-->=a=</p>
18486 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
18490 Headings: 6d. Heading chars in SOL context (No escaping needed)
18499 #### --------------- Lists ---------------
18500 #### 0. Outside nests (*foo, etc.)
18501 #### 1. Nested inside html <ul><li>*foo</li></ul>
18502 #### 2. Inside definition lists
18503 #### 3. Only bullets at start should be escaped
18504 #### 4. No escapes needed
18505 #### 5. No unnecessary escapes
18506 #### 6. Escape bullets in SOL position
18507 #### 7. Escape bullets in a multi-line context
18508 #### ----------------------------------------
18511 Lists: 0. Outside nests
18513 <nowiki>*</nowiki>foo
18515 <nowiki>#</nowiki>foo
18517 <nowiki>;Foo:</nowiki>bar
18526 Lists: 1. Nested inside html
18528 *<nowiki>*foo</nowiki>
18530 *<nowiki>#foo</nowiki>
18532 *<nowiki>:foo</nowiki>
18534 *<nowiki>;foo</nowiki>
18536 #<nowiki>*foo</nowiki>
18538 #<nowiki>#foo</nowiki>
18540 #<nowiki>:foo</nowiki>
18542 #<nowiki>;foo</nowiki>
18544 <ul><li>*foo</li></ul>
18545 <ul><li>#foo</li></ul>
18546 <ul><li>:foo</li></ul>
18547 <ul><li>;foo</li></ul>
18548 <ol><li>*foo</li></ol>
18549 <ol><li>#foo</li></ol>
18550 <ol><li>:foo</li></ol>
18551 <ol><li>;foo</li></ol>
18556 Lists: 2. Inside definition lists
18558 ;<nowiki>;foo</nowiki>
18560 ;<nowiki>:foo</nowiki>
18562 ;<nowiki>:foo</nowiki>
18565 :<nowiki>:foo</nowiki>
18567 <dl><dt>;foo</dt></dl>
18568 <dl><dt>:foo</dt></dl>
18571 <dl><dd>:foo</dd></dl>
18576 Lists: 3. Only bullets at start of text should be escaped
18578 *<nowiki>*foo*bar</nowiki>
18580 *<nowiki>*foo</nowiki>''it''*bar
18582 <ul><li>*foo*bar</li></ul>
18583 <ul><li>*foo<i>it</i>*bar</li></ul>
18588 Lists: 4. No escapes needed
18609 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
18613 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
18619 Lists: 5. No unnecessary escapes
18621 * bar <span><nowiki>[[foo]]</nowiki></span>
18623 *=bar <span><nowiki>[[foo]]</nowiki></span>
18625 *[[bar <span><nowiki>[[foo]]</nowiki></span>
18627 *]]bar <span><nowiki>[[foo]]</nowiki></span>
18629 *=bar <span>foo]]</span>=
18633 <ul><li> bar <span>[[foo]]</span></li></ul>
18634 <ul><li>=bar <span>[[foo]]</span></li></ul>
18635 <ul><li>[[bar <span>[[foo]]</span></li></ul>
18636 <ul><li>]]bar <span>[[foo]]</span></li></ul>
18637 <ul><li>=bar <span>foo]]</span>=</li></ul>
18638 <ul><li> <s></s>: a</li></ul>
18643 Lists: 6. Escape bullets in SOL position
18647 <!--cmt--><nowiki>*foo</nowiki>
18649 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
18653 Lists: 7. Escape bullets in a multi-line context
18656 <nowiki>*</nowiki>b
18663 #### --------------- HRs ---------------
18664 #### 1. Single line
18665 #### -----------------------------------
18668 HRs: 1. Single line
18672 ----<nowiki>----</nowiki>
18676 <hr><span typeof="mw:Nowiki">----</span>
18681 #### --------------- Tables ---------------
18682 #### 1a. Simple example
18683 #### 1b. No escaping needed (!foo)
18684 #### 1c. No escaping needed (|foo)
18685 #### 1d. No escaping needed (|}foo)
18687 #### 2a. Nested in td (<td>foo|bar</td>)
18688 #### 2b. Nested in td (<td>foo||bar</td>)
18689 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
18691 #### 3a. Nested in th (<th>foo!bar</th>)
18692 #### 3b. Nested in th (<th>foo!!bar</th>)
18693 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
18697 #### 4c. No escaping needed
18698 #### --------------------------------------
18701 Tables: 1a. Simple example
18712 Tables: 1b. No escaping needed
18721 Tables: 1c. No escaping needed
18730 Tables: 1d. No escaping needed
18739 Tables: 2a. Nested in td
18744 |<nowiki>foo|bar</nowiki>
18746 |x<div><nowiki>a|b</nowiki></div>
18750 <td>foo|bar</td></tr>
18751 <tr><td>x<div>a|b</div></td>
18756 Tables: 2b. Nested in td
18761 |<nowiki>foo||bar</nowiki>
18762 |''it''<nowiki>foo||bar</nowiki>
18766 <td><span typeof="mw:Nowiki">foo||bar</span></td>
18767 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
18771 Tables: 2c. Nested in td -- no escaping needed
18779 <table><tbody><tr><td>foo!!bar
18780 </td></tr></tbody></table>
18785 Tables: 3a. Nested in th
18793 <table><tbody><tr><th>foo!bar
18794 </th></tr></tbody></table>
18799 Tables: 3b. Nested in th
18804 !<nowiki>foo!!bar</nowiki>
18808 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
18813 Tables: 3c. Nested in th -- no escaping needed
18818 !<nowiki>foo||bar</nowiki>
18822 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
18826 Tables: 4a. Escape -
18833 |<nowiki>-bar</nowiki>
18837 <tr><th>-bar</th></tr>
18839 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
18843 Tables: 4b. Escape +
18850 |<nowiki>+bar</nowiki>
18854 <tr><th>+bar</th></tr>
18856 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
18860 Tables: 4c. No escaping needed
18881 <tr><td>foo-bar</td><td>foo+bar</td></tr>
18882 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
18888 <div>a|b</div></td>
18893 Tables: 4d. No escaping needed
18904 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
18905 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
18906 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
18911 Tables: Digest broken attributes on table and tr tag
18927 #### --------------- Links ----------------
18928 #### 1. Quote marks in link text
18929 #### 2. Wikilinks: Escapes needed
18930 #### 3. Wikilinks: No escapes needed
18931 #### 4. Extlinks: Escapes needed
18932 #### 5. Extlinks: No escapes needed
18933 #### --------------------------------------
18935 Links 1. Quote marks in link text
18939 [[Foo|Foo<nowiki>''boo''</nowiki>]]
18941 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
18945 Links 2. WikiLinks: Escapes needed
18950 [[Foo|<nowiki>Foobar]</nowiki>]]
18951 [[Foo|x [Foobar] x]]
18952 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
18953 [[Foo|<nowiki>[[Bar]]</nowiki>]]
18954 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
18955 [[Foo|<nowiki>|Bar</nowiki>]]
18956 [[Foo|<nowiki>]]bar</nowiki>]]
18957 [[Foo|<nowiki>[[bar</nowiki>]]
18958 [[Foo|<nowiki>x [[ y</nowiki>]]
18959 [[Foo|<nowiki>x ]] y</nowiki>]]
18960 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
18962 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
18963 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
18964 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
18965 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
18966 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
18967 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
18968 <a href="Foo" rel="mw:WikiLink">|Bar</a>
18969 <a href="Foo" rel="mw:WikiLink">]]bar</a>
18970 <a href="Foo" rel="mw:WikiLink">[[bar</a>
18971 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
18972 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
18973 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
18977 Links 3. WikiLinks: No escapes needed
18984 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
18985 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
18989 Links 4. ExtLinks: Escapes needed
18993 [http://google.com <nowiki>[google]</nowiki>]
18994 [http://google.com <nowiki>google]</nowiki>]
18996 <nowiki>[http://google.com]</nowiki>
18998 <nowiki>[http://google.com google]</nowiki>
19001 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
19002 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
19003 <p>[http://google.com]</p>
19004 <p>[http://google.com google]</p>
19008 Links 5. ExtLinks: No escapes needed
19012 [http://google.com [google]
19014 <a href="http://google.com" rel="mw:ExtLink">[google</a>
19018 Links 6. Add <nowiki/>s between text-nodes and url-links when required (bug 64300)
19020 <p>x<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>y
19021 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>?x
19022 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>&x
19023 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>'x
19024 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,x
19025 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.x
19026 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
19027 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>:x
19028 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
19029 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>!x
19030 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>=x
19031 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>(x)
19032 <a rel="mw:ExtLink" href="http://example.com(x" data-parsoid='{"stx":"url"}'>http://example.com(x</a>)
19035 x<nowiki/>http://example.com<nowiki/>y
19036 http://example.com<nowiki/>?x
19037 http://example.com<nowiki/>&x
19038 http://example.com<nowiki/>'x
19039 http://example.com<nowiki/>,x
19040 http://example.com<nowiki/>.x
19041 http://example.com<nowiki/>;x
19042 http://example.com<nowiki/>:x
19043 http://example.com<nowiki/>;x
19044 http://example.com<nowiki/>!x
19045 http://example.com<nowiki/>=x
19046 http://example.com<nowiki/>(x)
19047 http://example.com(x<nowiki/>)
19051 Links 7a. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
19054 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>
19056 "<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>"
19057 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>)
19058 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>) foo
19059 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,
19060 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>, foo
19066 "http://example.com"
19067 (http://example.com)
19068 (http://example.com) foo
19069 http://example.com,
19070 http://example.com, foo
19073 ## Parsoid currently fails wt2html on this one!
19075 Links 7b. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
19077 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.,;:!?</p>
19079 http://example.com.,;:!?
19083 Links 8. Add <nowiki/>s between text-nodes and RFC-links when required (bug 64300)
19085 <p><a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>4</p>
19091 Links 9. Don't add spurious <nowiki/>s between text-nodes and RFC-links (bug 64300)
19093 <p>x<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
19094 X<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
19095 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>?foo
19096 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>&foo
19106 Links 10. Add <nowiki/>s between text-nodes and PMID-links when required (bug 64300)
19108 <p><a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>4
19114 Links 11. Don't add spurious <nowiki/>s between text-nodes and PMID-links (bug 64300)
19116 <p>x<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
19117 X<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
19118 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>?foo
19119 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>&foo
19129 Links 12. Add <nowiki/>s between text-nodes and ISBN-links when required (bug 64300)
19131 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>1
19132 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>x
19133 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>b
19136 ISBN 1234567890<nowiki/>1
19137 ISBN 1234567890<nowiki/>x
19138 ISBN 1234567890<nowiki/>b
19142 Links 12. Don't add spurious <nowiki/>s between text-nodes and ISBN-links (bug 64300)
19144 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>'s
19149 #### --------------- Quotes ---------------
19150 #### 1. Quotes inside <b> and <i>
19151 #### 2. Link fragments separated by <i> and <b> tags
19152 #### 3. Link fragments inside <i> and <b>
19153 #### 4. No escaping needed
19154 #### --------------------------------------
19156 1. Quotes inside <b> and <i>
19158 parsoid=html2wt,wt2wt
19160 ''<nowiki>'foo'</nowiki>''
19161 ''<nowiki>''foo''</nowiki>''
19162 ''<nowiki>'''foo'''</nowiki>''
19164 '''<nowiki>'foo'</nowiki>'''
19165 '''<nowiki>''foo''</nowiki>'''
19166 '''<nowiki>'''foo'''</nowiki>'''
19167 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
19168 '''foo'''<nowiki/>'s
19171 '<nowiki/>''foo''<nowiki/>'
19173 '''foo'''<nowiki/>'
19174 '<nowiki/>'''foo'''<nowiki/>'
19175 ''fools'<span> errand</span>''
19176 ''<span>fool</span>'s errand''
19185 <b>foo'<i>bar'</i>baz</b>
19193 <i>fools'<span> errand</span></i>
19194 <i><span>fool</span>'s errand</i>
19198 2. Link fragments separated by <i> and <b> tags
19200 [[''foo''<nowiki>hello]]</nowiki>
19202 [['''foo'''<nowiki>hello]]</nowiki>
19204 <p>[[<i>foo</i>hello]]
19205 </p><p>[[<b>foo</b>hello]]
19210 3. Link fragments inside <i> and <b>
19211 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
19212 this is one of the shortcomings of this format)
19214 ''[[foo''<nowiki>]]</nowiki>
19216 '''[[foo'''<nowiki>]]</nowiki>
19219 </p><p><b>[[foo</b>]]
19224 4. No escaping needed
19226 '<span>''bar''</span>'
19227 '<span>'''bar'''</span>'
19229 <p>'<span><i>bar</i></span>'
19230 '<span><b>bar</b></span>'
19234 #### ----------- Paragraphs ---------------
19235 #### 1. No unnecessary escapes
19236 #### --------------------------------------
19239 1. No unnecessary escapes
19241 bar <span><nowiki>[[foo]]</nowiki></span>
19243 =bar <span><nowiki>[[foo]]</nowiki></span>
19245 [[bar <span><nowiki>[[foo]]</nowiki></span>
19247 ]]bar <span><nowiki>[[foo]]</nowiki></span>
19249 =bar <span>foo]]</span><nowiki>=</nowiki>
19251 <p>bar <span>[[foo]]</span>
19252 </p><p>=bar <span>[[foo]]</span>
19253 </p><p>[[bar <span>[[foo]]</span>
19254 </p><p>]]bar <span>[[foo]]</span>
19255 </p><p>=bar <span>foo]]</span>=
19259 #### ----------------------- PRE --------------------------
19260 #### 1. Leading whitespace in SOL context should be escaped
19261 #### ------------------------------------------------------
19263 1. Leading whitespace in SOL context should be escaped
19267 <nowiki> </nowiki>a
19269 <nowiki> </nowiki> a
19271 <nowiki> </nowiki>a(tab)
19273 <nowiki> </nowiki> a
19275 <nowiki> </nowiki> a
19278 <nowiki> </nowiki>b
19281 <nowiki> </nowiki>b
19284 <nowiki> </nowiki> b
19290 <p><!--cmt--> a</p>
19299 #### --------------- Behavior Switches --------------------
19301 1. Valid behavior switches should be escaped
19305 <nowiki>__TOC__</nowiki>
19311 2. Invalid behavior switches should not be escaped
19322 #### --------------- HTML tags ---------------
19325 #### 3. multi-line html tag
19326 #### 4. extension tags
19327 #### -----------------------------------------
19333 <a href="http://google.com">google</a>
19335 <a href="http://google.com">google</a>
19341 <nowiki><div>foo</div>
19342 <div style="color:red">foo</div></nowiki>
19344 <p><div>foo</div>
19345 <div style="color:red">foo</div>
19350 3. multi-line html tag
19365 <nowiki><ref>foo</ref></nowiki>
19367 <nowiki><ref>bar</nowiki>
19369 baz<nowiki></ref></nowiki>
19371 <p><ref>foo</ref>
19372 </p><p><ref>bar
19373 </p><p>baz</ref>
19377 #### --------------- Others ---------------
19381 <nowiki>foo</nowiki>
19383 <p><nowiki>foo</nowiki>
19387 ## The quote-char in the input is necessary for triggering the bug
19389 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
19391 parsoid=wt2wt,html2wt
19400 Tag-like HTML structures are passed through as text
19422 </p><p>1<d e>f
19427 # This was a bug in the PHP parser (see bug 17663 and its dups,
19428 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
19430 Tag names followed by punctuation should not be recognized as tags
19434 <p><s.ome> text
19439 HTML tag with necessary entities in attributes
19441 <span title="&amp;">foo</span>
19443 <p><span title="&amp;">foo</span>
19448 HTML tag with 'unnecessary' entity encoding in attributes
19450 <span title="&">foo</span>
19452 <p><span title="&">foo</span>
19457 HTML tag with broken attribute value quoting
19459 <span title="Hello world>Foo</span>
19461 <p><span>Foo</span>
19466 Parsoid-only: HTML tag with broken attribute value quoting
19470 <span title="Hello world>Foo</span>
19472 <p><span title="Hello world">Foo</span>
19477 Table with broken attribute value quoting
19480 | title="Hello world|Foo
19491 Table with broken attribute value quoting on consecutive lines
19494 | title="Hello world|Foo
19495 | style="color:red|Bar
19508 Parsoid-only: Table with broken attribute value quoting on consecutive lines
19513 | title="Hello world|Foo
19514 | style="color:red|Bar
19519 <td title="Hello world">Foo
19520 </td><td style="color: red">Bar
19521 </td></tr></tbody></table>
19526 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
19536 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
19546 Accept empty td cell attribute
19549 | align="center" | foo || |
19554 <td align="center"> foo </td>
19561 Non-empty attributes in th-cells
19564 ! Foo !! style="color: red" | Bar
19570 <th style="color: red"> Bar
19576 Accept empty attributes in th-cells
19591 Empty table rows go away
19612 ### Parsoid-centric tests for testing RTing of inter-element separators
19613 ### Edge cases not tested by existing parser tests and specific to
19614 ### Parsoid-specific serialization strategies.
19618 RT-ed inter-element separators should be valid separators
19631 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
19632 (Parsoid-only since PHP parser relies on Tidy for correct output)
19648 Empty TD followed by TD with tpl-generated attribute
19653 |{{echo|style='color:red'}}|foo
19667 Indented table with an empty td
19686 Empty TR followed by a template-generated TR
19687 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
19693 {{echo|<tr><td>foo</td></tr>}}
19699 <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}}]}'>
19704 ## PHP and parsoid output differ for this, and since this is primarily
19705 ## for testing Parsoid's serializer, marking this Parsoid only
19707 Empty TR followed by mixed-ws-comment line should RT correctly
19723 <!--c--> </tr><!--d-->
19729 Multi-line image caption generated by templates with/without trailing newlines
19733 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
19734 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
19736 <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>
19737 <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>
19742 New element inserted (without intervening newlines) after an old sol-transparent node should serialize correctly
19746 <includeonly>foo</includeonly>
19753 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>foo</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><p>new para</p>
19755 <link rel="mw:PageProp/Category" href="./Category:Foo" data-parsoid=''/><h1>new heading</h1>
19758 ## PHP emits broken html for this, and since this is primarily
19759 ## a Parsoid serializer test, marking this Parsoid only
19761 Improperly nested inline or quotes tags with whitespace in between
19765 <span> <s>x</span> </s>
19768 <p><span> <s>x</s></span><s> </s>
19769 <b> <i>x</i></b><i> </i>
19774 Encapsulate protected attributes from wt
19778 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
19780 <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>
19784 ## Currently the p-wrapper is fragile in how it adds / removes transformations.
19785 ## Having nested or stray pre tags results in the attempt to add duplicates,
19786 ## causing an assertion fail. This test tries to prevent that situation.
19788 Ensure ParagraphWrapper can deal with stray closing pre tags
19798 1. Ensure fostered text content is wrapped in spans
19802 <table>hi</table><table>ho</table>
19811 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
19813 parsoid=wt2html,wt2wt
19820 <span> || ||</span>
19829 Encapsulation properly handles null DSR information from foster box
19831 parsoid=wt2html,wt2wt
19833 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
19835 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19838 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
19842 <td>bar</td></tr></tbody></table>
19846 1. Encapsulate foster-parented transclusion content
19848 parsoid=wt2wt,wt2html
19850 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
19852 <span typeof="mw:Transclusion" data-mw="{"parts":["
19853 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
19855 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
19859 <td>bar</td></tr></tbody></table>
19863 2. Encapsulate foster-parented transclusion content
19865 parsoid=wt2wt,wt2html
19867 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
19869 <div typeof="mw:Transclusion" data-mw="{"parts":["
19871 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
19873 <td>bar</td></tr></table>"]}">foo</div>
19877 <td>bar</td></tr></tbody></table>
19881 3. Encapsulate foster-parented transclusion content
19883 parsoid=wt2wt,wt2html
19885 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19887 <div typeof="mw:Transclusion" data-mw="{"parts":["
19890 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19892 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19897 <td>bar</td></tr></tbody></table>
19901 4. Encapsulate foster-parented transclusion content
19903 parsoid=wt2wt,wt2html
19905 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19907 <div typeof="mw:Transclusion" data-mw="{"parts":["
19910 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19912 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19917 <td>bar</td></tr></tbody></table>
19921 5. Encapsulate foster-parented transclusion content
19923 parsoid=wt2wt,wt2html
19925 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
19927 <span typeof="mw:Transclusion" data-mw="{"parts":["
19932 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
19938 <p>foo</p></div></td></tr></tbody></table>
19942 6. Encapsulate foster-parented transclusion content
19944 parsoid=wt2wt,wt2html
19946 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
19948 <span typeof="mw:Transclusion" data-mw="{"parts":["
19953 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
19959 <p>foo</p></div></td></tr></tbody></table>
19964 7. Encapsulate foster-parented transclusion content
19966 parsoid=wt2wt,wt2html
19968 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
19970 <p typeof="mw:Transclusion" data-mw="{"parts":["
19971 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19972 <p>foo</p>"}},"i":0}},"
19973 <td>bar</td></table>"]}">foo</p>
19977 <td>bar</td></tr></tbody></table>
19981 8. Encapsulate foster-parented transclusion content
19983 parsoid=wt2wt,wt2html
19986 }}{|{{echo|style='color:red'}}
19991 <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>
19995 <td>b</td></tr></tbody></table>
19999 9. Encapsulate foster-parented transclusion content
20001 parsoid=wt2wt,wt2html
20003 <table>{{echo|hi</table>hello}}
20005 <span about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":["<table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"hi</table>hello"}},"i":0}}]}' data-parsoid='{"fostered":true,"autoInsertedEnd":true,"autoInsertedStart":true,"pi":[[{"k":"1","spc":["","","",""]}]]}'>hi</span>
20006 <table about="#mwt2" data-parsoid='{"stx":"html"}'></table><span about="#mwt2" data-parsoid="{}">hello</span>
20010 Table in fosterable position
20012 parsoid=wt2html,wt2wt
20021 <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="{}">
20023 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
20029 # Parsoid only for bug 64747
20031 Properly encapsulate empty-content transclusions in fosterable positions
20039 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["<table>\n",{"template":{"target":{"wt":"#if:","function":"#if"},"params":{"1":{"wt":"\n<td>foo</td>\n"}},"i":0}},"\n</table>"]}' data-parsoid='{"stx":"html","pi":[[{"k":"1","spc":["","","",""]}]],"src":"<table>\n{{#if:|\n<td>foo</td>\n}}\n</table>"}'>
20045 Support <object> element with .data attribute
20049 <object data="test.swf"></object>
20051 <object data="test.swf"></object>
20054 # -----------------------------------------------------------------
20055 # The following section of tests are primarily to spec requirements
20056 # around serialization of new/edited content.
20058 # All these tests are marked Parsoid html2wt and html2html only
20059 # ----------------------------------------------------------------
20062 Image: Modifying size of an image (1)
20065 "modes": ["wt2wt"],
20067 ["img[height]", "attr", "height", "22"],
20068 ["img[width]", "attr", "width", "200"]
20072 [[Image:Foobar.jpg|230x230px]]
20074 [[Image:Foobar.jpg|200x200px]]
20078 Image: Modifying size of an image (2)
20081 "modes": ["wt2wt"],
20083 ["img[height]", "attr", "height", "100"],
20084 ["img[width]", "attr", "width", "500"]
20088 [[Image:Foobar.jpg|230x230px]]
20090 [[Image:Foobar.jpg|500x500px]]
20093 # Change in size is ignored so long as class='mw-default-size'
20095 Image: Modifying size of an image (3)
20098 "modes": ["wt2wt"],
20100 ["figure[class]", "removeClass", "mw-default-size"],
20101 ["figure img", "attr", "height", "19"],
20102 ["figure img", "attr", "width", "170"]
20106 [[Image:Foobar.jpg|thumb]]
20108 [[Image:Foobar.jpg|thumb|170x170px]]
20112 Image: Modifying alignment of an image (bug 48665)
20115 "modes": ["wt2wt"],
20117 ["figure[class]", "removeClass", "mw-halign-right"],
20118 ["figure[class]", "addClass", "mw-halign-left"]
20122 [[Image:Foobar.jpg|thumb|caption|right]]
20124 [[Image:Foobar.jpg|thumb|caption|left]]
20128 Image: Modifying mw-default-size of an frameless image (bug 62805)
20131 "modes": ["wt2wt"],
20133 ["figure.mw-default-size", "removeClass", "mw-default-size"]
20137 [[Image:Foobar.jpg|frameless|right]]
20139 [[Image:Foobar.jpg|frameless|right|220x220px]]
20143 Image: Modifying valign of an image (bug 49221)
20146 "modes": ["wt2wt"],
20148 ["*[typeof=\"mw:Image\"]", "removeClass", "mw-valign-middle"],
20149 ["*[typeof=\"mw:Image\"]", "addClass", "mw-valign-text-top"]
20153 [[File:Foobar.jpg|20px|middle]]
20155 [[File:Foobar.jpg|20px|text-top]]
20159 Image: Modifying alt attribute of an image (bug 56400)
20162 "modes": ["wt2wt"],
20164 ["img[alt]", "attr", "alt", "some alternate edited text"]
20168 [[File:Foobar.jpg|thumb|some caption|alt=some alternate text]]
20170 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
20174 Image: Modifying caption of an image
20177 "modes": ["wt2wt"],
20179 ["figcaption", "text", "new caption"]
20183 [[Image:Foobar.jpg|thumb|original caption]]
20185 [[Image:Foobar.jpg|thumb|new caption]]
20189 Image: empty alt attribute (bug 48924)
20193 [[File:Foobar.jpg|thumb|alt=|bar]]
20195 <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>
20199 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
20204 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
20206 #<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>
20210 Image: Block level image should have \n before and after
20215 [[File:Foobar.jpg|right|thumb|150x150px]]
20218 <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>
20222 Image: New block level image should have \n before and after (existing
20228 [[File:Foobar.jpg|right|thumb|150x150px]]
20231 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
20232 <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>
20233 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
20237 Image: upright option (parsoid)
20241 [[File:Foobar.jpg|thumb|upright|caption]]
20242 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
20243 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
20245 <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="12" width="110"/></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>
20249 Image: upright option is ignored on inline and frame images (parsoid)
20253 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
20255 <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>
20259 Image: from basic HTML (1)
20263 <span typeof="mw:Image">
20264 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
20267 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
20271 Image: from basic HTML (2)
20275 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
20277 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
20281 Image: from basic HTML (3)
20285 <a href="Main"><img src="File:Foobar.jpg" width=100 height=100 alt="Alt"></a>
20287 [[File:Foobar.jpg|link=Main|alt=Alt|100x100px]]
20291 Image: from basic HTML (4)
20295 <img src="File:Foobar.jpg">
20297 [[File:Foobar.jpg|link=]]
20301 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
20308 <li><p>foo</p></li>
20313 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
20319 <ul> <li>foo</li></ul>
20323 Don't strip leading whitespace when handling indent-pre suppressing tags
20331 '''This is very bold of you!'''
20335 indented cell (no pre-wrapping!)
20342 <tr><td> indented row</td></tr>
20345 <b>This is very bold of you!</b>
20348 indented cell (no pre-wrapping!)
20356 Strip leading whitespace when handling indent-pre inducing tags
20388 Lists: Add space after bullets
20394 * <span> baz</span>
20399 <li><span> baz</span></li>
20404 Lists: Dont insert newlines in a serialized list item.
20411 <ul><li>a<br>b</li><li>c</li></ul>
20415 Headings: Add space before/after == (Bug 51744)
20425 == <span> baz</span> ==
20430 <h2><span> baz</span></h2>
20434 Parsoid: Serialize positional parameters with = in them as named parameter
20440 {{echo|1 = f=oo|2 = bar}}
20442 <!--Orig params with data-parsoid has heuristics for handling = chars-->
20443 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
20444 {{echo|<nowiki>f=oo</nowiki>|bar}}
20446 <p about="#mwt1" typeof="mw:Transclusion"
20447 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
20449 <p about="#mwt1" typeof="mw:Transclusion"
20450 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
20452 <!--Orig params with data-parsoid has heuristics for handling = chars-->
20453 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
20454 <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>
20458 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
20474 <div>a<p>b</p></div>
20483 Substrings resembling wikitext in hrefs should not get nowiki escapes
20489 <a rel="mw:WikiLink" href="./Foo''bar''baz">Foo''bar''baz</a>
20492 #-----------------------------
20493 # I/B quote minimization tests
20494 #-----------------------------
20497 1. I/B quote minimization: wikitext-only tags should be combined
20517 <p><i>A</i><i>B</i></p>
20518 <p><b>A</b><b>B</b></p>
20519 <p><i>A</i><b><i>B</i></b></p>
20520 <p><b>A</b><i><b>B</b></i></p>
20521 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
20522 <p><i><b>A</b></i><i><b>B</b></i></p>
20523 <p><i><b>A</b></i><b><i>B</i></b></p>
20524 <p><b><i>A</i></b><i><b>B</b></i></p>
20528 2. I/B quote minimization: wikitext and html tags should not be combined
20534 ''A'''''<i>B</i>'''
20536 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
20537 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
20541 3. I/B quote minimization: templated content stops minimization
20545 ''A''{{echo|''B''}}
20547 ''A''{{echo|'''''B'''''}}
20549 <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>
20550 <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>
20554 4. I/B quote minimization: new content should be mimimized with adjacent old content
20564 <p><i>A</i><i data-parsoid='{}'>B</i></p>
20565 <p><b data-parsoid='{}'>A</b><b>B</b></p>
20566 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
20569 #------------------------------------
20570 # End of I/B quote minimization tests
20571 #------------------------------------
20574 Bug 54262: New entities
20580 <span typeof="mw:Entity"> </span>
20583 ## Note that there is no wikitext output for 'unknownproperty' ##
20584 ## Unknown magic words are silently dropped ##
20599 __NOCONTENTCONVERT__
20601 <meta property='mw:PageProp/toc' />
20602 <meta property='mw:PageProp/notoc' />
20603 <meta property='mw:PageProp/forcetoc' />
20604 <meta property='mw:PageProp/index' />
20605 <meta property='mw:PageProp/noindex' />
20606 <meta property='mw:PageProp/nogallery' />
20607 <meta property='mw:PageProp/noeditsection' />
20608 <meta property='mw:PageProp/notitleconvert' />
20609 <meta property='mw:PageProp/nocontentconvert' />
20610 <meta property='mw:PageProp/unknownproperty' />
20614 Consecutive <pre>s should not get merged
20616 parsoid=html2wt,html2html
20632 <pre>a</pre><pre>b</pre>
20646 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
20650 [[Special:BookSources/1234567890|ISBN 1234567895]]
20652 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
20656 Edited RFC links not serializable as RFC links should serialize as extlinks
20660 [//tools.ietf.org/html/rfc123 New RFC]
20662 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
20666 Edited PMID links not serializable as PMID links should serialize as extlinks
20670 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
20672 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
20676 Edited Redirect link should emit a non-piped wikitext link
20682 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
20685 # -----------------------------------------------------------------
20686 # End of section for Parsoid-only html2wt tests for serialization
20688 # -----------------------------------------------------------------
20695 Try for 100% code coverage