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" title="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)" title="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" title="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" title="Main Page">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" title="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" title="7% 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" title="7% 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" title="Main Page">#<</a><a rel="mw:WikiLink" href="./Main%20Page#%3E" title="Main Page">#></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" title="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" title="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" title="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" title="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''" title="''Pentecoste''">''Pentecoste''</a></p>
6209 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''">Pentecoste</a></p>
6210 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''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" title="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" title="Bug462">Bug462</a> <a rel="mw:WikiLink" href="./Bug462" title="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" title="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" title="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" title="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" title="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" title="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" title="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" title="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" title="Foo" 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]]
6663 <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>
6665 <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>
6667 <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>
6669 <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>
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>
6673 <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 <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>
6679 Interwiki links that cannot be represented in wiki syntax
6682 [[meatball:ok#foo|ok with fragment]]
6683 [[meatball:ok_as_well?|ok ending with ? mark]]
6684 [http://de.wikipedia.org/wiki/Foo?action=history has query]
6685 [http://de.wikipedia.org/wiki/#foo is just fragment]
6688 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok">meatball:ok</a>
6689 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo">ok with fragment</a>
6690 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well?">ok ending with ? mark</a>
6691 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
6692 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
6696 Interwiki links: trail
6700 [[wikipedia:Foo|Ba]]r
6702 <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>
6706 Local interwiki link
6708 [[local:Template:Foo]]
6710 <p><a href="/wiki/Template:Foo" title="Template:Foo">local:Template:Foo</a>
6715 Local interwiki link: self-link to current page
6721 <p><strong class="selflink">local:Main Page</strong>
6726 Local interwiki link: prefix only (bug 64167)
6730 <p><a href="/wiki/Main_Page" title="Main Page">local:</a>
6735 Local interwiki link: with additional interwiki prefix (bug 61357)
6737 [[local:meatball:Hello]]
6739 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?Hello" class="extiw" title="meatball:Hello">local:meatball:Hello</a>
6744 ### Interlanguage links
6745 ### Language links (so that searching for '### language' matches..)
6758 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6762 Interlanguage link with spacing
6771 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6775 Double interlanguage link
6785 <link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/Spanish"/>
6786 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6790 Interlanguage link variations
6800 <link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/Spanish" data-parsoid='{"stx":"simple","a":{"href":"//es.wikipedia.org/wiki/Spanish"},"sa":{"href":" es :Spanish"}}'/>
6801 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese" data-parsoid='{"stx":"simple","a":{"href":"//zh.wikipedia.org/wiki/Chinese"},"sa":{"href":" ZH :Chinese"}}'/>
6805 Interlanguage link, with prefix links
6816 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6820 Double interlanguage link, with prefix links (bug 8897)
6832 <link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/Spanish"/>
6833 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/Chinese"/></p>
6837 "Extra" interlanguage links (bug 32189 / gerrit 111390)
6846 <link rel="mw:PageProp/Language" title="Multilingual" href="//wikisource.org/wiki/Article"/></p>
6850 Parsoid-specific test: Wikilinks with should RT properly
6856 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
6861 Parsoid bug 53221: Wikilinks should be properly entity-escaped
6865 He&nbsp;llo [[Foo|He&nbsp;llo]]
6867 He&nbsp;llo [[He&nbsp;llo]]
6869 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
6870 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
6874 Parsoid: handle constructor well
6882 <p><a rel="mw:WikiLink" href="./Constructor" title="Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
6884 <p><a rel="mw:WikiLink" href="./Foo" title="Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
6888 Parsoid: recognize interlanguage links without a target page
6894 <p><link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
6898 Parsoid: recognize interwiki links without a target page
6904 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
6908 Parsoid: Bug #45209, handle interwiki links pointing to the current wiki as plain wiki links
6914 <p><a rel="mw:WikiLink" href="./Foo" title="Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"en:Foo"}}'>Foo</a></p>
6918 Interlanguage link with preceding local interwiki link (bug 68085)
6921 [[local:es:Spanish]]
6924 <a href="http://es.wikipedia.org/wiki/Spanish" class="extiw" title="es:Spanish">local:es:Spanish</a>
6929 Looks like an interlanguage link, but is actually a local interwiki
6935 <a href="/wiki/Template:Foo" title="Template:Foo">mi:Template:Foo</a>
6940 ### Redirects, Parsoid-only
6943 1. Simple redirect to page
6947 #REDIRECT [[Main Page]]
6949 <link rel="mw:PageProp/redirect" href="./Main_Page">
6952 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
6954 2. Other redirect variants
6956 parsoid=wt2html,wt2wt
6958 #REDIRECT [[Main_Page]]
6959 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
6961 <link rel="mw:PageProp/redirect" href="./Main_Page">
6962 <link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
6968 parsoid=wt2html,wt2wt
6973 <li>REDIRECT [[]]</li></ol>
6977 Optional colon in #REDIRECT
6979 # the colon is archaic syntax. we support it for wt2html, but we
6980 # don't care that it roundtrips back to the modern syntax.
6981 parsoid=wt2html,html2html
6983 #REDIRECT:[[Main Page]]
6985 <link rel="mw:PageProp/redirect" href="./Main_Page">
6989 Whitespace in #REDIRECT with optional colon
6991 # the colon and gratuitous whitespace is archaic syntax. we support
6992 # it for wt2html, but we don't care that it roundtrips back to the
6993 # modern syntax (without extra whitespace)
6994 parsoid=wt2html,html2html
7001 <link rel="mw:PageProp/redirect" href="./Main_Page">
7005 Piped link in #REDIRECT
7007 # content after piped link is ignored. we support this syntax,
7008 # but don't care that the piped link is lost when we roundtrip this.
7011 #REDIRECT [[Main Page|bar]]
7013 <link rel="mw:PageProp/redirect" href="./Main_Page">
7017 Redirect to category
7021 #REDIRECT [[Category:Foo]]
7023 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7027 Redirect to category with URL encoding
7031 #REDIRECT [[Category%3AFoo]]
7033 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7037 Redirect to category page
7039 parsoid=wt2html,html2html
7041 #REDIRECT [[:Category:Foo]]
7043 <p><a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Category:Foo</a></p>
7047 Redirect to image page (1)
7051 #REDIRECT [[File:Wiki.png]]
7053 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7057 Redirect to image page (2)
7061 #REDIRECT [[Image:Wiki.png]]
7063 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7067 Redirect to language
7071 #REDIRECT [[en:File:Wiki.png]]
7073 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7077 Redirect to interwiki
7081 #REDIRECT [[meatball:File:Wiki.png]]
7083 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7087 Non-English #REDIRECT
7092 #TILVÍSUN [[Main Page]]
7094 <link rel="mw:PageProp/redirect" href="./Main_Page">
7105 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
7122 Broken br tag sanitization
7130 # TODO: Fix html2html mode (bug 51055)!
7131 # This </br> handling was added as part of bug 50831; but it
7132 # differs from how PHP+tidy handles this. We should investigate
7135 Parsoid: Broken br tag recognition
7151 Incorrecly removing closing slashes from correctly formed XHTML
7153 <br style="clear:both;" />
7155 <p><br style="clear:both;" />
7160 Failing to transform badly formed HTML into correct XHTML
7162 <br style="clear: left;">
7163 <br style="clear: right;">
7164 <br style="clear: both;">
7166 <p><br style="clear: left;" />
7167 <br style="clear: right;" />
7168 <br style="clear: both;" />
7173 Handling html with a div self-closing tag
7182 <p><div title />
7186 <p><div title=bar />
7187 <div title=bar/>
7189 <div title="bar/"></div>
7195 Handling html with a br self-closing tag
7204 <p><br title="title" />
7205 <br title="title" />
7222 Horizontal ruler (should it add that extra space?)
7236 Horizontal ruler -- 4+ dashes render hr
7245 Horizontal ruler -- eats additional dashes on the same line
7254 Horizontal ruler -- does not collapse dashes on consecutive lines
7265 Horizontal ruler -- <4 dashes render as plain text
7274 Horizontal ruler -- Supports content following dashes on same line
7286 ### Block-level elements
7295 <ul><li>Common list</li>
7297 <li>item 3</li></ul>
7308 <ol><li>Numbered list</li>
7310 <li> item 3</li></ol>
7324 ***#Number on level 4
7326 **#Number on level 3
7327 **#Number on level 3
7331 #** Level 3, but ordered
7334 <ol><li> with numbers</li></ol>
7335 <ul><li> and bullets</li></ul>
7336 <ol><li> and numbers</li></ol></li>
7338 <ul><li>bullet level 2
7339 <ul><li>bullet level 3
7340 <ol><li>Number on level 4</li></ol></li></ul></li>
7342 <ol><li>Number on level 3</li>
7343 <li>Number on level 3</li></ol></li></ul>
7344 <ol><li>number level 2</li></ol></li>
7346 <ul><li><ul><li> Level 3</li></ul></li></ul></li></ul>
7347 <ol><li><ul><li><ul><li> Level 3, but ordered</li></ul></li></ul></li></ol>
7358 <ul><li>bar</li></ul></li></ul>
7368 <ul><li><ul><li>foo</li></ul></li>
7374 Nested lists 3 (first element empty)
7380 <ul><li>bar</li></ul></li></ul>
7385 Nested lists 4 (first element empty)
7390 <ul><li><ul><li></li></ul></li>
7396 Nested lists 5 (both elements empty)
7401 <ul><li><ul><li></li></ul></li>
7407 Nested lists 6 (both elements empty)
7413 <ul><li></li></ul></li></ul>
7418 Nested lists 7 (skip initial nesting levels)
7422 <ul><li><ul><li><ul><li> foo</li></ul></li></ul></li></ul>
7427 Nested lists 8 (multiple nesting transitions)
7435 <ul><li><ul><li> bar</li></ul></li>
7436 <li> baz</li></ul></li>
7442 1. Lists with start-of-line-transparent tokens before bullets: Comments
7455 2. Lists with start-of-line-transparent tokens before bullets: Template close
7460 <ul><li>foo bar</li>
7466 List items are not parsed correctly following a <pre> block (bug 785)
7472 <ul><li> <pre>foo</pre></li>
7473 <li> <pre>bar</pre></li>
7479 List items from template
7490 * notSOL{{inner list}}
7493 <ul><li> item 1</li>
7494 <li> item 2</li></ul>
7495 <ul><li> item 0</li>
7497 <li> item 2</li></ul>
7498 <ul><li> item 0</li>
7501 <li> item 2</li></ul>
7506 List interrupted by empty line or heading
7514 <ul><li> foo</li></ul>
7515 <ul><li><ul><li> bar</li></ul></li></ul>
7516 <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>
7517 <ul><li> Another list item</li></ul>
7522 Multiple list tags generated by templates
7543 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
7546 <!--This line will NOT split the list-->
7548 <!--This line will NOT split the list either-->
7550 <!--foo--> <!----> <!--This line NOT split the list either-->
7561 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
7564 <!--This line will NOT split the list-->
7566 <!--This line will NOT split the list either-->
7568 <!--foo--> <!----> <!--This line NOT split the list
7581 (The PHP parser relies on Tidy for the hack)
7583 parsoid=wt2html,wt2wt
7587 * {{echo|<li>templated li-hack}}
7588 * <!--foo--> <li> unsupported li-hack with preceding comments
7591 <li><li>not a li-hack
7598 <li>templated li-hack</li>
7599 <li>unsupported li-hack with preceding comments</li>
7602 <li>not a li-hack</li>
7607 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
7634 Parsoid: Test of whitespace serialization with Templated bullets
7641 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
7645 # ------------------------------------------------------------------------
7646 # The next set of tests are about Parsoid's ability to handle badly nested
7647 # tags (parse, minimize scope of fixup, and roundtrip back)
7648 # ------------------------------------------------------------------------
7651 Unbalanced closing block tags break a list
7652 (php parser relies on Tidy to fix up)
7670 # Parsoid fails this test, but it might be tricky to support properly.
7673 Unbalanced closing non-block tags don't break a list
7674 (php parser relies on Tidy to fix up)
7681 <li><span>a</span></li>
7682 <li><span>b</span></li>
7696 Unclosed formatting tags that straddle lists are closed and reopened
7697 (php parser relies on Tidy to fix up)
7715 # Parsoid fails this test, but it might be tricky to support properly.
7718 List embedded in a non-block tag
7719 (Ugly Parsoid output -- worth fixing; PHP parser relies on Tidy)
7726 <li><small>foo</small></li>
7736 # This is a bug in the PHP parser + tidy combination.
7737 # (The </tr> tag gets parsed as text and html-escaped by PHP,
7738 # and then fostered out of the table by tidy.)
7739 # We believe the Parsoid output to be correct.
7741 Table with missing opening <tr> tag
7743 parsoid=wt2html,wt2wt
7768 # Note that the current date is hard-coded as
7769 # 1970-01-01T00:02:03Z (a Thursday)
7770 # when running parser tests. The timezone is also fixed to GMT, so
7771 # local date will be identical to current date.
7774 Magic Word: {{CURRENTDAY}}
7783 Magic Word: {{CURRENTDAY2}}
7792 Magic Word: {{CURRENTDAYNAME}}
7801 Magic Word: {{CURRENTDOW}}
7810 Magic Word: {{CURRENTMONTH}}
7819 Magic Word: {{CURRENTMONTH1}}
7828 Magic Word: {{CURRENTMONTHABBREV}}
7830 {{CURRENTMONTHABBREV}}
7837 Magic Word: {{CURRENTMONTHNAME}}
7839 {{CURRENTMONTHNAME}}
7846 Magic Word: {{CURRENTMONTHNAMEGEN}}
7848 {{CURRENTMONTHNAMEGEN}}
7855 Magic Word: {{CURRENTTIME}}
7864 Magic Word: {{CURRENTHOUR}}
7873 Magic Word: {{CURRENTWEEK}} (@bug 4594)
7882 Magic Word: {{CURRENTYEAR}}
7891 Magic Word: {{CURRENTTIMESTAMP}}
7893 {{CURRENTTIMESTAMP}}
7900 Magic Words LOCAL (UTC)
7904 * {{LOCALMONTHNAME}}
7905 * {{LOCALMONTHNAMEGEN}}
7906 * {{LOCALMONTHABBREV}}
7915 * {{LOCALTIMESTAMP}}
7930 <li> 19700101000203</li></ul>
7935 Magic Word: {{FULLPAGENAME}}
7937 title=[[User:Ævar Arnfjörð Bjarmason]]
7941 <p>User:Ævar Arnfjörð Bjarmason
7946 Magic Word: {{FULLPAGENAMEE}}
7948 title=[[User:Ævar Arnfjörð Bjarmason]]
7952 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7957 Magic Word: {{TALKSPACE}}
7959 title=[[User:Ævar Arnfjörð Bjarmason]]
7968 Magic Word: {{TALKSPACE}}, same namespace
7970 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7979 Magic Word: {{TALKSPACE}}, main namespace
7981 title=[[Parser Test]]
7990 Magic Word: {{TALKSPACEE}}
7992 title=[[User:Ævar Arnfjörð Bjarmason]]
8001 Magic Word: {{SUBJECTSPACE}}
8003 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8012 Magic Word: {{SUBJECTSPACE}}, same namespace
8014 title=[[User:Ævar Arnfjörð Bjarmason]]
8023 Magic Word: {{SUBJECTSPACE}}, main namespace
8025 title=[[Parser Test]]
8033 Magic Word: {{SUBJECTSPACEE}}
8035 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8044 Magic Word: {{NAMESPACE}}
8046 title=[[User:Ævar Arnfjörð Bjarmason]]
8055 Magic Word: {{NAMESPACEE}}
8057 title=[[User:Ævar Arnfjörð Bjarmason]]
8066 Magic Word: {{NAMESPACENUMBER}}
8068 title=[[User:Ævar Arnfjörð Bjarmason]]
8077 Magic Word: {{SUBPAGENAME}}
8079 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8088 Magic Word: {{SUBPAGENAMEE}}
8090 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8099 Magic Word: {{ROOTPAGENAME}}
8101 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8105 <p>Ævar Arnfjörð Bjarmason
8110 Magic Word: {{ROOTPAGENAMEE}}
8112 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8116 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8121 Magic Word: {{BASEPAGENAME}}
8123 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8127 <p>Ævar Arnfjörð Bjarmason
8132 Magic Word: {{BASEPAGENAMEE}}
8134 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8138 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8143 Magic Word: {{TALKPAGENAME}}
8145 title=[[User:Ævar Arnfjörð Bjarmason]]
8149 <p>User talk:Ævar Arnfjörð Bjarmason
8154 Magic Word: {{TALKPAGENAMEE}}
8156 title=[[User:Ævar Arnfjörð Bjarmason]]
8160 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8165 Magic Word: {{SUBJECTPAGENAME}}
8167 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8171 <p>User:Ævar Arnfjörð Bjarmason
8176 Magic Word: {{SUBJECTPAGENAMEE}}
8178 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8180 {{SUBJECTPAGENAMEE}}
8182 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8187 Magic Word: {{NUMBEROFFILES}}
8196 Magic Word: {{PAGENAME}}
8198 title=[[User:Ævar Arnfjörð Bjarmason]]
8202 <p>Ævar Arnfjörð Bjarmason
8207 Magic Word: {{PAGENAME}} with metacharacters
8209 title=[['foo & bar = baz']]
8213 <p><i>'foo & bar = baz'</i>
8216 <p><i>'foo & bar = baz'</i></p>
8220 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
8222 title=[[*RFC 1234 http://example.com/]]
8226 <p>*RFC 1234 http://example.com/
8229 <p>*RFC 1234 http://example.com/</p>
8233 Magic Word: {{PAGENAMEE}}
8235 title=[[User:Ævar Arnfjörð Bjarmason]]
8239 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8244 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
8246 title=[[*RFC 1234 http://example.com/]]
8250 <p>*RFC_1234_http://example.com/
8253 <p>*RFC_1234_http://example.com/</p>
8257 Magic Word: {{REVISIONID}}
8266 Magic Word: {{SCRIPTPATH}}
8275 Magic Word: {{STYLEPATH}}
8284 Magic Word: {{SERVER}}
8288 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
8293 Magic Word: {{SERVERNAME}}
8302 Magic Word: {{SITENAME}}
8311 Case-sensitive magic words, when cased differently, should just be template transclusions
8318 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
8319 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
8320 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
8321 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
8326 Case-insensitive magic words should still work with weird casing.
8336 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
8341 Namespace 1 {{ns:1}}
8350 Namespace 1 {{ns:01}}
8359 Namespace 0 {{ns:0}} (bug 4783)
8367 Namespace 0 {{ns:00}} (bug 4783)
8375 Namespace -1 {{ns:-1}}
8384 Namespace User {{ns:User}}
8393 Namespace User talk {{ns:User_talk}}
8402 Namespace User talk {{ns:uSeR tAlK}}
8411 Namespace File {{ns:File}}
8420 Namespace File {{ns:Image}}
8429 Namespace (lang=de) Benutzer {{ns:User}}
8440 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
8446 <p>Benutzer Diskussion
8454 {{urlencode:hi world?!}}
8455 {{urlencode:hi world?!|WIKI}}
8456 {{urlencode:hi world?!|PATH}}
8457 {{urlencode:hi world?!|QUERY}}
8467 Magic Word: prioritize type info over data-parsoid
8473 <meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__"}'/>
8477 Magic Word: serialize on separate line (parsoid)
8479 parsoid=wt2wt,html2wt
8485 foo<meta property="mw:PageProp/notoc"/>bar
8489 Magic Word: rt non-english wikis
8496 <meta property="mw:PageProp/noeditsection" data-parsoid='{"src":"__NOEDITSECTION__","magicSrc":"__NOEDITSECTION__"}'/>
8503 Magic links: internal link to RFC (bug 479)
8507 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
8512 Magic links: RFC (bug 479)
8516 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
8521 Magic links: ISBN (bug 1937)
8525 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
8530 Magic links: PMID incorrectly converts space to underscore
8534 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
8543 Nonexistent template
8545 {{thistemplatedoesnotexist}}
8547 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
8552 Template with invalid target containing tags
8554 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
8556 <p>{{a<b>b</b>|foo|a=b|a = b}}
8561 Template with invalid target containing unclosed tag
8563 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
8565 <p>{{a<b>|foo|a=b|a = b}}</b>
8570 Template with invalid target containing wikilink
8574 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
8577 <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>
8581 Template with just whitespace in it, bug #68421
8585 <p><span typeof="mw:Transclusion mw:Nowiki" about="#mwt1" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{ }}"}},"i":0}}]}'>{{ }}</span></p>
8591 This is a test template
8599 <p>This is a test template
8604 Template with explicit namespace
8608 <p>This is a test template
8616 This is a test template with parameter {{{param}}}
8622 {{paramtest|param=foo}}
8624 <p>This is a test template with parameter foo
8629 Template:paramtestnum
8635 Template unnamed parameter
8637 {{paramtestnum|Main Page|the main page}}
8639 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
8644 Template:templatesimple
8650 Template:templateredirect
8652 #redirect [[Template:templatesimple]]
8656 Template:templateasargtestnum
8662 Template:templateasargtest
8664 {{template{{{templ}}}}}
8668 Template:templateasargtest2
8674 Template with template name as unnamed argument
8676 {{templateasargtestnum|templatesimple}}
8683 Template with template name as argument
8685 {{templateasargtest|templ=simple}}
8692 Template with template name as argument (2)
8694 {{templateasargtest2|templ=templatesimple}}
8701 Template:templateasargtestdefault
8703 {{{{{templ|templatesimple}}}}}
8713 Template with default value
8715 {{templateasargtestdefault}}
8722 Template with default value (value set)
8724 {{templateasargtestdefault|templ=templa}}
8733 {{templateredirect}}
8740 Template with argument in separate line
8742 {{ templateasargtest |
8750 Template with complex template as argument
8753 param ={{ templateasargtest |
8756 <p>This is a test template with parameter (test)
8761 Template with thumb image (with link in description)
8764 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
8766 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>
8769 <p>This is a test template with parameter</p>
8770 <div class="thumb tright">
8771 <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>
8772 <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>
8778 Template:complextemplate
8780 {{{1}}} {{paramtest|
8781 param ={{{param}}}}}
8785 Template with complex arguments
8788 param ={{ templateasargtest |
8789 templ = simple }}|[[Template:complextemplate|link]]}}
8791 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
8796 BUG 553: link with two variables in a piped link
8799 |[[{{{1}}}|{{{2}}}]]
8804 <td>[[{{{1}}}|{{{2}}}]]
8810 Magic variable as template parameter
8812 {{paramtest|param={{SITENAME}}}}
8814 <p>This is a test template with parameter MediaWiki
8821 [[{{{param}}}|link]]
8825 Template parameter as link source
8827 {{linktest|param=Main Page}}
8829 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
8834 Template-generated attribute string (k='v')
8836 <span {{attr_str|id|v1}}>bar</span>
8838 <p><span id="v1">bar</span>
8845 including another template, {{paramtest|param={{{arg}}}}}
8849 Template passing argument to another template
8851 {{paramtest2|arg='hmm'}}
8853 <p>including another template, This is a test template with parameter 'hmm'
8864 Template as link source
8868 [[{{linktest2}}|Main Page]]
8870 [[{{linktest2}}]]Page
8872 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8873 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8874 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
8892 Template infinite loop
8896 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
8901 Template from main namespace
8920 BUG 529: Template with table, not included at beginning of line
8939 BUG 523: Template shouldn't eat newline (or add an extra one before table)
8959 BUG 41: Template parameters shown as broken links
8968 Template with targets containing wikilinks
8972 {{[[{{echo|foo}}]]}}
8974 {{{{echo|[[foo}}]]}}
8976 <p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
8977 </p><p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
8985 ''None'' of '''this''' should be
8987 but rather passed unmodified
8994 # hmm, fix this or just deprecate msgnw and document its behavior?
8998 {{msgnw:MSGNW test}}
9000 <p>''None'' of '''this''' should be
9002  but rather passed unmodified
9003 {{test}}
9013 {{int:youhavenewmessages|lots of money|not!}}
9015 <p>You have lots of money (not!).
9022 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9026 <includeonly> and <noinclude> being included
9037 <onlyinclude>Foo</onlyinclude>bar
9041 <onlyinclude> being included
9053 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
9057 <onlyinclude> and <includeonly> being included
9066 <includeonly> and <noinclude> on a page
9068 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9075 Un-closed <noinclude>
9082 <onlyinclude> on a page
9084 <onlyinclude>Foo</onlyinclude>bar
9091 Un-closed <onlyinclude>
9098 Self-closed noinclude, includeonly, onlyinclude tags
9109 Unbalanced includeonly and noinclude tags
9113 |b</noinclude></noinclude>
9114 |c</noinclude></includeonly>
9115 |d</includeonly></includeonly>
9124 <td>c</includeonly>
9126 <td>d</includeonly></includeonly>
9132 Template:Includeonly section
9135 ==Includeonly section==
9141 Bug 6563: Edit link generation for section shown by <includeonly>
9143 {{includeonly section}}
9145 <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>
9146 <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>
9150 # Uses same input as the contents of [[Template:Includeonly section]]
9152 Bug 6563: Section extraction for section shown by <includeonly>
9157 ==Includeonly section==
9165 Bug 6563: Edit link generation for section suppressed by <includeonly>
9168 ==Includeonly section==
9172 <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>
9177 Bug 6563: Section extraction for section suppressed by <includeonly>
9182 ==Includeonly section==
9190 Un-closed <includeonly>
9197 Includes and comments at SOL
9199 <!-- comment --><noinclude><!-- comment --></noinclude><!-- comment -->== hu ==
9206 <includeonly>can have stuff</includeonly>=== here ===
9209 <h2><span class="mw-headline" id="hu">hu</span></h2>
9214 <h3><span class="mw-headline" id="here">here</span></h3>
9217 <!-- comment --><meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/><!-- comment --><meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/><!-- comment -->
9218 <h2 data-parsoid='{}'> hu </h2>
9220 <meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/>
9222 <p data-parsoid='{}'>some</p>
9223 <meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/>
9224 <ul data-parsoid='{}'>
9225 <li data-parsoid='{}'> stuff</li>
9227 <li data-parsoid='{}'> here</li></ul>
9229 <h3 data-parsoid='{}'> here </h3>
9232 # TODO: test with DOM fragment reuse!
9234 Parsoid: DOM fragment reuse
9236 parsoid=wt2wt,wt2html
9238 a{{echo|b<table></table>c}}d
9250 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
9251 <table></table>c"}},"i":0}}]}'>b</span>
9252 <table about="#mwt1"></table><span about="#mwt1">c</span>d
9255 <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">
9257 <table about="#mwt2"></table><span about="#mwt2">
9259 <p about="#mwt2">cd</p>
9262 <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">
9265 <table about="#mwt3"></table><span about="#mwt3">
9268 <p about="#mwt3">b</p>
9272 Parsoid: Merge double tds (bug 50603)
9281 <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>
9286 Parsoid: Merge double tds in nested transclusion content (bug 50603)
9296 <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}}]}'>
9298 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
9304 ### <includeonly> and <noinclude> in attributes
9307 0. includeonly around the entire attribute
9309 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
9311 <p><span id="v2">bar</span>
9316 1. includeonly in html attr key
9318 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
9320 <p><span id="foo">bar</span>
9325 2. includeonly in html attr value
9327 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
9328 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
9330 <p><span id="v1">bar</span>
9331 <span id="v1">bar</span>
9336 3. includeonly in part of an attr value
9338 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
9340 <p><span style="color:red;">bar</span>
9345 4. includeonly in table attributes
9369 ### Token Stream Patcher tests
9371 ### These tests won't always pass wt2wt and other modes because
9372 ### on serialization, the table will be output on a new line.
9373 ### For now, we are blacklisting them, and using this to test selser.
9377 1. Table tag in SOL posn. should get reparsed correctly with valid TSR
9379 parsoid=wt2html,wt2wt
9381 {{echo|}}{| width = '100%'
9385 <span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":""}},"i":0}}]}'></span>
9386 <table width="100%">
9389 <td>foo</td></tr></tbody></table>
9393 2. Table tag in SOL posn. should get reparsed correctly with valid TSR
9395 parsoid=wt2html,wt2wt
9397 <includeonly>a</includeonly>{| {{{b}}}
9401 <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}}}":""}}'>
9402 <tbody><tr><td>c</td></tr>
9408 ### Testing parsing of templates where a template arg
9409 ### has the same name as the template itself.
9419 Templates: Template Name/Arg clash: 1. Use of positional param
9428 Templates: Template Name/Arg clash: 2. Use of named param
9437 Templates: Template Name/Arg clash: 3. Use of named param with empty input
9446 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
9450 Templates: 1. Simple use
9459 Templates: 2. Inside a block tag
9461 <div>{{echo|Foo}}</div>
9462 <blockquote>{{echo|Foo}}</blockquote>
9465 <blockquote>Foo</blockquote>
9475 Templates: P-wrapping: 1a. Templates on consecutive lines
9486 Templates: P-wrapping: 1b. Templates on consecutive lines
9500 Templates: P-wrapping: 1c. Templates on consecutive lines
9503 {{echo|bar}} <div>baz</div>
9516 Templates: P-wrapping: 1d. Template preceded by comment-only line
9525 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
9529 Templates: Inline Text: 1. Multiple template uses
9531 {{echo|Foo}}bar{{echo|baz}}
9538 Templates: Inline Text: 2. Back-to-back template uses
9540 {{echo|Foo}}{{echo|bar}}
9547 Templates: Block Tags: 1. Multiple template uses
9549 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
9551 <div>Foo</div><div>bar</div><div>baz</div>
9556 Templates: Block Tags: 2. Back-to-back template uses
9558 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
9560 <div>Foo</div><div>bar</div>
9564 # This is an edge case relating to paragraph wrapping.
9566 Templates: Correctly encapsulate templates producing </p> tag without a corresponding <p> tag
9571 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\nb</p>"}},"i":0}}]}'>a
9576 Templates: Links: 1. Simple example
9578 {{echo|[[Foo|bar]]}}
9580 <p><a href="/wiki/Foo" title="Foo">bar</a>
9585 Templates: Links: 2. Generation of link href
9587 [[{{echo|Foo}}|bar]]
9589 <p><a href="/wiki/Foo" title="Foo">bar</a>
9594 Templates: Links: 3. Generation of part of a link href
9596 [[Fo{{echo|o}}|bar]]
9600 [[Foo{{echo|bar}}baz]]
9602 [[Foo{{echo|bar}}|bar]]
9604 [[:Foo{{echo|bar}}]]
9606 [[:Foo{{echo|bar}}|bar]]
9608 <p><a href="/wiki/Foo" title="Foo">bar</a>
9609 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
9610 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
9611 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
9612 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
9613 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
9618 Templates: Links: 4. Multiple templates generating link href
9620 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
9622 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
9627 Templates: Links: 5. Generation of link text
9629 [[Foo|{{echo|bar}}]]
9631 <p><a href="/wiki/Foo" title="Foo">bar</a>
9636 Templates: Links: 5. Nested templates (only outermost template should be marked)
9638 {{echo|[[{{echo|Foo}}|bar]]}}
9640 <p><a href="/wiki/Foo" title="Foo">bar</a>
9645 Templates: HTML Tag: 1. Generation of HTML attr. key
9647 <div {{echo|style}}="color:red;">foo</div>
9649 <div style="color:red;">foo</div>
9654 Templates: HTML Tag: 2. Generation of HTML attr. value
9656 <div style={{echo|'color:red;'}}>foo</div>
9658 <div style="color:red;">foo</div>
9663 Templates: HTML Tag: 3. Generation of HTML attr key and value
9665 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
9667 <div style="color:red;">foo</div>
9672 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
9674 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
9676 <div title="This is a long title with just one piece templated">foo</div>
9681 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
9683 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
9685 <div title="This is a long title with just one piece templated">foo</div>
9690 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
9692 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
9694 <div title="This is a long title with just one piece templated">foo</div>
9699 Templates: HTML Tag: 7. Generation of partial attribute key string
9701 <div st{{echo|yle}}="color:red;">foo</div>
9703 <div style="color:red;">foo</div>
9708 Templates: HTML Tables: 1. Generating start of a HTML table
9710 {{echo|<table><tr><td>foo</td>}}</tr></table>
9712 <table><tr><td>foo</td></tr></table>
9717 Templates: HTML Tables: 2a. Generating middle of a HTML table
9719 <table><tr>{{echo|<td>foo</td>}}</tr></table>
9721 <table><tr><td>foo</td></tr></table>
9726 Templates: HTML Tables: 2b. Generating middle of a HTML table
9728 <table>{{echo|<tr><td>foo</td></tr>}}</table>
9730 <table><tr><td>foo</td></tr></table>
9735 Templates: HTML Tables: 3. Generating end of a HTML table
9737 <table><tr>{{echo|<td>foo</td></tr></table>}}
9739 <table><tr><td>foo</td></tr></table>
9744 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
9746 {{echo|<table>}}<tr><td>foo</td></tr></table>
9748 <table><tr><td>foo</td></tr></table>
9753 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
9755 <table>{{echo|<tr>}}<td>foo</td></tr></table>
9757 <table><tr><td>foo</td></tr></table>
9762 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
9764 <table><tr>{{echo|<td>}}foo</td></tr></table>
9766 <table><tr><td>foo</td></tr></table>
9771 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
9773 <table><tr><td>foo{{echo|</td>}}</tr></table>
9775 <table><tr><td>foo</td></tr></table>
9780 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
9782 <table><tr><td>foo</td>{{echo|</tr>}}</table>
9784 <table><tr><td>foo</td></tr></table>
9789 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
9791 <table><tr><td>foo</td></tr>{{echo|</table>}}
9793 <table><tr><td>foo</td></tr></table>
9798 Templates: HTML Tables: 5. Proper fostering of categories from inside
9800 parsoid=wt2html,wt2wt
9802 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
9803 <!--Two categories (Bug 50330)-->
9804 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
9806 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
9807 <!--Two categories (Bug 50330)-->
9808 <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>
9812 Templates: Wiki Tables: 1a. Fostering of entire template content
9820 <tr><td></td></tr></table>
9832 Templates: Wiki Tables: 1b. Fostering of entire template content
9845 <tr><td></td></tr></table>
9859 Templates: Wiki Tables: 2. Fostering of partial template content
9869 <tr><td></td></tr></table>
9882 Templates: Wiki Tables: 3. td-content via multiple templates
9885 {{echo|{{pipe}}a}}{{echo|b}}
9896 Templates: Wiki Tables: 4. Templated tags, no content
9902 <tr><td></td></tr></table>
9907 Templates: Wiki Tables: 5. Templated tags, regular td-tags
9921 Templates: Wiki Tables: 6. Templated tags, templated td-tags
9935 Templates: Lists: Multi-line list-items via templates
9937 *{{echo|a {{nonexistent|
9939 *{{echo|b {{nonexistent|
9942 <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>
9943 <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>
9948 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
9950 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
9952 <p><i>ab</i>c<i>d</i>e
9957 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
9958 (PHP parser generates misnested html)
9960 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
9962 <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>
9966 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
9967 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
9969 parsoid=wt2html,wt2wt
9971 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
9973 <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>
9974 <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>
9975 <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>
9979 Templates: Ugly nesting: 4. Divs opened/closed across templates
9981 a<div>b{{echo|c</div>d}}e
9992 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
9998 |{{echo|foo</table>}}
10002 <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|}"]}'>
10006 <td>foo</td></tr></tbody></table><span about="#mwt1">
10007 </span><span about="#mwt1">|bar</span><span about="#mwt1">
10012 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
10022 <td>1. {{echo|foo </table>}}</td>
10024 <td>2. {{echo|baz </table>}}</td>
10037 <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>"]}'>
10042 <td>1. foo </td></tr></tbody></table></td>
10044 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
10045 </span><span about="#mwt2">
10046 </span><span about="#mwt2">
10047 </span><span about="#mwt2">abc</span><span about="#mwt2">
10048 </span><span about="#mwt2">
10049 </span><span about="#mwt2">
10050 </span><span about="#mwt2">
10051 </span><span about="#mwt2">
10052 </span><span about="#mwt2">
10053 </span><span about="#mwt2">xyz</span><span about="#mwt2">
10054 </span><span about="#mwt2">
10059 Templates: Ugly templates: 3. newline-only template parameter
10068 # This looks like a bug: a single newline triggers p/br for some reason.
10070 Templates: Ugly templates: 4. newline-only template parameter inconsistency
10079 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges that
10080 # have a true overlap (T1-start - T2-start - T1-end - T2-end).
10082 Templates: Ugly templates: 5. Template encapsulation test: Non-trivial overlap of template ranges is properly handled
10088 <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
10089 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
10093 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges
10094 # that are "identical" and generate nesting cycles in the algorithm
10096 Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of template ranges is properly handled
10098 {{echo|<table><tr><td><table>}}
10102 <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"}'>
10103 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
10104 </table></td></tr></tbody></table>
10108 Parser Functions: 1. Simple example
10117 Parser Functions: 2. Nested use (only outermost should be marked up)
10126 ### Pre-save transform tests
10129 pre-save transform: subst:
10135 This is a test template
10139 pre-save transform: normal template
10149 pre-save transform: nonexistent template
10153 {{thistemplatedoesnotexist}}
10155 {{thistemplatedoesnotexist}}
10160 pre-save transform: subst magic variables
10169 # This is bug 89, which I fixed. -- wtm
10171 pre-save transform: subst: templates with parameters
10175 {{subst:paramtest|param="something else"}}
10177 This is a test template with parameter "something else"
10181 Template:nowikitest
10183 <nowiki>'''not wiki'''</nowiki>
10187 pre-save transform: nowiki in subst (bug 1188)
10191 {{subst:nowikitest}}
10193 <nowiki>'''not wiki'''</nowiki>
10198 Template:commenttest
10200 This template has <!-- a comment --> in it.
10204 pre-save transform: comment in subst (bug 1936)
10208 {{subst:commenttest}}
10210 This template has <!-- a comment --> in it.
10214 pre-save transform: unclosed tag
10218 <nowiki>'''not wiki'''
10220 <nowiki>'''not wiki'''
10224 pre-save transform: mixed tag case
10228 <NOwiki>'''not wiki'''</noWIKI>
10230 <NOwiki>'''not wiki'''</noWIKI>
10234 pre-save transform: unclosed comment in <nowiki>
10238 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
10240 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
10243 # Leading @ in this template definition works around a limitation
10244 # in parsoid's parserTests which otherwise strips the <span> from the
10245 # result (confusing it for a template wrapper)
10249 @<span onmouseover="alert('crap')">Oh no</span>
10253 (confirming safety of fix for subst bug 1936)
10255 {{Template:dangerous}}
10257 <p>@<span>Oh no</span>
10262 pre-save transform: comment containing gallery (bug 5024)
10266 <!-- <gallery>data</gallery> -->
10268 <!-- <gallery>data</gallery> -->
10272 pre-save transform: comment containing extension
10276 <!-- <tag>data</tag> -->
10278 <!-- <tag>data</tag> -->
10282 pre-save transform: comment containing nowiki
10286 <!-- <nowiki>data</nowiki> -->
10288 <!-- <nowiki>data</nowiki> -->
10292 pre-save transform: <noinclude> in subst (bug 3298)
10302 pre-save transform: <onlyinclude> in subst (bug 3298)
10306 {{subst:Includes2}}
10314 {{<includeonly>subst:</includeonly>Includes}}
10318 Template:SafeSubstTest
10320 {{<includeonly>safesubst:</includeonly>Includes}}
10324 bug 22297: safesubst: works during PST
10328 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
10334 bug 22297: safesubst: works during normal parse
10343 subst: does not work during normal parse
10347 <p>{{subst:Includes}}
10352 pre-save transform: context links ("pipe trick")
10356 [[Article (context)|]]
10359 [[Bar:Article (context)|]]
10360 [[:Bar:Article (context)|]]
10362 [[|Article (context)]]
10366 [[Article (context)|Article]]
10367 [[Bar:Article|Article]]
10368 [[:Bar:Article|Article]]
10369 [[Bar:Article (context)|Article]]
10370 [[:Bar:Article (context)|Article]]
10372 [[Article (context)]]
10373 [[Bar:X (Y) Z|X (Y) Z]]
10374 [[:Bar:X (Y) Z|X (Y) Z]]
10378 pre-save transform: context links ("pipe trick") with interwiki prefix
10382 [[interwiki:Article|]]
10383 [[:interwiki:Article|]]
10384 [[interwiki:Bar:Article|]]
10385 [[:interwiki:Bar:Article|]]
10387 [[interwiki:Article|Article]]
10388 [[:interwiki:Article|Article]]
10389 [[interwiki:Bar:Article|Bar:Article]]
10390 [[:interwiki:Bar:Article|Bar:Article]]
10394 pre-save transform: context links ("pipe trick") with parens in title
10396 pst title=[[Somearticle (context)]]
10400 [[Article (context)|Article]]
10404 pre-save transform: context links ("pipe trick") with comma in title
10406 pst title=[[Someplace, Somewhere]]
10409 [[Otherplace, Elsewhere|]]
10410 [[Otherplace, Elsewhere, Anywhere|]]
10412 [[Otherplace, Somewhere|Otherplace]]
10413 [[Otherplace, Elsewhere|Otherplace]]
10414 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
10418 pre-save transform: context links ("pipe trick") with parens and comma
10420 pst title=[[Someplace (IGNORED), Somewhere]]
10423 [[Otherplace (place), Elsewhere|]]
10425 [[Otherplace, Somewhere|Otherplace]]
10426 [[Otherplace (place), Elsewhere|Otherplace]]
10430 pre-save transform: context links ("pipe trick") with comma and parens
10432 pst title=[[Who, me? (context)]]
10435 [[Me, Myself, and I (1937 song)|]]
10437 [[Yes, you. (context)|Yes, you.]]
10438 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
10442 pre-save transform: context links ("pipe trick") with namespace
10444 pst title=[[Ns:Somearticle]]
10448 [[Ns:Article|Article]]
10452 pre-save transform: context links ("pipe trick") with namespace and parens
10454 pst title=[[Ns:Somearticle (context)]]
10458 [[Ns:Article (context)|Article]]
10462 pre-save transform: context links ("pipe trick") with namespace and comma
10464 pst title=[[Ns:Somearticle, Context, Whatever]]
10468 [[Ns:Article, Context, Whatever|Article]]
10472 pre-save transform: context links ("pipe trick") with namespace, comma and parens
10474 pst title=[[Ns:Somearticle, Context (context)]]
10478 [[Ns:Article (context)|Article]]
10482 pre-save transform: context links ("pipe trick") with namespace, parens and comma
10484 pst title=[[Ns:Somearticle (IGNORED), Context]]
10488 [[Ns:Article, Context|Article]]
10492 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
10496 [[Article(context)|]]
10497 [[Bar:Article(context)|]]
10498 [[:Bar:Article(context)|]]
10499 [[|Article(context)]]
10503 [[Article(context)|Article]]
10504 [[Bar:Article(context)|Article]]
10505 [[:Bar:Article(context)|Article]]
10506 [[Article(context)]]
10507 [[Bar:X(Y)Z|X(Y)Z]]
10508 [[:Bar:X(Y)Z|X(Y)Z]]
10512 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
10516 [[Article (context)|]]
10517 [[Bar:Article (context)|]]
10518 [[:Bar:Article (context)|]]
10519 [[|Article (context)]]
10523 [[Article (context)|Article]]
10524 [[Bar:Article (context)|Article]]
10525 [[:Bar:Article (context)|Article]]
10526 [[Article (context)]]
10527 [[Bar:X (Y) Z|X (Y) Z]]
10528 [[:Bar:X (Y) Z|X (Y) Z]]
10532 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
10536 [[Article(context)|]]
10537 [[Bar:Article(context)|]]
10538 [[:Bar:Article(context)|]]
10539 [[|Article(context)]]
10543 [[Article(context)|Article]]
10544 [[Bar:Article(context)|Article]]
10545 [[:Bar:Article(context)|Article]]
10546 [[Article(context)]]
10547 [[Bar:X(Y)Z|X(Y)Z]]
10548 [[:Bar:X(Y)Z|X(Y)Z]]
10552 pre-save transform: context links ("pipe trick") with commas (bug 21660)
10556 [[Article (context), context|]]
10557 [[Article (context),context|]]
10558 [[Bar:Article (context), context|]]
10559 [[Bar:Article (context),context|]]
10560 [[:Bar:Article (context), context|]]
10561 [[:Bar:Article (context),context|]]
10563 [[Article (context), context|Article]]
10564 [[Article (context),context|Article]]
10565 [[Bar:Article (context), context|Article]]
10566 [[Bar:Article (context),context|Article]]
10567 [[:Bar:Article (context), context|Article]]
10568 [[:Bar:Article (context),context|Article]]
10572 pre-save transform: trim trailing empty lines
10576 Empty lines are trimmed
10582 Empty lines are trimmed
10586 pre-save transform: Signature expansion
10591 * <noinclude>~~~</noinclude>
10592 * <includeonly>~~~</includeonly>
10593 * <onlyinclude>~~~</onlyinclude>
10595 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
10596 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
10597 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
10598 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
10603 pre-save transform: Signature expansion in nowiki tags (bug 93)
10609 <nowiki>~~~~</nowiki>
10611 <includeonly><nowiki>~~~~</nowiki></includeonly>
10613 <noinclude><nowiki>~~~~</nowiki></noinclude>
10615 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
10617 {{subst:Foo}} shall be converted to FOO
10619 As well as inside noinclude/onlyinclude
10620 <noinclude>{{subst:Foo}}</noinclude>
10621 <onlyinclude>{{subst:Foo}}</onlyinclude>
10623 But not inside includeonly
10624 <includeonly>{{subst:Foo}}</includeonly>
10628 <nowiki>~~~~</nowiki>
10630 <includeonly><nowiki>~~~~</nowiki></includeonly>
10632 <noinclude><nowiki>~~~~</nowiki></noinclude>
10634 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
10636 FOO shall be converted to FOO
10638 As well as inside noinclude/onlyinclude
10639 <noinclude>FOO</noinclude>
10640 <onlyinclude>FOO</onlyinclude>
10642 But not inside includeonly
10643 <includeonly>{{subst:Foo}}</includeonly>
10647 Parsoid: Recognize nowiki with trailing space in tags
10651 <nowiki ><div>[[foo]]</nowiki >
10659 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
10666 Parsoid: Recognize nowiki with odd capitalization
10670 <noWikI ><div>[[foo]]</Nowiki >
10672 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
10677 Parsoid: Escape nowiki with trailing space in tags
10681 <nowiki > foo </nowiki >
10687 <p><nowiki > foo </nowiki ></p>
10688 <p>a<nowiki />b</p>
10689 <p>c<nowiki/ >d</p>
10693 Parsoid: Escape weird noWikI capitalizations
10697 <noWikI > foo </NoWikI >
10699 <p><noWikI > foo </NoWikI ></p>
10703 ### Message transform tests
10706 message transform: magic variables
10716 message transform: should not transform wiki markup
10726 message transform: <noinclude> in transcluded template (bug 4926)
10736 message transform: <onlyinclude> in transcluded template (bug 4926)
10746 {{#special:}} page name, known
10750 {{#special:Recentchanges}}
10752 Special:RecentChanges
10756 {{#special:}} page name with subpage, known
10760 {{#special:Recentchanges/param}}
10762 Special:RecentChanges/param
10766 {{#special:}} page name, unknown
10770 {{#special:foobar nonexistent}}
10772 Special:Foobar nonexistent
10776 {{#speciale:}} page name, known
10780 {{#speciale:Recentchanges}}
10782 Special:RecentChanges
10786 {{#speciale:}} page name with subpage, known
10790 {{#speciale:Recentchanges/param}}
10792 Special:RecentChanges/param
10796 {{#speciale:}} page name, unknown
10800 {{#speciale:foobar nonexistent}}
10802 Special:Foobar_nonexistent
10808 ### For Parsoid-specific tests, see
10809 #### https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10814 parsoid=wt2html,wt2wt,html2html
10816 [[Image:foobar.jpg]]
10818 <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>
10821 <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>
10826 Simple image (using File: namespace, now canonical)
10828 [[File:Foobar.jpg]]
10830 <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>
10833 <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>
10838 Right-aligned image
10840 [[File:Foobar.jpg|right]]
10842 <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>
10845 <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>
10851 [[File:Foobar.jpg|right|Caption text]]
10853 <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>
10856 <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>
10860 Image with caption, bug 53312 #1
10862 [[File:Foobar.jpg|right|Caption page stuff]]
10864 <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>
10867 <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>
10871 Image with caption, bug 53312 #2
10873 [[File:Foobar.jpg|right|Caption page=]]
10875 <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>
10878 <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>
10882 Image with caption, bug 53312 #3
10884 [[File:Foobar.jpg|right|Caption page=stuff]]
10886 <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>
10889 <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>
10893 Allow empty links in image captions (Bug 60753)
10897 [[File:Foobar.jpg|thumb|Caption [[Link1]]
10902 <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"></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>
10905 <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" title="Link1" data-parsoid='{"stx":"simple","a":{"href":"./Link1"},"sa":{"href":"Link1"},"dsr":[32,41,2,2]}'>Link1</a>
10907 <a rel="mw:WikiLink" href="./Link2" title="Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"},"dsr":[47,56,2,2]}'>Link2</a>
10908 </figcaption></figure>
10912 Link with empty target
10921 Image with empty attribute
10923 parsoid=wt2html,wt2wt,html2html
10925 [[File:Foobar.jpg|right||Caption text]]
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"><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>
10934 1. Block image with individual attributes from templates
10936 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
10938 <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"></a></div>This is a caption</div></div></div>
10941 <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>
10945 2. Block Image with individual attributes from templates
10947 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
10949 <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"></a></div>This is a caption</div></div></div>
10952 <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>
10956 3. Inline image with individual attributes from templates
10958 [[File:Foobar.jpg|{{echo|50px}}]]
10960 <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>
10963 <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>
10966 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
10967 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
10969 Image with multiple attributes from the same template
10971 [[File:Foobar.jpg|{{image_attribs}}]]
10973 <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>
10976 <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>
10979 # Parsoid's output here is broken (incorrect p-wrapping); see bug 64901.
10981 Image with link tails
10985 123[[File:Foobar.jpg]]456
10986 123[[File:Foobar.jpg|right]]456
10987 123[[File:Foobar.jpg|thumb]]456
10989 <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
10991 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
10992 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"></a></div></div></div></div>456
10995 <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>
10997 <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>
10999 <div class="thumb tright">
11000 <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>
11001 <div class="thumbcaption">
11002 <div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>
11008 <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>
11009 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
11010 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
11014 Image with multiple captions -- only last one is accepted
11016 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
11018 <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>
11021 <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>
11025 Image with multiple widths -- use last
11027 [[File:Foobar.jpg|200px|300px|caption]]
11029 <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>
11032 <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>
11036 Image with multiple alignments -- use first (bug 48664)
11040 [[File:Foobar.jpg|thumb|left|right|center|caption]]
11042 [[File:Foobar.jpg|middle|text-top|caption]]
11044 <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"></a></div>caption</div></div></div>
11045 <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>
11048 <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>
11049 <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>
11053 Image with width attribute at different positions
11055 [[File:Foobar.jpg|200px|right|Caption]]
11056 [[File:Foobar.jpg|right|200px|Caption]]
11057 [[File:Foobar.jpg|right|Caption|200px]]
11059 <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>
11060 <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>
11061 <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>
11064 <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>
11065 <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>
11066 <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>
11069 # a sad bit of backward-compatibility
11071 Image with size specified with pxpx (bug 13500, 51628)
11073 parsoid=wt2html,wt2wt,html2html
11075 [[File:Foobar.jpg|20pxpx]]
11076 [[File:Foobar.jpg|200x20pxpx]]
11078 <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>
11079 <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>
11082 <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>
11086 Image with link parameter, wiki target
11088 [[File:Foobar.jpg|link=Main Page]]
11090 <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>
11093 <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>
11096 # parsoid bug 49293 (part 1)
11098 Image with link parameter, URL target
11100 [[File:Foobar.jpg|link=http://example.com/]]
11102 <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>
11105 <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>
11108 # parsoid bug 49293 (part 2)
11110 Image with link parameter, protocol-less URL target
11112 [[File:Foobar.jpg|link=//example.com/]]
11114 <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>
11117 <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>
11121 Image with link parameter, wgExternalLinkTarget
11123 [[Image:foobar.jpg|link=http://example.com/]]
11125 wgExternalLinkTarget='foobar'
11127 <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>
11132 Image with link parameter, wgNoFollowLinks set to false
11134 [[Image:foobar.jpg|link=http://example.com/]]
11136 wgNoFollowLinks=false
11138 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
11143 Image with link parameter, wgNoFollowDomainExceptions
11145 [[Image:foobar.jpg|link=http://example.com/]]
11147 wgNoFollowDomainExceptions='example.com'
11149 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
11154 Image with link parameter, wgExternalLinkTarget, unnamed parameter
11156 [[Image:foobar.jpg|link=http://example.com/|Title]]
11158 wgExternalLinkTarget='foobar'
11160 <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>
11165 Image with empty link parameter
11167 [[File:Foobar.jpg|link=]]
11169 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
11172 <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>
11176 Image with link parameter (wiki target) and unnamed parameter
11178 [[File:Foobar.jpg|link=Main_Page|Title]]
11180 <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>
11183 <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>
11187 Image with link parameter (URL target) and unnamed parameter
11189 [[File:Foobar.jpg|link=http://example.com/|Title]]
11191 <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>
11194 <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>
11198 Thumbnail image with link parameter
11201 parsoid=wt2html,wt2wt,html2html
11203 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
11205 <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"></a></div>Title</div></div></div>
11208 <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>
11212 Manually-specified thumbnail image
11216 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
11218 <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"></a></div>Title</div></div></div>
11221 <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>
11225 Manually-specified thumbnail image with explicit link to wiki page
11228 parsoid=wt2html,wt2wt,html2html
11230 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
11232 <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"></a></div>Title</div></div></div>
11235 <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>
11239 Manually-specified thumbnail image with explicit link to url
11242 parsoid=wt2html,wt2wt,html2html
11244 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
11246 <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"></a></div>Title</div></div></div>
11249 <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>
11253 Manually-specified thumbnail image with explicit no link
11256 parsoid=wt2html,wt2wt,html2html
11258 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
11260 <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"></a></div>Title</div></div></div>
11263 <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>
11267 Manually-specified thumbnail image with explicit link and alt text
11270 parsoid=wt2html,wt2wt,html2html
11272 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
11274 <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"></a></div>Title</div></div></div>
11277 <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>
11281 Image with frame and link
11283 parsoid=wt2html,wt2wt,html2html
11285 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
11287 <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>
11290 <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" title="Main Page">Main Page</a></figcaption></figure>
11294 Image with frame and link and explicit alt
11296 parsoid=wt2html,wt2wt,html2html
11298 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
11300 <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>
11303 <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" title="Main Page">Main Page</a></figcaption></figure>
11307 Image with wiki markup in implicit alt
11309 parsoid=wt2html,wt2wt,html2html
11311 [[Image:Foobar.jpg|testing '''bold''' in alt]]
11313 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
11315 <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>
11316 </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>
11319 <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>
11320 <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>
11323 ###################
11324 # Conflicting image format options.
11325 # First option specified should 'win'.
11326 # All three cases in each test should be identical.
11329 Image with 'frameless' first.
11331 parsoid=wt2html,wt2wt,html2html
11333 [[File:Foobar.jpg|frameless|caption]]
11335 [[File:Foobar.jpg|frameless|frame|caption]]
11337 [[File:Foobar.jpg|frameless|thumb|caption]]
11339 <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>
11340 </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>
11341 </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>
11344 <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>
11345 <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>
11346 <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>
11350 Image with 'frame' first.
11352 parsoid=wt2html,wt2wt,html2html
11354 [[File:Foobar.jpg|frame|caption]]
11355 [[File:Foobar.jpg|frame|frameless|caption]]
11356 [[File:Foobar.jpg|frame|thumb|caption]]
11358 <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>
11359 <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>
11360 <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>
11363 <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>
11367 Image with 'thumb' first.
11369 parsoid=wt2html,wt2wt,html2html
11371 [[File:Foobar.jpg|thumb|caption]]
11372 [[File:Foobar.jpg|thumb|frameless|caption]]
11373 [[File:Foobar.jpg|thumb|frame|caption]]
11375 <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"></a></div>caption</div></div></div>
11376 <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"></a></div>caption</div></div></div>
11377 <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"></a></div>caption</div></div></div>
11380 <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>
11383 ###################
11385 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
11386 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
11387 # Foobar has actual size of 1941x220
11388 # 1. Thumbs & frameless always reduce, can't be enlarged unless it's
11389 # a scalable format.
11390 # 2. Framed images always ignore size options; always render at default size.
11391 # 3. "Unspecified format" and border are the only types which can be
11395 Image: "unspecified format" and border enlarge
11397 parsoid=wt2html,wt2wt,html2html
11399 [[File:Foobar.jpg|2000px]]
11401 [[File:Foobar.jpg|border|2000px]]
11403 <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>
11404 </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>
11407 <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>
11408 <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>
11412 Image: "unspecified format" and border reduce
11414 parsoid=wt2html,wt2wt,html2html
11416 [[File:Foobar.jpg|1000px]]
11418 [[File:Foobar.jpg|border|1000px]]
11420 <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>
11421 </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>
11424 <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>
11425 <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>
11429 Image: thumbs reduce
11431 parsoid=wt2html,wt2wt,html2html
11433 [[File:Foobar.jpg|thumb|50px]]
11435 <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"></a></div></div></div></div>
11438 <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>
11442 Image: bitmap thumbs can't be enlarged past original size, but vector can.
11444 parsoid=wt2html,wt2wt,html2html
11446 [[File:Foobar.jpg|thumb|2000px]]
11448 [[File:Foobar.svg|thumb|2000px]]
11450 <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"></a></div></div></div></div>
11451 <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"></a></div></div></div></div>
11454 <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>
11455 <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>
11459 Image: frameless can reduce in size
11461 parsoid=wt2html,wt2wt,html2html
11463 [[File:Foobar.jpg|frameless|50px]]
11465 <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>
11468 <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>
11472 Image: bitmap frameless can't be enlarged past original size, but vector can
11474 parsoid=wt2html,wt2wt,html2html
11476 [[File:Foobar.jpg|frameless|2000px]]
11478 [[File:Foobar.svg|frameless|2000px]]
11480 <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>
11481 </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>
11484 <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>
11485 <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>
11489 Image: framed images are always unscaled.
11491 parsoid=wt2html,wt2wt,html2html
11493 [[File:Foobar.jpg|frame]]
11495 [[File:Foobar.jpg|frame|50px]]
11497 [[File:Foobar.jpg|frame|50x50px]]
11499 [[File:Foobar.jpg|frame|2000px]]
11501 <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>
11502 <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>
11503 <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>
11504 <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>
11507 <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>
11510 ###################
11513 Link to image page- image page normally doesn't exists, hence edit link
11514 Add test with existing image page
11515 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
11519 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
11524 bug 18784 Link to non-existent image page with caption should use caption as link text
11526 [[:Image:test|caption]]
11528 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
11533 Frameless image caption with a free URL
11535 [[File:Foobar.jpg|http://example.com]]
11537 <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>
11540 <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>
11544 Thumbnail image caption with a free URL
11548 [[File:Foobar.jpg|thumb|http://example.com]]
11550 <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"></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
11553 <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>
11557 Thumbnail image caption with a free URL and explicit alt
11560 parsoid=wt2html,wt2wt,html2html
11562 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
11564 <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"></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
11567 <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>
11571 SVG thumbnails with no language set
11574 [[File:Foobar.svg|thumb|caption]]
11576 <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"></a></div>caption</div></div></div>
11579 <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>
11583 SVG thumbnails with language de
11585 parsoid=wt2html,wt2wt,html2html
11587 [[File:Foobar.svg|thumb|caption|lang=de]]
11589 <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"></a></div>caption</div></div></div>
11592 <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>
11596 SVG thumbnails with invalid language code
11598 parsoid=wt2html,wt2wt,html2html
11600 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
11602 <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"></a></div>lang=invalid.language.code</div></div></div>
11605 <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>
11609 BUG 1887: A ISBN with a thumbnail
11611 [[File:Foobar.jpg|thumb|ISBN 1235467890]]
11613 <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"></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
11616 <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>
11620 BUG 1887: A RFC with a thumbnail
11622 [[File:Foobar.jpg|thumb|This is RFC 12354]]
11624 <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"></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
11627 <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>
11631 BUG 1887: A mailto link with a thumbnail
11633 [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]]
11635 <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"></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
11638 <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>
11641 # Pending resolution to bug 368
11643 BUG 648: Frameless image caption with a link
11645 [[File:Foobar.jpg|text with a [[link]] in it]]
11647 <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>
11650 <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>
11654 BUG 648: Frameless image caption with a link (suffix)
11656 [[File:Foobar.jpg|text with a [[link]]foo in it]]
11658 <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>
11661 <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>
11665 BUG 648: Frameless image caption with an interwiki link
11667 [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]
11669 <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>
11672 <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>
11676 BUG 648: Frameless image caption with a piped interwiki link
11678 [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
11680 <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>
11683 <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>
11687 Escape HTML special chars in image alt text
11689 [[File:Foobar.jpg|& < > "]]
11691 <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>
11694 <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>
11698 BUG 499: Alt text should have Ӓ, not &1234;
11700 [[File:Foobar.jpg|♀]]
11702 <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>
11705 <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>
11709 Broken image caption with link
11711 parsoid=wt2html,wt2wt,html2html
11713 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
11715 <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.
11718 <p>[[Image:Foobar.jpg|thumb|This is a broken caption. But <a rel="mw:WikiLink" href="Main_Page" title="Main Page">this</a> is just an ordinary link.</p>
11722 Image caption containing another image
11724 [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]]
11726 <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"></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>
11729 <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>
11733 Image: caption containing a newline
11735 [[File:Foobar.jpg|This
11738 <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>
11741 <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>
11745 Image: caption containing leading space
11746 (The leading space should not trigger nowiki escaping in wt2wt mode)
11748 [[File:Foobar.jpg|thumb| bar]]
11750 <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"></a></div>bar</div></div></div>
11753 <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>
11757 Image: caption containing a table
11759 parsoid=wt2html,wt2wt,html2html
11761 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
11767 and some more text.]]
11769 <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"></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>
11772 <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
11775 <tr><th>Foo </th><th>Bar</th></tr>
11778 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
11782 Bug 3090: External links other than http: in image captions
11784 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
11786 <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"></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>
11789 <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>
11795 parsoid=wt2html,wt2wt,html2html
11797 [[Image:foobar.jpg|a|class=b]]
11799 <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>
11802 <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>
11806 Localized image handling (1).
11808 parsoid=wt2html,wt2wt,html2html
11811 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
11813 <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>
11816 <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>
11820 Localized image handling (2).
11823 parsoid=wt2html,wt2wt,html2html
11826 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
11828 <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"></a></div>caption</div></div></div>
11831 <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>
11835 "border", "frameless" and "class" attributes on an image.
11838 parsoid=wt2html,wt2wt,html2html
11840 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
11842 <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>
11845 <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>
11848 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
11850 Invalid image attributes (bug 62500)
11853 parsoid=wt2html,wt2wt,html2html
11855 [[File:Foobar.jpg|thumb|float|left|caption]]
11857 [[File:Foobar.jpg|thumb|righ|caption]]
11859 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
11861 <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"></a></div>caption</div></div></div>
11862 <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"></a></div>caption</div></div></div>
11863 <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"></a></div>caption</div></div></div>
11866 <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>
11872 #REDIRECT [[File:Barfoo.jpg]]
11878 [[Image:Barfoo.jpg]]
11880 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
11885 Missing image with uploads disabled
11889 [[Image:Foobaz.jpg]]
11891 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
11895 # Parsoid-specific testing for images
11896 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
11897 # Currently imperfect due to a flaw in the Parsoid testrunner
11899 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
11903 Parsoid-specific image handling - simple image with size and middle alignment
11905 [[File:Foobar.jpg|middle|50px]]
11907 <p><span class="mw-valign-middle" typeof="mw:Image">
11908 <a href="File:Foobar.jpg">
11909 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11916 Parsoid-specific image handling - simple image with size, middle alignment,
11917 non-standard namespace alias
11919 parsoid=wt2wt,wt2html,html2html
11921 [[Image:Foobar.jpg|middle|50px]]
11923 <p><span class="mw-valign-middle" typeof="mw:Image">
11924 <a href="File:Foobar.jpg">
11925 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11932 Parsoid-specific image handling - simple image with size and middle alignment
11935 [[File:Foobar.jpg|50px|middle]]
11937 <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>
11941 Parsoid-specific image handling - simple image with size and middle alignment
11942 and non-standard namespace name
11944 parsoid=wt2html,wt2wt,html2html
11946 [[Image:Foobar.jpg|50px|middle]]
11948 <p><span class="mw-valign-middle" typeof="mw:Image">
11949 <a href="File:Foobar.jpg">
11950 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
11957 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
11959 [[File:Foobar.jpg|500x10px|baseline|caption]]
11961 <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>
11965 Parsoid-specific image handling - simple image with border and size spec
11967 [[File:Foobar.jpg|50px|border|caption]]
11969 <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>
11973 Parsoid-specific image handling - thumbnail with halign, valign, and caption
11975 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
11977 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
11978 <a href="File:Foobar.jpg">
11979 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
11981 <figcaption>caption content</figcaption>
11986 Parsoid-specific image handling - thumbnail with halign, valign, and caption
11989 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
11991 <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>
11995 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
11997 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
11999 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
12000 <a href="File:Foobar.jpg">
12001 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
12003 <figcaption>caption</figcaption>
12008 Parsoid-specific image handling - thumbnail with specific size, halign,
12009 valign, and caption (existing content)
12011 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
12013 <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>
12017 Parsoid-specific image handling - framed image with specific size and caption
12020 parsoid=wt2html,wt2wt,html2html
12022 [[File:Foobar.jpg|frame|500x50px|caption]]
12024 <figure typeof="mw:Image/Frame">
12025 <a href="File:Foobar.jpg">
12026 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941" />
12028 <figcaption>caption</figcaption>
12033 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
12036 parsoid=wt2html,wt2wt,html2html
12038 [[File:Foobar.jpg|left|baseline|frame|500x50px|caption]]
12040 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
12041 <a href="File:Foobar.jpg">
12042 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941" />
12044 <figcaption>caption</figcaption>
12049 Parsoid-specific image handling - frameless image with specific size, border, and caption
12051 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
12053 <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>
12057 Parsoid-specific image handling - simple image with a formatted caption
12059 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
12061 <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>"}'>
12062 <a href="File:Foobar.jpg">
12063 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
12068 Parsoid-specific image handling - caption with a template in it
12070 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
12072 <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>
12076 Parsoid-specific image handling - caption with unbalanced tags in it
12078 parsoid=wt2html,wt2wt,html2html
12081 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
12085 <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>
12090 Parsoid-specific image handling - empty caption (1)
12092 parsoid=wt2html,wt2wt
12094 [[File:Foobar.jpg|thumb|]]
12096 <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>
12099 # empty captions don't get serialized unless we're in the "round trip" case
12101 Parsoid-specific image handling - empty caption (2)
12105 <figure class="mw-default-size" typeof="mw:Image/Thumb">
12106 <a href="File:Foobar.jpg">
12107 <img resource="./File:Foobar.jpg"
12108 src="//example.com/images/3/3a/Foobar.jpg"
12109 height="25" width="220"/>
12111 <figcaption></figcaption>
12114 [[File:Foobar.jpg|thumb]]
12118 Parsoid-specific image handling - whitespace caption
12120 [[File:Foobar.jpg|thumb| ]]
12122 <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>
12126 Parsoid-specific image handling - lang option
12129 [[File:Foobar.svg|lang=de|caption]]
12133 <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>
12142 Subpage test/subpage
12150 subpage title=[[Subpage test]]
12154 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
12159 Subpage noslash link
12161 subpage title=[[Subpage test]]
12165 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
12169 # TODO: make this PHP-parser compatible!
12171 Relative subpage noslash link
12173 parsoid=wt2wt,wt2html,html2html
12174 subpage title=[[Subpage test/1/2/3/4]]
12180 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/" title="Subpage test/1/2/subpage/">subpage</a></p>
12181 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
12185 Parsoid: dot-slash prefixed wikilinks
12195 </p><p>[[././baz/]]
12200 </p><p>[[././baz/]]
12205 Render invalid page names as plain text (bug 51090)
12218 [[{{echo|./../foo}}|bar]]
12219 [[{{echo|foo/.}}|bar]]
12220 [[{{echo|foo/..}}|bar]]
12221 [[{{echo|foo~~~~bar}}]]
12222 [[{{echo|foo>bar}}]]
12223 [[{{echo|foo././bar}}]]
12224 [[{{echo|foo{bar}}]]
12225 [[{{echo|foo}bar}}]]
12226 [[{{echo|foo[bar}}]]
12227 [[{{echo|foo]bar}}]]
12228 [[{{echo|foo<bar}}]]
12230 <p>[[./../foo|bar]]
12240 </p><p>[[./../foo|bar]]
12253 <p>[[./../foo|bar]][[foo�|bar]][[foo/.|bar]][[foo/..|bar]][[foo~~~bar]][[foo>bar]][[foo[bar]][[.]][[..]][[foo././bar]]</p>
12254 <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>
12262 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
12267 BUG 561: {{/Subpage}}
12269 subpage title=[[Page]]
12273 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
12281 Category:MediaWiki User's Guide
12289 [[:Category:MediaWiki User's Guide]]
12291 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
12300 [[Category:MediaWiki User's Guide]]
12302 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12306 PAGESINCATEGORY invalid title fatal (r33546 fix)
12308 {{PAGESINCATEGORY:<bogus>}}
12315 Category with different sort key
12319 [[Category:MediaWiki User's Guide|Foo]]
12321 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12325 Category with identical sort key
12329 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
12331 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12335 Category with empty sort key
12340 [[Category:MediaWiki User's Guide|]]
12342 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
12346 Category with empty sort key and parentheses
12351 [[Category:Foo (bar)|]]
12353 [[Category:Foo (bar)|Foo]]
12357 Category with link tail
12362 123[[Category:Foo]]456
12364 123[[Category:Foo]]456
12368 Category with template
12373 [[Category:{{echo|Foo}}]]
12375 [[Category:{{echo|Foo}}]]
12379 Category with template in sort key
12384 [[Category:Foo|{{echo|Bar}}]]
12386 [[Category:Foo|{{echo|Bar}}]]
12390 Category with template in sort key and title
12395 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
12397 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
12401 Category / paragraph interactions
12403 Foo [[Category:Baz]] Bar
12405 Foo [[Category:Baz]]
12413 [[Category:Baz]] Bar
12426 {{echo|[[Category:Baz]]}}
12441 Parsoid: Serialize link to category page with colon escape
12447 [[:Category:Foo|Bar]]
12450 <a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Category:Foo</a>
12451 <a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Bar</a>
12456 Parsoid: Link prefix/suffixes aren't applied to category links
12458 parsoid=wt2html,wt2wt,html2html
12463 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
12467 Parsoid: Serialize link to file page with colon escape
12473 [[:File:Foo.png|Bar]]
12476 <a rel="mw:WikiLink" href="File:Foo.png" title="File:Foo.png">File:Foo.png</a>
12477 <a rel="mw:WikiLink" href="File:Foo.png" title="File:Foo.png">Bar</a>
12482 Parsoid: Serialize a genuine category link without colon escape
12487 [[Category:Foo|Bar]]
12489 <link rel="mw:PageProp/Category" href="Category:Foo">
12490 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
12494 Parsoid: Defaultsort
12498 {{DEFAULTSORT:Foo}}
12500 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
12504 ### Inter-language links
12507 Interlanguage links
12515 es:Alimento fr:Nourriture zh:食品
12517 <p><link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/Alimento"/>
12518 <link rel="mw:PageProp/Language" href="//fr.wikipedia.org/wiki/Nourriture"/>
12519 <link rel="mw:PageProp/Language" href="//zh.wikipedia.org/wiki/食品"/></p>
12523 Duplicate interlanguage links (bug 24502)
12534 <p><link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/1"/>
12535 <link rel="mw:PageProp/Language" href="//es.wikipedia.org/wiki/2"/>
12536 <link rel="mw:PageProp/Language" href="//fr.wikipedia.org/wiki/1"/>
12537 <link rel="mw:PageProp/Language" href="//fr.wikipedia.org/wiki/2"/></p>
12544 Basic section headings
12551 ===Smaller headline===
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>
12557 <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>
12560 <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>
12566 Section headings with TOC
12569 === Subheadline 1 ===
12570 ===== Skipping a level =====
12571 ====== Skipping a level ======
12575 ===Another headline===
12577 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12579 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
12581 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
12583 <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>
12585 <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>
12592 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
12594 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
12600 <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>
12601 <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>
12602 <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>
12603 <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>
12604 <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>
12607 <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>
12611 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
12613 Handling of sections up to level 6 and beyond
12616 == Level 2 Heading==
12617 === Level 3 Heading===
12618 ==== Level 4 Heading====
12619 ===== Level 5 Heading=====
12620 ====== Level 6 Heading======
12621 ======= Level 7 Heading=======
12622 ======== Level 8 Heading========
12623 ========= Level 9 Heading=========
12624 ========== Level 10 Heading==========
12626 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12628 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
12630 <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>
12632 <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>
12634 <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>
12636 <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>
12638 <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>
12639 <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>
12640 <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>
12641 <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>
12642 <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>
12656 <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>
12657 <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>
12658 <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>
12659 <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>
12660 <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>
12661 <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>
12662 <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>
12663 <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>
12664 <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>
12665 <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>
12670 TOC regression (bug 9764)
12674 ==== title 1.1.1 ====
12679 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12681 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
12683 <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>
12685 <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>
12688 <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>
12691 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
12693 <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>
12699 <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>
12700 <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>
12701 <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>
12702 <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>
12703 <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>
12704 <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>
12709 TOC with wgMaxTocLevel=3 (bug 6204)
12715 ==== title 1.1.1 ====
12720 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12722 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
12724 <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>
12725 <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>
12728 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
12730 <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>
12736 <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>
12737 <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>
12738 <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>
12739 <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>
12740 <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>
12741 <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>
12746 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
12752 ====Section 1.1.1====
12753 ====Section 1.1.1.1====
12756 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12758 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
12760 <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>
12763 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
12767 <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>
12768 <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>
12769 <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>
12770 <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>
12771 <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>
12777 Resolving duplicate section names
12782 <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>
12783 <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>
12788 Resolving duplicate section names with differing case (bug 10721)
12793 <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>
12794 <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>
12806 Template with sections, __NOTOC__
12813 <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>
12814 <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>
12815 <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>
12816 <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>
12821 __NOEDITSECTION__ keyword
12827 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
12828 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
12833 Link inside a section heading
12835 ==Section with a [[Main Page|link]] in it==
12837 <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>
12842 TOC regression (bug 12077)
12849 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12851 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
12853 <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>
12856 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
12860 <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>
12861 <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>
12862 <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>
12867 BUG 1219 URL next to image (good)
12869 http://example.com [[Image:foobar.jpg]]
12871 <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>
12876 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
12879 The line above must have a trailing space!
12882 But just in case it doesn't...
12884 <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>
12885 <p>The line above must have a trailing space!
12887 <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>
12888 <p>But just in case it doesn't...
12893 Header with special characters (bug 25462)
12895 The tooltips shall not show entities to the user (ie. be double escaped)
12912 <p>The tooltips shall not show entities to the user (ie. be double escaped)
12914 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12916 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
12917 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
12918 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
12919 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
12920 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
12924 <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>
12927 <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>
12930 <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>
12933 <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>
12936 <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>
12942 Headers with excess '=' characters
12943 (Are similar tests necessary beyond the 1st level?)
12947 =''italic'' heading==
12948 ==''italic'' heading=
12950 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12952 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
12953 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
12954 <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>
12955 <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>
12959 <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>
12960 <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>
12961 <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>
12962 <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>
12967 HTML headers vs TOC (bug 23393)
12968 (__NOEDITSECTION__ for clearer output, doesn't matter here)
12980 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12982 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
12984 <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>
12985 <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>
12988 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
12990 <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>
12991 <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>
12997 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
12998 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
12999 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
13000 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
13001 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
13002 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
13007 Single-line or multiline-comments can follow headings
13009 parsoid=wt2html,wt2wt
13017 <h2><span class="mw-headline" id="foo">foo</span></h2>
13018 <h2><span class="mw-headline" id="bar">bar</span></h2>
13019 <h2><span class="mw-headline" id="baz">baz</span></h2>
13024 BUG 1219 URL next to image (broken)
13026 http://example.com[[Image:foobar.jpg]]
13028 <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>
13033 Bug 1186 news: in the middle of text
13035 http://en.wikinews.org/wiki/Wikinews:Workplace
13037 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
13043 Namespaced link must have a title
13052 Namespaced link must have a title (bad fragment version)
13054 [[Project:#fragment]]
13056 <p>[[Project:#fragment]]
13062 ### HTML tags and HTML attributes
13066 div with no attributes
13068 <div>HTML rocks</div>
13070 <div>HTML rocks</div>
13075 div with double-quoted attribute
13077 <div id="rock">HTML rocks</div>
13079 <div id="rock">HTML rocks</div>
13084 div with single-quoted attribute
13086 <div id='rock'>HTML rocks</div>
13088 <div id="rock">HTML rocks</div>
13093 div with unquoted attribute
13095 <div id=rock>HTML rocks</div>
13097 <div id="rock">HTML rocks</div>
13102 div with illegal double attributes
13104 <div id="a" id="b">HTML rocks</div>
13106 <div id="b">HTML rocks</div>
13110 # FIXME: produce empty string instead of "class" in the PHP parser, following
13113 div with empty attribute value, space before equals
13117 <div class =>HTML rocks</div>
13119 <div class="">HTML rocks</div>
13124 div with multiple empty attribute values
13128 <div id= title=>HTML rocks</div>
13130 <div id="" title="">HTML rocks</div>
13135 table with multiple empty attribute values
13143 <table title="" id="">
13144 <tbody><tr><td> hi</td></tr>
13148 # The PHP parser escapes the opening brace to { for some reason, so
13149 # disabled this test for it.
13151 div with braces in attribute value
13155 <div title="{}">Foo</div>
13157 <div title="{}">Foo</div>
13160 # This it very inconsistent in the PHP parser: it returns
13161 # class="class" if there is a space between the name and the equal sign (see
13162 # 'div with empty attribute value, space before equals'), but strips the
13163 # attribute completely if the space is missing. We hope that not much content
13164 # depends on this, so are implementing the behavior below in Parsoid for
13165 # consistencies' sake. Disabled for the PHP parser.
13166 # FIXME: fix this behavior in the PHP parser?
13168 div with empty attribute value, no space before equals
13172 <div class=>HTML rocks</div>
13174 <div class="">HTML rocks</div>
13179 HTML multiple attributes correction
13181 <p class="error" class="awesome">Awesome!</p>
13183 <p class="awesome">Awesome!</p>
13188 Table multiple attributes correction
13191 !+ class="error" class="awesome"| status
13196 <th class="awesome"> status
13204 <DIV ID="x">HTML ROCKS</DIV>
13206 <div id="x">HTML ROCKS</div>
13211 Non-ASCII pseudo-tags are rendered as text
13220 Pseudo-tag with URL 'name' renders as url link
13222 <http://example.com/>
13224 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
13229 text with amp in the middle of nowhere
13233 <p>Remember AT&T?
13238 text with character entity: eacute
13240 I always thought é was a cute letter.
13242 <p>I always thought é was a cute letter.
13245 <p>I always thought é was a cute letter.</p>
13249 text with entity-escaped character entity-like string: eacute
13251 I always thought &eacute; was a cute letter.
13253 <p>I always thought &eacute; was a cute letter.
13258 text with undefined character entity: xacute
13260 I always thought &xacute; was a cute letter.
13262 <p>I always thought &xacute; was a cute letter.
13266 # TODO: generalize to PHP parser?
13272 <data value="5">five</data>
13273 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
13274 <mark>This highlighted text</mark>
13276 <p><data value="5">five</data>
13277 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
13278 <mark>This highlighted text</mark></p>
13282 HTML tag with leading space is parsed as text
13286 <p>< div>foo< /div>
13291 ### Nesting tests (see bug 41545, 50604, 51081)
13294 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
13295 # Note that html2wt is considerably more difficult if we use <b> in
13296 # the test case, instead of <big>
13298 Ensure that HTML adoption agency algorithm is properly implemented.
13300 <big>X<big>Y</big>Z</big>
13302 <p><big>X<big>Y</big>Z</big>
13306 # This was bug 41545 in the PHP parser.
13307 # Note that tidy doesn't handle this correctly.
13311 <kbd>X<kbd>Y</kbd>Z</kbd>
13313 <p><kbd>X<kbd>Y</kbd>Z</kbd>
13317 # The following cases were bug 51081 in the PHP parser.
13318 # Note that there are some other nestable tags (b, i, etc) which are
13319 # not covered; see bug 51081 for discussion.
13321 # Note that tidy doesn't handle this correctly.
13325 <em>X<em>Y</em>Z</em>
13327 <p><em>X<em>Y</em>Z</em>
13331 # Note that tidy doesn't handle this correctly.
13333 Nesting of <strong>
13335 <strong>X<strong>Y</strong>Z</strong>
13337 <p><strong>X<strong>Y</strong>Z</strong>
13346 <p><q>X<q>Y</q>Z</q></p>
13349 # Note that tidy doesn't handle this correctly.
13353 <ruby>X<ruby>Y</ruby>Z</ruby>
13355 <p><ruby>X<ruby>Y</ruby>Z</ruby>
13359 # Note that tidy doesn't handle this correctly.
13363 <bdo>X<bdo>Y</bdo>Z</bdo>
13365 <p><bdo>X<bdo>Y</bdo>Z</bdo>
13377 [[Media:Foobar.jpg]]
13379 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
13384 Media link with text
13386 [[Media:Foobar.jpg|A neat file to look at]]
13388 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
13392 # FIXME: this is still bad HTML tag nesting
13394 Media link with nasty text
13395 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
13397 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
13399 <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>
13402 <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>
13406 Media link to nonexistent file (bug 1702)
13408 [[Media:No such.jpg]]
13410 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
13415 Image link to nonexistent file (bug 1850 - good)
13417 [[Image:No such.jpg]]
13419 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
13424 :Image link to nonexistent file (bug 1850 - bad)
13426 [[:Image:No such.jpg]]
13428 <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>
13435 Character reference normalization in link text (bug 1938)
13437 [[Main Page|this&that]]
13439 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
13446 Test for unicode normalization
13448 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
13452 (bug 19451) Links should refer to the normalized form.
13460 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13461 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13462 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13463 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13464 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13469 Empty attribute crash test (bug 2067)
13471 <font color="">foo</font>
13473 <p><font color="">foo</font>
13478 Empty attribute crash test single-quotes (bug 2067)
13480 <font color=''>foo</font>
13482 <p><font color="">foo</font>
13487 Attribute test: equals, then nothing
13489 <font color=>foo</font>
13491 <p><font>foo</font>
13496 Attribute test: unquoted value
13498 <font color=x>foo</font>
13500 <p><font color="x">foo</font>
13505 Attribute test: unquoted but illegal value (hash)
13507 <font color=#x>foo</font>
13509 <p><font color="#x">foo</font>
13514 Attribute test: no value
13516 <font color>foo</font>
13518 <p><font color="color">foo</font>
13523 Bug 2095: link with three closing brackets
13527 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
13530 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a>]</p>
13534 Bug 2095: link with pipe and three closing brackets
13536 [[Main Page|link]]]
13538 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
13541 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">link</a>]</p>
13545 Bug 2095: link with pipe and three closing brackets, version 2
13547 [[Main Page|[http://example.com/]]]
13549 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
13552 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">[http://example.com/]</a></p>
13561 Template:Dangerous attribute
13563 " onmouseover="alert(document.cookie)
13567 Template:Dangerous style attribute
13569 border-size: expression(alert(document.cookie))
13575 <div style="float: right; {{{1}}}">Magic div</div>
13579 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
13581 <div title="{{test}}"></div>
13583 <div title="This is a test template"></div>
13587 # Parsoid has enough context to handle this case
13589 Bug 2304: HTML attribute safety (dangerous template; 2309)
13591 <div title="{{dangerous attribute}}"></div>
13593 <div title=""></div>
13596 <div title='" onmouseover="alert(document.cookie)' about="#mwt2" typeof="mw:ExpandedAttrs" data-mw='{"attribs":[[{"txt":"title"},{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;dangerous attribute&quot;,&quot;href&quot;:&quot;./Template:Dangerous_attribute&quot;},&quot;params&quot;:{},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;pi&quot;:[[]],&quot;dsr&quot;:[12,35,null,null]}\">\" onmouseover=\"alert(document.cookie)</span>"}]]}' data-parsoid='{"stx":"html","a":{"title":"\" onmouseover=\"alert(document.cookie)"},"sa":{"title":"{{dangerous attribute}}"}}'></div>
13600 Bug 2304: HTML attribute safety (dangerous style template; 2309)
13602 <div style="{{dangerous style attribute}}"></div>
13604 <div style="/* insecure input */"></div>
13609 Bug 2304: HTML attribute safety (safe parameter; 2309)
13611 {{div style|width: 200px}}
13613 <div style="float: right; width: 200px">Magic div</div>
13618 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
13620 {{div style|width: expression(alert(document.cookie))}}
13622 <div style="/* insecure input */">Magic div</div>
13627 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
13629 {{div style|"><script>alert(document.cookie)</script>}}
13631 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
13636 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
13638 {{div style|" ><script>alert(document.cookie)</script>}}
13640 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
13645 Bug 2304: HTML attribute safety (link)
13647 <div title="[[Main Page]]"></div>
13649 <div title="[[Main Page]]"></div>
13654 Bug 2304: HTML attribute safety (italics)
13656 <div title="''foobar''"></div>
13658 <div title="''foobar''"></div>
13663 Bug 2304: HTML attribute safety (bold)
13665 <div title="'''foobar'''"></div>
13667 <div title="'''foobar'''"></div>
13673 Bug 2304: HTML attribute safety (ISBN)
13675 <div title="ISBN 1234567890"></div>
13677 <div title="ISBN 1234567890"></div>
13682 Bug 2304: HTML attribute safety (RFC)
13684 <div title="RFC 1234"></div>
13686 <div title="RFC 1234"></div>
13691 Bug 2304: HTML attribute safety (PMID)
13693 <div title="PMID 1234567890"></div>
13695 <div title="PMID 1234567890"></div>
13700 Bug 2304: HTML attribute safety (web link)
13702 <div title="http://example.com/"></div>
13704 <div title="http://example.com/"></div>
13709 Bug 2304: HTML attribute safety (named web link)
13711 <div title="[http://example.com/ link]"></div>
13713 <div title="[http://example.com/ link]"></div>
13718 Bug 3244: HTML attribute safety (extension; safe)
13720 <div style="<nowiki>background:blue</nowiki>"></div>
13722 <div style="background:blue"></div>
13727 Bug 3244: HTML attribute safety (extension; unsafe)
13729 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
13731 <div style="/* insecure input */"></div>
13735 # More MSIE fun discovered by Tom Gilder
13738 MSIE CSS safety test: spurious slash
13740 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
13742 <div style="/* insecure input */">evil</div>
13747 MSIE CSS safety test: hex code
13749 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
13751 <div style="/* insecure input */">evil</div>
13756 MSIE CSS safety test: comment in url
13758 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
13760 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
13765 MSIE CSS safety test: comment in expression
13767 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
13769 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
13774 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
13776 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
13778 <p style="/* invalid control char */">A</p>
13783 MSIE 6 CSS safety test: Fullwidth (bug 55332)
13785 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
13786 <div style="top:EXPRESSION(alert())">B</div>
13788 <p style="/* insecure input */">A</p>
13789 <div style="/* insecure input */">B</div>
13794 MSIE 6 CSS safety test: IPA extensions (bug 55332)
13796 <div style="background-image:uʀʟ(javascript:alert())">A</div>
13797 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
13799 <div style="/* insecure input */">A</div>
13800 <p style="/* insecure input */">B</p>
13805 MSIE 6 CSS safety test: sup/sub script (bug 55332)
13807 <div style="background-image:url⁽javascript:alert())">A</div>
13808 <div style="background-image:url₍javascript:alert())">B</div>
13809 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
13811 <div style="/* insecure input */">A</div>
13812 <div style="/* insecure input */">B</div>
13813 <p style="/* insecure input */">C</p>
13821 title="data:text/html,<img src=1 onerror=alert(1)>"
13822 style="-o-link:attr(title);-o-link-source:current">X</div>
13824 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
13829 MSIE 6 CSS safety test: Repetition markers (bug 55332)
13831 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
13832 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
13833 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
13834 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
13835 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
13836 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
13837 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
13839 <p style="/* insecure input */">A</p>
13840 <p style="/* insecure input */">B</p>
13841 <p style="/* insecure input */">C</p>
13842 <p style="/* insecure input */">D</p>
13843 <p style="/* insecure input */">E</p>
13844 <p style="/* insecure input */">F</p>
13845 <p style="/* insecure input */">G</p>
13850 Table attribute legitimate extension
13853 !+ style="<nowiki>color:blue</nowiki>"| status
13858 <th style="color:blue"> status
13864 Table attribute safety
13867 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
13872 <th style="/* insecure input */"> status
13878 CSS line continuation 1
13880 <div style="background-image: u\ rl(test.jpg);"></div>
13882 <div style="/* insecure input */"></div>
13887 CSS line continuation 2
13889 <div style="background-image: u\ rl(test.jpg); "></div>
13891 <div style="/* insecure input */"></div>
13902 Expansion of multi-line templates in attribute values (bug 6255)
13904 <div style="background: {{identity|#00FF00}}">-</div>
13906 <div style="background: #00FF00">-</div>
13912 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
13914 <div style="background:
13917 <div style="background: #00FF00">-</div>
13922 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
13924 <div style="background: #00FF00">-</div>
13926 <div style="background: #00FF00">-</div>
13931 evil <math>-wiki-tags without Extension:Math enabled
13933 <math><img src="some evil external link"><script>some_evil_javascript();</script></math>
13935 <p><math><img src="some evil external link"><script>some_evil_javascript();</script></math></p>
13939 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
13942 Parser hook: empty input
13955 Parser hook: empty input using terminated empty elements
13968 Parser hook: empty input using terminated empty elements (space before)
13981 Parser hook: basic input
13995 Parser hook: case insensitive
14009 Parser hook: case insensitive, redux
14022 Parser hook: nested tags
14026 <tag><tag></tag></tag>
14037 Parser hook: basic arguments
14039 <tag width=200 height = "100" depth = '50' square></tag>
14047 'square' => 'square',
14054 Parser hook: argument containing a forward slash (bug 5344)
14056 <tag filename='/tmp/bla'></tag>
14061 'filename' => '/tmp/bla',
14068 Parser hook: empty input using terminated empty elements (bug 2374)
14081 # </tag> should be output literally since there is no matching tag that begins it
14083 Parser hook: basic arguments using terminated empty elements (bug 2374)
14085 <tag width=200 height = "100" depth = '50' square/>
14095 'square' => 'square',
14104 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
14108 Parser hook: static parser hook not inside a comment
14110 <statictag>hello, world</statictag>
14111 <statictag action=flush/>
14119 Parser hook: static parser hook inside a comment
14121 <!-- <statictag>hello, world</statictag> -->
14122 <statictag action=flush/>
14128 # Nested template calls; this case was broken by Parser.php rev 1.506,
14132 Template:One-parameter
14134 (My parameter is: {{{1}}})
14138 Template:Map-one-parameter
14140 {{{{{1}}}|{{{2}}}}}
14144 Nested template calls
14146 {{Map-one-parameter|One-parameter|param}}
14148 <p>(My parameter is: param)
14157 Sanitizer: Closing of open tags
14159 <s></s><table></table>
14161 <s></s><table></table>
14166 Sanitizer: Closing of open but not closed tags
14175 Sanitizer: Closing of closed but not open tags
14184 Sanitizer: Closing of closed but not open table tags
14186 Table not started</td></tr></table>
14188 <p>Table not started</td></tr></table>
14193 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
14195 <span id="æ: v">byte</span>[[#æ: v|backlink]]
14197 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
14202 Sanitizer: Validating the contents of the id attribute (bug 4515)
14208 Something, but definitely not <br id="9" />...
14212 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
14216 <br id="foo" /><br id="foo" />
14218 Something need to be done. foo-2 ?
14222 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
14225 <meta itemprop="hello" content="world">
14226 <meta http-equiv="refresh" content="5">
14227 <meta itemprop="hello" http-equiv="refresh" content="5">
14228 <link itemprop="hello" href="{{SERVER}}">
14229 <link rel="stylesheet" href="{{SERVER}}">
14230 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
14233 <div itemscope="itemscope">
14234 <p> <meta itemprop="hello" content="world" />
14235 <meta http-equiv="refresh" content="5">
14236 <meta itemprop="hello" content="5" />
14238 <link itemprop="hello" href="http://example.org" />
14239 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
14240 <link itemprop="hello" href="http://example.org" />
14246 Language converter: output gets cut off unexpectedly (bug 5757)
14250 this bit is safe: }-
14252 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
14254 then we get cut off here: }-
14256 all additional text is vanished
14258 <p>this bit is safe: }-
14259 </p><p>but if we add a conversion instance: xxx
14260 </p><p>then we get cut off here: }-
14261 </p><p>all additional text is vanished
14266 Self closed html pairs (bug 5487)
14269 <center><font id="bug" />Centered text</center>
14270 <div><font id="bug2" />In div text</div>
14272 <center><font id="bug" />Centered text</center>
14273 <div><font id="bug2" />In div text</div>
14282 Punctuation: nbsp before exclamation
14286 <p>C'est grave !
14291 Punctuation: CSS !important (bug 11874)
14293 <div style="width:50% !important">important</div>
14295 <div style="width:50% !important">important</div>
14300 Punctuation: CSS ! important (bug 11874; with space after)
14302 <div style="width:50% ! important">important</div>
14304 <div style="width:50% ! important">important</div>
14310 HTML bullet list, closed tags (bug 5497)
14325 HTML bullet list, unclosed tags (bug 5497)
14344 HTML ordered list, closed tags (bug 5497)
14359 HTML ordered list, unclosed tags (bug 5497)
14378 HTML nested bullet list, closed tags (bug 5497)
14403 HTML nested bullet list, open tags (bug 5497)
14432 HTML nested ordered list, closed tags (bug 5497)
14457 HTML nested ordered list, open tags (bug 5497)
14486 HTML ordered list item with parameters oddity
14488 <ol><li id="fragment">One</li>
14491 <ol><li id="fragment">One</li>
14496 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
14498 bug 5918: autonumbering
14500 [http://first/] [http://second] [ftp://ftp]
14504 [mailto:enclosed@mail.tld With target]
14506 [mailto:enclosed@mail.tld]
14508 mailto:inline@mail.tld
14510 <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>
14511 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
14512 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
14513 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
14514 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
14517 <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>
14518 <p><a rel="mw:ExtLink" href="ftp://inlineftp">ftp://inlineftp</a></p>
14519 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld">With target</a></p>
14520 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld"></a></p>
14521 <p><a rel="mw:ExtLink" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a></p>
14526 # Security and HTML correctness
14527 # From Nick Jenkins' fuzz testing
14531 Fuzz testing: Parser13
14546 Fuzz testing: Parser14
14551 <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>
14552 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14554 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
14560 <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>
14562 <div id="toc" class="toc">
14563 <div id="toctitle">
14567 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
14573 Fuzz testing: Parser14-table
14578 <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>
14579 <table style="__TOC__">
14584 <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>
14585 <table style="__TOC__">
14592 # Known to produce bogus xml (extra </td>)
14594 Fuzz testing: Parser16
14623 Fuzz testing: Parser21
14626 ! irc://{{ftp://a" onmouseover="alert('hello world');"
14631 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
14641 Fuzz testing: Parser22
14643 http://===r:::https://b
14647 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
14655 # Known to produce bad XML for now
14657 Fuzz testing: Parser24
14664 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
14665 <br style="onmouseover='alert(document.cookie);' " />
14667 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
14672 <u class="|">}}}} >
14673 <br style="onmouseover='alert(document.cookie);'" />
14675 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
14684 # Note: the current result listed for this is not what the original one was,
14685 # but the original bug was JavaScript injection, which is fixed in any case.
14686 # It's not clear that the original result listed was any more correct than the
14687 # current one. Original result:
14690 # <li class="||">
14691 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
14693 Fuzz testing: Parser25 (bug 6055)
14699 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
14701 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
14706 Fuzz testing: URL adjacent extension (with space, clean)
14708 http://example.com <nowiki>junk</nowiki>
14710 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
14715 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
14717 http://example.com<nowiki>junk</nowiki>
14719 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
14724 Fuzz testing: URL adjacent extension (no space, dirty; pre)
14726 http://example.com<pre>junk</pre>
14728 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
14731 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></p>
14738 Fuzz testing: image with bogus manual thumbnail
14740 [[Image:foobar.jpg|thumbnail= ]]
14742 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
14745 <meta typeof="mw:Placeholder" data-parsoid='{"src":"[[Image:foobar.jpg|thumbnail= ]]","optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,null,null]}'/>
14749 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
14751 <pre dir=" "></pre>
14753 <pre dir=" "></pre>
14758 Parsing optional HTML elements (Bug 6171)
14763 <td> Some tabular data</td>
14764 <td> More tabular data ...
14765 <td> And yet som tabular data</td>
14771 <td> Some tabular data</td>
14772 <td> More tabular data ...
14773 </td><td> And yet som tabular data</td>
14780 Correct handling of <td>, <tr> (Bug 6171)
14785 <td> Some tabular data</td>
14786 <td> More tabular data ...</td>
14787 <td> And yet som tabular data</td>
14793 <td> Some tabular data</td>
14794 <td> More tabular data ...</td>
14795 <td> And yet som tabular data</td>
14803 Parsing crashing regression (fr:JavaScript)
14807 <p></body></x>
14812 Inline wiki vs wiki block nesting
14818 <p><b>Bold paragraph</b>
14819 </p><p>New wiki paragraph
14824 Inline HTML vs wiki block nesting
14832 <p><b>Bold paragraph</b>
14833 </p><p>New wiki paragraph
14837 # Original result was this:
14838 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
14840 # While that might be marginally more intuitive, maybe, the six-apostrophe
14841 # construct is clearly pathological and the result stated here (which is what
14842 # the parser actually does) is about as reasonable as anything.
14844 Mixing markup for italics and bold
14847 '''bold''''''bold''bolditalics'''''
14849 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
14857 Article for special page transclusion test
14861 Special page transclusion
14864 {{Special:Prefixindex/Xyzzyx}}
14866 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
14871 Special page transclusion twice (bug 5021)
14874 {{Special:Prefixindex/Xyzzyx}}
14875 {{Special:Prefixindex/Xyzzyx}}
14877 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
14878 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
14883 Transclusion of default MediaWiki message
14885 {{MediaWiki:Mainpage}}
14892 Transclusion of nonexistent MediaWiki message
14894 {{MediaWiki:Mainpagexxx}}
14896 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
14901 Transclusion of MediaWiki message with underscore
14903 {{MediaWiki:history_short}}
14910 Transclusion of MediaWiki message with space
14912 {{MediaWiki:history short}}
14919 Invalid header with following text
14929 Section extraction test (section 0)
14949 Section extraction test (section 1)
14971 Section extraction test (section 2)
14992 Section extraction test (section 3)
15012 Section extraction test (section 4)
15036 Section extraction test (section 5)
15056 Section extraction test (section 6)
15077 Section extraction test (section 7)
15097 Section extraction test (section 8)
15117 Section extraction test (section 9)
15138 Section extraction test (section 10)
15158 Section extraction test (nonexistent section 11)
15177 Section extraction test with bogus heading (section 1)
15182 ==bogus== not a legal section
15186 ==bogus== not a legal section
15190 Section extraction test with bogus heading (section 2)
15195 ==bogus== not a legal section
15202 Section extraction test with comment after heading (section 1)
15214 Section extraction test with comment after heading (section 2)
15226 Section extraction test with bogus <nowiki> heading (section 1)
15231 ==bogus== <nowiki>not a legal section</nowiki>
15235 ==bogus== <nowiki>not a legal section</nowiki>
15239 Section extraction test with bogus <nowiki> heading (section 2)
15244 ==bogus== <nowiki>not a legal section</nowiki>
15251 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
15252 # instead of respecting commented sections
15254 Section extraction prefixed by comment (section 1)
15265 Section extraction prefixed by comment (section 2)
15276 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
15277 # instead of respecting HTML-style headings
15279 Section extraction, mixed wiki and html (section 1)
15295 Section extraction, mixed wiki and html (section 2)
15311 # Formerly testing for bug 3342
15313 Section extraction, heading surrounded by <noinclude>
15317 <noinclude>==unmarked==</noinclude>
15323 # Test behavior of bug 19910
15325 Sectiion with all-equals
15330 The line above must have a trailing space
15333 But just in case it doesn't...
15337 But just in case it doesn't...
15341 Section replacement test (section 0)
15372 Section replacement test (section 1)
15401 Section replacement test (section 2)
15431 Section replacement test (section 3)
15462 Section replacement test (section 4)
15489 Section replacement test (section 5)
15520 Section replacement test (section 6)
15550 Section replacement test (section 7)
15581 Section replacement test (section 8)
15612 Section replacement test (section 9)
15641 Section replacement test (section 10)
15671 Section replacement test with initial whitespace (bug 13728)
15675 Preformatted initial line
15679 Preformatted initial line
15686 Section extraction, heading followed by pre with 20 spaces (bug 6398)
15698 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
15711 Section extraction, <pre> around bogus header (bug 10309)
15728 Section replacement, <pre> around bogus header (bug 10309)
15730 noxml replace=2,"xxx"
15751 Handling of 
 in URLs
15755 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
15758 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://
15760 a</a></li></ul></li></ul>
15764 Handling of %0A in URLs
15768 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
15771 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
15775 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
15777 5 quotes, code coverage +1 line
15784 <p><b><i></i></b></p>
15787 # same html as previous, but wikitext adjusted to match parsoid html2wt
15788 # note that wt2html and html2html will put the <i> before the <b>
15790 5 quotes, code coverage +1 line w/ nowiki (1)
15792 parsoid=wt2wt,html2wt
15794 '''''<nowiki/>'''''
15799 <p><b><i></i></b></p>
15802 # same as previous, just swapping the <i> and <b>
15804 5 quotes, code coverage +1 line w/ nowiki (2)
15806 '''''<nowiki/>'''''
15811 <p><i><b></b></i></p>
15815 Special:Search page linking.
15819 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
15826 title=[[Parser test]]
15831 * {{FULLPAGENAMEE}}
15833 * {{BASEPAGENAMEE}}
15837 * {{ROOTPAGENAMEE}}
15839 * {{TALKPAGENAMEE}}
15840 * {{SUBJECTPAGENAME}}
15841 * {{SUBJECTPAGENAMEE}}
15844 * {{NAMESPACENUMBER}}
15848 * {{SUBJECTSPACEE}}
15849 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
15851 <ul><li> Parser test</li>
15852 <li> Parser_test</li>
15853 <li> Parser test</li>
15854 <li> Parser_test</li>
15855 <li> Parser test</li>
15856 <li> Parser_test</li>
15857 <li> Parser test</li>
15858 <li> Parser_test</li>
15859 <li> Parser test</li>
15860 <li> Parser_test</li>
15861 <li> Talk:Parser test</li>
15862 <li> Talk:Parser_test</li>
15863 <li> Parser test</li>
15864 <li> Parser_test</li>
15872 <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>
15875 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
15885 image4 |300px| centre
15886 image5.svg| http://///////
15891 <ul class="gallery mw-gallery-traditional">
15892 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15893 <div class="thumb" style="height: 150px;">Image1.png</div>
15894 <div class="gallerytext">
15897 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15898 <div class="thumb" style="height: 150px;">Image2.gif</div>
15899 <div class="gallerytext">
15904 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15905 <div class="thumb" style="height: 150px;">Image3</div>
15906 <div class="gallerytext">
15909 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15910 <div class="thumb" style="height: 150px;">Image4</div>
15911 <div class="gallerytext">
15916 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15917 <div class="thumb" style="height: 150px;">Image5.svg</div>
15918 <div class="gallerytext">
15919 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
15923 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15924 <div class="thumb" style="height: 150px;">* image6</div>
15925 <div class="gallerytext">
15933 Gallery (with options)
15935 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
15936 File:Nonexistant.jpg|caption
15937 File:Nonexistant.jpg
15938 image:foobar.jpg|some '''caption''' [[Main Page]]
15940 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
15943 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
15944 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
15945 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15946 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
15947 <div class="gallerytext">
15952 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15953 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
15954 <div class="gallerytext">
15957 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15958 <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>
15959 <div class="gallerytext">
15960 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15964 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15965 <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>
15966 <div class="gallerytext">
15969 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
15970 <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>
15971 <div class="gallerytext">
15981 Gallery with link that has fragment
15984 image:foobar.jpg|link=Main_Page
15985 image:foobar.jpg|link=Main_Page#section
15986 image:foobar.jpg|link=Main Page#section|caption
15989 <ul class="gallery mw-gallery-traditional">
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/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>
15992 <div class="gallerytext">
15995 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15996 <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>
15997 <div class="gallerytext">
16000 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16001 <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>
16002 <div class="gallerytext">
16012 Gallery with wikitext inside caption
16015 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
16016 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
16019 <ul class="gallery mw-gallery-traditional">
16020 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16021 <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>
16022 <div class="gallerytext">
16023 <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>
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="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
16029 <div class="gallerytext">
16030 <p>This is a test template
16039 gallery (with showfilename option)
16041 <gallery showfilename>
16042 File:Nonexistant.jpg|caption
16043 File:Nonexistant.jpg
16044 image:foobar.jpg|some '''caption''' [[Main Page]]
16048 <ul class="gallery mw-gallery-traditional">
16049 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16050 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
16051 <div class="gallerytext">
16052 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
16057 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16058 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
16059 <div class="gallerytext">
16060 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
16064 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16065 <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>
16066 <div class="gallerytext">
16067 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
16068 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
16072 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16073 <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>
16074 <div class="gallerytext">
16075 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
16084 Gallery (with namespace-less filenames)
16087 File:Nonexistant.jpg
16093 <ul class="gallery mw-gallery-traditional">
16094 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16095 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
16096 <div class="gallerytext">
16099 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16100 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
16101 <div class="gallerytext">
16104 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16105 <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>
16106 <div class="gallerytext">
16109 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16110 <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>
16111 <div class="gallerytext">
16119 HTML Hex character encoding (spells the word "JavaScript")
16121 parsoid=wt2html,wt2wt,html2html
16123 JavaScript
16125 <p>JavaScript
16130 <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>
16134 HTML Hex character encoding bogus encoding (bug 26437 regression check)
16138 <p>&#xsee;&#XSEE;
16141 <p>&#xsee;&#XSEE;</p>
16145 HTML Hex character encoding mixed case
16147 parsoid=wt2html,wt2wt,html2html
16156 <p><span typeof="mw:Entity">î</span><span typeof="mw:Entity">î</span></p>
16160 __FORCETOC__ override
16172 ISBN 978-0-1234-56 789
16174 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
16177 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789</p>
16181 ISBN followed by 5 spaces
16192 ISBN ISBN 1234567890
16194 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
16203 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
16208 ISBN with empty prefix (parsoid test)
16212 <p><a href="Special:BookSources/1234567890" rel="mw:ExtLink">ISBN 1234567890</a></p>
16216 Bug 22905: <abbr> followed by ISBN followed by </a>
16218 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
16220 <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>
16229 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
16234 Double RFC with a wiki link
16238 <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>
16247 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
16250 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987</p>
16254 Centre-aligned image
16256 [[Image:foobar.jpg|centre]]
16258 <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>
16265 [[Image:foobar.jpg|none]]
16267 <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>
16272 Width + Height sized image (using px) (height is ignored)
16274 [[Image:foobar.jpg|640x480px]]
16276 <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>
16281 Width-sized image (using px, no following whitespace)
16283 [[Image:foobar.jpg|640px]]
16285 <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>
16290 Width-sized image (using px, with following whitespace - test regression from r39467)
16292 [[Image:foobar.jpg|640px ]]
16294 <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>
16299 Width-sized image (using px, with preceding whitespace - test regression from r39467)
16301 [[Image:foobar.jpg| 640px]]
16303 <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>
16308 Image with page parameter
16312 [[File:LoremIpsum.djvu|page=2]]
16314 <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>
16319 Another italics / bold test
16327 # Note the results may be incorrect, as parserTest output included this:
16328 # XML error: Mismatched tag at byte 6120:
16329 # ...<dd> </dt></dl> </dd...
16360 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
16362 Images with the "|" character in the comment
16364 [[File:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
16366 <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"></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
16369 <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>
16373 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
16375 <html><script>alert(1);</script></html>
16377 <p><html><script>alert(1);</script></html>
16382 HTML with raw HTML ($wgRawHtml==true)
16386 <html><script>alert(1);</script></html>
16388 <p><script>alert(1);</script>
16393 Parents of subpages, one level up
16395 subpage title=[[Subpage test/L1/L2/L3]]
16399 <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>
16405 Parents of subpages, one level up, not named
16407 subpage title=[[Subpage test/L1/L2/L3]]
16411 <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>
16418 Parents of subpages, two levels up
16420 subpage title=[[Subpage test/L1/L2/L3]]
16426 <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
16427 </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>
16432 Parents of subpages, two levels up, without trailing slash or name.
16434 subpage title=[[Subpage test/L1/L2/L3]]
16443 Parents of subpages, two levels up, with lots of extra trailing slashes.
16445 subpage title=[[Subpage test/L1/L2/L3]]
16449 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
16454 Subpage test/L1/L2/L3Sibling
16460 Transclusion of a sibling page (one level up)
16462 subpage title=[[Subpage test/L1/L2/L3]]
16471 Transclusion of a child page
16473 subpage title=[[Subpage test/L1/L2]]
16482 Non-transclusion because of too many up levels
16484 subpage title=[[Subpage test/L1/L2/L3]]
16486 {{../../../../More than parent}}
16488 <p>{{../../../../More than parent}}
16493 Definition list code coverage
16499 <dl><dt> title  </dt>
16501 <dt> title </dt>
16509 Don't fall for the self-closing div
16511 <div>hello world</div/>
16513 <div>hello world</div>
16522 <p>[[:Template:Msg]]
16531 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
16535 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
16537 Always escape literal '>' in output, not just after '<'
16551 <p>This is a test template
16552 This is a test template
16564 Inclusion of !userCanEdit() content
16568 <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>
16574 Out-of-order TOC heading levels
16583 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16585 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
16587 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
16588 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
16591 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
16593 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
16594 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
16600 <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>
16601 <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>
16602 <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>
16603 <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>
16604 <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>
16605 <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>
16611 ISBN with a dummy number
16621 ISBN with space-delimited number
16625 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
16631 ISBN with multiple spaces, no number
16650 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
16651 </p><p>ISBN 12345678901
16657 ISBN with trailing year (bug 8110)
16659 ISBN 1-234-56789-0 - 2006
16661 ISBN 1 234 56789 0 - 2006
16663 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
16664 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
16672 {{anchorencode:foo bar©#%n}}
16674 <p>foo_bar.C2.A9.23.25n
16679 anchorencode trims spaces
16681 {{anchorencode: __pretty__please__}}
16688 anchorencode deals with links
16690 {{anchorencode: [[hello|world]] [[hi]]}}
16697 anchorencode deals with templates
16699 {{anchorencode: {{Foo}} }}
16706 anchorencode encodes like the TOC generator: (bug 18431)
16708 === _ +:.3A%3A&&]] ===
16709 {{anchorencode: _ +:.3A%3A&&]] }}
16712 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
16713 <p>.2B:.3A.253A.26.26.5D.5D
16718 Bug 6200: blockquotes and paragraph formatting
16739 Bug 8293: Use of center tag ruins paragraph formatting
16760 Parsing of overlapping (improperly nested) inline html tags
16762 <span><s>x</span></s>
16764 <p><span><s>x</span></s></span>
16767 <p><span><s>x</s></span>
16772 ### Language variants related tests
16775 Self-link in language variants
16777 title=[[Dunav]] language=sr
16779 Both [[Dunav]] and [[Дунав]] are names for this river.
16781 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
16792 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
16794 title=[[Duna]] language=sr
16796 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
16798 <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.
16803 Link to a section of a variant of this title shouldn't be parsed as self-link
16805 title=[[Duna]] language=sr
16807 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
16809 <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.
16814 Link to pages in language variants
16818 Main Page can be written as [[Маин Паге]]
16820 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
16826 Multiple links to pages in language variants
16830 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
16832 <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>.
16838 Simple template in language variants
16844 <p>This is a test template
16850 Template with explicit namespace in language variants
16856 <p>This is a test template
16862 Basic test for template parameter in language variants
16866 {{парамтест|param=foo}}
16868 <p>This is a test template with parameter foo
16874 Simple category in language variants
16878 [[Category:МедиаWики Усер'с Гуиде]]
16880 <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>
16897 Don't convert blue categorylinks to another variant (bug 33210)
16901 [[A]][[Category:分类]]
16903 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
16908 Stripping -{}- tags (language variants)
16912 Latin proverb: -{Ne nuntium necare}-
16914 <p>Latin proverb: Ne nuntium necare
16920 Prevent conversion with -{}- tags (language variants)
16922 language=sr variant=sr-ec
16924 Latinski: -{Ne nuntium necare}-
16926 <p>Латински: Ne nuntium necare
16932 Prevent conversion of text with -{}- tags (language variants)
16934 language=sr variant=sr-ec
16936 Latinski: -{Ne nuntium necare}-
16938 <p>Латински: Ne nuntium necare
16944 Prevent conversion of links with -{}- tags (language variants)
16946 language=sr variant=sr-ec
16950 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
16956 -{}- tags within headlines (within html for parserConvert())
16958 language=sr variant=sr-ec
16962 <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>
16968 Explicit definition of language variant alternatives
16970 language=zh variant=zh-tw
16972 -{zh:China;zh-tw:Taiwan}-, not China
16974 <p>Taiwan, not China
16980 Conversion around HTML tags
16982 language=sr variant=sr-ec
16984 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
16985 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
16988 <span title="ЛаCтин">ски</span>
16994 Explicit session-wise language variant mapping (A flag and - flag)
16996 language=zh variant=zh-tw
16998 Taiwan is not China.
16999 But -{A|zh:China;zh-tw:Taiwan}- is China,
17000 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
17001 and -{China}- is China.
17003 <p>Taiwan is not China.
17004 But Taiwan is Taiwan,
17005 (This should be stripped!)
17006 and China is China.
17011 Explicit session-wise language variant mapping (H flag for hide)
17013 language=zh variant=zh-tw
17015 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
17018 <p>(This should be stripped!)
17024 Adding explicit conversion rule for title (T flag)
17026 language=zh variant=zh-tw showtitle
17028 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
17031 <p>Should be stripped!
17036 Testing that changing the language variant here in the tests actually works
17038 language=zh variant=zh showtitle
17040 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
17043 <p>Should be stripped!
17048 Recursive conversion of alt and title attrs shouldn't clear converter state
17050 language=zh variant=zh-cn showtitle
17052 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
17053 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
17057 Should be stripped<span title="Exclamation">!</span>
17062 Bug 24072: more test on conversion rule for title
17064 language=zh variant=zh-tw showtitle
17066 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
17067 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
17070 <p>This should be stripped!
17071 This won't take interferes with the title rule.
17076 Partly disable title conversion if variant == main language code
17078 language=zh variant=zh title=[[ZH]] showtitle
17080 -{T|zh-cn:CN;zh-tw:TW}-
17088 Partly disable title conversion if variant == main language code, more
17090 language=zh variant=zh title=[[ZH]] showtitle
17100 Raw output of variant escape tags (R flag)
17102 language=zh variant=zh-tw
17104 Raw: -{R|zh:China;zh-tw:Taiwan}-
17106 <p>Raw: zh:China;zh-tw:Taiwan
17111 Nested using of manual convert syntax
17113 language=zh variant=zh-hk
17115 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
17117 <p>Nested: Hello Hong Kong!
17122 Proper conversion of text in external links
17124 language=sr variant=sr-ec
17126 http://www.google.com
17127 gopher://www.google.com
17128 [http://www.google.com http://www.google.com]
17129 [gopher://www.google.com gopher://www.google.com]
17130 [https://www.google.com irc://www.google.com]
17131 [ftp://www.google.com www.google.com/ftp://dir]
17132 [//www.google.com www.google.com]
17134 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
17135 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
17136 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
17137 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
17138 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
17139 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
17140 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
17145 Do not convert roman numbers to language variants
17147 language=sr variant=sr-ec
17151 <p>Фридрих IV је цар.
17156 Unclosed language converter markup "-{"
17167 Don't convert raw rule "-{R|=>}-" to "=>"
17178 Don't break link parsing if language converter markup is in the caption.
17180 language=sr variant=sr-ec
17182 [[Main Page|-{R|main page}-]]
17184 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
17188 # This test is currently broken in the PHP parser (bug 52661)
17190 Don't break image parsing if language converter markup is in the caption.
17195 [[File:Foobar.jpg|-{R|caption}-]]
17197 <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>
17201 # This test is currently broken in the PHP parser (bug 52661)
17203 Don't break list handling if language converter markup is in the item.
17205 language=zh variant=zh-cn
17208 ;-{zh-cn:AAA;zh-tw:BBB}-
17215 # This test is currently broken in the PHP parser (bug 52661)
17217 Don't break table handling if language converter markup is in the cell.
17219 language=sr variant=sr-ec
17236 Bug 529: Uncovered bullet
17245 # Plain MediaWiki does not remove empty lists, but tidy actually does.
17246 # Templates in Wikipedia rely on this behavior, as tidy has always been
17247 # enabled there. These tests are normally run *without* tidy, so specify the
17248 # full output here.
17249 # To test realistic parsing behavior, apply a tidy-like transformation to both
17250 # the expected output and your parser's output.
17252 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
17254 ******* Foo {{bullet}}
17256 <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>
17262 Bug 529: Uncovered table already at line-start
17285 Bug 529: Uncovered bullet in parser function result
17287 * Foo {{lc:{{bullet}} }}
17295 Bug 5678: Double-parsed template argument
17297 {{lc:{{{1}}}|hello}}
17304 Bug 5678: Double-parsed template invocation
17306 {{lc:{{paramtest {{!}} param = hello }} }}
17308 <p>{{paramtest | param = hello }}
17313 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
17316 title=[[Main Page]]
17318 {{PRVNÍVELKÉ:ěščř}}
17319 {{prvnívelké:ěščř}}
17339 Morwen/13: Unclosed link followed by heading
17346 <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>
17351 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
17358 <h1><span class="mw-headline" id="heading">heading</span></h1>
17363 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
17370 <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>
17385 Paragraphs inside divs (no extra line breaks)
17397 Paragraphs inside divs (extra line break on open)
17412 Paragraphs inside divs (extra line break on close)
17427 Paragraphs inside divs (extra line break on open and close)
17444 Nesting tags, paragraphs on lines which begin with <div>
17448 <div></div><strong>A
17457 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
17459 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
17461 <blockquote>Line one
17463 Line two</blockquote>
17465 <blockquote>Line one
17466 Line two</blockquote>
17470 <p>Line one Line two</p>
17475 Bug 6200: paragraphs inside blockquotes (extra line break on open)
17480 Line two</blockquote>
17485 Line two</blockquote>
17490 Line two</blockquote>
17494 Bug 6200: paragraphs inside blockquotes (extra line break on close)
17496 <blockquote>Line one
17501 <blockquote>Line one
17514 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
17536 Paragraphs inside blockquotes/divs (no extra line breaks)
17538 <blockquote><div>Line one
17540 Line two</div></blockquote>
17542 <blockquote><div>Line one
17543 Line two</div></blockquote>
17548 Paragraphs inside blockquotes/divs (extra line break on open)
17553 Line two</div></blockquote>
17558 Line two</div></blockquote>
17563 Paragraphs inside blockquotes/divs (extra line break on close)
17565 <blockquote><div>Line one
17568 </div></blockquote>
17570 <blockquote><div>Line one
17573 </div></blockquote>
17578 Paragraphs inside blockquotes/divs (extra line break on open and close)
17584 </div></blockquote>
17590 </div></blockquote>
17595 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
17597 wgLinkHolderBatchSize=0
17603 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
17604 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
17605 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
17610 Free external link invading image caption
17612 [[Image:Foobar.jpg|thumb|http://x|hello]]
17614 <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"></a></div>hello</div></div></div>
17619 Bug 15196: localised external link numbers
17623 [http://en.wikipedia.org/]
17625 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
17628 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/"></a></p>
17632 Multibyte character in padleft
17634 {{padleft:-Hello|7|Æ}}
17641 Multibyte character in padright
17643 {{padright:Hello-|7|Æ}}
17650 formatdate parser function
17652 {{#formatdate:2009-03-24}}
17654 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
17659 formatdate parser function, with default format
17661 {{#formatdate:2009-03-24|mdy}}
17663 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
17668 Spacing of numbers in formatted dates
17670 {{#formatdate:January 15}}
17672 <p><span class="mw-formatted-date" title="01-15">January 15</span>
17677 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
17679 language=nl title=[[MediaWiki:Common.css]]
17681 {{#formatdate:2009-03-24|dmy}}
17683 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
17696 Edit comment with link
17700 I like the [[Main Page]] a lot
17702 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
17706 Edit comment with link and link text
17710 I like the [[Main Page|best pages]] a lot
17712 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
17716 Edit comment with link and link text with suffix
17720 I like the [[Main Page|best page]]s a lot
17722 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
17726 Edit comment with section link (non-local, eg in history list)
17728 comment title=[[Main Page]]
17730 /* External links */ removed bogus entries
17732 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
17736 Edit comment with section link and text before it (non-local, eg in history list)
17738 comment title=[[Main Page]]
17740 pre-comment text /* External links */ removed bogus entries
17742 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>
17746 Edit comment with section link (local, eg in diff view)
17748 comment local title=[[Main Page]]
17750 /* External links */ removed bogus entries
17752 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
17756 Edit comment with subpage link (bug 14080)
17760 title=[[Subpage test]]
17762 Poked at a [[/subpage]] here...
17764 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
17768 Edit comment with subpage link and link text (bug 14080)
17772 title=[[Subpage test]]
17774 Poked at a [[/subpage|neat little page]] here...
17776 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
17780 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
17783 title=[[Subpage test]]
17785 Poked at a [[/subpage]] here...
17787 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
17791 Edit comment with bare anchor link (local, as on diff)
17795 title=[[Main Page]]
17799 <a href="#section">#section</a>
17803 Edit comment with bare anchor link (non-local, as on history)
17806 title=[[Main Page]]
17810 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
17814 Anchor starting with underscore
17818 <p><a href="#_ref">One</a>
17823 Id starting with underscore
17825 <div id="_ref"></div>
17827 <div id="_ref"></div>
17832 Space normalisation on autocomment (bug 22784)
17835 title=[[Main Page]]
17837 /* __hello__world__ */
17839 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
17843 percent-encoding and + signs in comments (Bug 26410)
17847 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
17849 <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>
17853 Bad images - basic functionality
17862 Bad images - bug 16039: text after bad image disappears
17876 Verify that displaytitle works (bug #22501) no displaytitle
17880 wgAllowDisplayTitle=true
17881 wgRestrictDisplayTitle=false
17883 this is not the the title
17886 <p>this is not the the title
17891 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
17896 wgAllowDisplayTitle=true
17897 wgRestrictDisplayTitle=false
17899 this is not the the title
17900 {{DISPLAYTITLE:whatever}}
17903 <p>this is not the the title
17908 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
17913 wgAllowDisplayTitle=true
17914 wgRestrictDisplayTitle=true
17916 this is not the the title
17917 {{DISPLAYTITLE:whatever}}
17920 <p>this is not the the title
17925 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
17930 wgAllowDisplayTitle=true
17931 wgRestrictDisplayTitle=true
17933 this is not the the title
17934 {{DISPLAYTITLE:screen}}
17937 <p>this is not the the title
17942 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
17947 wgAllowDisplayTitle=false
17949 this is not the the title
17950 {{DISPLAYTITLE:screen}}
17953 <p>this is not the the title
17954 <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>
17959 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
17964 wgAllowDisplayTitle=false
17966 this is not the the title
17969 <p>this is not the the title
17974 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
17979 wgAllowDisplayTitle=true
17980 wgRestrictDisplayTitle=true
17982 this is not the the title
17983 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
17985 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
17986 <p>this is not the the title
17991 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
17996 wgAllowDisplayTitle=true
17997 wgRestrictDisplayTitle=true
17999 this is not the the title
18000 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
18002 <span style="color: red;">s</span>creen
18003 <p>this is not the the title
18008 preload: check <noinclude> and <includeonly>
18012 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
18018 preload: check <onlyinclude>
18022 Goodbye <onlyinclude>Hello world</onlyinclude>
18028 preload: can pass tags through if we want to
18032 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
18034 <includeonly>Hello world</includeonly>
18038 preload: check that it doesn't try to do tricks
18042 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
18044 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
18048 Play a bit with r67090 and bug 3158
18052 <div style="width:50% !important"> </div>
18053 <div style="width:50% !important"> </div>
18054 <div style="width:50% !important"> </div>
18055 <div style="border : solid;"> </div>
18057 <div style="width:50% !important"> </div>
18058 <div style="width:50% !important"> </div>
18059 <div style="width:50% !important"> </div>
18060 <div style="border : solid;"> </div>
18065 HTML5 data attributes
18067 <span data-foo="bar">Baz</span>
18068 <p data-abc-def_hij="">Quuz</p>
18070 <p><span data-foo="bar">Baz</span>
18072 <p data-abc-def_hij="">Quuz</p>
18077 percent-encoding and + signs in internal links (Bug 26410)
18079 [[User:+%]] [[Page+title%]]
18080 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
18081 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
18082 [[%33%45]] [[%33%45+]]
18084 <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>
18085 <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>
18086 <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>
18087 <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>
18092 Special characters in embedded file links (bug 27679)
18094 [[File:Contains & ampersand.jpg]]
18095 [[File:Does not exist.jpg|Title with & ampersand]]
18097 <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>
18098 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
18104 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
18106 Text's been normalized?
18108 <p>Text's been normalized?
18113 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
18115 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
18117 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
18122 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
18124 [http://www.example.org/ ideograms]
18126 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
18131 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
18133 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
18135 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
18159 Bug 31098 Template which includes system messages which includes the template
18163 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
18164 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
18169 Bug31490 Turkish: ucfirst 'blah'
18180 Bug31490 Turkish: ucfirst 'ix'
18191 Bug31490 Turkish: lcfirst 'BLAH'
18202 Bug31490 Turkish: ucfırst (with a dotless i)
18208 <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>
18213 Bug31490 ucfırst (with a dotless i) with English language
18219 <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>
18224 Bug 26375: TOC with italics
18226 title=[[Main Page]]
18229 == ''Lost'' episodes ==
18231 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18233 <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>
18237 <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>
18242 Bug 26375: TOC with bold
18244 title=[[Main Page]]
18247 == '''should be bold''' then normal text ==
18249 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18251 <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>
18255 <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>
18260 Bug 33845: Headings become cursive in TOC when they contain an image
18262 title=[[Main Page]]
18265 == Image [[Image:foobar.jpg]] ==
18267 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18269 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
18273 <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>
18278 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
18280 title=[[Main Page]]
18283 == <blockquote>Quote</blockquote> ==
18285 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18287 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
18291 <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>
18294 <div id="toc" class="toc">
18295 <div id="toctitle">
18299 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
18302 <h2><span class="mw-headline" id="Quote"></span></h2>
18304 <p><span class="mw-headline" id="Quote">Quote</span></p>
18306 <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>
18310 Unclosed tags in TOC
18312 title=[[Main Page]]
18316 <small>Hanc marginis exiguitas non caperet.</small>
18319 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18321 <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>
18325 <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>
18326 <p><small>Hanc marginis exiguitas non caperet.</small>
18332 Multiple tags in TOC
18335 == <i>Foo</i> <b>Bar</b> ==
18337 == <i>Foo</i> <blockquote>Bar</blockquote> ==
18339 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18341 <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>
18342 <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>
18346 <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>
18347 <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>
18350 <div id="toc" class="toc">
18351 <div id="toctitle">
18355 <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>
18356 <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>
18359 <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>
18360 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i></span></h2>
18362 <p><span class="mw-headline" id="Foo_Bar_2">Bar</span></p>
18364 <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>
18368 Tags with parameters in TOC
18371 == <sup class="in-h2">Hello</sup> ==
18373 == <sup class="a > b">Evilbye</sup> ==
18375 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18377 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
18378 <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>
18382 <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>
18383 <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>
18388 span tags with directionality in TOC
18391 == <span dir="ltr">C++</span> ==
18393 == <span dir="rtl">זבנג!</span> ==
18395 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
18397 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
18399 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
18401 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18403 <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>
18404 <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>
18405 <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>
18406 <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>
18407 <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>
18411 <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>
18412 <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>
18413 <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>
18414 <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>
18415 <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>
18422 == {{int:headline_sample}} ==
18426 Bug 32057: Title needed when expanding <h> nodes.
18428 title=[[Main Page]]
18432 <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>
18437 Strip marker in urlencode
18439 {{urlencode:x<nowiki/>y}}
18440 {{urlencode:x<nowiki/>y|wiki}}
18441 {{urlencode:x<nowiki/>y|path}}
18468 Strip marker in formatNum
18470 {{formatnum:1<nowiki/>2}}
18471 {{formatnum:1<nowiki/>2|R}}
18479 Check noCommafy in formatNum
18483 {{formatnum:123456.78}}
18484 {{formatnum:123456.78|NOSEP}}
18492 Wrong option for formatNum (bug 56199)
18494 {{formatnum:1,234.56|Random}}
18495 {{formatnum:1,234.56|EVERYTHING}}
18496 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
18505 Strip marker in grammar
18509 {{grammar:elative|foo<nowiki/>bar}}
18516 Strip marker in padleft
18518 {{padleft:|2|x<nowiki/>y}}
18525 Strip marker in padright
18527 {{padright:|2|x<nowiki/>y}}
18534 Strip marker in anchorencode
18536 {{anchorencode:x<nowiki/>y}}
18543 nowiki inside link inside heading (bug 18295)
18545 ==[[foo|x<nowiki>y</nowiki>z]]==
18547 <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>
18552 new support for bdi element (bug 31817)
18554 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
18556 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
18561 Ignore pipe between table row attributes
18565 |- id=foo | style='color: red'
18573 <tr id="foo" style="color: red">
18580 Gallery override link with WikiLink (bug 34852)
18583 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
18586 <ul class="gallery mw-gallery-traditional">
18587 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
18588 <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>
18589 <div class="gallerytext">
18599 Gallery override link with absolute external link (bug 34852)
18602 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
18605 <ul class="gallery mw-gallery-traditional">
18606 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
18607 <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>
18608 <div class="gallerytext">
18618 Gallery override link with malicious javascript (bug 34852)
18621 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
18624 <ul class="gallery mw-gallery-traditional">
18625 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
18626 <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>
18627 <div class="gallerytext">
18637 Gallery with invalid title as link (bug 43964)
18640 File:foobar.jpg|link=<
18643 <ul class="gallery mw-gallery-traditional">
18644 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
18645 <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>
18646 <div class="gallerytext">
18654 Language parser function
18663 Padleft and padright as substr
18665 {{padleft:|3|abcde}}
18666 {{padright:|3|abcde}}
18674 Special parser function
18676 {{#special:RandomPage}}
18677 {{#special:BaDtItLe}}
18678 {{#special:Foobar}}
18687 Bug 34939 - Case insensitive link parsing ([HttP://])
18689 [HttP://MediaWiki.Org/]
18691 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
18694 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/"></a></p>
18698 Bug 34939 - Case insensitive link parsing ([HttP:// title])
18700 [HttP://MediaWiki.Org/ MediaWiki]
18702 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
18707 Bug 34939 - Case insensitive link parsing (HttP://)
18709 HttP://MediaWiki.Org/
18711 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
18714 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a></p>
18732 <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>
18733 <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>
18734 <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>
18735 <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>
18736 <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>
18742 ### Parsoid-specific tests
18743 ### Parsoid-PHP parser incompatibilities
18746 1. SOL-sensitive wikitext tokens as template-args
18748 parsoid=wt2html,wt2wt
18754 <span about="#mwt1" typeof="mw:Transclusion">
18755 </span><ul about="#mwt1"><li>a</li>
18757 <span about="#mwt2" typeof="mw:Transclusion">
18758 </span><ol about="#mwt2"><li>a</li>
18760 <span about="#mwt3" typeof="mw:Transclusion">
18761 </span><dl about="#mwt3"><dd>a</dd>
18765 #### -----------------------------------------------------------------
18766 #### Parsoid-specific functionality tests
18767 #### -----------------------------------------------------------------
18769 # Bug 63642: Formatting elt fixup is cleaned up.
18770 # We know wt2wt will fail, but we expect selser to pass.
18771 # Due to the nature of our testing, wt2wt and selser tests will enter the
18772 # blacklist and we'll catch selser regressions based on changes to the
18773 # blacklist entries for selser tests.
18775 Bad treebuilder fixup of formatting elt is cleaned up
18777 parsoid=wt2html,wt2wt
18782 [[Image:Foobar.jpg|right|Test]]
18788 <p><small></small></p>
18789 <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>
18794 #### ----------------------------------------------------------------
18795 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
18796 #### tags. Parsoid's output for these tags differs from that of the
18798 #### ----------------------------------------------------------------
18801 Ref: 1. ref-location should be replaced with an index span
18806 B <ref name="x">foo</ref>
18809 <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>
18810 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>
18811 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>
18815 Ref: 2. ref-tags with identical names should all get the same index
18819 A <ref name="x">foo</ref>
18822 <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>
18823 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>
18827 Ref: 3. spaces in ref-names should be ignored
18831 A <ref name="x">foo</ref>
18832 B <ref name=" x " />
18835 <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>
18836 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>
18837 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>
18841 Ref: 4. 'constructor' should be accepted as a valid ref-name
18842 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
18846 A <ref name="constructor">foo</ref>
18848 <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>
18852 Ref: 5. body should accept generic wikitext
18857 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
18862 <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\" title=\"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>
18864 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
18865 <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" title="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>
18871 Ref: 6. indent-pres should not be output in ref-body
18883 <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>
18885 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
18886 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
18894 Ref: 7. No p-wrapping in ref-body
18913 <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>
18915 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
18916 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
18931 Ref: 8. transclusion wikitext has lower precedence
18935 A <ref> foo {{echo|</ref> B C}}
18939 <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>
18940 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
18941 <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>
18946 Ref: 9. unclosed comments should not leak out of ref-body
18950 A <ref> foo <!--</ref> B C
18953 <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>
18954 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
18955 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
18960 Ref: 10. Unclosed HTML tags should not leak out of ref-body
18964 A <ref> <b> foo </ref> B C
18968 <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>
18971 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
18972 <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>
18977 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
18984 <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
18985 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>
18989 Ref: 12. ref-tags act as trailing newline migration barrier
18993 <!--the newline at the end of this line moves out of the p-tag-->a
18995 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
19000 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
19003 <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>
19004 <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>
19011 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
19019 <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
19020 <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>
19024 Ref: 14. A nested ref-tag should be emitted as plain text
19028 <ref>foo <ref>bar</ref> baz</ref>
19032 <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>
19034 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
19035 <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>
19040 Ref: 15. ref-tags with identical names should get identical indexes
19044 A1 <ref name="a">foo</ref> A2 <ref name="a" />
19045 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
19049 <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>
19050 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>
19052 <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>
19056 ## We don't bother wt2wt-ing non-standard whitespace
19058 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
19066 <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>
19068 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
19069 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
19073 References: 1. references tag without any refs should be handled properly
19079 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
19083 References: 2. references tag with group only outputs references from that group
19087 A <ref group="a">foo</ref>
19088 B <ref group="b">bar</ref>
19090 <references group="a" />
19092 <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>
19093 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>
19095 <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>
19100 References: 3. ref list should be cleared after processing references
19112 <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>
19114 <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>
19117 <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>
19119 <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>
19124 References: 4. only referenced group should be cleared after processing references
19128 A <ref group="a">afoo</ref>
19131 <references group="a" />
19137 <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>
19138 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>
19140 <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>
19143 <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>
19145 <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>
19150 References: 5. ref tags in references should be processed while ignoring all other content
19155 B <ref name="b">bar</ref>
19158 <ref name="a">foo</ref>
19159 This should just get lost.
19162 <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>
19163 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>
19166 <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":{}}'>
19167 <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>
19168 <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>
19173 References: 6. <references /> from a transclusion
19177 <ref>Foo</ref> {{echo|<references />}}
19179 <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>
19183 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
19187 A <ref>foo bar for a</ref>
19188 B <ref group="X" name="b" />
19192 <references group="X">
19193 <ref name="b">foo</ref>
19196 <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>
19197 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>
19199 <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>
19201 <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>
19205 Entities in ref name
19209 <ref name="test & me">hi</ref>
19211 <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>
19214 # This test is wt2html only because we're permitting the serializer to produce
19215 # dirty diffs, normalizing the unclosed references to the self-closed version.
19217 Generate references for unclosed references tag
19225 <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>
19228 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
19229 <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>
19233 New reference serializes on its own line
19235 parsoid=wt2wt,html2wt
19240 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
19243 #### ----------------------------------------------------------------
19244 #### The following section of tests are primarily to test
19245 #### wikitext escaping capabilities of Parsoid. Given that
19246 #### escaping can be done any number of ways, the wikitext (input)
19247 #### is always adjusted to reflect how Parsoid adds nowiki
19250 #### We are marking several tests as parsoid-only since the
19251 #### HTML in the result section is different from what the
19252 #### PHP parser generates for it.
19253 #### ----------------------------------------------------------------
19256 #### --------------- Headings ---------------
19258 #### 1. Nested inside html <h1>=foo=</h1>
19259 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
19260 #### 3. Nested inside html with wikitext split by html tags
19261 #### 4. No escape needed
19262 #### 5. Empty headings <h1></h1>
19263 #### 6. Heading chars in SOL context
19264 #### ----------------------------------------
19266 Headings: 0. Unnested
19270 <nowiki>=foo=</nowiki>
19272 <nowiki> =foo= </nowiki>
19274 <nowiki>=foo=</nowiki>
19276 =foo''a''<nowiki>=</nowiki>
19278 <p><span typeof="mw:Nowiki">=foo=</span></p>
19280 <p><span typeof="mw:Nowiki"> =foo= </span>
19282 <span typeof="mw:Nowiki">=foo=</span></p>
19284 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
19288 Headings: 1. Nested inside html
19289 (New headings and existing headings are handled differently)
19299 =<nowiki>=foo=</nowiki>=
19300 ==<nowiki>=foo=</nowiki>==
19301 ===<nowiki>=foo=</nowiki>===
19302 ====<nowiki>=foo=</nowiki>====
19303 =====<nowiki>=foo=</nowiki>=====
19304 ======<nowiki>=foo=</nowiki>======
19311 <h1 data-parsoid='{}'>=foo=</h1>
19312 <h2 data-parsoid='{}'>=foo=</h2>
19313 <h3 data-parsoid='{}'>=foo=</h3>
19314 <h4 data-parsoid='{}'>=foo=</h4>
19315 <h5 data-parsoid='{}'>=foo=</h5>
19316 <h6 data-parsoid='{}'>=foo=</h6>
19320 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
19325 <nowiki>*</nowiki>bar
19331 <nowiki>=bar=</nowiki>
19339 Headings: 3. Nested inside html with wikitext split by html tags
19343 = ='''bold'''<nowiki>foo=</nowiki> =
19345 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
19349 Headings: 4a. No escaping needed (testing just h1 and h2)
19367 = <nowiki>=</nowiki> =
19375 <h1><i>=</i>foo=</h1>
19376 <h1><span typeof="mw:Nowiki">=</span></h1>
19380 Headings: 4b. No escaping needed (inside p-tags)
19395 Headings: 5. Empty headings
19407 =====<nowiki/>=====
19409 ======<nowiki/>======
19420 Headings: 6a. Heading chars in SOL context (with trailing spaces)
19424 <nowiki>=a=</nowiki>
19426 <nowiki>=a=</nowiki>
19428 <nowiki>=a=</nowiki>
19430 <nowiki>=a=</nowiki>
19439 Headings: 6b. Heading chars in SOL context (with trailing newlines)
19467 Headings: 6c. Heading chars in SOL context (leading newline break)
19472 <nowiki>=b=</nowiki>
19479 Headings: 6d. Heading chars in SOL context (with interspersed comments)
19483 <!--c0--><nowiki>=a=</nowiki>
19485 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
19487 <p><!--c0-->=a=</p>
19488 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
19492 Headings: 6d. Heading chars in SOL context (No escaping needed)
19501 #### --------------- Lists ---------------
19502 #### 0. Outside nests (*foo, etc.)
19503 #### 1. Nested inside html <ul><li>*foo</li></ul>
19504 #### 2. Inside definition lists
19505 #### 3. Only bullets at start should be escaped
19506 #### 4. No escapes needed
19507 #### 5. No unnecessary escapes
19508 #### 6. Escape bullets in SOL position
19509 #### 7. Escape bullets in a multi-line context
19510 #### ----------------------------------------
19513 Lists: 0. Outside nests
19515 <nowiki>*</nowiki>foo
19517 <nowiki>#</nowiki>foo
19519 <nowiki>;Foo:</nowiki>bar
19528 Lists: 1. Nested inside html
19530 *<nowiki>*foo</nowiki>
19532 *<nowiki>#foo</nowiki>
19534 *<nowiki>:foo</nowiki>
19536 *<nowiki>;foo</nowiki>
19538 #<nowiki>*foo</nowiki>
19540 #<nowiki>#foo</nowiki>
19542 #<nowiki>:foo</nowiki>
19544 #<nowiki>;foo</nowiki>
19546 <ul><li>*foo</li></ul>
19547 <ul><li>#foo</li></ul>
19548 <ul><li>:foo</li></ul>
19549 <ul><li>;foo</li></ul>
19550 <ol><li>*foo</li></ol>
19551 <ol><li>#foo</li></ol>
19552 <ol><li>:foo</li></ol>
19553 <ol><li>;foo</li></ol>
19558 Lists: 2. Inside definition lists
19560 ;<nowiki>;foo</nowiki>
19562 ;<nowiki>:foo</nowiki>
19564 ;<nowiki>:foo</nowiki>
19567 :<nowiki>:foo</nowiki>
19569 <dl><dt>;foo</dt></dl>
19570 <dl><dt>:foo</dt></dl>
19573 <dl><dd>:foo</dd></dl>
19578 Lists: 3. Only bullets at start of text should be escaped
19580 *<nowiki>*foo*bar</nowiki>
19582 *<nowiki>*foo</nowiki>''it''*bar
19584 <ul><li>*foo*bar</li></ul>
19585 <ul><li>*foo<i>it</i>*bar</li></ul>
19590 Lists: 4. No escapes needed
19611 <li><a rel="mw:WikiLink" href="Foo" title="Foo">Foo</a>: bar
19615 <li><a rel="mw:WikiLink" href="Foo" title="Foo">Foo</a>*bar
19621 Lists: 5. No unnecessary escapes
19623 * bar <span><nowiki>[[foo]]</nowiki></span>
19625 *=bar <span><nowiki>[[foo]]</nowiki></span>
19627 *[[bar <span><nowiki>[[foo]]</nowiki></span>
19629 *]]bar <span><nowiki>[[foo]]</nowiki></span>
19631 *=bar <span>foo]]</span>=
19635 <ul><li> bar <span>[[foo]]</span></li></ul>
19636 <ul><li>=bar <span>[[foo]]</span></li></ul>
19637 <ul><li>[[bar <span>[[foo]]</span></li></ul>
19638 <ul><li>]]bar <span>[[foo]]</span></li></ul>
19639 <ul><li>=bar <span>foo]]</span>=</li></ul>
19640 <ul><li> <s></s>: a</li></ul>
19645 Lists: 6. Escape bullets in SOL position
19649 <!--cmt--><nowiki>*foo</nowiki>
19651 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
19655 Lists: 7. Escape bullets in a multi-line context
19658 <nowiki>*</nowiki>b
19665 #### --------------- HRs ---------------
19666 #### 1. Single line
19667 #### -----------------------------------
19670 HRs: 1. Single line
19674 ----<nowiki>----</nowiki>
19678 <hr><span typeof="mw:Nowiki">----</span>
19683 #### --------------- Tables ---------------
19684 #### 1a. Simple example
19685 #### 1b. No escaping needed (!foo)
19686 #### 1c. No escaping needed (|foo)
19687 #### 1d. No escaping needed (|}foo)
19689 #### 2a. Nested in td (<td>foo|bar</td>)
19690 #### 2b. Nested in td (<td>foo||bar</td>)
19691 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
19693 #### 3a. Nested in th (<th>foo!bar</th>)
19694 #### 3b. Nested in th (<th>foo!!bar</th>)
19695 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
19699 #### 4c. No escaping needed
19700 #### --------------------------------------
19703 Tables: 1a. Simple example
19714 Tables: 1b. No escaping needed
19723 Tables: 1c. No escaping needed
19732 Tables: 1d. No escaping needed
19741 Tables: 2a. Nested in td
19746 |<nowiki>foo|bar</nowiki>
19748 |x<div><nowiki>a|b</nowiki></div>
19752 <td>foo|bar</td></tr>
19753 <tr><td>x<div>a|b</div></td>
19758 Tables: 2b. Nested in td
19763 |<nowiki>foo||bar</nowiki>
19764 |''it''<nowiki>foo||bar</nowiki>
19768 <td><span typeof="mw:Nowiki">foo||bar</span></td>
19769 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
19773 Tables: 2c. Nested in td -- no escaping needed
19781 <table><tbody><tr><td>foo!!bar
19782 </td></tr></tbody></table>
19787 Tables: 3a. Nested in th
19795 <table><tbody><tr><th>foo!bar
19796 </th></tr></tbody></table>
19801 Tables: 3b. Nested in th
19806 !<nowiki>foo!!bar</nowiki>
19810 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
19815 Tables: 3c. Nested in th -- no escaping needed
19820 !<nowiki>foo||bar</nowiki>
19824 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
19828 Tables: 4a. Escape -
19835 |<nowiki>-bar</nowiki>
19839 <tr><th>-bar</th></tr>
19841 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
19845 Tables: 4b. Escape +
19852 |<nowiki>+bar</nowiki>
19856 <tr><th>+bar</th></tr>
19858 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
19862 Tables: 4c. No escaping needed
19883 <tr><td>foo-bar</td><td>foo+bar</td></tr>
19884 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
19890 <div>a|b</div></td>
19895 Tables: 4d. No escaping needed
19906 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo" title="Foo">Foo</a>-bar</td>
19907 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
19908 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
19913 Tables: Digest broken attributes on table and tr tag
19929 #### --------------- Links ----------------
19930 #### 1. Quote marks in link text
19931 #### 2. Wikilinks: Escapes needed
19932 #### 3. Wikilinks: No escapes needed
19933 #### 4. Extlinks: Escapes needed
19934 #### 5. Extlinks: No escapes needed
19935 #### --------------------------------------
19937 Links 1. Quote marks in link text
19941 [[Foo|Foo<nowiki>''boo''</nowiki>]]
19943 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
19947 Links 2. WikiLinks: Escapes needed
19952 [[Foo|<nowiki>Foobar]</nowiki>]]
19953 [[Foo|x [Foobar] x]]
19954 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
19955 [[Foo|<nowiki>[[Bar]]</nowiki>]]
19956 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
19957 [[Foo|<nowiki>|Bar</nowiki>]]
19958 [[Foo|<nowiki>]]bar</nowiki>]]
19959 [[Foo|<nowiki>[[bar</nowiki>]]
19960 [[Foo|<nowiki>x [[ y</nowiki>]]
19961 [[Foo|<nowiki>x ]] y</nowiki>]]
19962 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
19964 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
19965 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
19966 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
19967 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
19968 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
19969 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
19970 <a href="Foo" rel="mw:WikiLink">|Bar</a>
19971 <a href="Foo" rel="mw:WikiLink">]]bar</a>
19972 <a href="Foo" rel="mw:WikiLink">[[bar</a>
19973 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
19974 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
19975 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
19979 Links 3. WikiLinks: No escapes needed
19986 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
19987 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
19991 Links 4. ExtLinks: Escapes needed
19995 [http://google.com <nowiki>[google]</nowiki>]
19996 [http://google.com <nowiki>google]</nowiki>]
19998 <nowiki>[http://google.com]</nowiki>
20000 <nowiki>[http://google.com google]</nowiki>
20003 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
20004 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
20005 <p>[http://google.com]</p>
20006 <p>[http://google.com google]</p>
20010 Links 5. ExtLinks: No escapes needed
20014 [http://google.com [google]
20016 <a href="http://google.com" rel="mw:ExtLink">[google</a>
20020 Links 6. Add <nowiki/>s between text-nodes and url-links when required (bug 64300)
20022 <p>x<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>y
20023 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>?x
20024 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>&x
20025 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>'x
20026 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,x
20027 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.x
20028 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
20029 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>:x
20030 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
20031 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>!x
20032 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>=x
20033 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>(x)
20034 <a rel="mw:ExtLink" href="http://example.com(x" data-parsoid='{"stx":"url"}'>http://example.com(x</a>)
20037 x<nowiki/>http://example.com<nowiki/>y
20038 http://example.com<nowiki/>?x
20039 http://example.com<nowiki/>&x
20040 http://example.com<nowiki/>'x
20041 http://example.com<nowiki/>,x
20042 http://example.com<nowiki/>.x
20043 http://example.com<nowiki/>;x
20044 http://example.com<nowiki/>:x
20045 http://example.com<nowiki/>;x
20046 http://example.com<nowiki/>!x
20047 http://example.com<nowiki/>=x
20048 http://example.com<nowiki/>(x)
20049 http://example.com(x<nowiki/>)
20053 Links 7a. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
20056 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>
20058 "<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>"
20059 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>)
20060 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>) foo
20061 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,
20062 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>, foo
20068 "http://example.com"
20069 (http://example.com)
20070 (http://example.com) foo
20071 http://example.com,
20072 http://example.com, foo
20075 ## Parsoid currently fails wt2html on this one!
20077 Links 7b. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
20079 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.,;:!?</p>
20081 http://example.com.,;:!?
20085 Links 8. Add <nowiki/>s between text-nodes and RFC-links when required (bug 64300)
20087 <p><a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>4</p>
20093 Links 9. Don't add spurious <nowiki/>s between text-nodes and RFC-links (bug 64300)
20095 <p>x<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
20096 X<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
20097 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>?foo
20098 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>&foo
20108 Links 10. Add <nowiki/>s between text-nodes and PMID-links when required (bug 64300)
20110 <p><a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>4
20116 Links 11. Don't add spurious <nowiki/>s between text-nodes and PMID-links (bug 64300)
20118 <p>x<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
20119 X<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
20120 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>?foo
20121 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>&foo
20131 Links 12. Add <nowiki/>s between text-nodes and ISBN-links when required (bug 64300)
20133 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>1
20134 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>x
20135 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>b
20138 ISBN 1234567890<nowiki/>1
20139 ISBN 1234567890<nowiki/>x
20140 ISBN 1234567890<nowiki/>b
20144 Links 12. Don't add spurious <nowiki/>s between text-nodes and ISBN-links (bug 64300)
20146 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>'s
20151 #### --------------- Quotes ---------------
20152 #### 1. Quotes inside <b> and <i>
20153 #### 2. Link fragments separated by <i> and <b> tags
20154 #### 3. Link fragments inside <i> and <b>
20155 #### 4. No escaping needed
20156 #### --------------------------------------
20158 1. Quotes inside <b> and <i>
20160 parsoid=html2wt,wt2wt
20162 ''<nowiki>'foo'</nowiki>''
20163 ''<nowiki>''foo''</nowiki>''
20164 ''<nowiki>'''foo'''</nowiki>''
20166 '''<nowiki>'foo'</nowiki>'''
20167 '''<nowiki>''foo''</nowiki>'''
20168 '''<nowiki>'''foo'''</nowiki>'''
20169 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
20170 '''foo'''<nowiki/>'s
20173 '<nowiki/>''foo''<nowiki/>'
20175 '''foo'''<nowiki/>'
20176 '<nowiki/>'''foo'''<nowiki/>'
20177 ''fools'<span> errand</span>''
20178 ''<span>fool</span>'s errand''
20187 <b>foo'<i>bar'</i>baz</b>
20195 <i>fools'<span> errand</span></i>
20196 <i><span>fool</span>'s errand</i>
20200 2. Link fragments separated by <i> and <b> tags
20202 [[''foo''<nowiki>hello]]</nowiki>
20204 [['''foo'''<nowiki>hello]]</nowiki>
20206 <p>[[<i>foo</i>hello]]
20207 </p><p>[[<b>foo</b>hello]]
20212 3. Link fragments inside <i> and <b>
20213 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
20214 this is one of the shortcomings of this format)
20216 ''[[foo''<nowiki>]]</nowiki>
20218 '''[[foo'''<nowiki>]]</nowiki>
20221 </p><p><b>[[foo</b>]]
20226 4. No escaping needed
20228 '<span>''bar''</span>'
20229 '<span>'''bar'''</span>'
20231 <p>'<span><i>bar</i></span>'
20232 '<span><b>bar</b></span>'
20236 #### ----------- Paragraphs ---------------
20237 #### 1. No unnecessary escapes
20238 #### --------------------------------------
20241 1. No unnecessary escapes
20243 bar <span><nowiki>[[foo]]</nowiki></span>
20245 =bar <span><nowiki>[[foo]]</nowiki></span>
20247 [[bar <span><nowiki>[[foo]]</nowiki></span>
20249 ]]bar <span><nowiki>[[foo]]</nowiki></span>
20251 =bar <span>foo]]</span><nowiki>=</nowiki>
20253 <p>bar <span>[[foo]]</span>
20254 </p><p>=bar <span>[[foo]]</span>
20255 </p><p>[[bar <span>[[foo]]</span>
20256 </p><p>]]bar <span>[[foo]]</span>
20257 </p><p>=bar <span>foo]]</span>=
20261 #### ----------------------- PRE --------------------------
20262 #### 1. Leading whitespace in SOL context should be escaped
20263 #### ------------------------------------------------------
20265 1. Leading whitespace in SOL context should be escaped
20269 <nowiki> </nowiki>a
20271 <nowiki> </nowiki> a
20273 <nowiki> </nowiki>a(tab)
20275 <nowiki> </nowiki> a
20277 <nowiki> </nowiki> a
20280 <nowiki> </nowiki>b
20283 <nowiki> </nowiki>b
20286 <nowiki> </nowiki> b
20292 <p><!--cmt--> a</p>
20302 2. Leading whitespace in non-indent-pre contexts should not be escaped
20309 <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>
20313 3. Leading whitespace in indent-pre suppressing contexts should not be escaped
20332 4. Leading whitespace in indent-pre suppressing contexts should not be escaped
20336 [[File:Foobar.jpg|thumb|caption]]
20339 <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>
20343 5. Nowiki escaping should account for indent-pres
20352 #### --------------- Behavior Switches --------------------
20354 1. Valid behavior switches should be escaped
20358 <nowiki>__TOC__</nowiki>
20359 ''<nowiki>__TOC__</nowiki>''
20366 2. Invalid behavior switches should not be escaped
20377 #### --------------- HTML tags ---------------
20380 #### 3. multi-line html tag
20381 #### 4. extension tags
20382 #### -----------------------------------------
20388 <a href="http://google.com">google</a>
20390 <a href="http://google.com">google</a>
20396 <nowiki><div>foo</div>
20397 <div style="color:red">foo</div></nowiki>
20399 <p><div>foo</div>
20400 <div style="color:red">foo</div>
20405 3. multi-line html tag
20420 <nowiki><ref>foo</ref></nowiki>
20422 <nowiki><ref>bar</nowiki>
20424 baz<nowiki></ref></nowiki>
20426 <p><ref>foo</ref>
20427 </p><p><ref>bar
20428 </p><p>baz</ref>
20432 #### --------------- Others ---------------
20436 <nowiki>foo</nowiki>
20438 <p><nowiki>foo</nowiki>
20442 ## The quote-char in the input is necessary for triggering the bug
20444 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
20446 parsoid=wt2wt,html2wt
20455 Tag-like HTML structures are passed through as text
20477 </p><p>1<d e>f
20482 # This was a bug in the PHP parser (see bug 17663 and its dups,
20483 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
20485 Tag names followed by punctuation should not be recognized as tags
20489 <p><s.ome> text
20494 HTML tag with necessary entities in attributes
20496 <span title="&amp;">foo</span>
20498 <p><span title="&amp;">foo</span>
20503 HTML tag with 'unnecessary' entity encoding in attributes
20505 <span title="&">foo</span>
20507 <p><span title="&">foo</span>
20512 HTML tag with broken attribute value quoting
20514 <span title="Hello world>Foo</span>
20516 <p><span>Foo</span>
20519 <p><span title="Hello world">Foo</span>
20524 Parsoid-only: HTML tag with broken attribute value quoting
20528 <span title="Hello world>Foo</span>
20530 <p><span title="Hello world">Foo</span>
20535 Table with broken attribute value quoting
20538 | title="Hello world|Foo
20549 <td title="Hello world">Foo
20555 Table with broken attribute value quoting on consecutive lines
20558 | title="Hello world|Foo
20559 | style="color:red|Bar
20572 Parsoid-only: Table with broken attribute value quoting on consecutive lines
20577 | title="Hello world|Foo
20578 | style="color:red|Bar
20583 <td title="Hello world">Foo
20584 </td><td style="color: red">Bar
20585 </td></tr></tbody></table>
20590 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
20600 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
20610 Accept empty td cell attribute
20613 | align="center" | foo || |
20618 <td align="center"> foo </td>
20625 Non-empty attributes in th-cells
20628 ! Foo !! style="color: red" | Bar
20634 <th style="color: red"> Bar
20640 Accept empty attributes in th-cells
20655 Empty table rows go away
20676 ### Parsoid-centric tests for testing RTing of inter-element separators
20677 ### Edge cases not tested by existing parser tests and specific to
20678 ### Parsoid-specific serialization strategies.
20682 RT-ed inter-element separators should be valid separators
20695 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
20696 (Parsoid-only since PHP parser relies on Tidy for correct output)
20712 Empty TD followed by TD with tpl-generated attribute
20717 |{{echo|style='color:red'}}|foo
20731 Indented table with an empty td
20750 Indented block & table
20764 <div data-parsoid='{"stx":"html"}'>foo</div>
20766 <tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>foo</td></tr>
20771 Indent and comment before table row
20785 <table data-parsoid='{}'>
20786 <!--hi--><tbody data-parsoid='{}'><tr data-parsoid='{"startTagSrc":"|-","autoInsertedEnd":true}'>
20787 <td data-parsoid='{"autoInsertedEnd":true}'> there</td></tr>
20792 Empty TR followed by a template-generated TR
20793 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
20799 {{echo|<tr><td>foo</td></tr>}}
20805 <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}}]}'>
20810 ## PHP and parsoid output differ for this, and since this is primarily
20811 ## for testing Parsoid's serializer, marking this Parsoid only
20813 Empty TR followed by mixed-ws-comment line should RT correctly
20829 <!--c--> </tr><!--d-->
20835 Multi-line image caption generated by templates with/without trailing newlines
20839 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
20840 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
20842 <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>
20843 <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>
20848 New element inserted (without intervening newlines) after an old sol-transparent node should serialize correctly
20852 <includeonly>foo</includeonly>
20859 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>foo</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><p>new para</p>
20861 <link rel="mw:PageProp/Category" href="./Category:Foo" data-parsoid=''/><h1>new heading</h1>
20864 ## PHP emits broken html for this, and since this is primarily
20865 ## a Parsoid serializer test, marking this Parsoid only
20867 Improperly nested inline or quotes tags with whitespace in between
20871 <span> <s>x</span> </s>
20874 <p><span> <s>x</s></span><s> </s>
20875 <b> <i>x</i></b><i> </i>
20880 Encapsulate protected attributes from wt
20884 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
20886 <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>
20890 ## Currently the p-wrapper is fragile in how it adds / removes transformations.
20891 ## Having nested or stray pre tags results in the attempt to add duplicates,
20892 ## causing an assertion fail. This test tries to prevent that situation.
20894 Ensure ParagraphWrapper can deal with stray closing pre tags
20904 1. Ensure fostered text content is wrapped in spans
20908 <table>hi</table><table>ho</table>
20917 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
20919 parsoid=wt2html,wt2wt
20926 <span> || ||</span>
20935 Encapsulation properly handles null DSR information from foster box
20937 parsoid=wt2html,wt2wt
20939 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
20941 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
20944 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
20948 <td>bar</td></tr></tbody></table>
20952 1. Encapsulate foster-parented transclusion content
20954 parsoid=wt2wt,wt2html
20956 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
20958 <span typeof="mw:Transclusion" data-mw="{"parts":["
20959 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
20961 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
20965 <td>bar</td></tr></tbody></table>
20969 2. Encapsulate foster-parented transclusion content
20971 parsoid=wt2wt,wt2html
20973 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
20975 <div typeof="mw:Transclusion" data-mw="{"parts":["
20977 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
20979 <td>bar</td></tr></table>"]}">foo</div>
20983 <td>bar</td></tr></tbody></table>
20987 3. Encapsulate foster-parented transclusion content
20989 parsoid=wt2wt,wt2html
20991 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
20993 <div typeof="mw:Transclusion" data-mw="{"parts":["
20996 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
20998 <td>"}},"i":0}},"bar</td></tr></table>"]}">
21003 <td>bar</td></tr></tbody></table>
21007 4. Encapsulate foster-parented transclusion content
21009 parsoid=wt2wt,wt2html
21011 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
21013 <div typeof="mw:Transclusion" data-mw="{"parts":["
21016 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
21018 <td>"}},"i":0}},"bar</td></tr></table>"]}">
21023 <td>bar</td></tr></tbody></table>
21027 5. Encapsulate foster-parented transclusion content
21029 parsoid=wt2wt,wt2html
21031 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
21033 <span typeof="mw:Transclusion" data-mw="{"parts":["
21038 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
21044 <p>foo</p></div></td></tr></tbody></table>
21048 6. Encapsulate foster-parented transclusion content
21050 parsoid=wt2wt,wt2html
21052 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
21054 <span typeof="mw:Transclusion" data-mw="{"parts":["
21059 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
21065 <p>foo</p></div></td></tr></tbody></table>
21070 7. Encapsulate foster-parented transclusion content
21072 parsoid=wt2wt,wt2html
21074 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
21076 <p typeof="mw:Transclusion" data-mw="{"parts":["
21077 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
21078 <p>foo</p>"}},"i":0}},"
21079 <td>bar</td></table>"]}">foo</p>
21083 <td>bar</td></tr></tbody></table>
21087 8. Encapsulate foster-parented transclusion content
21089 parsoid=wt2wt,wt2html
21092 }}{|{{echo|style='color:red'}}
21097 <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>
21101 <td>b</td></tr></tbody></table>
21105 9. Encapsulate foster-parented transclusion content
21107 parsoid=wt2wt,wt2html
21109 <table>{{echo|hi</table>hello}}
21111 <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>
21112 <table about="#mwt2" data-parsoid='{"stx":"html"}'></table><span about="#mwt2" data-parsoid="{}">hello</span>
21116 Table in fosterable position
21118 parsoid=wt2html,wt2wt
21127 <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="{}">
21129 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
21135 # Parsoid only for bug 64747
21137 Properly encapsulate empty-content transclusions in fosterable positions
21145 <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>"}'>
21151 Support <object> element with .data attribute
21155 <object data="test.swf"></object>
21157 <object data="test.swf"></object>
21160 # -----------------------------------------------------------------
21161 # The following section of tests are primarily to spec requirements
21162 # around serialization of new/edited content.
21164 # All these tests are marked Parsoid html2wt and html2html only
21165 # ----------------------------------------------------------------
21168 Serialize interwiki links pointing to the current wiki as plain wiki links (bug 65869)
21175 <p><a rel="mw:ExtLink" href="http://es.wikipedia.org/wiki/Foo">Foo</a></p>
21179 Image: Modifying size of an image (1)
21182 "modes": ["wt2wt"],
21184 ["img[height]", "attr", "height", "22"],
21185 ["img[width]", "attr", "width", "200"]
21189 [[Image:Foobar.jpg|230x230px]]
21191 [[Image:Foobar.jpg|200x200px]]
21195 Image: Modifying size of an image (2)
21198 "modes": ["wt2wt"],
21200 ["img[height]", "attr", "height", "100"],
21201 ["img[width]", "attr", "width", "500"]
21205 [[Image:Foobar.jpg|230x230px]]
21207 [[Image:Foobar.jpg|500x500px]]
21210 # Change in size is ignored so long as class='mw-default-size'
21212 Image: Modifying size of an image (3)
21215 "modes": ["wt2wt"],
21217 ["figure[class]", "removeClass", "mw-default-size"],
21218 ["figure img", "attr", "height", "19"],
21219 ["figure img", "attr", "width", "170"]
21223 [[Image:Foobar.jpg|thumb]]
21225 [[Image:Foobar.jpg|thumb|170x170px]]
21229 Image: Modifying alignment of an image (bug 48665)
21232 "modes": ["wt2wt"],
21234 ["figure[class]", "removeClass", "mw-halign-right"],
21235 ["figure[class]", "addClass", "mw-halign-left"]
21239 [[Image:Foobar.jpg|thumb|caption|right]]
21241 [[Image:Foobar.jpg|thumb|caption|left]]
21245 Image: Modifying mw-default-size of an frameless image (bug 62805)
21248 "modes": ["wt2wt"],
21250 ["figure.mw-default-size", "removeClass", "mw-default-size"]
21254 [[Image:Foobar.jpg|frameless|right]]
21256 [[Image:Foobar.jpg|frameless|right|220x220px]]
21260 Image: Modifying valign of an image (bug 49221)
21263 "modes": ["wt2wt"],
21265 ["*[typeof=\"mw:Image\"]", "removeClass", "mw-valign-middle"],
21266 ["*[typeof=\"mw:Image\"]", "addClass", "mw-valign-text-top"]
21270 [[File:Foobar.jpg|20px|middle]]
21272 [[File:Foobar.jpg|20px|text-top]]
21276 Image: Modifying alt attribute of an image (bug 56400)
21279 "modes": ["wt2wt"],
21281 ["img[alt]", "attr", "alt", "some alternate edited text"]
21285 [[File:Foobar.jpg|thumb|some caption|alt=some alternate text]]
21287 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
21291 Image: Modifying caption of an image
21294 "modes": ["wt2wt"],
21296 ["figcaption", "text", "new caption"]
21300 [[Image:Foobar.jpg|thumb|original caption]]
21302 [[Image:Foobar.jpg|thumb|new caption]]
21306 Image: empty alt attribute (bug 48924)
21310 [[File:Foobar.jpg|thumb|alt=|bar]]
21312 <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>
21316 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
21321 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
21323 #<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>
21327 Image: Block level image should have \n before and after
21332 [[File:Foobar.jpg|right|thumb|150x150px]]
21335 <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>
21339 Image: New block level image should have \n before and after (existing
21345 [[File:Foobar.jpg|right|thumb|150x150px]]
21348 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
21349 <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>
21350 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
21354 Image: upright option (parsoid)
21358 [[File:Foobar.jpg|thumb|upright|caption]]
21359 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
21360 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
21362 <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>
21366 Image: upright option is ignored on inline and frame images (parsoid)
21370 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
21372 <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>
21376 Image: from basic HTML (1)
21380 <span typeof="mw:Image">
21381 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
21384 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
21388 Image: from basic HTML (2)
21392 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
21394 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
21398 Image: from basic HTML (3)
21402 <a href="Main"><img src="File:Foobar.jpg" width=100 height=100 alt="Alt"></a>
21404 [[File:Foobar.jpg|link=Main|alt=Alt|100x100px]]
21408 Image: from basic HTML (4)
21412 <img src="File:Foobar.jpg">
21414 [[File:Foobar.jpg|link=]]
21418 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
21425 <li><p>foo</p></li>
21430 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
21436 <ul> <li>foo</li></ul>
21440 Don't strip leading whitespace when handling indent-pre suppressing tags
21448 '''This is very bold of you!'''
21452 indented cell (no pre-wrapping!)
21459 <tr><td> indented row</td></tr>
21462 <b>This is very bold of you!</b>
21465 indented cell (no pre-wrapping!)
21473 Nowiki-wrap leading whitespace when handling indent-pre inducing tags
21478 <nowiki> </nowiki><span>bar</span>
21481 <nowiki> </nowiki></span>bar2
21484 <nowiki> </nowiki><span>bar</span>
21487 <nowiki> </nowiki><span>foo</span>
21505 Lists: Add space after bullets
21511 * <span> baz</span>
21516 <li><span> baz</span></li>
21521 Lists: Dont insert newlines in a serialized list item.
21528 <ul><li>a<br>b</li><li>c</li></ul>
21532 Headings: Add space before/after == (Bug 51744)
21542 == <span> baz</span> ==
21547 <h2><span> baz</span></h2>
21551 Parsoid: Serialize positional parameters with = in them as named parameter
21557 {{echo|1 = f=oo|2 = bar}}
21559 <!--Orig params with data-parsoid has heuristics for handling = chars-->
21560 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
21561 {{echo|<nowiki>f=oo</nowiki>|bar}}
21563 <p about="#mwt1" typeof="mw:Transclusion"
21564 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
21566 <p about="#mwt1" typeof="mw:Transclusion"
21567 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
21569 <!--Orig params with data-parsoid has heuristics for handling = chars-->
21570 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
21571 <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>
21575 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
21591 <div>a<p>b</p></div>
21600 Substrings resembling wikitext in hrefs should not get nowiki escapes
21606 <a rel="mw:WikiLink" href="./Foo''bar''baz">Foo''bar''baz</a>
21609 #-----------------------------
21610 # I/B quote minimization tests
21611 #-----------------------------
21614 1. I/B quote minimization: wikitext-only tags should be combined
21634 <p><i>A</i><i>B</i></p>
21635 <p><b>A</b><b>B</b></p>
21636 <p><i>A</i><b><i>B</i></b></p>
21637 <p><b>A</b><i><b>B</b></i></p>
21638 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
21639 <p><i><b>A</b></i><i><b>B</b></i></p>
21640 <p><i><b>A</b></i><b><i>B</i></b></p>
21641 <p><b><i>A</i></b><i><b>B</b></i></p>
21645 2. I/B quote minimization: wikitext and html tags should not be combined
21651 ''A'''''<i>B</i>'''
21653 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
21654 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
21658 3. I/B quote minimization: templated content stops minimization
21662 ''A''{{echo|''B''}}
21664 ''A''{{echo|'''''B'''''}}
21666 <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>
21667 <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>
21671 4. I/B quote minimization: new content should be mimimized with adjacent old content
21681 <p><i>A</i><i data-parsoid='{}'>B</i></p>
21682 <p><b data-parsoid='{}'>A</b><b>B</b></p>
21683 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
21686 #------------------------------------
21687 # End of I/B quote minimization tests
21688 #------------------------------------
21691 Bug 54262: New entities
21697 <span typeof="mw:Entity"> </span>
21700 ## Note that there is no wikitext output for 'unknownproperty' ##
21701 ## Unknown magic words are silently dropped ##
21716 __NOCONTENTCONVERT__
21718 <meta property='mw:PageProp/toc' />
21719 <meta property='mw:PageProp/notoc' />
21720 <meta property='mw:PageProp/forcetoc' />
21721 <meta property='mw:PageProp/index' />
21722 <meta property='mw:PageProp/noindex' />
21723 <meta property='mw:PageProp/nogallery' />
21724 <meta property='mw:PageProp/noeditsection' />
21725 <meta property='mw:PageProp/notitleconvert' />
21726 <meta property='mw:PageProp/nocontentconvert' />
21727 <meta property='mw:PageProp/unknownproperty' />
21731 Consecutive <pre>s should not get merged
21733 parsoid=html2wt,html2html
21749 <pre>a</pre><pre>b</pre>
21763 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
21767 [[Special:BookSources/1234567890|ISBN 1234567895]]
21769 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
21773 Edited RFC links not serializable as RFC links should serialize as extlinks
21777 [//tools.ietf.org/html/rfc123 New RFC]
21779 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
21783 Edited PMID links not serializable as PMID links should serialize as extlinks
21787 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
21789 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
21793 Edited Redirect link should emit a non-piped wikitext link
21799 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
21802 # -----------------------------------------------------------------
21803 # End of section for Parsoid-only html2wt tests for serialization
21805 # -----------------------------------------------------------------
21812 Try for 100% code coverage