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.
73 MediaWiki:bad image list
75 * [[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>
410 # Note that the html+tidy output removes the spaces after the <li>,
411 # which is a bug (http://sourceforge.net/p/tidy/bugs/945/, etc).
412 # This is an issue for all tests with lists. We intentionally do
413 # *not* add html+tidy clauses for these, as we don't want to
414 # document/test the broken behavior. (Parsoid matches the non-tidy
415 # output in these cases.)
424 <li> Item 2</li></ul>
432 * plain''italic''plain
433 * plain''italic''plain''italic''plain
434 * plain'''bold'''plain
435 * plain'''bold'''plain'''bold'''plain
436 * plain''italic''plain'''bold'''plain
437 * plain'''bold'''plain''italic''plain
438 * plain''italic'''bold-italic'''italic''plain
439 * plain'''bold''bold-italic''bold'''plain
440 * plain'''''bold-italic'''italic''plain
441 * plain'''''bold-italic''bold'''plain
442 * plain''italic'''bold-italic'''''plain
443 * plain'''bold''bold-italic'''''plain
444 * plain l'''italic''plain
445 * plain l''''bold''' plain
448 <li> plain<i>italic</i>plain</li>
449 <li> plain<i>italic</i>plain<i>italic</i>plain</li>
450 <li> plain<b>bold</b>plain</li>
451 <li> plain<b>bold</b>plain<b>bold</b>plain</li>
452 <li> plain<i>italic</i>plain<b>bold</b>plain</li>
453 <li> plain<b>bold</b>plain<i>italic</i>plain</li>
454 <li> plain<i>italic<b>bold-italic</b>italic</i>plain</li>
455 <li> plain<b>bold<i>bold-italic</i>bold</b>plain</li>
456 <li> plain<i><b>bold-italic</b>italic</i>plain</li>
457 <li> plain<b><i>bold-italic</i>bold</b>plain</li>
458 <li> plain<i>italic<b>bold-italic</b></i>plain</li>
459 <li> plain<b>bold<i>bold-italic</i></b>plain</li>
460 <li> plain l'<i>italic</i>plain</li>
461 <li> plain l'<b>bold</b> plain</li></ul>
465 # this example taken from the [[simple:Moon]] article (bug 47326)
467 Italics and possessives (1)
469 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
471 <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
475 # this example taken from [[en:Flaming Pie]] (bug 49926)
477 Italics and possessives (2)
479 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
481 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
485 # this example taken from [[en:Dictionary]] (bug 49926)
487 Italics and possessives (3)
489 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''.
491 <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>.
497 ### 2-quote opening sequence tests
500 Italics and bold: 2-quote opening sequence: (2,2)
510 Italics and bold: 2-quote opening sequence: (2,3)
521 # same html as previous, but wikitext adjusted to match parsoid html2wt
523 Italics and bold: 2-quote opening sequence: (2,3) w/ nowiki
525 ''<nowiki>foo'</nowiki>''
533 Italics and bold: 2-quote opening sequence: (2,4)
544 # same html as previous, but wikitext adjusted to match parsoid html2wt
546 Italics and bold: 2-quote opening sequence: (2,4) w/ nowiki
548 ''<nowiki>foo''</nowiki>''
555 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
557 Italics and bold: 2-quote opening sequence: (2,5)
570 # same html as previous, but wikitext adjusted to match parsoid html2wt
572 Italics and bold: 2-quote opening sequence: (2,5+3) w/ nowiki
574 ''foo'''''<nowiki/>'''
585 ### 3-quote opening sequence tests
589 Italics and bold: 3-quote opening sequence: (3,2)
599 Italics and bold: 3-quote opening sequence: (3,3)
609 Italics and bold: 3-quote opening sequence: (3,4)
620 # same html as previous, but wikitext adjusted to match parsoid html2wt
622 Italics and bold: 3-quote opening sequence: (3,4) w/ nowiki
624 '''<nowiki>foo'</nowiki>'''
631 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
633 Italics and bold: 3-quote opening sequence: (3,5)
646 # same html as previous, but wikitext adjusted to match parsoid html2wt
648 Italics and bold: 3-quote opening sequence: (3,5+2) w/ nowiki
650 '''foo'''''<nowiki/>''
661 ### 4-quote opening sequence tests
665 Italics and bold: 4-quote opening sequence: (4,2)
676 # same html as previous, but wikitext adjusted to match parsoid html2wt
678 Italics and bold: 4-quote opening sequence: (4,2) w/ nowiki
680 <nowiki>''</nowiki>''foo''
688 Italics and bold: 4-quote opening sequence: (4,3)
698 Italics and bold: 4-quote opening sequence: (4,4)
709 # same html as previous, but wikitext adjusted to match parsoid html2wt
711 Italics and bold: 4-quote opening sequence: (4,4) w/ nowiki
713 ''''<nowiki>foo'</nowiki>'''
720 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
722 Italics and bold: 4-quote opening sequence: (4,5)
731 <p>'<b>foo</b><i></i>
735 # same html as previous, but wikitext adjusted to match parsoid html2wt
737 Italics and bold: 4-quote opening sequence: (4,5+2) w/ nowiki
739 ''''foo'''''<nowiki/>''
744 <p>'<b>foo</b><i></i>
750 ### 5-quote opening sequence tests
754 Italics and bold: 5-quote opening sequence: (5,2)
765 # same html as previous, but wikitext adjusted to match parsoid html2wt
766 # skipping wt2html and html2html because it wants to put <i> before <b>
768 Italics and bold: 5-quote opening sequence: (5,2+3)
770 parsoid=wt2wt,html2wt
779 Italics and bold: 5-quote opening sequence: (5,3)
790 # same html as previous, but wikitext adjusted to match parsoid html2wt
792 Italics and bold: 5-quote opening sequence: (5,3+2)
802 Italics and bold: 5-quote opening sequence: (5,4)
808 <p><i><b>foo'</b></i>
813 # same html as previous, but wikitext adjusted to match parsoid html2wt
815 Italics and bold: 5-quote opening sequence: (5,4+2) w/ nowiki
817 '''''<nowiki>foo'</nowiki>'''''
819 <p><i><b>foo'</b></i>
825 Italics and bold: 5-quote opening sequence: (5,5)
834 ### multiple quote sequences in a line
837 Italics and bold: multiple quote sequences: (2,4,2)
843 <p><i>foo'<b>bar</b></i>
848 # same html as previous, but wikitext adjusted to match parsoid html2wt
850 Italics and bold: multiple quote sequences: (2,4,2+3) w/ nowiki
852 ''<nowiki>foo'</nowiki>'''bar'''''
854 <p><i>foo'<b>bar</b></i>
860 Italics and bold: multiple quote sequences: (2,4,3)
866 <p><i>foo'<b>bar</b></i>
871 # same html as previous, but wikitext adjusted to match parsoid html2wt
873 Italics and bold: multiple quote sequences: (2,4,3+2) w/ nowiki
875 ''<nowiki>foo'</nowiki>'''bar'''''
877 <p><i>foo'<b>bar</b></i>
883 Italics and bold: multiple quote sequences: (2,4,4)
889 <p><i>foo'<b>bar'</b></i>
894 # same html as previous, but wikitext adjusted to match parsoid html2wt
896 Italics and bold: multiple quote sequences: (2,4,4+2) w/ nowiki
898 ''<nowiki>foo'</nowiki>'''<nowiki>bar'</nowiki>'''''
900 <p><i>foo'<b>bar'</b></i>
905 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
907 Italics and bold: multiple quote sequences: (3,4,2)
916 <p><b>foo'</b>bar<i></i>
920 # same html as previous, but wikitext adjusted to match parsoid html2wt
922 Italics and bold: multiple quote sequences: (3,4,2+2) w/ nowiki
926 '''<nowiki>foo'</nowiki>'''bar''<nowiki/>''
931 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<i></i>
936 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
938 Italics and bold: multiple quote sequences: (3,4,3)
947 <p><b>foo'</b>bar<b></b>
951 # same html as previous, but wikitext adjusted to match parsoid html2wt
953 Italics and bold: multiple quote sequences: (3,4,3+3) w/ nowiki
955 '''<nowiki>foo'</nowiki>'''bar'''<nowiki/>'''
960 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<b></b>
965 ### other quote tests
968 Italics and bold: other quote tests: (2,3,5)
970 ''this is about '''foo's family'''''
972 <p><i>this is about <b>foo's family</b></i>
978 Italics and bold: other quote tests: (2,(3,3),2)
980 ''this is about '''foo's''' family''
982 <p><i>this is about <b>foo's</b> family</i>
988 Italics and bold: other quote tests: (3,2,3,2)
992 '''this is about ''foo'''s family''
994 <p><b>this is about <i>foo</i></b><i>s family</i>
999 # same html as previous, but wikitext adjusted to match parsoid html2wt
1000 # add 'parsoid' option to use 'parsoid' normalization of the placeholder
1002 Italics and bold: other quote tests: (3,2,3+2+2,2)
1006 '''this is about ''foo'''''<nowiki/>''s family''
1008 <p><b>this is about <i>foo</i></b><i>s family</i>
1014 Italics and bold: other quote tests: (3,2,3,3)
1017 '''this is about ''foo'''s family'''
1019 <p>'<i>this is about </i>foo<b>s family</b>
1025 Italics and bold: other quote tests: (3,(2,2),3)
1027 '''this is about ''foo's'' family'''
1029 <p><b>this is about <i>foo's</i> family</b>
1035 Italicized possessive
1037 The ''[[Main Page]]'''s talk page.
1039 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
1044 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
1045 (Requires tidy for PHP parser output to be fixed up)
1047 parsoid=wt2html,wt2wt
1064 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
1065 <td><i>a</i></td><td><i>b</i></td></tr>
1074 Non-html5 tags should be accepted
1076 <center>''foo''</center>
1078 <font>''foo''</font>
1079 <strike>''foo''</strike>
1082 <center><i>foo</i></center>
1083 <p><big><i>foo</i></big>
1084 <font><i>foo</i></font>
1085 <strike><i>foo</i></strike>
1091 <wbr> is valid wikitext (bug 52468)
1099 # <strike> is HTML4, <s> is HTML4/5.
1101 <s> or <strike> for strikethrough
1103 <strike>strike</strike>
1107 <p><strike>strike</strike>
1115 Text-level semantic html elements in wikitext
1118 <strong>text</strong>
1134 <ruby><rb>明日</rb><rp>(</rp><rt>Ashita</rt><rp> </rp><rtc>あした</rtc><rp>)</rp></ruby>
1141 <strong>text</strong>
1157 <ruby><rb>明日</rb><rp>(</rp><rt>Ashita</rt><rp> </rp><rtc>あした</rtc><rp>)</rp></ruby>
1165 # test cases taken from
1166 # http://www.w3.org/TR/html5/text-level-semantics.html#the-ruby-element
1168 Ruby markup (W3C-style)
1170 ; Mono-ruby for individual base characters
1171 : <ruby>日<rt>に</rt>本<rt>ほん</rt>語<rt>ご</rt></ruby>
1173 : <ruby>今日<rt>きょう</rt></ruby>
1175 : <ruby>法<rb>華</rb><rb>経</rb><rt>ほ</rt><rt>け</rt><rt>きょう</rt></ruby>
1177 : <ruby>東<rb>京</rb><rp>(</rp><rt>とう</rt><rt>きょう</rt><rp>)</rp></ruby>
1179 : <ruby><rb>旧</rb><rb>金</rb><rb>山</rb><rt>jiù</rt><rt>jīn</rt><rt>shān</rt><rtc>San Francisco</rtc></ruby>
1181 <rb>♥</rb><rtc><rt>Heart</rt></rtc><rtc lang="fr"><rt>Cœur</rt></rtc>
1182 <rb>☘</rb><rtc><rt>Shamrock</rt></rtc><rtc lang="fr"><rt>Trèfle</rt></rtc>
1183 <rb>✶</rb><rtc><rt>Star</rt></rtc><rtc lang="fr"><rt>Étoile</rt></rtc>
1186 <dl><dt> Mono-ruby for individual base characters</dt>
1187 <dd> <ruby>日<rt>に</rt>本<rt>ほん</rt>語<rt>ご</rt></ruby></dd>
1188 <dt> Group ruby</dt>
1189 <dd> <ruby>今日<rt>きょう</rt></ruby></dd>
1190 <dt> Jukugo ruby</dt>
1191 <dd> <ruby>法<rb>華</rb><rb>経</rb><rt>ほ</rt><rt>け</rt><rt>きょう</rt></ruby></dd>
1192 <dt> Inline ruby</dt>
1193 <dd> <ruby>東<rb>京</rb><rp>(</rp><rt>とう</rt><rt>きょう</rt><rp>)</rp></ruby></dd>
1194 <dt> Double-sided ruby</dt>
1195 <dd> <ruby><rb>旧</rb><rb>金</rb><rb>山</rb><rt>jiù</rt><rt>jīn</rt><rt>shān</rt><rtc>San Francisco</rtc></ruby></dd></dl>
1197 <rb>♥</rb><rtc><rt>Heart</rt></rtc><rtc lang="fr"><rt>Cœur</rt></rtc>
1198 <rb>☘</rb><rtc><rt>Shamrock</rt></rtc><rtc lang="fr"><rt>Trèfle</rt></rtc>
1199 <rb>✶</rb><rtc><rt>Star</rt></rtc><rtc lang="fr"><rt>Étoile</rt></rtc>
1204 # There is a tidy bug here: http://sourceforge.net/p/tidy/bugs/946/
1206 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
1208 <b→> doesn't work! </b→>
1210 <bä> doesn't work! </bä>
1212 <boo> works fine </boo>
1214 <s.foo>s.foo</s.foo>
1218 <p><b→> doesn't work! </b→>
1219 </p><p><bä> doesn't work! </bä>
1220 </p><p><boo> works fine </boo>
1221 </p><p><s.foo>s.foo</s.foo>
1222 </p><p><sub-ID#1>
1227 Isolated close tags should be treated as literal text (bug 52760)
1234 </p><p><s.foo>s</s>
1239 ### Special characters
1243 Bare pipe character (bug 52363)
1252 Bare pipe character from a template (bug 52363)
1261 ### <nowiki> test cases
1265 <nowiki> unordered list
1267 <nowiki>* This is not an unordered list item.</nowiki>
1269 <p>* This is not an unordered list item.
1276 <nowiki>Lorem ipsum dolor
1284 <p>Lorem ipsum dolor
1297 :There is not nowiki.
1298 :There is <nowiki>nowiki</nowiki>.
1300 #There is not nowiki.
1301 #There is <nowiki>nowiki</nowiki>.
1303 *There is not nowiki.
1304 *There is <nowiki>nowiki</nowiki>.
1306 <dl><dd>There is not nowiki.</dd>
1307 <dd>There is nowiki.</dd></dl>
1308 <ol><li>There is not nowiki.</li>
1309 <li>There is nowiki.</li></ol>
1310 <ul><li>There is not nowiki.</li>
1311 <li>There is nowiki.</li></ul>
1316 Entities inside <nowiki>
1318 <nowiki><</nowiki>
1325 Entities inside template parameters
1331 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span>
1336 Properly escape nowiki when combined with other wiki markup
1340 <nowiki>* </nowiki></nowiki> tag
1342 <p>* </nowiki> tag</p>
1349 Comments and Indent-Pre
1351 <!-- comment 1 --> asdf
1353 <!-- comment 1 --> asdf
1356 <!-- comment 1 --> asdf
1357 <!-- comment 2 -->xyz
1359 <!-- comment 1 --> asdf
1360 <!-- comment 2 --> xyz
1416 asdf<!-- comment 1 -->jkl
1426 <!-- foo --> b <!-- bar -->
1440 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1446 Comment semantics and delimiters
1448 <!-- --><!----><!-----><!------>
1454 Comment semantics and delimiters, redux
1456 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1457 -- foo -- funky huh? ... -->
1463 Comment semantics and delimiters: directors cut
1465 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1466 everything starting with < followed by !-- until the first -- and > we see,
1467 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1475 Comment semantics: nesting
1477 <!--<!-- no, we're not going to do anything fancy here -->-->
1484 Comment semantics: unclosed comment at end
1486 <!--This comment will run out to the end of the document
1492 Comment in template title
1501 Comment on its own line post-expand
1513 Comment on its own line post-expand with non-significant whitespace
1525 Multiple comments should still parse as SOL-transparent
1527 parsoid=wt2html,wt2wt
1530 <!--c2--><!--c3--><!--c4-->*b
1541 ### paragraph wrapping tests
1556 Block tag on one line (<div>)
1572 Block tag on one line (<blockquote>)
1574 a <blockquote>foo</blockquote>
1578 a <blockquote>foo</blockquote>
1590 Block tag on both lines (<div>)
1607 Block tag on both lines (<blockquote>)
1609 a <blockquote>foo</blockquote>
1611 b <blockquote>foo</blockquote>
1613 a <blockquote>foo</blockquote>
1614 b <blockquote>foo</blockquote>
1628 Multiple lines without block tags
1653 Empty lines between lines with block tags
1692 ## PHP parser emits output which is broken
1693 ## XXX The parsoid output doesn't match the tidy output.
1695 Unclosed HTML p-tags should be handled properly
1703 <p>foo</div></p>
1707 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1713 ### Preformatted text
1722 And a [[Main Page|link]]
1728 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1733 Tabs don't trigger preformatted text
1737 This is preformatted text.
1743 <pre>This is preformatted text.
1749 Ident preformatting with inline content
1760 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1777 Regression with preformatted in <center>
1791 Bug 52763: Preformatted in <blockquote>
1797 indented cell (no pre-wrapping!)
1807 <p> indented cell (no pre-wrapping!)
1815 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1832 Bug 15491: <ins>/<del> in blockquote
1835 Foo <del>bar</del> <ins>baz</ins> quux
1839 <p>Foo <del>bar</del> <ins>baz</ins> quux
1845 # Note that the p-wrapping is newline sensitive, which could be
1846 # considered a bug: tidy will wrap only the 'Foo' in the example
1847 # below in a <p> tag. (see comment 23-25 of bug #6200)
1849 Bug 15491: <ins>/<del> in blockquote (2)
1851 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1854 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1860 <del>bar</del> <ins>baz</ins> quux</blockquote>
1864 <pre> with attributes (bug 3202)
1866 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1868 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1873 <pre> with width attribute (bug 3202)
1875 <pre width="8">Narrow screen goodies</pre>
1877 <pre width="8">Narrow screen goodies</pre>
1882 <pre> with forbidden attribute (bug 3202)
1884 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1886 <pre width="8">Narrow screen goodies</pre>
1891 Entities inside <pre>
1900 <pre> with forbidden attribute values (bug 3202)
1902 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1904 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1909 <nowiki> inside <pre> (bug 13238)
1917 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1925 <pre><nowiki>Foo</nowiki></pre>
1930 <nowiki> and <pre> preference (first one wins)
1961 </pre> inside nowiki
1963 <nowiki></pre></nowiki>
1970 Empty pre; pre inside other HTML tags (bug 54946)
1995 HTML pre followed by indent-pre
2010 <p><pre>foo</pre></p>
2012 <p data-parsoid='{"stx":"html","autoInsertedEnd":true}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
2016 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
2024 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
2034 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
2046 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
2067 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
2071 {{echo| foo}}{{echo| bar}}
2076 {{echo|<!--cmt--> foo}}
2078 <!--cmt-->{{echo| foo}}
2080 {{echo|{{echo| }}bar}}
2098 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
2135 Things that look like <pre> tags aren't treated as such
2137 Barack Obama <President> of the United States
2138 <President></President>
2140 <p>Barack Obama <President> of the United States
2141 <President></President>
2145 ## PHP parser discards the "<pre " string
2147 Handle broken pre-like tags (bug 64025)
2151 {{echo|<pre <pre>x</pre>}}
2153 <table><pre </table>
2156 <table><pre></pre></table>
2159 <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>
2162 <span><pre </span>
2167 Parsoid: handle pre with space after attribute
2171 <pre style="width:50%;" >{{echo|foo}}</pre>
2173 <pre style="width:50%;">{{echo|foo}}</pre>
2176 # TODO / maybe: fix wt2wt for this
2178 Parsoid: Don't paragraph-wrap fosterable content
2204 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
2232 #--------------------------------------------------------------------
2233 # Transclusion parameter whitespace stripping tests
2234 # Behavior is different for positional and named parameters
2235 #--------------------------------------------------------------------
2237 Templates: Strip leading and trailing whitespace from named-param values
2241 {{echo|1= {{echo|b}} }}
2254 <ul><li> d</li></ul>
2259 Templates: Don't strip whitespace from positional-param values
2263 {{echo|{{echo|b}} }}
2295 <ul><li> f</li></ul>
2303 Templates: Handle empty comment-and-ws-only lines correctly
2306 <!--should be ignored-->
2307 <!--should be ignored as well-->
2316 Templates: Handle comments in the target
2319 <!-- should be ignored -->
2322 {{echo<!-- should be ignored -->
2325 {{echo<!-- should be ignored -->|foo}}
2327 {{<!-- should be ignored -->echo|foo}}
2329 <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>
2331 <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>
2333 <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>
2335 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2338 #--------------------------------------------------------------------
2339 # Transclusion parameter escaping tests
2340 #--------------------------------------------------------------------
2342 Templates: Parsoid parameter escaping test 1
2346 {{echo|[foo]|{{echo|[bar]}}}}
2348 <p about="#mwt1" typeof="mw:Transclusion"
2349 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
2353 Parsoid: Pipes in external links in template parameter
2357 {{echo|[{{echo|http://example.com}} link]}}
2359 <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>
2363 Parsoid: pipe in transclusion parameter
2367 {{echo|http://foo.com/a|b}}
2369 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2370 typeof="mw:Transclusion"
2371 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>
2375 Parsoid: Pipe in external link target and content in template parameter
2377 parsoid=html2wt,wt2wt
2379 {{echo|[http://foo.com/a|b a|b]}}
2381 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2382 typeof="mw:Transclusion"
2383 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
2384 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
2388 Parsoid: Pipe in template with nested template in external link target in template parameter (seriously)
2392 {{echo|[{{fullurl:{{FULLPAGENAME}}|action=edit}} bar]}}
2394 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{fullurl:{{FULLPAGENAME}}|action=edit}} bar]"}},"i":0}}]}'>[Main Page bar]</p>
2398 Templates: Don't escape already nowiki-escaped text in template parameters
2400 parsoid=html2wt,wt2wt
2402 {{echo|foo<nowiki>|</nowiki>bar}}
2403 {{echo|<nowiki><div></nowiki>}}
2404 {{echo|<nowiki></nowiki>}}
2406 <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>
2407 <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>
2408 <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>
2414 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
2416 parsoid=html2wt,wt2wt
2418 {{echo|{{echo|1=bar}}}}
2420 <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>
2425 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
2431 <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>
2435 ### Parsoid-centric tests for testing RT edge cases for pre
2439 1a. Indent-Pre and Comments
2452 1b. Indent-Pre and Comments
2465 1c. Indent-Pre and Comments
2478 1d. Indent-Pre and Comments
2479 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2492 2a. Indent-Pre and tables
2513 2b. Indent-Pre and tables
2529 2c. Indent-Pre and tables (bug 42252)
2546 2d. Indent-Pre and tables
2572 2e. Indent-Pre and table-line syntax
2585 2f. Indent-pre started by table-line syntax
2604 3a. Indent-Pre and block tags (single-line html)
2608 c <blockquote> foo </blockquote>
2613 c <blockquote> foo </blockquote>
2614 <pre><span> foo </span>
2631 3b. Indent-Pre and block tags (multi-line html)
2636 <pre>a <span>foo</span>
2649 3c. Indent-Pre and block tags (pre-content on separate line)
2713 4. Indent-Pre and extension tags
2719 a <ul class="gallery mw-gallery-traditional">
2720 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2721 <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>
2722 <div class="gallerytext">
2729 <ul class="gallery mw-gallery-traditional">
2730 <li class="gallerybox" style="width: 155px">
2731 <div style="width: 155px">
2732 <div class="thumb" style="width: 150px;">
2733 <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>
2735 <div class="gallerytext"></div>
2742 Table wikitext syntax outside wiki-tables
2745 ! not a table heading
2748 | class="foo bar" | baz
2755 ! not a table heading
2758 | class="foo bar" | baz
2767 Render paragraphs when indent-pre is suppressed in blocklevels
2784 4. Multiple spaces at start-of-line
2802 ## NOTE: the leading white-space chars on empty line are significant
2804 5a. White-space in indent-pre
2816 ## NOTE: the leading white-space chars on empty line are significant
2818 5b. White-space in indent-pre
2837 5c. White-space in indent-pre
2850 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2873 7a. Indent-pre and category links
2875 parsoid=wt2html,wt2wt
2877 [[Category:foo]] <!-- No pre-wrapping -->
2878 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2880 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2881 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2882 <link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2886 7b. Indent-pre and category links
2888 parsoid=wt2html,wt2wt
2891 [[Category:foo]] {{echo|b}}
2894 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
2896 <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>
2900 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2904 HTML-pre: 1. embedded newlines
2938 <pre data-parsoid='{"stx":"html"}'>foo</pre>
2940 <pre data-parsoid='{"stx":"html","strippedNL":"\n"}'>
2944 <pre data-parsoid='{"stx":"html"}'>
2949 <pre data-parsoid='{"stx":"html"}'>
2957 HTML-pre: big spaces
2994 <pre data-parsoid='{"stx":"html"}'>
3013 HTML-pre: 2: indented text
3026 HTML-pre: 3: other wikitext
3047 ### Definition lists
3054 <dl><dt> name </dt>
3055 <dd> Definition</dd></dl>
3060 Definition list for indentation only
3064 <dl><dd> Indented text</dd></dl>
3069 Definition list with no space
3074 <dd>Definition</dd></dl>
3079 Definition list with URL link
3081 ; http://example.com/ : definition
3083 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
3084 <dd> definition</dd></dl>
3089 Definition list with bracketed URL link
3091 ;[http://www.example.com/ Example]:Something about it
3093 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
3094 <dd>Something about it</dd></dl>
3099 Definition list with wikilink containing colon
3101 ; [[Help:FAQ]]: The least-read page on Wikipedia
3103 <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>
3104 <dd> The least-read page on Wikipedia</dd></dl>
3108 # At Brion's and JeLuF's insistence... :)
3110 Definition list with news link containing colon
3112 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
3114 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
3115 <dd> This isn't even a real newsgroup!</dd></dl>
3120 Malformed definition list with colon
3122 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
3124 <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>
3129 Definition lists: colon in external link text
3131 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
3133 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
3134 <dd> OK, I made that up</dd></dl>
3139 Definition lists: colon in HTML attribute
3141 ;<b style="display: inline">bold</b>
3143 <dl><dt><b style="display: inline">bold</b></dt></dl>
3148 Definition lists: self-closed tag
3150 ;one<br/>two : two-line fun
3152 <dl><dt>one<br />two </dt>
3153 <dd> two-line fun</dd></dl>
3158 Bug 11748: Literal closing tags
3162 <dd>test test test test test</dd>
3164 <dd>test test test test test</dd>
3169 <dd>test test test test test</dd>
3171 <dd>test test test test test</dd>
3177 Definition and unordered list using wiki syntax nested in unordered list using html tags.
3180 ; term : description
3185 <dl><dt> term </dt>
3186 <dd> description</dd></dl>
3187 <ul><li> unordered</li></ul>
3194 Definition list with empty definition and following paragraph
3206 Nested definition lists using html syntax
3215 Definition Lists: No nesting: Multiple dd's
3228 Definition Lists: Indentation: Regular
3236 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
3241 Definition Lists: Indentation: Missing 1st level
3247 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
3252 Definition Lists: Indentation: Multi-level indent
3256 <dl><dd><dl><dd><dl><dd>i3</dd></dl></dd></dl></dd></dl>
3261 Definition Lists: Hacky use to indent tables
3268 should be left alone
3270 <dl><dd><dl><dd><table>
3275 </td></tr></table></dd></dl></dd></dl>
3277 should be left alone
3282 Definition Lists: Hacky use to indent tables, with comments (bug 63979)
3290 should be left alone
3293 <dl><dd><dl><dd><table><tr>
3296 </tr></table><!-- bar --></dd></dl></dd></dl>
3298 should be left alone</p>
3302 Definition Lists: Hacky use to indent tables, with comment before table
3308 <dl><dd><dl><dd><!-- foo --><table><tr>
3310 </tr></table></dd></dl></dd></dl>
3315 Definition Lists: Hacky use to indent tables (WS-insensitive)
3324 <dd> <table><tr><td>a</td></tr></table> </dd>
3327 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
3328 ## as an empty dt item. It also ignores all but the last ";" when followed
3329 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
3330 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
3333 ## Ex: ";;t2 ::d2" is transformed into:
3345 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
3346 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
3357 ## All Parsoid only definition list tests have this difference.
3359 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
3360 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
3363 Table / list interaction: indented table with lists in table contents
3378 <ul><li> b</li></ul>
3382 <ul><li> d</li></ul>
3383 </td></tr></table></dd></dl>
3388 Table / list interaction: lists nested in tables nested in indented lists
3411 </td></tr></table></dd></dl>
3418 Definition Lists: Nesting: Multi-level (Parsoid only)
3448 Definition Lists: Nesting: Test 2 (Parsoid only)
3468 Definition Lists: Nesting: Test 3 (Parsoid only)
3496 Definition Lists: Nesting: Test 4
3501 <dl><dd><dl><dd><dl><dt>t3</dt>
3502 <dd>d3</dd></dl></dd></dl></dd></dl>
3507 ## The Parsoid team believes the following three test exposes a
3508 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
3509 ## wrong to close the <dl> after the <dt> containing the <ul>.)
3510 ## It also exposes a "misfeature" in tidy, which doesn't like
3511 ## <dl> tags with a single <dt> child; it converts the <dt> into
3512 ## a <dd> in that case. (Parsoid leaves the <dt> alone!)
3514 Definition Lists: Mixed Lists: Test 1
3520 <dl><dd><dl><dt><ul><li> foo</li>
3521 <li> bar</li></ul></dt></dl>
3522 <dl><dt> baz</dt></dl></dd></dl>
3557 Definition Lists: Mixed Lists: Test 2
3562 <ul><li><dl><dd> d1</dd>
3563 <dd> d2</dd></dl></li></ul>
3569 Definition Lists: Mixed Lists: Test 3
3574 <ul><li><dl><dd><dl><dd><dl><dd> d1</dd>
3575 <dd> d2</dd></dl></dd></dl></dd></dl></li></ul>
3581 Definition Lists: Mixed Lists: Test 4
3586 <ul><li><dl><dt>d1 </dt>
3589 <dd>d4</dd></dl></li></ul>
3595 Definition Lists: Mixed Lists: Test 5
3601 <dl><dd> d2</dd></dl></dd></dl></li></ul>
3607 Definition Lists: Mixed Lists: Test 6
3612 <ol><li><ul><li><dl><dd>d1
3613 <dl><dd><dl><dd> d3</dd></dl></dd></dl></dd></dl></li></ul></li></ol>
3619 Definition Lists: Mixed Lists: Test 7
3624 <dl><dd><ul><li> d1</li>
3625 <li> d2</li></ul></dd></dl>
3631 Definition Lists: Mixed Lists: Test 8
3636 <dl><dd><ul><li> d1</li></ul>
3637 <dl><dd><ul><li> d2</li></ul></dd></dl></dd></dl>
3643 Definition Lists: Mixed Lists: Test 9
3647 <ul><li><dl><dt>foo </dt>
3648 <dd>bar</dd></dl></li></ul>
3654 Definition Lists: Mixed Lists: Test 10
3658 <ul><li><ol><li><dl><dt>foo </dt>
3659 <dd>bar</dd></dl></li></ol></li></ul>
3663 # The Parsoid team disagrees with the PHP parser's seemingly-random
3664 # rules regarding dd/dt on the next two tests. Parsoid is more
3665 # consistent, and recognizes the shared nesting and keeps the
3666 # still-open tags around until the nesting is complete.
3667 # (And tidy again converts <dt> to <dd> before 'bar'.)
3670 Definition Lists: Mixed Lists: Test 11
3675 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt>
3676 <dd><ul><li><dl><dt><dl><dt>bar</dt></dl></dd></dl></li></ul></dd></dl>
3677 <dl><dt>boo </dt>
3678 <dd>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
3733 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3734 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3738 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3739 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3748 # Another case where tidy converts a <dt> to a <dd> (but Parsoid doesn't).
3750 Definition Lists: Weird Ones: Test 1
3752 *#;*::;; foo : bar (who uses this?)
3754 <ul><li><ol><li><dl><dt> foo </dt>
3755 <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>
3774 <dt>bar (who uses this?)</dt>
3806 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3807 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3822 External links: non-bracketed
3824 Non-bracketed: http://example.com
3826 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3830 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
3832 External links: numbered
3834 Numbered: [http://example.com]
3835 Numbered: [http://example.net]
3836 Numbered: [http://example.com]
3838 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3839 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3840 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3843 <p>Numbered: <a rel="mw:ExtLink" href="http://example.com"></a>
3844 Numbered: <a rel="mw:ExtLink" href="http://example.net"></a>
3845 Numbered: <a rel="mw:ExtLink" href="http://example.com"></a></p>
3849 External links: specified text
3851 Specified text: [http://example.com link]
3853 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3858 External links: trail
3860 Linktrails should not work for external links: [http://example.com link]s
3862 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3867 External links: dollar sign in URL
3869 http://example.com/1$2345
3871 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3875 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
3877 External links: dollar sign in URL (autonumber)
3879 [http://example.com/1$2345]
3881 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3884 <p><a rel="mw:ExtLink" href="http://example.com/1$2345"></a></p>
3888 External links: open square bracket forbidden in URL (bug 4377)
3890 parsoid=wt2html,wt2wt,html2html
3892 http://example.com/1[2345
3894 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3897 <p><a rel="mw:ExtLink" href="http://example.com/1">http://example.com/1</a>[2345</p>
3901 External links: open square bracket forbidden in URL (named) (bug 4377)
3903 parsoid=wt2html,html2html
3905 [http://example.com/1[2345]
3907 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3910 <p><a rel="mw:ExtLink" href="http://example.com/1">[2345</a></p>
3913 # parsoid adds a space before the link name
3915 External links: open square bracket forbidden in URL (named) (bug 4377)
3918 [http://example.com/1 [2345]
3920 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3925 External links: nowiki in URL link text (bug 6230)
3927 [http://example.com/ <nowiki>''example site''</nowiki>]
3929 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3934 External links: newline forbidden in text (bug 6230 regression check)
3936 [http://example.com/ first
3939 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3945 External links: Pipe char between url and text
3947 [http://example.com | link]
3949 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3954 External links: protocol-relative URL in brackets
3956 [//example.com/ Test]
3958 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3962 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
3964 External links: protocol-relative URL in brackets without text
3968 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3971 <p><a rel="mw:ExtLink" href="//example.com"></a></p>
3975 External links: protocol-relative URL in free text is left alone
3979 <p>//example.com/Foo
3984 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3986 foo//example.com/Foo
3988 <p>foo//example.com/Foo
3993 External links: with no contents
3995 [http://en.wikipedia.org/wiki/Foo]
3997 [[wikipedia:Foo|Bar]]
3999 [[wikipedia:Foo|<span>Bar</span>]]
4001 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/wiki/Foo">[1]</a>
4002 </p><p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo">Bar</a>
4003 </p><p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo"><span>Bar</span></a>
4006 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo"></a></p>
4007 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo">Bar</a></p>
4008 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo"><span>Bar</span></a></p>
4014 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4016 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
4021 External image from https
4023 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4025 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
4030 External image (when not allowed)
4032 wgAllowExternalImages=0
4034 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4036 <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>
4041 Link to non-http image, no img tag
4043 Link to non-http image, no img tag: ftp://example.com/test.jpg
4045 <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>
4050 External links: terminating separator
4052 Terminating separator: http://example.com/thing,
4054 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
4059 External links: intervening separator
4061 Intervening separator: http://example.com/1,2,3
4063 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
4068 External links: old bug with URL in query
4070 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
4072 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
4077 External links: old URL-in-URL bug, mixed protocols
4079 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
4081 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
4086 External links: URL in text
4088 URL in text: [http://example.com http://example.com]
4090 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4095 External links: Clickable images
4097 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
4099 <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>
4104 External links: raw ampersand
4106 Old & use: http://x&y
4108 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
4113 External links: encoded ampersand
4115 Old & use: http://x&y
4117 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
4120 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y">http://x&y</a></p>
4124 External links: encoded equals (bug 6102)
4126 http://example.com/?foo=bar
4128 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
4131 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a></p>
4135 ## Note that parsoid doesn't explicit mark autonumbered links, nor
4136 ## does it number them. As discussed in bug 53505, we can identify
4137 ## autonumbered links via CSS.
4141 External links: [raw ampersand]
4143 Old & use: [http://x&y]
4145 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
4148 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
4151 # note that parsoid html is identical to [raw ampersand] case; so html2wt
4152 # mode will return the [raw ampersand] wikitext
4154 External links: [encoded ampersand]
4156 parsoid=wt2html,wt2wt,html2html
4158 Old & use: [http://x&y]
4160 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
4163 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
4167 External links: [raw equals]
4169 [http://example.com/?foo=bar]
4171 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
4174 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
4177 # note that parsoid html is identical to [raw equals] case; so html2wt
4178 # mode will return the [raw equals] wikitext
4180 External links: [encoded equals] (bug 6102)
4182 parsoid=wt2html,wt2wt,html2html
4184 [http://example.com/?foo=bar]
4186 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
4189 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
4192 # xxx parsoid strips the IDN character, so the round-trip tests will
4193 # obviously fail and are disabled. --cscott
4195 External links: [IDN ignored character reference in hostname; strip it right off]
4197 parsoid=wt2html,wt2wt,html2html
4199 [http://e‌xample.com/]
4201 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
4204 <p><a rel="mw:ExtLink" href="http://example.com/"></a></p>
4207 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
4208 # Where an external link could easily circumvent the sanitization of the text of
4209 # a link like this (where an IDN-ignore character is in the URL somewhere), this
4210 # test demands a higher standard. That's a bit strange.
4214 # http://example.com -> [http://example.com|http://example.com]
4215 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
4217 # The first example is sanitized, but the second is not. Any security benefits
4218 # from this production are trivial to circumvent. Either remove this test and
4219 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
4220 # the test accordingly.
4224 # xxx parsoid strips the IDN character, so the round-trip tests will
4225 # obviously fail and are disabled. --cscott
4227 External links: IDN ignored character reference in hostname; strip it right off
4229 parsoid=wt2html,html2html
4231 http://e‌xample.com/
4233 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
4236 <p><a rel="mw:ExtLink" href="http://example.com/">http://example.com/</a></p>
4240 External links: www.jpeg.org (bug 554)
4244 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
4248 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4250 External links: URL within URL (original bug 2)
4252 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
4254 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
4257 <p><a rel="mw:ExtLink" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp"></a></p>
4261 BUG 361: URL inside bracketed URL
4263 [http://www.example.com/foo http://www.example.com/bar]
4265 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
4270 BUG 361: URL within URL, not bracketed
4272 http://www.example.com/foo?=http://www.example.com/bar
4274 <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>
4279 BUG 289: ">"-token in URL-tail
4281 http://www.example.com/<hello>
4283 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
4288 BUG 289: literal ">"-token in URL-tail
4290 http://www.example.com/<b>html</b>
4292 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
4297 BUG 289: ">"-token in bracketed URL
4299 [http://www.example.com/<hello> stuff]
4301 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
4306 BUG 289: literal ">"-token in bracketed URL
4308 [http://www.example.com/<b>html</b> stuff]
4310 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
4315 BUG 289: literal double quote at end of URL
4317 http://www.example.com/"hello"
4319 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
4324 BUG 289: literal double quote in bracketed URL
4326 [http://www.example.com/"hello" stuff]
4328 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
4333 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
4335 [http://www.example.com test]
4337 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
4342 External links: link text with spaces
4344 [http://www.example.com a b c]
4345 [http://www.example.com ''a'' ''b'']
4347 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
4348 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
4353 External links: wiki links within external link (Bug 3695)
4355 [http://example.com [[wikilink]] embedded in ext link]
4357 <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>
4360 <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>
4364 BUG 787: Links with one slash after the url protocol are invalid
4368 [http:/example.com title]
4370 <p>http:/example.com
4371 </p><p>[http:/example.com title]
4376 Bracketed external links with template-generated invalid target
4378 [{{echo|http:/example.com}} title]
4380 <p>[http:/example.com title]
4385 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
4387 ''[http://example.com text'']
4388 [http://example.com '''text]'''
4389 ''Something [http://example.com in italic'']
4390 ''Something [http://example.com mixed''''', even bold]'''
4391 '''''Now [http://example.com both''''']
4393 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
4394 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
4395 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
4396 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
4397 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
4403 Bug 4781: %26 in URL
4405 http://www.example.com/?title=AT%26T
4407 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
4410 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a></p>
4413 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
4414 # % is actually legal in HTML5. Any change in output would need testing though.
4416 Bug 4781, 5267: %25 in URL
4418 http://www.example.com/?title=100%25_Bran
4420 <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>
4423 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a></p>
4427 Bug 4781, 5267: %28, %29 in URL
4429 http://www.example.com/?title=Ben-Hur_%281959_film%29
4431 <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>
4434 <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>
4439 Bug 4781: %26 in autonumber URL
4441 [http://www.example.com/?title=AT%26T]
4443 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
4446 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T"></a></p>
4450 Bug 4781, 5267: %26 in autonumber URL
4452 [http://www.example.com/?title=100%25_Bran]
4454 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
4457 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran"></a></p>
4461 Bug 4781, 5267: %28, %29 in autonumber URL
4463 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
4465 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
4468 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29"></a></p>
4473 Bug 4781: %26 in bracketed URL
4475 [http://www.example.com/?title=AT%26T link]
4477 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
4480 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">link</a></p>
4484 Bug 4781, 5267: %25 in bracketed URL
4486 [http://www.example.com/?title=100%25_Bran link]
4488 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
4493 Bug 4781, 5267: %28, %29 in bracketed URL
4495 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
4497 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
4500 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a></p>
4504 External link containing a period in the anchor. (bug 63947)
4506 [//foo.org/bar#baz. bang]
4508 [//foo.org/bar. bang]
4510 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4511 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4514 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4515 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4519 External link containing a single quote. (bug 63947)
4523 [//foo.org/bar'baz bang]
4525 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4526 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4529 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4530 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4535 External link containing a period in the anchor. (bug 63947)
4537 [//foo.org/bar#baz. bang]
4539 [//foo.org/bar. bang]
4541 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4542 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4545 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4546 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4550 External link containing a single quote. (bug 63947)
4554 [//foo.org/bar'baz bang]
4556 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4557 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4560 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4561 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4566 External link containing double-single-quotes in text '' (bug 4598 sanity check)
4568 Some [http://example.com/ pretty ''italics'' and stuff]!
4570 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
4575 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
4577 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
4579 <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>
4584 External link containing double-single-quotes with no space separating the url from text in italics
4586 [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]].]
4588 <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>
4591 <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> <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>.</p>
4593 <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>
4597 External link with comments in link text
4599 [http://www.google.com Google <!-- comment -->]
4601 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
4606 URL-encoding in URL functions (single parameter)
4608 {{localurl:Some page|amp=&}}
4610 <p>/index.php?title=Some_page&amp=&
4615 URL-encoding in URL functions (multiple parameters)
4617 {{localurl:Some page|q=?&=&}}
4619 <p>/index.php?title=Some_page&q=?&amp=&
4626 http://example.com/index.php?foozoid%5B%5D=bar
4628 http://example.com/index.php?foozoid[]=bar
4630 <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>
4631 </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>
4634 <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>
4636 <p><a rel="mw:ExtLink" href="http://example.com/index.php?foozoid[]=bar">http://example.com/index.php?foozoid[]=bar</a></p>
4640 IPv6 urls (bug 21261)
4644 http://[2404:130:0:1000::187:2]/index.php
4646 <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>
4651 Non-extlinks in brackets
4660 [{{echo|foo}} ''bar'']
4661 [{{echo|foo}}l's] errand
4662 [{{echo|foo}}l's errand]
4664 [url=http://example.com]
4677 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
4682 Percent encoding in external links
4684 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
4686 <p><a rel="nofollow" class="external text" href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a>
4689 <p><a rel="mw:ExtLink"
4690 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
4694 Use url link syntax for links where the content is equal the link target
4698 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4701 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
4705 Parenthesis in external links, especially URL links
4709 http://example.com/test)
4711 http://example.com/(test)
4713 http://example.com/((test)
4715 (http://example.com/(test))
4717 (http://example.com/(test)))))
4719 http://example.com/a)b
4721 [http://example.com) foo]
4723 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4724 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
4725 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</a>
4726 </p><p><a rel="nofollow" class="external free" href="http://example.com/((test)">http://example.com/((test)</a>
4727 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test))">http://example.com/(test))</a>
4728 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test)))))">http://example.com/(test)))))</a>
4729 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
4730 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
4733 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
4734 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
4735 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</a></p>
4736 <p><a rel="mw:ExtLink" href="http://example.com/((test)">http://example.com/((test)</a></p>
4737 <p>(<a rel="mw:ExtLink" href="http://example.com/(test))">http://example.com/(test))</a></p>
4738 <p>(<a rel="mw:ExtLink" href="http://example.com/(test)))))">http://example.com/(test)))))</a></p>
4739 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
4740 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
4744 Parenthesis in external links, w/ transclusion or comment
4746 (http://example.com/{{echo|hi}})
4748 (http://example.com<!-- hi -->)
4750 <p>(<a rel="nofollow" class="external free" href="http://example.com/hi">http://example.com/hi</a>)
4751 </p><p>(<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4754 <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>
4756 <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>
4760 Replace invalid link targets when serializing
4764 <a rel="mw:WikiLink" href="./]] foo [[bar">Manual</a>
4766 [[MediaWiki:Badtitletext|Manual]]
4776 Normal text. '''Bold text.''' Normal text. ''Italic text.''
4778 Normal text. '''''Bold italic text.''''' Normal text.
4780 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
4781 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
4786 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
4787 # parser strips. The wikitext contains just the first half of the bold
4790 Unclosed and unmatched quotes
4792 '''''Bold italic text '''with bold deactivated''' in between.'''''
4794 '''''Bold italic text ''with italic deactivated'' in between.'''''
4798 ..spanning two paragraphs (should not work).'''
4800 '''Bold tag left open
4802 ''Italic tag left open
4806 <!-- Unmatching number of opening, closing tags: -->
4807 '''This year''''s election ''should'' beat '''last year''''s.
4809 ''Tom'''s car is bigger than ''Susan'''s.
4811 Plain ''italic'''s plain
4813 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4814 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4815 </p><p><b>Bold text..</b>
4816 </p><p>..spanning two paragraphs (should not work).
4817 </p><p><b>Bold tag left open</b>
4818 </p><p><i>Italic tag left open</i>
4820 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4821 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4822 </p><p>Plain <i>italic'</i>s plain
4825 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4826 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4827 </p><p><b>Bold text..</b>
4828 </p><p>..spanning two paragraphs (should not work).<b></b>
4829 </p><p><b>Bold tag left open</b>
4830 </p><p><i>Italic tag left open</i>
4832 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4833 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4834 </p><p>Plain <i>italic'</i>s plain
4841 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4844 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4845 # is the bare minimum required by the spec, see:
4846 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4847 # Parsoid team replies: empty table tags are legal in HTML5
4849 A table with no data.
4862 A table with stray table end tags on start tag line (wt2html)
4866 {|style="color: red;"|}
4868 {|style="color: red;" |}
4872 {|style="color: red;"|} id="foo"
4876 {|style="color: red;" |} id="foo"
4880 <table style="color: red;"></table>
4882 <table style="color: red;">
4888 <table style="color: red;" id="foo">
4894 <table style="color: red;" id="foo">
4903 A table with no data (take 2)
4911 # A table with nothing but a caption is invalid XHTML, we might want to render
4912 # this as <p>caption</p>
4913 # Parsoid team replies: table with only a caption is legal in HTML5
4915 A table with nothing but a caption
4923 </caption><tr><td></td></tr></table>
4926 <table><caption> caption</caption></table>
4930 A table with caption with default-spaced attributes and a table row
4933 |+ style="color: red;" | caption1
4939 <caption style="color: red;"> caption1
4948 A table with captions with non-default spaced attributes and a table row
4951 |+style="color: red;"|caption2
4952 |+ style="color: red;"| caption3
4958 <caption style="color: red;">caption2
4960 <caption style="color: red;"> caption3
4969 Table td-cell syntax variations
4973 | foo bar foo || baz
4974 | style='color:red;' | baz
4975 | style='color:red;' || baz
4982 <td> foo bar foo </td>
4985 <td style="color:red;"> baz
4987 <td> style='color:red;' </td>
5015 Simple table but with multiple dashes for row wikitext
5033 Multiplication table
5035 {| border="1" cellpadding="2"
5036 |+Multiplication table
5038 ! × !! 1 !! 2 !! 3
5056 <table border="1" cellpadding="2">
5057 <caption>Multiplication table
5104 Accept "||" in table headings
5119 Accept "!!" in table data
5132 <table data-parsoid='{}'>
5133 <tbody data-parsoid='{}'><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'> Foo!! </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'></td></tr>
5138 Accept "||" in indented table headings
5148 </th></tr></table></dd></dl>
5153 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
5170 Accept "| !" at start of line in tables (ignore !-attribute)
5174 | !style="color:red" | bar
5186 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 +/-
5190 |style='color:red;'|+1
5191 |style='color:blue;'|-1
5203 <td style="color:red;">+1
5205 <td style="color:blue;">-1
5229 |rowspan=2| Cell 2, row 1 (and 2)
5240 <td rowspan="2"> Cell 2, row 1 (and 2)
5258 {| bgcolor=#ABCDEF border=2
5263 |the original table again
5271 <table bgcolor="#ABCDEF" border="2">
5279 <td>the original table again
5285 Invalid attributes in table cell (bug 1830)
5299 # The "|}" to close the table is missing from the input, so parsoid's
5300 # *2wt modes will fail.
5302 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
5304 parsoid=wt2html,html2html
5307 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
5311 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
5312 <td>]" onmouseover="alert(document.cookie)">test
5320 <td><a rel="mw:ExtLink" href="ftp://|x||"></a>" onmouseover="alert(document.cookie)">test</td></tr></tbody></table>
5325 Indented table markup mixed with indented pre content (proposed in bug 6200)
5330 Text that should be rendered preformatted
5338 <pre>Text that should be rendered preformatted
5347 Template-generated table cell attributes and cell content
5356 <td style="color: red"> Foo
5358 <td style="color: red"> Foo
5364 Template-generated table cell attributes and cell content (2)
5367 |align=center {{table_attribs}}
5372 <td align="center" style="color: red"> Foo
5378 Template-generated table cell attributes and cell content (3)
5381 |align=center {{table_cells}}
5386 <td align="center" style="color: red"> Foo </td>
5394 Table with row followed by newlines and table heading
5412 Table with empty line following the start tag
5429 # FIXME: Preserve the attribute properly (with an empty string as value) in
5430 # the PHP parser. Parsoid implements the behavior below.
5432 Table attributes with empty value
5442 </td></tr></tbody></table>
5447 Wikitext table with a lot of comments
5470 Wikitext table with double-line table cell
5487 Table cell with a single comment
5504 Table-cell after a comment-only-empty-line
5521 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>a</td>
5523 <!--c2--><td data-parsoid='{"autoInsertedEnd":true}'> b</td></tr>
5528 # The expected HTML structure in this test is debatable. The PHP parser does
5529 # not parse this kind of table at all. The main focus for Parsoid is on
5530 # round-tripping, so this output is ok for now. TODO: revisit!
5532 Wikitext table with html-syntax row
5542 <td>foo</td></tr></tbody></table>
5545 ## Note that Parsoid output differs from PHP and PHP+tidy here.
5546 ## The lack of <tr> tags in the PHP output is arguably a bug in the
5547 ## PHP parser, which tidy then compounds by fostering the content
5548 ## entirely out of the table. Parsoid recognizes the table context
5549 ## and generates <tr> and <td> wrappers as needed. Hopefully nobody
5550 ## depends on PHP's treatment of broken table markup!
5552 Implicit <td> after a |-
5554 parsoid=wt2html,wt2wt
5574 # Again, Parsoid adds implicit <td>s here, PHP and Tidy strip the b out.
5576 <pre> tags should be recognized in an explicit <td> context, but not in an implicit <td> context
5578 parsoid=wt2html,wt2wt
5611 <tr><td><pre>a</pre></td></tr>
5612 <tr><td> b</td></tr>
5617 # PHP + Tidy strips the list out of the table; Parsoid wraps it.
5619 Lists should be recognized in an implicit <td> context
5621 parsoid=wt2html,wt2wt
5648 Parsoid: Round-trip tables directly followed by content (bug 51219)
5650 parsoid=wt2html,wt2wt
5662 <td>foo</td></tr></tbody></table> bar
5666 <td>baz</td></tr></tbody></table><b>quux</b>
5670 Parsoid: Default to a newline after tables in new content (bug 51219)
5677 <nowiki> </nowiki>bar
5684 <tr><td>foo</td></tr></tbody></table> bar
5686 <tr><td>baz</td></tr></tbody></table><b>quux</b>
5690 Parsoid: newline inducing block nodes don't suppress <nowiki>
5702 Parsoid: Row-syntax table headings followed by comment & table cells
5704 parsoid=wt2html,wt2wt
5708 <!-- foo --> || baz || quux
5722 <tbody><tr><th> foo </th><th> bar
5723 <!-- foo --> </th><td> baz </td><td> quux</td></tr>
5728 # PHP throws away the (semi-broken) "foo" class here; Parsoid
5731 Parsoid: Recover better from broken table attributes
5751 <p>foo</p></td></tr>
5756 Strip unsupported table tags
5807 Plain link, capitalized
5811 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5816 Plain link, uncapitalized
5820 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
5827 [[Main Page|The Main Page]]
5829 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
5834 Piped link with comment in link text
5836 [[Main Page|The Main<!--front--> Page]]
5838 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
5843 Piped link with multiple pipe characters in link text
5845 [[Main Page||The|Main|Page|]]
5847 <p><a href="/wiki/Main_Page" title="Main Page">|The|Main|Page|</a>
5850 <p><a rel="mw:WikiLink" href="Main_Page">|The|Main|Page|</a></p>
5858 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
5863 Broken link with fragment
5865 [[Zigzagzogzagzig#zug]]
5867 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
5872 Special page link with fragment
5874 [[Special:Version#anchor]]
5876 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
5881 Nonexistent special page link with fragment
5883 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
5885 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
5892 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
5894 <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>
5901 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
5903 <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>!!!
5914 Bug 43661: Piped links with identical prefixes
5916 [[prefixed article|prefixed articles with spaces]]
5918 [[prefixed article|prefixed articlesaoeu]]
5920 [[Main Page|Main Page test]]
5922 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
5923 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
5924 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
5930 Link with HTML entity in suffix / tail
5932 [[Main Page]]", [[Main Page]]a
5934 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
5939 Link with 3 brackets
5948 Link with 4 brackets
5952 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
5957 Piped link with 3 brackets
5959 [[[main page|the main page]]]
5961 <p>[[[main page|the main page]]]
5966 Piped link with extlink-like text
5969 [[Main Page|This is a [bar]]]
5971 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
5972 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
5977 Link with multiple pipes
5979 [[Main Page|The|Main|Page]]
5981 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
5985 # Note that parsoid does not munge anchor text; all non-space
5986 # characters are valid in HTML5 ids.
5988 Anchor containing a #. (bug 63430)
5990 [[Main Page#And#Link]]
5992 <p><a href="/wiki/Main_Page#And.23Link" title="Main Page">Main Page#And#Link</a>
5995 <p><a rel="mw:WikiLink" href="./Main_Page#And%23Link">Main Page#And#Link</a></p>
6001 [[Talk:Parser testing]], [[Meta:Disclaimers]]
6003 <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>
6008 Link with space in namespace
6010 [[User talk:Foo bar]]
6012 <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>
6017 MemoryAlpha:AlphaTest
6019 This is an article in the MemoryAlpha namespace
6020 (which shadows the memoryalpha interwiki link).
6024 Namespace takes precedence over interwiki link (bug 51680)
6026 [[MemoryAlpha:AlphaTest]]
6028 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
6032 # The previous test doesn't work correctly in html2*, due to not recognizing the
6033 # link as an internal one. This one checks for the correct behavior.
6035 Link to namespace preferred over interwiki with correct rel attribute
6037 parsoid=html2wt,html2html
6039 [[MemoryAlpha:AlphaTest]]
6041 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
6046 Piped link to namespace
6048 [[Meta:Disclaimers|The disclaimers]]
6050 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
6057 [[Usually caused by a typo (oops}]]
6059 <p>[[Usually caused by a typo (oops}]]
6066 Just a test of an article title containing a percent.
6070 Link containing % (not as a hex sequence)
6074 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
6077 <p><a rel="mw:WikiLink" href="./7%25_Solution">7% Solution</a></p>
6080 # note that the parsoid HTML is identical to the previous test output,
6081 # so the previous test ensures that the html2wt mode will generate the
6082 # "not as a hex sequence" wikitext.
6084 Link containing % as a single hex sequence interpreted to char
6086 parsoid=wt2wt,wt2html,html2html
6090 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
6093 <p><a rel="mw:WikiLink" href="./7%25_Solution">7% Solution</a></p>
6097 Link containing % as a double hex sequence interpreted to hex sequence
6101 <p>[[7%2525 Solution]]
6105 # note that parsoid does not munge anchor text; all non-space
6106 # characters are valid in HTML5 anchors.
6108 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
6109 Example for such a section: == < ==
6111 [[%23%3c]][[%23%3e]]
6113 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
6116 <p><a rel="mw:WikiLink" href="./Main%20Page#%3C">#<</a><a rel="mw:WikiLink" href="./Main%20Page#%3E">#></a></p>
6120 Link containing "<#" and ">#" as a hex sequences
6122 [[%3c%23]][[%3e%23]]
6124 <p>[[%3c%23]][[%3e%23]]
6129 Link containing an equals sign
6131 [[Special:BookSources/isbn=4-00-026157-6]]
6133 <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>
6136 <p><a rel="mw:WikiLink" href="./Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a></p>
6142 Just a test of an article title containing a tilde.
6145 # note that links containing signatures, like [[Foo~~~~]], are
6146 # massaged by the pre-save transform (PST) and so the tildes are never
6147 # seen by the parser.
6149 Link containing a tilde
6153 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
6156 <p><a rel="mw:WikiLink" href="./Foo~bar">Foo~bar</a></p>
6160 Link containing double-single-quotes '' (bug 4598)
6162 [[Lista d''e paise d''o munno]]
6164 <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>
6167 <p><a rel="mw:WikiLink" href="./Lista_d''e_paise_d''o_munno">Lista d''e paise d''o munno</a></p>
6171 Link containing double-single-quotes '' in text (bug 4598 sanity check)
6173 Some [[Link|pretty ''italics'' and stuff]]!
6175 <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>!
6178 <p>Some <a rel="mw:WikiLink" href="Link">pretty <i>italics</i> and stuff</a>!</p>
6182 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
6184 ''Some [[Link|pretty ''italics'' and stuff]]!''
6186 <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>
6191 Link with double quotes in title part (literal) and alternate part (interpreted)
6193 [[File:Denys Savchenko ''Pentecoste''.jpg]]
6197 [[''Pentecoste''|Pentecoste]]
6199 [[''Pentecoste''|''Pentecoste'']]
6201 <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>
6202 </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>
6203 </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>
6204 </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>
6207 <meta typeof="mw:Placeholder"/>
6208 <p><a rel="mw:WikiLink" href="''Pentecoste''">''Pentecoste''</a></p>
6209 <p><a rel="mw:WikiLink" href="''Pentecoste''">Pentecoste</a></p>
6210 <p><a rel="mw:WikiLink" href="''Pentecoste''"><i>Pentecoste</i></a></p>
6214 Broken image links with HTML captions (bug 39700)
6216 [[File:Nonexistent|<script></script>]]
6217 [[File:Nonexistent|100px|<script></script>]]
6218 [[File:Nonexistent|<]]
6219 [[File:Nonexistent|a<i>b</i>c]]
6221 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
6222 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
6223 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
6224 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
6231 [[http://www.example.com]]
6233 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
6236 <p>[<a rel="mw:ExtLink" href="http://www.example.com"></a>]</p>
6240 Plain link to URL with link text
6242 [[http://www.example.com Link text]]
6244 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
6249 Plain link to protocol-relative URL
6251 [[//www.example.com]]
6253 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
6256 <p>[<a rel="mw:ExtLink" href="//www.example.com"></a>]</p>
6260 Plain link to protocol-relative URL with link text
6262 [[//www.example.com Link text]]
6264 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
6269 Plain link to page with question mark in title
6275 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
6276 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
6281 # I'm fairly sure the expected result here is wrong.
6282 # We want these to be URL links, not pseudo-pages with URLs for titles....
6283 # However the current output is also pretty screwy.
6286 # I'm changing it to match the current output--it arguably makes more
6287 # sense in the light of the test above. Old expected result was:
6288 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
6290 # But I think this test is bordering on "garbage in, garbage out" anyway.
6295 Piped link to URL: [[http://www.example.com|an example URL]]
6297 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
6300 <p>Piped link to URL: [<a rel="mw:ExtLink" href="http://www.example.com|an">example URL</a>]</p>
6304 BUG 2: [[page|http://url/]] should link to page, not http://url/
6306 [[Main Page|http://url/]]
6308 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
6311 <p><a rel="mw:WikiLink" href="./Main_Page">http://url/</a></p>
6314 # Parsoid does not mark self-links, by design.
6316 BUG 337: Escaped self-links should be bold
6320 [[Bug462]] [[Bug462]]
6322 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
6325 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong></p>
6327 <p><a rel="mw:WikiLink" href="./Bug462">Bug462</a> <a rel="mw:WikiLink" href="./Bug462">Bug462</a></p>
6331 Self-link to section should not be bold
6335 [[Main Page#section]]
6337 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
6348 Self-link to numeric title
6354 <p><strong class="selflink">0</strong>
6359 Link to numeric-equivalent title
6365 <p><a href="/wiki/00" title="00">00</a>
6370 <nowiki> inside a link
6372 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
6374 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
6379 Non-breaking spaces in title
6381 [[ Main Page ]]
6383 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
6388 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
6394 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
6399 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
6405 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
6410 Internal link with en linktrail: no apostrophes (bug 27473)
6416 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
6421 Internal link with ca linktrail with apostrophes (bug 27473)
6427 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
6432 Internal link with kaa linktrail with apostrophes (bug 27473)
6438 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
6443 Link with multiple ":" in a subpage-supporting namespace (bug 63636)
6445 [[User:Foo/Test/63636:Bar|Test]]
6447 <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>
6450 <p><a rel="mw:WikiLink" href="./User:Foo/Test/63636:Bar">Test</a></p>
6454 Purely hash wikilink
6456 title=[[User:test/123]]
6460 <p><a href="#a">b</a>
6463 <p data-parsoid='{}'><a rel="mw:WikiLink" href="../User:Test/123#a" data-parsoid='{"stx":"piped","a":{"href":"../User:Test/123#a"},"sa":{"href":"#a"}}'>b</a></p>
6467 1. Interaction of linktrail and template encapsulation
6473 <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>
6477 2. Interaction of linktrail and template encapsulation
6481 {{echo|Some [[Fool]]}}s
6483 <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>
6487 3. Interaction of linktrail and template encapsulation
6491 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
6493 <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>
6503 Internal link with is link prefix
6507 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
6509 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
6520 Internal link with is link trail and link prefix
6524 [[mótmælendatrú|xxx]]ar
6526 mótmælenda[[söfnuður]]
6527 mótmælenda[[söfnuður|söfnuðir]]
6528 mótmælenda[[söfnuður|söfnuðir]]xxx
6530 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
6531 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
6532 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
6533 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
6534 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
6539 Parsoid link trail escaping
6541 parsoid=html2wt,html2html
6545 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
6549 Parsoid link prefix escaping
6552 parsoid=html2wt,html2html
6554 Aðrir mótmælenda<nowiki/>[[söfnuður]]
6556 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
6560 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
6568 [http://wp.org ''foo'']
6570 <p><a href="/wiki/Foo" title="Foo"> bar</a>
6571 </p><p><a href="/wiki/Foo" title="Foo"> <i>bar</i></a>
6572 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
6573 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
6578 Parsoid: Scoped parsing should handle mixed transclusions and plain text
6582 [[Foo|{{echo|a}} b {{echo|c}}]]
6584 <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>
6588 Link with angle bracket after anchor
6592 <p><a href="/wiki/Foo#.3Cbar.3E" title="Foo">Foo#<bar></a>
6595 <p><a rel="mw:WikiLink" href="./Foo#%3Cbar%3E" data-parsoid='{"stx":"simple","a":{"href":"./Foo#%3Cbar%3E"},"sa":{"href":"Foo#<bar>"}}'>Foo#<bar></a></p>
6599 ### Interwiki links (see maintenance/interwiki.sql)
6603 Inline interwiki link
6605 [[MeatBall:SoftSecurity]]
6607 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
6612 Inline interwiki link with empty title (bug 2372)
6616 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
6621 Interwiki link encoding conversion (bug 1636)
6623 *[[Wikipedia:ro:Olteniţa]]
6624 *[[Wikipedia:ro:Olteniţa]]
6626 <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>
6627 <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>
6631 <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>
6632 <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>
6637 Interwiki link with fragment (bug 2130)
6639 [[MeatBall:SoftSecurity#foo]]
6641 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
6645 # Ideally the wikipedia: prefix here should be proto-relative too
6647 Different interwiki prefixes mapping to the same URL
6655 [[:wikipedia:Foo|Foo]]
6657 [[wikipedia:en:Foo]]
6659 [[:wikipedia:en:Foo]]
6661 <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>
6663 <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>
6665 <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>
6667 <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>
6669 <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>
6671 <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>
6675 Interwiki links that cannot be represented in wiki syntax
6678 [[meatball:ok#foo|ok with fragment]]
6679 [[meatball:ok_as_well?|ok ending with ? mark]]
6680 [http://de.wikipedia.org/wiki/Foo?action=history has query]
6681 [http://de.wikipedia.org/wiki/#foo is just fragment]
6684 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok">meatball:ok</a>
6685 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo">ok with fragment</a>
6686 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well?">ok ending with ? mark</a>
6687 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
6688 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
6692 Interwiki links: trail
6696 [[wikipedia:Foo|Ba]]r
6698 <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>
6702 Local interwiki link
6704 [[local:Template:Foo]]
6706 <p><a href="/wiki/Template:Foo" title="Template:Foo">local:Template:Foo</a>
6711 Local interwiki link: self-link to current page
6717 <p><strong class="selflink">local:Main Page</strong>
6722 Local interwiki link: prefix only (bug 64167)
6726 <p><a href="/wiki/Main_Page" title="Main Page">local:</a>
6731 Local interwiki link: with additional interwiki prefix (bug 61357)
6733 [[local:meatball:Hello]]
6735 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?Hello" class="extiw" title="meatball:Hello">local:meatball:Hello</a>
6740 ### Interlanguage links
6741 ### Language links (so that searching for '### language' matches..)
6754 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6758 Interlanguage link with spacing
6767 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6771 Double interlanguage link
6781 <link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/Spanish"/>
6782 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6786 Interlanguage link, with prefix links
6797 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6801 Double interlanguage link, with prefix links (bug 8897)
6813 <link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/Spanish"/>
6814 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6818 "Extra" interlanguage links (bug 32189 / gerrit 111390)
6827 <link rel="mw:PageProp/Language" title="Multilingual" href="//wikisource.org/wiki/Article"/></p>
6831 Parsoid-specific test: Wikilinks with should RT properly
6837 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
6842 Parsoid bug 53221: Wikilinks should be properly entity-escaped
6846 He&nbsp;llo [[Foo|He&nbsp;llo]]
6848 He&nbsp;llo [[He&nbsp;llo]]
6850 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
6851 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
6855 Parsoid: handle constructor well
6863 <p><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
6865 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
6869 Parsoid: recognize interlanguage links without a target page
6875 <p><link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
6879 Parsoid: recognize interwiki links without a target page
6885 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
6889 Parsoid: Bug #45209, handle interwiki links pointing to the current wiki as plain wiki links
6895 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"en:Foo"}}'>Foo</a></p>
6899 Interlanguage link with preceding local interwiki link (bug 68085)
6902 [[local:es:Spanish]]
6905 <a href="http://es.wikipedia.org/wiki/Spanish" class="extiw" title="es:Spanish">local:es:Spanish</a>
6910 Looks like an interlanguage link, but is actually a local interwiki
6916 <a href="/wiki/Template:Foo" title="Template:Foo">mi:Template:Foo</a>
6921 ### Redirects, Parsoid-only
6924 1. Simple redirect to page
6928 #REDIRECT [[Main Page]]
6930 <link rel="mw:PageProp/redirect" href="./Main_Page">
6933 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
6935 2. Other redirect variants
6937 parsoid=wt2html,wt2wt
6939 #REDIRECT [[Main_Page]]
6940 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
6942 <link rel="mw:PageProp/redirect" href="./Main_Page">
6943 <link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
6949 parsoid=wt2html,wt2wt
6954 <li>REDIRECT [[]]</li></ol>
6958 Optional colon in #REDIRECT
6960 # the colon is archaic syntax. we support it for wt2html, but we
6961 # don't care that it roundtrips back to the modern syntax.
6962 parsoid=wt2html,html2html
6964 #REDIRECT:[[Main Page]]
6966 <link rel="mw:PageProp/redirect" href="./Main_Page">
6970 Whitespace in #REDIRECT with optional colon
6972 # the colon and gratuitous whitespace is archaic syntax. we support
6973 # it for wt2html, but we don't care that it roundtrips back to the
6974 # modern syntax (without extra whitespace)
6975 parsoid=wt2html,html2html
6982 <link rel="mw:PageProp/redirect" href="./Main_Page">
6986 Piped link in #REDIRECT
6988 # content after piped link is ignored. we support this syntax,
6989 # but don't care that the piped link is lost when we roundtrip this.
6992 #REDIRECT [[Main Page|bar]]
6994 <link rel="mw:PageProp/redirect" href="./Main_Page">
6998 Redirect to category
7002 #REDIRECT [[Category:Foo]]
7004 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7008 Redirect to category with URL encoding
7012 #REDIRECT [[Category%3AFoo]]
7014 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7018 Redirect to category page
7020 parsoid=wt2html,html2html
7022 #REDIRECT [[:Category:Foo]]
7024 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
7028 Redirect to image page (1)
7032 #REDIRECT [[File:Wiki.png]]
7034 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7038 Redirect to image page (2)
7042 #REDIRECT [[Image:Wiki.png]]
7044 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7048 Redirect to language
7052 #REDIRECT [[en:File:Wiki.png]]
7054 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7058 Redirect to interwiki
7062 #REDIRECT [[meatball:File:Wiki.png]]
7064 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7068 Non-English #REDIRECT
7073 #TILVÍSUN [[Main Page]]
7075 <link rel="mw:PageProp/redirect" href="./Main_Page">
7086 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
7103 Broken br tag sanitization
7111 # TODO: Fix html2html mode (bug 51055)!
7112 # This </br> handling was added as part of bug 50831; but it
7113 # differs from how PHP+tidy handles this. We should investigate
7116 Parsoid: Broken br tag recognition
7132 Incorrecly removing closing slashes from correctly formed XHTML
7134 <br style="clear:both;" />
7136 <p><br style="clear:both;" />
7141 Failing to transform badly formed HTML into correct XHTML
7143 <br style="clear: left;">
7144 <br style="clear: right;">
7145 <br style="clear: both;">
7147 <p><br style="clear: left;" />
7148 <br style="clear: right;" />
7149 <br style="clear: both;" />
7154 Handling html with a div self-closing tag
7163 <p><div title />
7167 <p><div title=bar />
7168 <div title=bar/>
7170 <div title="bar/"></div>
7176 Handling html with a br self-closing tag
7185 <p><br title="title" />
7186 <br title="title" />
7195 Horizontal ruler (should it add that extra space?)
7209 Horizontal ruler -- 4+ dashes render hr
7218 Horizontal ruler -- eats additional dashes on the same line
7227 Horizontal ruler -- does not collapse dashes on consecutive lines
7238 Horizontal ruler -- <4 dashes render as plain text
7247 Horizontal ruler -- Supports content following dashes on same line
7259 ### Block-level elements
7268 <ul><li>Common list</li>
7270 <li>item 3</li></ul>
7281 <ol><li>Numbered list</li>
7283 <li> item 3</li></ol>
7297 ***#Number on level 4
7299 **#Number on level 3
7300 **#Number on level 3
7304 #** Level 3, but ordered
7307 <ol><li> with numbers</li></ol>
7308 <ul><li> and bullets</li></ul>
7309 <ol><li> and numbers</li></ol></li>
7311 <ul><li>bullet level 2
7312 <ul><li>bullet level 3
7313 <ol><li>Number on level 4</li></ol></li></ul></li>
7315 <ol><li>Number on level 3</li>
7316 <li>Number on level 3</li></ol></li></ul>
7317 <ol><li>number level 2</li></ol></li>
7319 <ul><li><ul><li> Level 3</li></ul></li></ul></li></ul>
7320 <ol><li><ul><li><ul><li> Level 3, but ordered</li></ul></li></ul></li></ol>
7331 <ul><li>bar</li></ul></li></ul>
7341 <ul><li><ul><li>foo</li></ul></li>
7347 Nested lists 3 (first element empty)
7353 <ul><li>bar</li></ul></li></ul>
7358 Nested lists 4 (first element empty)
7363 <ul><li><ul><li></li></ul></li>
7369 Nested lists 5 (both elements empty)
7374 <ul><li><ul><li></li></ul></li>
7380 Nested lists 6 (both elements empty)
7386 <ul><li></li></ul></li></ul>
7391 Nested lists 7 (skip initial nesting levels)
7395 <ul><li><ul><li><ul><li> foo</li></ul></li></ul></li></ul>
7400 Nested lists 8 (multiple nesting transitions)
7408 <ul><li><ul><li> bar</li></ul></li>
7409 <li> baz</li></ul></li>
7415 1. Lists with start-of-line-transparent tokens before bullets: Comments
7428 2. Lists with start-of-line-transparent tokens before bullets: Template close
7433 <ul><li>foo bar</li>
7439 List items are not parsed correctly following a <pre> block (bug 785)
7445 <ul><li> <pre>foo</pre></li>
7446 <li> <pre>bar</pre></li>
7452 List items from template
7463 * notSOL{{inner list}}
7466 <ul><li> item 1</li>
7467 <li> item 2</li></ul>
7468 <ul><li> item 0</li>
7470 <li> item 2</li></ul>
7471 <ul><li> item 0</li>
7474 <li> item 2</li></ul>
7479 List interrupted by empty line or heading
7487 <ul><li> foo</li></ul>
7488 <ul><li><ul><li> bar</li></ul></li></ul>
7489 <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>
7490 <ul><li> Another list item</li></ul>
7495 Multiple list tags generated by templates
7516 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
7519 <!--This line will NOT split the list-->
7521 <!--This line will NOT split the list either-->
7523 <!--foo--> <!----> <!--This line NOT split the list either-->
7534 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
7537 <!--This line will NOT split the list-->
7539 <!--This line will NOT split the list either-->
7541 <!--foo--> <!----> <!--This line NOT split the list
7554 (The PHP parser relies on Tidy for the hack)
7556 parsoid=wt2html,wt2wt
7560 * {{echo|<li>templated li-hack}}
7561 * <!--foo--> <li> unsupported li-hack with preceding comments
7564 <li><li>not a li-hack
7571 <li>templated li-hack</li>
7572 <li>unsupported li-hack with preceding comments</li>
7575 <li>not a li-hack</li>
7580 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
7607 Parsoid: Test of whitespace serialization with Templated bullets
7614 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
7618 # ------------------------------------------------------------------------
7619 # The next set of tests are about Parsoid's ability to handle badly nested
7620 # tags (parse, minimize scope of fixup, and roundtrip back)
7621 # ------------------------------------------------------------------------
7624 Unbalanced closing block tags break a list
7625 (php parser relies on Tidy to fix up)
7643 # Parsoid fails this test, but it might be tricky to support properly.
7646 Unbalanced closing non-block tags don't break a list
7647 (php parser relies on Tidy to fix up)
7654 <li><span>a</span></li>
7655 <li><span>b</span></li>
7669 Unclosed formatting tags that straddle lists are closed and reopened
7670 (php parser relies on Tidy to fix up)
7688 # Parsoid fails this test, but it might be tricky to support properly.
7691 List embedded in a non-block tag
7692 (Ugly Parsoid output -- worth fixing; PHP parser relies on Tidy)
7699 <li><small>foo</small></li>
7709 # This is a bug in the PHP parser + tidy combination.
7710 # (The </tr> tag gets parsed as text and html-escaped by PHP,
7711 # and then fostered out of the table by tidy.)
7712 # We believe the Parsoid output to be correct.
7714 Table with missing opening <tr> tag
7716 parsoid=wt2html,wt2wt
7741 # Note that the current date is hard-coded as
7742 # 1970-01-01T00:02:03Z (a Thursday)
7743 # when running parser tests. The timezone is also fixed to GMT, so
7744 # local date will be identical to current date.
7747 Magic Word: {{CURRENTDAY}}
7756 Magic Word: {{CURRENTDAY2}}
7765 Magic Word: {{CURRENTDAYNAME}}
7774 Magic Word: {{CURRENTDOW}}
7783 Magic Word: {{CURRENTMONTH}}
7792 Magic Word: {{CURRENTMONTH1}}
7801 Magic Word: {{CURRENTMONTHABBREV}}
7803 {{CURRENTMONTHABBREV}}
7810 Magic Word: {{CURRENTMONTHNAME}}
7812 {{CURRENTMONTHNAME}}
7819 Magic Word: {{CURRENTMONTHNAMEGEN}}
7821 {{CURRENTMONTHNAMEGEN}}
7828 Magic Word: {{CURRENTTIME}}
7837 Magic Word: {{CURRENTHOUR}}
7846 Magic Word: {{CURRENTWEEK}} (@bug 4594)
7855 Magic Word: {{CURRENTYEAR}}
7864 Magic Word: {{CURRENTTIMESTAMP}}
7866 {{CURRENTTIMESTAMP}}
7873 Magic Words LOCAL (UTC)
7877 * {{LOCALMONTHNAME}}
7878 * {{LOCALMONTHNAMEGEN}}
7879 * {{LOCALMONTHABBREV}}
7888 * {{LOCALTIMESTAMP}}
7903 <li> 19700101000203</li></ul>
7908 Magic Word: {{FULLPAGENAME}}
7910 title=[[User:Ævar Arnfjörð Bjarmason]]
7914 <p>User:Ævar Arnfjörð Bjarmason
7919 Magic Word: {{FULLPAGENAMEE}}
7921 title=[[User:Ævar Arnfjörð Bjarmason]]
7925 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7930 Magic Word: {{TALKSPACE}}
7932 title=[[User:Ævar Arnfjörð Bjarmason]]
7941 Magic Word: {{TALKSPACE}}, same namespace
7943 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7952 Magic Word: {{TALKSPACE}}, main namespace
7954 title=[[Parser Test]]
7963 Magic Word: {{TALKSPACEE}}
7965 title=[[User:Ævar Arnfjörð Bjarmason]]
7974 Magic Word: {{SUBJECTSPACE}}
7976 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7985 Magic Word: {{SUBJECTSPACE}}, same namespace
7987 title=[[User:Ævar Arnfjörð Bjarmason]]
7996 Magic Word: {{SUBJECTSPACE}}, main namespace
7998 title=[[Parser Test]]
8006 Magic Word: {{SUBJECTSPACEE}}
8008 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8017 Magic Word: {{NAMESPACE}}
8019 title=[[User:Ævar Arnfjörð Bjarmason]]
8028 Magic Word: {{NAMESPACEE}}
8030 title=[[User:Ævar Arnfjörð Bjarmason]]
8039 Magic Word: {{NAMESPACENUMBER}}
8041 title=[[User:Ævar Arnfjörð Bjarmason]]
8050 Magic Word: {{SUBPAGENAME}}
8052 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8061 Magic Word: {{SUBPAGENAMEE}}
8063 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8072 Magic Word: {{ROOTPAGENAME}}
8074 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8078 <p>Ævar Arnfjörð Bjarmason
8083 Magic Word: {{ROOTPAGENAMEE}}
8085 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8089 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8094 Magic Word: {{BASEPAGENAME}}
8096 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8100 <p>Ævar Arnfjörð Bjarmason
8105 Magic Word: {{BASEPAGENAMEE}}
8107 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8111 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8116 Magic Word: {{TALKPAGENAME}}
8118 title=[[User:Ævar Arnfjörð Bjarmason]]
8122 <p>User talk:Ævar Arnfjörð Bjarmason
8127 Magic Word: {{TALKPAGENAMEE}}
8129 title=[[User:Ævar Arnfjörð Bjarmason]]
8133 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8138 Magic Word: {{SUBJECTPAGENAME}}
8140 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8144 <p>User:Ævar Arnfjörð Bjarmason
8149 Magic Word: {{SUBJECTPAGENAMEE}}
8151 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8153 {{SUBJECTPAGENAMEE}}
8155 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8160 Magic Word: {{NUMBEROFFILES}}
8169 Magic Word: {{PAGENAME}}
8171 title=[[User:Ævar Arnfjörð Bjarmason]]
8175 <p>Ævar Arnfjörð Bjarmason
8180 Magic Word: {{PAGENAME}} with metacharacters
8182 title=[['foo & bar = baz']]
8186 <p><i>'foo & bar = baz'</i>
8189 <p><i>'foo & bar = baz'</i></p>
8193 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
8195 title=[[*RFC 1234 http://example.com/]]
8199 <p>*RFC 1234 http://example.com/
8202 <p>*RFC 1234 http://example.com/</p>
8206 Magic Word: {{PAGENAMEE}}
8208 title=[[User:Ævar Arnfjörð Bjarmason]]
8212 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8217 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
8219 title=[[*RFC 1234 http://example.com/]]
8223 <p>*RFC_1234_http://example.com/
8226 <p>*RFC_1234_http://example.com/</p>
8230 Magic Word: {{REVISIONID}}
8239 Magic Word: {{SCRIPTPATH}}
8248 Magic Word: {{STYLEPATH}}
8257 Magic Word: {{SERVER}}
8261 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
8266 Magic Word: {{SERVERNAME}}
8275 Magic Word: {{SITENAME}}
8284 Case-sensitive magic words, when cased differently, should just be template transclusions
8291 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
8292 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
8293 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
8294 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
8299 Case-insensitive magic words should still work with weird casing.
8309 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
8314 Namespace 1 {{ns:1}}
8323 Namespace 1 {{ns:01}}
8332 Namespace 0 {{ns:0}} (bug 4783)
8340 Namespace 0 {{ns:00}} (bug 4783)
8348 Namespace -1 {{ns:-1}}
8357 Namespace User {{ns:User}}
8366 Namespace User talk {{ns:User_talk}}
8375 Namespace User talk {{ns:uSeR tAlK}}
8384 Namespace File {{ns:File}}
8393 Namespace File {{ns:Image}}
8402 Namespace (lang=de) Benutzer {{ns:User}}
8413 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
8419 <p>Benutzer Diskussion
8427 {{urlencode:hi world?!}}
8428 {{urlencode:hi world?!|WIKI}}
8429 {{urlencode:hi world?!|PATH}}
8430 {{urlencode:hi world?!|QUERY}}
8440 Magic Word: prioritize type info over data-parsoid
8446 <meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__"}'/>
8450 Magic Word: serialize on separate line (parsoid)
8452 parsoid=wt2wt,html2wt
8458 foo<meta property="mw:PageProp/notoc"/>bar
8462 Magic Word: rt non-english wikis
8469 <meta property="mw:PageProp/noeditsection" data-parsoid='{"src":"__NOEDITSECTION__","magicSrc":"__NOEDITSECTION__"}'/>
8476 Magic links: internal link to RFC (bug 479)
8480 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
8485 Magic links: RFC (bug 479)
8489 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
8494 Magic links: ISBN (bug 1937)
8498 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
8503 Magic links: PMID incorrectly converts space to underscore
8507 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
8516 Nonexistent template
8518 {{thistemplatedoesnotexist}}
8520 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
8525 Template with invalid target containing tags
8527 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
8529 <p>{{a<b>b</b>|foo|a=b|a = b}}
8534 Template with invalid target containing unclosed tag
8536 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
8538 <p>{{a<b>|foo|a=b|a = b}}</b>
8543 Template with invalid target containing wikilink
8547 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
8550 <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>
8556 This is a test template
8564 <p>This is a test template
8569 Template with explicit namespace
8573 <p>This is a test template
8581 This is a test template with parameter {{{param}}}
8587 {{paramtest|param=foo}}
8589 <p>This is a test template with parameter foo
8594 Template:paramtestnum
8600 Template unnamed parameter
8602 {{paramtestnum|Main Page|the main page}}
8604 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
8609 Template:templatesimple
8615 Template:templateredirect
8617 #redirect [[Template:templatesimple]]
8621 Template:templateasargtestnum
8627 Template:templateasargtest
8629 {{template{{{templ}}}}}
8633 Template:templateasargtest2
8639 Template with template name as unnamed argument
8641 {{templateasargtestnum|templatesimple}}
8648 Template with template name as argument
8650 {{templateasargtest|templ=simple}}
8657 Template with template name as argument (2)
8659 {{templateasargtest2|templ=templatesimple}}
8666 Template:templateasargtestdefault
8668 {{{{{templ|templatesimple}}}}}
8678 Template with default value
8680 {{templateasargtestdefault}}
8687 Template with default value (value set)
8689 {{templateasargtestdefault|templ=templa}}
8698 {{templateredirect}}
8705 Template with argument in separate line
8707 {{ templateasargtest |
8715 Template with complex template as argument
8718 param ={{ templateasargtest |
8721 <p>This is a test template with parameter (test)
8726 Template with thumb image (with link in description)
8729 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
8731 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>
8734 <p>This is a test template with parameter</p>
8735 <div class="thumb tright">
8736 <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>
8737 <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>
8743 Template:complextemplate
8745 {{{1}}} {{paramtest|
8746 param ={{{param}}}}}
8750 Template with complex arguments
8753 param ={{ templateasargtest |
8754 templ = simple }}|[[Template:complextemplate|link]]}}
8756 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
8761 BUG 553: link with two variables in a piped link
8764 |[[{{{1}}}|{{{2}}}]]
8769 <td>[[{{{1}}}|{{{2}}}]]
8775 Magic variable as template parameter
8777 {{paramtest|param={{SITENAME}}}}
8779 <p>This is a test template with parameter MediaWiki
8786 [[{{{param}}}|link]]
8790 Template parameter as link source
8792 {{linktest|param=Main Page}}
8794 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
8799 Template-generated attribute string (k='v')
8801 <span {{attr_str|id|v1}}>bar</span>
8803 <p><span id="v1">bar</span>
8810 including another template, {{paramtest|param={{{arg}}}}}
8814 Template passing argument to another template
8816 {{paramtest2|arg='hmm'}}
8818 <p>including another template, This is a test template with parameter 'hmm'
8829 Template as link source
8833 [[{{linktest2}}|Main Page]]
8835 [[{{linktest2}}]]Page
8837 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8838 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8839 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
8857 Template infinite loop
8861 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
8866 Template from main namespace
8885 BUG 529: Template with table, not included at beginning of line
8904 BUG 523: Template shouldn't eat newline (or add an extra one before table)
8924 BUG 41: Template parameters shown as broken links
8933 Template with targets containing wikilinks
8937 {{[[{{echo|foo}}]]}}
8939 {{{{echo|[[foo}}]]}}
8941 <p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
8942 </p><p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
8950 ''None'' of '''this''' should be
8952 but rather passed unmodified
8959 # hmm, fix this or just deprecate msgnw and document its behavior?
8963 {{msgnw:MSGNW test}}
8965 <p>''None'' of '''this''' should be
8967  but rather passed unmodified
8968 {{test}}
8978 {{int:youhavenewmessages|lots of money|not!}}
8980 <p>You have lots of money (not!).
8987 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8991 <includeonly> and <noinclude> being included
9002 <onlyinclude>Foo</onlyinclude>bar
9006 <onlyinclude> being included
9018 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
9022 <onlyinclude> and <includeonly> being included
9031 <includeonly> and <noinclude> on a page
9033 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9040 Un-closed <noinclude>
9047 <onlyinclude> on a page
9049 <onlyinclude>Foo</onlyinclude>bar
9056 Un-closed <onlyinclude>
9063 Self-closed noinclude, includeonly, onlyinclude tags
9074 Unbalanced includeonly and noinclude tags
9078 |b</noinclude></noinclude>
9079 |c</noinclude></includeonly>
9080 |d</includeonly></includeonly>
9089 <td>c</includeonly>
9091 <td>d</includeonly></includeonly>
9097 Template:Includeonly section
9100 ==Includeonly section==
9106 Bug 6563: Edit link generation for section shown by <includeonly>
9108 {{includeonly section}}
9110 <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>
9111 <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>
9115 # Uses same input as the contents of [[Template:Includeonly section]]
9117 Bug 6563: Section extraction for section shown by <includeonly>
9122 ==Includeonly section==
9130 Bug 6563: Edit link generation for section suppressed by <includeonly>
9133 ==Includeonly section==
9137 <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>
9142 Bug 6563: Section extraction for section suppressed by <includeonly>
9147 ==Includeonly section==
9155 Un-closed <includeonly>
9162 Includes and comments at SOL
9164 <!-- comment --><noinclude><!-- comment --></noinclude><!-- comment -->== hu ==
9171 <includeonly>can have stuff</includeonly>=== here ===
9174 <h2><span class="mw-headline" id="hu">hu</span></h2>
9179 <h3><span class="mw-headline" id="here">here</span></h3>
9182 <!-- comment --><meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/><!-- comment --><meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/><!-- comment -->
9183 <h2 data-parsoid='{}'> hu </h2>
9185 <meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/>
9187 <p data-parsoid='{}'>some</p>
9188 <meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/>
9189 <ul data-parsoid='{}'>
9190 <li data-parsoid='{}'> stuff</li>
9192 <li data-parsoid='{}'> here</li></ul>
9194 <h3 data-parsoid='{}'> here </h3>
9197 # TODO: test with DOM fragment reuse!
9199 Parsoid: DOM fragment reuse
9201 parsoid=wt2wt,wt2html
9203 a{{echo|b<table></table>c}}d
9215 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
9216 <table></table>c"}},"i":0}}]}'>b</span>
9217 <table about="#mwt1"></table><span about="#mwt1">c</span>d
9220 <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">
9222 <table about="#mwt2"></table><span about="#mwt2">
9224 <p about="#mwt2">cd</p>
9227 <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">
9230 <table about="#mwt3"></table><span about="#mwt3">
9233 <p about="#mwt3">b</p>
9237 Parsoid: Merge double tds (bug 50603)
9246 <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>
9251 Parsoid: Merge double tds in nested transclusion content (bug 50603)
9261 <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}}]}'>
9263 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
9269 ### <includeonly> and <noinclude> in attributes
9272 0. includeonly around the entire attribute
9274 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
9276 <p><span id="v2">bar</span>
9281 1. includeonly in html attr key
9283 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
9285 <p><span id="foo">bar</span>
9290 2. includeonly in html attr value
9292 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
9293 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
9295 <p><span id="v1">bar</span>
9296 <span id="v1">bar</span>
9301 3. includeonly in part of an attr value
9303 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
9305 <p><span style="color:red;">bar</span>
9310 4. includeonly in table attributes
9334 ### Token Stream Patcher tests
9336 ### These tests won't always pass wt2wt and other modes because
9337 ### on serialization, the table will be output on a new line.
9338 ### For now, we are blacklisting them, and using this to test selser.
9342 1. Table tag in SOL posn. should get reparsed correctly with valid TSR
9344 parsoid=wt2html,wt2wt
9346 {{echo|}}{| width = '100%'
9350 <span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":""}},"i":0}}]}'></span>
9351 <table width="100%">
9354 <td>foo</td></tr></tbody></table>
9358 2. Table tag in SOL posn. should get reparsed correctly with valid TSR
9360 parsoid=wt2html,wt2wt
9362 <includeonly>a</includeonly>{| {{{b}}}
9366 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>a</includeonly>"'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><table about="#mwt2" typeof="mw:ExpandedAttrs" data-mw='{"attribs":[[{"txt":"{{{b}}}","html":"<span about=\"#mwt1\" typeof=\"mw:Param\" data-parsoid=\"{&quot;dsr&quot;:[31,38,null,null],&quot;src&quot;:&quot;{{{b}}}&quot;}\">{{{b}}}</span>"},{"html":""}]]}' data-parsoid='{"a":{"{{{b}}}":null},"sa":{"{{{b}}}":""}}'>
9367 <tbody><tr><td>c</td></tr>
9373 ### Testing parsing of templates where a template arg
9374 ### has the same name as the template itself.
9384 Templates: Template Name/Arg clash: 1. Use of positional param
9393 Templates: Template Name/Arg clash: 2. Use of named param
9402 Templates: Template Name/Arg clash: 3. Use of named param with empty input
9411 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
9415 Templates: 1. Simple use
9424 Templates: 2. Inside a block tag
9426 <div>{{echo|Foo}}</div>
9427 <blockquote>{{echo|Foo}}</blockquote>
9430 <blockquote>Foo</blockquote>
9440 Templates: P-wrapping: 1a. Templates on consecutive lines
9451 Templates: P-wrapping: 1b. Templates on consecutive lines
9465 Templates: P-wrapping: 1c. Templates on consecutive lines
9468 {{echo|bar}} <div>baz</div>
9481 Templates: P-wrapping: 1d. Template preceded by comment-only line
9490 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
9494 Templates: Inline Text: 1. Multiple template uses
9496 {{echo|Foo}}bar{{echo|baz}}
9503 Templates: Inline Text: 2. Back-to-back template uses
9505 {{echo|Foo}}{{echo|bar}}
9512 Templates: Block Tags: 1. Multiple template uses
9514 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
9516 <div>Foo</div><div>bar</div><div>baz</div>
9521 Templates: Block Tags: 2. Back-to-back template uses
9523 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
9525 <div>Foo</div><div>bar</div>
9530 Templates: Links: 1. Simple example
9532 {{echo|[[Foo|bar]]}}
9534 <p><a href="/wiki/Foo" title="Foo">bar</a>
9539 Templates: Links: 2. Generation of link href
9541 [[{{echo|Foo}}|bar]]
9543 <p><a href="/wiki/Foo" title="Foo">bar</a>
9548 Templates: Links: 3. Generation of part of a link href
9550 [[Fo{{echo|o}}|bar]]
9554 [[Foo{{echo|bar}}baz]]
9556 [[Foo{{echo|bar}}|bar]]
9558 [[:Foo{{echo|bar}}]]
9560 [[:Foo{{echo|bar}}|bar]]
9562 <p><a href="/wiki/Foo" title="Foo">bar</a>
9563 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
9564 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
9565 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
9566 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
9567 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
9572 Templates: Links: 4. Multiple templates generating link href
9574 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
9576 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
9581 Templates: Links: 5. Generation of link text
9583 [[Foo|{{echo|bar}}]]
9585 <p><a href="/wiki/Foo" title="Foo">bar</a>
9590 Templates: Links: 5. Nested templates (only outermost template should be marked)
9592 {{echo|[[{{echo|Foo}}|bar]]}}
9594 <p><a href="/wiki/Foo" title="Foo">bar</a>
9599 Templates: HTML Tag: 1. Generation of HTML attr. key
9601 <div {{echo|style}}="color:red;">foo</div>
9603 <div style="color:red;">foo</div>
9608 Templates: HTML Tag: 2. Generation of HTML attr. value
9610 <div style={{echo|'color:red;'}}>foo</div>
9612 <div style="color:red;">foo</div>
9617 Templates: HTML Tag: 3. Generation of HTML attr key and value
9619 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
9621 <div style="color:red;">foo</div>
9626 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
9628 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
9630 <div title="This is a long title with just one piece templated">foo</div>
9635 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
9637 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
9639 <div title="This is a long title with just one piece templated">foo</div>
9644 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
9646 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
9648 <div title="This is a long title with just one piece templated">foo</div>
9653 Templates: HTML Tag: 7. Generation of partial attribute key string
9655 <div st{{echo|yle}}="color:red;">foo</div>
9657 <div style="color:red;">foo</div>
9662 Templates: HTML Tables: 1. Generating start of a HTML table
9664 {{echo|<table><tr><td>foo</td>}}</tr></table>
9666 <table><tr><td>foo</td></tr></table>
9671 Templates: HTML Tables: 2a. Generating middle of a HTML table
9673 <table><tr>{{echo|<td>foo</td>}}</tr></table>
9675 <table><tr><td>foo</td></tr></table>
9680 Templates: HTML Tables: 2b. Generating middle of a HTML table
9682 <table>{{echo|<tr><td>foo</td></tr>}}</table>
9684 <table><tr><td>foo</td></tr></table>
9689 Templates: HTML Tables: 3. Generating end of a HTML table
9691 <table><tr>{{echo|<td>foo</td></tr></table>}}
9693 <table><tr><td>foo</td></tr></table>
9698 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
9700 {{echo|<table>}}<tr><td>foo</td></tr></table>
9702 <table><tr><td>foo</td></tr></table>
9707 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
9709 <table>{{echo|<tr>}}<td>foo</td></tr></table>
9711 <table><tr><td>foo</td></tr></table>
9716 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
9718 <table><tr>{{echo|<td>}}foo</td></tr></table>
9720 <table><tr><td>foo</td></tr></table>
9725 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
9727 <table><tr><td>foo{{echo|</td>}}</tr></table>
9729 <table><tr><td>foo</td></tr></table>
9734 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
9736 <table><tr><td>foo</td>{{echo|</tr>}}</table>
9738 <table><tr><td>foo</td></tr></table>
9743 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
9745 <table><tr><td>foo</td></tr>{{echo|</table>}}
9747 <table><tr><td>foo</td></tr></table>
9752 Templates: HTML Tables: 5. Proper fostering of categories from inside
9754 parsoid=wt2html,wt2wt
9756 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
9757 <!--Two categories (Bug 50330)-->
9758 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
9760 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
9761 <!--Two categories (Bug 50330)-->
9762 <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>
9766 Templates: Wiki Tables: 1a. Fostering of entire template content
9774 <tr><td></td></tr></table>
9786 Templates: Wiki Tables: 1b. Fostering of entire template content
9799 <tr><td></td></tr></table>
9813 Templates: Wiki Tables: 2. Fostering of partial template content
9823 <tr><td></td></tr></table>
9836 Templates: Wiki Tables: 3. td-content via multiple templates
9839 {{echo|{{pipe}}a}}{{echo|b}}
9850 Templates: Wiki Tables: 4. Templated tags, no content
9856 <tr><td></td></tr></table>
9861 Templates: Wiki Tables: 5. Templated tags, regular td-tags
9875 Templates: Wiki Tables: 6. Templated tags, templated td-tags
9889 Templates: Lists: Multi-line list-items via templates
9891 *{{echo|a {{nonexistent|
9893 *{{echo|b {{nonexistent|
9896 <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>
9897 <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>
9902 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
9904 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
9906 <p><i>ab</i>c<i>d</i>e
9911 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
9912 (PHP parser generates misnested html)
9914 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
9916 <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>
9920 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
9921 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
9923 parsoid=wt2html,wt2wt
9925 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
9927 <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>
9928 <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>
9929 <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>
9933 Templates: Ugly nesting: 4. Divs opened/closed across templates
9935 a<div>b{{echo|c</div>d}}e
9946 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
9952 |{{echo|foo</table>}}
9956 <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|}"]}'>
9960 <td>foo</td></tr></tbody></table><span about="#mwt1">
9961 </span><span about="#mwt1">|bar</span><span about="#mwt1">
9966 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
9976 <td>1. {{echo|foo </table>}}</td>
9978 <td>2. {{echo|baz </table>}}</td>
9991 <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>"]}'>
9996 <td>1. foo </td></tr></tbody></table></td>
9998 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
9999 </span><span about="#mwt2">
10000 </span><span about="#mwt2">
10001 </span><span about="#mwt2">abc</span><span about="#mwt2">
10002 </span><span about="#mwt2">
10003 </span><span about="#mwt2">
10004 </span><span about="#mwt2">
10005 </span><span about="#mwt2">
10006 </span><span about="#mwt2">
10007 </span><span about="#mwt2">xyz</span><span about="#mwt2">
10008 </span><span about="#mwt2">
10013 Templates: Ugly templates: 3. newline-only template parameter
10022 # This looks like a bug: a single newline triggers p/br for some reason.
10024 Templates: Ugly templates: 4. newline-only template parameter inconsistency
10033 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges that
10034 # have a true overlap (T1-start - T2-start - T1-end - T2-end).
10036 Templates: Ugly templates: 5. Template encapsulation test: Non-trivial overlap of template ranges is properly handled
10042 <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
10043 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
10047 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges
10048 # that are "identical" and generate nesting cycles in the algorithm
10050 Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of template ranges is properly handled
10052 {{echo|<table><tr><td><table>}}
10056 <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"}'>
10057 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
10058 </table></td></tr></tbody></table>
10062 Parser Functions: 1. Simple example
10071 Parser Functions: 2. Nested use (only outermost should be marked up)
10080 ### Pre-save transform tests
10083 pre-save transform: subst:
10089 This is a test template
10093 pre-save transform: normal template
10103 pre-save transform: nonexistent template
10107 {{thistemplatedoesnotexist}}
10109 {{thistemplatedoesnotexist}}
10114 pre-save transform: subst magic variables
10123 # This is bug 89, which I fixed. -- wtm
10125 pre-save transform: subst: templates with parameters
10129 {{subst:paramtest|param="something else"}}
10131 This is a test template with parameter "something else"
10135 Template:nowikitest
10137 <nowiki>'''not wiki'''</nowiki>
10141 pre-save transform: nowiki in subst (bug 1188)
10145 {{subst:nowikitest}}
10147 <nowiki>'''not wiki'''</nowiki>
10152 Template:commenttest
10154 This template has <!-- a comment --> in it.
10158 pre-save transform: comment in subst (bug 1936)
10162 {{subst:commenttest}}
10164 This template has <!-- a comment --> in it.
10168 pre-save transform: unclosed tag
10172 <nowiki>'''not wiki'''
10174 <nowiki>'''not wiki'''
10178 pre-save transform: mixed tag case
10182 <NOwiki>'''not wiki'''</noWIKI>
10184 <NOwiki>'''not wiki'''</noWIKI>
10188 pre-save transform: unclosed comment in <nowiki>
10192 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
10194 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
10197 # Leading @ in this template definition works around a limitation
10198 # in parsoid's parserTests which otherwise strips the <span> from the
10199 # result (confusing it for a template wrapper)
10203 @<span onmouseover="alert('crap')">Oh no</span>
10207 (confirming safety of fix for subst bug 1936)
10209 {{Template:dangerous}}
10211 <p>@<span>Oh no</span>
10216 pre-save transform: comment containing gallery (bug 5024)
10220 <!-- <gallery>data</gallery> -->
10222 <!-- <gallery>data</gallery> -->
10226 pre-save transform: comment containing extension
10230 <!-- <tag>data</tag> -->
10232 <!-- <tag>data</tag> -->
10236 pre-save transform: comment containing nowiki
10240 <!-- <nowiki>data</nowiki> -->
10242 <!-- <nowiki>data</nowiki> -->
10246 pre-save transform: <noinclude> in subst (bug 3298)
10256 pre-save transform: <onlyinclude> in subst (bug 3298)
10260 {{subst:Includes2}}
10268 {{<includeonly>subst:</includeonly>Includes}}
10272 Template:SafeSubstTest
10274 {{<includeonly>safesubst:</includeonly>Includes}}
10278 bug 22297: safesubst: works during PST
10282 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
10288 bug 22297: safesubst: works during normal parse
10297 subst: does not work during normal parse
10301 <p>{{subst:Includes}}
10306 pre-save transform: context links ("pipe trick")
10310 [[Article (context)|]]
10313 [[Bar:Article (context)|]]
10314 [[:Bar:Article (context)|]]
10316 [[|Article (context)]]
10320 [[Article (context)|Article]]
10321 [[Bar:Article|Article]]
10322 [[:Bar:Article|Article]]
10323 [[Bar:Article (context)|Article]]
10324 [[:Bar:Article (context)|Article]]
10326 [[Article (context)]]
10327 [[Bar:X (Y) Z|X (Y) Z]]
10328 [[:Bar:X (Y) Z|X (Y) Z]]
10332 pre-save transform: context links ("pipe trick") with interwiki prefix
10336 [[interwiki:Article|]]
10337 [[:interwiki:Article|]]
10338 [[interwiki:Bar:Article|]]
10339 [[:interwiki:Bar:Article|]]
10341 [[interwiki:Article|Article]]
10342 [[:interwiki:Article|Article]]
10343 [[interwiki:Bar:Article|Bar:Article]]
10344 [[:interwiki:Bar:Article|Bar:Article]]
10348 pre-save transform: context links ("pipe trick") with parens in title
10350 pst title=[[Somearticle (context)]]
10354 [[Article (context)|Article]]
10358 pre-save transform: context links ("pipe trick") with comma in title
10360 pst title=[[Someplace, Somewhere]]
10363 [[Otherplace, Elsewhere|]]
10364 [[Otherplace, Elsewhere, Anywhere|]]
10366 [[Otherplace, Somewhere|Otherplace]]
10367 [[Otherplace, Elsewhere|Otherplace]]
10368 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
10372 pre-save transform: context links ("pipe trick") with parens and comma
10374 pst title=[[Someplace (IGNORED), Somewhere]]
10377 [[Otherplace (place), Elsewhere|]]
10379 [[Otherplace, Somewhere|Otherplace]]
10380 [[Otherplace (place), Elsewhere|Otherplace]]
10384 pre-save transform: context links ("pipe trick") with comma and parens
10386 pst title=[[Who, me? (context)]]
10389 [[Me, Myself, and I (1937 song)|]]
10391 [[Yes, you. (context)|Yes, you.]]
10392 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
10396 pre-save transform: context links ("pipe trick") with namespace
10398 pst title=[[Ns:Somearticle]]
10402 [[Ns:Article|Article]]
10406 pre-save transform: context links ("pipe trick") with namespace and parens
10408 pst title=[[Ns:Somearticle (context)]]
10412 [[Ns:Article (context)|Article]]
10416 pre-save transform: context links ("pipe trick") with namespace and comma
10418 pst title=[[Ns:Somearticle, Context, Whatever]]
10422 [[Ns:Article, Context, Whatever|Article]]
10426 pre-save transform: context links ("pipe trick") with namespace, comma and parens
10428 pst title=[[Ns:Somearticle, Context (context)]]
10432 [[Ns:Article (context)|Article]]
10436 pre-save transform: context links ("pipe trick") with namespace, parens and comma
10438 pst title=[[Ns:Somearticle (IGNORED), Context]]
10442 [[Ns:Article, Context|Article]]
10446 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
10450 [[Article(context)|]]
10451 [[Bar:Article(context)|]]
10452 [[:Bar:Article(context)|]]
10453 [[|Article(context)]]
10457 [[Article(context)|Article]]
10458 [[Bar:Article(context)|Article]]
10459 [[:Bar:Article(context)|Article]]
10460 [[Article(context)]]
10461 [[Bar:X(Y)Z|X(Y)Z]]
10462 [[:Bar:X(Y)Z|X(Y)Z]]
10466 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
10470 [[Article (context)|]]
10471 [[Bar:Article (context)|]]
10472 [[:Bar:Article (context)|]]
10473 [[|Article (context)]]
10477 [[Article (context)|Article]]
10478 [[Bar:Article (context)|Article]]
10479 [[:Bar:Article (context)|Article]]
10480 [[Article (context)]]
10481 [[Bar:X (Y) Z|X (Y) Z]]
10482 [[:Bar:X (Y) Z|X (Y) Z]]
10486 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
10490 [[Article(context)|]]
10491 [[Bar:Article(context)|]]
10492 [[:Bar:Article(context)|]]
10493 [[|Article(context)]]
10497 [[Article(context)|Article]]
10498 [[Bar:Article(context)|Article]]
10499 [[:Bar:Article(context)|Article]]
10500 [[Article(context)]]
10501 [[Bar:X(Y)Z|X(Y)Z]]
10502 [[:Bar:X(Y)Z|X(Y)Z]]
10506 pre-save transform: context links ("pipe trick") with commas (bug 21660)
10510 [[Article (context), context|]]
10511 [[Article (context),context|]]
10512 [[Bar:Article (context), context|]]
10513 [[Bar:Article (context),context|]]
10514 [[:Bar:Article (context), context|]]
10515 [[:Bar:Article (context),context|]]
10517 [[Article (context), context|Article]]
10518 [[Article (context),context|Article]]
10519 [[Bar:Article (context), context|Article]]
10520 [[Bar:Article (context),context|Article]]
10521 [[:Bar:Article (context), context|Article]]
10522 [[:Bar:Article (context),context|Article]]
10526 pre-save transform: trim trailing empty lines
10530 Empty lines are trimmed
10536 Empty lines are trimmed
10540 pre-save transform: Signature expansion
10545 * <noinclude>~~~</noinclude>
10546 * <includeonly>~~~</includeonly>
10547 * <onlyinclude>~~~</onlyinclude>
10549 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
10550 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
10551 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
10552 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
10557 pre-save transform: Signature expansion in nowiki tags (bug 93)
10563 <nowiki>~~~~</nowiki>
10565 <includeonly><nowiki>~~~~</nowiki></includeonly>
10567 <noinclude><nowiki>~~~~</nowiki></noinclude>
10569 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
10571 {{subst:Foo}} shall be converted to FOO
10573 As well as inside noinclude/onlyinclude
10574 <noinclude>{{subst:Foo}}</noinclude>
10575 <onlyinclude>{{subst:Foo}}</onlyinclude>
10577 But not inside includeonly
10578 <includeonly>{{subst:Foo}}</includeonly>
10582 <nowiki>~~~~</nowiki>
10584 <includeonly><nowiki>~~~~</nowiki></includeonly>
10586 <noinclude><nowiki>~~~~</nowiki></noinclude>
10588 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
10590 FOO shall be converted to FOO
10592 As well as inside noinclude/onlyinclude
10593 <noinclude>FOO</noinclude>
10594 <onlyinclude>FOO</onlyinclude>
10596 But not inside includeonly
10597 <includeonly>{{subst:Foo}}</includeonly>
10601 Parsoid: Recognize nowiki with trailing space in tags
10605 <nowiki ><div>[[foo]]</nowiki >
10613 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
10620 Parsoid: Recognize nowiki with odd capitalization
10624 <noWikI ><div>[[foo]]</Nowiki >
10626 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
10631 Parsoid: Escape nowiki with trailing space in tags
10635 <nowiki > foo </nowiki >
10641 <p><nowiki > foo </nowiki ></p>
10642 <p>a<nowiki />b</p>
10643 <p>c<nowiki/ >d</p>
10647 Parsoid: Escape weird noWikI capitalizations
10651 <noWikI > foo </NoWikI >
10653 <p><noWikI > foo </NoWikI ></p>
10657 ### Message transform tests
10660 message transform: magic variables
10670 message transform: should not transform wiki markup
10680 message transform: <noinclude> in transcluded template (bug 4926)
10690 message transform: <onlyinclude> in transcluded template (bug 4926)
10700 {{#special:}} page name, known
10704 {{#special:Recentchanges}}
10706 Special:RecentChanges
10710 {{#special:}} page name with subpage, known
10714 {{#special:Recentchanges/param}}
10716 Special:RecentChanges/param
10720 {{#special:}} page name, unknown
10724 {{#special:foobar nonexistent}}
10726 Special:Foobar nonexistent
10730 {{#speciale:}} page name, known
10734 {{#speciale:Recentchanges}}
10736 Special:RecentChanges
10740 {{#speciale:}} page name with subpage, known
10744 {{#speciale:Recentchanges/param}}
10746 Special:RecentChanges/param
10750 {{#speciale:}} page name, unknown
10754 {{#speciale:foobar nonexistent}}
10756 Special:Foobar_nonexistent
10762 ### For Parsoid-specific tests, see
10763 #### https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10768 parsoid=wt2html,wt2wt,html2html
10770 [[Image:foobar.jpg]]
10772 <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>
10775 <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>
10780 Simple image (using File: namespace, now canonical)
10782 [[File:Foobar.jpg]]
10784 <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>
10787 <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>
10792 Right-aligned image
10794 [[File:Foobar.jpg|right]]
10796 <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>
10799 <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>
10805 [[File:Foobar.jpg|right|Caption text]]
10807 <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>
10810 <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>
10814 Image with caption, bug 53312 #1
10816 [[File:Foobar.jpg|right|Caption page stuff]]
10818 <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>
10821 <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>
10825 Image with caption, bug 53312 #2
10827 [[File:Foobar.jpg|right|Caption page=]]
10829 <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>
10832 <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>
10836 Image with caption, bug 53312 #3
10838 [[File:Foobar.jpg|right|Caption page=stuff]]
10840 <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>
10843 <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>
10847 Allow empty links in image captions (Bug 60753)
10851 [[File:Foobar.jpg|thumb|Caption [[Link1]]
10856 <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>
10859 <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>
10861 <a rel="mw:WikiLink" href="./Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"},"dsr":[47,56,2,2]}'>Link2</a>
10862 </figcaption></figure>
10866 Link with empty target
10875 Image with empty attribute
10877 parsoid=wt2html,wt2wt,html2html
10879 [[File:Foobar.jpg|right||Caption text]]
10881 <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>
10884 <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>
10888 1. Block image with individual attributes from templates
10890 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
10892 <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>
10895 <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>
10899 2. Block Image with individual attributes from templates
10901 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
10903 <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>
10906 <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>
10910 3. Inline image with individual attributes from templates
10912 [[File:Foobar.jpg|{{echo|50px}}]]
10914 <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>
10917 <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>
10920 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
10921 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
10923 Image with multiple attributes from the same template
10925 [[File:Foobar.jpg|{{image_attribs}}]]
10927 <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>
10930 <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>
10933 # Parsoid's output here is broken (incorrect p-wrapping); see bug 64901.
10935 Image with link tails
10939 123[[File:Foobar.jpg]]456
10940 123[[File:Foobar.jpg|right]]456
10941 123[[File:Foobar.jpg|thumb]]456
10943 <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
10945 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
10946 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
10949 <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</p>
10951 <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>
10953 <div class="thumb tright">
10954 <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>
10955 <div class="thumbcaption">
10956 <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>
10962 <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>
10963 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
10964 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
10968 Image with multiple captions -- only last one is accepted
10970 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
10972 <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>
10975 <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>
10979 Image with multiple widths -- use last
10981 [[File:Foobar.jpg|200px|300px|caption]]
10983 <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>
10986 <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>
10990 Image with multiple alignments -- use first (bug 48664)
10994 [[File:Foobar.jpg|thumb|left|right|center|caption]]
10996 [[File:Foobar.jpg|middle|text-top|caption]]
10998 <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>
10999 <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>
11002 <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>
11003 <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>
11007 Image with width attribute at different positions
11009 [[File:Foobar.jpg|200px|right|Caption]]
11010 [[File:Foobar.jpg|right|200px|Caption]]
11011 [[File:Foobar.jpg|right|Caption|200px]]
11013 <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>
11014 <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>
11015 <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>
11018 <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>
11019 <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>
11020 <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>
11023 # a sad bit of backward-compatibility
11025 Image with size specified with pxpx (bug 13500, 51628)
11027 parsoid=wt2html,wt2wt,html2html
11029 [[File:Foobar.jpg|20pxpx]]
11030 [[File:Foobar.jpg|200x20pxpx]]
11032 <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>
11033 <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>
11036 <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>
11040 Image with link parameter, wiki target
11042 [[File:Foobar.jpg|link=Main Page]]
11044 <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>
11047 <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>
11050 # parsoid bug 49293 (part 1)
11052 Image with link parameter, URL target
11054 [[File:Foobar.jpg|link=http://example.com/]]
11056 <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>
11059 <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>
11062 # parsoid bug 49293 (part 2)
11064 Image with link parameter, protocol-less URL target
11066 [[File:Foobar.jpg|link=//example.com/]]
11068 <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>
11071 <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>
11075 Image with link parameter, wgExternalLinkTarget
11077 [[Image:foobar.jpg|link=http://example.com/]]
11079 wgExternalLinkTarget='foobar'
11081 <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>
11086 Image with link parameter, wgNoFollowLinks set to false
11088 [[Image:foobar.jpg|link=http://example.com/]]
11090 wgNoFollowLinks=false
11092 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
11097 Image with link parameter, wgNoFollowDomainExceptions
11099 [[Image:foobar.jpg|link=http://example.com/]]
11101 wgNoFollowDomainExceptions='example.com'
11103 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
11108 Image with link parameter, wgExternalLinkTarget, unnamed parameter
11110 [[Image:foobar.jpg|link=http://example.com/|Title]]
11112 wgExternalLinkTarget='foobar'
11114 <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>
11119 Image with empty link parameter
11121 [[File:Foobar.jpg|link=]]
11123 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
11126 <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>
11130 Image with link parameter (wiki target) and unnamed parameter
11132 [[File:Foobar.jpg|link=Main_Page|Title]]
11134 <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>
11137 <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>
11141 Image with link parameter (URL target) and unnamed parameter
11143 [[File:Foobar.jpg|link=http://example.com/|Title]]
11145 <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>
11148 <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>
11152 Thumbnail image with link parameter
11155 parsoid=wt2html,wt2wt,html2html
11157 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
11159 <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>
11162 <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>
11166 Manually-specified thumbnail image
11170 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
11172 <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>
11175 <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>
11179 Manually-specified thumbnail image with explicit link to wiki page
11182 parsoid=wt2html,wt2wt,html2html
11184 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
11186 <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>
11189 <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>
11193 Manually-specified thumbnail image with explicit link to url
11196 parsoid=wt2html,wt2wt,html2html
11198 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
11200 <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>
11203 <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>
11207 Manually-specified thumbnail image with explicit no link
11210 parsoid=wt2html,wt2wt,html2html
11212 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
11214 <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>
11217 <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>
11221 Manually-specified thumbnail image with explicit link and alt text
11224 parsoid=wt2html,wt2wt,html2html
11226 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
11228 <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>
11231 <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>
11235 Image with frame and link
11237 parsoid=wt2html,wt2wt,html2html
11239 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
11241 <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>
11244 <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>
11248 Image with frame and link and explicit alt
11250 parsoid=wt2html,wt2wt,html2html
11252 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
11254 <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>
11257 <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>
11261 Image with wiki markup in implicit alt
11263 parsoid=wt2html,wt2wt,html2html
11265 [[Image:Foobar.jpg|testing '''bold''' in alt]]
11267 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
11269 <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>
11270 </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>
11273 <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>
11274 <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>
11277 ###################
11278 # Conflicting image format options.
11279 # First option specified should 'win'.
11280 # All three cases in each test should be identical.
11283 Image with 'frameless' first.
11285 parsoid=wt2html,wt2wt,html2html
11287 [[File:Foobar.jpg|frameless|caption]]
11289 [[File:Foobar.jpg|frameless|frame|caption]]
11291 [[File:Foobar.jpg|frameless|thumb|caption]]
11293 <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>
11294 </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>
11295 </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>
11298 <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>
11299 <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>
11300 <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>
11304 Image with 'frame' first.
11306 parsoid=wt2html,wt2wt,html2html
11308 [[File:Foobar.jpg|frame|caption]]
11309 [[File:Foobar.jpg|frame|frameless|caption]]
11310 [[File:Foobar.jpg|frame|thumb|caption]]
11312 <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>
11313 <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>
11314 <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>
11317 <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>
11321 Image with 'thumb' first.
11323 parsoid=wt2html,wt2wt,html2html
11325 [[File:Foobar.jpg|thumb|caption]]
11326 [[File:Foobar.jpg|thumb|frameless|caption]]
11327 [[File:Foobar.jpg|thumb|frame|caption]]
11329 <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>
11330 <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>
11331 <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>
11334 <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>
11337 ###################
11339 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
11340 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
11341 # Foobar has actual size of 1941x220
11342 # 1. Thumbs & frameless always reduce, can't be enlarged unless it's
11343 # a scalable format.
11344 # 2. Framed images always ignore size options; always render at default size.
11345 # 3. "Unspecified format" and border are the only types which can be
11349 Image: "unspecified format" and border enlarge
11351 parsoid=wt2html,wt2wt,html2html
11353 [[File:Foobar.jpg|2000px]]
11355 [[File:Foobar.jpg|border|2000px]]
11357 <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>
11358 </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>
11361 <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>
11362 <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>
11366 Image: "unspecified format" and border reduce
11368 parsoid=wt2html,wt2wt,html2html
11370 [[File:Foobar.jpg|1000px]]
11372 [[File:Foobar.jpg|border|1000px]]
11374 <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>
11375 </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>
11378 <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>
11379 <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>
11383 Image: thumbs reduce
11385 parsoid=wt2html,wt2wt,html2html
11387 [[File:Foobar.jpg|thumb|50px]]
11389 <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>
11392 <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>
11396 Image: bitmap thumbs can't be enlarged past original size, but vector can.
11398 parsoid=wt2html,wt2wt,html2html
11400 [[File:Foobar.jpg|thumb|2000px]]
11402 [[File:Foobar.svg|thumb|2000px]]
11404 <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>
11405 <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>
11408 <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>
11409 <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>
11413 Image: frameless can reduce in size
11415 parsoid=wt2html,wt2wt,html2html
11417 [[File:Foobar.jpg|frameless|50px]]
11419 <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>
11422 <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>
11426 Image: bitmap frameless can't be enlarged past original size, but vector can
11428 parsoid=wt2html,wt2wt,html2html
11430 [[File:Foobar.jpg|frameless|2000px]]
11432 [[File:Foobar.svg|frameless|2000px]]
11434 <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>
11435 </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>
11438 <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>
11439 <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>
11443 Image: framed images are always unscaled.
11445 parsoid=wt2html,wt2wt,html2html
11447 [[File:Foobar.jpg|frame]]
11449 [[File:Foobar.jpg|frame|50px]]
11451 [[File:Foobar.jpg|frame|50x50px]]
11453 [[File:Foobar.jpg|frame|2000px]]
11455 <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>
11456 <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>
11457 <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>
11458 <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>
11461 <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>
11464 ###################
11467 Link to image page- image page normally doesn't exists, hence edit link
11468 Add test with existing image page
11469 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
11473 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
11478 bug 18784 Link to non-existent image page with caption should use caption as link text
11480 [[:Image:test|caption]]
11482 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
11487 Frameless image caption with a free URL
11489 [[File:Foobar.jpg|http://example.com]]
11491 <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>
11494 <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>
11498 Thumbnail image caption with a free URL
11502 [[File:Foobar.jpg|thumb|http://example.com]]
11504 <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>
11507 <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>
11511 Thumbnail image caption with a free URL and explicit alt
11514 parsoid=wt2html,wt2wt,html2html
11516 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
11518 <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>
11521 <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>
11525 SVG thumbnails with no language set
11528 [[File:Foobar.svg|thumb|caption]]
11530 <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>
11533 <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>
11537 SVG thumbnails with language de
11539 parsoid=wt2html,wt2wt,html2html
11541 [[File:Foobar.svg|thumb|caption|lang=de]]
11543 <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>
11546 <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>
11550 SVG thumbnails with invalid language code
11552 parsoid=wt2html,wt2wt,html2html
11554 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
11556 <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>
11559 <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>
11563 BUG 1887: A ISBN with a thumbnail
11565 [[File:Foobar.jpg|thumb|ISBN 1235467890]]
11567 <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>
11570 <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>
11574 BUG 1887: A RFC with a thumbnail
11576 [[File:Foobar.jpg|thumb|This is RFC 12354]]
11578 <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>
11581 <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>
11585 BUG 1887: A mailto link with a thumbnail
11587 [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]]
11589 <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>
11592 <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>
11595 # Pending resolution to bug 368
11597 BUG 648: Frameless image caption with a link
11599 [[File:Foobar.jpg|text with a [[link]] in it]]
11601 <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>
11604 <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>
11608 BUG 648: Frameless image caption with a link (suffix)
11610 [[File:Foobar.jpg|text with a [[link]]foo in it]]
11612 <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>
11615 <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>
11619 BUG 648: Frameless image caption with an interwiki link
11621 [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]
11623 <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>
11626 <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>
11630 BUG 648: Frameless image caption with a piped interwiki link
11632 [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
11634 <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>
11637 <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>
11641 Escape HTML special chars in image alt text
11643 [[File:Foobar.jpg|& < > "]]
11645 <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>
11648 <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>
11652 BUG 499: Alt text should have Ӓ, not &1234;
11654 [[File:Foobar.jpg|♀]]
11656 <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>
11659 <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>
11663 Broken image caption with link
11665 parsoid=wt2html,wt2wt,html2html
11667 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
11669 <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.
11672 <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>
11676 Image caption containing another image
11678 [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]]
11680 <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>
11683 <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>
11687 Image: caption containing a newline
11689 [[File:Foobar.jpg|This
11692 <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>
11695 <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>
11699 Image: caption containing leading space
11700 (The leading space should not trigger nowiki escaping in wt2wt mode)
11702 [[File:Foobar.jpg|thumb| bar]]
11704 <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>
11707 <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>
11711 Image: caption containing a table
11713 parsoid=wt2html,wt2wt,html2html
11715 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
11721 and some more text.]]
11723 <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>
11726 <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
11729 <tr><th>Foo </th><th>Bar</th></tr>
11732 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
11736 Bug 3090: External links other than http: in image captions
11738 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
11740 <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>
11743 <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>
11749 parsoid=wt2html,wt2wt,html2html
11751 [[Image:foobar.jpg|a|class=b]]
11753 <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>
11756 <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>
11760 Localized image handling (1).
11762 parsoid=wt2html,wt2wt,html2html
11765 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
11767 <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>
11770 <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>
11774 Localized image handling (2).
11777 parsoid=wt2html,wt2wt,html2html
11780 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
11782 <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>
11785 <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>
11789 "border", "frameless" and "class" attributes on an image.
11792 parsoid=wt2html,wt2wt,html2html
11794 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
11796 <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>
11799 <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>
11802 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
11804 Invalid image attributes (bug 62500)
11807 parsoid=wt2html,wt2wt,html2html
11809 [[File:Foobar.jpg|thumb|float|left|caption]]
11811 [[File:Foobar.jpg|thumb|righ|caption]]
11813 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
11815 <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>
11816 <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>
11817 <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>
11820 <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>
11826 #REDIRECT [[File:Barfoo.jpg]]
11832 [[Image:Barfoo.jpg]]
11834 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
11839 Missing image with uploads disabled
11843 [[Image:Foobaz.jpg]]
11845 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
11849 # Parsoid-specific testing for images
11850 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
11851 # Currently imperfect due to a flaw in the Parsoid testrunner
11853 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
11857 Parsoid-specific image handling - simple image with size and middle alignment
11859 [[File:Foobar.jpg|middle|50px]]
11861 <p><span class="mw-valign-middle" typeof="mw:Image">
11862 <a href="File:Foobar.jpg">
11863 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11870 Parsoid-specific image handling - simple image with size, middle alignment,
11871 non-standard namespace alias
11873 parsoid=wt2wt,wt2html,html2html
11875 [[Image:Foobar.jpg|middle|50px]]
11877 <p><span class="mw-valign-middle" typeof="mw:Image">
11878 <a href="File:Foobar.jpg">
11879 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11886 Parsoid-specific image handling - simple image with size and middle alignment
11889 [[File:Foobar.jpg|50px|middle]]
11891 <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>
11895 Parsoid-specific image handling - simple image with size and middle alignment
11896 and non-standard namespace name
11898 parsoid=wt2html,wt2wt,html2html
11900 [[Image:Foobar.jpg|50px|middle]]
11902 <p><span class="mw-valign-middle" typeof="mw:Image">
11903 <a href="File:Foobar.jpg">
11904 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11911 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
11913 [[File:Foobar.jpg|500x10px|baseline|caption]]
11915 <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>
11919 Parsoid-specific image handling - simple image with border and size spec
11921 [[File:Foobar.jpg|50px|border|caption]]
11923 <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>
11927 Parsoid-specific image handling - thumbnail with halign, valign, and caption
11929 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
11931 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
11932 <a href="File:Foobar.jpg">
11933 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
11935 <figcaption>caption content</figcaption>
11940 Parsoid-specific image handling - thumbnail with halign, valign, and caption
11943 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
11945 <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>
11949 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
11951 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
11953 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
11954 <a href="File:Foobar.jpg">
11955 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
11957 <figcaption>caption</figcaption>
11962 Parsoid-specific image handling - thumbnail with specific size, halign,
11963 valign, and caption (existing content)
11965 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
11967 <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>
11971 Parsoid-specific image handling - framed image with specific size and caption
11974 parsoid=wt2html,wt2wt,html2html
11976 [[File:Foobar.jpg|frame|500x50px|caption]]
11978 <figure typeof="mw:Image/Frame">
11979 <a href="File:Foobar.jpg">
11980 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941" />
11982 <figcaption>caption</figcaption>
11987 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
11990 parsoid=wt2html,wt2wt,html2html
11992 [[File:Foobar.jpg|left|baseline|frame|500x50px|caption]]
11994 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
11995 <a href="File:Foobar.jpg">
11996 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941" />
11998 <figcaption>caption</figcaption>
12003 Parsoid-specific image handling - frameless image with specific size, border, and caption
12005 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
12007 <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>
12011 Parsoid-specific image handling - simple image with a formatted caption
12013 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
12015 <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>"}'>
12016 <a href="File:Foobar.jpg">
12017 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
12022 Parsoid-specific image handling - caption with a template in it
12024 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
12026 <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>
12030 Parsoid-specific image handling - caption with unbalanced tags in it
12032 parsoid=wt2html,wt2wt,html2html
12035 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
12039 <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>
12044 Parsoid-specific image handling - empty caption (1)
12046 parsoid=wt2html,wt2wt
12048 [[File:Foobar.jpg|thumb|]]
12050 <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>
12053 # empty captions don't get serialized unless we're in the "round trip" case
12055 Parsoid-specific image handling - empty caption (2)
12059 <figure class="mw-default-size" typeof="mw:Image/Thumb">
12060 <a href="File:Foobar.jpg">
12061 <img resource="./File:Foobar.jpg"
12062 src="//example.com/images/3/3a/Foobar.jpg"
12063 height="25" width="220"/>
12065 <figcaption></figcaption>
12068 [[File:Foobar.jpg|thumb]]
12072 Parsoid-specific image handling - whitespace caption
12074 [[File:Foobar.jpg|thumb| ]]
12076 <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>
12080 Parsoid-specific image handling - lang option
12083 [[File:Foobar.svg|lang=de|caption]]
12087 <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>
12096 Subpage test/subpage
12104 subpage title=[[Subpage test]]
12108 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
12113 Subpage noslash link
12115 subpage title=[[Subpage test]]
12119 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
12123 # TODO: make this PHP-parser compatible!
12125 Relative subpage noslash link
12127 parsoid=wt2wt,wt2html,html2html
12128 subpage title=[[Subpage test/1/2/3/4]]
12134 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
12135 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
12139 Parsoid: dot-slash prefixed wikilinks
12149 </p><p>[[././baz/]]
12154 </p><p>[[././baz/]]
12159 Render invalid page names as plain text (bug 51090)
12172 [[{{echo|./../foo}}|bar]]
12173 [[{{echo|foo/.}}|bar]]
12174 [[{{echo|foo/..}}|bar]]
12175 [[{{echo|foo~~~~bar}}]]
12176 [[{{echo|foo>bar}}]]
12177 [[{{echo|foo././bar}}]]
12178 [[{{echo|foo{bar}}]]
12179 [[{{echo|foo}bar}}]]
12180 [[{{echo|foo[bar}}]]
12181 [[{{echo|foo]bar}}]]
12182 [[{{echo|foo<bar}}]]
12184 <p>[[./../foo|bar]]
12194 </p><p>[[./../foo|bar]]
12207 <p>[[./../foo|bar]][[foo�|bar]][[foo/.|bar]][[foo/..|bar]][[foo~~~bar]][[foo>bar]][[foo[bar]][[.]][[..]][[foo././bar]]</p>
12208 <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>
12216 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
12221 BUG 561: {{/Subpage}}
12223 subpage title=[[Page]]
12227 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
12235 Category:MediaWiki User's Guide
12243 [[:Category:MediaWiki User's Guide]]
12245 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
12254 [[Category:MediaWiki User's Guide]]
12256 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12260 PAGESINCATEGORY invalid title fatal (r33546 fix)
12262 {{PAGESINCATEGORY:<bogus>}}
12269 Category with different sort key
12273 [[Category:MediaWiki User's Guide|Foo]]
12275 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12279 Category with identical sort key
12283 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
12285 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12289 Category with empty sort key
12294 [[Category:MediaWiki User's Guide|]]
12296 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
12300 Category with empty sort key and parentheses
12305 [[Category:Foo (bar)|]]
12307 [[Category:Foo (bar)|Foo]]
12311 Category with link tail
12316 123[[Category:Foo]]456
12318 123[[Category:Foo]]456
12322 Category with template
12327 [[Category:{{echo|Foo}}]]
12329 [[Category:{{echo|Foo}}]]
12333 Category with template in sort key
12338 [[Category:Foo|{{echo|Bar}}]]
12340 [[Category:Foo|{{echo|Bar}}]]
12344 Category with template in sort key and title
12349 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
12351 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
12355 Category / paragraph interactions
12357 Foo [[Category:Baz]] Bar
12359 Foo [[Category:Baz]]
12367 [[Category:Baz]] Bar
12380 {{echo|[[Category:Baz]]}}
12395 Parsoid: Serialize link to category page with colon escape
12401 [[:Category:Foo|Bar]]
12404 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
12405 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
12410 Parsoid: Link prefix/suffixes aren't applied to category links
12412 parsoid=wt2html,wt2wt,html2html
12417 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
12421 Parsoid: Serialize link to file page with colon escape
12427 [[:File:Foo.png|Bar]]
12430 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
12431 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
12436 Parsoid: Serialize a genuine category link without colon escape
12441 [[Category:Foo|Bar]]
12443 <link rel="mw:PageProp/Category" href="Category:Foo">
12444 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
12448 Parsoid: Defaultsort
12452 {{DEFAULTSORT:Foo}}
12454 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
12458 ### Inter-language links
12461 Interlanguage links
12469 es:Alimento fr:Nourriture zh:食品
12471 <p><link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/Alimento"/>
12472 <link rel="mw:PageProp/Language" href="//fr.wikipedia.org/wiki/Nourriture"/>
12473 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/食品"/></p>
12477 Duplicate interlanguage links (bug 24502)
12488 <p><link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/1"/>
12489 <link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/2"/>
12490 <link rel="mw:PageProp/Language" href="//fr.wikipedia.org/wiki/1"/>
12491 <link rel="mw:PageProp/Language" href="//fr.wikipedia.org/wiki/2"/></p>
12498 Basic section headings
12505 ===Smaller headline===
12508 <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>
12511 <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>
12514 <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>
12520 Section headings with TOC
12523 === Subheadline 1 ===
12524 ===== Skipping a level =====
12525 ====== Skipping a level ======
12529 ===Another headline===
12531 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12533 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
12535 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
12537 <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>
12539 <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>
12546 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
12548 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
12554 <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>
12555 <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>
12556 <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>
12557 <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>
12558 <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>
12561 <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>
12565 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
12567 Handling of sections up to level 6 and beyond
12570 == Level 2 Heading==
12571 === Level 3 Heading===
12572 ==== Level 4 Heading====
12573 ===== Level 5 Heading=====
12574 ====== Level 6 Heading======
12575 ======= Level 7 Heading=======
12576 ======== Level 8 Heading========
12577 ========= Level 9 Heading=========
12578 ========== Level 10 Heading==========
12580 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12582 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
12584 <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>
12586 <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>
12588 <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>
12590 <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>
12592 <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>
12593 <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>
12594 <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>
12595 <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>
12596 <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>
12610 <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>
12611 <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>
12612 <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>
12613 <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>
12614 <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>
12615 <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>
12616 <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>
12617 <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>
12618 <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>
12619 <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>
12624 TOC regression (bug 9764)
12628 ==== title 1.1.1 ====
12633 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12635 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
12637 <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>
12639 <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>
12642 <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>
12645 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
12647 <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>
12653 <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>
12654 <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>
12655 <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>
12656 <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>
12657 <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>
12658 <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>
12663 TOC with wgMaxTocLevel=3 (bug 6204)
12669 ==== title 1.1.1 ====
12674 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12676 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
12678 <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>
12679 <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>
12682 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
12684 <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>
12690 <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>
12691 <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>
12692 <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>
12693 <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>
12694 <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>
12695 <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>
12700 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
12706 ====Section 1.1.1====
12707 ====Section 1.1.1.1====
12710 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12712 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
12714 <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>
12717 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
12721 <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>
12722 <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>
12723 <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>
12724 <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>
12725 <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>
12731 Resolving duplicate section names
12736 <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>
12737 <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>
12742 Resolving duplicate section names with differing case (bug 10721)
12747 <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>
12748 <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>
12760 Template with sections, __NOTOC__
12767 <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>
12768 <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>
12769 <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>
12770 <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>
12775 __NOEDITSECTION__ keyword
12781 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
12782 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
12787 Link inside a section heading
12789 ==Section with a [[Main Page|link]] in it==
12791 <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>
12796 TOC regression (bug 12077)
12803 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12805 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
12807 <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>
12810 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
12814 <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>
12815 <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>
12816 <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>
12821 BUG 1219 URL next to image (good)
12823 http://example.com [[Image:foobar.jpg]]
12825 <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>
12830 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
12833 The line above must have a trailing space!
12836 But just in case it doesn't...
12838 <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>
12839 <p>The line above must have a trailing space!
12841 <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>
12842 <p>But just in case it doesn't...
12847 Header with special characters (bug 25462)
12849 The tooltips shall not show entities to the user (ie. be double escaped)
12866 <p>The tooltips shall not show entities to the user (ie. be double escaped)
12868 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12870 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
12871 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
12872 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
12873 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
12874 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
12878 <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>
12881 <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>
12884 <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>
12887 <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>
12890 <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>
12896 Headers with excess '=' characters
12897 (Are similar tests necessary beyond the 1st level?)
12901 =''italic'' heading==
12902 ==''italic'' heading=
12904 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12906 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
12907 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
12908 <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>
12909 <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>
12913 <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>
12914 <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>
12915 <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>
12916 <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>
12921 HTML headers vs TOC (bug 23393)
12922 (__NOEDITSECTION__ for clearer output, doesn't matter here)
12934 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12936 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
12938 <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>
12939 <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>
12942 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
12944 <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>
12945 <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>
12951 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
12952 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
12953 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
12954 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
12955 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
12956 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
12961 Single-line or multiline-comments can follow headings
12963 parsoid=wt2html,wt2wt
12971 <h2><span class="mw-headline" id="foo">foo</span></h2>
12972 <h2><span class="mw-headline" id="bar">bar</span></h2>
12973 <h2><span class="mw-headline" id="baz">baz</span></h2>
12978 BUG 1219 URL next to image (broken)
12980 http://example.com[[Image:foobar.jpg]]
12982 <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>
12987 Bug 1186 news: in the middle of text
12989 http://en.wikinews.org/wiki/Wikinews:Workplace
12991 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
12997 Namespaced link must have a title
13006 Namespaced link must have a title (bad fragment version)
13008 [[Project:#fragment]]
13010 <p>[[Project:#fragment]]
13016 ### HTML tags and HTML attributes
13020 div with no attributes
13022 <div>HTML rocks</div>
13024 <div>HTML rocks</div>
13029 div with double-quoted attribute
13031 <div id="rock">HTML rocks</div>
13033 <div id="rock">HTML rocks</div>
13038 div with single-quoted attribute
13040 <div id='rock'>HTML rocks</div>
13042 <div id="rock">HTML rocks</div>
13047 div with unquoted attribute
13049 <div id=rock>HTML rocks</div>
13051 <div id="rock">HTML rocks</div>
13056 div with illegal double attributes
13058 <div id="a" id="b">HTML rocks</div>
13060 <div id="b">HTML rocks</div>
13064 # FIXME: produce empty string instead of "class" in the PHP parser, following
13067 div with empty attribute value, space before equals
13071 <div class =>HTML rocks</div>
13073 <div class="">HTML rocks</div>
13077 # The PHP parser escapes the opening brace to { for some reason, so
13078 # disabled this test for it.
13080 div with braces in attribute value
13084 <div title="{}">Foo</div>
13086 <div title="{}">Foo</div>
13089 # This it very inconsistent in the PHP parser: it returns
13090 # class="class" if there is a space between the name and the equal sign (see
13091 # 'div with empty attribute value, space before equals'), but strips the
13092 # attribute completely if the space is missing. We hope that not much content
13093 # depends on this, so are implementing the behavior below in Parsoid for
13094 # consistencies' sake. Disabled for the PHP parser.
13095 # FIXME: fix this behavior in the PHP parser?
13097 div with empty attribute value, no space before equals
13101 <div class=>HTML rocks</div>
13103 <div class="">HTML rocks</div>
13108 HTML multiple attributes correction
13110 <p class="error" class="awesome">Awesome!</p>
13112 <p class="awesome">Awesome!</p>
13117 Table multiple attributes correction
13120 !+ class="error" class="awesome"| status
13125 <th class="awesome"> status
13133 <DIV ID="x">HTML ROCKS</DIV>
13135 <div id="x">HTML ROCKS</div>
13140 Non-ASCII pseudo-tags are rendered as text
13149 Pseudo-tag with URL 'name' renders as url link
13151 <http://example.com/>
13153 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
13158 text with amp in the middle of nowhere
13162 <p>Remember AT&T?
13167 text with character entity: eacute
13169 I always thought é was a cute letter.
13171 <p>I always thought é was a cute letter.
13174 <p>I always thought é was a cute letter.</p>
13178 text with entity-escaped character entity-like string: eacute
13180 I always thought &eacute; was a cute letter.
13182 <p>I always thought &eacute; was a cute letter.
13187 text with undefined character entity: xacute
13189 I always thought &xacute; was a cute letter.
13191 <p>I always thought &xacute; was a cute letter.
13195 # TODO: generalize to PHP parser?
13201 <data value="5">five</data>
13202 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
13203 <mark>This highlighted text</mark>
13205 <p><data value="5">five</data>
13206 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
13207 <mark>This highlighted text</mark></p>
13211 HTML tag with leading space is parsed as text
13215 <p>< div>foo< /div>
13220 ### Nesting tests (see bug 41545, 50604, 51081)
13223 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
13224 # Note that html2wt is considerably more difficult if we use <b> in
13225 # the test case, instead of <big>
13227 Ensure that HTML adoption agency algorithm is properly implemented.
13229 <big>X<big>Y</big>Z</big>
13231 <p><big>X<big>Y</big>Z</big>
13235 # This was bug 41545 in the PHP parser.
13236 # Note that tidy doesn't handle this correctly.
13240 <kbd>X<kbd>Y</kbd>Z</kbd>
13242 <p><kbd>X<kbd>Y</kbd>Z</kbd>
13246 # The following cases were bug 51081 in the PHP parser.
13247 # Note that there are some other nestable tags (b, i, etc) which are
13248 # not covered; see bug 51081 for discussion.
13250 # Note that tidy doesn't handle this correctly.
13254 <em>X<em>Y</em>Z</em>
13256 <p><em>X<em>Y</em>Z</em>
13260 # Note that tidy doesn't handle this correctly.
13262 Nesting of <strong>
13264 <strong>X<strong>Y</strong>Z</strong>
13266 <p><strong>X<strong>Y</strong>Z</strong>
13275 <p><q>X<q>Y</q>Z</q></p>
13278 # Note that tidy doesn't handle this correctly.
13282 <ruby>X<ruby>Y</ruby>Z</ruby>
13284 <p><ruby>X<ruby>Y</ruby>Z</ruby>
13288 # Note that tidy doesn't handle this correctly.
13292 <bdo>X<bdo>Y</bdo>Z</bdo>
13294 <p><bdo>X<bdo>Y</bdo>Z</bdo>
13306 [[Media:Foobar.jpg]]
13308 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
13313 Media link with text
13315 [[Media:Foobar.jpg|A neat file to look at]]
13317 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
13321 # FIXME: this is still bad HTML tag nesting
13323 Media link with nasty text
13324 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
13326 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
13328 <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>
13331 <p><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></p>
13335 Media link to nonexistent file (bug 1702)
13337 [[Media:No such.jpg]]
13339 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
13344 Image link to nonexistent file (bug 1850 - good)
13346 [[Image:No such.jpg]]
13348 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
13353 :Image link to nonexistent file (bug 1850 - bad)
13355 [[:Image:No such.jpg]]
13357 <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>
13364 Character reference normalization in link text (bug 1938)
13366 [[Main Page|this&that]]
13368 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
13375 Test for unicode normalization
13377 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
13381 (bug 19451) Links should refer to the normalized form.
13389 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13390 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13391 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13392 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13393 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13398 Empty attribute crash test (bug 2067)
13400 <font color="">foo</font>
13402 <p><font color="">foo</font>
13407 Empty attribute crash test single-quotes (bug 2067)
13409 <font color=''>foo</font>
13411 <p><font color="">foo</font>
13416 Attribute test: equals, then nothing
13418 <font color=>foo</font>
13420 <p><font>foo</font>
13425 Attribute test: unquoted value
13427 <font color=x>foo</font>
13429 <p><font color="x">foo</font>
13434 Attribute test: unquoted but illegal value (hash)
13436 <font color=#x>foo</font>
13438 <p><font color="#x">foo</font>
13443 Attribute test: no value
13445 <font color>foo</font>
13447 <p><font color="color">foo</font>
13452 Bug 2095: link with three closing brackets
13456 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
13459 <p><a rel="mw:WikiLink" href="./Main_Page">Main Page</a>]</p>
13463 Bug 2095: link with pipe and three closing brackets
13465 [[Main Page|link]]]
13467 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
13470 <p><a rel="mw:WikiLink" href="./Main_Page">link</a>]</p>
13474 Bug 2095: link with pipe and three closing brackets, version 2
13476 [[Main Page|[http://example.com/]]]
13478 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
13481 <p><a rel="mw:WikiLink" href="./Main_Page">[http://example.com/]</a></p>
13490 Template:Dangerous attribute
13492 " onmouseover="alert(document.cookie)
13496 Template:Dangerous style attribute
13498 border-size: expression(alert(document.cookie))
13504 <div style="float: right; {{{1}}}">Magic div</div>
13508 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
13510 <div title="{{test}}"></div>
13512 <div title="This is a test template"></div>
13517 Bug 2304: HTML attribute safety (dangerous template; 2309)
13519 <div title="{{dangerous attribute}}"></div>
13521 <div title=""></div>
13526 Bug 2304: HTML attribute safety (dangerous style template; 2309)
13528 <div style="{{dangerous style attribute}}"></div>
13530 <div style="/* insecure input */"></div>
13535 Bug 2304: HTML attribute safety (safe parameter; 2309)
13537 {{div style|width: 200px}}
13539 <div style="float: right; width: 200px">Magic div</div>
13544 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
13546 {{div style|width: expression(alert(document.cookie))}}
13548 <div style="/* insecure input */">Magic div</div>
13553 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
13555 {{div style|"><script>alert(document.cookie)</script>}}
13557 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
13562 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
13564 {{div style|" ><script>alert(document.cookie)</script>}}
13566 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
13571 Bug 2304: HTML attribute safety (link)
13573 <div title="[[Main Page]]"></div>
13575 <div title="[[Main Page]]"></div>
13580 Bug 2304: HTML attribute safety (italics)
13582 <div title="''foobar''"></div>
13584 <div title="''foobar''"></div>
13589 Bug 2304: HTML attribute safety (bold)
13591 <div title="'''foobar'''"></div>
13593 <div title="'''foobar'''"></div>
13599 Bug 2304: HTML attribute safety (ISBN)
13601 <div title="ISBN 1234567890"></div>
13603 <div title="ISBN 1234567890"></div>
13608 Bug 2304: HTML attribute safety (RFC)
13610 <div title="RFC 1234"></div>
13612 <div title="RFC 1234"></div>
13617 Bug 2304: HTML attribute safety (PMID)
13619 <div title="PMID 1234567890"></div>
13621 <div title="PMID 1234567890"></div>
13626 Bug 2304: HTML attribute safety (web link)
13628 <div title="http://example.com/"></div>
13630 <div title="http://example.com/"></div>
13635 Bug 2304: HTML attribute safety (named web link)
13637 <div title="[http://example.com/ link]"></div>
13639 <div title="[http://example.com/ link]"></div>
13644 Bug 3244: HTML attribute safety (extension; safe)
13646 <div style="<nowiki>background:blue</nowiki>"></div>
13648 <div style="background:blue"></div>
13653 Bug 3244: HTML attribute safety (extension; unsafe)
13655 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
13657 <div style="/* insecure input */"></div>
13661 # More MSIE fun discovered by Tom Gilder
13664 MSIE CSS safety test: spurious slash
13666 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
13668 <div style="/* insecure input */">evil</div>
13673 MSIE CSS safety test: hex code
13675 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
13677 <div style="/* insecure input */">evil</div>
13682 MSIE CSS safety test: comment in url
13684 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
13686 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
13691 MSIE CSS safety test: comment in expression
13693 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
13695 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
13700 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
13702 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
13704 <p style="/* invalid control char */">A</p>
13709 MSIE 6 CSS safety test: Fullwidth (bug 55332)
13711 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
13712 <div style="top:EXPRESSION(alert())">B</div>
13714 <p style="/* insecure input */">A</p>
13715 <div style="/* insecure input */">B</div>
13720 MSIE 6 CSS safety test: IPA extensions (bug 55332)
13722 <div style="background-image:uʀʟ(javascript:alert())">A</div>
13723 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
13725 <div style="/* insecure input */">A</div>
13726 <p style="/* insecure input */">B</p>
13731 MSIE 6 CSS safety test: sup/sub script (bug 55332)
13733 <div style="background-image:url⁽javascript:alert())">A</div>
13734 <div style="background-image:url₍javascript:alert())">B</div>
13735 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
13737 <div style="/* insecure input */">A</div>
13738 <div style="/* insecure input */">B</div>
13739 <p style="/* insecure input */">C</p>
13747 title="data:text/html,<img src=1 onerror=alert(1)>"
13748 style="-o-link:attr(title);-o-link-source:current">X</div>
13750 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
13755 MSIE 6 CSS safety test: Repetition markers (bug 55332)
13757 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
13758 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
13759 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
13760 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
13761 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
13762 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
13763 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
13765 <p style="/* insecure input */">A</p>
13766 <p style="/* insecure input */">B</p>
13767 <p style="/* insecure input */">C</p>
13768 <p style="/* insecure input */">D</p>
13769 <p style="/* insecure input */">E</p>
13770 <p style="/* insecure input */">F</p>
13771 <p style="/* insecure input */">G</p>
13776 Table attribute legitimate extension
13779 !+ style="<nowiki>color:blue</nowiki>"| status
13784 <th style="color:blue"> status
13790 Table attribute safety
13793 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
13798 <th style="/* insecure input */"> status
13804 CSS line continuation 1
13806 <div style="background-image: u\ rl(test.jpg);"></div>
13808 <div style="/* insecure input */"></div>
13813 CSS line continuation 2
13815 <div style="background-image: u\ rl(test.jpg); "></div>
13817 <div style="/* insecure input */"></div>
13828 Expansion of multi-line templates in attribute values (bug 6255)
13830 <div style="background: {{identity|#00FF00}}">-</div>
13832 <div style="background: #00FF00">-</div>
13838 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
13840 <div style="background:
13843 <div style="background: #00FF00">-</div>
13848 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
13850 <div style="background: #00FF00">-</div>
13852 <div style="background: #00FF00">-</div>
13857 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
13860 Parser hook: empty input
13873 Parser hook: empty input using terminated empty elements
13886 Parser hook: empty input using terminated empty elements (space before)
13899 Parser hook: basic input
13913 Parser hook: case insensitive
13927 Parser hook: case insensitive, redux
13940 Parser hook: nested tags
13944 <tag><tag></tag></tag>
13955 Parser hook: basic arguments
13957 <tag width=200 height = "100" depth = '50' square></tag>
13965 'square' => 'square',
13972 Parser hook: argument containing a forward slash (bug 5344)
13974 <tag filename='/tmp/bla'></tag>
13979 'filename' => '/tmp/bla',
13986 Parser hook: empty input using terminated empty elements (bug 2374)
13999 # </tag> should be output literally since there is no matching tag that begins it
14001 Parser hook: basic arguments using terminated empty elements (bug 2374)
14003 <tag width=200 height = "100" depth = '50' square/>
14013 'square' => 'square',
14022 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
14026 Parser hook: static parser hook not inside a comment
14028 <statictag>hello, world</statictag>
14029 <statictag action=flush/>
14037 Parser hook: static parser hook inside a comment
14039 <!-- <statictag>hello, world</statictag> -->
14040 <statictag action=flush/>
14046 # Nested template calls; this case was broken by Parser.php rev 1.506,
14050 Template:One-parameter
14052 (My parameter is: {{{1}}})
14056 Template:Map-one-parameter
14058 {{{{{1}}}|{{{2}}}}}
14062 Nested template calls
14064 {{Map-one-parameter|One-parameter|param}}
14066 <p>(My parameter is: param)
14075 Sanitizer: Closing of open tags
14077 <s></s><table></table>
14079 <s></s><table></table>
14084 Sanitizer: Closing of open but not closed tags
14093 Sanitizer: Closing of closed but not open tags
14102 Sanitizer: Closing of closed but not open table tags
14104 Table not started</td></tr></table>
14106 <p>Table not started</td></tr></table>
14111 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
14113 <span id="æ: v">byte</span>[[#æ: v|backlink]]
14115 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
14120 Sanitizer: Validating the contents of the id attribute (bug 4515)
14126 Something, but definitely not <br id="9" />...
14130 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
14134 <br id="foo" /><br id="foo" />
14136 Something need to be done. foo-2 ?
14140 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
14143 <meta itemprop="hello" content="world">
14144 <meta http-equiv="refresh" content="5">
14145 <meta itemprop="hello" http-equiv="refresh" content="5">
14146 <link itemprop="hello" href="{{SERVER}}">
14147 <link rel="stylesheet" href="{{SERVER}}">
14148 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
14151 <div itemscope="itemscope">
14152 <p> <meta itemprop="hello" content="world" />
14153 <meta http-equiv="refresh" content="5">
14154 <meta itemprop="hello" content="5" />
14156 <link itemprop="hello" href="http://example.org" />
14157 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
14158 <link itemprop="hello" href="http://example.org" />
14164 Language converter: output gets cut off unexpectedly (bug 5757)
14168 this bit is safe: }-
14170 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
14172 then we get cut off here: }-
14174 all additional text is vanished
14176 <p>this bit is safe: }-
14177 </p><p>but if we add a conversion instance: xxx
14178 </p><p>then we get cut off here: }-
14179 </p><p>all additional text is vanished
14184 Self closed html pairs (bug 5487)
14187 <center><font id="bug" />Centered text</center>
14188 <div><font id="bug2" />In div text</div>
14190 <center><font id="bug" />Centered text</center>
14191 <div><font id="bug2" />In div text</div>
14200 Punctuation: nbsp before exclamation
14204 <p>C'est grave !
14209 Punctuation: CSS !important (bug 11874)
14211 <div style="width:50% !important">important</div>
14213 <div style="width:50% !important">important</div>
14218 Punctuation: CSS ! important (bug 11874; with space after)
14220 <div style="width:50% ! important">important</div>
14222 <div style="width:50% ! important">important</div>
14228 HTML bullet list, closed tags (bug 5497)
14243 HTML bullet list, unclosed tags (bug 5497)
14262 HTML ordered list, closed tags (bug 5497)
14277 HTML ordered list, unclosed tags (bug 5497)
14296 HTML nested bullet list, closed tags (bug 5497)
14321 HTML nested bullet list, open tags (bug 5497)
14350 HTML nested ordered list, closed tags (bug 5497)
14375 HTML nested ordered list, open tags (bug 5497)
14404 HTML ordered list item with parameters oddity
14406 <ol><li id="fragment">One</li>
14409 <ol><li id="fragment">One</li>
14414 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
14416 bug 5918: autonumbering
14418 [http://first/] [http://second] [ftp://ftp]
14422 [mailto:enclosed@mail.tld With target]
14424 [mailto:enclosed@mail.tld]
14426 mailto:inline@mail.tld
14428 <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>
14429 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
14430 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
14431 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
14432 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
14435 <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>
14436 <p><a rel="mw:ExtLink" href="ftp://inlineftp">ftp://inlineftp</a></p>
14437 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld">With target</a></p>
14438 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld"></a></p>
14439 <p><a rel="mw:ExtLink" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a></p>
14444 # Security and HTML correctness
14445 # From Nick Jenkins' fuzz testing
14449 Fuzz testing: Parser13
14464 Fuzz testing: Parser14
14469 <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>
14470 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14472 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
14478 <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>
14480 <div id="toc" class="toc">
14481 <div id="toctitle">
14485 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
14491 Fuzz testing: Parser14-table
14496 <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>
14497 <table style="__TOC__">
14502 <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>
14503 <table style="__TOC__">
14510 # Known to produce bogus xml (extra </td>)
14512 Fuzz testing: Parser16
14541 Fuzz testing: Parser21
14544 ! irc://{{ftp://a" onmouseover="alert('hello world');"
14549 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
14559 Fuzz testing: Parser22
14561 http://===r:::https://b
14565 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
14573 # Known to produce bad XML for now
14575 Fuzz testing: Parser24
14582 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
14583 <br style="onmouseover='alert(document.cookie);' " />
14585 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
14590 <u class="|">}}}} >
14591 <br style="onmouseover='alert(document.cookie);'" />
14593 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
14602 # Note: the current result listed for this is not what the original one was,
14603 # but the original bug was JavaScript injection, which is fixed in any case.
14604 # It's not clear that the original result listed was any more correct than the
14605 # current one. Original result:
14608 # <li class="||">
14609 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
14611 Fuzz testing: Parser25 (bug 6055)
14617 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
14619 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
14624 Fuzz testing: URL adjacent extension (with space, clean)
14626 http://example.com <nowiki>junk</nowiki>
14628 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
14633 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
14635 http://example.com<nowiki>junk</nowiki>
14637 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
14642 Fuzz testing: URL adjacent extension (no space, dirty; pre)
14644 http://example.com<pre>junk</pre>
14646 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
14649 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></p>
14656 Fuzz testing: image with bogus manual thumbnail
14658 [[Image:foobar.jpg|thumbnail= ]]
14660 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
14663 <meta typeof="mw:Placeholder" data-parsoid='{"src":"[[Image:foobar.jpg|thumbnail= ]]","optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,null,null]}'/>
14667 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
14669 <pre dir=" "></pre>
14671 <pre dir=" "></pre>
14676 Parsing optional HTML elements (Bug 6171)
14681 <td> Some tabular data</td>
14682 <td> More tabular data ...
14683 <td> And yet som tabular data</td>
14689 <td> Some tabular data</td>
14690 <td> More tabular data ...
14691 </td><td> And yet som tabular data</td>
14698 Correct handling of <td>, <tr> (Bug 6171)
14703 <td> Some tabular data</td>
14704 <td> More tabular data ...</td>
14705 <td> And yet som tabular data</td>
14711 <td> Some tabular data</td>
14712 <td> More tabular data ...</td>
14713 <td> And yet som tabular data</td>
14721 Parsing crashing regression (fr:JavaScript)
14725 <p></body></x>
14730 Inline wiki vs wiki block nesting
14736 <p><b>Bold paragraph</b>
14737 </p><p>New wiki paragraph
14742 Inline HTML vs wiki block nesting
14750 <p><b>Bold paragraph</b>
14751 </p><p>New wiki paragraph
14755 # Original result was this:
14756 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
14758 # While that might be marginally more intuitive, maybe, the six-apostrophe
14759 # construct is clearly pathological and the result stated here (which is what
14760 # the parser actually does) is about as reasonable as anything.
14762 Mixing markup for italics and bold
14765 '''bold''''''bold''bolditalics'''''
14767 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
14775 Article for special page transclusion test
14779 Special page transclusion
14782 {{Special:Prefixindex/Xyzzyx}}
14784 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
14789 Special page transclusion twice (bug 5021)
14792 {{Special:Prefixindex/Xyzzyx}}
14793 {{Special:Prefixindex/Xyzzyx}}
14795 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
14796 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
14801 Transclusion of default MediaWiki message
14803 {{MediaWiki:Mainpage}}
14810 Transclusion of nonexistent MediaWiki message
14812 {{MediaWiki:Mainpagexxx}}
14814 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
14819 Transclusion of MediaWiki message with underscore
14821 {{MediaWiki:history_short}}
14828 Transclusion of MediaWiki message with space
14830 {{MediaWiki:history short}}
14837 Invalid header with following text
14847 Section extraction test (section 0)
14867 Section extraction test (section 1)
14889 Section extraction test (section 2)
14910 Section extraction test (section 3)
14930 Section extraction test (section 4)
14954 Section extraction test (section 5)
14974 Section extraction test (section 6)
14995 Section extraction test (section 7)
15015 Section extraction test (section 8)
15035 Section extraction test (section 9)
15056 Section extraction test (section 10)
15076 Section extraction test (nonexistent section 11)
15095 Section extraction test with bogus heading (section 1)
15100 ==bogus== not a legal section
15104 ==bogus== not a legal section
15108 Section extraction test with bogus heading (section 2)
15113 ==bogus== not a legal section
15120 Section extraction test with comment after heading (section 1)
15132 Section extraction test with comment after heading (section 2)
15144 Section extraction test with bogus <nowiki> heading (section 1)
15149 ==bogus== <nowiki>not a legal section</nowiki>
15153 ==bogus== <nowiki>not a legal section</nowiki>
15157 Section extraction test with bogus <nowiki> heading (section 2)
15162 ==bogus== <nowiki>not a legal section</nowiki>
15169 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
15170 # instead of respecting commented sections
15172 Section extraction prefixed by comment (section 1)
15183 Section extraction prefixed by comment (section 2)
15194 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
15195 # instead of respecting HTML-style headings
15197 Section extraction, mixed wiki and html (section 1)
15213 Section extraction, mixed wiki and html (section 2)
15229 # Formerly testing for bug 3342
15231 Section extraction, heading surrounded by <noinclude>
15235 <noinclude>==unmarked==</noinclude>
15241 # Test behavior of bug 19910
15243 Sectiion with all-equals
15248 The line above must have a trailing space
15251 But just in case it doesn't...
15255 But just in case it doesn't...
15259 Section replacement test (section 0)
15290 Section replacement test (section 1)
15319 Section replacement test (section 2)
15349 Section replacement test (section 3)
15380 Section replacement test (section 4)
15407 Section replacement test (section 5)
15438 Section replacement test (section 6)
15468 Section replacement test (section 7)
15499 Section replacement test (section 8)
15530 Section replacement test (section 9)
15559 Section replacement test (section 10)
15589 Section replacement test with initial whitespace (bug 13728)
15593 Preformatted initial line
15597 Preformatted initial line
15604 Section extraction, heading followed by pre with 20 spaces (bug 6398)
15616 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
15629 Section extraction, <pre> around bogus header (bug 10309)
15646 Section replacement, <pre> around bogus header (bug 10309)
15648 noxml replace=2,"xxx"
15669 Handling of 
 in URLs
15673 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
15676 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://
15678 a</a></li></ul></li></ul>
15682 Handling of %0A in URLs
15686 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
15689 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
15693 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
15695 5 quotes, code coverage +1 line
15702 <p><b><i></i></b></p>
15705 # same html as previous, but wikitext adjusted to match parsoid html2wt
15706 # note that wt2html and html2html will put the <i> before the <b>
15708 5 quotes, code coverage +1 line w/ nowiki (1)
15710 parsoid=wt2wt,html2wt
15712 '''''<nowiki/>'''''
15717 <p><b><i></i></b></p>
15720 # same as previous, just swapping the <i> and <b>
15722 5 quotes, code coverage +1 line w/ nowiki (2)
15724 '''''<nowiki/>'''''
15729 <p><i><b></b></i></p>
15733 Special:Search page linking.
15737 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
15744 title=[[Parser test]]
15749 * {{FULLPAGENAMEE}}
15751 * {{BASEPAGENAMEE}}
15755 * {{ROOTPAGENAMEE}}
15757 * {{TALKPAGENAMEE}}
15758 * {{SUBJECTPAGENAME}}
15759 * {{SUBJECTPAGENAMEE}}
15762 * {{NAMESPACENUMBER}}
15766 * {{SUBJECTSPACEE}}
15767 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
15769 <ul><li> Parser test</li>
15770 <li> Parser_test</li>
15771 <li> Parser test</li>
15772 <li> Parser_test</li>
15773 <li> Parser test</li>
15774 <li> Parser_test</li>
15775 <li> Parser test</li>
15776 <li> Parser_test</li>
15777 <li> Parser test</li>
15778 <li> Parser_test</li>
15779 <li> Talk:Parser test</li>
15780 <li> Talk:Parser_test</li>
15781 <li> Parser test</li>
15782 <li> Parser_test</li>
15790 <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>
15793 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
15803 image4 |300px| centre
15804 image5.svg| http://///////
15809 <ul class="gallery mw-gallery-traditional">
15810 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15811 <div class="thumb" style="height: 150px;">Image1.png</div>
15812 <div class="gallerytext">
15815 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15816 <div class="thumb" style="height: 150px;">Image2.gif</div>
15817 <div class="gallerytext">
15822 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15823 <div class="thumb" style="height: 150px;">Image3</div>
15824 <div class="gallerytext">
15827 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15828 <div class="thumb" style="height: 150px;">Image4</div>
15829 <div class="gallerytext">
15834 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15835 <div class="thumb" style="height: 150px;">Image5.svg</div>
15836 <div class="gallerytext">
15837 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
15841 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15842 <div class="thumb" style="height: 150px;">* image6</div>
15843 <div class="gallerytext">
15851 Gallery (with options)
15853 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
15854 File:Nonexistant.jpg|caption
15855 File:Nonexistant.jpg
15856 image:foobar.jpg|some '''caption''' [[Main Page]]
15858 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
15861 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
15862 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
15863 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15864 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
15865 <div class="gallerytext">
15870 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15871 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
15872 <div class="gallerytext">
15875 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15876 <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>
15877 <div class="gallerytext">
15878 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15882 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15883 <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>
15884 <div class="gallerytext">
15887 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15888 <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>
15889 <div class="gallerytext">
15899 Gallery with link that has fragment
15902 image:foobar.jpg|link=Main_Page
15903 image:foobar.jpg|link=Main_Page#section
15904 image:foobar.jpg|link=Main Page#section|caption
15907 <ul class="gallery mw-gallery-traditional">
15908 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15909 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/Main_Page"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15910 <div class="gallerytext">
15913 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15914 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/Main_Page#section"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15915 <div class="gallerytext">
15918 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15919 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/Main_Page#section"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15920 <div class="gallerytext">
15930 Gallery with wikitext inside caption
15933 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
15934 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
15937 <ul class="gallery mw-gallery-traditional">
15938 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15939 <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>
15940 <div class="gallerytext">
15941 <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>
15945 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15946 <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>
15947 <div class="gallerytext">
15948 <p>This is a test template
15957 gallery (with showfilename option)
15959 <gallery showfilename>
15960 File:Nonexistant.jpg|caption
15961 File:Nonexistant.jpg
15962 image:foobar.jpg|some '''caption''' [[Main Page]]
15966 <ul class="gallery mw-gallery-traditional">
15967 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15968 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
15969 <div class="gallerytext">
15970 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
15975 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15976 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
15977 <div class="gallerytext">
15978 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
15982 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15983 <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>
15984 <div class="gallerytext">
15985 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
15986 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15990 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15991 <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>
15992 <div class="gallerytext">
15993 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
16002 Gallery (with namespace-less filenames)
16005 File:Nonexistant.jpg
16011 <ul class="gallery mw-gallery-traditional">
16012 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16013 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
16014 <div class="gallerytext">
16017 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16018 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
16019 <div class="gallerytext">
16022 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16023 <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>
16024 <div class="gallerytext">
16027 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16028 <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>
16029 <div class="gallerytext">
16037 HTML Hex character encoding (spells the word "JavaScript")
16039 parsoid=wt2html,wt2wt,html2html
16041 JavaScript
16043 <p>JavaScript
16048 <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>
16052 HTML Hex character encoding bogus encoding (bug 26437 regression check)
16056 <p>&#xsee;&#XSEE;
16059 <p>&#xsee;&#XSEE;</p>
16063 HTML Hex character encoding mixed case
16065 parsoid=wt2html,wt2wt,html2html
16074 <p><span typeof="mw:Entity">î</span><span typeof="mw:Entity">î</span></p>
16078 __FORCETOC__ override
16090 ISBN 978-0-1234-56 789
16092 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
16095 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789</p>
16099 ISBN followed by 5 spaces
16110 ISBN ISBN 1234567890
16112 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
16121 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
16126 ISBN with empty prefix (parsoid test)
16130 <p><a href="Special:BookSources/1234567890" rel="mw:ExtLink">ISBN 1234567890</a></p>
16134 Bug 22905: <abbr> followed by ISBN followed by </a>
16136 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
16138 <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>
16147 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
16152 Double RFC with a wiki link
16156 <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>
16165 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
16168 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987</p>
16172 Centre-aligned image
16174 [[Image:foobar.jpg|centre]]
16176 <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>
16183 [[Image:foobar.jpg|none]]
16185 <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>
16190 Width + Height sized image (using px) (height is ignored)
16192 [[Image:foobar.jpg|640x480px]]
16194 <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>
16199 Width-sized image (using px, no following whitespace)
16201 [[Image:foobar.jpg|640px]]
16203 <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>
16208 Width-sized image (using px, with following whitespace - test regression from r39467)
16210 [[Image:foobar.jpg|640px ]]
16212 <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>
16217 Width-sized image (using px, with preceding whitespace - test regression from r39467)
16219 [[Image:foobar.jpg| 640px]]
16221 <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>
16226 Image with page parameter
16230 [[File:LoremIpsum.djvu|page=2]]
16232 <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>
16237 Another italics / bold test
16245 # Note the results may be incorrect, as parserTest output included this:
16246 # XML error: Mismatched tag at byte 6120:
16247 # ...<dd> </dt></dl> </dd...
16278 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
16280 Images with the "|" character in the comment
16282 [[File:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
16284 <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>
16287 <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>
16291 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
16293 <html><script>alert(1);</script></html>
16295 <p><html><script>alert(1);</script></html>
16300 HTML with raw HTML ($wgRawHtml==true)
16304 <html><script>alert(1);</script></html>
16306 <p><script>alert(1);</script>
16311 Parents of subpages, one level up
16313 subpage title=[[Subpage test/L1/L2/L3]]
16317 <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>
16323 Parents of subpages, one level up, not named
16325 subpage title=[[Subpage test/L1/L2/L3]]
16329 <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>
16336 Parents of subpages, two levels up
16338 subpage title=[[Subpage test/L1/L2/L3]]
16344 <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
16345 </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>
16350 Parents of subpages, two levels up, without trailing slash or name.
16352 subpage title=[[Subpage test/L1/L2/L3]]
16361 Parents of subpages, two levels up, with lots of extra trailing slashes.
16363 subpage title=[[Subpage test/L1/L2/L3]]
16367 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
16372 Subpage test/L1/L2/L3Sibling
16378 Transclusion of a sibling page (one level up)
16380 subpage title=[[Subpage test/L1/L2/L3]]
16389 Transclusion of a child page
16391 subpage title=[[Subpage test/L1/L2]]
16400 Non-transclusion because of too many up levels
16402 subpage title=[[Subpage test/L1/L2/L3]]
16404 {{../../../../More than parent}}
16406 <p>{{../../../../More than parent}}
16411 Definition list code coverage
16417 <dl><dt> title  </dt>
16419 <dt> title </dt>
16427 Don't fall for the self-closing div
16429 <div>hello world</div/>
16431 <div>hello world</div>
16440 <p>[[:Template:Msg]]
16449 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
16453 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
16455 Always escape literal '>' in output, not just after '<'
16469 <p>This is a test template
16470 This is a test template
16482 Inclusion of !userCanEdit() content
16486 <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>
16492 Out-of-order TOC heading levels
16501 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16503 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
16505 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
16506 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
16509 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
16511 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
16512 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
16518 <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>
16519 <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>
16520 <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>
16521 <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>
16522 <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>
16523 <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>
16529 ISBN with a dummy number
16539 ISBN with space-delimited number
16543 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
16549 ISBN with multiple spaces, no number
16568 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
16569 </p><p>ISBN 12345678901
16575 ISBN with trailing year (bug 8110)
16577 ISBN 1-234-56789-0 - 2006
16579 ISBN 1 234 56789 0 - 2006
16581 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
16582 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
16590 {{anchorencode:foo bar©#%n}}
16592 <p>foo_bar.C2.A9.23.25n
16597 anchorencode trims spaces
16599 {{anchorencode: __pretty__please__}}
16606 anchorencode deals with links
16608 {{anchorencode: [[hello|world]] [[hi]]}}
16615 anchorencode deals with templates
16617 {{anchorencode: {{Foo}} }}
16624 anchorencode encodes like the TOC generator: (bug 18431)
16626 === _ +:.3A%3A&&]] ===
16627 {{anchorencode: _ +:.3A%3A&&]] }}
16630 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
16631 <p>.2B:.3A.253A.26.26.5D.5D
16636 Bug 6200: blockquotes and paragraph formatting
16657 Bug 8293: Use of center tag ruins paragraph formatting
16678 Parsing of overlapping (improperly nested) inline html tags
16680 <span><s>x</span></s>
16682 <p><span><s>x</span></s></span>
16685 <p><span><s>x</s></span>
16690 ### Language variants related tests
16693 Self-link in language variants
16695 title=[[Dunav]] language=sr
16697 Both [[Dunav]] and [[Дунав]] are names for this river.
16699 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
16710 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
16712 title=[[Duna]] language=sr
16714 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
16716 <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.
16721 Link to a section of a variant of this title shouldn't be parsed as self-link
16723 title=[[Duna]] language=sr
16725 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
16727 <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.
16732 Link to pages in language variants
16736 Main Page can be written as [[Маин Паге]]
16738 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
16744 Multiple links to pages in language variants
16748 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
16750 <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>.
16756 Simple template in language variants
16762 <p>This is a test template
16768 Template with explicit namespace in language variants
16774 <p>This is a test template
16780 Basic test for template parameter in language variants
16784 {{парамтест|param=foo}}
16786 <p>This is a test template with parameter foo
16792 Simple category in language variants
16796 [[Category:МедиаWики Усер'с Гуиде]]
16798 <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>
16815 Don't convert blue categorylinks to another variant (bug 33210)
16819 [[A]][[Category:分类]]
16821 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
16826 Stripping -{}- tags (language variants)
16830 Latin proverb: -{Ne nuntium necare}-
16832 <p>Latin proverb: Ne nuntium necare
16838 Prevent conversion with -{}- tags (language variants)
16840 language=sr variant=sr-ec
16842 Latinski: -{Ne nuntium necare}-
16844 <p>Латински: Ne nuntium necare
16850 Prevent conversion of text with -{}- tags (language variants)
16852 language=sr variant=sr-ec
16854 Latinski: -{Ne nuntium necare}-
16856 <p>Латински: Ne nuntium necare
16862 Prevent conversion of links with -{}- tags (language variants)
16864 language=sr variant=sr-ec
16868 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
16874 -{}- tags within headlines (within html for parserConvert())
16876 language=sr variant=sr-ec
16880 <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>
16886 Explicit definition of language variant alternatives
16888 language=zh variant=zh-tw
16890 -{zh:China;zh-tw:Taiwan}-, not China
16892 <p>Taiwan, not China
16898 Conversion around HTML tags
16900 language=sr variant=sr-ec
16902 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
16903 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
16906 <span title="ЛаCтин">ски</span>
16912 Explicit session-wise language variant mapping (A flag and - flag)
16914 language=zh variant=zh-tw
16916 Taiwan is not China.
16917 But -{A|zh:China;zh-tw:Taiwan}- is China,
16918 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
16919 and -{China}- is China.
16921 <p>Taiwan is not China.
16922 But Taiwan is Taiwan,
16923 (This should be stripped!)
16924 and China is China.
16929 Explicit session-wise language variant mapping (H flag for hide)
16931 language=zh variant=zh-tw
16933 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
16936 <p>(This should be stripped!)
16942 Adding explicit conversion rule for title (T flag)
16944 language=zh variant=zh-tw showtitle
16946 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
16949 <p>Should be stripped!
16954 Testing that changing the language variant here in the tests actually works
16956 language=zh variant=zh showtitle
16958 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
16961 <p>Should be stripped!
16966 Recursive conversion of alt and title attrs shouldn't clear converter state
16968 language=zh variant=zh-cn showtitle
16970 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
16971 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
16975 Should be stripped<span title="Exclamation">!</span>
16980 Bug 24072: more test on conversion rule for title
16982 language=zh variant=zh-tw showtitle
16984 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
16985 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
16988 <p>This should be stripped!
16989 This won't take interferes with the title rule.
16994 Partly disable title conversion if variant == main language code
16996 language=zh variant=zh title=[[ZH]] showtitle
16998 -{T|zh-cn:CN;zh-tw:TW}-
17006 Partly disable title conversion if variant == main language code, more
17008 language=zh variant=zh title=[[ZH]] showtitle
17018 Raw output of variant escape tags (R flag)
17020 language=zh variant=zh-tw
17022 Raw: -{R|zh:China;zh-tw:Taiwan}-
17024 <p>Raw: zh:China;zh-tw:Taiwan
17029 Nested using of manual convert syntax
17031 language=zh variant=zh-hk
17033 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
17035 <p>Nested: Hello Hong Kong!
17040 Proper conversion of text in external links
17042 language=sr variant=sr-ec
17044 http://www.google.com
17045 gopher://www.google.com
17046 [http://www.google.com http://www.google.com]
17047 [gopher://www.google.com gopher://www.google.com]
17048 [https://www.google.com irc://www.google.com]
17049 [ftp://www.google.com www.google.com/ftp://dir]
17050 [//www.google.com www.google.com]
17052 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
17053 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
17054 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
17055 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
17056 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
17057 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
17058 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
17063 Do not convert roman numbers to language variants
17065 language=sr variant=sr-ec
17069 <p>Фридрих IV је цар.
17074 Unclosed language converter markup "-{"
17085 Don't convert raw rule "-{R|=>}-" to "=>"
17096 Don't break link parsing if language converter markup is in the caption.
17098 language=sr variant=sr-ec
17100 [[Main Page|-{R|main page}-]]
17102 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
17106 # This test is currently broken in the PHP parser (bug 52661)
17108 Don't break image parsing if language converter markup is in the caption.
17113 [[File:Foobar.jpg|-{R|caption}-]]
17115 <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>
17119 # This test is currently broken in the PHP parser (bug 52661)
17121 Don't break list handling if language converter markup is in the item.
17123 language=zh variant=zh-cn
17126 ;-{zh-cn:AAA;zh-tw:BBB}-
17133 # This test is currently broken in the PHP parser (bug 52661)
17135 Don't break table handling if language converter markup is in the cell.
17137 language=sr variant=sr-ec
17154 Bug 529: Uncovered bullet
17163 # Plain MediaWiki does not remove empty lists, but tidy actually does.
17164 # Templates in Wikipedia rely on this behavior, as tidy has always been
17165 # enabled there. These tests are normally run *without* tidy, so specify the
17166 # full output here.
17167 # To test realistic parsing behavior, apply a tidy-like transformation to both
17168 # the expected output and your parser's output.
17170 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
17172 ******* Foo {{bullet}}
17174 <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>
17180 Bug 529: Uncovered table already at line-start
17203 Bug 529: Uncovered bullet in parser function result
17205 * Foo {{lc:{{bullet}} }}
17213 Bug 5678: Double-parsed template argument
17215 {{lc:{{{1}}}|hello}}
17222 Bug 5678: Double-parsed template invocation
17224 {{lc:{{paramtest {{!}} param = hello }} }}
17226 <p>{{paramtest | param = hello }}
17231 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
17234 title=[[Main Page]]
17236 {{PRVNÍVELKÉ:ěščř}}
17237 {{prvnívelké:ěščř}}
17257 Morwen/13: Unclosed link followed by heading
17264 <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>
17269 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
17276 <h1><span class="mw-headline" id="heading">heading</span></h1>
17281 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
17288 <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>
17303 Paragraphs inside divs (no extra line breaks)
17315 Paragraphs inside divs (extra line break on open)
17330 Paragraphs inside divs (extra line break on close)
17345 Paragraphs inside divs (extra line break on open and close)
17362 Nesting tags, paragraphs on lines which begin with <div>
17366 <div></div><strong>A
17375 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
17377 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
17379 <blockquote>Line one
17381 Line two</blockquote>
17383 <blockquote>Line one
17384 Line two</blockquote>
17388 <p>Line one Line two</p>
17393 Bug 6200: paragraphs inside blockquotes (extra line break on open)
17398 Line two</blockquote>
17403 Line two</blockquote>
17408 Line two</blockquote>
17412 Bug 6200: paragraphs inside blockquotes (extra line break on close)
17414 <blockquote>Line one
17419 <blockquote>Line one
17432 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
17454 Paragraphs inside blockquotes/divs (no extra line breaks)
17456 <blockquote><div>Line one
17458 Line two</div></blockquote>
17460 <blockquote><div>Line one
17461 Line two</div></blockquote>
17466 Paragraphs inside blockquotes/divs (extra line break on open)
17471 Line two</div></blockquote>
17476 Line two</div></blockquote>
17481 Paragraphs inside blockquotes/divs (extra line break on close)
17483 <blockquote><div>Line one
17486 </div></blockquote>
17488 <blockquote><div>Line one
17491 </div></blockquote>
17496 Paragraphs inside blockquotes/divs (extra line break on open and close)
17502 </div></blockquote>
17508 </div></blockquote>
17513 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
17515 wgLinkHolderBatchSize=0
17521 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
17522 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
17523 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
17528 Free external link invading image caption
17530 [[Image:Foobar.jpg|thumb|http://x|hello]]
17532 <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>
17537 Bug 15196: localised external link numbers
17541 [http://en.wikipedia.org/]
17543 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
17546 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/"></a></p>
17550 Multibyte character in padleft
17552 {{padleft:-Hello|7|Æ}}
17559 Multibyte character in padright
17561 {{padright:Hello-|7|Æ}}
17568 formatdate parser function
17570 {{#formatdate:2009-03-24}}
17572 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
17577 formatdate parser function, with default format
17579 {{#formatdate:2009-03-24|mdy}}
17581 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
17586 Spacing of numbers in formatted dates
17588 {{#formatdate:January 15}}
17590 <p><span class="mw-formatted-date" title="01-15">January 15</span>
17595 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
17597 language=nl title=[[MediaWiki:Common.css]]
17599 {{#formatdate:2009-03-24|dmy}}
17601 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
17614 Edit comment with link
17618 I like the [[Main Page]] a lot
17620 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
17624 Edit comment with link and link text
17628 I like the [[Main Page|best pages]] a lot
17630 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
17634 Edit comment with link and link text with suffix
17638 I like the [[Main Page|best page]]s a lot
17640 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
17644 Edit comment with section link (non-local, eg in history list)
17646 comment title=[[Main Page]]
17648 /* External links */ removed bogus entries
17650 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
17654 Edit comment with section link and text before it (non-local, eg in history list)
17656 comment title=[[Main Page]]
17658 pre-comment text /* External links */ removed bogus entries
17660 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>
17664 Edit comment with section link (local, eg in diff view)
17666 comment local title=[[Main Page]]
17668 /* External links */ removed bogus entries
17670 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
17674 Edit comment with subpage link (bug 14080)
17678 title=[[Subpage test]]
17680 Poked at a [[/subpage]] here...
17682 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
17686 Edit comment with subpage link and link text (bug 14080)
17690 title=[[Subpage test]]
17692 Poked at a [[/subpage|neat little page]] here...
17694 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
17698 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
17701 title=[[Subpage test]]
17703 Poked at a [[/subpage]] here...
17705 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
17709 Edit comment with bare anchor link (local, as on diff)
17713 title=[[Main Page]]
17717 <a href="#section">#section</a>
17721 Edit comment with bare anchor link (non-local, as on history)
17724 title=[[Main Page]]
17728 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
17732 Anchor starting with underscore
17736 <p><a href="#_ref">One</a>
17741 Id starting with underscore
17743 <div id="_ref"></div>
17745 <div id="_ref"></div>
17750 Space normalisation on autocomment (bug 22784)
17753 title=[[Main Page]]
17755 /* __hello__world__ */
17757 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
17761 percent-encoding and + signs in comments (Bug 26410)
17765 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
17767 <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>
17771 Bad images - basic functionality
17780 Bad images - bug 16039: text after bad image disappears
17794 Verify that displaytitle works (bug #22501) no displaytitle
17798 wgAllowDisplayTitle=true
17799 wgRestrictDisplayTitle=false
17801 this is not the the title
17804 <p>this is not the the title
17809 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
17814 wgAllowDisplayTitle=true
17815 wgRestrictDisplayTitle=false
17817 this is not the the title
17818 {{DISPLAYTITLE:whatever}}
17821 <p>this is not the the title
17826 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
17831 wgAllowDisplayTitle=true
17832 wgRestrictDisplayTitle=true
17834 this is not the the title
17835 {{DISPLAYTITLE:whatever}}
17838 <p>this is not the the title
17843 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
17848 wgAllowDisplayTitle=true
17849 wgRestrictDisplayTitle=true
17851 this is not the the title
17852 {{DISPLAYTITLE:screen}}
17855 <p>this is not the the title
17860 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
17865 wgAllowDisplayTitle=false
17867 this is not the the title
17868 {{DISPLAYTITLE:screen}}
17871 <p>this is not the the title
17872 <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>
17877 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
17882 wgAllowDisplayTitle=false
17884 this is not the the title
17887 <p>this is not the the title
17892 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
17897 wgAllowDisplayTitle=true
17898 wgRestrictDisplayTitle=true
17900 this is not the the title
17901 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
17903 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
17904 <p>this is not the the title
17909 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
17914 wgAllowDisplayTitle=true
17915 wgRestrictDisplayTitle=true
17917 this is not the the title
17918 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
17920 <span style="color: red;">s</span>creen
17921 <p>this is not the the title
17926 preload: check <noinclude> and <includeonly>
17930 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
17936 preload: check <onlyinclude>
17940 Goodbye <onlyinclude>Hello world</onlyinclude>
17946 preload: can pass tags through if we want to
17950 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
17952 <includeonly>Hello world</includeonly>
17956 preload: check that it doesn't try to do tricks
17960 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
17962 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
17966 Play a bit with r67090 and bug 3158
17970 <div style="width:50% !important"> </div>
17971 <div style="width:50% !important"> </div>
17972 <div style="width:50% !important"> </div>
17973 <div style="border : solid;"> </div>
17975 <div style="width:50% !important"> </div>
17976 <div style="width:50% !important"> </div>
17977 <div style="width:50% !important"> </div>
17978 <div style="border : solid;"> </div>
17983 HTML5 data attributes
17985 <span data-foo="bar">Baz</span>
17986 <p data-abc-def_hij="">Quuz</p>
17988 <p><span data-foo="bar">Baz</span>
17990 <p data-abc-def_hij="">Quuz</p>
17995 percent-encoding and + signs in internal links (Bug 26410)
17997 [[User:+%]] [[Page+title%]]
17998 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
17999 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
18000 [[%33%45]] [[%33%45+]]
18002 <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>
18003 <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>
18004 <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>
18005 <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>
18010 Special characters in embedded file links (bug 27679)
18012 [[File:Contains & ampersand.jpg]]
18013 [[File:Does not exist.jpg|Title with & ampersand]]
18015 <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>
18016 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
18022 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
18024 Text's been normalized?
18026 <p>Text's been normalized?
18031 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
18033 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
18035 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
18040 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
18042 [http://www.example.org/ ideograms]
18044 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
18049 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
18051 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
18053 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
18077 Bug 31098 Template which includes system messages which includes the template
18081 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
18082 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
18087 Bug31490 Turkish: ucfirst 'blah'
18098 Bug31490 Turkish: ucfirst 'ix'
18109 Bug31490 Turkish: lcfirst 'BLAH'
18120 Bug31490 Turkish: ucfırst (with a dotless i)
18126 <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>
18131 Bug31490 ucfırst (with a dotless i) with English language
18137 <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>
18142 Bug 26375: TOC with italics
18144 title=[[Main Page]]
18147 == ''Lost'' episodes ==
18149 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18151 <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>
18155 <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>
18160 Bug 26375: TOC with bold
18162 title=[[Main Page]]
18165 == '''should be bold''' then normal text ==
18167 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18169 <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>
18173 <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>
18178 Bug 33845: Headings become cursive in TOC when they contain an image
18180 title=[[Main Page]]
18183 == Image [[Image:foobar.jpg]] ==
18185 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18187 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
18191 <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>
18196 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
18198 title=[[Main Page]]
18201 == <blockquote>Quote</blockquote> ==
18203 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18205 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
18209 <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>
18212 <div id="toc" class="toc">
18213 <div id="toctitle">
18217 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
18220 <h2><span class="mw-headline" id="Quote"></span></h2>
18222 <p><span class="mw-headline" id="Quote">Quote</span></p>
18224 <p><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></p>
18228 Unclosed tags in TOC
18230 title=[[Main Page]]
18234 <small>Hanc marginis exiguitas non caperet.</small>
18237 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18239 <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>
18243 <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>
18244 <p><small>Hanc marginis exiguitas non caperet.</small>
18250 Multiple tags in TOC
18253 == <i>Foo</i> <b>Bar</b> ==
18255 == <i>Foo</i> <blockquote>Bar</blockquote> ==
18257 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18259 <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>
18260 <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>
18264 <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>
18265 <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>
18268 <div id="toc" class="toc">
18269 <div id="toctitle">
18273 <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>
18274 <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>
18277 <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>
18278 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i></span></h2>
18280 <p><span class="mw-headline" id="Foo_Bar_2">Bar</span></p>
18282 <p><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></p>
18286 Tags with parameters in TOC
18289 == <sup class="in-h2">Hello</sup> ==
18291 == <sup class="a > b">Evilbye</sup> ==
18293 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18295 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
18296 <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>
18300 <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>
18301 <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>
18306 span tags with directionality in TOC
18309 == <span dir="ltr">C++</span> ==
18311 == <span dir="rtl">זבנג!</span> ==
18313 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
18315 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
18317 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
18319 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18321 <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>
18322 <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>
18323 <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>
18324 <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>
18325 <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>
18329 <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>
18330 <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>
18331 <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>
18332 <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>
18333 <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>
18340 == {{int:headline_sample}} ==
18344 Bug 32057: Title needed when expanding <h> nodes.
18346 title=[[Main Page]]
18350 <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>
18355 Strip marker in urlencode
18357 {{urlencode:x<nowiki/>y}}
18358 {{urlencode:x<nowiki/>y|wiki}}
18359 {{urlencode:x<nowiki/>y|path}}
18386 Strip marker in formatNum
18388 {{formatnum:1<nowiki/>2}}
18389 {{formatnum:1<nowiki/>2|R}}
18397 Check noCommafy in formatNum
18401 {{formatnum:123456.78}}
18402 {{formatnum:123456.78|NOSEP}}
18410 Wrong option for formatNum (bug 56199)
18412 {{formatnum:1,234.56|Random}}
18413 {{formatnum:1,234.56|EVERYTHING}}
18414 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
18423 Strip marker in grammar
18427 {{grammar:elative|foo<nowiki/>bar}}
18434 Strip marker in padleft
18436 {{padleft:|2|x<nowiki/>y}}
18443 Strip marker in padright
18445 {{padright:|2|x<nowiki/>y}}
18452 Strip marker in anchorencode
18454 {{anchorencode:x<nowiki/>y}}
18461 nowiki inside link inside heading (bug 18295)
18463 ==[[foo|x<nowiki>y</nowiki>z]]==
18465 <h2><span class="mw-headline" id="xyz"><a href="/wiki/Foo" title="Foo">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>
18470 new support for bdi element (bug 31817)
18472 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
18474 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
18479 Ignore pipe between table row attributes
18483 |- id=foo | style='color: red'
18491 <tr id="foo" style="color: red">
18498 Gallery override link with WikiLink (bug 34852)
18501 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
18504 <ul class="gallery mw-gallery-traditional">
18505 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
18506 <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>
18507 <div class="gallerytext">
18517 Gallery override link with absolute external link (bug 34852)
18520 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
18523 <ul class="gallery mw-gallery-traditional">
18524 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
18525 <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>
18526 <div class="gallerytext">
18536 Gallery override link with malicious javascript (bug 34852)
18539 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
18542 <ul class="gallery mw-gallery-traditional">
18543 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
18544 <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>
18545 <div class="gallerytext">
18555 Gallery with invalid title as link (bug 43964)
18558 File:foobar.jpg|link=<
18561 <ul class="gallery mw-gallery-traditional">
18562 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
18563 <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>
18564 <div class="gallerytext">
18572 Language parser function
18581 Padleft and padright as substr
18583 {{padleft:|3|abcde}}
18584 {{padright:|3|abcde}}
18592 Special parser function
18594 {{#special:RandomPage}}
18595 {{#special:BaDtItLe}}
18596 {{#special:Foobar}}
18605 Bug 34939 - Case insensitive link parsing ([HttP://])
18607 [HttP://MediaWiki.Org/]
18609 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
18612 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/"></a></p>
18616 Bug 34939 - Case insensitive link parsing ([HttP:// title])
18618 [HttP://MediaWiki.Org/ MediaWiki]
18620 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
18625 Bug 34939 - Case insensitive link parsing (HttP://)
18627 HttP://MediaWiki.Org/
18629 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
18632 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a></p>
18650 <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>
18651 <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>
18652 <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>
18653 <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>
18654 <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>
18660 ### Parsoid-specific tests
18661 ### Parsoid-PHP parser incompatibilities
18664 1. SOL-sensitive wikitext tokens as template-args
18666 parsoid=wt2html,wt2wt
18672 <span about="#mwt1" typeof="mw:Transclusion">
18673 </span><ul about="#mwt1"><li>a</li>
18675 <span about="#mwt2" typeof="mw:Transclusion">
18676 </span><ol about="#mwt2"><li>a</li>
18678 <span about="#mwt3" typeof="mw:Transclusion">
18679 </span><dl about="#mwt3"><dd>a</dd>
18683 #### -----------------------------------------------------------------
18684 #### Parsoid-specific functionality tests
18685 #### -----------------------------------------------------------------
18687 # Bug 63642: Formatting elt fixup is cleaned up.
18688 # We know wt2wt will fail, but we expect selser to pass.
18689 # Due to the nature of our testing, wt2wt and selser tests will enter the
18690 # blacklist and we'll catch selser regressions based on changes to the
18691 # blacklist entries for selser tests.
18693 Bad treebuilder fixup of formatting elt is cleaned up
18695 parsoid=wt2html,wt2wt
18700 [[Image:Foobar.jpg|right|Test]]
18706 <p><small></small></p>
18707 <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>
18712 #### ----------------------------------------------------------------
18713 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
18714 #### tags. Parsoid's output for these tags differs from that of the
18716 #### ----------------------------------------------------------------
18719 Ref: 1. ref-location should be replaced with an index span
18724 B <ref name="x">foo</ref>
18727 <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>
18728 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>
18729 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>
18733 Ref: 2. ref-tags with identical names should all get the same index
18737 A <ref name="x">foo</ref>
18740 <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>
18741 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>
18745 Ref: 3. spaces in ref-names should be ignored
18749 A <ref name="x">foo</ref>
18750 B <ref name=" x " />
18753 <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>
18754 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>
18755 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>
18759 Ref: 4. 'constructor' should be accepted as a valid ref-name
18760 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
18764 A <ref name="constructor">foo</ref>
18766 <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>
18770 Ref: 5. body should accept generic wikitext
18775 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
18780 <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>
18782 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
18783 <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>
18789 Ref: 6. indent-pres should not be output in ref-body
18801 <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>
18803 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
18804 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
18812 Ref: 7. No p-wrapping in ref-body
18831 <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>
18833 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
18834 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
18849 Ref: 8. transclusion wikitext has lower precedence
18853 A <ref> foo {{echo|</ref> B C}}
18857 <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>
18858 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
18859 <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>
18864 Ref: 9. unclosed comments should not leak out of ref-body
18868 A <ref> foo <!--</ref> B C
18871 <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>
18872 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
18873 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
18878 Ref: 10. Unclosed HTML tags should not leak out of ref-body
18882 A <ref> <b> foo </ref> B C
18886 <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>
18889 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
18890 <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>
18895 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
18902 <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
18903 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>
18907 Ref: 12. ref-tags act as trailing newline migration barrier
18911 <!--the newline at the end of this line moves out of the p-tag-->a
18913 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
18918 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
18921 <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>
18922 <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>
18929 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
18937 <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
18938 <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>
18942 Ref: 14. A nested ref-tag should be emitted as plain text
18946 <ref>foo <ref>bar</ref> baz</ref>
18950 <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>
18952 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
18953 <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>
18958 Ref: 15. ref-tags with identical names should get identical indexes
18962 A1 <ref name="a">foo</ref> A2 <ref name="a" />
18963 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
18967 <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>
18968 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>
18970 <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>
18974 ## We don't bother wt2wt-ing non-standard whitespace
18976 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
18984 <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>
18986 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
18987 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
18991 References: 1. references tag without any refs should be handled properly
18997 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
19001 References: 2. references tag with group only outputs references from that group
19005 A <ref group="a">foo</ref>
19006 B <ref group="b">bar</ref>
19008 <references group="a" />
19010 <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>
19011 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>
19013 <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>
19018 References: 3. ref list should be cleared after processing references
19030 <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>
19032 <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>
19035 <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>
19037 <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>
19042 References: 4. only referenced group should be cleared after processing references
19046 A <ref group="a">afoo</ref>
19049 <references group="a" />
19055 <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>
19056 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>
19058 <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>
19061 <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>
19063 <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>
19068 References: 5. ref tags in references should be processed while ignoring all other content
19073 B <ref name="b">bar</ref>
19076 <ref name="a">foo</ref>
19077 This should just get lost.
19080 <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>
19081 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>
19084 <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":{}}'>
19085 <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>
19086 <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>
19091 References: 6. <references /> from a transclusion
19095 <ref>Foo</ref> {{echo|<references />}}
19097 <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>
19101 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
19105 A <ref>foo bar for a</ref>
19106 B <ref group="X" name="b" />
19110 <references group="X">
19111 <ref name="b">foo</ref>
19114 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo bar for a"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>foo bar for a</ref>"}'><a href="#cite_note-1" data-parsoid="{}">[1]</a></span>
19115 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"group":"X","name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref group=\"X\" name=\"b\" />"}'><a href="#cite_note-b-2" data-parsoid="{}">[X 1]</a></span></p>
19117 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'><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 bar for a</li></ol>
19119 <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-2\">[X 1]</a></span>\n"},"attrs":{"group":"X"}}'><li about="#cite_note-b-2" id="cite_note-b-2" data-parsoid="{}"><span rel="mw:referencedBy" data-parsoid="{}"><a href="#cite_ref-b-2-0" data-parsoid="{}">↑</a></span> foo</li></ol>
19123 Entities in ref name
19127 <ref name="test & me">hi</ref>
19129 <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>
19132 # This test is wt2html only because we're permitting the serializer to produce
19133 # dirty diffs, normalizing the unclosed references to the self-closed version.
19135 Generate references for unclosed references tag
19143 <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>
19146 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
19147 <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>
19151 New reference serializes on its own line
19153 parsoid=wt2wt,html2wt
19158 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
19161 #### ----------------------------------------------------------------
19162 #### The following section of tests are primarily to test
19163 #### wikitext escaping capabilities of Parsoid. Given that
19164 #### escaping can be done any number of ways, the wikitext (input)
19165 #### is always adjusted to reflect how Parsoid adds nowiki
19168 #### We are marking several tests as parsoid-only since the
19169 #### HTML in the result section is different from what the
19170 #### PHP parser generates for it.
19171 #### ----------------------------------------------------------------
19174 #### --------------- Headings ---------------
19176 #### 1. Nested inside html <h1>=foo=</h1>
19177 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
19178 #### 3. Nested inside html with wikitext split by html tags
19179 #### 4. No escape needed
19180 #### 5. Empty headings <h1></h1>
19181 #### 6. Heading chars in SOL context
19182 #### ----------------------------------------
19184 Headings: 0. Unnested
19188 <nowiki>=foo=</nowiki>
19190 <nowiki> =foo= </nowiki>
19192 <nowiki>=foo=</nowiki>
19194 =foo''a''<nowiki>=</nowiki>
19196 <p><span typeof="mw:Nowiki">=foo=</span></p>
19198 <p><span typeof="mw:Nowiki"> =foo= </span>
19200 <span typeof="mw:Nowiki">=foo=</span></p>
19202 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
19206 Headings: 1. Nested inside html
19207 (New headings and existing headings are handled differently)
19217 =<nowiki>=foo=</nowiki>=
19218 ==<nowiki>=foo=</nowiki>==
19219 ===<nowiki>=foo=</nowiki>===
19220 ====<nowiki>=foo=</nowiki>====
19221 =====<nowiki>=foo=</nowiki>=====
19222 ======<nowiki>=foo=</nowiki>======
19229 <h1 data-parsoid='{}'>=foo=</h1>
19230 <h2 data-parsoid='{}'>=foo=</h2>
19231 <h3 data-parsoid='{}'>=foo=</h3>
19232 <h4 data-parsoid='{}'>=foo=</h4>
19233 <h5 data-parsoid='{}'>=foo=</h5>
19234 <h6 data-parsoid='{}'>=foo=</h6>
19238 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
19243 <nowiki>*</nowiki>bar
19249 <nowiki>=bar=</nowiki>
19257 Headings: 3. Nested inside html with wikitext split by html tags
19261 = ='''bold'''<nowiki>foo=</nowiki> =
19263 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
19267 Headings: 4a. No escaping needed (testing just h1 and h2)
19285 = <nowiki>=</nowiki> =
19293 <h1><i>=</i>foo=</h1>
19294 <h1><span typeof="mw:Nowiki">=</span></h1>
19298 Headings: 4b. No escaping needed (inside p-tags)
19313 Headings: 5. Empty headings
19325 =====<nowiki/>=====
19327 ======<nowiki/>======
19338 Headings: 6a. Heading chars in SOL context (with trailing spaces)
19342 <nowiki>=a=</nowiki>
19344 <nowiki>=a=</nowiki>
19346 <nowiki>=a=</nowiki>
19348 <nowiki>=a=</nowiki>
19357 Headings: 6b. Heading chars in SOL context (with trailing newlines)
19385 Headings: 6c. Heading chars in SOL context (leading newline break)
19390 <nowiki>=b=</nowiki>
19397 Headings: 6d. Heading chars in SOL context (with interspersed comments)
19401 <!--c0--><nowiki>=a=</nowiki>
19403 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
19405 <p><!--c0-->=a=</p>
19406 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
19410 Headings: 6d. Heading chars in SOL context (No escaping needed)
19419 #### --------------- Lists ---------------
19420 #### 0. Outside nests (*foo, etc.)
19421 #### 1. Nested inside html <ul><li>*foo</li></ul>
19422 #### 2. Inside definition lists
19423 #### 3. Only bullets at start should be escaped
19424 #### 4. No escapes needed
19425 #### 5. No unnecessary escapes
19426 #### 6. Escape bullets in SOL position
19427 #### 7. Escape bullets in a multi-line context
19428 #### ----------------------------------------
19431 Lists: 0. Outside nests
19433 <nowiki>*</nowiki>foo
19435 <nowiki>#</nowiki>foo
19437 <nowiki>;Foo:</nowiki>bar
19446 Lists: 1. Nested inside html
19448 *<nowiki>*foo</nowiki>
19450 *<nowiki>#foo</nowiki>
19452 *<nowiki>:foo</nowiki>
19454 *<nowiki>;foo</nowiki>
19456 #<nowiki>*foo</nowiki>
19458 #<nowiki>#foo</nowiki>
19460 #<nowiki>:foo</nowiki>
19462 #<nowiki>;foo</nowiki>
19464 <ul><li>*foo</li></ul>
19465 <ul><li>#foo</li></ul>
19466 <ul><li>:foo</li></ul>
19467 <ul><li>;foo</li></ul>
19468 <ol><li>*foo</li></ol>
19469 <ol><li>#foo</li></ol>
19470 <ol><li>:foo</li></ol>
19471 <ol><li>;foo</li></ol>
19476 Lists: 2. Inside definition lists
19478 ;<nowiki>;foo</nowiki>
19480 ;<nowiki>:foo</nowiki>
19482 ;<nowiki>:foo</nowiki>
19485 :<nowiki>:foo</nowiki>
19487 <dl><dt>;foo</dt></dl>
19488 <dl><dt>:foo</dt></dl>
19491 <dl><dd>:foo</dd></dl>
19496 Lists: 3. Only bullets at start of text should be escaped
19498 *<nowiki>*foo*bar</nowiki>
19500 *<nowiki>*foo</nowiki>''it''*bar
19502 <ul><li>*foo*bar</li></ul>
19503 <ul><li>*foo<i>it</i>*bar</li></ul>
19508 Lists: 4. No escapes needed
19529 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
19533 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
19539 Lists: 5. No unnecessary escapes
19541 * bar <span><nowiki>[[foo]]</nowiki></span>
19543 *=bar <span><nowiki>[[foo]]</nowiki></span>
19545 *[[bar <span><nowiki>[[foo]]</nowiki></span>
19547 *]]bar <span><nowiki>[[foo]]</nowiki></span>
19549 *=bar <span>foo]]</span>=
19553 <ul><li> bar <span>[[foo]]</span></li></ul>
19554 <ul><li>=bar <span>[[foo]]</span></li></ul>
19555 <ul><li>[[bar <span>[[foo]]</span></li></ul>
19556 <ul><li>]]bar <span>[[foo]]</span></li></ul>
19557 <ul><li>=bar <span>foo]]</span>=</li></ul>
19558 <ul><li> <s></s>: a</li></ul>
19563 Lists: 6. Escape bullets in SOL position
19567 <!--cmt--><nowiki>*foo</nowiki>
19569 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
19573 Lists: 7. Escape bullets in a multi-line context
19576 <nowiki>*</nowiki>b
19583 #### --------------- HRs ---------------
19584 #### 1. Single line
19585 #### -----------------------------------
19588 HRs: 1. Single line
19592 ----<nowiki>----</nowiki>
19596 <hr><span typeof="mw:Nowiki">----</span>
19601 #### --------------- Tables ---------------
19602 #### 1a. Simple example
19603 #### 1b. No escaping needed (!foo)
19604 #### 1c. No escaping needed (|foo)
19605 #### 1d. No escaping needed (|}foo)
19607 #### 2a. Nested in td (<td>foo|bar</td>)
19608 #### 2b. Nested in td (<td>foo||bar</td>)
19609 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
19611 #### 3a. Nested in th (<th>foo!bar</th>)
19612 #### 3b. Nested in th (<th>foo!!bar</th>)
19613 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
19617 #### 4c. No escaping needed
19618 #### --------------------------------------
19621 Tables: 1a. Simple example
19632 Tables: 1b. No escaping needed
19641 Tables: 1c. No escaping needed
19650 Tables: 1d. No escaping needed
19659 Tables: 2a. Nested in td
19664 |<nowiki>foo|bar</nowiki>
19666 |x<div><nowiki>a|b</nowiki></div>
19670 <td>foo|bar</td></tr>
19671 <tr><td>x<div>a|b</div></td>
19676 Tables: 2b. Nested in td
19681 |<nowiki>foo||bar</nowiki>
19682 |''it''<nowiki>foo||bar</nowiki>
19686 <td><span typeof="mw:Nowiki">foo||bar</span></td>
19687 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
19691 Tables: 2c. Nested in td -- no escaping needed
19699 <table><tbody><tr><td>foo!!bar
19700 </td></tr></tbody></table>
19705 Tables: 3a. Nested in th
19713 <table><tbody><tr><th>foo!bar
19714 </th></tr></tbody></table>
19719 Tables: 3b. Nested in th
19724 !<nowiki>foo!!bar</nowiki>
19728 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
19733 Tables: 3c. Nested in th -- no escaping needed
19738 !<nowiki>foo||bar</nowiki>
19742 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
19746 Tables: 4a. Escape -
19753 |<nowiki>-bar</nowiki>
19757 <tr><th>-bar</th></tr>
19759 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
19763 Tables: 4b. Escape +
19770 |<nowiki>+bar</nowiki>
19774 <tr><th>+bar</th></tr>
19776 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
19780 Tables: 4c. No escaping needed
19801 <tr><td>foo-bar</td><td>foo+bar</td></tr>
19802 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
19808 <div>a|b</div></td>
19813 Tables: 4d. No escaping needed
19824 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
19825 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
19826 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
19831 Tables: Digest broken attributes on table and tr tag
19847 #### --------------- Links ----------------
19848 #### 1. Quote marks in link text
19849 #### 2. Wikilinks: Escapes needed
19850 #### 3. Wikilinks: No escapes needed
19851 #### 4. Extlinks: Escapes needed
19852 #### 5. Extlinks: No escapes needed
19853 #### --------------------------------------
19855 Links 1. Quote marks in link text
19859 [[Foo|Foo<nowiki>''boo''</nowiki>]]
19861 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
19865 Links 2. WikiLinks: Escapes needed
19870 [[Foo|<nowiki>Foobar]</nowiki>]]
19871 [[Foo|x [Foobar] x]]
19872 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
19873 [[Foo|<nowiki>[[Bar]]</nowiki>]]
19874 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
19875 [[Foo|<nowiki>|Bar</nowiki>]]
19876 [[Foo|<nowiki>]]bar</nowiki>]]
19877 [[Foo|<nowiki>[[bar</nowiki>]]
19878 [[Foo|<nowiki>x [[ y</nowiki>]]
19879 [[Foo|<nowiki>x ]] y</nowiki>]]
19880 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
19882 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
19883 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
19884 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
19885 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
19886 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
19887 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
19888 <a href="Foo" rel="mw:WikiLink">|Bar</a>
19889 <a href="Foo" rel="mw:WikiLink">]]bar</a>
19890 <a href="Foo" rel="mw:WikiLink">[[bar</a>
19891 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
19892 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
19893 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
19897 Links 3. WikiLinks: No escapes needed
19904 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
19905 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
19909 Links 4. ExtLinks: Escapes needed
19913 [http://google.com <nowiki>[google]</nowiki>]
19914 [http://google.com <nowiki>google]</nowiki>]
19916 <nowiki>[http://google.com]</nowiki>
19918 <nowiki>[http://google.com google]</nowiki>
19921 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
19922 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
19923 <p>[http://google.com]</p>
19924 <p>[http://google.com google]</p>
19928 Links 5. ExtLinks: No escapes needed
19932 [http://google.com [google]
19934 <a href="http://google.com" rel="mw:ExtLink">[google</a>
19938 Links 6. Add <nowiki/>s between text-nodes and url-links when required (bug 64300)
19940 <p>x<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>y
19941 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>?x
19942 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>&x
19943 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>'x
19944 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,x
19945 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.x
19946 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
19947 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>:x
19948 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
19949 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>!x
19950 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>=x
19951 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>(x)
19952 <a rel="mw:ExtLink" href="http://example.com(x" data-parsoid='{"stx":"url"}'>http://example.com(x</a>)
19955 x<nowiki/>http://example.com<nowiki/>y
19956 http://example.com<nowiki/>?x
19957 http://example.com<nowiki/>&x
19958 http://example.com<nowiki/>'x
19959 http://example.com<nowiki/>,x
19960 http://example.com<nowiki/>.x
19961 http://example.com<nowiki/>;x
19962 http://example.com<nowiki/>:x
19963 http://example.com<nowiki/>;x
19964 http://example.com<nowiki/>!x
19965 http://example.com<nowiki/>=x
19966 http://example.com<nowiki/>(x)
19967 http://example.com(x<nowiki/>)
19971 Links 7a. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
19974 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>
19976 "<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>"
19977 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>)
19978 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>) foo
19979 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,
19980 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>, foo
19986 "http://example.com"
19987 (http://example.com)
19988 (http://example.com) foo
19989 http://example.com,
19990 http://example.com, foo
19993 ## Parsoid currently fails wt2html on this one!
19995 Links 7b. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
19997 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.,;:!?</p>
19999 http://example.com.,;:!?
20003 Links 8. Add <nowiki/>s between text-nodes and RFC-links when required (bug 64300)
20005 <p><a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>4</p>
20011 Links 9. Don't add spurious <nowiki/>s between text-nodes and RFC-links (bug 64300)
20013 <p>x<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
20014 X<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
20015 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>?foo
20016 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>&foo
20026 Links 10. Add <nowiki/>s between text-nodes and PMID-links when required (bug 64300)
20028 <p><a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>4
20034 Links 11. Don't add spurious <nowiki/>s between text-nodes and PMID-links (bug 64300)
20036 <p>x<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
20037 X<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
20038 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>?foo
20039 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>&foo
20049 Links 12. Add <nowiki/>s between text-nodes and ISBN-links when required (bug 64300)
20051 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>1
20052 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>x
20053 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>b
20056 ISBN 1234567890<nowiki/>1
20057 ISBN 1234567890<nowiki/>x
20058 ISBN 1234567890<nowiki/>b
20062 Links 12. Don't add spurious <nowiki/>s between text-nodes and ISBN-links (bug 64300)
20064 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>'s
20069 #### --------------- Quotes ---------------
20070 #### 1. Quotes inside <b> and <i>
20071 #### 2. Link fragments separated by <i> and <b> tags
20072 #### 3. Link fragments inside <i> and <b>
20073 #### 4. No escaping needed
20074 #### --------------------------------------
20076 1. Quotes inside <b> and <i>
20078 parsoid=html2wt,wt2wt
20080 ''<nowiki>'foo'</nowiki>''
20081 ''<nowiki>''foo''</nowiki>''
20082 ''<nowiki>'''foo'''</nowiki>''
20084 '''<nowiki>'foo'</nowiki>'''
20085 '''<nowiki>''foo''</nowiki>'''
20086 '''<nowiki>'''foo'''</nowiki>'''
20087 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
20088 '''foo'''<nowiki/>'s
20091 '<nowiki/>''foo''<nowiki/>'
20093 '''foo'''<nowiki/>'
20094 '<nowiki/>'''foo'''<nowiki/>'
20095 ''fools'<span> errand</span>''
20096 ''<span>fool</span>'s errand''
20105 <b>foo'<i>bar'</i>baz</b>
20113 <i>fools'<span> errand</span></i>
20114 <i><span>fool</span>'s errand</i>
20118 2. Link fragments separated by <i> and <b> tags
20120 [[''foo''<nowiki>hello]]</nowiki>
20122 [['''foo'''<nowiki>hello]]</nowiki>
20124 <p>[[<i>foo</i>hello]]
20125 </p><p>[[<b>foo</b>hello]]
20130 3. Link fragments inside <i> and <b>
20131 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
20132 this is one of the shortcomings of this format)
20134 ''[[foo''<nowiki>]]</nowiki>
20136 '''[[foo'''<nowiki>]]</nowiki>
20139 </p><p><b>[[foo</b>]]
20144 4. No escaping needed
20146 '<span>''bar''</span>'
20147 '<span>'''bar'''</span>'
20149 <p>'<span><i>bar</i></span>'
20150 '<span><b>bar</b></span>'
20154 #### ----------- Paragraphs ---------------
20155 #### 1. No unnecessary escapes
20156 #### --------------------------------------
20159 1. No unnecessary escapes
20161 bar <span><nowiki>[[foo]]</nowiki></span>
20163 =bar <span><nowiki>[[foo]]</nowiki></span>
20165 [[bar <span><nowiki>[[foo]]</nowiki></span>
20167 ]]bar <span><nowiki>[[foo]]</nowiki></span>
20169 =bar <span>foo]]</span><nowiki>=</nowiki>
20171 <p>bar <span>[[foo]]</span>
20172 </p><p>=bar <span>[[foo]]</span>
20173 </p><p>[[bar <span>[[foo]]</span>
20174 </p><p>]]bar <span>[[foo]]</span>
20175 </p><p>=bar <span>foo]]</span>=
20179 #### ----------------------- PRE --------------------------
20180 #### 1. Leading whitespace in SOL context should be escaped
20181 #### ------------------------------------------------------
20183 1. Leading whitespace in SOL context should be escaped
20187 <nowiki> </nowiki>a
20189 <nowiki> </nowiki> a
20191 <nowiki> </nowiki>a(tab)
20193 <nowiki> </nowiki> a
20195 <nowiki> </nowiki> a
20198 <nowiki> </nowiki>b
20201 <nowiki> </nowiki>b
20204 <nowiki> </nowiki> b
20210 <p><!--cmt--> a</p>
20220 2. Leading whitespace in non-indent-pre contexts should not be escaped
20227 <p>foo <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"<i data-parsoid='{\"dsr\":[9,14,2,2]}'>a</i>\n b"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
20231 3. Leading whitespace in indent-pre suppressing contexts should not be escaped
20250 4. Leading whitespace in indent-pre suppressing contexts should not be escaped
20254 [[File:Foobar.jpg|thumb|caption]]
20257 <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>
20261 5. Nowiki escaping should account for indent-pres
20270 #### --------------- Behavior Switches --------------------
20272 1. Valid behavior switches should be escaped
20276 <nowiki>__TOC__</nowiki>
20277 ''<nowiki>__TOC__</nowiki>''
20284 2. Invalid behavior switches should not be escaped
20295 #### --------------- HTML tags ---------------
20298 #### 3. multi-line html tag
20299 #### 4. extension tags
20300 #### -----------------------------------------
20306 <a href="http://google.com">google</a>
20308 <a href="http://google.com">google</a>
20314 <nowiki><div>foo</div>
20315 <div style="color:red">foo</div></nowiki>
20317 <p><div>foo</div>
20318 <div style="color:red">foo</div>
20323 3. multi-line html tag
20338 <nowiki><ref>foo</ref></nowiki>
20340 <nowiki><ref>bar</nowiki>
20342 baz<nowiki></ref></nowiki>
20344 <p><ref>foo</ref>
20345 </p><p><ref>bar
20346 </p><p>baz</ref>
20350 #### --------------- Others ---------------
20354 <nowiki>foo</nowiki>
20356 <p><nowiki>foo</nowiki>
20360 ## The quote-char in the input is necessary for triggering the bug
20362 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
20364 parsoid=wt2wt,html2wt
20373 Tag-like HTML structures are passed through as text
20395 </p><p>1<d e>f
20400 # This was a bug in the PHP parser (see bug 17663 and its dups,
20401 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
20403 Tag names followed by punctuation should not be recognized as tags
20407 <p><s.ome> text
20412 HTML tag with necessary entities in attributes
20414 <span title="&amp;">foo</span>
20416 <p><span title="&amp;">foo</span>
20421 HTML tag with 'unnecessary' entity encoding in attributes
20423 <span title="&">foo</span>
20425 <p><span title="&">foo</span>
20430 HTML tag with broken attribute value quoting
20432 <span title="Hello world>Foo</span>
20434 <p><span>Foo</span>
20439 Parsoid-only: HTML tag with broken attribute value quoting
20443 <span title="Hello world>Foo</span>
20445 <p><span title="Hello world">Foo</span>
20450 Table with broken attribute value quoting
20453 | title="Hello world|Foo
20464 Table with broken attribute value quoting on consecutive lines
20467 | title="Hello world|Foo
20468 | style="color:red|Bar
20481 Parsoid-only: Table with broken attribute value quoting on consecutive lines
20486 | title="Hello world|Foo
20487 | style="color:red|Bar
20492 <td title="Hello world">Foo
20493 </td><td style="color: red">Bar
20494 </td></tr></tbody></table>
20499 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
20509 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
20519 Accept empty td cell attribute
20522 | align="center" | foo || |
20527 <td align="center"> foo </td>
20534 Non-empty attributes in th-cells
20537 ! Foo !! style="color: red" | Bar
20543 <th style="color: red"> Bar
20549 Accept empty attributes in th-cells
20564 Empty table rows go away
20585 ### Parsoid-centric tests for testing RTing of inter-element separators
20586 ### Edge cases not tested by existing parser tests and specific to
20587 ### Parsoid-specific serialization strategies.
20591 RT-ed inter-element separators should be valid separators
20604 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
20605 (Parsoid-only since PHP parser relies on Tidy for correct output)
20621 Empty TD followed by TD with tpl-generated attribute
20626 |{{echo|style='color:red'}}|foo
20640 Indented table with an empty td
20659 Indented block & table
20673 <div data-parsoid='{"stx":"html"}'>foo</div>
20675 <tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>foo</td></tr>
20680 Indent and comment before table row
20694 <table data-parsoid='{}'>
20695 <!--hi--><tbody data-parsoid='{}'><tr data-parsoid='{"startTagSrc":"|-","autoInsertedEnd":true}'>
20696 <td data-parsoid='{"autoInsertedEnd":true}'> there</td></tr>
20701 Empty TR followed by a template-generated TR
20702 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
20708 {{echo|<tr><td>foo</td></tr>}}
20714 <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}}]}'>
20719 ## PHP and parsoid output differ for this, and since this is primarily
20720 ## for testing Parsoid's serializer, marking this Parsoid only
20722 Empty TR followed by mixed-ws-comment line should RT correctly
20738 <!--c--> </tr><!--d-->
20744 Multi-line image caption generated by templates with/without trailing newlines
20748 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
20749 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
20751 <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>
20752 <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>
20757 New element inserted (without intervening newlines) after an old sol-transparent node should serialize correctly
20761 <includeonly>foo</includeonly>
20768 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>foo</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><p>new para</p>
20770 <link rel="mw:PageProp/Category" href="./Category:Foo" data-parsoid=''/><h1>new heading</h1>
20773 ## PHP emits broken html for this, and since this is primarily
20774 ## a Parsoid serializer test, marking this Parsoid only
20776 Improperly nested inline or quotes tags with whitespace in between
20780 <span> <s>x</span> </s>
20783 <p><span> <s>x</s></span><s> </s>
20784 <b> <i>x</i></b><i> </i>
20789 Encapsulate protected attributes from wt
20793 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
20795 <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>
20799 ## Currently the p-wrapper is fragile in how it adds / removes transformations.
20800 ## Having nested or stray pre tags results in the attempt to add duplicates,
20801 ## causing an assertion fail. This test tries to prevent that situation.
20803 Ensure ParagraphWrapper can deal with stray closing pre tags
20813 1. Ensure fostered text content is wrapped in spans
20817 <table>hi</table><table>ho</table>
20826 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
20828 parsoid=wt2html,wt2wt
20835 <span> || ||</span>
20844 Encapsulation properly handles null DSR information from foster box
20846 parsoid=wt2html,wt2wt
20848 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
20850 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
20853 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
20857 <td>bar</td></tr></tbody></table>
20861 1. Encapsulate foster-parented transclusion content
20863 parsoid=wt2wt,wt2html
20865 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
20867 <span typeof="mw:Transclusion" data-mw="{"parts":["
20868 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
20870 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
20874 <td>bar</td></tr></tbody></table>
20878 2. Encapsulate foster-parented transclusion content
20880 parsoid=wt2wt,wt2html
20882 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
20884 <div typeof="mw:Transclusion" data-mw="{"parts":["
20886 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
20888 <td>bar</td></tr></table>"]}">foo</div>
20892 <td>bar</td></tr></tbody></table>
20896 3. Encapsulate foster-parented transclusion content
20898 parsoid=wt2wt,wt2html
20900 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
20902 <div typeof="mw:Transclusion" data-mw="{"parts":["
20905 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
20907 <td>"}},"i":0}},"bar</td></tr></table>"]}">
20912 <td>bar</td></tr></tbody></table>
20916 4. Encapsulate foster-parented transclusion content
20918 parsoid=wt2wt,wt2html
20920 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
20922 <div typeof="mw:Transclusion" data-mw="{"parts":["
20925 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
20927 <td>"}},"i":0}},"bar</td></tr></table>"]}">
20932 <td>bar</td></tr></tbody></table>
20936 5. Encapsulate foster-parented transclusion content
20938 parsoid=wt2wt,wt2html
20940 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
20942 <span typeof="mw:Transclusion" data-mw="{"parts":["
20947 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
20953 <p>foo</p></div></td></tr></tbody></table>
20957 6. Encapsulate foster-parented transclusion content
20959 parsoid=wt2wt,wt2html
20961 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
20963 <span typeof="mw:Transclusion" data-mw="{"parts":["
20968 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
20974 <p>foo</p></div></td></tr></tbody></table>
20979 7. Encapsulate foster-parented transclusion content
20981 parsoid=wt2wt,wt2html
20983 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
20985 <p typeof="mw:Transclusion" data-mw="{"parts":["
20986 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
20987 <p>foo</p>"}},"i":0}},"
20988 <td>bar</td></table>"]}">foo</p>
20992 <td>bar</td></tr></tbody></table>
20996 8. Encapsulate foster-parented transclusion content
20998 parsoid=wt2wt,wt2html
21001 }}{|{{echo|style='color:red'}}
21006 <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>
21010 <td>b</td></tr></tbody></table>
21014 9. Encapsulate foster-parented transclusion content
21016 parsoid=wt2wt,wt2html
21018 <table>{{echo|hi</table>hello}}
21020 <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>
21021 <table about="#mwt2" data-parsoid='{"stx":"html"}'></table><span about="#mwt2" data-parsoid="{}">hello</span>
21025 Table in fosterable position
21027 parsoid=wt2html,wt2wt
21036 <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="{}">
21038 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
21044 # Parsoid only for bug 64747
21046 Properly encapsulate empty-content transclusions in fosterable positions
21054 <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>"}'>
21060 Support <object> element with .data attribute
21064 <object data="test.swf"></object>
21066 <object data="test.swf"></object>
21069 # -----------------------------------------------------------------
21070 # The following section of tests are primarily to spec requirements
21071 # around serialization of new/edited content.
21073 # All these tests are marked Parsoid html2wt and html2html only
21074 # ----------------------------------------------------------------
21077 Serialize interwiki links pointing to the current wiki as plain wiki links (bug 65869)
21084 <p><a rel="mw:ExtLink" href="http://es.wikipedia.org/wiki/Foo">Foo</a></p>
21088 Image: Modifying size of an image (1)
21091 "modes": ["wt2wt"],
21093 ["img[height]", "attr", "height", "22"],
21094 ["img[width]", "attr", "width", "200"]
21098 [[Image:Foobar.jpg|230x230px]]
21100 [[Image:Foobar.jpg|200x200px]]
21104 Image: Modifying size of an image (2)
21107 "modes": ["wt2wt"],
21109 ["img[height]", "attr", "height", "100"],
21110 ["img[width]", "attr", "width", "500"]
21114 [[Image:Foobar.jpg|230x230px]]
21116 [[Image:Foobar.jpg|500x500px]]
21119 # Change in size is ignored so long as class='mw-default-size'
21121 Image: Modifying size of an image (3)
21124 "modes": ["wt2wt"],
21126 ["figure[class]", "removeClass", "mw-default-size"],
21127 ["figure img", "attr", "height", "19"],
21128 ["figure img", "attr", "width", "170"]
21132 [[Image:Foobar.jpg|thumb]]
21134 [[Image:Foobar.jpg|thumb|170x170px]]
21138 Image: Modifying alignment of an image (bug 48665)
21141 "modes": ["wt2wt"],
21143 ["figure[class]", "removeClass", "mw-halign-right"],
21144 ["figure[class]", "addClass", "mw-halign-left"]
21148 [[Image:Foobar.jpg|thumb|caption|right]]
21150 [[Image:Foobar.jpg|thumb|caption|left]]
21154 Image: Modifying mw-default-size of an frameless image (bug 62805)
21157 "modes": ["wt2wt"],
21159 ["figure.mw-default-size", "removeClass", "mw-default-size"]
21163 [[Image:Foobar.jpg|frameless|right]]
21165 [[Image:Foobar.jpg|frameless|right|220x220px]]
21169 Image: Modifying valign of an image (bug 49221)
21172 "modes": ["wt2wt"],
21174 ["*[typeof=\"mw:Image\"]", "removeClass", "mw-valign-middle"],
21175 ["*[typeof=\"mw:Image\"]", "addClass", "mw-valign-text-top"]
21179 [[File:Foobar.jpg|20px|middle]]
21181 [[File:Foobar.jpg|20px|text-top]]
21185 Image: Modifying alt attribute of an image (bug 56400)
21188 "modes": ["wt2wt"],
21190 ["img[alt]", "attr", "alt", "some alternate edited text"]
21194 [[File:Foobar.jpg|thumb|some caption|alt=some alternate text]]
21196 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
21200 Image: Modifying caption of an image
21203 "modes": ["wt2wt"],
21205 ["figcaption", "text", "new caption"]
21209 [[Image:Foobar.jpg|thumb|original caption]]
21211 [[Image:Foobar.jpg|thumb|new caption]]
21215 Image: empty alt attribute (bug 48924)
21219 [[File:Foobar.jpg|thumb|alt=|bar]]
21221 <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>
21225 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
21230 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
21232 #<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>
21236 Image: Block level image should have \n before and after
21241 [[File:Foobar.jpg|right|thumb|150x150px]]
21244 <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>
21248 Image: New block level image should have \n before and after (existing
21254 [[File:Foobar.jpg|right|thumb|150x150px]]
21257 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
21258 <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>
21259 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
21263 Image: upright option (parsoid)
21267 [[File:Foobar.jpg|thumb|upright|caption]]
21268 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
21269 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
21271 <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>
21275 Image: upright option is ignored on inline and frame images (parsoid)
21279 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
21281 <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>
21285 Image: from basic HTML (1)
21289 <span typeof="mw:Image">
21290 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
21293 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
21297 Image: from basic HTML (2)
21301 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
21303 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
21307 Image: from basic HTML (3)
21311 <a href="Main"><img src="File:Foobar.jpg" width=100 height=100 alt="Alt"></a>
21313 [[File:Foobar.jpg|link=Main|alt=Alt|100x100px]]
21317 Image: from basic HTML (4)
21321 <img src="File:Foobar.jpg">
21323 [[File:Foobar.jpg|link=]]
21327 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
21334 <li><p>foo</p></li>
21339 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
21345 <ul> <li>foo</li></ul>
21349 Don't strip leading whitespace when handling indent-pre suppressing tags
21357 '''This is very bold of you!'''
21361 indented cell (no pre-wrapping!)
21368 <tr><td> indented row</td></tr>
21371 <b>This is very bold of you!</b>
21374 indented cell (no pre-wrapping!)
21382 Nowiki-wrap leading whitespace when handling indent-pre inducing tags
21387 <nowiki> </nowiki><span>bar</span>
21390 <nowiki> </nowiki></span>bar2
21393 <nowiki> </nowiki><span>bar</span>
21396 <nowiki> </nowiki><span>foo</span>
21414 Lists: Add space after bullets
21420 * <span> baz</span>
21425 <li><span> baz</span></li>
21430 Lists: Dont insert newlines in a serialized list item.
21437 <ul><li>a<br>b</li><li>c</li></ul>
21441 Headings: Add space before/after == (Bug 51744)
21451 == <span> baz</span> ==
21456 <h2><span> baz</span></h2>
21460 Parsoid: Serialize positional parameters with = in them as named parameter
21466 {{echo|1 = f=oo|2 = bar}}
21468 <!--Orig params with data-parsoid has heuristics for handling = chars-->
21469 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
21470 {{echo|<nowiki>f=oo</nowiki>|bar}}
21472 <p about="#mwt1" typeof="mw:Transclusion"
21473 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
21475 <p about="#mwt1" typeof="mw:Transclusion"
21476 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
21478 <!--Orig params with data-parsoid has heuristics for handling = chars-->
21479 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
21480 <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>
21484 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
21500 <div>a<p>b</p></div>
21509 Substrings resembling wikitext in hrefs should not get nowiki escapes
21515 <a rel="mw:WikiLink" href="./Foo''bar''baz">Foo''bar''baz</a>
21518 #-----------------------------
21519 # I/B quote minimization tests
21520 #-----------------------------
21523 1. I/B quote minimization: wikitext-only tags should be combined
21543 <p><i>A</i><i>B</i></p>
21544 <p><b>A</b><b>B</b></p>
21545 <p><i>A</i><b><i>B</i></b></p>
21546 <p><b>A</b><i><b>B</b></i></p>
21547 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
21548 <p><i><b>A</b></i><i><b>B</b></i></p>
21549 <p><i><b>A</b></i><b><i>B</i></b></p>
21550 <p><b><i>A</i></b><i><b>B</b></i></p>
21554 2. I/B quote minimization: wikitext and html tags should not be combined
21560 ''A'''''<i>B</i>'''
21562 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
21563 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
21567 3. I/B quote minimization: templated content stops minimization
21571 ''A''{{echo|''B''}}
21573 ''A''{{echo|'''''B'''''}}
21575 <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>
21576 <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>
21580 4. I/B quote minimization: new content should be mimimized with adjacent old content
21590 <p><i>A</i><i data-parsoid='{}'>B</i></p>
21591 <p><b data-parsoid='{}'>A</b><b>B</b></p>
21592 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
21595 #------------------------------------
21596 # End of I/B quote minimization tests
21597 #------------------------------------
21600 Bug 54262: New entities
21606 <span typeof="mw:Entity"> </span>
21609 ## Note that there is no wikitext output for 'unknownproperty' ##
21610 ## Unknown magic words are silently dropped ##
21625 __NOCONTENTCONVERT__
21627 <meta property='mw:PageProp/toc' />
21628 <meta property='mw:PageProp/notoc' />
21629 <meta property='mw:PageProp/forcetoc' />
21630 <meta property='mw:PageProp/index' />
21631 <meta property='mw:PageProp/noindex' />
21632 <meta property='mw:PageProp/nogallery' />
21633 <meta property='mw:PageProp/noeditsection' />
21634 <meta property='mw:PageProp/notitleconvert' />
21635 <meta property='mw:PageProp/nocontentconvert' />
21636 <meta property='mw:PageProp/unknownproperty' />
21640 Consecutive <pre>s should not get merged
21642 parsoid=html2wt,html2html
21658 <pre>a</pre><pre>b</pre>
21672 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
21676 [[Special:BookSources/1234567890|ISBN 1234567895]]
21678 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
21682 Edited RFC links not serializable as RFC links should serialize as extlinks
21686 [//tools.ietf.org/html/rfc123 New RFC]
21688 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
21692 Edited PMID links not serializable as PMID links should serialize as extlinks
21696 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
21698 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
21702 Edited Redirect link should emit a non-piped wikitext link
21708 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
21711 # -----------------------------------------------------------------
21712 # End of section for Parsoid-only html2wt tests for serialization
21714 # -----------------------------------------------------------------
21721 Try for 100% code coverage