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-formedness
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 # showindicators make the first lines the page status indicators
30 # comment run through Linker::formatComment() instead of main parser
31 # local format section links in edit comment text as local links
32 # notoc disable table of contents
33 # thumbsize=NNN set the default thumb size to NNNpx for this test
35 # You can also set the following parser properties via test options:
36 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
37 # wgLinkHolderBatchSize, wgRawHtml
39 # For testing purposes, temporary articles can created:
40 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
41 # where '/' denotes a newline.
43 # This is the standard article assumed to exist.
80 MediaWiki:bad image list
82 * [[File:Bad.jpg]] except [[Nasty page]]
110 Template:echo_with_span
116 Template:echo_with_div
122 Template:table_attribs
125 |</noinclude>style="color:red;"|Foo
129 Template:table_attribs_2
132 |</noinclude>style="color:red;"|Foo
137 Template:table_attribs_3
140 |</noinclude>style{{=}}"background:#f9f9f9;"|Foo
144 Template:table_attribs_4
146 | style="background-color:#DC241f;" width="10px" |
150 Template:table_header_cells
152 {{table_attribs}}!!style='color:red;'|''Bar''||style='color:brown;'|''Foo'' and Baz
158 {{table_attribs}}||style='color:red;'|''Bar''||style='color:brown;'|''Foo'' and Baz
162 Template:image_attribs
165 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
168 ## See T48811 for details
170 Template:mixed_attr_content_template
172 style="color:red;" title="T48811"
178 Template:definition_list
225 Template:EmptyTRWithHTMLAttrTest
228 <tr align="center"></tr>
229 <tr><td>foo</td></tr>
230 <tr align="center"></tr>
231 <tr><td>bar</td></tr>
248 This is a simple paragraph.
250 <p>This is a simple paragraph.
255 Paragraphs with extra newline spacing
278 Paragraphs with newline spacing with comment lines in between
286 <!--foo--><!--More than 1 comment, still stripped-->
290 <!--foo--> <!----> <!-- bar -->
351 Paragraphs with newline spacing with non-empty white-space lines in between
378 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
386 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
425 Extra newlines: More paragraphs with indented comment
440 Extra newlines followed by heading
455 <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>
456 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
459 <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>
464 Extra newlines between heading and content are swallowed
472 <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>
473 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
480 http://fr.wikipedia.org/wiki/🍺
481 <!-- EasterEgg we love beer, better be able be able to link to it -->
483 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
487 # Note that the html+tidy output removes the spaces after the <li>,
488 # which is a bug (http://sourceforge.net/p/tidy/bugs/945/, etc).
489 # This is an issue for all tests with lists. We intentionally do
490 # *not* add html+tidy clauses for these, as we don't want to
491 # document/test the broken behavior. (Parsoid matches the non-tidy
492 # output in these cases.)
501 <li> Item 2</li></ul>
509 * plain''italic''plain
510 * plain''italic''plain''italic''plain
511 * plain'''bold'''plain
512 * plain'''bold'''plain'''bold'''plain
513 * plain''italic''plain'''bold'''plain
514 * plain'''bold'''plain''italic''plain
515 * plain''italic'''bold-italic'''italic''plain
516 * plain'''bold''bold-italic''bold'''plain
517 * plain'''''bold-italic'''italic''plain
518 * plain'''''bold-italic''bold'''plain
519 * plain''italic'''bold-italic'''''plain
520 * plain'''bold''bold-italic'''''plain
521 * plain l'''italic''plain
522 * plain l''''bold''' plain
525 <li> plain<i>italic</i>plain</li>
526 <li> plain<i>italic</i>plain<i>italic</i>plain</li>
527 <li> plain<b>bold</b>plain</li>
528 <li> plain<b>bold</b>plain<b>bold</b>plain</li>
529 <li> plain<i>italic</i>plain<b>bold</b>plain</li>
530 <li> plain<b>bold</b>plain<i>italic</i>plain</li>
531 <li> plain<i>italic<b>bold-italic</b>italic</i>plain</li>
532 <li> plain<b>bold<i>bold-italic</i>bold</b>plain</li>
533 <li> plain<i><b>bold-italic</b>italic</i>plain</li>
534 <li> plain<b><i>bold-italic</i>bold</b>plain</li>
535 <li> plain<i>italic<b>bold-italic</b></i>plain</li>
536 <li> plain<b>bold<i>bold-italic</i></b>plain</li>
537 <li> plain l'<i>italic</i>plain</li>
538 <li> plain l'<b>bold</b> plain</li></ul>
542 # this example taken from the [[simple:Moon]] article (bug 47326)
544 Italics and possessives (1)
546 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
548 <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
552 # this example taken from [[en:Flaming Pie]] (bug 49926)
554 Italics and possessives (2)
556 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
558 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
562 # this example taken from [[en:Dictionary]] (bug 49926)
564 Italics and possessives (3)
566 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''.
568 <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>.
574 ### 2-quote opening sequence tests
577 Italics and bold: 2-quote opening sequence: (2,2)
586 Italics and bold: 2-quote opening sequence: (2,3)
595 Italics and bold: 2-quote opening sequence: (2,4)
605 # same html as previous, but wikitext adjusted to match parsoid html2wt
607 Italics and bold: 2-quote opening sequence: (2,4) w/ nowiki
609 ''foo<nowiki>''</nowiki>''
615 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
617 Italics and bold: 2-quote opening sequence: (2,5)
630 # same html as previous, but wikitext adjusted to match parsoid html2wt
632 Italics and bold: 2-quote opening sequence: (2,5+3) w/ nowiki
634 ''foo'''''<nowiki/>'''
645 ### 3-quote opening sequence tests
649 Italics and bold: 3-quote opening sequence: (3,2)
658 Italics and bold: 3-quote opening sequence: (3,3)
667 Italics and bold: 3-quote opening sequence: (3,4)
675 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
677 Italics and bold: 3-quote opening sequence: (3,5)
690 # same html as previous, but wikitext adjusted to match parsoid html2wt
692 Italics and bold: 3-quote opening sequence: (3,5+2) w/ nowiki
694 '''foo'''''<nowiki/>''
705 ### 4-quote opening sequence tests
709 Italics and bold: 4-quote opening sequence: (4,2)
719 # same html as previous, but wikitext adjusted to match parsoid html2wt
721 Italics and bold: 4-quote opening sequence: (4,2) w/ nowiki
723 <nowiki>''</nowiki>''foo''
730 Italics and bold: 4-quote opening sequence: (4,3)
739 Italics and bold: 4-quote opening sequence: (4,4)
749 # same html as previous, but wikitext adjusted to match parsoid html2wt
751 Italics and bold: 4-quote opening sequence: (4,4) w/ nowiki
759 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
761 Italics and bold: 4-quote opening sequence: (4,5)
770 <p>'<b>foo</b><i></i>
774 # same html as previous, but wikitext adjusted to match parsoid html2wt
776 Italics and bold: 4-quote opening sequence: (4,5+2) w/ nowiki
778 '<nowiki/>'''foo'''''<nowiki/>''
783 <p>'<b>foo</b><i></i>
789 ### 5-quote opening sequence tests
793 Italics and bold: 5-quote opening sequence: (5,2)
803 # same html as previous, but wikitext adjusted to match parsoid html2wt
804 # skipping wt2html and html2html because it wants to put <i> before <b>
806 Italics and bold: 5-quote opening sequence: (5,2+3)
808 parsoid=wt2wt,html2wt
817 Italics and bold: 5-quote opening sequence: (5,3)
827 # same html as previous, but wikitext adjusted to match parsoid html2wt
829 Italics and bold: 5-quote opening sequence: (5,3+2)
838 Italics and bold: 5-quote opening sequence: (5,4)
844 <p><i><b>foo'</b></i>
849 Italics and bold: 5-quote opening sequence: (5,5)
858 Italics and bold: 5-quote opening sequence: (5,6)
862 <p><i><b>foo'</b></i>
867 ### multiple quote sequences in a line
870 Italics and bold: multiple quote sequences: (2,4,2)
876 <p><i>foo'<b>bar</b></i>
881 # same html as previous, but wikitext adjusted to match parsoid html2wt
883 Italics and bold: multiple quote sequences: (2,4,2+3) w/ nowiki
885 ''foo'<nowiki/>'''bar'''''
887 <p><i>foo'<b>bar</b></i>
893 Italics and bold: multiple quote sequences: (2,4,3)
899 <p><i>foo'<b>bar</b></i>
904 # same html as previous, but wikitext adjusted to match parsoid html2wt
906 Italics and bold: multiple quote sequences: (2,4,3+2) w/ nowiki
908 ''foo'<nowiki/>'''bar'''''
910 <p><i>foo'<b>bar</b></i>
916 Italics and bold: multiple quote sequences: (2,4,4)
922 <p><i>foo'<b>bar'</b></i>
927 # same html as previous, but wikitext adjusted to match parsoid html2wt
929 Italics and bold: multiple quote sequences: (2,4,4+2) w/ nowiki
931 ''foo'<nowiki/>'''bar'<nowiki/>'''''
933 <p><i>foo'<b>bar'</b></i>
938 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
940 Italics and bold: multiple quote sequences: (3,4,2)
949 <p><b>foo'</b>bar<i></i>
953 # same html as previous, but wikitext adjusted to match parsoid html2wt
955 Italics and bold: multiple quote sequences: (3,4,2+2) w/ nowiki
959 '''<nowiki>foo'</nowiki>'''bar''<nowiki/>''
964 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<i></i>
969 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
971 Italics and bold: multiple quote sequences: (3,4,3)
980 <p><b>foo'</b>bar<b></b>
984 # same html as previous, but wikitext adjusted to match parsoid html2wt
986 Italics and bold: multiple quote sequences: (3,4,3+3) w/ nowiki
988 '''<nowiki>foo'</nowiki>'''bar'''<nowiki/>'''
993 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<b></b>
998 ### other quote tests
1001 Italics and bold: other quote tests: (2,3,5)
1003 ''this is about '''foo's family'''''
1005 <p><i>this is about <b>foo's family</b></i>
1011 Italics and bold: other quote tests: (2,(3,3),2)
1013 ''this is about '''foo's''' family''
1015 <p><i>this is about <b>foo's</b> family</i>
1021 Italics and bold: other quote tests: (3,2,3,2)
1025 '''this is about ''foo'''s family''
1027 <p><b>this is about <i>foo</i></b><i>s family</i>
1032 # same html as previous, but wikitext adjusted to match parsoid html2wt
1034 Italics and bold: other quote tests: (3,2,3+2+2,2)
1036 '''this is about ''foo'''''<nowiki/>''s family''
1038 <p><b>this is about <i>foo</i></b><i>s family</i>
1044 Italics and bold: other quote tests: (3,2,3,3)
1046 '''this is about ''foo'''s family'''
1048 <p>'<i>this is about </i>foo<b>s family</b>
1054 Italics and bold: other quote tests: (3,(2,2),3)
1056 '''this is about ''foo's'' family'''
1058 <p><b>this is about <i>foo's</i> family</b>
1064 Italicized possessive
1066 The ''[[Main Page]]'''s talk page.
1068 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
1071 <p>The <i><a rel="mw:WikiLink" href="Main_Page" title="Main Page">Main Page</a>'</i>s talk page.</p>
1075 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
1076 (Requires tidy for PHP parser output to be fixed up)
1078 parsoid=wt2html,wt2wt
1095 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
1096 <td><i>a</i></td><td><i>b</i></td></tr>
1105 Non-html5 tags should be accepted
1107 <center>''foo''</center>
1109 <font>''foo''</font>
1110 <strike>''foo''</strike>
1113 <center><i>foo</i></center>
1114 <p><big><i>foo</i></big>
1115 <font><i>foo</i></font>
1116 <strike><i>foo</i></strike>
1122 <wbr> is valid wikitext (bug 52468)
1130 # <strike> is HTML4, <s> is HTML4/5.
1132 <s> or <strike> for strikethrough
1134 <strike>strike</strike>
1138 <p><strike>strike</strike>
1146 Text-level semantic html elements in wikitext
1149 <strong>text</strong>
1165 <ruby><rb>明日</rb><rp>(</rp><rt>Ashita</rt><rp> </rp><rtc>あした</rtc><rp>)</rp></ruby>
1172 <strong>text</strong>
1188 <ruby><rb>明日</rb><rp>(</rp><rt>Ashita</rt><rp> </rp><rtc>あした</rtc><rp>)</rp></ruby>
1196 # test cases taken from
1197 # http://www.w3.org/TR/html5/text-level-semantics.html#the-ruby-element
1199 Ruby markup (W3C-style)
1201 ; Mono-ruby for individual base characters
1202 : <ruby>日<rt>に</rt>本<rt>ほん</rt>語<rt>ご</rt></ruby>
1204 : <ruby>今日<rt>きょう</rt></ruby>
1206 : <ruby>法<rb>華</rb><rb>経</rb><rt>ほ</rt><rt>け</rt><rt>きょう</rt></ruby>
1208 : <ruby>東<rb>京</rb><rp>(</rp><rt>とう</rt><rt>きょう</rt><rp>)</rp></ruby>
1210 : <ruby><rb>旧</rb><rb>金</rb><rb>山</rb><rt>jiù</rt><rt>jīn</rt><rt>shān</rt><rtc>San Francisco</rtc></ruby>
1212 <rb>♥</rb><rtc><rt>Heart</rt></rtc><rtc lang="fr"><rt>Cœur</rt></rtc>
1213 <rb>☘</rb><rtc><rt>Shamrock</rt></rtc><rtc lang="fr"><rt>Trèfle</rt></rtc>
1214 <rb>✶</rb><rtc><rt>Star</rt></rtc><rtc lang="fr"><rt>Étoile</rt></rtc>
1217 <dl><dt> Mono-ruby for individual base characters</dt>
1218 <dd> <ruby>日<rt>に</rt>本<rt>ほん</rt>語<rt>ご</rt></ruby></dd>
1219 <dt> Group ruby</dt>
1220 <dd> <ruby>今日<rt>きょう</rt></ruby></dd>
1221 <dt> Jukugo ruby</dt>
1222 <dd> <ruby>法<rb>華</rb><rb>経</rb><rt>ほ</rt><rt>け</rt><rt>きょう</rt></ruby></dd>
1223 <dt> Inline ruby</dt>
1224 <dd> <ruby>東<rb>京</rb><rp>(</rp><rt>とう</rt><rt>きょう</rt><rp>)</rp></ruby></dd>
1225 <dt> Double-sided ruby</dt>
1226 <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>
1228 <rb>♥</rb><rtc><rt>Heart</rt></rtc><rtc lang="fr"><rt>Cœur</rt></rtc>
1229 <rb>☘</rb><rtc><rt>Shamrock</rt></rtc><rtc lang="fr"><rt>Trèfle</rt></rtc>
1230 <rb>✶</rb><rtc><rt>Star</rt></rtc><rtc lang="fr"><rt>Étoile</rt></rtc>
1235 # The next two test different paths in the sanitizer.
1237 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
1239 <blockquote|>a</blockquote>
1241 <b→> doesn't terminate </b→>
1243 <bä> doesn't terminate </bä>
1245 <boo> doesn't terminate </boo>
1247 <s.foo> doesn't terminate </s.foo>
1251 <p><blockquote|>a</blockquote>
1252 </p><p><b→> doesn't terminate </b→>
1253 </p><p><bä> doesn't terminate </bä>
1254 </p><p><boo> doesn't terminate </boo>
1255 </p><p><s.foo> doesn't terminate </s.foo>
1256 </p><p><sub-ID#1>
1260 # There is a tidy bug here: http://sourceforge.net/p/tidy/bugs/946/
1261 # If the non-word-character tag made it through the sanitizer, tidy
1262 # would munge it up.
1264 Non-word characters don't terminate tag names + tidy
1266 <blockquote|>a</blockquote>
1268 <b→> doesn't terminate </b→>
1270 <bä> doesn't terminate </bä>
1272 <boo> doesn't terminate </boo>
1274 <s.foo> doesn't terminate </s.foo>
1278 <p><blockquote|>a</p>
1279 <p><b→> doesn't terminate </b→></p>
1280 <p><bä> doesn't terminate </bä></p>
1281 <p><boo> doesn't terminate </boo></p>
1282 <p><s.foo> doesn't terminate </s.foo></p>
1283 <p><sub-ID#1></p>
1287 ### See tests/parser/parserTestsParserHook.php for the <tåg> extension)
1288 ### This checks that HTML5 tags (with non-word characters in the tag
1289 ### name) make it safely through the parser -- the Sanitizer will
1290 ### munge them later, as it should.
1293 Non-word characters are valid in extension tags (T19663)
1306 Isolated close tags should be treated as literal text (bug 52760)
1312 <p><s.foo>s</p>
1316 ### Special characters
1320 Bare pipe character (bug 52363)
1329 Bare pipe character from a template (bug 52363)
1338 ### <nowiki> test cases
1342 <nowiki> unordered list
1344 <nowiki>* This is not an unordered list item.</nowiki>
1346 <p>* This is not an unordered list item.
1353 <nowiki>Lorem ipsum dolor
1361 <p>Lorem ipsum dolor
1374 :There is not nowiki.
1375 :There is <nowiki>nowiki</nowiki>.
1377 #There is not nowiki.
1378 #There is <nowiki>nowiki</nowiki>.
1380 *There is not nowiki.
1381 *There is <nowiki>nowiki</nowiki>.
1383 <dl><dd>There is not nowiki.</dd>
1384 <dd>There is nowiki.</dd></dl>
1385 <ol><li>There is not nowiki.</li>
1386 <li>There is nowiki.</li></ol>
1387 <ul><li>There is not nowiki.</li>
1388 <li>There is nowiki.</li></ul>
1393 Entities inside <nowiki>
1395 <nowiki><</nowiki>
1402 Entities inside template parameters
1408 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span></p>
1412 Properly escape nowiki when combined with other wiki markup
1416 <p>* </nowiki> tag</p>
1418 <nowiki>* </nowiki></nowiki> tag
1422 T71950: 1. Put nowiki as close to cause as possible, even with non-quote escapable chars
1426 <p>This text: L'<a rel="mw:WikiLink" href="./Foo">Foo</a>
1427 This text: L''<a rel="mw:WikiLink" href="./Foo">Foo</a>
1428 This text: L'''<a rel="mw:WikiLink" href="./Foo">Foo</a>''</p>
1430 This text: L'[[Foo]]
1431 This text: L<nowiki>''</nowiki>[[Foo]]
1432 This text: L<nowiki>'''</nowiki>[[Foo]]<nowiki>''</nowiki>
1435 # This test fails because wikitext whitespace is not normalized before comparing.
1437 T71950: 2. Put nowiki as close to cause as possible, after ' :'
1441 <p>This text : L''<a rel="mw:WikiLink" href="./Foo">Foo</a>
1444 This text : L<nowiki>''</nowiki>[[Foo]]
1447 # This test and the next one are html2wt only as they test that incorrect wikitext
1448 # passed in template arguments gets escaped or wrapped in nowikis where required.
1450 T71482: Use {{!}} instead of nowiki for single pipe in template argument
1454 <p><span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo|bar"}},"i":0}}]}" about="#mwt1"></span>
1455 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo|bar |[["}},"i":0}}]}" about="#mwt2"></p>
1457 {{echo|foo{{!}}bar}}
1458 {{echo|<nowiki>foo|bar |[[</nowiki>}}
1462 T53961: Output correct nowikis in template arguments
1466 <p><span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a [ b"}},"i":0}}]}" about="#mwt1"></span>
1467 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a }} b"}},"i":0}}]}" about="#mwt2"></span>
1468 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a [[ b"}},"i":0}}]}" about="#mwt3"></span>
1469 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a | {{ ]]"}},"i":0}}]}" about="#mwt4"></span>
1470 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a }"}},"i":0}}]}" about="#mwt5"></span></p>
1473 {{echo|a <nowiki>}}</nowiki> b}}
1474 {{echo|<nowiki>a [[ b</nowiki>}}
1475 {{echo|a {{!}} <nowiki>{{ ]]</nowiki>}}
1476 {{echo|a <nowiki>}</nowiki>}}
1483 Comments and Indent-Pre
1485 <!-- comment 1 --> asdf
1487 <!-- comment 1 --> asdf
1490 <!-- comment 1 --> asdf
1491 <!-- comment 2 -->xyz
1493 <!-- comment 1 --> asdf
1494 <!-- comment 2 --> xyz
1550 asdf<!-- comment 1 -->jkl
1560 <!-- foo --> b <!-- bar -->
1574 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1580 Comment semantics and delimiters
1582 <!-- --><!----><!-----><!------>
1588 Comment semantics and delimiters, redux
1590 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1591 -- foo -- funky huh? ... -->
1597 Comment semantics and delimiters: directors cut
1599 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1600 everything starting with < followed by !-- until the first -- and > we see,
1601 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1609 Comment semantics: nesting
1611 <!--<!-- no, we're not going to do anything fancy here -->-->
1618 Comment semantics: unclosed comment at end
1620 <!--This comment will run out to the end of the document
1625 # Bug 58184: document parsoid's behaviour
1627 Suppress comment closing tag in lenient browsers
1629 parsoid=wt2html,html2html
1631 <!-- Browsers--!> think this is closed -->
1635 <!-- Browsers--¡> think this is closed -->
1639 Comment in template title
1648 Comment on its own line post-expand
1660 Comment on its own line post-expand with non-significant whitespace
1672 Multiple comments should still parse as SOL-transparent
1674 parsoid=wt2html,wt2wt
1677 <!--c2--><!--c3--><!--c4-->*b
1688 ### paragraph wrapping tests
1703 Block tag on one line (<div>)
1719 Block tag on one line (<blockquote>)
1721 a <blockquote>foo</blockquote>
1725 a <blockquote>foo</blockquote>
1737 Block tag on both lines (<div>)
1754 Block tag on both lines (<blockquote>)
1756 a <blockquote>foo</blockquote>
1758 b <blockquote>foo</blockquote>
1760 a <blockquote>foo</blockquote>
1761 b <blockquote>foo</blockquote>
1775 Multiple lines without block tags
1799 # Tidy strips out the empty <div> tags. Parsoid doesn't.
1800 # So, we have a separate section for Parsoid. We don't want
1801 # to mimic this stripping behavior in Parsoid. It affects
1802 # editing experience and also requires us to maintain additional
1805 Empty lines between lines with block tags
1843 <div data-parsoid='{"stx":"html"}'></div>
1846 <div data-parsoid='{"stx":"html"}'></div><p>a</p>
1849 <div data-parsoid='{"stx":"html"}'>a</div><p>b</p>
1851 <div data-parsoid='{"stx":"html"}'>b</div><p>d</p>
1854 <div data-parsoid='{"stx":"html"}'>e</div>
1857 ## PHP parser emits output which is broken
1859 Unclosed HTML p-tags should be handled properly
1872 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1877 ## SSS FIXME: I can come up with other scenarios where this doesn't work because
1878 ## of eager output of buffered tokens in the p-wrapper. But, I'm going to ignore
1881 1. P-wrapping should leave sol-transparent tags outside p-tags where possible
1885 a [[Category:A1]] [[Category:A2]]
1890 <link href="Category:A1"/> <link href="Category:A2"/> <link href="Category:A3"/> <link href="Category:A4"/>
1894 2. P-wrapping should leave sol-transparent tags outside p-tags where possible
1900 <link href="Category:A1"/><p>a</p>
1904 ### Preformatted text
1913 And a [[Main Page|link]]
1919 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1924 Tabs don't trigger preformatted text
1928 This is preformatted text.
1934 <pre>This is preformatted text.
1940 Ident preformatting with inline content
1951 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1968 Regression with preformatted in <center>
1982 Bug 52763: Preformatted in <blockquote>
1988 indented cell (no pre-wrapping!)
1998 <p> indented cell (no pre-wrapping!)
2006 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
2023 Bug 15491: <ins>/<del> in blockquote
2026 Foo <del>bar</del> <ins>baz</ins> quux
2030 <p>Foo <del>bar</del> <ins>baz</ins> quux
2036 # Note that the p-wrapping is newline sensitive, which could be
2037 # considered a bug: tidy will wrap only the 'Foo' in the example
2038 # below in a <p> tag. (see comment 23-25 of bug #6200)
2040 Bug 15491: <ins>/<del> in blockquote (2)
2042 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
2045 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
2051 <del>bar</del> <ins>baz</ins> quux</blockquote>
2055 <pre> with attributes (bug 3202)
2057 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
2059 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
2064 <pre> with width attribute (bug 3202)
2066 <pre width="8">Narrow screen goodies</pre>
2068 <pre width="8">Narrow screen goodies</pre>
2073 <pre> with forbidden attribute (bug 3202)
2075 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
2077 <pre width="8">Narrow screen goodies</pre>
2082 Entities inside <pre>
2091 <pre> with forbidden attribute values (bug 3202)
2093 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
2095 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
2100 <nowiki> inside <pre> (bug 13238)
2108 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
2116 <pre><nowiki>Foo</nowiki></pre>
2121 <nowiki> and <pre> preference (first one wins)
2152 </pre> inside nowiki
2154 <nowiki></pre></nowiki>
2160 # Parsoid doesn't strip empty tags, like Tidy does.
2162 Empty pre; pre inside other HTML tags (bug 54946)
2164 parsoid=wt2html,wt2wt
2195 HTML pre followed by indent-pre
2210 <p><pre>foo</pre></p>
2212 <p data-parsoid='{"stx":"html","autoInsertedEnd":true}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
2216 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
2224 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
2234 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
2246 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
2267 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
2271 {{echo| foo}}{{echo| bar}}
2276 {{echo|<!--cmt--> foo}}
2278 <!--cmt-->{{echo| foo}}
2280 {{echo|{{echo| }}bar}}
2298 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
2335 Things that look like <pre> tags aren't treated as such
2337 Barack Obama <President> of the United States
2338 <President></President>
2340 <p>Barack Obama <President> of the United States
2341 <President></President>
2345 ## PHP parser discards the "<pre " string
2347 Handle broken pre-like tags (bug 64025)
2351 {{echo|<pre <pre>x</pre>}}
2353 <table><pre </table>
2356 <table><pre></pre></table>
2359 <pre about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"a":{"<pre":null},"sa":{"<pre":""},"stx":"html","pi":[[{"k":"1","spc":["","","",""]}]]}' data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<pre <pre>x</pre>"}},"i":0}}]}'>x</pre>
2368 Parsoid: handle pre with space after attribute
2372 <pre style="width:50%;" >{{echo|foo}}</pre>
2374 <pre style="width:50%;">{{echo|foo}}</pre>
2377 # TODO / maybe: fix wt2wt for this
2379 Parsoid: Don't paragraph-wrap fosterable content
2405 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
2433 #--------------------------------------------------------------------
2434 # Transclusion parameter whitespace stripping tests
2435 # Behavior is different for positional and named parameters
2436 #--------------------------------------------------------------------
2438 Templates: Strip leading and trailing whitespace from named-param values
2442 {{echo|1= {{echo|b}} }}
2455 <ul><li> d</li></ul>
2460 Templates: Don't strip whitespace from positional-param values
2464 {{echo|{{echo|b}} }}
2496 <ul><li> f</li></ul>
2504 Templates: Handle empty comment-and-ws-only lines correctly
2507 <!--should be ignored-->
2508 <!--should be ignored as well-->
2517 Templates: Handle comments in the target
2520 <!-- should be ignored -->
2523 {{echo<!-- should be ignored -->
2526 {{echo<!-- should be ignored -->|foo}}
2528 {{<!-- should be ignored -->echo|foo}}
2530 <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>
2532 <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>
2534 <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>
2536 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2540 Templates: Handle comments in parameter names (bug 67657)
2543 <!-- should be ignored -->
2547 <!-- should be ignored -->
2550 {{echo|1<!-- should be ignored --> = foo}}
2552 {{echo|<!-- should be ignored -->1 = foo}}
2554 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo","key":{"wt":"1\n<!-- should be ignored -->"}}},"i":0}}]}'>foo</p>
2556 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo","key":{"wt":"<!-- should be ignored -->\n1"}}},"i":0}}]}'>foo</p>
2558 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo","key":{"wt":"1<!-- should be ignored -->"}}},"i":0}}]}'>foo</p>
2560 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo","key":{"wt":"<!-- should be ignored -->1"}}},"i":0}}]}'>foo</p>
2564 Templates: Other wikitext in parameter names (bug 67657)
2568 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"''1''":{"wt":"foo"}},"i":0}}]}'>{{{1}}}</p>
2574 #--------------------------------------------------------------------
2575 # Transclusion parameter escaping tests
2576 #--------------------------------------------------------------------
2578 Templates: Parsoid parameter escaping test 1
2582 {{echo|[foo]|{{echo|[bar]}}}}
2584 <p about="#mwt1" typeof="mw:Transclusion"
2585 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
2589 Parsoid: Pipes in external links in template parameter
2593 {{echo|[{{echo|http://example.com}} link]}}
2595 <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>
2599 Parsoid: pipe in transclusion parameter
2603 {{echo|http://foo.com/a|b}}
2605 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2606 typeof="mw:Transclusion"
2607 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>
2611 Parsoid: Pipe in external link target and content in template parameter
2613 parsoid=html2wt,wt2wt
2615 {{echo|[http://foo.com/a|b a|b]}}
2617 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2618 typeof="mw:Transclusion"
2619 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
2620 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
2624 Parsoid: Pipe in template with nested template in external link target in template parameter (seriously)
2628 {{echo|[{{fullurl:{{FULLPAGENAME}}|action=edit}} bar]}}
2630 <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>
2634 Templates: Don't escape already nowiki-escaped text in template parameters
2636 parsoid=html2wt,wt2wt
2638 {{echo|foo<nowiki>|</nowiki>bar}}
2639 {{echo|<nowiki><div></nowiki>}}
2640 {{echo|<nowiki></nowiki>}}
2642 <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>
2643 <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>
2644 <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>
2650 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
2652 parsoid=html2wt,wt2wt
2654 {{echo|{{echo|1=bar}}}}
2656 <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>
2661 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
2667 <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>
2672 Templates: Preserve blank parameter names
2679 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"":{"wt":"foo"}},"i":0}}]}'>{{{1}}}</p>
2683 ### Parsoid-centric tests for testing RT edge cases for pre
2687 1a. Indent-Pre and Comments
2700 1b. Indent-Pre and Comments
2713 1c. Indent-Pre and Comments
2726 1d. Indent-Pre and Comments
2727 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2740 2a. Indent-Pre and tables
2761 2b. Indent-Pre and tables
2777 2c. Indent-Pre and tables (bug 42252)
2794 2d. Indent-Pre and tables
2811 <tbody><tr><td> b</td></tr>
2816 2e. Indent-Pre and table-line syntax
2829 2f. Indent-pre started by table-line syntax
2848 3a. Indent-Pre and block tags (single-line html)
2852 c <blockquote> foo </blockquote>
2857 c <blockquote> foo </blockquote>
2858 <pre><span> foo </span>
2861 <p>a </p><p data-parsoid='{"stx":"html"}'> foo </p>
2862 <p>b </p><div data-parsoid='{"stx":"html"}'> foo </div>
2863 <p>c </p><blockquote data-parsoid='{"stx":"html"}'> foo </blockquote>
2864 <pre><span> foo </span>
2881 3b. Indent-Pre and block tags (multi-line html)
2886 <pre>a <span>foo</span>
2891 <pre>a <span data-parsoid='{"stx":"html"}'>foo</span></pre>
2892 b <div data-parsoid='{"stx":"html"}'> foo </div>
2902 3c. Indent-Pre and block tags (pre-content on separate line)
2966 4. Indent-Pre and extension tags
2972 a <ul class="gallery mw-gallery-traditional">
2973 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2974 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
2975 <div class="gallerytext">
2982 <ul class="gallery mw-gallery-traditional">
2983 <li class="gallerybox" style="width: 155px">
2984 <div style="width: 155px">
2985 <div class="thumb" style="width: 150px;">
2986 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div>
2988 <div class="gallerytext"></div>
2995 Table wikitext syntax outside wiki-tables
2998 ! not a table heading
3001 | class="foo bar" | baz
3008 ! not a table heading
3011 | class="foo bar" | baz
3020 Render paragraphs when indent-pre is suppressed in blocklevels
3037 4. Multiple spaces at start-of-line
3055 ## NOTE: the leading white-space chars on empty line are significant
3057 5a. White-space in indent-pre
3069 ## NOTE: the leading white-space chars on empty line are significant
3071 5b. White-space in indent-pre
3090 5c. White-space in indent-pre
3103 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
3126 7a. Indent-pre and category links
3128 parsoid=wt2html,wt2wt
3130 [[Category:foo]] <!-- No pre-wrapping -->
3131 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
3133 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
3134 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span><link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
3138 7b. Indent-pre and category links
3140 parsoid=wt2html,wt2wt
3143 [[Category:foo]] {{echo|b}}
3146 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
3147 <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>
3151 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
3155 HTML-pre: 1. embedded newlines
3189 <pre data-parsoid='{"stx":"html"}'>foo</pre>
3191 <pre data-parsoid='{"stx":"html","strippedNL":"\n"}'>
3195 <pre data-parsoid='{"stx":"html"}'>
3200 <pre data-parsoid='{"stx":"html"}'>
3208 HTML-pre: big spaces
3245 <pre data-parsoid='{"stx":"html"}'>
3264 HTML-pre: 2: indented text
3277 HTML-pre: 3: other wikitext
3298 ### Definition lists
3305 <dl><dt> name </dt>
3306 <dd> Definition</dd></dl>
3311 Definition list for indentation only
3315 <dl><dd> Indented text</dd></dl>
3320 Definition list with no space
3325 <dd>Definition</dd></dl>
3330 Definition list with URL link
3332 ; http://example.com/ : definition
3334 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
3335 <dd> definition</dd></dl>
3340 Definition list with bracketed URL link
3342 ;[http://www.example.com/ Example]:Something about it
3344 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
3345 <dd>Something about it</dd></dl>
3350 Definition list with wikilink containing colon
3352 ; [[Help:FAQ]]: The least-read page on Wikipedia
3354 <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>
3355 <dd> The least-read page on Wikipedia</dd></dl>
3359 # At Brion's and JeLuF's insistence... :)
3361 Definition list with news link containing colon
3363 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
3365 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
3366 <dd> This isn't even a real newsgroup!</dd></dl>
3369 <dl><dt> <a rel="mw:ExtLink" href="news:alt.wikipedia.rox" data-parsoid='{"stx":"url"}'>news:alt.wikipedia.rox</a></dt><dd data-parsoid='{"stx":"row"}'> This isn't even a real newsgroup!</dd></dl>
3373 Malformed definition list with colon
3375 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
3377 <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>
3382 Definition lists: colon in external link text
3384 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
3386 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
3387 <dd> OK, I made that up</dd></dl>
3392 Definition lists: colon in HTML attribute
3394 ;<b style="display: inline">bold</b>
3396 <dl><dt><b style="display: inline">bold</b></dt></dl>
3401 Definition lists: self-closed tag
3403 ;one<br/>two : two-line fun
3405 <dl><dt>one<br />two </dt>
3406 <dd> two-line fun</dd></dl>
3411 Bug 11748: Literal closing tags
3415 <dd>test test test test test</dd>
3417 <dd>test test test test test</dd>
3422 <dd>test test test test test</dd>
3424 <dd>test test test test test</dd>
3430 Definition and unordered list using wiki syntax nested in unordered list using html tags.
3433 ; term : description
3438 <dl><dt> term </dt>
3439 <dd> description</dd></dl>
3440 <ul><li> unordered</li></ul>
3447 Definition list with empty definition and following paragraph
3459 Nested definition lists using html syntax
3468 Definition Lists: No nesting: Multiple dd's
3481 Definition Lists: Indentation: Regular
3489 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
3494 Definition Lists: Indentation: Missing 1st level
3500 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
3505 Definition Lists: Indentation: Multi-level indent
3509 <dl><dd><dl><dd><dl><dd>i3</dd></dl></dd></dl></dd></dl>
3514 Definition Lists: Hacky use to indent tables
3521 should be left alone
3523 <dl><dd><dl><dd><table>
3528 </td></tr></table></dd></dl></dd></dl>
3530 should be left alone
3535 Definition Lists: Hacky use to indent tables, with comments (bug 63979)
3543 should be left alone
3546 <dl><dd><dl><dd><table><tr>
3549 </tr></table><!-- bar --></dd></dl></dd></dl>
3551 should be left alone</p>
3555 Definition Lists: Hacky use to indent tables, with comment before table
3561 <dl><dd><dl><dd><!-- foo --><table><tr>
3563 </tr></table></dd></dl></dd></dl>
3568 Definition Lists: Hacky use to indent tables (WS-insensitive)
3577 <dd> <table><tr><td>a</td></tr></table> </dd>
3580 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
3581 ## as an empty dt item. It also ignores all but the last ";" when followed
3582 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
3583 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
3586 ## Ex: ";;t2 ::d2" is transformed into:
3598 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
3599 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
3610 ## All Parsoid only definition list tests have this difference.
3612 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
3613 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
3616 Table / list interaction: indented table with lists in table contents
3631 <ul><li> b</li></ul>
3635 <ul><li> d</li></ul>
3636 </td></tr></table></dd></dl>
3641 Table / list interaction: lists nested in tables nested in indented lists
3664 </td></tr></table></dd></dl>
3671 Definition Lists: Nesting: Multi-level (Parsoid only)
3701 Definition Lists: Nesting: Test 2 (Parsoid only)
3721 Definition Lists: Nesting: Test 3 (Parsoid only)
3749 Definition Lists: Nesting: Test 4
3754 <dl><dd><dl><dd><dl><dt>t3</dt>
3755 <dd>d3</dd></dl></dd></dl></dd></dl>
3760 ## The Parsoid team believes the following three test exposes a
3761 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
3762 ## wrong to close the <dl> after the <dt> containing the <ul>.)
3763 ## It also exposes a "misfeature" in tidy, which doesn't like
3764 ## <dl> tags with a single <dt> child; it converts the <dt> into
3765 ## a <dd> in that case. (Parsoid leaves the <dt> alone!)
3767 Definition Lists: Mixed Lists: Test 1
3773 <dl><dd><dl><dt><ul><li> foo</li>
3774 <li> bar</li></ul></dt></dl>
3775 <dl><dt> baz</dt></dl></dd></dl>
3810 Definition Lists: Mixed Lists: Test 2
3815 <ul><li><dl><dd> d1</dd>
3816 <dd> d2</dd></dl></li></ul>
3822 Definition Lists: Mixed Lists: Test 3
3827 <ul><li><dl><dd><dl><dd><dl><dd> d1</dd>
3828 <dd> d2</dd></dl></dd></dl></dd></dl></li></ul>
3834 Definition Lists: Mixed Lists: Test 4
3839 <ul><li><dl><dt>d1 </dt>
3842 <dd>d4</dd></dl></li></ul>
3848 Definition Lists: Mixed Lists: Test 5
3854 <dl><dd> d2</dd></dl></dd></dl></li></ul>
3860 Definition Lists: Mixed Lists: Test 6
3865 <ol><li><ul><li><dl><dd>d1
3866 <dl><dd><dl><dd> d3</dd></dl></dd></dl></dd></dl></li></ul></li></ol>
3872 Definition Lists: Mixed Lists: Test 7
3877 <dl><dd><ul><li> d1</li>
3878 <li> d2</li></ul></dd></dl>
3884 Definition Lists: Mixed Lists: Test 8
3889 <dl><dd><ul><li> d1</li></ul>
3890 <dl><dd><ul><li> d2</li></ul></dd></dl></dd></dl>
3896 Definition Lists: Mixed Lists: Test 9
3900 <ul><li><dl><dt>foo </dt>
3901 <dd>bar</dd></dl></li></ul>
3907 Definition Lists: Mixed Lists: Test 10
3911 <ul><li><ol><li><dl><dt>foo </dt>
3912 <dd>bar</dd></dl></li></ol></li></ul>
3916 # The Parsoid team disagrees with the PHP parser's seemingly-random
3917 # rules regarding dd/dt on the next two tests. Parsoid is more
3918 # consistent, and recognizes the shared nesting and keeps the
3919 # still-open tags around until the nesting is complete.
3920 # (And tidy again converts <dt> to <dd> before 'bar'.)
3923 Definition Lists: Mixed Lists: Test 11
3928 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt>
3929 <dd><ul><li><dl><dt><dl><dt>bar</dt></dl></dd></dl></li></ul></dd></dl>
3930 <dl><dt>boo </dt>
3931 <dd>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
3986 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3987 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3991 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3992 <dd data-parsoid='{"stx":"row"}'>baz</dd>
4001 # Another case where tidy converts a <dt> to a <dd> (but Parsoid doesn't).
4003 Definition Lists: Weird Ones: Test 1
4005 *#;*::;; foo : bar (who uses this?)
4007 <ul><li><ol><li><dl><dt> foo </dt>
4008 <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>
4027 <dt>bar (who uses this?)</dt>
4059 <dt> foo<span typeof="mw:Placeholder"> </span></dt>
4060 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
4072 Definition Lists: colons occurring in tags
4089 <dt><span>a:b</span></dt>
4107 Definition Lists: colons and tables 1
4119 </td></tr></table></dd></dl>
4123 </td></tr></table></dd></dl>
4127 # Parsoid's output (as documented below) differs from php's in this case.
4128 # This is probably a bug. If we fixup parsoid to match php's output, the
4129 # above test should pass and the below test case can be removed. It is
4130 # unclear which output is more desirable.
4133 Definition Lists: colons and tables 2
4145 </td></tr></table></dd>
4149 </td></tr></table></dd></dl>
4153 Definition Lists: template interaction
4155 ::{{definition_list}}
4158 ::{{definition_list}}
4163 <dl><dd><dl data-parsoid='{}'><dd about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"pi":[[]]}' data-mw='{"parts":[":",{"template":{"target":{"wt":"definition_list","href":"./Template:Definition_list"},"params":{},"i":0}}]}'>one</dd><span about="#mwt1">
4164 </span><dd about="#mwt1">two</dd></dl></dd></dl>
4166 <dl><dd data-parsoid='{}'>one
4167 <dl><dd about="#mwt2" typeof="mw:Transclusion" data-parsoid='{"pi":[[]]}' data-mw='{"parts":["::",{"template":{"target":{"wt":"definition_list","href":"./Template:Definition_list"},"params":{},"i":0}},"\n:::two\n:::three"]}'>one</dd><span about="#mwt2">
4168 </span><dd about="#mwt2">two
4170 <dd>three</dd></dl></dd>
4171 <dd data-parsoid='{}'>four</dd></dl></dd></dl>
4179 External links: non-bracketed
4181 Non-bracketed: http://example.com
4183 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4187 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4189 External links: numbered
4191 Numbered: [http://example.com]
4192 Numbered: [http://example.net]
4193 Numbered: [http://example.com]
4195 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
4196 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
4197 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
4200 <p>Numbered: <a rel="mw:ExtLink" href="http://example.com"></a>
4201 Numbered: <a rel="mw:ExtLink" href="http://example.net"></a>
4202 Numbered: <a rel="mw:ExtLink" href="http://example.com"></a></p>
4206 External links: specified text
4208 Specified text: [http://example.com link]
4210 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
4215 External links: trail
4217 Linktrails should not work for external links: [http://example.com link]s
4219 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
4224 External links: dollar sign in URL
4226 http://example.com/1$2345
4228 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
4232 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4234 External links: dollar sign in URL (autonumber)
4236 [http://example.com/1$2345]
4238 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
4241 <p><a rel="mw:ExtLink" href="http://example.com/1$2345"></a></p>
4245 External links: open square bracket forbidden in URL (bug 4377)
4247 parsoid=wt2html,wt2wt,html2html
4249 http://example.com/1[2345
4251 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
4254 <p><a rel="mw:ExtLink" href="http://example.com/1">http://example.com/1</a>[2345</p>
4258 External links: open square bracket forbidden in URL (named) (bug 4377)
4260 parsoid=wt2html,html2html
4262 [http://example.com/1[2345]
4264 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
4267 <p><a rel="mw:ExtLink" href="http://example.com/1">[2345</a></p>
4270 # parsoid adds a space before the link name
4272 External links: open square bracket forbidden in URL (named) (bug 4377)
4275 [http://example.com/1 [2345]
4277 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
4282 External links: nowiki in URL link text (bug 6230)
4284 [http://example.com/ <nowiki>''example site''</nowiki>]
4286 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
4291 External links: newline forbidden in text (bug 6230 regression check)
4293 [http://example.com/ first
4296 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
4302 External links: Pipe char between url and text
4304 [http://example.com | link]
4306 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
4311 External links: protocol-relative URL in brackets
4313 [//example.com/ Test]
4315 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
4319 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4321 External links: protocol-relative URL in brackets without text
4325 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
4328 <p><a rel="mw:ExtLink" href="//example.com"></a></p>
4332 External links: protocol-relative URL in free text is left alone
4336 <p>//example.com/Foo
4341 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
4343 foo//example.com/Foo
4345 <p>foo//example.com/Foo
4350 External links: with no contents
4352 [http://en.wikipedia.org/wiki/Foo]
4354 [[wikipedia:Foo|Bar]]
4356 [[wikipedia:Foo|<span>Bar</span>]]
4358 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/wiki/Foo">[1]</a>
4359 </p><p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo">Bar</a>
4360 </p><p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo"><span>Bar</span></a>
4363 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo"></a></p>
4364 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" title="wikipedia:Foo">Bar</a></p>
4365 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" title="wikipedia:Foo"><span>Bar</span></a></p>
4369 External links: Free with trailing punctuation
4379 http://example.com/url_with_(brackets)
4380 (http://example.com/url_without_brackets)
4381 http://example.com/url_with_entity
4382 http://example.com/url_with_entity 
4383 http://example.com/url_with_entity 
4384 http://example.com/url_with_entity<
4385 http://example.com/url_with_entity<
4386 http://example.com/url_with_entity<
4388 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>,
4389 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>;
4390 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>\
4391 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>.
4392 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>:
4393 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>!
4394 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>?
4395 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4396 <a rel="nofollow" class="external free" href="http://example.com/url_with_(brackets)">http://example.com/url_with_(brackets)</a>
4397 (<a rel="nofollow" class="external free" href="http://example.com/url_without_brackets">http://example.com/url_without_brackets</a>)
4398 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4399 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4400 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4401 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity">http://example.com/url_with_entity</a><
4402 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity%3C">http://example.com/url_with_entity%3C</a>
4403 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity%3C">http://example.com/url_with_entity%3C</a>
4406 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>,
4407 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>;
4408 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>\
4409 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>.
4410 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>:
4411 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>!
4412 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>?
4413 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)
4414 <a rel="mw:ExtLink" href="http://example.com/url_with_(brackets)">http://example.com/url_with_(brackets)</a>
4415 (<a rel="mw:ExtLink" href="http://example.com/url_without_brackets">http://example.com/url_without_brackets</a>)
4416 <a rel="mw:ExtLink" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4417 <a rel="mw:ExtLink" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4418 <a rel="mw:ExtLink" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4419 <a rel="mw:ExtLink" href="http://example.com/url_with_entity">http://example.com/url_with_entity</a><span typeof="mw:Entity"><</span>
4420 <a rel="mw:ExtLink" href="http://example.com/url_with_entity<">http://example.com/url_with_entity<</a>
4421 <a rel="mw:ExtLink" href="http://example.com/url_with_entity<">http://example.com/url_with_entity<</a></p>
4425 External links: No preceding word characters allowed (bug 65278)
4427 NOPEhttp://example.com
4428 N0http://example.com
4429 ok:http://example.com
4430 ok-http://example.com
4432 <p>NOPEhttp://example.com
4433 N0http://example.com
4434 ok:<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4435 ok-<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4442 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4444 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
4449 External image from https
4451 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4453 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
4458 External image (when not allowed)
4460 wgAllowExternalImages=0
4462 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4464 <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>
4469 Link to non-http image, no img tag
4471 Link to non-http image, no img tag: ftp://example.com/test.jpg
4473 <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>
4478 External links: terminating separator
4480 Terminating separator: http://example.com/thing,
4482 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
4487 External links: intervening separator
4489 Intervening separator: http://example.com/1,2,3
4491 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
4496 External links: old bug with URL in query
4498 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
4500 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
4505 External links: old URL-in-URL bug, mixed protocols
4507 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
4509 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
4514 External links: URL in text
4516 URL in text: [http://example.com http://example.com]
4518 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4523 External links: Clickable images
4525 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
4527 <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>
4530 <p>ja-style clickable images: <a rel="mw:ExtLink" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" data-parsoid='{"type":"extlink"}'/></a></p>
4534 External links: raw ampersand
4536 Old & use: http://x&y
4538 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
4543 External links: encoded ampersand
4545 Old & use: http://x&y
4547 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
4550 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y">http://x&y</a></p>
4554 External links: encoded equals (bug 6102)
4556 http://example.com/?foo=bar
4558 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
4561 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a></p>
4565 ## Note that parsoid doesn't explicit mark autonumbered links, nor
4566 ## does it number them. As discussed in bug 53505, we can identify
4567 ## autonumbered links via CSS.
4571 External links: [raw ampersand]
4573 Old & use: [http://x&y]
4575 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
4578 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
4581 # note that parsoid html is identical to [raw ampersand] case; so html2wt
4582 # mode will return the [raw ampersand] wikitext
4584 External links: [encoded ampersand]
4586 parsoid=wt2html,wt2wt,html2html
4588 Old & use: [http://x&y]
4590 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
4593 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
4597 External links: [raw equals]
4599 [http://example.com/?foo=bar]
4601 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
4604 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
4607 # note that parsoid html is identical to [raw equals] case; so html2wt
4608 # mode will return the [raw equals] wikitext
4610 External links: [encoded equals] (bug 6102)
4612 parsoid=wt2html,wt2wt,html2html
4614 [http://example.com/?foo=bar]
4616 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
4619 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
4622 # xxx parsoid strips the IDN character, so the round-trip tests will
4623 # obviously fail and are disabled. --cscott
4625 External links: [IDN ignored character reference in hostname; strip it right off]
4627 parsoid=wt2html,wt2wt,html2html
4629 [http://e‌xample.com/]
4631 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
4634 <p><a rel="mw:ExtLink" href="http://example.com/"></a></p>
4637 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
4638 # Where an external link could easily circumvent the sanitization of the text of
4639 # a link like this (where an IDN-ignore character is in the URL somewhere), this
4640 # test demands a higher standard. That's a bit strange.
4644 # http://example.com -> [http://example.com|http://example.com]
4645 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
4647 # The first example is sanitized, but the second is not. Any security benefits
4648 # from this production are trivial to circumvent. Either remove this test and
4649 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
4650 # the test accordingly.
4654 # xxx parsoid strips the IDN character, so the round-trip tests will
4655 # obviously fail and are disabled. --cscott
4657 External links: IDN ignored character reference in hostname; strip it right off
4659 parsoid=wt2html,html2html
4661 http://e‌xample.com/
4663 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
4666 <p><a rel="mw:ExtLink" href="http://example.com/">http://example.com/</a></p>
4670 External links: www.jpeg.org (bug 554)
4674 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
4678 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4680 External links: URL within URL (original bug 2)
4682 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
4684 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
4687 <p><a rel="mw:ExtLink" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp"></a></p>
4691 BUG 361: URL inside bracketed URL
4693 [http://www.example.com/foo http://www.example.com/bar]
4695 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
4700 BUG 361: URL within URL, not bracketed
4702 http://www.example.com/foo?=http://www.example.com/bar
4704 <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>
4709 BUG 289: ">"-token in URL-tail
4711 http://www.example.com/<hello>
4713 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
4718 BUG 289: literal ">"-token in URL-tail
4720 http://www.example.com/<b>html</b>
4722 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
4725 <p><a rel="mw:ExtLink" href="http://www.example.com/" data-parsoid='{"stx":"url"}'>http://www.example.com/</a><b data-parsoid='{"stx":"html"}'>html</b></p>
4729 BUG 289: ">"-token in bracketed URL
4731 [http://www.example.com/<hello> stuff]
4733 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
4738 BUG 289: literal ">"-token in bracketed URL
4740 [http://www.example.com/<b>html</b> stuff]
4742 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
4747 BUG 289: literal double quote at end of URL
4749 http://www.example.com/"hello"
4751 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
4756 BUG 289: literal double quote in bracketed URL
4758 [http://www.example.com/"hello" stuff]
4760 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
4765 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
4767 [http://www.example.com test]
4769 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
4774 External links: link text with spaces
4776 [http://www.example.com a b c]
4777 [http://www.example.com ''a'' ''b'']
4779 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
4780 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
4785 External links: wiki links within external link (Bug 3695)
4787 [http://example.com [[wikilink]] embedded in ext link]
4789 <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>
4792 <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>
4796 BUG 787: Links with one slash after the url protocol are invalid
4800 [http:/example.com title]
4802 <p>http:/example.com
4803 </p><p>[http:/example.com title]
4808 Bracketed external links with template-generated invalid target
4810 [{{echo|http:/example.com}} title]
4812 <p>[http:/example.com title]
4817 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
4819 ''[http://example.com text'']
4820 [http://example.com '''text]'''
4821 ''Something [http://example.com in italic'']
4822 ''Something [http://example.com mixed''''', even bold]'''
4823 '''''Now [http://example.com both''''']
4825 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
4826 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
4827 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
4828 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
4829 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
4835 Bug 4781: %26 in URL
4837 http://www.example.com/?title=AT%26T
4839 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
4842 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a></p>
4845 # According to http://www.w3.org/TR/2011/WD-html5-20110525/Overview.html#parsing-urls a plain
4846 # % is actually legal in HTML5. Any change in output would need testing though.
4848 Bug 4781, 5267: %25 in URL
4850 http://www.example.com/?title=100%25_Bran
4852 <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>
4855 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a></p>
4859 Bug 4781, 5267: %28, %29 in URL
4861 http://www.example.com/?title=Ben-Hur_%281959_film%29
4863 <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>
4866 <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>
4871 Bug 4781: %26 in autonumber URL
4873 [http://www.example.com/?title=AT%26T]
4875 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
4878 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T"></a></p>
4882 Bug 4781, 5267: %26 in autonumber URL
4884 [http://www.example.com/?title=100%25_Bran]
4886 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
4889 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran"></a></p>
4893 Bug 4781, 5267: %28, %29 in autonumber URL
4895 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
4897 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
4900 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29"></a></p>
4905 Bug 4781: %26 in bracketed URL
4907 [http://www.example.com/?title=AT%26T link]
4909 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
4912 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">link</a></p>
4916 Bug 4781, 5267: %25 in bracketed URL
4918 [http://www.example.com/?title=100%25_Bran link]
4920 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
4925 Bug 4781, 5267: %28, %29 in bracketed URL
4927 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
4929 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
4932 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a></p>
4936 External link containing a period in the anchor. (bug 63947)
4938 [//foo.org/bar#baz. bang]
4940 [//foo.org/bar. bang]
4942 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4943 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4946 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4947 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4951 External link containing a single quote. (bug 63947)
4955 [//foo.org/bar'baz bang]
4957 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4958 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4961 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4962 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4967 External link containing a period in the anchor. (bug 63947)
4969 [//foo.org/bar#baz. bang]
4971 [//foo.org/bar. bang]
4973 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4974 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4977 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4978 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4982 External link containing a single quote. (bug 63947)
4986 [//foo.org/bar'baz bang]
4988 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4989 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4992 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4993 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4998 External link containing double-single-quotes in text '' (bug 4598 sanity check)
5000 Some [http://example.com/ pretty ''italics'' and stuff]!
5002 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
5007 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
5009 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
5011 <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>
5016 External link containing double-single-quotes with no space separating the url from text in italics
5018 [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]].]
5020 <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>
5023 <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>
5025 <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>
5029 External link with comments in link text
5031 [http://www.google.com Google <!-- comment -->]
5033 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
5038 URL-encoding in URL functions (single parameter)
5040 {{localurl:Some page|amp=&}}
5042 <p>/index.php?title=Some_page&amp=&
5047 URL-encoding in URL functions (multiple parameters)
5049 {{localurl:Some page|q=?&=&}}
5051 <p>/index.php?title=Some_page&q=?&amp=&
5058 http://example.com/index.php?foozoid%5B%5D=bar
5060 http://example.com/index.php?foozoid[]=bar
5062 <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>
5063 </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>
5066 <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>
5068 <p><a rel="mw:ExtLink" href="http://example.com/index.php?foozoid[]=bar">http://example.com/index.php?foozoid[]=bar</a></p>
5072 IPv6 urls (bug 21261)
5076 http://[2404:130:0:1000::187:2]/index.php
5078 <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>
5083 Non-extlinks in brackets
5092 [{{echo|foo}} ''bar'']
5093 [{{echo|foo}}l's] errand
5094 [{{echo|foo}}l's errand]
5096 [url=http://example.com]
5109 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
5114 Percent encoding in external links
5116 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
5118 <p><a rel="nofollow" class="external text" href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a>
5121 <p><a rel="mw:ExtLink"
5122 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
5126 Use url link syntax for links where the content is equal the link target
5130 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
5133 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
5137 Parenthesis in external links, especially URL links
5141 http://example.com/test)
5143 http://example.com/(test)
5145 http://example.com/((test)
5147 (http://example.com/(test))
5149 (http://example.com/(test)))))
5151 http://example.com/a)b
5153 [http://example.com) foo]
5155 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
5156 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
5157 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</a>
5158 </p><p><a rel="nofollow" class="external free" href="http://example.com/((test)">http://example.com/((test)</a>
5159 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test))">http://example.com/(test))</a>
5160 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test)))))">http://example.com/(test)))))</a>
5161 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
5162 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
5165 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
5166 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
5167 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</a></p>
5168 <p><a rel="mw:ExtLink" href="http://example.com/((test)">http://example.com/((test)</a></p>
5169 <p>(<a rel="mw:ExtLink" href="http://example.com/(test))">http://example.com/(test))</a></p>
5170 <p>(<a rel="mw:ExtLink" href="http://example.com/(test)))))">http://example.com/(test)))))</a></p>
5171 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
5172 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
5176 Parenthesis in external links, w/ transclusion or comment
5178 (http://example.com/{{echo|hi}})
5180 (http://example.com<!-- hi -->)
5182 <p>(<a rel="nofollow" class="external free" href="http://example.com/hi">http://example.com/hi</a>)
5183 </p><p>(<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
5186 <p>(<a 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}}"}}' data-mw='{"attribs":[[{"txt":"href"},{"html":"http://example.com/<span about=\"#mwt1\" typeof=\"mw:Transclusion\" 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]}\" 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}}]}\">hi</span>"}]]}'>http://example.com/hi</a>)</p>
5188 <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>
5192 Replace invalid link targets when serializing
5196 <a rel="mw:WikiLink" href="./]] foo [[bar">Manual</a>
5198 [[MediaWiki:Badtitletext|Manual]]
5208 Normal text. '''Bold text.''' Normal text. ''Italic text.''
5210 Normal text. '''''Bold italic text.''''' Normal text.
5212 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
5213 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
5218 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
5219 # parser strips. The wikitext contains just the first half of the bold
5222 Unclosed and unmatched quotes
5224 '''''Bold italic text '''with bold deactivated''' in between.'''''
5226 '''''Bold italic text ''with italic deactivated'' in between.'''''
5230 ..spanning two paragraphs (should not work).'''
5232 '''Bold tag left open
5234 ''Italic tag left open
5238 <!-- Unmatching number of opening, closing tags: -->
5239 '''This year''''s election ''should'' beat '''last year''''s.
5241 ''Tom'''s car is bigger than ''Susan'''s.
5243 Plain ''italic'''s plain
5245 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
5246 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
5247 </p><p><b>Bold text..</b>
5248 </p><p>..spanning two paragraphs (should not work).
5249 </p><p><b>Bold tag left open</b>
5250 </p><p><i>Italic tag left open</i>
5252 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
5253 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
5254 </p><p>Plain <i>italic'</i>s plain
5257 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
5258 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
5259 </p><p><b>Bold text..</b>
5260 </p><p>..spanning two paragraphs (should not work).<b></b>
5261 </p><p><b>Bold tag left open</b>
5262 </p><p><i>Italic tag left open</i>
5264 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
5265 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
5266 </p><p>Plain <i>italic'</i>s plain
5273 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
5276 # This should not produce <table></table> as <table><tr><td></td></tr></table>
5277 # is the bare minimum required by the spec, see:
5278 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
5279 # Parsoid team replies: empty table tags are legal in HTML5
5281 A table with no data.
5294 A table with stray table end tags on start tag line (wt2html)
5298 {|style="color: red;"|}
5300 {|style="color: red;" |}
5304 {|style="color: red;"|} id="foo"
5308 {|style="color: red;" |} id="foo"
5312 <table style="color: red;"></table>
5314 <table style="color: red;">
5320 <table style="color: red;" id="foo">
5326 <table style="color: red;" id="foo">
5335 A table with no data (take 2)
5343 # A table with nothing but a caption is invalid XHTML, we might want to render
5344 # this as <p>caption</p>
5345 # Parsoid team replies: table with only a caption is legal in HTML5
5347 A table with nothing but a caption
5355 </caption><tr><td></td></tr></table>
5358 <table><caption> caption</caption></table>
5362 A table with caption with default-spaced attributes and a table row
5365 |+ style="color: red;" | caption1
5371 <caption style="color: red;"> caption1
5380 A table with captions with non-default spaced attributes and a table row
5383 |+style="color: red;"|caption2
5384 |+ style="color: red;"| caption3
5390 <caption style="color: red;">caption2
5392 <caption style="color: red;"> caption3
5401 Table td-cell syntax variations
5405 | foo bar foo || baz
5406 | style='color:red;' | baz
5407 | style='color:red;' || baz
5414 <td> foo bar foo </td>
5417 <td style="color:red;"> baz
5419 <td> style='color:red;' </td>
5447 Simple table but with multiple dashes for row wikitext
5465 Multiplication table
5467 {| border="1" cellpadding="2"
5468 |+Multiplication table
5470 ! × !! 1 !! 2 !! 3
5488 <table border="1" cellpadding="2">
5489 <caption>Multiplication table
5536 Accept "||" in table headings
5551 Accept "!!" in table data
5565 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'> Foo!! </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'></td></tr>
5570 Accept "||" in indented table headings
5580 </th></tr></table></dd></dl>
5585 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
5602 Accept "| !" at start of line in tables (ignore !-attribute)
5606 | !style="color:red" | bar
5618 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 +/-
5622 |style='color:red;'|+1
5623 |style='color:blue;'|-1
5635 <td style="color:red;">+1
5637 <td style="color:blue;">-1
5661 |rowspan=2| Cell 2, row 1 (and 2)
5672 <td rowspan="2"> Cell 2, row 1 (and 2)
5690 {| bgcolor=#ABCDEF border=2
5695 |the original table again
5703 <table bgcolor="#ABCDEF" border="2">
5711 <td>the original table again
5717 Invalid attributes in table cell (bug 1830)
5730 # The "|}" to close the table is missing from the input, so parsoid's
5731 # *2wt modes will fail.
5733 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
5735 parsoid=wt2html,html2html
5738 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
5742 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
5743 <td>]" onmouseover="alert(document.cookie)">test
5751 <td><a rel="mw:ExtLink" href="ftp://|x||"></a>" onmouseover="alert(document.cookie)">test</td></tr></tbody></table>
5754 # FIXME: The php output is broken.
5756 ! and || in td attributes should not be parsed as <th>/<td>
5759 | style="color: red !important;" data-contrived="put this here ||" | foo
5764 <td> style="color: red !important;" data-contrived="put this here </td>
5770 <tbody><tr><td style="color: red !important;" data-contrived="put this here ||" data-parsoid='{"autoInsertedEnd":true}'> foo</td></tr>
5775 Indented table markup mixed with indented pre content (proposed in bug 6200)
5780 Text that should be rendered preformatted
5788 <pre>Text that should be rendered preformatted
5797 1. Template-generated table cell attributes and cell content
5802 | <!--foo--> <!--bar--> <!--baz--> {{table_attribs}}
5803 |align=center {{table_attribs}}
5804 | <!--foo--> align=center <!--bar--> {{table_attribs}}
5809 <td style="color:red;">Foo
5811 <td style="color:red;">Foo
5813 <td style="color:red;">Foo
5815 <td align="center" style="color:red;">Foo
5817 <td align="center" style="color:red;">Foo
5823 2. Template-generated table cell attributes and cell content
5826 |{{table_attribs_2}}
5831 <td style="color:red;">Foo
5839 <tbody><tr><td about="#mwt1" typeof="mw:Transclusion" style="color:red;" data-mw='{"parts":["|",{"template":{"target":{"wt":"table_attribs_2","href":"./Template:Table_attribs_2"},"params":{},"i":0}}]}'>Foo</td>
5840 <td about="#mwt1">Bar</td><td about="#mwt1">Baz</td></tr>
5845 3. Template-generated table cell attributes and cell content
5848 !align=center {{table_header_cells}}
5850 |align=center {{table_cells}}
5855 <th align="center" style="color:red;">Foo</th>
5856 <th style="color:red;"><i>Bar</i></th>
5857 <th style="color:brown;"><i>Foo</i> and Baz
5860 <td align="center" style="color:red;">Foo</td>
5861 <td style="color:red;"><i>Bar</i></td>
5862 <td style="color:brown;"><i>Foo</i> and Baz
5867 <tbody><tr><th align="center" style="color:red;" typeof="mw:Transclusion" about="#mwt1" data-mw='{"parts":["!align=center ",{"template":{"target":{"wt":"table_header_cells","href":"./Template:Table_header_cells"},"params":{},"i":0}}]}'>Foo</th><th about="#mwt1" style="color:red;"><i about="#mwt1">Bar</i></th><th about="#mwt1" style="color:brown;"><i about="#mwt1">Foo</i> and Baz</th></tr><tr>
5868 <td align="center" style="color:red;" typeof="mw:Transclusion" about="#mwt1" data-mw='{"parts":["|align=center ",{"template":{"target":{"wt":"table_cells","href":"./Template:Table_cells"},"params":{},"i":0}}]}'>Foo</td><td about="#mwt1" style="color:red;"><i about="#mwt1">Bar</i></td><td about="#mwt1" style="color:brown;"><i about="#mwt1">Foo</i> and Baz</td></tr>
5873 Table with row followed by newlines and table heading
5891 Table with empty line following the start tag
5908 # FIXME: Preserve the attribute properly (with an empty string as value) in
5909 # the PHP parser. Parsoid implements the behavior below.
5911 Table attributes with empty value
5921 </td></tr></tbody></table>
5926 Wikitext table with a lot of comments
5949 Wikitext table with double-line table cell
5966 Table cell with a single comment
5983 Table-cell after a comment-only-empty-line
6000 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>a</td>
6002 <!--c2--><td data-parsoid='{"autoInsertedEnd":true}'> b</td></tr>
6008 Build table with {{!}}
6010 {{{!}} class="wikitable"
6013 {{!}}- style="color:red;"
6014 {{!}} data {{!}}{{!}} style="color:red;" {{!}} second data
6017 <table class="wikitable">
6023 <tr style="color:red;">
6025 <td style="color:red;"> second data
6031 Build table with pipe as data
6033 {| class="wikitable"
6036 |- style="color:red;"
6037 | data || style="color:red;" | second data
6039 | style="color:red;" | data with | || style="color:red;" | second data with |
6041 || data with | ||| second data with |
6044 <table class="wikitable">
6050 <tr style="color:red;">
6052 <td style="color:red;"> second data
6055 <td style="color:red;"> data with | </td>
6056 <td style="color:red;"> second data with |
6059 <td> data with | </td>
6060 <td> second data with |
6066 Build table with wikilink
6068 {| class="wikitable"
6069 ! header || second header
6070 |- style="color:red;"
6071 | data [[Main Page|linktext]] || second data [[Main Page|linktext]]
6073 | data || second data [[Main Page|link|text with pipe]]
6076 <table class="wikitable">
6081 <tr style="color:red;">
6082 <td> data <a href="/wiki/Main_Page" title="Main Page">linktext</a> </td>
6083 <td> second data <a href="/wiki/Main_Page" title="Main Page">linktext</a>
6087 <td> second data <a href="/wiki/Main_Page" title="Main Page">link|text with pipe</a>
6092 # The expected HTML structure in this test is debatable. The PHP parser does
6093 # not parse this kind of table at all. The main focus for Parsoid is on
6094 # round-tripping, so this output is ok for now. TODO: revisit!
6096 Wikitext table with html-syntax row
6106 <td>foo</td></tr></tbody></table>
6109 ## Note that Parsoid output differs from PHP and PHP+tidy here.
6110 ## The lack of <tr> tags in the PHP output is arguably a bug in the
6111 ## PHP parser, which tidy then compounds by fostering the content
6112 ## entirely out of the table. Parsoid recognizes the table context
6113 ## and generates <tr> and <td> wrappers as needed. Hopefully nobody
6114 ## depends on PHP's treatment of broken table markup!
6116 Implicit <td> after a |-
6118 parsoid=wt2html,html2html
6138 # Again, Parsoid adds implicit <td>s here, PHP and Tidy strip the b out.
6140 <pre> tags should be recognized in an explicit <td> context, but not in an implicit <td> context
6142 parsoid=wt2html,html2html
6175 <tr><td><pre>a</pre></td></tr>
6176 <tr><td> b</td></tr>
6181 # PHP + Tidy strips the list out of the table; Parsoid wraps it.
6182 # Parsoid generates the missing <td>, so wt2wt won't succeed.
6184 Lists should be recognized in an implicit <td> context
6186 parsoid=wt2html,html2html
6213 Table cells not properly parsed in an implicit-td context
6217 {{table_attribs_4}} || a || b
6222 <td style="background-color:#DC241f;" width="10px"></td>
6229 <tbody><tr data-parsoid='{"startTagSrc":"|-","autoInsertedEnd":true}'>
6230 <td style="background-color:#DC241f;" width="10px" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"autoInsertedEnd":true,"pi":[[]]}' data-mw='{"parts":["",{"template":{"target":{"wt":"table_attribs_4","href":"./Template:Table_attribs_4"},"params":{},"i":0}}," "]}'> </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'> a </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'> b</td></tr>
6235 Parsoid: Round-trip tables directly followed by content (bug 51219)
6237 parsoid=wt2html,wt2wt
6262 Parsoid: Default to a newline after tables in new content (bug 51219)
6267 <tr><td>foo</td></tr></tbody></table> bar
6269 <tr><td>baz</td></tr></tbody></table><b>quux</b>
6274 <nowiki> </nowiki>bar
6282 Parsoid: newline inducing block nodes don't suppress <nowiki>
6294 Parsoid: Row-syntax table headings followed by comment & table cells
6296 parsoid=wt2html,wt2wt
6300 <!-- foo --> || baz || quux
6314 <tbody><tr><th> foo </th><th> bar
6315 <!-- foo --> </th><td> baz </td><td> quux</td></tr>
6320 # PHP throws away the (semi-broken) "foo" class here; Parsoid
6323 Parsoid: Recover better from broken table attributes
6343 <p>foo</p></td></tr>
6348 Strip unsupported table tags
6396 Testing serialization after deletion of table cells
6407 | id="x" |c1 {{!}}{{!}}{{!}}c2 |||c3
6420 Plain link, capitalized
6424 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6429 Plain link, uncapitalized
6433 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
6440 [[Main Page|The Main Page]]
6442 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
6447 Piped link with comment in link text
6449 [[Main Page|The Main<!--front--> Page]]
6451 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
6456 Piped link with multiple pipe characters in link text
6458 [[Main Page||The|Main|Page|]]
6460 <p><a href="/wiki/Main_Page" title="Main Page">|The|Main|Page|</a>
6463 <p><a rel="mw:WikiLink" href="Main_Page" title="Main Page">|The|Main|Page|</a></p>
6471 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
6476 Broken link with fragment
6478 [[Zigzagzogzagzig#zug]]
6480 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
6485 Special page link with fragment
6487 [[Special:Version#anchor]]
6489 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
6494 Nonexistent special page link with fragment
6496 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
6498 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
6505 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
6507 <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>
6514 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
6516 <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>!!!
6527 Bug 43661: Piped links with identical prefixes
6529 [[prefixed article|prefixed articles with spaces]]
6531 [[prefixed article|prefixed articlesaoeu]]
6533 [[Main Page|Main Page test]]
6535 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
6536 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
6537 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
6543 Link with HTML entity in suffix / tail
6545 [[Main Page]]", [[Main Page]]a
6547 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
6550 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a><span typeof="mw:Entity" data-parsoid='{"src":"&quot;","srcContent":"\""}'>"</span>, <a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a><span typeof="mw:Entity" data-parsoid='{"src":"&#97;","srcContent":"a"}'>a</span></p>
6554 Link with 3 brackets
6563 Link with 4 brackets
6567 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
6572 Piped link with 3 brackets
6574 [[[main page|the main page]]]
6576 <p>[[[main page|the main page]]]
6581 Piped link with extlink-like text
6584 [[Main Page|This is a [bar]]]
6586 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
6587 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
6590 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page" data-parsoid='{"stx":"piped"}'>[bar]</a>
6591 <a rel="mw:WikiLink" href="./Main_Page" title="Main Page" data-parsoid='{"stx":"piped"}'>This is a [bar]</a></p>
6595 Link with multiple pipes
6597 [[Main Page|The|Main|Page]]
6599 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
6603 # Note that parsoid does not munge anchor text; all non-space
6604 # characters are valid in HTML5 ids.
6606 Anchor containing a #. (bug 63430)
6608 [[Main Page#And#Link]]
6610 <p><a href="/wiki/Main_Page#And.23Link" title="Main Page">Main Page#And#Link</a>
6613 <p><a rel="mw:WikiLink" href="./Main_Page#And%23Link" title="Main Page">Main Page#And#Link</a></p>
6619 [[Talk:Parser testing]], [[Meta:Disclaimers]]
6621 <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>
6626 Link with space in namespace
6628 [[User talk:Foo bar]]
6630 <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>
6635 MemoryAlpha:AlphaTest
6637 This is an article in the MemoryAlpha namespace
6638 (which shadows the memoryalpha interwiki link).
6642 Namespace takes precedence over interwiki link (bug 51680)
6644 [[MemoryAlpha:AlphaTest]]
6646 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
6650 # The previous test doesn't work correctly in html2*, due to not recognizing the
6651 # link as an internal one. This one checks for the correct behavior.
6653 Link to namespace preferred over interwiki with correct rel attribute
6655 parsoid=html2wt,html2html
6657 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a></p>
6659 [[MemoryAlpha:AlphaTest]]
6663 Piped link to namespace
6665 [[Meta:Disclaimers|The disclaimers]]
6667 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
6674 [[Usually caused by a typo (oops}]]
6676 <p>[[Usually caused by a typo (oops}]]
6683 Just a test of an article title containing a percent.
6687 Link containing % (not as a hex sequence)
6691 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
6694 <p><a rel="mw:WikiLink" href="./7%25_Solution" title="7% Solution">7% Solution</a></p>
6697 # note that the parsoid HTML is identical to the previous test output,
6698 # so the previous test ensures that the html2wt mode will generate the
6699 # "not as a hex sequence" wikitext.
6701 Link containing % as a single hex sequence interpreted to char
6703 parsoid=wt2wt,wt2html,html2html
6707 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
6710 <p><a rel="mw:WikiLink" href="./7%25_Solution" title="7% Solution">7% Solution</a></p>
6714 Link containing % as a double hex sequence interpreted to hex sequence
6718 <p>[[7%2525 Solution]]
6722 # note that parsoid does not munge anchor text; all non-space
6723 # characters are valid in HTML5 anchors.
6725 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
6726 Example for such a section: == < ==
6728 [[%23%3c]][[%23%3e]]
6730 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
6733 <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>
6737 Link containing "<#" and ">#" as a hex sequences
6739 [[%3c%23]][[%3e%23]]
6741 <p>[[%3c%23]][[%3e%23]]
6746 Link containing an equals sign
6748 [[Special:BookSources/isbn=4-00-026157-6]]
6750 <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>
6753 <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>
6759 Just a test of an article title containing a tilde.
6762 # note that links containing signatures, like [[Foo~~~~]], are
6763 # massaged by the pre-save transform (PST) and so the tildes are never
6764 # seen by the parser.
6766 Link containing a tilde
6770 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
6773 <p><a rel="mw:WikiLink" href="./Foo~bar" title="Foo~bar">Foo~bar</a></p>
6777 Link containing double-single-quotes '' (bug 4598)
6779 [[Lista d''e paise d''o munno]]
6781 <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>
6784 <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>
6788 Link containing double-single-quotes '' in text (bug 4598 sanity check)
6790 Some [[Link|pretty ''italics'' and stuff]]!
6792 <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>!
6795 <p>Some <a rel="mw:WikiLink" href="Link" title="Link">pretty <i>italics</i> and stuff</a>!</p>
6799 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
6801 ''Some [[Link|pretty ''italics'' and stuff]]!''
6803 <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>
6808 Link with double quotes in title part (literal) and alternate part (interpreted)
6810 [[File:Denys_Savchenko_''Pentecoste''.jpg]]
6814 [[''Pentecoste''|Pentecoste]]
6816 [[''Pentecoste''|''Pentecoste'']]
6818 <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>
6819 </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>
6820 </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>
6821 </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>
6824 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="./File:Denys_Savchenko_''Pentecoste''.jpg"><img resource="./File:Denys_Savchenko_''Pentecoste''.jpg" src="./Special:FilePath/Denys_Savchenko_''Pentecoste''.jpg" height="220" width="220"/></a></span></p>
6825 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''">''Pentecoste''</a></p>
6826 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''">Pentecoste</a></p>
6827 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''"><i>Pentecoste</i></a></p>
6831 Broken image links with HTML captions (bug 39700)
6833 [[File:Nonexistent|<script></script>]]
6834 [[File:Nonexistent|100x100px|<script></script>]]
6835 [[File:Nonexistent|<]]
6836 [[File:Nonexistent|a<i>b</i>c]]
6838 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
6839 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
6840 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
6841 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
6844 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"<script></script>"}'><a href="./File:Nonexistent"><img resource="./File:Nonexistent" src="./Special:FilePath/Nonexistent" height="220" width="220"/></a></span>
6845 <span typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"<script></script>"}'><a href="./File:Nonexistent" data-parsoid='{"a":{"href":"./File:Nonexistent"},"sa":{}}'><img resource="./File:Nonexistent" src="./Special:FilePath/Nonexistent" height="100" width="100"/></a></span>
6846 <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"&lt;"}'><a href="./File:Nonexistent"><img resource="./File:Nonexistent" src="./Special:FilePath/Nonexistent" height="220" width="220"/></a></span>
6847 <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"a<i>b</i>c"}'><a href="./File:Nonexistent"><img resource="./File:Nonexistent" src="./Special:FilePath/Nonexistent" height="220" width="220"/></a></span></p>
6853 [[http://www.example.com]]
6855 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
6858 <p>[<a rel="mw:ExtLink" href="http://www.example.com"></a>]</p>
6862 Plain link to URL with link text
6864 [[http://www.example.com Link text]]
6866 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
6871 Plain link to protocol-relative URL
6873 [[//www.example.com]]
6875 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
6878 <p>[<a rel="mw:ExtLink" href="//www.example.com"></a>]</p>
6882 Plain link to protocol-relative URL with link text
6884 [[//www.example.com Link text]]
6886 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
6891 Plain link to page with question mark in title
6897 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
6898 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
6903 # I'm fairly sure the expected result here is wrong.
6904 # We want these to be URL links, not pseudo-pages with URLs for titles....
6905 # However the current output is also pretty screwy.
6908 # I'm changing it to match the current output--it arguably makes more
6909 # sense in the light of the test above. Old expected result was:
6910 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
6912 # But I think this test is bordering on "garbage in, garbage out" anyway.
6917 Piped link to URL: [[http://www.example.com|an example URL]]
6919 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
6922 <p>Piped link to URL: [<a rel="mw:ExtLink" href="http://www.example.com|an">example URL</a>]</p>
6926 BUG 2: [[page|http://url/]] should link to page, not http://url/
6928 [[Main Page|http://url/]]
6930 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
6933 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">http://url/</a></p>
6936 # Parsoid does not mark self-links, by design.
6938 BUG 337: Escaped self-links should be bold
6942 [[Bug462]] [[Bug462]]
6944 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
6947 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong></p>
6949 <p><a rel="mw:WikiLink" href="./Bug462" title="Bug462">Bug462</a> <a rel="mw:WikiLink" href="./Bug462" title="Bug462">Bug462</a></p>
6953 Self-link to section should not be bold
6957 [[Main Page#section]]
6959 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
6970 Self-link to numeric title
6976 <p><strong class="selflink">0</strong>
6981 Link to numeric-equivalent title
6987 <p><a href="/wiki/00" title="00">00</a>
6992 <nowiki> inside a link
6994 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
6996 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
7001 Non-breaking spaces in title
7003 [[ Main Page ]]
7005 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
7010 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
7016 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
7021 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
7027 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
7032 Internal link with en linktrail: no apostrophes (bug 27473)
7038 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
7043 Internal link with ca linktrail with apostrophes (bug 27473)
7049 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
7054 Internal link with kaa linktrail with apostrophes (bug 27473)
7060 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
7065 Link with multiple ":" in a subpage-supporting namespace (bug 63636)
7067 [[User:Foo/Test/63636:Bar|Test]]
7069 <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>
7072 <p><a rel="mw:WikiLink" href="./User:Foo/Test/63636:Bar" title="User:Foo/Test/63636:Bar">Test</a></p>
7076 Purely hash wikilink
7078 title=[[User:test/123]]
7082 <p><a href="#a">b</a>
7085 <p><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>
7089 1. Interaction of linktrail and template encapsulation
7095 <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>
7099 2. Interaction of linktrail and template encapsulation
7103 {{echo|Some [[Fool]]}}s
7105 <p><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>
7109 3. Interaction of linktrail and template encapsulation
7113 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
7115 <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>bold and foolish</b></p>
7125 Internal link with is link prefix
7129 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
7131 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
7142 Internal link with is link trail and link prefix
7146 [[mótmælendatrú|xxx]]ar
7148 mótmælenda[[söfnuður]]
7149 mótmælenda[[söfnuður|söfnuðir]]
7150 mótmælenda[[söfnuður|söfnuðir]]xxx
7152 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
7153 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
7154 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
7155 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
7156 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
7161 Parsoid link trail escaping
7163 parsoid=html2wt,html2html
7165 <p><a rel="mw:WikiLink" href="Apple" title="Apple">apple</a>s</p>
7171 Parsoid link prefix escaping
7174 parsoid=html2wt,html2html
7176 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður" title="Söfnuður">söfnuður</a></p>
7178 Aðrir mótmælenda<nowiki/>[[söfnuður]]
7182 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
7190 [http://wp.org ''foo'']
7192 <p><a href="/wiki/Foo" title="Foo"> bar</a>
7193 </p><p><a href="/wiki/Foo" title="Foo"> <i>bar</i></a>
7194 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
7195 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
7200 Parsoid: Scoped parsing should handle mixed transclusions and plain text
7204 [[Foo|{{echo|a}} b {{echo|c}}]]
7206 <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>
7210 Link with angle bracket after anchor
7214 <p><a href="/wiki/Foo#.3Cbar.3E" title="Foo">Foo#<bar></a>
7217 <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>
7221 ### Interwiki links (see maintenance/interwiki.sql)
7225 Inline interwiki link
7227 parsoid=wt2html,wt2wt,html2html
7229 [[MeatBall:SoftSecurity]]
7231 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
7234 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a></p>
7238 Inline interwiki link with empty title (bug 2372)
7240 parsoid=wt2html,wt2wt,html2html
7244 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
7247 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?" title="meatball:">MeatBall:</a></p>
7251 Interwiki link encoding conversion (bug 1636)
7253 *[[Wikipedia:ro:Olteniţa]]
7254 *[[Wikipedia:ro:Olteniţa]]
7256 <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>
7257 <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>
7261 <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>
7262 <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>
7267 Interwiki link with fragment (bug 2130)
7269 [[MeatBall:SoftSecurity#foo]]
7271 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
7275 # Ideally the wikipedia: prefix here should be proto-relative too
7276 # [CSA]: this is kind of a bogus test, as the PHP parser test doesn't
7277 # define the 'en' prefix, and originally the test used 'wikipedia',
7278 # which isn't a localinterwiki prefix hence the links to the 'en:Foo'
7281 Different interwiki prefixes mapping to the same URL
7289 [[:wikipedia:Foo|Foo]]
7291 [[wikipedia:en:Foo]]
7293 [[:wikipedia:en:Foo]]
7297 <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}' title="en:Foo">en:Foo</a></p>
7299 <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}' title="en:Foo">Foo</a></p>
7301 <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}' title="wikipedia:Foo">wikipedia:Foo</a></p>
7303 <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}' title="wikipedia:Foo">Foo</a></p>
7305 <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}' title="wikipedia:en:Foo">wikipedia:en:Foo</a></p>
7307 <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}' title="wikipedia:en:Foo">wikipedia:en:Foo</a></p>
7309 <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}' title="wikipedia:Foo"> wikiPEdia :Foo</a></p>
7313 Interwiki links that cannot be represented in wiki syntax
7316 [[meatball:ok#foo|ok with fragment]]
7317 [[meatball:ok_as_well?|ok ending with ? mark]]
7318 [http://de.wikipedia.org/wiki/Foo?action=history has query]
7319 [http://de.wikipedia.org/wiki/#foo is just fragment]
7322 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?ok" class="extiw" title="meatball:ok">meatball:ok</a>
7323 <a href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo" class="extiw" title="meatball:ok">ok with fragment</a>
7324 <a href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F" class="extiw" title="meatball:ok as well?">ok ending with ? mark</a>
7325 <a rel="nofollow" class="external text" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
7326 <a rel="nofollow" class="external text" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a>
7329 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok" title="meatball:ok">meatball:ok</a>
7330 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo" title="meatball:ok">ok with fragment</a>
7331 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well?" title="meatball:ok as well?">ok ending with ? mark</a>
7332 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
7333 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
7337 Interwiki links: trail
7339 [[wikipedia:Foo|Ba]]r
7341 <p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo">Bar</a>
7344 <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,"tail":"r"}' title="wikipedia:Foo">Bar</a></p>
7348 Local interwiki link
7350 parsoid=wt2html,wt2wt,html2html
7352 [[local:Template:Foo]]
7354 <p><a href="/wiki/Template:Foo" title="Template:Foo">local:Template:Foo</a>
7357 <p><a rel="mw:WikiLink" href="./Template:Foo" title="Template:Foo">local:Template:Foo</a></p>
7360 # Parsoid does not mark self-links, by design.
7362 Local interwiki link: self-link to current page
7365 parsoid=wt2html,wt2wt,html2html
7369 <p><strong class="selflink">local:Main Page</strong>
7372 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">local:Main Page</a></p>
7376 Local interwiki link: prefix only (bug 64167)
7378 parsoid=wt2html,wt2wt,html2html
7382 <p><a href="/wiki/Main_Page" title="Main Page">local:</a>
7385 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">local:</a></p>
7389 Local interwiki link: with additional interwiki prefix (bug 61357)
7391 parsoid=wt2html,wt2wt,html2html
7393 [[local:meatball:Hello]]
7395 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?Hello" class="extiw" title="meatball:Hello">local:meatball:Hello</a>
7398 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?Hello" title="meatball:Hello">local:meatball:Hello</a></p>
7402 Multiple local interwiki link prefixes
7404 [[local:local:local:local:mi:local:Foo]]
7406 parsoid=wt2html,wt2wt,html2html
7408 <p><a href="/wiki/Foo" title="Foo">local:local:local:local:mi:local:Foo</a>
7411 <p><a rel="mw:WikiLink" href="./Foo" title="Foo">local:local:local:local:mi:local:Foo</a></p>
7415 ### Interlanguage links
7416 ### Language links (so that searching for '### language' matches..)
7422 parsoid=wt2html,wt2wt,html2html
7430 <p>Blah blah blah</p>
7431 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7435 Interlanguage link with spacing
7437 parsoid=wt2html,wt2wt,html2html
7445 <p>Blah blah blah</p>
7446 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7450 Double interlanguage link
7452 parsoid=wt2html,wt2wt,html2html
7461 <p>Blah blah blah</p>
7462 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish"/>
7463 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7467 Interlanguage link variations
7469 parsoid=wt2html,wt2wt,html2html
7480 <p>Blah blah blah</p>
7481 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish" />
7482 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese" />
7483 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Foo_bar" />
7484 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Foo_bar" />
7488 Interlanguage link, with prefix links
7498 <p>Blah blah blah</p>
7499 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7503 Double interlanguage link, with prefix links (bug 8897)
7514 <p>Blah blah blah</p>
7515 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish"/>
7516 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7520 "Extra" interlanguage links (bug 32189 / gerrit 111390)
7528 <p>Blah blah blah</p>
7529 <link rel="mw:PageProp/Language" title="Multilingual" href="http://wikisource.org/wiki/Article"/>
7533 Parsoid-specific test: Wikilinks with should RT properly
7539 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
7544 Parsoid bug 53221: Wikilinks should be properly entity-escaped
7548 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
7549 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
7551 He&nbsp;llo [[Foo|He&nbsp;llo]]
7553 He&nbsp;llo [[He&nbsp;llo]]
7557 Parsoid: handle constructor well
7563 <p><a href="/index.php?title=Constructor&action=edit&redlink=1" class="new" title="Constructor (page does not exist)">constructor</a>
7564 </p><p><a href="/index.php?title=Constructor:foo&action=edit&redlink=1" class="new" title="Constructor:foo (page does not exist)">constructor:foo</a>
7567 <p><a rel="mw:WikiLink" href="./Constructor" title="Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
7569 <p><a rel="mw:WikiLink" href="./Foo" title="Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
7578 # Note that `ko` isn't a known interlanguage prefix
7580 Parsoid: recognize interlanguage links without a target page
7590 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/"/>
7592 <p><a rel="mw:WikiLink" href="./Ko:" title="Ko:">ko:</a></p>
7595 # Note that `ko` isn't a known interwiki prefix
7597 Parsoid: recognize interwiki links without a target page
7599 parsoid=wt2html,wt2wt,html2html
7605 <p><a href="http://es.wikipedia.org/wiki/" class="extiw" title="es:">es:</a>
7606 </p><p><a href="/wiki/Ko:" title="Ko:">ko:</a>
7609 <p><a rel="mw:ExtLink" href="http://es.wikipedia.org/wiki/" title="es:">es:</a></p>
7610 <p><a rel="mw:WikiLink" href="./Ko:" title="Ko:">ko:</a></p>
7614 Handle interwiki links pointing to the current wiki as plain wiki links (bug 45209)
7618 <p><a href="/wiki/Foo" title="Foo">mi:Foo</a>
7621 <p><a rel="mw:WikiLink" href="./Foo" title="Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"mi:Foo"}}'>mi:Foo</a></p>
7625 Interlanguage link with preceding local interwiki link (bug 68085)
7627 parsoid=wt2html,wt2wt,html2html
7630 [[local:es:Spanish]]
7633 <a href="http://es.wikipedia.org/wiki/Spanish" class="extiw" title="es:Spanish">local:es:Spanish</a>
7637 <a rel="mw:ExtLink" href="http://es.wikipedia.org/wiki/Spanish" title="es:Spanish">local:es:Spanish</a></p>
7641 Looks like an interlanguage link, but is actually a local interwiki
7643 parsoid=wt2html,wt2wt,html2html
7649 <a href="/wiki/Template:Foo" title="Template:Foo">mi:Template:Foo</a>
7653 <a rel="mw:WikiLink" href="Template:Foo" title="Template:Foo">mi:Template:Foo</a></p>
7657 ### Redirects, Parsoid-only
7660 1. Simple redirect to page
7664 #REDIRECT [[Main Page]]
7666 <link rel="mw:PageProp/redirect" href="./Main_Page">
7669 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
7671 2. Other redirect variants
7673 parsoid=wt2html,wt2wt
7675 #REDIRECT [[Main_Page]]
7676 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
7678 <link rel="mw:PageProp/redirect" href="./Main_Page"><link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
7684 parsoid=wt2html,wt2wt
7689 <li>REDIRECT [[]]</li></ol>
7693 Optional colon in #REDIRECT
7695 # the colon is archaic syntax. we support it for wt2html, but we
7696 # don't care that it roundtrips back to the modern syntax.
7697 parsoid=wt2html,html2html
7699 #REDIRECT:[[Main Page]]
7701 <link rel="mw:PageProp/redirect" href="./Main_Page">
7705 Whitespace in #REDIRECT with optional colon
7707 # the colon and gratuitous whitespace is archaic syntax. we support
7708 # it for wt2html, but we don't care that it roundtrips back to the
7709 # modern syntax (without extra whitespace)
7710 parsoid=wt2html,html2html
7717 <link rel="mw:PageProp/redirect" href="./Main_Page">
7721 Piped link in #REDIRECT
7723 # content after piped link is ignored. we support this syntax,
7724 # but don't care that the piped link is lost when we roundtrip this.
7727 #REDIRECT [[Main Page|bar]]
7729 <link rel="mw:PageProp/redirect" href="./Main_Page">
7733 Redirect to category
7737 #REDIRECT [[Category:Foo]]
7739 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7743 Redirect to category with URL encoding
7747 #REDIRECT [[Category%3AFoo]]
7749 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7753 Redirect to category page
7755 parsoid=wt2html,html2html
7757 #REDIRECT [[:Category:Foo]]
7759 <p><a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Category:Foo</a></p>
7763 Redirect to image page (1)
7767 #REDIRECT [[File:Wiki.png]]
7769 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7773 Redirect to image page (2)
7777 #REDIRECT [[Image:Wiki.png]]
7779 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7783 Redirect to language
7787 #REDIRECT [[en:File:Wiki.png]]
7789 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7793 Redirect to interwiki
7797 #REDIRECT [[meatball:File:Wiki.png]]
7799 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7803 Non-English #REDIRECT
7808 #TILVÍSUN [[Main Page]]
7810 <link rel="mw:PageProp/redirect" href="./Main_Page">
7818 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
7838 Broken br tag sanitization
7846 # TODO: Fix html2html mode (bug 51055)!
7848 Parsoid: Broken br tag recognition
7861 Incorrecly removing closing slashes from correctly formed XHTML
7863 <br style="clear:both;" />
7865 <p><br style="clear:both;" />
7870 Failing to transform badly formed HTML into correct XHTML
7872 <br style="clear: left;">
7873 <br style="clear: right;">
7874 <br style="clear: both;">
7876 <p><br style="clear: left;" />
7877 <br style="clear: right;" />
7878 <br style="clear: both;" />
7882 ## FIXME: Is Parsoid's acceptance of self-closing html-tags
7883 ## a feature or a bug? See https://phabricator.wikimedia.org/T76962
7885 Handling html with a div self-closing tag
7894 <p><div title />
7898 <p><div title=bar />
7899 <div title=bar/>
7901 <div title="bar/"></div>
7905 <div title="" data-parsoid='{"stx":"html","selfClose":true}'></div>
7906 <div title="" data-parsoid='{"stx":"html","selfClose":true}'></div>
7907 <div title="" data-parsoid='{"stx":"html","selfClose":true,"brokenHTMLTag":true}'></div>
7908 <div title="bar" data-parsoid='{"stx":"html","selfClose":true}'></div>
7909 <div title="bar" data-parsoid='{"stx":"html","selfClose":true}'></div>
7910 <div title="bar/" data-parsoid='{"stx":"html","autoInsertedEnd":true}'></div>
7914 Handling html with a br self-closing tag
7923 <p><br title="title" />
7924 <br title="title" />
7941 Horizontal ruler (should it add that extra space?)
7956 Horizontal ruler -- 4+ dashes render hr
7965 Horizontal ruler -- eats additional dashes on the same line
7974 Horizontal ruler -- does not collapse dashes on consecutive lines
7985 Horizontal ruler -- <4 dashes render as plain text
7994 Horizontal ruler -- Supports content following dashes on same line
8006 ### Block-level elements
8015 <ul><li>Common list</li>
8017 <li>item 3</li></ul>
8028 <ol><li>Numbered list</li>
8030 <li> item 3</li></ol>
8044 ***#Number on level 4
8046 **#Number on level 3
8047 **#Number on level 3
8051 #** Level 3, but ordered
8054 <ol><li> with numbers</li></ol>
8055 <ul><li> and bullets</li></ul>
8056 <ol><li> and numbers</li></ol></li>
8058 <ul><li>bullet level 2
8059 <ul><li>bullet level 3
8060 <ol><li>Number on level 4</li></ol></li></ul></li>
8062 <ol><li>Number on level 3</li>
8063 <li>Number on level 3</li></ol></li></ul>
8064 <ol><li>number level 2</li></ol></li>
8066 <ul><li><ul><li> Level 3</li></ul></li></ul></li></ul>
8067 <ol><li><ul><li><ul><li> Level 3, but ordered</li></ul></li></ul></li></ol>
8078 <ul><li>bar</li></ul></li></ul>
8088 <ul><li><ul><li>foo</li></ul></li>
8094 Nested lists 3 (first element empty)
8100 <ul><li>bar</li></ul></li></ul>
8105 Nested lists 4 (first element empty)
8110 <ul><li><ul><li></li></ul></li>
8116 Nested lists 5 (both elements empty)
8121 <ul><li><ul><li></li></ul></li>
8127 Nested lists 6 (both elements empty)
8133 <ul><li></li></ul></li></ul>
8138 Nested lists 7 (skip initial nesting levels)
8142 <ul><li><ul><li><ul><li> foo</li></ul></li></ul></li></ul>
8147 Nested lists 8 (multiple nesting transitions)
8155 <ul><li><ul><li> bar</li></ul></li>
8156 <li> baz</li></ul></li>
8162 Nested lists 9 (extension interaction)
8168 <ul><li data-parsoid='{}'><ol class="references" typeof="mw:Extension/references" about="#mwt2" data-parsoid='{}' data-mw='{"name":"references","attrs":{}}'></ol></li></ul>
8172 1. Lists with start-of-line-transparent tokens before bullets: Comments
8185 2. Lists with start-of-line-transparent tokens before bullets: Template close
8190 <ul><li>foo bar</li>
8196 List items are not parsed correctly following a <pre> block (bug 785)
8202 <ul><li> <pre>foo</pre></li>
8203 <li> <pre>bar</pre></li>
8209 List items from template
8220 * notSOL{{inner list}}
8223 <ul><li> item 1</li>
8224 <li> item 2</li></ul>
8225 <ul><li> item 0</li>
8227 <li> item 2</li></ul>
8228 <ul><li> item 0</li>
8231 <li> item 2</li></ul>
8236 List interrupted by empty line or heading
8244 <ul><li> foo</li></ul>
8245 <ul><li><ul><li> bar</li></ul></li></ul>
8246 <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>
8247 <ul><li> Another list item</li></ul>
8252 Multiple list tags generated by templates
8273 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
8276 <!--This line will NOT split the list-->
8278 <!--This line will NOT split the list either-->
8280 <!--foo--> <!----> <!--This line NOT split the list either-->
8291 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
8294 <!--This line will NOT split the list-->
8296 <!--This line will NOT split the list either-->
8298 <!--foo--> <!----> <!--This line NOT split the list
8311 (The PHP parser relies on Tidy for the hack)
8313 parsoid=wt2html,wt2wt
8317 * {{echo|<li>templated li-hack}}
8318 * <!--foo--> <li> unsupported li-hack with preceding comments
8321 <li><li>not a li-hack
8328 <li>templated li-hack</li>
8329 <li>unsupported li-hack with preceding comments</li>
8332 <li>not a li-hack</li>
8337 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
8364 Parsoid: Test of whitespace serialization with Templated bullets
8371 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
8375 # ------------------------------------------------------------------------
8376 # The next set of tests are about Parsoid's ability to handle badly nested
8377 # tags (parse, minimize scope of fixup, and roundtrip back)
8378 # ------------------------------------------------------------------------
8381 Unbalanced closing block tags break a list
8382 (php parser relies on Tidy to fix up)
8400 # Parsoid fails this test, but it might be tricky to support properly.
8403 Unbalanced closing non-block tags don't break a list
8404 (php parser relies on Tidy to fix up)
8411 <li><span>a</span></li>
8412 <li><span>b</span></li>
8426 Unclosed formatting tags that straddle lists are closed and reopened
8427 (php parser relies on Tidy to fix up)
8429 parsoid=wt2html,wt2wt,html2html
8439 <ol><li> <s> a</s></li>
8440 <li><s> b </s></li></ol>
8445 1. List embedded in a formatting tag
8452 <li><small>foo</small></li>
8462 ## Ugly Parsoid output here
8463 ## Not sure what the right output is.
8465 2. List embedded in a formatting tag
8472 <li><small>a</small></li>
8473 <li><small>b</small></li>
8480 <li><small>b</small></li>
8484 # Ugly Parsoid and PHP parser output here
8485 # Not sure if we want to make this a test!
8488 ## 3. Unclosed formatting tags in list elements
8494 ## <li><small>a</small></li>
8495 ## <li><small><small>b</small></small></li>
8499 ## <li><small>a</small></li>
8501 ## <li><small>b</small></li>
8505 # This is a bug in the PHP parser + tidy combination.
8506 # (The </tr> tag gets parsed as text and html-escaped by PHP,
8507 # and then fostered out of the table by tidy.)
8508 # We believe the Parsoid output to be correct.
8510 Table with missing opening <tr> tag
8512 parsoid=wt2html,wt2wt
8530 # Note that the current date is hard-coded as
8531 # 1970-01-01T00:02:03Z (a Thursday)
8532 # when running parser tests. The timezone is also fixed to GMT, so
8533 # local date will be identical to current date.
8536 Magic Word: {{CURRENTDAY}}
8545 Magic Word: {{CURRENTDAY2}}
8554 Magic Word: {{CURRENTDAYNAME}}
8563 Magic Word: {{CURRENTDOW}}
8572 Magic Word: {{CURRENTMONTH}}
8581 Magic Word: {{CURRENTMONTH1}}
8590 Magic Word: {{CURRENTMONTHABBREV}}
8592 {{CURRENTMONTHABBREV}}
8599 Magic Word: {{CURRENTMONTHNAME}}
8601 {{CURRENTMONTHNAME}}
8608 Magic Word: {{CURRENTMONTHNAMEGEN}}
8610 {{CURRENTMONTHNAMEGEN}}
8617 Magic Word: {{CURRENTTIME}}
8626 Magic Word: {{CURRENTHOUR}}
8635 Magic Word: {{CURRENTWEEK}} (@bug 4594)
8644 Magic Word: {{CURRENTYEAR}}
8653 Magic Word: {{CURRENTTIMESTAMP}}
8655 {{CURRENTTIMESTAMP}}
8662 Magic Words LOCAL (UTC)
8666 * {{LOCALMONTHNAME}}
8667 * {{LOCALMONTHNAMEGEN}}
8668 * {{LOCALMONTHABBREV}}
8677 * {{LOCALTIMESTAMP}}
8692 <li> 19700101000203</li></ul>
8697 Magic Word: {{FULLPAGENAME}}
8699 title=[[User:Ævar Arnfjörð Bjarmason]]
8703 <p>User:Ævar Arnfjörð Bjarmason
8708 Magic Word: {{FULLPAGENAMEE}}
8710 title=[[User:Ævar Arnfjörð Bjarmason]]
8714 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8719 Magic Word: {{TALKSPACE}}
8721 title=[[User:Ævar Arnfjörð Bjarmason]]
8730 Magic Word: {{TALKSPACE}}, same namespace
8732 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8741 Magic Word: {{TALKSPACE}}, main namespace
8743 title=[[Parser Test]]
8752 Magic Word: {{TALKSPACEE}}
8754 title=[[User:Ævar Arnfjörð Bjarmason]]
8763 Magic Word: {{SUBJECTSPACE}}
8765 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8774 Magic Word: {{SUBJECTSPACE}}, same namespace
8776 title=[[User:Ævar Arnfjörð Bjarmason]]
8785 Magic Word: {{SUBJECTSPACE}}, main namespace
8787 title=[[Parser Test]]
8795 Magic Word: {{SUBJECTSPACEE}}
8797 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8806 Magic Word: {{NAMESPACE}}
8808 title=[[User:Ævar Arnfjörð Bjarmason]]
8817 Magic Word: {{NAMESPACEE}}
8819 title=[[User:Ævar Arnfjörð Bjarmason]]
8828 Magic Word: {{NAMESPACENUMBER}}
8830 title=[[User:Ævar Arnfjörð Bjarmason]]
8839 Magic Word: {{SUBPAGENAME}}
8841 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8850 Magic Word: {{SUBPAGENAMEE}}
8852 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8861 Magic Word: {{ROOTPAGENAME}}
8863 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8867 <p>Ævar Arnfjörð Bjarmason
8872 Magic Word: {{ROOTPAGENAMEE}}
8874 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8878 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8883 Magic Word: {{BASEPAGENAME}}
8885 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8889 <p>Ævar Arnfjörð Bjarmason
8894 Magic Word: {{BASEPAGENAMEE}}
8896 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8900 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8905 Magic Word: {{TALKPAGENAME}}
8907 title=[[User:Ævar Arnfjörð Bjarmason]]
8911 <p>User talk:Ævar Arnfjörð Bjarmason
8916 Magic Word: {{TALKPAGENAMEE}}
8918 title=[[User:Ævar Arnfjörð Bjarmason]]
8922 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8927 Magic Word: {{SUBJECTPAGENAME}}
8929 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8933 <p>User:Ævar Arnfjörð Bjarmason
8938 Magic Word: {{SUBJECTPAGENAMEE}}
8940 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8942 {{SUBJECTPAGENAMEE}}
8944 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8949 Magic Word: {{NUMBEROFFILES}}
8958 Magic Word: {{PAGENAME}}
8960 title=[[User:Ævar Arnfjörð Bjarmason]]
8964 <p>Ævar Arnfjörð Bjarmason
8969 Magic Word: {{PAGENAME}} with metacharacters
8971 title=[['foo & bar = baz']]
8975 <p><i>'foo & bar = baz'</i>
8978 <p><i>'foo & bar = baz'</i></p>
8982 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
8984 title=[[*RFC 1234 http://example.com/]]
8988 <p>*RFC 1234 http://example.com/
8991 <p>*RFC 1234 http://example.com/</p>
8995 Magic Word: {{PAGENAMEE}}
8997 title=[[User:Ævar Arnfjörð Bjarmason]]
9001 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
9006 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
9008 title=[[*RFC 1234 http://example.com/]]
9012 <p>*RFC_1234_http://example.com/
9015 <p>*RFC_1234_http://example.com/</p>
9019 Magic Word: {{REVISIONID}}
9028 Magic Word: {{SCRIPTPATH}}
9037 Magic Word: {{STYLEPATH}}
9046 Magic Word: {{SERVER}}
9050 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
9055 Magic Word: {{SERVERNAME}}
9064 Magic Word: {{SITENAME}}
9073 Case-sensitive magic words, when cased differently, should just be template transclusions
9080 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
9081 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
9082 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
9083 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
9088 Case-insensitive magic words should still work with weird casing.
9098 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
9102 # From plwiki:PLOS_ONE
9104 Parsoid: Page property magic word with magic word contents
9106 {{DISPLAYTITLE:''{{PAGENAME}}''}}
9108 <meta property="mw:PageProp/displaytitle" content="Main Page" about="#mwt2" typeof="mw:ExpandedAttrs" data-mw='{"attribs":[[{"txt":"content"},{"html":"<i data-parsoid=\"{&quot;dsr&quot;:[15,31,2,2]}\"><span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[]],&quot;dsr&quot;:[17,29,null,null]}\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;PAGENAME&quot;,&quot;function&quot;:&quot;pagename&quot;},&quot;params&quot;:{},&quot;i&quot;:0}}]}\">Main Page</span></i>"}]]}'/>
9112 Parsoid: Template-generated DISPLAYTITLE
9114 {{{{echo|DISPLAYTITLE}}:Foo}}
9116 <meta property="mw:PageProp/displaytitle" content="Foo" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"dsr":[0,29,null,null],"pi":[[]]}' data-mw='{"parts":[{"template":{"target":{"wt":"{{echo|DISPLAYTITLE}}:Foo"},"params":{},"i":0}}]}'/>
9120 Namespace 1 {{ns:1}}
9129 Namespace 1 {{ns:01}}
9138 Namespace 0 {{ns:0}} (bug 4783)
9146 Namespace 0 {{ns:00}} (bug 4783)
9154 Namespace -1 {{ns:-1}}
9163 Namespace User {{ns:User}}
9172 Namespace User talk {{ns:User_talk}}
9181 Namespace User talk {{ns:uSeR tAlK}}
9190 Namespace File {{ns:File}}
9199 Namespace File {{ns:Image}}
9208 Namespace (lang=de) Benutzer {{ns:User}}
9219 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
9225 <p>Benutzer Diskussion
9233 {{urlencode:hi world?!}}
9234 {{urlencode:hi world?!|WIKI}}
9235 {{urlencode:hi world?!|PATH}}
9236 {{urlencode:hi world?!|QUERY}}
9246 Magic Word: prioritize type info over data-parsoid
9250 <meta property="mw:PageProp/forcetoc" data-parsoid='{"magicSrc":"__NOTOC__"}'/>
9256 Magic Word: serialize on separate line (parsoid)
9258 parsoid=wt2wt,html2wt
9264 foo<meta property="mw:PageProp/notoc"/>bar
9268 Magic Word: rt non-english wikis
9275 <meta property="mw:PageProp/noeditsection" data-parsoid='{"magicSrc":"__NOEDITSECTION__"}'/>
9282 Magic links: internal link to RFC (bug 479)
9286 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
9291 Magic links: RFC (bug 479)
9295 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
9300 Magic links: RFC (bug 65278)
9302 This is RFC 822 but thisRFC 822 is not RFC 822linked.
9304 <p>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a> but thisRFC 822 is not RFC 822linked.
9309 Magic links: RFC (w/ non-newline whitespace, bug 28950/29025)
9311 RFC      822
9315 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
9322 Magic links: ISBN (bug 1937)
9326 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
9331 Magic links: ISBN (bug 65278)
9333 This is ISBN 978-0-316-09811-3 but thisISBN 978-0-316-09811-3 is not ISBN 978-0-316-09811-3linked.
9335 <p>This is <a href="/wiki/Special:BookSources/9780316098113" class="internal mw-magiclink-isbn">ISBN 978-0-316-09811-3</a> but thisISBN 978-0-316-09811-3 is not ISBN 978-0-316-09811-3linked.
9338 <p>This is <a href="./Special:BookSources/9780316098113" rel="mw:ExtLink">ISBN 978-0-316-09811-3</a> but thisISBN 978-0-316-09811-3 is not ISBN 978-0-316-09811-3linked.</p>
9342 Magic links: ISBN (w/ non-newline whitespace, bug 28950/29025)
9344 ISBN      978 0 316 09811 3
9350 <p><a href="/wiki/Special:BookSources/9780316098113" class="internal mw-magiclink-isbn">ISBN 978 0 316 09811 3</a>
9359 Magic links: PMID incorrectly converts space to underscore
9363 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
9368 Magic links: PMID (bug 65278)
9370 This is PMID 1234 but thisPMID 1234 is not PMID 1234linked.
9372 <p>This is <a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a> but thisPMID 1234 is not PMID 1234linked.
9377 Magic links: PMID (w/ non-newline whitespace, bug 28950/29025)
9379 PMID      1234
9383 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
9394 Nonexistent template
9396 {{thistemplatedoesnotexist}}
9398 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
9403 Template with invalid target containing tags
9405 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
9407 <p>{{a<b>b</b>|foo|a=b|a = b}}
9412 Template with invalid target containing unclosed tag
9414 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
9416 <p>{{a<b>|foo|a=b|a = b}}</b>
9421 Template with invalid target containing wikilink
9425 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
9428 <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>
9432 Template with just whitespace in it, bug #68421
9436 <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>
9442 This is a test template
9450 <p>This is a test template
9455 Template with explicit namespace
9459 <p>This is a test template
9467 This is a test template with parameter {{{param}}}
9473 {{paramtest|param=foo}}
9475 <p>This is a test template with parameter foo
9480 Template:paramtestnum
9486 Template unnamed parameter
9488 {{paramtestnum|Main Page|the main page}}
9490 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
9495 Template:templatesimple
9501 Template:templateredirect
9503 #redirect [[Template:templatesimple]]
9507 Template:templateasargtestnum
9513 Template:templateasargtest
9515 {{template{{{templ}}}}}
9519 Template:templateasargtest2
9525 Template with template name as unnamed argument
9527 {{templateasargtestnum|templatesimple}}
9534 Template with template name as argument
9536 {{templateasargtest|templ=simple}}
9543 Template with template name as argument (2)
9545 {{templateasargtest2|templ=templatesimple}}
9552 Template:templateasargtestdefault
9554 {{{{{templ|templatesimple}}}}}
9564 Template with default value
9566 {{templateasargtestdefault}}
9573 Template with default value (value set)
9575 {{templateasargtestdefault|templ=templa}}
9584 {{templateredirect}}
9591 Template with argument in separate line
9593 {{ templateasargtest |
9601 Template with complex template as argument
9604 param ={{ templateasargtest |
9607 <p>This is a test template with parameter (test)
9612 Template with thumb image (with link in description)
9614 {{paramtest|param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
9616 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>
9619 <p>This is a test template with parameter</p>
9620 <div class="thumb tright">
9621 <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>
9622 <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>
9626 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"paramtest","href":"./Template:Paramtest"},"params":{"param":{"wt":"[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]"}},"i":0}}]}'>This is a test template with parameter </p><figure class="mw-default-size" typeof="mw:Error mw:Image/Thumb" about="#mwt1" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="./File:Noimage.png" ><img resource="./File:Noimage.png" src="./Special:FilePath/Noimage.png" height="220" width="220"/></a><figcaption><a rel="mw:WikiLink" href="./No_link" title="No link">link</a> <a rel="mw:WikiLink" href="./No_link" title="No link">caption</a></figcaption></figure>
9630 Template:complextemplate
9632 {{{1}}} {{paramtest|
9633 param ={{{param}}}}}
9637 Template with complex arguments
9640 param ={{ templateasargtest |
9641 templ = simple }}|[[Template:complextemplate|link]]}}
9643 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
9648 BUG 553: link with two variables in a piped link
9651 |[[{{{1}}}|{{{2}}}]]
9656 <td>[[{{{1}}}|{{{2}}}]]
9662 Magic variable as template parameter
9664 {{paramtest|param={{SITENAME}}}}
9666 <p>This is a test template with parameter MediaWiki
9673 [[{{{param}}}|link]]
9677 Template parameter as link source
9679 {{linktest|param=Main Page}}
9681 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
9688 including another template, {{paramtest|param={{{arg}}}}}
9692 Template passing argument to another template
9694 {{paramtest2|arg='hmm'}}
9696 <p>including another template, This is a test template with parameter 'hmm'
9707 Template as link source
9711 [[{{linktest2}}|Main Page]]
9713 [[{{linktest2}}]]Page
9715 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9716 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9717 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
9735 Template infinite loop
9739 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
9744 Template from main namespace
9763 BUG 529: Template with table, not included at beginning of line
9782 BUG 523: Template shouldn't eat newline (or add an extra one before table)
9802 BUG 41: Template parameters shown as broken links
9811 Template with targets containing wikilinks
9815 {{[[{{echo|foo}}]]}}
9817 {{{{echo|[[foo}}]]}}
9819 <p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
9820 </p><p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
9828 ''None'' of '''this''' should be
9830 but rather passed unmodified
9837 # hmm, fix this or just deprecate msgnw and document its behavior?
9841 {{msgnw:MSGNW test}}
9843 <p>''None'' of '''this''' should be
9845  but rather passed unmodified
9846 {{test}}
9856 {{int:youhavenewmessages|lots of money|not!}}
9858 <p>You have lots of money (not!).
9865 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9869 <includeonly> and <noinclude> being included
9880 <onlyinclude>Foo</onlyinclude>bar
9884 <onlyinclude> being included
9896 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
9900 <onlyinclude> and <includeonly> being included
9909 <includeonly> and <noinclude> on a page
9911 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9918 Un-closed <noinclude>
9925 <onlyinclude> on a page
9927 <onlyinclude>Foo</onlyinclude>bar
9934 Un-closed <onlyinclude>
9941 Self-closed noinclude, includeonly, onlyinclude tags
9952 Unbalanced includeonly and noinclude tags
9956 |b</noinclude></noinclude>
9957 |c</noinclude></includeonly>
9958 |d</includeonly></includeonly>
9967 <td>c</includeonly>
9969 <td>d</includeonly></includeonly>
9975 Template:Includeonly section
9978 ==Includeonly section==
9984 Bug 6563: Edit link generation for section shown by <includeonly>
9986 {{includeonly section}}
9988 <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>
9989 <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>
9993 # Uses same input as the contents of [[Template:Includeonly section]]
9995 Bug 6563: Section extraction for section shown by <includeonly>
10000 ==Includeonly section==
10008 Bug 6563: Edit link generation for section suppressed by <includeonly>
10011 ==Includeonly section==
10015 <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>
10020 Bug 6563: Section extraction for section suppressed by <includeonly>
10025 ==Includeonly section==
10033 Un-closed <includeonly>
10040 Includes and comments at SOL
10042 <!-- comment --><noinclude><!-- comment --></noinclude><!-- comment -->== hu ==
10046 </noinclude>* stuff
10049 <includeonly>can have stuff</includeonly>=== here ===
10052 <h2><span class="mw-headline" id="hu">hu</span></h2>
10055 <ul><li> stuff</li>
10056 <li> here</li></ul>
10057 <h3><span class="mw-headline" id="here">here</span></h3>
10060 <!-- comment --><meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/><!-- comment --><meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/><!-- comment --><h2> hu </h2>
10062 <meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/>
10064 <meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/><ul><li> stuff</li>
10065 <li> here</li></ul>
10067 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>can have stuff</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><h3> here </h3>
10071 # TODO: test with DOM fragment reuse!
10073 Parsoid: DOM fragment reuse
10075 parsoid=wt2wt,wt2html
10077 a{{echo|b<table></table>c}}d
10089 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["a",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b<table></table>c"}},"i":0}},"d"]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>ab</p><table about="#mwt1" data-parsoid='{"stx":"html"}'></table><p about="#mwt1">cd</p>
10091 <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"]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>ab</p><span about="#mwt2">
10092 </span><table about="#mwt2" data-parsoid='{"stx":"html"}'></table><span about="#mwt2">
10093 </span><p about="#mwt2">cd</p>
10095 <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}}]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>a</p><span about="#mwt3">
10097 </span><table about="#mwt3" data-parsoid='{"stx":"html"}'></table><span about="#mwt3">
10099 </span><p about="#mwt3">b</p>
10103 Parsoid: Merge double tds (bug 50603)
10108 |{{echo|{{!}} foo}}
10112 <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>
10117 Parsoid: Merge double tds in nested transclusion content (bug 50603)
10123 |{{echo|{{!}} foo}}
10127 <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}}]}'>
10129 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
10135 ### <includeonly> and <noinclude> in attributes
10138 0. includeonly around the entire attribute
10140 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
10142 <p><span id="v2">bar</span>
10147 1. includeonly in html attr key
10149 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
10151 <p><span id="foo">bar</span>
10156 2. includeonly in html attr value
10158 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
10159 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
10161 <p><span id="v1">bar</span>
10162 <span id="v1">bar</span>
10167 3. includeonly in part of an attr value
10169 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
10171 <p><span style="color:red;">bar</span>
10176 4. includeonly in table attributes
10200 ### Token Stream Patcher tests
10202 ### These tests won't always pass wt2wt and other modes because
10203 ### on serialization, the table will be output on a new line.
10204 ### For now, we are blacklisting them, and using this to test selser.
10208 1. Table tag in SOL posn. should get reparsed correctly with valid TSR
10210 parsoid=wt2html,wt2wt
10212 {{echo|}}{| width = '100%'
10216 <span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":""}},"i":0}}]}'></span><table width="100%">
10217 <tbody><tr><td>foo</td></tr>
10222 2. Table tag in SOL posn. should get reparsed correctly with valid TSR
10224 parsoid=wt2html,wt2wt
10226 <includeonly>a</includeonly>{| {{{b}}}
10230 <meta typeof="mw:Includes/IncludeOnly"/><meta typeof="mw:Includes/IncludeOnly/End"/><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}}}":""}}'>
10231 <tbody><tr><td>c</td></tr>
10237 ### Testing parsing of templates where a template arg
10238 ### has the same name as the template itself.
10244 {{{quote|{{{1}}}}}}
10248 Templates: Template Name/Arg clash: 1. Use of positional param
10257 Templates: Template Name/Arg clash: 2. Use of named param
10259 {{quote|quote=foo}}
10266 Templates: Template Name/Arg clash: 3. Use of named param with empty input
10275 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
10279 Templates: 1. Simple use
10288 Templates: 2. Inside a block tag
10290 <div>{{echo|Foo}}</div>
10291 <blockquote>{{echo|Foo}}</blockquote>
10294 <blockquote>Foo</blockquote>
10304 Templates: P-wrapping: 1a. Templates on consecutive lines
10315 Templates: P-wrapping: 1b. Templates on consecutive lines
10329 Templates: P-wrapping: 1c. Templates on consecutive lines
10332 {{echo|bar}} <div>baz</div>
10345 Templates: P-wrapping: 1d. Template preceded by comment-only line
10354 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
10358 Templates: Inline Text: 1. Multiple template uses
10360 {{echo|Foo}}bar{{echo|baz}}
10367 Templates: Inline Text: 2. Back-to-back template uses
10369 {{echo|Foo}}{{echo|bar}}
10376 Templates: Block Tags: 1. Multiple template uses
10378 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
10380 <div>Foo</div><div>bar</div><div>baz</div>
10385 Templates: Block Tags: 2. Back-to-back template uses
10387 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
10389 <div>Foo</div><div>bar</div>
10393 # This is an edge case relating to paragraph wrapping.
10395 Templates: Correctly encapsulate templates producing </p> tag without a corresponding <p> tag
10400 <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
10405 Templates: Links: 1. Simple example
10407 {{echo|[[Foo|bar]]}}
10409 <p><a href="/wiki/Foo" title="Foo">bar</a>
10414 Templates: Links: 2. Generation of link href
10416 [[{{echo|Foo}}|bar]]
10418 <p><a href="/wiki/Foo" title="Foo">bar</a>
10423 Templates: Links: 3. Generation of part of a link href
10425 [[Fo{{echo|o}}|bar]]
10427 [[Foo{{echo|bar}}]]
10429 [[Foo{{echo|bar}}baz]]
10431 [[Foo{{echo|bar}}|bar]]
10433 [[:Foo{{echo|bar}}]]
10435 [[:Foo{{echo|bar}}|bar]]
10437 <p><a href="/wiki/Foo" title="Foo">bar</a>
10438 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10439 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
10440 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
10441 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10442 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
10447 Templates: Links: 4. Multiple templates generating link href
10449 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
10451 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10456 Templates: Links: 5. Generation of link text
10458 [[Foo|{{echo|bar}}]]
10460 <p><a href="/wiki/Foo" title="Foo">bar</a>
10465 Templates: Links: 5. Nested templates (only outermost template should be marked)
10467 {{echo|[[{{echo|Foo}}|bar]]}}
10469 <p><a href="/wiki/Foo" title="Foo">bar</a>
10474 Templates: HTML Tag: 1. Generation of HTML attr. key
10476 <div {{echo|style}}="color:red;">foo</div>
10478 <div style="color:red;">foo</div>
10483 Templates: HTML Tag: 2. Generation of HTML attr. value
10485 <div style={{echo|'color:red;'}}>foo</div>
10487 <div style="color:red;">foo</div>
10492 Templates: HTML Tag: 3. Generation of HTML attr key and value
10494 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
10496 <div style="color:red;">foo</div>
10501 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
10503 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
10505 <div title="This is a long title with just one piece templated">foo</div>
10510 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
10512 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
10514 <div title="This is a long title with just one piece templated">foo</div>
10519 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
10521 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
10523 <div title="This is a long title with just one piece templated">foo</div>
10527 # SSS FIXME: While it is great we added support for all this,
10528 # do we want to make this part of the spec? Maybe we want to
10529 # deprecate this kind of usage in the future?
10531 Templates: HTML Tag: 7. Generation of partial attribute key string
10533 <div st{{echo|yle}}="color:red;">foo</div>
10535 <div style="color:red;">foo</div>
10540 Templates: HTML Tag: 8. Template-generated attribute (k=v)
10542 <div {{echo|1=id="v1"}}>bar</div>
10544 <div id="v1">bar</div>
10549 Templates: HTML Tag: 9. Multiple template-generated attributes
10551 <div {{echo|1=id="v1" title="foo"}}>bar</div>
10553 <div id="v1" title="foo">bar</div>
10558 Templates: Support for templates generating attributes and content
10560 {| {{mixed_attr_content_template}}
10565 <table style="color:red;" title="T48811">
10575 <table style="color:red;" title="T48811" about="#mwt1" typeof="mw:Transclusion mw:ExpandedAttrs" data-mw='{"parts":["{| ",{"template":{"target":{"wt":"mixed_attr_content_template","href":"./Template:Mixed_attr_content_template"},"params":{},"i":0}},"\n|-\n|bar\n|}"]}'>
10584 1. Entities and nowikis inside templated attributes should be handled correctly
10586 <div {{echo|style{{=}}"background:#f9f9f9;"}}>foo</div>
10588 <div style="background:#f9f9f9;">foo</div>
10591 <div style="background:#f9f9f9;" about="#mwt3" typeof="mw:ExpandedAttrs" data-parsoid='{"stx":"html"}' data-mw='{"attribs":[[{"txt":"style","html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" 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;:[5,49,null,null]}\" 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;style{{=}}\\&quot;background:&amp;#35;f9f9f9;\\&quot;&quot;}},&quot;i&quot;:0}}]}\">style</span><span typeof=\"mw:Nowiki\" about=\"#mwt1\" data-parsoid=\"{}\">=</span><span about=\"#mwt1\" data-parsoid=\"{}\">\"background:</span><span typeof=\"mw:Entity\" about=\"#mwt1\" data-parsoid=\"{&quot;src&quot;:&quot;&amp;#35;&quot;,&quot;srcContent&quot;:&quot;#&quot;}\">#</span><span about=\"#mwt1\" data-parsoid=\"{}\">f9f9f9;\"</span>"},{"html":""}]]}'>foo</div>
10595 2. Entities and nowikis inside templated attributes should be handled correctly
10598 |{{table_attribs_3}}
10603 <td style="background:#f9f9f9;">Foo
10608 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td style="background:#f9f9f9;" typeof="mw:Transclusion" about="#mwt1" data-parsoid='{"autoInsertedEnd":true,"pi":[[]]}' data-mw='{"parts":["|",{"template":{"target":{"wt":"table_attribs_3","href":"./Template:Table_attribs_3"},"params":{},"i":0}}]}'>Foo</td></tr>
10613 Templates: HTML Tables: 1. Generating start of a HTML table
10615 {{echo|<table><tr><td>foo</td>}}</tr></table>
10617 <table><tr><td>foo</td></tr></table>
10622 Templates: HTML Tables: 2a. Generating middle of a HTML table
10624 <table><tr>{{echo|<td>foo</td>}}</tr></table>
10626 <table><tr><td>foo</td></tr></table>
10631 Templates: HTML Tables: 2b. Generating middle of a HTML table
10633 <table>{{echo|<tr><td>foo</td></tr>}}</table>
10635 <table><tr><td>foo</td></tr></table>
10640 Templates: HTML Tables: 3. Generating end of a HTML table
10642 <table><tr>{{echo|<td>foo</td></tr></table>}}
10644 <table><tr><td>foo</td></tr></table>
10649 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
10651 {{echo|<table>}}<tr><td>foo</td></tr></table>
10653 <table><tr><td>foo</td></tr></table>
10658 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
10660 <table>{{echo|<tr>}}<td>foo</td></tr></table>
10662 <table><tr><td>foo</td></tr></table>
10667 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
10669 <table><tr>{{echo|<td>}}foo</td></tr></table>
10671 <table><tr><td>foo</td></tr></table>
10676 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
10678 <table><tr><td>foo{{echo|</td>}}</tr></table>
10680 <table><tr><td>foo</td></tr></table>
10685 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
10687 <table><tr><td>foo</td>{{echo|</tr>}}</table>
10689 <table><tr><td>foo</td></tr></table>
10694 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
10696 <table><tr><td>foo</td></tr>{{echo|</table>}}
10698 <table><tr><td>foo</td></tr></table>
10703 Templates: HTML Tables: 5. Proper fostering of categories from inside
10705 parsoid=wt2html,wt2wt
10707 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
10708 <!--Two categories (Bug 50330)-->
10709 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
10711 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
10712 <!--Two categories (Bug 50330)-->
10713 <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>
10717 Templates: Wiki Tables: 1a. Fostering of entire template content
10725 <tr><td></td></tr></table>
10737 Templates: Wiki Tables: 1b. Fostering of entire template content
10750 <tr><td></td></tr></table>
10764 Templates: Wiki Tables: 2. Fostering of partial template content
10774 <tr><td></td></tr></table>
10787 Templates: Wiki Tables: 3. td-content via multiple templates
10790 {{echo|{{pipe}}a}}{{echo|b}}
10801 Templates: Wiki Tables: 4. Templated tags, no content
10807 <tr><td></td></tr></table>
10812 Templates: Wiki Tables: 5. Templated tags, regular td-tags
10826 Templates: Wiki Tables: 6. Templated tags, templated td-tags
10840 Templates: Lists: Multi-line list-items via templates
10842 *{{echo|a {{nonexistent|
10844 *{{echo|b {{nonexistent|
10847 <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>
10848 <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>
10853 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
10855 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
10857 <p><i>ab</i>c<i>d</i>e
10862 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
10863 (PHP parser generates misnested html)
10865 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
10867 <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>
10871 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
10872 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
10874 parsoid=wt2html,wt2wt
10876 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
10878 <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>
10879 <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>
10880 <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>
10884 Templates: Ugly nesting: 4. Divs opened/closed across templates
10886 a<div>b{{echo|c</div>d}}e
10897 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
10903 |{{echo|foo</table>}}
10907 <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|}"]}'>
10911 <td>foo</td></tr></tbody></table><span about="#mwt1">
10912 </span><span about="#mwt1">|bar</span><span about="#mwt1">
10917 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
10927 <td>1. {{echo|foo </table>}}</td>
10929 <td>2. {{echo|baz </table>}}</td>
10942 <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>"]}'>
10947 <td>1. foo </td></tr></tbody></table></td>
10949 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
10950 </span><span about="#mwt2">
10951 </span><span about="#mwt2">
10952 </span><span about="#mwt2">abc</span><span about="#mwt2">
10953 </span><span about="#mwt2">
10954 </span><span about="#mwt2">
10955 </span><span about="#mwt2">
10956 </span><span about="#mwt2">
10957 </span><span about="#mwt2">
10958 </span><span about="#mwt2">xyz</span><span about="#mwt2">
10959 </span><span about="#mwt2">
10964 Templates: Ugly templates: 3. newline-only template parameter
10973 # This looks like a bug: a single newline triggers p/br for some reason.
10975 Templates: Ugly templates: 4. newline-only template parameter inconsistency
10984 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges that
10985 # have a true overlap (T1-start - T2-start - T1-end - T2-end).
10987 Templates: Ugly templates: 5. Template encapsulation test: Non-trivial overlap of template ranges is properly handled
10993 <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
10994 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
10998 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges
10999 # that are "identical" and generate nesting cycles in the algorithm
11001 Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of template ranges is properly handled
11003 {{echo|<table><tr><td><table>}}
11007 <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"}'>
11008 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
11009 </table></td></tr></tbody></table>
11013 Parser Functions: 1. Simple example
11022 Parser Functions: 2. Nested use (only outermost should be marked up)
11031 ### Pre-save transform tests
11034 pre-save transform: subst:
11040 This is a test template
11044 pre-save transform: normal template
11054 pre-save transform: nonexistent template
11058 {{thistemplatedoesnotexist}}
11060 {{thistemplatedoesnotexist}}
11065 pre-save transform: subst magic variables
11074 # This is bug 89, which I fixed. -- wtm
11076 pre-save transform: subst: templates with parameters
11080 {{subst:paramtest|param="something else"}}
11082 This is a test template with parameter "something else"
11086 Template:nowikitest
11088 <nowiki>'''not wiki'''</nowiki>
11092 pre-save transform: nowiki in subst (bug 1188)
11096 {{subst:nowikitest}}
11098 <nowiki>'''not wiki'''</nowiki>
11103 Template:commenttest
11105 This template has <!-- a comment --> in it.
11109 pre-save transform: comment in subst (bug 1936)
11113 {{subst:commenttest}}
11115 This template has <!-- a comment --> in it.
11119 pre-save transform: unclosed tag
11123 <nowiki>'''not wiki'''
11125 <nowiki>'''not wiki'''
11129 pre-save transform: mixed tag case
11133 <NOwiki>'''not wiki'''</noWIKI>
11135 <NOwiki>'''not wiki'''</noWIKI>
11139 pre-save transform: unclosed comment in <nowiki>
11143 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
11145 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
11148 # Leading @ in this template definition works around a limitation
11149 # in parsoid's parserTests which otherwise strips the <span> from the
11150 # result (confusing it for a template wrapper)
11154 @<span onmouseover="alert('crap')">Oh no</span>
11158 (confirming safety of fix for subst bug 1936)
11160 {{Template:dangerous}}
11162 <p>@<span>Oh no</span>
11167 pre-save transform: comment containing gallery (bug 5024)
11171 <!-- <gallery>data</gallery> -->
11173 <!-- <gallery>data</gallery> -->
11177 pre-save transform: comment containing extension
11181 <!-- <tag>data</tag> -->
11183 <!-- <tag>data</tag> -->
11187 pre-save transform: comment containing nowiki
11191 <!-- <nowiki>data</nowiki> -->
11193 <!-- <nowiki>data</nowiki> -->
11197 pre-save transform: <noinclude> in subst (bug 3298)
11207 pre-save transform: <onlyinclude> in subst (bug 3298)
11211 {{subst:Includes2}}
11219 {{<includeonly>subst:</includeonly>Includes}}
11223 Template:SafeSubstTest
11225 {{<includeonly>safesubst:</includeonly>Includes}}
11229 bug 22297: safesubst: works during PST
11233 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
11239 bug 22297: safesubst: works during normal parse
11248 subst: does not work during normal parse
11252 <p>{{subst:Includes}}
11257 pre-save transform: context links ("pipe trick")
11261 [[Article (context)|]]
11264 [[Bar:Article (context)|]]
11265 [[:Bar:Article (context)|]]
11267 [[|Article (context)]]
11271 [[Article (context)|Article]]
11272 [[Bar:Article|Article]]
11273 [[:Bar:Article|Article]]
11274 [[Bar:Article (context)|Article]]
11275 [[:Bar:Article (context)|Article]]
11277 [[Article (context)]]
11278 [[Bar:X (Y) Z|X (Y) Z]]
11279 [[:Bar:X (Y) Z|X (Y) Z]]
11283 pre-save transform: context links ("pipe trick") with interwiki prefix
11287 [[interwiki:Article|]]
11288 [[:interwiki:Article|]]
11289 [[interwiki:Bar:Article|]]
11290 [[:interwiki:Bar:Article|]]
11292 [[interwiki:Article|Article]]
11293 [[:interwiki:Article|Article]]
11294 [[interwiki:Bar:Article|Bar:Article]]
11295 [[:interwiki:Bar:Article|Bar:Article]]
11299 pre-save transform: context links ("pipe trick") with parens in title
11301 pst title=[[Somearticle (context)]]
11305 [[Article (context)|Article]]
11309 pre-save transform: context links ("pipe trick") with comma in title
11311 pst title=[[Someplace, Somewhere]]
11314 [[Otherplace, Elsewhere|]]
11315 [[Otherplace, Elsewhere, Anywhere|]]
11317 [[Otherplace, Somewhere|Otherplace]]
11318 [[Otherplace, Elsewhere|Otherplace]]
11319 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
11323 pre-save transform: context links ("pipe trick") with parens and comma
11325 pst title=[[Someplace (IGNORED), Somewhere]]
11328 [[Otherplace (place), Elsewhere|]]
11330 [[Otherplace, Somewhere|Otherplace]]
11331 [[Otherplace (place), Elsewhere|Otherplace]]
11335 pre-save transform: context links ("pipe trick") with comma and parens
11337 pst title=[[Who, me? (context)]]
11340 [[Me, Myself, and I (1937 song)|]]
11342 [[Yes, you. (context)|Yes, you.]]
11343 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
11347 pre-save transform: context links ("pipe trick") with namespace
11349 pst title=[[Ns:Somearticle]]
11353 [[Ns:Article|Article]]
11357 pre-save transform: context links ("pipe trick") with namespace and parens
11359 pst title=[[Ns:Somearticle (context)]]
11363 [[Ns:Article (context)|Article]]
11367 pre-save transform: context links ("pipe trick") with namespace and comma
11369 pst title=[[Ns:Somearticle, Context, Whatever]]
11373 [[Ns:Article, Context, Whatever|Article]]
11377 pre-save transform: context links ("pipe trick") with namespace, comma and parens
11379 pst title=[[Ns:Somearticle, Context (context)]]
11383 [[Ns:Article (context)|Article]]
11387 pre-save transform: context links ("pipe trick") with namespace, parens and comma
11389 pst title=[[Ns:Somearticle (IGNORED), Context]]
11393 [[Ns:Article, Context|Article]]
11397 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
11401 [[Article(context)|]]
11402 [[Bar:Article(context)|]]
11403 [[:Bar:Article(context)|]]
11404 [[|Article(context)]]
11408 [[Article(context)|Article]]
11409 [[Bar:Article(context)|Article]]
11410 [[:Bar:Article(context)|Article]]
11411 [[Article(context)]]
11412 [[Bar:X(Y)Z|X(Y)Z]]
11413 [[:Bar:X(Y)Z|X(Y)Z]]
11417 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
11421 [[Article (context)|]]
11422 [[Bar:Article (context)|]]
11423 [[:Bar:Article (context)|]]
11424 [[|Article (context)]]
11428 [[Article (context)|Article]]
11429 [[Bar:Article (context)|Article]]
11430 [[:Bar:Article (context)|Article]]
11431 [[Article (context)]]
11432 [[Bar:X (Y) Z|X (Y) Z]]
11433 [[:Bar:X (Y) Z|X (Y) Z]]
11437 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
11441 [[Article(context)|]]
11442 [[Bar:Article(context)|]]
11443 [[:Bar:Article(context)|]]
11444 [[|Article(context)]]
11448 [[Article(context)|Article]]
11449 [[Bar:Article(context)|Article]]
11450 [[:Bar:Article(context)|Article]]
11451 [[Article(context)]]
11452 [[Bar:X(Y)Z|X(Y)Z]]
11453 [[:Bar:X(Y)Z|X(Y)Z]]
11457 pre-save transform: context links ("pipe trick") with commas (bug 21660)
11461 [[Article (context), context|]]
11462 [[Article (context),context|]]
11463 [[Bar:Article (context), context|]]
11464 [[Bar:Article (context),context|]]
11465 [[:Bar:Article (context), context|]]
11466 [[:Bar:Article (context),context|]]
11468 [[Article (context), context|Article]]
11469 [[Article (context),context|Article]]
11470 [[Bar:Article (context), context|Article]]
11471 [[Bar:Article (context),context|Article]]
11472 [[:Bar:Article (context), context|Article]]
11473 [[:Bar:Article (context),context|Article]]
11477 pre-save transform: trim trailing empty lines
11481 Empty lines are trimmed
11487 Empty lines are trimmed
11491 pre-save transform: Signature expansion
11496 * <noinclude>~~~</noinclude>
11497 * <includeonly>~~~</includeonly>
11498 * <onlyinclude>~~~</onlyinclude>
11500 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
11501 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
11502 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
11503 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
11508 pre-save transform: Signature expansion in nowiki tags (bug 93)
11514 <nowiki>~~~~</nowiki>
11516 <includeonly><nowiki>~~~~</nowiki></includeonly>
11518 <noinclude><nowiki>~~~~</nowiki></noinclude>
11520 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
11522 {{subst:Foo}} shall be converted to FOO
11524 As well as inside noinclude/onlyinclude
11525 <noinclude>{{subst:Foo}}</noinclude>
11526 <onlyinclude>{{subst:Foo}}</onlyinclude>
11528 But not inside includeonly
11529 <includeonly>{{subst:Foo}}</includeonly>
11533 <nowiki>~~~~</nowiki>
11535 <includeonly><nowiki>~~~~</nowiki></includeonly>
11537 <noinclude><nowiki>~~~~</nowiki></noinclude>
11539 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
11541 FOO shall be converted to FOO
11543 As well as inside noinclude/onlyinclude
11544 <noinclude>FOO</noinclude>
11545 <onlyinclude>FOO</onlyinclude>
11547 But not inside includeonly
11548 <includeonly>{{subst:Foo}}</includeonly>
11552 Parsoid: Recognize nowiki with trailing space in tags
11556 <nowiki ><div>[[foo]]</nowiki >
11564 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
11571 Parsoid: Recognize nowiki with odd capitalization
11575 <noWikI ><div>[[foo]]</Nowiki >
11577 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
11582 Parsoid: Escape nowiki with trailing space in tags
11586 <p><nowiki > foo </nowiki ></p>
11587 <p>a<nowiki />b</p>
11588 <p>c<nowiki/ >d</p>
11590 <nowiki > foo </nowiki >
11598 Parsoid: Escape weird noWikI capitalizations
11602 <p><noWikI > foo </NoWikI ></p>
11604 <noWikI > foo </NoWikI >
11608 ### Message transform tests
11611 message transform: magic variables
11621 message transform: should not transform wiki markup
11631 message transform: <noinclude> in transcluded template (bug 4926)
11641 message transform: <onlyinclude> in transcluded template (bug 4926)
11651 {{#special:}} page name, known
11655 {{#special:Recentchanges}}
11657 Special:RecentChanges
11661 {{#special:}} page name with subpage, known
11665 {{#special:Recentchanges/param}}
11667 Special:RecentChanges/param
11671 {{#special:}} page name, unknown
11675 {{#special:foobar nonexistent}}
11677 Special:Foobar nonexistent
11681 {{#speciale:}} page name, known
11685 {{#speciale:Recentchanges}}
11687 Special:RecentChanges
11691 {{#speciale:}} page name with subpage, known
11695 {{#speciale:Recentchanges/param}}
11697 Special:RecentChanges/param
11701 {{#speciale:}} page name, unknown
11705 {{#speciale:foobar nonexistent}}
11707 Special:Foobar_nonexistent
11713 ### For Parsoid-specific tests, see
11714 #### https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
11719 parsoid=wt2html,wt2wt,html2html
11721 [[Image:foobar.jpg]]
11723 <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>
11726 <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></p>
11730 Simple image (using File: namespace, now canonical)
11732 [[File:Foobar.jpg]]
11734 <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>
11737 <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></p>
11741 Right-aligned image
11743 [[File:Foobar.jpg|right]]
11745 <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>
11748 <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>
11754 [[File:Foobar.jpg|right|Caption text]]
11756 <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>
11759 <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>
11763 Image with caption, bug 53312 #1
11765 [[File:Foobar.jpg|right|Caption page stuff]]
11767 <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>
11770 <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>
11774 Image with caption, bug 53312 #2
11776 [[File:Foobar.jpg|right|Caption page=]]
11778 <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>
11781 <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>
11785 Image with caption, bug 53312 #3
11787 [[File:Foobar.jpg|right|Caption page=stuff]]
11789 <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>
11792 <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>
11796 Allow empty links in image captions (Bug 60753)
11800 [[File:Foobar.jpg|thumb|Caption [[Link1]]
11805 <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>
11808 <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"}]}'><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/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>Caption <a rel="mw:WikiLink" href="./Link1" title="Link1" data-parsoid='{"stx":"simple","a":{"href":"./Link1"},"sa":{"href":"Link1"}}'>Link1</a>
11810 <a rel="mw:WikiLink" href="./Link2" title="Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"}}'>Link2</a>
11811 </figcaption></figure>
11815 Titles in unlinked images (T23454)
11817 [[File:Foobar.jpg|link=|stuff]]
11819 <p><img alt="stuff" src="http://example.com/images/3/3a/Foobar.jpg" title="stuff" width="1941" height="220" />
11824 Link with empty target
11833 Image with link trail
11835 Linktrails should not work for images: [[File:Foobar.jpg]]s
11837 <p>Linktrails should not work for images: <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>s
11840 <p>Linktrails should not work for images: <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>s</p>
11844 Image with empty attribute
11846 parsoid=wt2html,wt2wt,html2html
11848 [[File:Foobar.jpg|right||Caption text]]
11850 <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>
11853 <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>
11857 1. Block image with individual attributes from templates
11859 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
11861 <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>
11864 <figure typeof="mw:Image/Thumb mw:ExpandedAttrs" about="#mwt2" data-mw='{"attribs":[["thumbnail",{"html":"thumb"}],["width",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" 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]}\" 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}}]}\">137px</span>"}]]}'><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/137px-Foobar.jpg" height="16" width="137"/></a><figcaption>This is a caption</figcaption></figure>
11868 2. Block Image with individual attributes from templates
11870 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
11872 <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>
11875 <figure typeof="mw:Image/Thumb mw:ExpandedAttrs" about="#mwt3" data-mw='{"attribs":[["thumbnail",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" 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]}\" 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}}]}\">thumb</span>"}],["width",{"html":"<span about=\"#mwt2\" typeof=\"mw:Transclusion\" 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]}\" 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}}]}\">137px</span>"}]]}'><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/137px-Foobar.jpg" height="16" width="137"/></a><figcaption>This is a caption</figcaption></figure>
11879 3. Inline image with individual attributes from templates
11881 [[File:Foobar.jpg|{{echo|50px}}]]
11883 <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>
11886 <p><span typeof="mw:Image mw:ExpandedAttrs" about="#mwt2" data-parsoid='{"optList":[{"ck":"width","ak":"{{echo|50px}}"}]}' data-mw='{"attribs":[["width",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" 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]}\" 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}}]}\">50px</span>"}]]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"sa":{}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50"/></a></span></p>
11889 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
11890 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
11892 Image with multiple attributes from the same template
11894 [[File:Foobar.jpg|{{image_attribs}}]]
11896 <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>
11899 <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>
11903 Image with link tails
11907 123[[File:Foobar.jpg]]456
11908 123[[File:Foobar.jpg|right]]456
11909 123[[File:Foobar.jpg|thumb]]456
11911 <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
11913 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
11914 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
11917 <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>
11919 <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>
11921 <div class="thumb tright">
11922 <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>
11923 <div class="thumbcaption">
11924 <div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>
11930 <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>
11931 <p>123</p><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><p>456</p>
11932 <p>123</p><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><p>456</p>
11936 Image with multiple captions -- only last one is accepted
11938 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
11940 <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>
11943 <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>
11947 Image with multiple widths -- use last
11949 [[File:Foobar.jpg|200px|300px|caption]]
11951 <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>
11954 <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>
11958 Image with multiple alignments -- use first (bug 48664)
11962 [[File:Foobar.jpg|thumb|left|right|center|caption]]
11964 [[File:Foobar.jpg|middle|text-top|caption]]
11966 <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>
11967 <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>
11970 <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>
11971 <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>
11975 Image with width attribute at different positions
11977 [[File:Foobar.jpg|200px|right|Caption]]
11978 [[File:Foobar.jpg|right|200px|Caption]]
11979 [[File:Foobar.jpg|right|Caption|200px]]
11981 <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>
11982 <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>
11983 <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>
11986 <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>
11987 <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>
11988 <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>
11991 # a sad bit of backward-compatibility
11993 Image with size specified with pxpx (bug 13500, 51628)
11995 parsoid=wt2html,wt2wt,html2html
11997 [[File:Foobar.jpg|20pxpx]]
11998 [[File:Foobar.jpg|200x20pxpx]]
12000 <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>
12001 <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>
12004 <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>
12008 Image with link parameter, wiki target
12010 [[File:Foobar.jpg|link=Main Page]]
12012 <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>
12015 <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>
12018 # parsoid bug 49293 (part 1)
12020 Image with link parameter, URL target
12022 [[File:Foobar.jpg|link=http://example.com/]]
12024 <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>
12027 <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>
12030 # parsoid bug 49293 (part 2)
12032 Image with link parameter, protocol-less URL target
12034 [[File:Foobar.jpg|link=//example.com/]]
12036 <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>
12039 <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>
12043 Image with link parameter, wgExternalLinkTarget
12045 [[Image:foobar.jpg|link=http://example.com/]]
12047 wgExternalLinkTarget='foobar'
12049 <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>
12054 Image with link parameter, wgNoFollowLinks set to false
12056 [[Image:foobar.jpg|link=http://example.com/]]
12058 wgNoFollowLinks=false
12060 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
12065 Image with link parameter, wgNoFollowDomainExceptions
12067 [[Image:foobar.jpg|link=http://example.com/]]
12069 wgNoFollowDomainExceptions='example.com'
12071 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
12076 Image with link parameter, wgExternalLinkTarget, unnamed parameter
12078 [[Image:foobar.jpg|link=http://example.com/|Title]]
12080 wgExternalLinkTarget='foobar'
12082 <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>
12087 Image with empty link parameter
12089 [[File:Foobar.jpg|link=]]
12091 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
12094 <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>
12098 Image with link parameter (wiki target) and unnamed parameter
12100 [[File:Foobar.jpg|link=Main_Page|Title]]
12102 <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>
12105 <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>
12109 Image with link parameter (URL target) and unnamed parameter
12111 [[File:Foobar.jpg|link=http://example.com/|Title]]
12113 <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>
12116 <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>
12120 Thumbnail image with link parameter
12123 parsoid=wt2html,wt2wt,html2html
12125 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
12127 <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>
12130 <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>
12134 Manually-specified thumbnail image
12138 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
12140 <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>
12143 <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>
12147 Manually-specified thumbnail image with explicit link to wiki page
12150 parsoid=wt2html,wt2wt,html2html
12152 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
12154 <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>
12157 <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>
12161 Manually-specified thumbnail image with explicit link to url
12164 parsoid=wt2html,wt2wt,html2html
12166 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
12168 <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>
12171 <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>
12175 Manually-specified thumbnail image with explicit no link
12178 parsoid=wt2html,wt2wt,html2html
12180 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
12182 <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>
12185 <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>
12189 Manually-specified thumbnail image with explicit link and alt text
12192 parsoid=wt2html,wt2wt,html2html
12194 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
12196 <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>
12199 <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>
12203 Image with frame and link
12205 parsoid=wt2html,wt2wt,html2html
12207 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
12209 <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>
12212 <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>
12216 Image with frame and link and explicit alt
12218 parsoid=wt2html,wt2wt,html2html
12220 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
12222 <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>
12225 <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>
12229 Image with wiki markup in implicit alt
12231 parsoid=wt2html,wt2wt,html2html
12233 [[Image:Foobar.jpg|testing '''bold''' in alt]]
12235 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
12237 <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>
12238 </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>
12241 <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>
12242 <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>
12246 Alt image option should handle most kinds of wikitext without barfing
12248 [[Image:Foobar.jpg|thumb|This is the image caption|alt=This is a [[link]] and a {{echo|''bold template''}}.]]
12250 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a link and a bold template." 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 the image caption</div></div></div>
12253 <figure class="mw-default-size" typeof="mw:Image/Thumb mw:ExpandedAttrs" about="#mwt2" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"This is the image caption"},{"ck":"alt","ak":"alt=This is a [[link]] and a {{echo|''bold template''}}."}]}' data-mw='{"attribs":[["thumbnail",{"html":"thumb"}],["alt",{"html":"alt=This is a <a rel=\"mw:WikiLink\" href=\"./Link\" title=\"Link\" data-parsoid=\"{&quot;stx&quot;:&quot;simple&quot;,&quot;a&quot;:{&quot;href&quot;:&quot;./Link&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;link&quot;},&quot;dsr&quot;:[65,73,2,2]}\">link</a> and a <i about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;dsr&quot;:[80,106,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\" 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;''bold template''&quot;}},&quot;i&quot;:0}}]}\">bold template</i>."}]]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"sa":{}}'><img alt="This is a link and a bold template." resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"alt":"This is a link and a bold template.","resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"alt":"alt=This is a [[link]] and a {{echo|''bold template''}}.","resource":"Image:Foobar.jpg"}}'/></a><figcaption>This is the image caption</figcaption></figure>
12256 ###################
12257 # Conflicting image format options.
12258 # First option specified should 'win'.
12259 # All three cases in each test should be identical.
12262 Image with 'frameless' first.
12264 parsoid=wt2html,wt2wt,html2html
12266 [[File:Foobar.jpg|frameless|caption]]
12268 [[File:Foobar.jpg|frameless|frame|caption]]
12270 [[File:Foobar.jpg|frameless|thumb|caption]]
12272 <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>
12273 </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>
12274 </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>
12277 <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>
12278 <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>
12279 <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>
12283 Image with 'frame' first.
12285 parsoid=wt2html,wt2wt,html2html
12287 [[File:Foobar.jpg|frame|caption]]
12288 [[File:Foobar.jpg|frame|frameless|caption]]
12289 [[File:Foobar.jpg|frame|thumb|caption]]
12291 <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>
12292 <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>
12293 <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>
12296 <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>
12297 <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>
12298 <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>
12302 Image with 'thumb' first.
12304 parsoid=wt2html,wt2wt,html2html
12306 [[File:Foobar.jpg|thumb|caption]]
12307 [[File:Foobar.jpg|thumb|frameless|caption]]
12308 [[File:Foobar.jpg|thumb|frame|caption]]
12310 <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>
12311 <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>
12312 <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>
12315 <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>
12316 <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>
12317 <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>
12320 ###################
12322 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
12323 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
12324 # Foobar has actual size of 1941x220
12325 # 1. Thumbs & frameless always reduce, can't be enlarged unless it's
12326 # a scalable format.
12327 # 2. Framed images always ignore size options; always render at default size.
12328 # 3. "Unspecified format" and border are the only types which can be
12332 Image: "unspecified format" and border enlarge
12334 parsoid=wt2html,wt2wt,html2html
12336 [[File:Foobar.jpg|2000px]]
12338 [[File:Foobar.jpg|border|2000px]]
12340 <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>
12341 </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>
12344 <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>
12345 <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>
12349 Image: "unspecified format" and border reduce
12351 parsoid=wt2html,wt2wt,html2html
12353 [[File:Foobar.jpg|1000px]]
12355 [[File:Foobar.jpg|border|1000px]]
12357 <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>
12358 </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>
12361 <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>
12362 <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>
12366 Image: thumbs reduce
12368 parsoid=wt2html,wt2wt,html2html
12370 [[File:Foobar.jpg|thumb|50px]]
12372 <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>
12375 <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>
12379 Image: bitmap thumbs can't be enlarged past original size, but vector can.
12381 parsoid=wt2html,wt2wt,html2html
12383 [[File:Foobar.jpg|thumb|2000px]]
12385 [[File:Foobar.svg|thumb|2000px]]
12387 <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>
12388 <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>
12391 <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>
12392 <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>
12396 Image: frameless can reduce in size
12398 parsoid=wt2html,wt2wt,html2html
12400 [[File:Foobar.jpg|frameless|50px]]
12402 <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>
12405 <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>
12409 Image: bitmap frameless can't be enlarged past original size, but vector can
12411 parsoid=wt2html,wt2wt,html2html
12413 [[File:Foobar.jpg|frameless|2000px]]
12415 [[File:Foobar.svg|frameless|2000px]]
12417 <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>
12418 </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>
12421 <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>
12422 <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>
12426 Image: framed images are always unscaled.
12428 parsoid=wt2html,wt2wt,html2html
12430 [[File:Foobar.jpg|frame]]
12432 [[File:Foobar.jpg|frame|50px]]
12434 [[File:Foobar.jpg|frame|50x50px]]
12436 [[File:Foobar.jpg|frame|2000px]]
12438 <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>
12439 <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>
12440 <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>
12441 <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>
12444 <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>
12445 <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>
12446 <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>
12447 <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>
12450 ###################
12453 Link to image page- image page normally doesn't exists, hence edit link
12454 Add test with existing image page
12455 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
12459 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
12464 bug 18784 Link to non-existent image page with caption should use caption as link text
12466 [[:Image:test|caption]]
12468 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
12473 Frameless image caption with a free URL
12475 [[File:Foobar.jpg|http://example.com]]
12477 <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>
12480 <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>
12484 Thumbnail image caption with a free URL
12488 [[File:Foobar.jpg|thumb|http://example.com]]
12490 <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>
12493 <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>
12497 Thumbnail image caption with a free URL and explicit alt
12500 parsoid=wt2html,wt2wt,html2html
12502 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
12504 <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>
12507 <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>
12511 SVG thumbnails with no language set
12514 [[File:Foobar.svg|thumb|caption]]
12516 <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>
12519 <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>
12523 SVG thumbnails with language de
12525 parsoid=wt2html,wt2wt,html2html
12527 [[File:Foobar.svg|thumb|caption|lang=de]]
12529 <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>
12532 <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>
12536 SVG thumbnails with invalid language code
12538 parsoid=wt2html,wt2wt,html2html
12540 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
12542 <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>
12545 <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>
12549 BUG 1887: A ISBN with a thumbnail
12551 [[File:Foobar.jpg|thumb|ISBN 1235467890]]
12553 <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>
12556 <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>
12560 BUG 1887: A RFC with a thumbnail
12562 [[File:Foobar.jpg|thumb|This is RFC 12354]]
12564 <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>
12567 <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>
12571 BUG 1887: A mailto link with a thumbnail
12573 [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]]
12575 <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>
12578 <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>
12581 # Pending resolution to bug 368
12583 BUG 648: Frameless image caption with a link
12585 [[File:Foobar.jpg|text with a [[link]] in it]]
12587 <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>
12590 <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>
12594 BUG 648: Frameless image caption with a link (suffix)
12596 [[File:Foobar.jpg|text with a [[link]]foo in it]]
12598 <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>
12601 <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>
12605 BUG 648: Frameless image caption with an interwiki link
12607 [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]
12609 <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>
12612 <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>
12616 BUG 648: Frameless image caption with a piped interwiki link
12618 [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
12620 <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>
12623 <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>
12627 Escape HTML special chars in image alt text
12629 [[File:Foobar.jpg|& < > "]]
12631 <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>
12634 <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>
12638 BUG 499: Alt text should have Ӓ, not &1234;
12640 [[File:Foobar.jpg|♀]]
12642 <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>
12645 <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>
12649 Broken image caption with link
12651 parsoid=wt2html,wt2wt,html2html
12653 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
12655 <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.
12658 <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>
12662 Image caption containing another image
12664 [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]]
12666 <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>
12669 <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>
12673 Image: caption containing a newline
12675 [[File:Foobar.jpg|This
12678 <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>
12681 <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>
12685 Image: caption containing leading space
12686 (The leading space should not trigger nowiki escaping in wt2wt mode)
12688 [[File:Foobar.jpg|thumb| bar]]
12690 <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>
12693 <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>
12697 Image: caption containing a table
12699 parsoid=wt2html,wt2wt,html2html
12701 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
12707 and some more text.]]
12709 <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>
12712 <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
12715 <tr><th>Foo </th><th>Bar</th></tr>
12718 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
12722 Bug 3090: External links other than http: in image captions
12724 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
12726 <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>
12729 <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>
12735 parsoid=wt2html,wt2wt,html2html
12737 [[Image:foobar.jpg|a|class=b]]
12739 <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>
12742 <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>
12746 Localized image handling (1).
12748 parsoid=wt2html,wt2wt,html2html
12751 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
12753 <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>
12756 <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>
12760 Localized image handling (2).
12763 parsoid=wt2html,wt2wt,html2html
12766 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
12768 <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>
12771 <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>
12775 "border", "frameless" and "class" attributes on an image.
12778 parsoid=wt2html,wt2wt,html2html
12780 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
12782 <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>
12785 <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>
12788 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
12790 Invalid image attributes (bug 62500)
12793 parsoid=wt2html,wt2wt,html2html
12795 [[File:Foobar.jpg|thumb|float|left|caption]]
12797 [[File:Foobar.jpg|thumb|righ|caption]]
12799 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
12801 <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>
12802 <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>
12803 <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>
12806 <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>
12807 <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>
12808 <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>
12814 #REDIRECT [[File:Barfoo.jpg]]
12817 # FIXME: Parsoid should run this test -- but we'd need to teach the
12818 # mockAPI about the redirected Barfoo.jpg image.
12822 [[Image:Barfoo.jpg]]
12824 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
12829 Missing image with uploads disabled
12833 [[File:Foobaz.jpg]]
12835 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
12838 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="File:Foobaz.jpg"><img resource="./File:Foobaz.jpg" src="./Special:FilePath/Foobaz.jpg" height="220" width="220"/></a></span></p>
12841 # Parsoid-specific testing for images
12842 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
12843 # Currently imperfect due to a flaw in the Parsoid testrunner
12845 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
12849 Parsoid-specific image handling - simple image with size and middle alignment
12851 [[File:Foobar.jpg|middle|50px]]
12853 <p><span class="mw-valign-middle" typeof="mw:Image"><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"></a></span></p>
12857 Parsoid-specific image handling - simple image with size, middle alignment,
12858 non-standard namespace alias
12860 parsoid=wt2wt,wt2html,html2html
12862 [[Image:Foobar.jpg|middle|50px]]
12864 <p><span class="mw-valign-middle" typeof="mw:Image"><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"></a></span></p>
12868 Parsoid-specific image handling - simple image with size and middle alignment
12871 [[File:Foobar.jpg|50px|middle]]
12873 <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>
12877 Parsoid-specific image handling - simple image with size and middle alignment
12878 and non-standard namespace name
12880 parsoid=wt2html,wt2wt,html2html
12882 [[Image:Foobar.jpg|50px|middle]]
12884 <p><span class="mw-valign-middle" typeof="mw:Image"><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"></a></span></p>
12888 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
12890 [[File:Foobar.jpg|500x10px|baseline|caption]]
12892 <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>
12896 Parsoid-specific image handling - simple image with border and size spec
12898 [[File:Foobar.jpg|50px|border|caption]]
12900 <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>
12904 Parsoid-specific image handling - thumbnail with halign, valign, and caption
12906 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
12908 <figure class="mw-default-size mw-halign-left mw-valign-baseline" 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><figcaption>caption content</figcaption></figure>
12912 Parsoid-specific image handling - thumbnail with halign, valign, and caption
12915 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
12917 <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>
12921 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
12923 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
12925 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb"><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" /></a><figcaption>caption</figcaption></figure>
12929 Parsoid-specific image handling - thumbnail with specific size, halign,
12930 valign, and caption (existing content)
12932 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
12934 <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>
12938 Parsoid-specific image handling - framed image with specific size and caption
12941 parsoid=wt2html,wt2wt,html2html
12943 [[File:Foobar.jpg|frame|500x50px|caption]]
12945 <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><figcaption>caption</figcaption></figure>
12949 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
12952 parsoid=wt2html,wt2wt,html2html
12954 [[File:Foobar.jpg|left|baseline|frame|500x50px|caption]]
12956 <figure class="mw-halign-left mw-valign-baseline" 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>
12960 Parsoid-specific image handling - frameless image with specific size, border, and caption
12962 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
12964 <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>
12968 Parsoid-specific image handling - simple image with a formatted caption
12970 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
12972 <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>"}'><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>
12976 Parsoid-specific image handling - caption with a template in it
12978 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
12980 <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>
12984 Parsoid-specific image handling - caption with unbalanced tags in it
12986 parsoid=wt2html,wt2wt,html2html
12989 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
12993 <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>
12998 Parsoid-specific image handling - empty caption (1)
13000 parsoid=wt2html,wt2wt
13002 [[File:Foobar.jpg|thumb|]]
13004 <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>
13007 # empty captions don't get serialized unless we're in the "round trip" case
13009 Parsoid-specific image handling - empty caption (2)
13013 <figure class="mw-default-size" typeof="mw:Image/Thumb">
13014 <a href="File:Foobar.jpg">
13015 <img resource="./File:Foobar.jpg"
13016 src="//example.com/images/3/3a/Foobar.jpg"
13017 height="25" width="220"/>
13019 <figcaption></figcaption>
13022 [[File:Foobar.jpg|thumb]]
13026 Parsoid-specific image handling - whitespace caption
13028 [[File:Foobar.jpg|thumb| ]]
13030 <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>
13034 Parsoid-specific image handling - lang option
13037 [[File:Foobar.svg|lang=de|caption]]
13041 <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>
13050 Subpage test/subpage
13058 subpage title=[[Subpage test]]
13062 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
13067 Subpage noslash link
13069 subpage title=[[Subpage test]]
13073 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
13078 Subpage test/1/2/subpage
13084 Relative subpage noslash link
13086 parsoid=wt2wt,wt2html,html2html
13087 subpage title=[[Subpage test/1/2/3/4]]
13093 <p><a href="/wiki/Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">subpage</a>
13094 </p><p><a href="/wiki/Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">Subpage test/1/2/subpage</a>
13097 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">subpage</a></p>
13098 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
13102 Parsoid: dot-slash prefixed wikilinks
13112 </p><p>[[././baz/]]
13117 </p><p>[[././baz/]]
13122 Render invalid page names as plain text (bug 51090)
13135 [[{{echo|./../foo}}|bar]]
13136 [[{{echo|foo/.}}|bar]]
13137 [[{{echo|foo/..}}|bar]]
13138 [[{{echo|foo~~~~bar}}]]
13139 [[{{echo|foo>bar}}]]
13140 [[{{echo|foo././bar}}]]
13141 [[{{echo|foo{bar}}]]
13142 [[{{echo|foo}bar}}]]
13143 [[{{echo|foo[bar}}]]
13144 [[{{echo|foo]bar}}]]
13145 [[{{echo|foo<bar}}]]
13147 <p>[[./../foo|bar]]
13157 </p><p>[[./../foo|bar]]
13170 <p>[[./../foo|bar]]
13181 <p>[[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"./../foo"}},"i":0}}]}'>./../foo</span>|bar]]
13182 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo/."}},"i":0}}]}'>foo/.</span>|bar]]
13183 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo/.."}},"i":0}}]}'>foo/..</span>|bar]]
13184 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo~~~~bar"}},"i":0}}]}'>foo~~~~bar</span>]]
13185 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo>bar"}},"i":0}}]}'>foo>bar</span>]]
13186 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo././bar"}},"i":0}}]}'>foo././bar</span>]]
13187 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo{bar"}},"i":0}}]}'>foo{bar</span>]]
13188 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo}bar"}},"i":0}}]}'>foo}bar</span>]]
13189 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo[bar"}},"i":0}}]}'>foo[bar</span>]]
13190 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo]bar"}},"i":0}}]}'>foo]bar</span>]]
13191 [[<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>
13199 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
13204 BUG 561: {{/Subpage}}
13206 subpage title=[[Page]]
13210 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
13218 Category:MediaWiki User's Guide
13226 [[:Category:MediaWiki User's Guide]]
13228 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
13237 [[Category:MediaWiki User's Guide]]
13239 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
13243 PAGESINCATEGORY invalid title fatal (r33546 fix)
13245 {{PAGESINCATEGORY:<bogus>}}
13252 Category with different sort key
13256 [[Category:MediaWiki User's Guide|Foo]]
13258 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
13262 Category with identical sort key
13266 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
13268 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
13272 Category with empty sort key
13277 [[Category:MediaWiki User's Guide|]]
13279 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
13283 Category with empty sort key and parentheses
13288 [[Category:Foo (bar)|]]
13290 [[Category:Foo (bar)|Foo]]
13294 Category with link tail
13299 123[[Category:Foo]]456
13301 123[[Category:Foo]]456
13305 Category with template
13310 [[Category:{{echo|Foo}}]]
13312 [[Category:{{echo|Foo}}]]
13316 Category with template in sort key
13321 [[Category:Foo|{{echo|Bar}}]]
13323 [[Category:Foo|{{echo|Bar}}]]
13327 Category with template in sort key and title
13332 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
13334 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
13338 Category / paragraph interactions
13340 Foo [[Category:Baz]] Bar
13342 Foo [[Category:Baz]]
13350 [[Category:Baz]] Bar
13363 {{echo|[[Category:Baz]]}}
13378 Parsoid: Serialize link to category page with colon escape
13384 [[:Category:Foo|Bar]]
13387 <a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Category:Foo</a>
13388 <a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Bar</a>
13393 Parsoid: Link prefix/suffixes aren't applied to category links
13395 parsoid=wt2html,wt2wt,html2html
13400 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
13404 Parsoid: Serialize link to file page with colon escape
13410 [[:File:Foo.png|Bar]]
13413 <a rel="mw:WikiLink" href="File:Foo.png" title="File:Foo.png">File:Foo.png</a>
13414 <a rel="mw:WikiLink" href="File:Foo.png" title="File:Foo.png">Bar</a>
13419 Parsoid: Serialize a genuine category link without colon escape
13424 [[Category:Foo|Bar]]
13426 <link rel="mw:PageProp/Category" href="Category:Foo">
13427 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
13431 Normalize hrefs properly before testing for invalid link targets (bug 70894)
13435 <link rel="mw:PageProp/Category" href="./Category:Toxine_bactérienne"/>
13437 [[Category:Toxine bactérienne]]
13441 Parsoid: Defaultsort
13443 {{DEFAULTSORT:Foo}}
13445 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
13449 Parsoid: Defaultsort (template-generated)
13451 {{{{echo|DEFAULTSORT}}:Foo}}
13453 <meta property="mw:PageProp/categorydefaultsort" content="Foo" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"dsr":[0,28,null,null],"pi":[[]]}' data-mw='{"parts":[{"template":{"target":{"wt":"{{echo|DEFAULTSORT}}:Foo"},"params":{},"i":0}}]}'/>
13457 ### Inter-language links
13460 Interlanguage links
13468 es:Alimento fr:Nourriture zh:食品
13470 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Alimento"/>
13471 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/Nourriture"/>
13472 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/食品"/>
13476 Duplicate interlanguage links (bug 24502)
13487 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/1"/>
13488 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/2"/>
13489 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/1"/>
13490 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/2"/>
13497 Basic section headings
13504 ===Smaller headline===
13507 <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>
13510 <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>
13513 <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>
13519 Section headings with TOC
13522 === Subheadline 1 ===
13523 ===== Skipping a level =====
13524 ====== Skipping a level ======
13528 ===Another headline===
13530 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13532 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
13534 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
13536 <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>
13538 <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>
13545 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
13547 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
13553 <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>
13554 <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>
13555 <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>
13556 <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>
13557 <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>
13560 <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>
13565 TOC anchors don't collide
13573 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13575 <li class="toclevel-1 tocsection-1"><a href="#Headline_2"><span class="tocnumber">1</span> <span class="toctext">Headline 2</span></a></li>
13576 <li class="toclevel-1 tocsection-2"><a href="#Headline"><span class="tocnumber">2</span> <span class="toctext">Headline</span></a></li>
13577 <li class="toclevel-1 tocsection-3"><a href="#Headline_2_2"><span class="tocnumber">3</span> <span class="toctext">Headline 2</span></a></li>
13578 <li class="toclevel-1 tocsection-4"><a href="#Headline_3"><span class="tocnumber">4</span> <span class="toctext">Headline</span></a></li>
13582 <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=1" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13583 <h2><span class="mw-headline" id="Headline">Headline</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">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13584 <h2><span class="mw-headline" id="Headline_2_2">Headline 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: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13585 <h2><span class="mw-headline" id="Headline_3">Headline</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: Headline">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13589 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
13591 Handling of sections up to level 6 and beyond
13594 == Level 2 Heading==
13595 === Level 3 Heading===
13596 ==== Level 4 Heading====
13597 ===== Level 5 Heading=====
13598 ====== Level 6 Heading======
13599 ======= Level 7 Heading=======
13600 ======== Level 8 Heading========
13601 ========= Level 9 Heading=========
13602 ========== Level 10 Heading==========
13604 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13606 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
13608 <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>
13610 <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>
13612 <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>
13614 <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>
13616 <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>
13617 <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>
13618 <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>
13619 <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>
13620 <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>
13634 <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>
13635 <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>
13636 <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>
13637 <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>
13638 <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>
13639 <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>
13640 <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>
13641 <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>
13642 <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>
13643 <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>
13648 TOC regression (T11764)
13652 ==== title 1.1.1 ====
13657 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13659 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13661 <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>
13663 <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>
13666 <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>
13669 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
13671 <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>
13677 <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>
13678 <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>
13679 <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>
13680 <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>
13681 <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>
13682 <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>
13687 TOC with wgMaxTocLevel=3 (bug 6204)
13693 ==== title 1.1.1 ====
13698 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13700 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13702 <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>
13703 <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>
13706 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
13708 <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>
13714 <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>
13715 <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>
13716 <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>
13717 <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>
13718 <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>
13719 <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>
13724 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
13730 ====Section 1.1.1====
13731 ====Section 1.1.1.1====
13734 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13736 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
13738 <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>
13741 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
13745 <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>
13746 <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>
13747 <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>
13748 <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>
13749 <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>
13755 Resolving duplicate section names
13760 <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>
13761 <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>
13766 Resolving duplicate section names with differing case (bug 10721)
13771 <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>
13772 <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>
13784 Template with sections, __NOTOC__
13791 <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>
13792 <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>
13793 <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>
13794 <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>
13799 __NOEDITSECTION__ keyword
13805 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
13806 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
13811 Link inside a section heading
13813 ==Section with a [[Main Page|link]] in it==
13815 <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>
13820 TOC regression (T14077)
13827 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13829 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13831 <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>
13834 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
13838 <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>
13839 <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>
13840 <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>
13845 BUG 1219 URL next to image (good)
13847 http://example.com [[File:Foobar.jpg]]
13849 <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>
13852 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a> <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></p>
13856 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
13859 The line above must have a trailing space!
13862 But just in case it doesn't...
13864 <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>
13865 <p>The line above must have a trailing space!
13867 <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>
13868 <p>But just in case it doesn't...
13873 Header with special characters (bug 25462)
13875 The tooltips shall not show entities to the user (ie. be double escaped)
13892 <p>The tooltips shall not show entities to the user (ie. be double escaped)
13894 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13896 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
13897 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
13898 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
13899 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
13900 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
13904 <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>
13907 <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>
13910 <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>
13913 <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>
13916 <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>
13922 Header with space, plus and underscore as entity
13924 Id should not contain + for spaces
13926 == Space between Text ==
13929 == Space-Entity between Text ==
13932 == Plus+between+Text ==
13935 == Plus-Entity+between+Text ==
13938 == Underscore_between_Text ==
13941 == Underscore-Entity_between_Text ==
13944 [[#Space between Text]]
13945 [[#Space-Entity between Text]]
13946 [[#Plus+between+Text]]
13947 [[#Plus-Entity+between+Text]]
13948 [[#Underscore_between_Text]]
13949 [[#Underscore-Entity_between_Text]]
13951 <p>Id should not contain + for spaces
13953 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13955 <li class="toclevel-1 tocsection-1"><a href="#Space_between_Text"><span class="tocnumber">1</span> <span class="toctext">Space between Text</span></a></li>
13956 <li class="toclevel-1 tocsection-2"><a href="#Space-Entity_between_Text"><span class="tocnumber">2</span> <span class="toctext">Space-Entity between Text</span></a></li>
13957 <li class="toclevel-1 tocsection-3"><a href="#Plus.2Bbetween.2BText"><span class="tocnumber">3</span> <span class="toctext">Plus+between+Text</span></a></li>
13958 <li class="toclevel-1 tocsection-4"><a href="#Plus-Entity.2Bbetween.2BText"><span class="tocnumber">4</span> <span class="toctext">Plus-Entity+between+Text</span></a></li>
13959 <li class="toclevel-1 tocsection-5"><a href="#Underscore_between_Text"><span class="tocnumber">5</span> <span class="toctext">Underscore_between_Text</span></a></li>
13960 <li class="toclevel-1 tocsection-6"><a href="#Underscore-Entity_between_Text"><span class="tocnumber">6</span> <span class="toctext">Underscore-Entity_between_Text</span></a></li>
13964 <h2><span class="mw-headline" id="Space_between_Text">Space between 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: Space between Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13967 <h2><span class="mw-headline" id="Space-Entity_between_Text">Space-Entity between 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: Space-Entity between Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13970 <h2><span class="mw-headline" id="Plus.2Bbetween.2BText">Plus+between+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: Plus+between+Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13973 <h2><span class="mw-headline" id="Plus-Entity.2Bbetween.2BText">Plus-Entity+between+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: Plus-Entity+between+Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13976 <h2><span class="mw-headline" id="Underscore_between_Text">Underscore_between_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: Underscore between Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13979 <h2><span class="mw-headline" id="Underscore-Entity_between_Text">Underscore-Entity_between_Text</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: Underscore-Entity_between_Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13981 </p><p><a href="#Space_between_Text">#Space between Text</a>
13982 <a href="#Space-Entity_between_Text">#Space-Entity between Text</a>
13983 <a href="#Plus.2Bbetween.2BText">#Plus+between+Text</a>
13984 <a href="#Plus-Entity.2Bbetween.2BText">#Plus-Entity+between+Text</a>
13985 <a href="#Underscore_between_Text">#Underscore_between_Text</a>
13986 <a href="#Underscore-Entity_between_Text">#Underscore-Entity_between_Text</a>
13991 Headers with excess '=' characters
13992 (Are similar tests necessary beyond the 1st level?)
13996 =''italic'' heading==
13997 ==''italic'' heading=
13999 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14001 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
14002 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
14003 <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>
14004 <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>
14008 <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>
14009 <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>
14010 <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>
14011 <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>
14016 HTML headers vs TOC (bug 23393)
14017 (__NOEDITSECTION__ for clearer output, doesn't matter here)
14029 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14031 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
14033 <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>
14034 <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>
14037 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
14039 <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>
14040 <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>
14046 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
14047 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
14048 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
14049 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
14050 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
14051 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
14056 Single-line or multiline-comments can follow headings
14058 parsoid=wt2html,wt2wt
14066 <h2><span class="mw-headline" id="foo">foo</span></h2>
14067 <h2><span class="mw-headline" id="bar">bar</span></h2>
14068 <h2><span class="mw-headline" id="baz">baz</span></h2>
14073 BUG 1219 URL next to image (broken)
14075 http://example.com[[File:Foobar.jpg]]
14077 <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>
14080 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a><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></p>
14084 Bug 1186 news: in the middle of text
14086 http://en.wikinews.org/wiki/Wikinews:Workplace
14088 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
14094 Namespaced link must have a title
14103 Namespaced link must have a title (bad fragment version)
14105 [[Project:#fragment]]
14107 <p>[[Project:#fragment]]
14113 ### HTML tags and HTML attributes
14117 div with no attributes
14119 <div>HTML rocks</div>
14121 <div>HTML rocks</div>
14126 div with double-quoted attribute
14128 <div id="rock">HTML rocks</div>
14130 <div id="rock">HTML rocks</div>
14135 div with single-quoted attribute
14137 <div id='rock'>HTML rocks</div>
14139 <div id="rock">HTML rocks</div>
14144 div with unquoted attribute
14146 <div id=rock>HTML rocks</div>
14148 <div id="rock">HTML rocks</div>
14153 div with illegal double attributes
14155 <div id="a" id="b">HTML rocks</div>
14157 <div id="b">HTML rocks</div>
14161 # FIXME: produce empty string instead of "class" in the PHP parser, following
14164 div with empty attribute value, space before equals
14168 <div class =>HTML rocks</div>
14170 <div class="">HTML rocks</div>
14175 div with multiple empty attribute values
14179 <div id= title=>HTML rocks</div>
14181 <div id="" title="">HTML rocks</div>
14186 table with multiple empty attribute values
14194 <table title="" id="">
14195 <tbody><tr><td> hi</td></tr>
14200 div with braces in attribute value
14202 <div title="{}">Foo</div>
14204 <div title="{}">Foo</div>
14207 <div title="{}">Foo</div>
14210 # This it very inconsistent in the PHP parser: it returns
14211 # class="class" if there is a space between the name and the equal sign (see
14212 # 'div with empty attribute value, space before equals'), but strips the
14213 # attribute completely if the space is missing. We hope that not much content
14214 # depends on this, so are implementing the behavior below in Parsoid for
14215 # consistencies' sake.
14216 # FIXME: fix this behavior in the PHP parser?
14218 div with empty attribute value, no space before equals
14220 parsoid=wt2html,html2html
14222 <div class=>HTML rocks</div>
14224 <div>HTML rocks</div>
14227 <div class="">HTML rocks</div>
14231 HTML multiple attributes correction
14233 <p class="error" class="awesome">Awesome!</p>
14235 <p class="awesome">Awesome!</p>
14240 Table multiple attributes correction
14243 !+ class="error" class="awesome"| status
14248 <th class="awesome"> status
14256 <DIV ID="x">HTML ROCKS</DIV>
14258 <div id="x">HTML ROCKS</div>
14263 Non-ASCII pseudo-tags are rendered as text
14272 Pseudo-tag with URL 'name' renders as url link
14274 <http://example.com/>
14276 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
14281 text with amp in the middle of nowhere
14285 <p>Remember AT&T?
14290 text with character entity: eacute
14292 I always thought é was a cute letter.
14294 <p>I always thought é was a cute letter.
14297 <p>I always thought é was a cute letter.</p>
14301 text with entity-escaped character entity-like string: eacute
14303 I always thought &eacute; was a cute letter.
14305 <p>I always thought &eacute; was a cute letter.
14310 text with undefined character entity: xacute
14312 I always thought &xacute; was a cute letter.
14314 <p>I always thought &xacute; was a cute letter.
14318 # TODO: generalize to PHP parser?
14324 <data value="5">five</data>
14325 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
14326 <mark>This highlighted text</mark>
14328 <p><data value="5">five</data>
14329 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
14330 <mark>This highlighted text</mark></p>
14334 HTML tag with leading space is parsed as text
14338 <p>< div>foo< /div>
14343 ### Nesting tests (see bug 41545, 50604, 51081)
14346 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
14347 # Note that html2wt is considerably more difficult if we use <b> in
14348 # the test case, instead of <big>
14350 Ensure that HTML adoption agency algorithm is properly implemented.
14352 <big>X<big>Y</big>Z</big>
14354 <p><big>X<big>Y</big>Z</big>
14358 # This was bug 41545 in the PHP parser.
14359 # Note that tidy doesn't handle this correctly.
14363 <kbd>X<kbd>Y</kbd>Z</kbd>
14365 <p><kbd>X<kbd>Y</kbd>Z</kbd>
14369 # The following cases were bug 51081 in the PHP parser.
14370 # Note that there are some other nestable tags (b, i, etc) which are
14371 # not covered; see bug 51081 for discussion.
14373 # Note that tidy doesn't handle this correctly.
14377 <em>X<em>Y</em>Z</em>
14379 <p><em>X<em>Y</em>Z</em>
14383 # Note that tidy doesn't handle this correctly.
14385 Nesting of <strong>
14387 <strong>X<strong>Y</strong>Z</strong>
14389 <p><strong>X<strong>Y</strong>Z</strong>
14398 <p><q>X<q>Y</q>Z</q></p>
14401 # Note that tidy doesn't handle this correctly.
14405 <ruby>X<ruby>Y</ruby>Z</ruby>
14407 <p><ruby>X<ruby>Y</ruby>Z</ruby>
14411 # Note that tidy doesn't handle this correctly.
14415 <bdo>X<bdo>Y</bdo>Z</bdo>
14417 <p><bdo>X<bdo>Y</bdo>Z</bdo>
14429 [[Media:Foobar.jpg]]
14431 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
14436 Media link with text
14438 [[Media:Foobar.jpg|A neat file to look at]]
14440 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
14444 # FIXME: this is still bad HTML tag nesting
14445 # FIXME: doBlockLevels won't wrap this in a paragraph because it contains a div
14447 Media link with nasty text
14449 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
14451 <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>
14454 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Safe Link</a></p>
14455 <div style="display:none">" onmouseover="alert(document.cookie)" onfoo="</div>
14459 Media link to nonexistent file (bug 1702)
14461 [[Media:No such.jpg]]
14463 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
14468 Image link to nonexistent file (bug 1850 - good)
14470 [[File:No_such.jpg]]
14472 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
14475 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="File:No_such.jpg"><img resource="./File:No_such.jpg" src="./Special:FilePath/No_such.jpg" height="220" width="220"/></a></span></p>
14479 :Image link to nonexistent file (bug 1850 - bad)
14481 [[:Image:No such.jpg]]
14483 <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>
14486 <p><a rel="mw:WikiLink" href="./File:No_such.jpg" title="File:No such.jpg">Image:No such.jpg</a></p>
14492 Character reference normalization in link text (bug 1938)
14494 [[Main Page|this&that]]
14496 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
14503 Test for unicode normalization
14505 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
14509 (bug 19451) Links should refer to the normalized form.
14517 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14518 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14519 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14520 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14521 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14526 Empty attribute crash test (bug 2067)
14528 <font color="">foo</font>
14530 <p><font color="">foo</font>
14535 Empty attribute crash test single-quotes (bug 2067)
14537 <font color=''>foo</font>
14539 <p><font color="">foo</font>
14544 Attribute test: equals, then nothing
14546 <font color=>foo</font>
14548 <p><font>foo</font>
14553 Attribute test: unquoted value
14555 <font color=x>foo</font>
14557 <p><font color="x">foo</font>
14562 Attribute test: unquoted but illegal value (hash)
14564 <font color=#x>foo</font>
14566 <p><font color="#x">foo</font>
14571 Attribute test: no value
14573 <font color>foo</font>
14575 <p><font color="color">foo</font>
14580 Bug 2095: link with three closing brackets
14584 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
14587 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a>]</p>
14591 Bug 2095: link with pipe and three closing brackets
14593 [[Main Page|link]]]
14595 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
14598 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">link</a>]</p>
14602 Bug 2095: link with pipe and three closing brackets, version 2
14604 [[Main Page|[http://example.com/]]]
14606 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
14609 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">[http://example.com/]</a></p>
14618 Template:Dangerous attribute
14620 " onmouseover="alert(document.cookie)
14624 Template:Dangerous style attribute
14626 border-size: expression(alert(document.cookie))
14632 <div style="float: right; {{{1}}}">Magic div</div>
14636 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
14638 <div title="{{test}}"></div>
14640 <div title="This is a test template"></div>
14644 # Parsoid has enough context to handle this case
14646 Bug 2304: HTML attribute safety (dangerous template; 2309)
14648 <div title="{{dangerous attribute}}"></div>
14650 <div title=""></div>
14653 <div title='" onmouseover="alert(document.cookie)' about="#mwt2" typeof="mw:ExpandedAttrs" data-parsoid='{"stx":"html","a":{"title":"\" onmouseover=\"alert(document.cookie)"},"sa":{"title":"{{dangerous attribute}}"}}' data-mw='{"attribs":[[{"txt":"title"},{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[]],&quot;dsr&quot;:[12,35,null,null]}\" 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}}]}\">\" onmouseover=\"alert(document.cookie)</span>"}]]}'></div>
14657 Bug 2304: HTML attribute safety (dangerous style template; 2309)
14659 <div style="{{dangerous style attribute}}"></div>
14661 <div style="/* insecure input */"></div>
14666 Bug 2304: HTML attribute safety (safe parameter; 2309)
14668 {{div style|width: 200px}}
14670 <div style="float: right; width: 200px">Magic div</div>
14675 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
14677 {{div style|width: expression(alert(document.cookie))}}
14679 <div style="/* insecure input */">Magic div</div>
14684 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
14686 {{div style|"><script>alert(document.cookie)</script>}}
14688 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
14693 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
14695 {{div style|" ><script>alert(document.cookie)</script>}}
14697 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
14702 Bug 2304: HTML attribute safety (link)
14704 <div title="[[Main Page]]"></div>
14706 <div title="[[Main Page]]"></div>
14711 Bug 2304: HTML attribute safety (italics)
14713 <div title="''foobar''"></div>
14715 <div title="''foobar''"></div>
14720 Bug 2304: HTML attribute safety (bold)
14722 <div title="'''foobar'''"></div>
14724 <div title="'''foobar'''"></div>
14730 Bug 2304: HTML attribute safety (ISBN)
14732 <div title="ISBN 1234567890"></div>
14734 <div title="ISBN 1234567890"></div>
14739 Bug 2304: HTML attribute safety (RFC)
14741 <div title="RFC 1234"></div>
14743 <div title="RFC 1234"></div>
14748 Bug 2304: HTML attribute safety (PMID)
14750 <div title="PMID 1234567890"></div>
14752 <div title="PMID 1234567890"></div>
14757 Bug 2304: HTML attribute safety (web link)
14759 <div title="http://example.com/"></div>
14761 <div title="http://example.com/"></div>
14766 Bug 2304: HTML attribute safety (named web link)
14768 <div title="[http://example.com/ link]"></div>
14770 <div title="[http://example.com/ link]"></div>
14775 Bug 3244: HTML attribute safety (extension; safe)
14777 <div style="<nowiki>background:blue</nowiki>"></div>
14779 <div style="background:blue"></div>
14784 Bug 3244: HTML attribute safety (extension; unsafe)
14786 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
14788 <div style="/* insecure input */"></div>
14792 # More MSIE fun discovered by Tom Gilder
14795 MSIE CSS safety test: spurious slash
14797 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
14799 <div style="/* insecure input */">evil</div>
14804 MSIE CSS safety test: hex code
14806 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
14808 <div style="/* insecure input */">evil</div>
14813 MSIE CSS safety test: comment in url
14815 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
14817 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
14822 MSIE CSS safety test: comment in expression
14824 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
14826 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
14831 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
14833 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
14835 <p style="/* invalid control char */">A</p>
14840 MSIE 6 CSS safety test: Fullwidth (bug 55332)
14842 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
14843 <div style="top:EXPRESSION(alert())">B</div>
14845 <p style="/* insecure input */">A</p>
14846 <div style="/* insecure input */">B</div>
14851 MSIE 6 CSS safety test: IPA extensions (bug 55332)
14853 <div style="background-image:uʀʟ(javascript:alert())">A</div>
14854 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
14856 <div style="/* insecure input */">A</div>
14857 <p style="/* insecure input */">B</p>
14862 MSIE 6 CSS safety test: sup/sub script (bug 55332)
14864 <div style="background-image:url⁽javascript:alert())">A</div>
14865 <div style="background-image:url₍javascript:alert())">B</div>
14866 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
14868 <div style="/* insecure input */">A</div>
14869 <div style="/* insecure input */">B</div>
14870 <p style="/* insecure input */">C</p>
14878 title="data:text/html,<img src=1 onerror=alert(1)>"
14879 style="-o-link:attr(title);-o-link-source:current">X</div>
14881 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
14886 MSIE 6 CSS safety test: Repetition markers (bug 55332)
14888 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
14889 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
14890 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
14891 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
14892 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
14893 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
14894 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
14896 <p style="/* insecure input */">A</p>
14897 <p style="/* insecure input */">B</p>
14898 <p style="/* insecure input */">C</p>
14899 <p style="/* insecure input */">D</p>
14900 <p style="/* insecure input */">E</p>
14901 <p style="/* insecure input */">F</p>
14902 <p style="/* insecure input */">G</p>
14907 Table attribute legitimate extension
14910 !+ style="<nowiki>color:blue</nowiki>"| status
14915 <th style="color:blue"> status
14921 Table attribute safety
14924 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
14929 <th style="/* insecure input */"> status
14935 CSS line continuation 1
14937 <div style="background-image: u\ rl(test.jpg);"></div>
14939 <div style="/* insecure input */"></div>
14944 CSS line continuation 2
14946 <div style="background-image: u\ rl(test.jpg); "></div>
14948 <div style="/* insecure input */"></div>
14959 Expansion of multi-line templates in attribute values (bug 6255)
14961 <div style="background: {{identity|#00FF00}}">-</div>
14963 <div style="background: #00FF00">-</div>
14969 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
14971 <div style="background:
14974 <div style="background: #00FF00">-</div>
14977 <div style="background:
14982 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
14984 <div style="background: #00FF00">-</div>
14986 <div style="background: #00FF00">-</div>
14991 evil <math>-wiki-tags without Extension:Math enabled
14993 <math><img src="some evil external link"><script>some_evil_javascript();</script></math>
14995 <p><math><img src="some evil external link"><script>some_evil_javascript();</script></math></p>
14999 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
15002 Parser hook: empty input
15015 Parser hook: empty input using terminated empty elements
15028 Parser hook: empty input using terminated empty elements (space before)
15041 Parser hook: basic input
15055 Parser hook: case insensitive
15069 Parser hook: case insensitive, redux
15082 Parser hook: nested tags
15086 <tag><tag></tag></tag>
15097 Parser hook: basic arguments
15099 <tag width=200 height = "100" depth = '50' square></tag>
15107 'square' => 'square',
15114 Parser hook: argument containing a forward slash (bug 5344)
15116 <tag filename='/tmp/bla'></tag>
15121 'filename' => '/tmp/bla',
15128 Parser hook: empty input using terminated empty elements (bug 2374)
15141 # </tag> should be output literally since there is no matching tag that begins it
15143 Parser hook: basic arguments using terminated empty elements (bug 2374)
15145 <tag width=200 height = "100" depth = '50' square/>
15155 'square' => 'square',
15164 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
15168 Parser hook: static parser hook not inside a comment
15170 <statictag>hello, world</statictag>
15171 <statictag action=flush/>
15179 Parser hook: static parser hook inside a comment
15181 <!-- <statictag>hello, world</statictag> -->
15182 <statictag action=flush/>
15188 # Nested template calls; this case was broken by Parser.php rev 1.506,
15192 Template:One-parameter
15194 (My parameter is: {{{1}}})
15198 Template:Map-one-parameter
15200 {{{{{1}}}|{{{2}}}}}
15204 Nested template calls
15206 {{Map-one-parameter|One-parameter|param}}
15208 <p>(My parameter is: param)
15217 # HTML+Tidy effectively strips out the empty tags completely
15218 # But since Parsoid doesn't it wraps the <s></s> tags in p-tags
15219 # which Tidy would have done for the PHP parser had there been content inside it.
15221 Sanitizer: Closing of open tags
15223 <s></s><table></table>
15225 <s></s><table></table>
15228 <p><s></s></p><table></table>
15232 Sanitizer: Closing of open but not closed tags
15241 Sanitizer: Closing of closed but not open tags
15250 Sanitizer: Closing of closed but not open table tags
15252 Table not started</td></tr></table>
15254 <p>Table not started</td></tr></table>
15259 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
15261 <span id="æ: v">byte</span>[[#æ: v|backlink]]
15263 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
15267 # In HTML5, the restrictions are that id must contain at least one character,
15268 # and must not contain any space characters.
15270 Sanitizer: Validating the contents of the id attribute (bug 4515)
15274 <br id="" /><br id="a space" />
15279 # In HTML5, id must be unique amongst all the ids in the element's home subtree.
15281 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
15285 <br id="foo" /><br id="foo" />
15287 Something need to be done. foo-2 ?
15291 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
15294 <meta itemprop="hello" content="world">
15295 <meta http-equiv="refresh" content="5">
15296 <meta itemprop="hello" http-equiv="refresh" content="5">
15297 <link itemprop="hello" href="{{SERVER}}">
15298 <link rel="stylesheet" href="{{SERVER}}">
15299 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
15302 <div itemscope="itemscope">
15303 <p> <meta itemprop="hello" content="world" />
15304 <meta http-equiv="refresh" content="5">
15305 <meta itemprop="hello" content="5" />
15307 <link itemprop="hello" href="http://example.org" />
15308 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
15309 <link itemprop="hello" href="http://example.org" />
15315 Language converter: output gets cut off unexpectedly (bug 5757)
15319 this bit is safe: }-
15321 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
15323 then we get cut off here: }-
15325 all additional text is vanished
15327 <p>this bit is safe: }-
15328 </p><p>but if we add a conversion instance: xxx
15329 </p><p>then we get cut off here: }-
15330 </p><p>all additional text is vanished
15335 Self closed html pairs (bug 5487)
15338 <center><font id="bug" />Centered text</center>
15339 <div><font id="bug2" />In div text</div>
15341 <center><font id="bug" />Centered text</center>
15342 <div><font id="bug2" />In div text</div>
15351 Punctuation: nbsp before exclamation
15355 <p>C'est grave !
15360 Punctuation: CSS !important (bug 11874)
15362 <div style="width:50% !important">important</div>
15364 <div style="width:50% !important">important</div>
15369 Punctuation: CSS ! important (bug 11874; with space after)
15371 <div style="width:50% ! important">important</div>
15373 <div style="width:50% ! important">important</div>
15378 HTML bullet list, closed tags (bug 5497)
15391 <ul data-parsoid='{"stx":"html"}'>
15392 <li data-parsoid='{"stx":"html"}'>One</li>
15393 <li data-parsoid='{"stx":"html"}'>Two</li>
15399 HTML bullet list, unclosed tags (bug 5497)
15411 <ul data-parsoid='{"stx":"html"}'>
15412 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>One</li>
15413 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>Two</li>
15419 HTML ordered list, closed tags (bug 5497)
15432 <ol data-parsoid='{"stx":"html"}'>
15433 <li data-parsoid='{"stx":"html"}'>One</li>
15434 <li data-parsoid='{"stx":"html"}'>Two</li>
15440 HTML ordered list, unclosed tags (bug 5497)
15453 <ol data-parsoid='{"stx":"html"}'>
15454 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>One</li>
15455 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>Two</li>
15461 HTML nested bullet list, closed tags (bug 5497)
15486 HTML nested bullet list, open tags (bug 5497)
15523 HTML nested ordered list, closed tags (bug 5497)
15548 HTML nested ordered list, open tags (bug 5497)
15585 HTML ordered list item with parameters oddity
15587 <ol><li id="fragment">One</li>
15590 <ol><li id="fragment">One</li>
15595 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
15597 bug 5918: autonumbering
15599 [http://first/] [http://second] [ftp://ftp]
15603 [mailto:enclosed@mail.tld With target]
15605 [mailto:enclosed@mail.tld]
15607 mailto:inline@mail.tld
15609 <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>
15610 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
15611 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
15612 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
15613 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
15616 <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>
15617 <p><a rel="mw:ExtLink" href="ftp://inlineftp">ftp://inlineftp</a></p>
15618 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld">With target</a></p>
15619 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld"></a></p>
15620 <p><a rel="mw:ExtLink" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a></p>
15625 # Security and HTML correctness
15626 # From Nick Jenkins' fuzz testing
15630 Fuzz testing: Parser13
15645 Fuzz testing: Parser14
15650 <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>
15651 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15653 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
15659 <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>
15661 <div id="toc" class="toc">
15662 <div id="toctitle">
15666 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
15673 Fuzz testing: Parser14-table
15678 <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>
15679 <table style="__TOC__">
15684 <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>
15685 <table style="__TOC__">
15692 # Known to produce bogus xml (extra </td>)
15694 Fuzz testing: Parser16
15723 Fuzz testing: Parser21
15726 ! irc://{{ftp://a" onmouseover="alert('hello world');"
15731 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
15741 Fuzz testing: Parser22
15743 http://===r:::https://b
15747 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
15755 # Known to produce bad XML for now
15757 Fuzz testing: Parser24
15764 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
15765 <br style="onmouseover='alert(document.cookie);' " />
15767 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
15772 <u class="|">}}}} >
15773 <br style="onmouseover='alert(document.cookie);'" />
15775 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
15784 # Note: the current result listed for this is not what the original one was,
15785 # but the original bug was JavaScript injection, which is fixed in any case.
15786 # It's not clear that the original result listed was any more correct than the
15787 # current one. Original result:
15790 # <li class="||">
15791 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
15793 Fuzz testing: Parser25 (bug 6055)
15799 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
15801 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
15806 Fuzz testing: URL adjacent extension (with space, clean)
15808 http://example.com <nowiki>junk</nowiki>
15810 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
15813 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a> <span typeof="mw:Nowiki">junk</span></p>
15817 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
15819 http://example.com<nowiki>junk</nowiki>
15821 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
15824 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a><span typeof="mw:Nowiki">junk</span></p>
15828 Fuzz testing: URL adjacent extension (no space, dirty; pre)
15830 http://example.com<pre>junk</pre>
15832 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
15835 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></p>
15840 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a></p><pre data-parsoid='{"stx":"html"}'>junk</pre>
15844 Fuzz testing: image with bogus manual thumbnail
15846 [[Image:foobar.jpg|thumbnail= ]]
15848 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
15851 <figure class="mw-default-size" typeof="mw:Error mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,2,2]}' data-mw='{"errors":[{"key":"missing-thumbnail","message":"This thumbnail does not exist.","params":{"name":""}}],"thumb":""}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"sa":{},"dsr":[2,30,null,null]}'><img resource="./File:Foobar.jpg" src="./Special:FilePath/" height="220" width="220" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"220","width":"220"},"sa":{"resource":"Image:foobar.jpg"}}'/></a></figure>
15855 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
15857 <pre dir=" "></pre>
15859 <pre dir=" "></pre>
15864 Parsing optional HTML elements (Bug 6171)
15869 <td> Some tabular data</td>
15870 <td> More tabular data ...
15871 <td> And yet som tabular data</td>
15877 <td> Some tabular data</td>
15878 <td> More tabular data ...
15879 </td><td> And yet som tabular data</td>
15886 Correct handling of <td>, <tr> (Bug 6171)
15891 <td> Some tabular data</td>
15892 <td> More tabular data ...</td>
15893 <td> And yet som tabular data</td>
15899 <td> Some tabular data</td>
15900 <td> More tabular data ...</td>
15901 <td> And yet som tabular data</td>
15909 Parsing crashing regression (fr:JavaScript)
15913 <p></body></x>
15918 Inline wiki vs wiki block nesting
15924 <p><b>Bold paragraph</b>
15925 </p><p>New wiki paragraph
15929 # FIXME: The current php output is documented
15930 # and desired output is the parsoid target.
15932 Inline HTML vs wiki block nesting
15938 <p><b>Bold paragraph
15939 </p><p>New wiki paragraph</b>
15942 <p><b>Bold paragraph</b>
15943 </p><p>New wiki paragraph
15947 # Original result was this:
15948 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
15950 # While that might be marginally more intuitive, maybe, the six-apostrophe
15951 # construct is clearly pathological and the result stated here (which is what
15952 # the parser actually does) is about as reasonable as anything.
15954 Mixing markup for italics and bold
15957 '''bold''''''bold''bolditalics'''''
15959 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
15967 Article for special page transclusion test
15971 Special page transclusion
15974 {{Special:Prefixindex/Xyzzyx}}
15976 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15981 Special page transclusion twice (bug 5021)
15984 {{Special:Prefixindex/Xyzzyx}}
15985 {{Special:Prefixindex/Xyzzyx}}
15987 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15988 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15993 Transclusion of default MediaWiki message
15995 {{MediaWiki:Mainpage}}
16002 Transclusion of nonexistent MediaWiki message
16004 {{MediaWiki:Mainpagexxx}}
16006 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
16011 Transclusion of MediaWiki message with underscore
16013 {{MediaWiki:history_short}}
16020 Transclusion of MediaWiki message with space
16022 {{MediaWiki:history short}}
16029 Invalid header with following text
16039 Section extraction test (section 0)
16059 Section extraction test (section 1)
16081 Section extraction test (section 2)
16102 Section extraction test (section 3)
16122 Section extraction test (section 4)
16146 Section extraction test (section 5)
16166 Section extraction test (section 6)
16187 Section extraction test (section 7)
16207 Section extraction test (section 8)
16227 Section extraction test (section 9)
16248 Section extraction test (section 10)
16268 Section extraction test (nonexistent section 11)
16287 Section extraction test with bogus heading (section 1)
16292 ==bogus== not a legal section
16296 ==bogus== not a legal section
16300 Section extraction test with bogus heading (section 2)
16305 ==bogus== not a legal section
16312 Section extraction test with comment after heading (section 1)
16324 Section extraction test with comment after heading (section 2)
16336 Section extraction test with bogus <nowiki> heading (section 1)
16341 ==bogus== <nowiki>not a legal section</nowiki>
16345 ==bogus== <nowiki>not a legal section</nowiki>
16349 Section extraction test with bogus <nowiki> heading (section 2)
16354 ==bogus== <nowiki>not a legal section</nowiki>
16361 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
16362 # instead of respecting commented sections
16364 Section extraction prefixed by comment (section 1)
16375 Section extraction prefixed by comment (section 2)
16386 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
16387 # instead of respecting HTML-style headings
16389 Section extraction, mixed wiki and html (section 1)
16405 Section extraction, mixed wiki and html (section 2)
16421 # Formerly testing for bug 3342
16423 Section extraction, heading surrounded by <noinclude>
16427 <noinclude>==unmarked==</noinclude>
16433 # Test behavior of bug 19910
16435 Sectiion with all-equals
16440 The line above must have a trailing space
16443 But just in case it doesn't...
16447 But just in case it doesn't...
16451 Section replacement test (section 0)
16482 Section replacement test (section 1)
16511 Section replacement test (section 2)
16541 Section replacement test (section 3)
16572 Section replacement test (section 4)
16599 Section replacement test (section 5)
16630 Section replacement test (section 6)
16660 Section replacement test (section 7)
16691 Section replacement test (section 8)
16722 Section replacement test (section 9)
16751 Section replacement test (section 10)
16781 Section replacement test with initial whitespace (bug 13728)
16785 Preformatted initial line
16789 Preformatted initial line
16796 Section extraction, heading followed by pre with 20 spaces (bug 6398)
16808 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
16821 Section extraction, <pre> around bogus header (bug 10309)
16838 Section replacement, <pre> around bogus header (bug 10309)
16840 noxml replace=2,"xxx"
16861 Handling of 
 in URLs
16865 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16868 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://
16870 a</a></li></ul></li></ul>
16874 Handling of %0A in URLs
16878 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16881 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16885 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
16887 5 quotes, code coverage +1 line
16894 <p><b><i></i></b></p>
16897 # same html as previous, but wikitext adjusted to match parsoid html2wt
16898 # note that wt2html and html2html will put the <i> before the <b>
16900 5 quotes, code coverage +1 line w/ nowiki (1)
16902 parsoid=wt2wt,html2wt
16904 '''''<nowiki/>'''''
16909 <p><b><i></i></b></p>
16912 # same as previous, just swapping the <i> and <b>
16914 5 quotes, code coverage +1 line w/ nowiki (2)
16916 '''''<nowiki/>'''''
16921 <p><i><b></b></i></p>
16925 Special:Search page linking.
16929 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
16934 {{!}} is a magic word
16936 {{!}} is a magic word there and {{!}} is still a magic word here
16938 <p>| is a magic word there and | is still a magic word here
16941 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"!","href":"./Template:!"},"params":{},"i":0}}]}' data-parsoid='{"pi":[[]]}'>|</span> is a magic word there and <span about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"!","href":"./Template:!"},"params":{},"i":0}}]}' data-parsoid='{"pi":[[]]}'>|</span> is still a magic word here</p>
16947 title=[[Parser test]]
16952 * {{FULLPAGENAMEE}}
16954 * {{BASEPAGENAMEE}}
16958 * {{ROOTPAGENAMEE}}
16960 * {{TALKPAGENAMEE}}
16961 * {{SUBJECTPAGENAME}}
16962 * {{SUBJECTPAGENAMEE}}
16965 * {{NAMESPACENUMBER}}
16969 * {{SUBJECTSPACEE}}
16970 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
16972 <ul><li> Parser test</li>
16973 <li> Parser_test</li>
16974 <li> Parser test</li>
16975 <li> Parser_test</li>
16976 <li> Parser test</li>
16977 <li> Parser_test</li>
16978 <li> Parser test</li>
16979 <li> Parser_test</li>
16980 <li> Parser test</li>
16981 <li> Parser_test</li>
16982 <li> Talk:Parser test</li>
16983 <li> Talk:Parser_test</li>
16984 <li> Parser test</li>
16985 <li> Parser_test</li>
16993 <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>
16996 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
17006 image4 |300px| centre
17007 image5.svg| http://///////
17012 <ul class="gallery mw-gallery-traditional">
17013 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17014 <div class="thumb" style="height: 150px;">Image1.png</div>
17015 <div class="gallerytext">
17018 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17019 <div class="thumb" style="height: 150px;">Image2.gif</div>
17020 <div class="gallerytext">
17025 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17026 <div class="thumb" style="height: 150px;">Image3</div>
17027 <div class="gallerytext">
17030 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17031 <div class="thumb" style="height: 150px;">Image4</div>
17032 <div class="gallerytext">
17037 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17038 <div class="thumb" style="height: 150px;">Image5.svg</div>
17039 <div class="gallerytext">
17040 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
17044 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17045 <div class="thumb" style="height: 150px;">* image6</div>
17046 <div class="gallerytext">
17054 Gallery (with options)
17056 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
17057 File:Nonexistent.jpg|caption
17058 File:Nonexistent.jpg
17059 image:foobar.jpg|some '''caption''' [[Main Page]]
17061 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
17064 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
17065 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
17066 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17067 <div class="thumb" style="height: 70px;">Nonexistent.jpg</div>
17068 <div class="gallerytext">
17073 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17074 <div class="thumb" style="height: 70px;">Nonexistent.jpg</div>
17075 <div class="gallerytext">
17078 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17079 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/105px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/140px-Foobar.jpg 2x" /></a></div></div>
17080 <div class="gallerytext">
17081 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
17085 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17086 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/105px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/140px-Foobar.jpg 2x" /></a></div></div>
17087 <div class="gallerytext">
17090 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17091 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/105px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/140px-Foobar.jpg 2x" /></a></div></div>
17092 <div class="gallerytext">
17102 Gallery with link that has fragment
17105 image:foobar.jpg|link=Main_Page
17106 image:foobar.jpg|link=Main_Page#section
17107 image:foobar.jpg|link=Main Page#section|caption
17110 <ul class="gallery mw-gallery-traditional">
17111 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17112 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17113 <div class="gallerytext">
17116 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17117 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17118 <div class="gallerytext">
17121 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17122 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17123 <div class="gallerytext">
17133 Gallery with wikitext inside caption
17136 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
17137 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
17140 <ul class="gallery mw-gallery-traditional">
17141 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17142 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17143 <div class="gallerytext">
17144 <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>
17148 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17149 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17150 <div class="gallerytext">
17151 <p>This is a test template
17160 gallery (with showfilename option)
17162 <gallery showfilename>
17163 File:Nonexistent.jpg|caption
17164 File:Nonexistent.jpg
17165 image:foobar.jpg|some '''caption''' [[Main Page]]
17169 <ul class="gallery mw-gallery-traditional">
17170 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17171 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
17172 <div class="gallerytext">
17173 <p><a href="/wiki/File:Nonexistent.jpg" title="File:Nonexistent.jpg">Nonexistent.jpg</a><br />
17178 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17179 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
17180 <div class="gallerytext">
17181 <p><a href="/wiki/File:Nonexistent.jpg" title="File:Nonexistent.jpg">Nonexistent.jpg</a><br />
17185 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17186 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17187 <div class="gallerytext">
17188 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
17189 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
17193 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17194 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17195 <div class="gallerytext">
17196 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
17205 Gallery (with namespace-less filenames)
17208 File:Nonexistent.jpg
17214 <ul class="gallery mw-gallery-traditional">
17215 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17216 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
17217 <div class="gallerytext">
17220 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17221 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
17222 <div class="gallerytext">
17225 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17226 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17227 <div class="gallerytext">
17230 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17231 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17232 <div class="gallerytext">
17240 HTML Hex character encoding (spells the word "JavaScript")
17242 parsoid=wt2html,wt2wt,html2html
17244 JavaScript
17246 <p>JavaScript
17251 <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>
17255 HTML Hex character encoding bogus encoding (bug 26437 regression check)
17259 <p>&#xsee;&#XSEE;
17262 <p>&#xsee;&#XSEE;</p>
17266 HTML Hex character encoding mixed case
17268 parsoid=wt2html,wt2wt,html2html
17277 <p><span typeof="mw:Entity">î</span><span typeof="mw:Entity">î</span></p>
17281 __FORCETOC__ override
17293 ISBN 978-0-1234-56 789
17295 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
17298 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789</p>
17300 <p><a href="./Special:BookSources/9780123456" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 978-0-1234-56</a><span typeof="mw:Entity" data-parsoid='{"src":"&#x20;","srcContent":" "}'> </span>789</p>
17304 ISBN followed by 5 spaces
17315 ISBN ISBN 1234567890
17317 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
17320 <p>ISBN <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a></p>
17330 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
17331 <a href="/wiki/Special:BookSources/080442957X" class="internal mw-magiclink-isbn">ISBN 080442957X</a>
17332 <a href="/wiki/Special:BookSources/978080442957X" class="internal mw-magiclink-isbn">ISBN 978080442957X</a>
17335 <p><a href="./Special:BookSources/346204561X" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 3-462-04561-X</a>
17336 <a href="./Special:BookSources/080442957X" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 080442957X</a>
17337 <a href="./Special:BookSources/978080442957X" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 978080442957X</a></p>
17341 ISBN with empty prefix (parsoid test)
17345 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
17348 <p><a href="Special:BookSources/1234567890" rel="mw:ExtLink">ISBN 1234567890</a></p>
17352 Bug 22905: <abbr> followed by ISBN followed by </a>
17354 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
17356 <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>
17359 <p><abbr data-parsoid='{"stx":"html"}'>(fr)</abbr> <a href="./Special:BookSources/2753300917" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 2753300917</a> <a rel="mw:ExtLink" href="http://www.example.com">example.com</a></p>
17367 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
17372 Double RFC with a wiki link
17376 <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>
17385 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
17388 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987</p>
17392 Centre-aligned image
17394 [[Image:foobar.jpg|centre]]
17396 <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>
17403 [[Image:foobar.jpg|none]]
17405 <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>
17410 Width + Height sized image (using px) (height is ignored)
17412 [[Image:foobar.jpg|640x480px]]
17414 <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>
17419 Width-sized image (using px, no following whitespace)
17421 [[Image:foobar.jpg|640px]]
17423 <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>
17428 Width-sized image (using px, with following whitespace - test regression from r39467)
17430 [[Image:foobar.jpg|640px ]]
17432 <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>
17437 Width-sized image (using px, with preceding whitespace - test regression from r39467)
17439 [[Image:foobar.jpg| 640px]]
17441 <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>
17446 Image with page parameter
17450 [[File:LoremIpsum.djvu|page=2]]
17452 <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>
17455 <p><span class="mw-default-size" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"page","ak":"page=2"}]}'><a href="./File:LoremIpsum.djvu" data-parsoid='{"a":{"href":"./File:LoremIpsum.djvu"},"sa":{}}'><img resource="./File:LoremIpsum.djvu" src="//example.com/images/5/5f/LoremIpsum.djvu" height="3508" width="2480" data-parsoid='{"a":{"resource":"./File:LoremIpsum.djvu","height":"3508","width":"2480"},"sa":{"resource":"File:LoremIpsum.djvu"}}'/></a></span></p>
17459 Another italics / bold test
17467 # FIXME: The php output seems broken. It's interleaving some open/close tags.
17473 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd></dt></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl>
17476 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd></dd></dl></dd></dl></dt></dl></dt></dl></dt></dl></dd></dl>
17481 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
17483 Images with the "|" character in the comment
17485 [[File:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
17487 <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>
17490 <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>
17494 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
17496 <html><script>alert(1);</script></html>
17498 <p><html><script>alert(1);</script></html>
17503 HTML with raw HTML ($wgRawHtml==true)
17507 <html><script>alert(1);</script></html>
17509 <p><script>alert(1);</script>
17514 Parents of subpages, one level up
17516 subpage title=[[Subpage test/L1/L2/L3]]
17520 <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>
17526 Parents of subpages, one level up, not named
17528 subpage title=[[Subpage test/L1/L2/L3]]
17532 <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>
17539 Parents of subpages, two levels up
17541 subpage title=[[Subpage test/L1/L2/L3]]
17547 <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
17548 </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>
17553 Parents of subpages, two levels up, without trailing slash or name.
17555 subpage title=[[Subpage test/L1/L2/L3]]
17564 Parents of subpages, two levels up, with lots of extra trailing slashes.
17566 subpage title=[[Subpage test/L1/L2/L3]]
17570 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">Subpage test/L1</a>
17575 Subpage test/L1/L2/L3Sibling
17581 Transclusion of a sibling page (one level up)
17583 subpage title=[[Subpage test/L1/L2/L3]]
17592 Transclusion of a child page
17594 subpage title=[[Subpage test/L1/L2]]
17603 Non-transclusion because of too many up levels
17605 subpage title=[[Subpage test/L1/L2/L3]]
17607 {{../../../../More than parent}}
17609 <p>{{../../../../More than parent}}
17614 Definition list code coverage
17620 <dl><dt> title  </dt>
17622 <dt> title </dt>
17628 <dl><dt> title <span typeof="mw:Placeholder"> </span></dt><dd> def</dd>
17629 <dt> title<span typeof="mw:Placeholder"> </span></dt><dd> def</dd>
17630 <dt>title</dt><dd> def</dd></dl>
17634 Don't fall for the self-closing div
17636 <div>hello world</div/>
17638 <div>hello world</div>
17647 <p>[[:Template:Msg]]
17656 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
17660 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
17662 Always escape literal '>' in output, not just after '<'
17676 <p>This is a test template
17677 This is a test template
17689 Inclusion of !userCanEdit() content
17693 <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>
17699 Out-of-order TOC heading levels
17708 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17710 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
17712 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
17713 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
17716 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
17718 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
17719 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
17725 <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>
17726 <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>
17727 <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>
17728 <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>
17729 <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>
17730 <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>
17736 ISBN with a dummy number
17746 ISBN with space-delimited number
17750 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
17756 ISBN with multiple spaces, no number
17775 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
17776 </p><p>ISBN 12345678901
17782 ISBN with trailing year (bug 8110)
17784 ISBN 1-234-56789-0 - 2006
17786 ISBN 1 234 56789 0 - 2006
17788 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
17789 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
17797 {{anchorencode:foo bar©#%n}}
17799 <p>foo_bar.C2.A9.23.25n
17804 anchorencode trims spaces
17806 {{anchorencode: __pretty__please__}}
17813 anchorencode deals with links
17815 {{anchorencode: [[hello|world]] [[hi]]}}
17822 anchorencode deals with templates
17824 {{anchorencode: {{Foo}} }}
17831 anchorencode encodes like the TOC generator: (bug 18431)
17833 === _ +:.3A%3A&&]] ===
17834 {{anchorencode: _ +:.3A%3A&&]] }}
17837 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
17838 <p>.2B:.3A.253A.26.26.5D.5D
17843 Bug 6200: blockquotes and paragraph formatting
17864 Bug 8293: Use of center tag ruins paragraph formatting
17885 Parsing of overlapping (improperly nested) inline html tags
17887 <span><s>x</span></s>
17889 <p><span><s>x</span></s></span>
17892 <p><span><s>x</s></span>
17897 ### Language variants related tests
17900 Self-link in language variants
17902 title=[[Dunav]] language=sr
17904 Both [[Dunav]] and [[Дунав]] are names for this river.
17906 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
17917 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
17919 title=[[Duna]] language=sr
17921 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
17923 <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.
17928 Link to a section of a variant of this title shouldn't be parsed as self-link
17930 title=[[Duna]] language=sr
17932 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
17934 <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.
17939 Link to pages in language variants
17943 Main Page can be written as [[Маин Паге]]
17945 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
17951 Multiple links to pages in language variants
17955 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
17957 <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>.
17963 Simple template in language variants
17969 <p>This is a test template
17975 Template with explicit namespace in language variants
17981 <p>This is a test template
17987 Basic test for template parameter in language variants
17991 {{парамтест|param=foo}}
17993 <p>This is a test template with parameter foo
17999 Simple category in language variants
18003 [[Category:МедиаWики Усер'с Гуиде]]
18005 <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>
18022 Don't convert blue categorylinks to another variant (bug 33210)
18026 [[A]][[Category:分类]]
18028 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
18033 Stripping -{}- tags (language variants)
18037 Latin proverb: -{Ne nuntium necare}-
18039 <p>Latin proverb: Ne nuntium necare
18045 Prevent conversion with -{}- tags (language variants)
18047 language=sr variant=sr-ec
18049 Latinski: -{Ne nuntium necare}-
18051 <p>Латински: Ne nuntium necare
18057 Prevent conversion of text with -{}- tags (language variants)
18059 language=sr variant=sr-ec
18061 Latinski: -{Ne nuntium necare}-
18063 <p>Латински: Ne nuntium necare
18069 Prevent conversion of links with -{}- tags (language variants)
18071 language=sr variant=sr-ec
18075 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
18081 -{}- tags within headlines (within html for parserConvert())
18083 language=sr variant=sr-ec
18087 <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>
18093 Explicit definition of language variant alternatives
18095 language=zh variant=zh-tw
18097 -{zh:China;zh-tw:Taiwan}-, not China
18099 <p>Taiwan, not China
18105 Conversion around HTML tags
18107 language=sr variant=sr-ec
18109 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
18110 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
18113 <span title="ЛаCтин">ски</span>
18119 Explicit session-wise language variant mapping (A flag and - flag)
18121 language=zh variant=zh-tw
18123 Taiwan is not China.
18124 But -{A|zh:China;zh-tw:Taiwan}- is China,
18125 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
18126 and -{China}- is China.
18128 <p>Taiwan is not China.
18129 But Taiwan is Taiwan,
18130 (This should be stripped!)
18131 and China is China.
18136 Explicit session-wise language variant mapping (H flag for hide)
18138 language=zh variant=zh-tw
18140 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
18143 <p>(This should be stripped!)
18149 Adding explicit conversion rule for title (T flag)
18151 language=zh variant=zh-tw showtitle
18153 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
18156 <p>Should be stripped!
18161 Testing that changing the language variant here in the tests actually works
18163 language=zh variant=zh showtitle
18165 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
18168 <p>Should be stripped!
18173 Recursive conversion of alt and title attrs shouldn't clear converter state
18175 language=zh variant=zh-cn showtitle
18177 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
18178 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
18182 Should be stripped<span title="Exclamation">!</span>
18187 Bug 24072: more test on conversion rule for title
18189 language=zh variant=zh-tw showtitle
18191 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
18192 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
18195 <p>This should be stripped!
18196 This won't take interferes with the title rule.
18201 Partly disable title conversion if variant == main language code
18203 language=zh variant=zh title=[[ZH]] showtitle
18205 -{T|zh-cn:CN;zh-tw:TW}-
18213 Partly disable title conversion if variant == main language code, more
18215 language=zh variant=zh title=[[ZH]] showtitle
18225 Raw output of variant escape tags (R flag)
18227 language=zh variant=zh-tw
18229 Raw: -{R|zh:China;zh-tw:Taiwan}-
18231 <p>Raw: zh:China;zh-tw:Taiwan
18236 Nested using of manual convert syntax
18238 language=zh variant=zh-hk
18240 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
18242 <p>Nested: Hello Hong Kong!
18247 Proper conversion of text in external links
18249 language=sr variant=sr-ec
18251 http://www.google.com
18252 gopher://www.google.com
18253 [http://www.google.com http://www.google.com]
18254 [gopher://www.google.com gopher://www.google.com]
18255 [https://www.google.com irc://www.google.com]
18256 [ftp://www.google.com www.google.com/ftp://dir]
18257 [//www.google.com www.google.com]
18259 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
18260 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
18261 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
18262 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
18263 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
18264 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
18265 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
18270 Do not convert roman numbers to language variants
18272 language=sr variant=sr-ec
18276 <p>Фридрих IV је цар.
18281 Unclosed language converter markup "-{"
18292 Don't convert raw rule "-{R|=>}-" to "=>"
18303 Don't break link parsing if language converter markup is in the caption.
18305 language=sr variant=sr-ec
18307 [[Main Page|-{R|main page}-]]
18309 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
18313 # FIXME: This test is currently broken in the PHP parser (bug 52661)
18315 Don't break image parsing if language converter markup is in the caption.
18319 [[File:Foobar.jpg|-{R|caption}-]]
18321 <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>
18325 # FIXME: This test is currently broken in the PHP parser (bug 52661)
18327 Don't break list handling if language converter markup is in the item.
18329 language=zh variant=zh-cn
18331 ;-{zh-cn:AAA;zh-tw:BBB}-
18333 <dl><dt><span class="error">在手动语言转换规则中检测到错误</span></dd></dl>
18340 # FIXME: This test is currently broken in the PHP parser (bug 52661)
18342 Don't break table handling if language converter markup is in the cell.
18344 language=sr variant=sr-ec
18367 Bug 529: Uncovered bullet
18376 # Plain MediaWiki does not remove empty lists, but tidy actually does.
18377 # Templates in Wikipedia rely on this behavior, as tidy has always been
18378 # enabled there. These tests are normally run *without* tidy, so specify the
18379 # full output here.
18380 # To test realistic parsing behavior, apply a tidy-like transformation to both
18381 # the expected output and your parser's output.
18383 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
18385 ******* Foo {{bullet}}
18387 <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>
18393 Bug 529: Uncovered table already at line-start
18416 Bug 529: Uncovered bullet in parser function result
18418 * Foo {{lc:{{bullet}} }}
18426 Bug 5678: Double-parsed template argument
18428 {{lc:{{{1}}}|hello}}
18435 Bug 5678: Double-parsed template invocation
18437 {{lc:{{paramtest {{!}} param = hello }} }}
18439 <p>{{paramtest | param = hello }}
18444 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
18447 title=[[Main Page]]
18449 {{PRVNÍVELKÉ:ěščř}}
18450 {{prvnívelké:ěščř}}
18470 Morwen/13: Unclosed link followed by heading
18477 <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>
18482 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
18489 <h1><span class="mw-headline" id="heading">heading</span></h1>
18494 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
18501 <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>
18516 Paragraphs inside divs (no extra line breaks)
18528 Paragraphs inside divs (extra line break on open)
18543 Paragraphs inside divs (extra line break on close)
18558 Paragraphs inside divs (extra line break on open and close)
18575 Nesting tags, paragraphs on lines which begin with <div>
18577 <div></div><strong>A
18580 <p><strong>A</strong></p>
18581 <p><strong>B</strong></p>
18589 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
18591 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
18593 <blockquote>Line one
18595 Line two</blockquote>
18597 <blockquote>Line one
18598 Line two</blockquote>
18602 <p>Line one Line two</p>
18607 Bug 6200: paragraphs inside blockquotes (extra line break on open)
18612 Line two</blockquote>
18617 Line two</blockquote>
18622 Line two</blockquote>
18626 Bug 6200: paragraphs inside blockquotes (extra line break on close)
18628 <blockquote>Line one
18633 <blockquote>Line one
18646 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
18668 Paragraphs inside blockquotes/divs (no extra line breaks)
18670 <blockquote><div>Line one
18672 Line two</div></blockquote>
18674 <blockquote><div>Line one
18675 Line two</div></blockquote>
18680 Paragraphs inside blockquotes/divs (extra line break on open)
18685 Line two</div></blockquote>
18690 Line two</div></blockquote>
18695 Paragraphs inside blockquotes/divs (extra line break on close)
18697 <blockquote><div>Line one
18700 </div></blockquote>
18702 <blockquote><div>Line one
18705 </div></blockquote>
18710 Paragraphs inside blockquotes/divs (extra line break on open and close)
18716 </div></blockquote>
18722 </div></blockquote>
18727 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
18729 wgLinkHolderBatchSize=0
18735 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
18736 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
18737 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
18742 Free external link invading image caption
18744 [[Image:Foobar.jpg|thumb|http://x|hello]]
18746 <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>
18751 Bug 15196: localised external link numbers
18755 [http://en.wikipedia.org/]
18757 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
18760 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/"></a></p>
18764 Multibyte character in padleft
18766 {{padleft:-Hello|7|Æ}}
18773 Multibyte character in padright
18775 {{padright:Hello-|7|Æ}}
18782 formatdate parser function
18784 {{#formatdate:2009-03-24}}
18786 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
18791 formatdate parser function, with default format
18793 {{#formatdate:2009-03-24|mdy}}
18795 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
18800 Spacing of numbers in formatted dates
18802 {{#formatdate:January 15}}
18804 <p><span class="mw-formatted-date" title="01-15">January 15</span>
18809 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
18811 language=nl title=[[MediaWiki:Common.css]]
18813 {{#formatdate:2009-03-24|dmy}}
18815 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
18828 Edit comment with link
18832 I like the [[Main Page]] a lot
18834 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
18838 Edit comment with link and link text
18842 I like the [[Main Page|best pages]] a lot
18844 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
18848 Edit comment with link and link text with suffix
18852 I like the [[Main Page|best page]]s a lot
18854 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
18858 Edit comment with section link (non-local, eg in history list)
18860 comment title=[[Main Page]]
18862 /* External links */ removed bogus entries
18864 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
18868 Edit comment with section link and text before it (non-local, eg in history list)
18870 comment title=[[Main Page]]
18872 pre-comment text /* External links */ removed bogus entries
18874 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>
18878 Edit comment with section link (local, eg in diff view)
18880 comment local title=[[Main Page]]
18882 /* External links */ removed bogus entries
18884 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
18888 Edit comment with subpage link (bug 14080)
18892 title=[[Subpage test]]
18894 Poked at a [[/subpage]] here...
18896 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
18900 Edit comment with subpage link and link text (bug 14080)
18904 title=[[Subpage test]]
18906 Poked at a [[/subpage|neat little page]] here...
18908 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
18912 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
18915 title=[[Subpage test]]
18917 Poked at a [[/subpage]] here...
18919 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
18923 Edit comment with bare anchor link (local, as on diff)
18927 title=[[Main Page]]
18931 <a href="#section">#section</a>
18935 Edit comment with bare anchor link (non-local, as on history)
18938 title=[[Main Page]]
18942 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
18946 Anchor starting with underscore
18950 <p><a href="#_ref">One</a>
18955 Id starting with underscore
18957 <div id="_ref"></div>
18959 <div id="_ref"></div>
18964 Space normalisation on autocomment (bug 22784)
18967 title=[[Main Page]]
18969 /* __hello__world__ */
18971 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
18975 percent-encoding and + signs in comments (Bug 26410)
18979 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
18981 <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>
18984 # Parsoid doesn't support this yet: see bug 73581
18985 # but it *should* omit the 'src' attribute if the image is bad.
18986 # PHP side of tests was disabled in
18987 # mediawiki/core:6bd31e7d95161a6e88fa86df60871051da997c3c
18988 # because of issues in the PHP parserTests infrastructure
18989 # (but the output below is indeed what the PHP side emits)
18991 Bad images - basic functionality
18994 !! DISABLED/html/php
18996 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"bad-image","message":"This image is blacklisted in this context."}]}'><a href="File:Bad.jpg"><img resource="./File:Bad.jpg" height="220" width="220"/></a></span></p>
19000 Bad images - bug 16039: text after bad image disappears
19005 !! DISABLED/html/php
19011 <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"bad-image","message":"This image is blacklisted in this context."}]}'><a href="File:Bad.jpg"><img resource="./File:Bad.jpg" height="220" width="220"/></a></span>
19016 Verify that displaytitle works (bug #22501) no displaytitle
19020 wgAllowDisplayTitle=true
19021 wgRestrictDisplayTitle=false
19023 this is not the the title
19026 <p>this is not the the title
19031 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
19036 wgAllowDisplayTitle=true
19037 wgRestrictDisplayTitle=false
19039 this is not the the title
19040 {{DISPLAYTITLE:whatever}}
19043 <p>this is not the the title
19048 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
19053 wgAllowDisplayTitle=true
19054 wgRestrictDisplayTitle=true
19056 this is not the the title
19057 {{DISPLAYTITLE:whatever}}
19060 <p>this is not the the title
19065 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
19070 wgAllowDisplayTitle=true
19071 wgRestrictDisplayTitle=true
19073 this is not the the title
19074 {{DISPLAYTITLE:screen}}
19077 <p>this is not the the title
19082 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
19087 wgAllowDisplayTitle=false
19089 this is not the the title
19090 {{DISPLAYTITLE:screen}}
19093 <p>this is not the the title
19094 <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>
19099 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
19104 wgAllowDisplayTitle=false
19106 this is not the the title
19109 <p>this is not the the title
19114 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
19119 wgAllowDisplayTitle=true
19120 wgRestrictDisplayTitle=true
19122 this is not the the title
19123 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
19125 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
19126 <p>this is not the the title
19131 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
19136 wgAllowDisplayTitle=true
19137 wgRestrictDisplayTitle=true
19139 this is not the the title
19140 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
19142 <span style="color: red;">s</span>creen
19143 <p>this is not the the title
19148 Page status indicators: Empty name is invalid
19152 <indicator name=" "></indicator>
19153 <indicator></indicator>
19155 <p><span class="error"><strong>Error:</strong> Page status indicators' <code>name</code> attribute must not be empty.</span>
19156 <span class="error"><strong>Error:</strong> Page status indicators' <code>name</code> attribute must not be empty.</span>
19161 Page status indicators: Weird syntaxes that are okay
19165 <indicator name="empty" />
19166 <indicator name></indicator>
19175 Page status indicators: Torture test
19179 <indicator name="01">hello world</indicator>
19180 <indicator name="02">[[Main Page]]</indicator>
19181 <indicator name="03">[[File:Foobar.jpg|25px|link=]]</indicator>
19182 <indicator name="04">[[File:Foobar.jpg|25px]]</indicator>
19183 <indicator name="05">* foo
19185 <indicator name="06"><nowiki>foo</nowiki></indicator>
19186 <indicator name="07"> Preformatted</indicator>
19187 <indicator name="08"><div>Broken tag</indicator>
19188 <indicator name="09">{| class=wikitable
19191 <indicator name="10">Two
19193 paragraphs</indicator>
19196 02=<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
19197 03=<img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/25px-Foobar.jpg" width="25" height="3" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/38px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg 2x" />
19198 04=<a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/25px-Foobar.jpg" width="25" height="3" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/38px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg 2x" /></a>
19199 05=<ul><li> foo</li>
19203 07=<pre>Preformatted
19205 08=<div>Broken tag</div>
19207 09=<table class="wikitable">
19224 preload: check <noinclude> and <includeonly>
19228 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
19234 preload: check <onlyinclude>
19238 Goodbye <onlyinclude>Hello world</onlyinclude>
19244 preload: can pass tags through if we want to
19248 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
19250 <includeonly>Hello world</includeonly>
19254 preload: check that it doesn't try to do tricks
19258 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
19260 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
19264 Play a bit with r67090 and bug 3158
19266 <div style="width:50% !important"> </div>
19267 <div style="width:50% !important"> </div>
19268 <div style="width:50% !important"> </div>
19269 <div style="border : solid;"> </div>
19271 <div style="width:50% !important"> </div>
19272 <div style="width:50% !important"> </div>
19273 <div style="width:50% !important"> </div>
19274 <div style="border : solid;"> </div>
19277 <div style="width:50% !important" data-parsoid='{"stx":"html"}'><span typeof="mw:Entity" data-parsoid='{"srcContent":" "}'> </span></div>
19278 <div style="width:50% !important" data-parsoid='{"stx":"html","a":{"style":"width:50% !important"},"sa":{"style":"width:50%&nbsp;!important"}}'><span typeof="mw:Entity" data-parsoid='{"srcContent":" "}'> </span></div>
19279 <div style="width:50% !important" data-parsoid='{"stx":"html","a":{"style":"width:50% !important"},"sa":{"style":"width:50%&#160;!important"}}'><span typeof="mw:Entity" data-parsoid='{"srcContent":" "}'> </span></div>
19280 <div style="border : solid;" data-parsoid='{"stx":"html"}'><span typeof="mw:Entity" data-parsoid='{"srcContent":" "}'> </span></div>
19285 HTML5 data attributes
19287 <span data-foo="bar">Baz</span>
19288 <p data-abc-def_hij="">Quuz</p>
19290 <p><span data-foo="bar">Baz</span>
19292 <p data-abc-def_hij="">Quuz</p>
19297 percent-encoding and + signs in internal links (Bug 26410)
19299 [[User:+%]] [[Page+title%]]
19300 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
19301 [[%]] [[+]] [[File:%+abc%39|foo|[[bar]]]]
19302 [[%33%45]] [[%33%45+]]
19304 <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>
19305 <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>
19306 <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>
19307 <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>
19310 <p><a rel="mw:WikiLink" href="User:+%" title="User:+%">User:+%</a> <a rel="mw:WikiLink" href="Page+title%" title="Page+title%">Page+title%</a> <a rel="mw:WikiLink" href="%+" title="%+">%+</a> <a rel="mw:WikiLink" href="%+" title="%+">%20</a> <a rel="mw:WikiLink" href="%+" title="%+">%+ </a> <a rel="mw:WikiLink" href="%+r" title="%+r">%+r</a> <a rel="mw:WikiLink" href="%" title="%">%</a> <a rel="mw:WikiLink" href="+" title="+">+</a> <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"[[bar]]"}'><a href="File:%+abc9"><img resource="./File:%25+abc9" src="./Special:FilePath/%+abc9" height="220" width="220"/></a></span> <a rel="mw:WikiLink" href="3E" title="3E">3E</a> <a rel="mw:WikiLink" href="3E+" title="3E+">3E+</a></p>
19314 Special characters in embedded file links (bug 27679)
19316 [[File:Contains & ampersand.jpg]]
19317 [[File:Does not exist.jpg|Title with & ampersand]]
19319 <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>
19320 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
19323 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="File:Contains_&_ampersand.jpg"><img resource="./File:Contains_&_ampersand.jpg" src="./Special:FilePath/Contains_&_ampersand.jpg" height="220" width="220"/></a></span>
19324 <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"Title with & ampersand"}'><a href="File:Does_not_exist.jpg"><img resource="./File:Does_not_exist.jpg" src="./Special:FilePath/Does_not_exist.jpg" height="220" width="220"/></a></span></p>
19328 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
19330 Text's been normalized?
19332 <p>Text's been normalized?
19337 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
19339 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
19341 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
19346 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
19348 [http://www.example.org/ ideograms]
19350 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
19355 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
19357 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
19359 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
19383 Bug 31098 Template which includes system messages which includes the template
19387 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
19388 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
19393 Bug31490 Turkish: ucfirst 'blah'
19404 Bug31490 Turkish: ucfirst 'ix'
19415 Bug31490 Turkish: lcfirst 'BLAH'
19426 Bug31490 Turkish: ucfırst (with a dotless i)
19432 <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>
19437 Bug31490 ucfırst (with a dotless i) with English language
19443 <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>
19448 Bug 26375: TOC with italics
19450 title=[[Main Page]]
19453 == ''Lost'' episodes ==
19455 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19457 <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>
19461 <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>
19466 Bug 26375: TOC with bold
19468 title=[[Main Page]]
19471 == '''should be bold''' then normal text ==
19473 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19475 <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>
19479 <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>
19484 Bug 33845: Headings become cursive in TOC when they contain an image
19486 title=[[Main Page]]
19489 == Image [[Image:foobar.jpg]] ==
19491 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19493 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
19497 <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>
19502 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
19504 title=[[Main Page]]
19507 == <blockquote>Quote</blockquote> ==
19509 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19511 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
19515 <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>
19519 <div id="toc" class="toc">
19520 <div id="toctitle">
19524 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
19528 <h2><span class="mw-headline" id="Quote"></span></h2>
19530 <p><span class="mw-headline" id="Quote">Quote</span></p>
19532 <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>
19536 Unclosed tags in TOC
19538 title=[[Main Page]]
19542 <small>Hanc marginis exiguitas non caperet.</small>
19545 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19547 <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>
19551 <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>
19552 <p><small>Hanc marginis exiguitas non caperet.</small>
19558 Multiple tags in TOC
19561 == <i>Foo</i> <b>Bar</b> ==
19563 == <i>Foo</i> <blockquote>Bar</blockquote> ==
19565 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19567 <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>
19568 <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>
19572 <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>
19573 <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>
19577 <div id="toc" class="toc">
19578 <div id="toctitle">
19582 <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>
19583 <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>
19587 <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>
19588 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i></span></h2>
19590 <p><span class="mw-headline" id="Foo_Bar_2">Bar</span></p>
19592 <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>
19596 Tags with parameters in TOC
19599 == <sup class="in-h2">Hello</sup> ==
19601 == <sup class="a > b">Evilbye</sup> ==
19603 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19605 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
19606 <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>
19610 <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>
19611 <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>
19616 span tags with directionality in TOC
19619 == <span dir="ltr">C++</span> ==
19621 == <span dir="rtl">זבנג!</span> ==
19623 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
19625 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
19627 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
19629 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19631 <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>
19632 <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>
19633 <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>
19634 <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>
19635 <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>
19639 <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>
19640 <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>
19641 <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>
19642 <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>
19643 <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>
19648 Bug 72884: bdi element in ToC
19651 == <bdi>test</bdi> ==
19653 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19655 <li class="toclevel-1 tocsection-1"><a href="#test"><span class="tocnumber">1</span> <span class="toctext"><bdi>test</bdi></span></a></li>
19659 <h2><span class="mw-headline" id="test"><bdi>test</bdi></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: test">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19663 # Note that the html output does not have the <p></p>, but the
19664 # html+tidy output *does*. This is because the empty <p></p> is
19665 # removed by the sanitizer, but only when tidy is *not* enabled (!).
19667 Empty <p> tag in TOC, removed by Sanitizer (T92892)
19672 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19674 <li class="toclevel-1 tocsection-1"><a href="#x"><span class="tocnumber">1</span> <span class="toctext">x</span></a></li>
19678 <h2><span class="mw-headline" id="x">x</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: x">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19682 <div id="toc" class="toc">
19683 <div id="toctitle">
19687 <li class="toclevel-1 tocsection-1"><a href="#x"><span class="tocnumber">1</span> <span class="toctext">x</span></a></li>
19691 <h2><span class="mw-headline" id="x">x</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: x">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19697 == {{int:headline_sample}} ==
19701 Bug 32057: Title needed when expanding <h> nodes.
19703 title=[[Main Page]]
19707 <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>
19712 Strip marker in urlencode
19714 {{urlencode:x<nowiki/>y}}
19715 {{urlencode:x<nowiki/>y|wiki}}
19716 {{urlencode:x<nowiki/>y|path}}
19743 Strip marker in formatNum
19745 {{formatnum:1<nowiki/>2}}
19746 {{formatnum:1<nowiki/>2|R}}
19754 Check noCommafy in formatNum
19758 {{formatnum:123456.78}}
19759 {{formatnum:123456.78|NOSEP}}
19767 Wrong option for formatNum (bug 56199)
19769 {{formatnum:1,234.56|Random}}
19770 {{formatnum:1,234.56|EVERYTHING}}
19771 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
19780 Strip marker in grammar
19784 {{grammar:elative|foo<nowiki/>bar}}
19791 Strip marker in padleft
19793 {{padleft:|2|x<nowiki/>y}}
19800 Strip marker in padright
19802 {{padright:|2|x<nowiki/>y}}
19809 Strip marker in anchorencode
19811 {{anchorencode:x<nowiki/>y}}
19818 nowiki inside link inside heading (bug 18295)
19820 ==[[foo|x<nowiki>y</nowiki>z]]==
19822 <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>
19827 new support for bdi element (bug 31817)
19829 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
19831 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
19836 Ignore pipe between table row attributes
19840 |- id=foo | style='color: red'
19848 <tr id="foo" style="color: red">
19855 Gallery override link with WikiLink (bug 34852)
19858 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
19861 <ul class="gallery mw-gallery-traditional">
19862 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19863 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
19864 <div class="gallerytext">
19874 Gallery override link with absolute external link (bug 34852)
19877 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
19880 <ul class="gallery mw-gallery-traditional">
19881 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19882 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
19883 <div class="gallerytext">
19893 Gallery override link with malicious javascript (bug 34852)
19896 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
19899 <ul class="gallery mw-gallery-traditional">
19900 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19901 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
19902 <div class="gallerytext">
19912 Gallery with invalid title as link (bug 43964)
19915 File:foobar.jpg|link=<
19918 <ul class="gallery mw-gallery-traditional">
19919 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19920 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
19921 <div class="gallerytext">
19929 Language parser function
19938 Padleft and padright as substr
19940 {{padleft:|3|abcde}}
19941 {{padright:|3|abcde}}
19949 Special parser function
19951 {{#special:RandomPage}}
19952 {{#special:BaDtItLe}}
19953 {{#special:Foobar}}
19962 Bug 34939 - Case insensitive link parsing ([HttP://])
19964 [HttP://MediaWiki.Org/]
19966 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
19969 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/"></a></p>
19973 Bug 34939 - Case insensitive link parsing ([HttP:// title])
19975 [HttP://MediaWiki.Org/ MediaWiki]
19977 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
19982 Bug 34939 - Case insensitive link parsing (HttP://)
19984 HttP://MediaWiki.Org/
19986 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
19989 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a></p>
20007 <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>
20008 <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>
20009 <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>
20010 <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>
20011 <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>
20017 ### Parsoid-specific tests
20018 ### Parsoid-PHP parser incompatibilities
20021 1. SOL-sensitive wikitext tokens as template-args
20023 parsoid=wt2html,wt2wt
20029 <span about="#mwt1" typeof="mw:Transclusion">
20030 </span><ul about="#mwt1"><li>a</li>
20032 <span about="#mwt2" typeof="mw:Transclusion">
20033 </span><ol about="#mwt2"><li>a</li>
20035 <span about="#mwt3" typeof="mw:Transclusion">
20036 </span><dl about="#mwt3"><dd>a</dd>
20040 #### -----------------------------------------------------------------
20041 #### Parsoid-specific functionality tests
20042 #### -----------------------------------------------------------------
20044 # Bug 63642/66749: Formatting elt fixup around images is cleaned up.
20045 # We know wt2wt will fail, but we expect selser to pass.
20046 # Due to the nature of our testing, wt2wt and selser tests will enter the
20047 # blacklist and we'll catch selser regressions based on changes to the
20048 # blacklist entries for selser tests.
20050 1. Bad treebuilder fixup of formatting elt is cleaned up
20052 parsoid=wt2html,wt2wt
20057 [[Image:Foobar.jpg|right|Test]]
20064 <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>Test</figcaption></figure>
20071 2. Bad treebuilder fixup of formatting elt is cleaned up
20073 parsoid=wt2html,wt2wt
20075 '''foo[[File:Foobar.jpg|thumb|caption]]bar'''
20077 <small>[[Image:Foobar.jpg|right|300px]]</small>
20080 <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><b>caption</b></figcaption></figure>
20082 <small><figure class="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="34" width="300"/></a></figure></small>
20085 #### ----------------------------------------------------------------
20086 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
20087 #### tags. Parsoid's output for these tags differs from that of the
20089 #### ----------------------------------------------------------------
20092 Ref: 1. ref-location should be replaced with an index span
20097 B <ref name="x">foo</ref>
20101 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
20102 B <span about="#mwt4" class="reference" id="cite_ref-x_2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-x-2"},"attrs":{"name":"x"}}'><a href="#cite_note-x-2">[2]</a></span>
20103 C <span about="#mwt6" class="reference" id="cite_ref-y_3-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"y"}}'><a href="#cite_note-y-3">[3]</a></span></p>
20104 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'>
20105 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20106 <li about="#cite_note-x-2" id="cite_note-x-2"><span rel="mw:referencedBy"><a href="#cite_ref-x_2-0">↑</a></span> <span id="mw-reference-text-cite_note-x-2" class="mw-reference-text">foo</span></li>
20107 <li about="#cite_note-y-3" id="cite_note-y-3"><span rel="mw:referencedBy"><a href="#cite_ref-y_3-0">↑</a></span> <span id="mw-reference-text-cite_note-y-3" class="mw-reference-text"></span></li>
20112 Ref: 2. ref-tags with identical names should all get the same index
20116 A <ref name="x">foo</ref>
20120 <p>A <span about="#mwt2" class="reference" id="cite_ref-x_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-x-1"},"attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span>
20121 B <span about="#mwt4" class="reference" id="cite_ref-x_1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span></p>
20122 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20123 <li about="#cite_note-x-1" id="cite_note-x-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-x_1-0">1.0</a> <a href="#cite_ref-x_1-1">1.1</a></span> <span id="mw-reference-text-cite_note-x-1" class="mw-reference-text">foo</span></li>
20128 Ref: 3. spaces in ref-names should be ignored
20132 A <ref name="x">foo</ref>
20133 B <ref name=" x " />
20137 <p>A <span about="#mwt2" class="reference" id="cite_ref-x_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-x-1"},"attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span>
20138 B <span about="#mwt4" class="reference" id="cite_ref-x_1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span>
20139 C <span about="#mwt6" class="reference" id="cite_ref-x_1-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span></p>
20140 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'>
20141 <li about="#cite_note-x-1" id="cite_note-x-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-x_1-0">1.0</a> <a href="#cite_ref-x_1-1">1.1</a> <a href="#cite_ref-x_1-2">1.2</a></span> <span id="mw-reference-text-cite_note-x-1" class="mw-reference-text">foo</span></li>
20145 # NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
20147 Ref: 4. 'constructor' should be accepted as a valid ref-name
20151 A <ref name="constructor">foo</ref>
20154 <p>A <span about="#mwt2" class="reference" id="cite_ref-constructor_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-constructor-1"},"attrs":{"name":"constructor"}}'><a href="#cite_note-constructor-1">[1]</a></span></p>
20155 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20156 <li about="#cite_note-constructor-1" id="cite_note-constructor-1"><span rel="mw:referencedBy"><a href="#cite_ref-constructor_1-0">↑</a></span> <span id="mw-reference-text-cite_note-constructor-1" class="mw-reference-text">foo</span></li>
20161 Ref: 5. body should accept generic wikitext
20166 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
20171 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20173 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
20174 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">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>
20180 Ref: 6. indent-pres should not be output in ref-body
20192 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20194 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20195 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo
20203 Ref: 7. No p-wrapping in ref-body
20222 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20224 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20225 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo
20240 Ref: 8. transclusion wikitext has lower precedence
20244 A <ref> foo {{echo|</ref> B C}}
20248 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
20249 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20250 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo <span typeof="mw:Nowiki" data-parsoid='{"src":"{{","dsr":[12,14,0,0]}'>{{</span>echo|</span></li>
20255 Ref: 9. unclosed comments should not leak out of ref-body
20259 A <ref> foo <!--</ref> B C
20262 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C</p>
20263 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20264 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo <!----></span></li>
20269 Ref: 10. Unclosed HTML tags should not leak out of ref-body
20273 A <ref> <b> foo </ref> B C
20277 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C</p>
20280 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20281 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text"><b data-parsoid='{"stx":"html","autoInsertedEnd":true}'> foo </b></span></li>
20286 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
20294 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B
20295 C <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{}}'><a href="#cite_note-2">[2]</a></span> D</p>
20296 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20297 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20298 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar</span></li>
20303 Ref: 12. ref-tags act as trailing newline migration barrier
20307 <!--the newline at the end of this line moves out of the p-tag-->a
20309 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
20315 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
20318 <p>b<!--the newline at the end of this line stays inside the p-tag--> <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{}}'><a href="#cite_note-1">[1]</a></span>
20319 <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{}}'><a href="#cite_note-2">[2]</a></span></p>
20322 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20323 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text"></span></li>
20324 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text"></span></li></ol>
20328 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
20337 <p><span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> A
20338 <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{}}'><a href="#cite_note-2">[2]</a></span> B</p>
20339 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20340 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20341 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar
20347 Ref: 14. A nested ref-tag should be emitted as plain text
20351 <ref>foo <ref>bar</ref> baz</ref>
20355 <p><span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
20357 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
20358 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo <ref>bar</ref> baz</span></li>
20363 Ref: 15. ref-tags with identical names should get identical indexes
20367 A1 <ref name="a">foo</ref> A2 <ref name="a" />
20368 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
20372 <p>A1 <span about="#mwt3" class="reference" id="cite_ref-a_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-a-1"},"attrs":{"name":"a"}}'><a href="#cite_note-a-1">[1]</a></span> A2 <span about="#mwt4" class="reference" id="cite_ref-a_1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"a"}}'><a href="#cite_note-a-1">[1]</a></span>
20373 B1 <span about="#mwt7" class="reference" id="cite_ref-b_2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"b"}}'><a href="#cite_note-b-2">[2]</a></span> B2 <span about="#mwt8" class="reference" id="cite_ref-b_2-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-b-2"},"attrs":{"name":"b"}}'><a href="#cite_note-b-2">[2]</a></span></p>
20375 <ol class="references" typeof="mw:Extension/references" about="#mwt10" 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> <span id="mw-reference-text-cite_note-a-1" class="mw-reference-text">foo</span></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> <span id="mw-reference-text-cite_note-b-2" class="mw-reference-text">bar</span></li>
20379 ## We don't bother wt2wt-ing non-standard whitespace
20381 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
20389 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20390 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20391 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li></ol>
20395 Ref: 17. Generate valid HTML5 id/about attributes
20399 <ref name="a b">foo</ref>
20403 <p><span class="reference" id="cite_ref-a_b_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-a_b-1"},"attrs":{"name":"a b"}}'><a href="#cite_note-a_b-1">[1]</a></span>
20406 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20407 <li about="#cite_note-a_b-1" id="cite_note-a_b-1"><span rel="mw:referencedBy"><a href="#cite_ref-a_b_1-0">↑</a></span> <span id="mw-reference-text-cite_note-a_b-1" class="mw-reference-text">foo</span></li>
20412 Ref: 18. T58916: Extension attributes should be parsed as plain text
20416 <ref name="{{echo|a}}">foo</ref>
20420 <p><span class="reference" id="cite_ref-.7B.7Becho.7Ca.7D.7D_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-.7B.7Becho.7Ca.7D.7D-1"},"attrs":{"name":"{{echo|a}}"}}'><a href="#cite_note-.7B.7Becho.7Ca.7D.7D-1">[1]</a></span>
20423 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20424 <li about="#cite_note-.7B.7Becho.7Ca.7D.7D-1" id="cite_note-.7B.7Becho.7Ca.7D.7D-1"><span rel="mw:referencedBy"><a href="#cite_ref-.7B.7Becho.7Ca.7D.7D_1-0">↑</a></span> <span id="mw-reference-text-cite_note-.7B.7Becho.7Ca.7D.7D-1" class="mw-reference-text">foo</span></li>
20429 Ref: 19. ref-tags with identical name encodings should get identical indexes
20433 1 <ref name="a & b">foo</ref> 2 <ref name="a & b" />
20437 <p>1 <span about="#mwt3" class="reference" id="cite_ref-a_.26_b_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-a_.26_b-1"},"attrs":{"name":"a & b"}}'><a href="#cite_note-a_.26_b-1">[1]</a></span> 2 <span about="#mwt4" class="reference" id="cite_ref-a_.26_b_1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"a &amp; b"}}'><a href="#cite_note-a_.26_b-1">[1]</a></span>
20439 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20440 <li about="#cite_note-a_.26_b-1" id="cite_note-a_.26_b-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-a_.26_b_1-0">1.0</a> <a href="#cite_ref-a_.26_b_1-1">1.1</a></span> <span id="mw-reference-text-cite_note-a_.26_b-1" class="mw-reference-text">foo</span></li>
20445 Ref: 20. ref-tags with identical names but different content should keep it
20449 A <ref name="foo">Foo one</ref>
20450 B <ref name="foo">Foo two</ref>
20451 C <ref name="foo" />
20455 <p>A <span about="#mwt2" class="reference" id="cite_ref-foo_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-foo-1"},"attrs":{"name":"foo"}}'><a href="#cite_note-foo-1">[1]</a></span>
20456 B <span about="#mwt4" class="reference" id="cite_ref-foo_1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"Foo two"},"attrs":{"name":"foo"}}'><a href="#cite_note-foo-1">[1]</a></span>
20457 C <span about="#mwt6" class="reference" id="cite_ref-foo_1-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"foo"}}'><a href="#cite_note-foo-1">[1]</a></span></p>
20459 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-foo-1" id="cite_note-foo-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-foo_1-0">1.0</a> <a href="#cite_ref-foo_1-1">1.1</a> <a href="#cite_ref-foo_1-2">1.2</a></span> <span id="mw-reference-text-cite_note-foo-1" class="mw-reference-text">Foo one</span></li>
20464 References: 1. references tag without any refs should be handled properly
20470 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
20474 References: 2. references tag with group only outputs references from that group
20478 A <ref group="a">foo</ref>
20479 B <ref group="b">bar</ref>
20482 <references group="a" />
20484 <references group="b" />
20486 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{"group":"a"}}'><a href="#cite_note-1">[a 1]</a></span>
20487 B <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{"group":"b"}}'><a href="#cite_note-2">[b 1]</a></span>
20488 C <span class="reference" id="cite_ref-3" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-3"},"attrs":{}}'><a href="#cite_note-3">[1]</a></span></p>
20490 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{"group":"a"}}'>
20491 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20493 <ol class="references" typeof="mw:Extension/references" about="#mwt10" data-mw='{"name":"references","attrs":{}}'>
20494 <li about="#cite_note-3" id="cite_note-3"><span rel="mw:referencedBy"><a href="#cite_ref-3">↑</a></span> <span id="mw-reference-text-cite_note-3" class="mw-reference-text">baz</span></li>
20496 <ol class="references" typeof="mw:Extension/references" about="#mwt12" data-mw='{"name":"references","attrs":{"group":"b"}}'>
20497 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar</span></li>
20502 References: 3. ref list should be cleared after processing references
20514 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20516 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20519 <p>B <span about="#mwt6" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{}}'><a href="#cite_note-2">[1]</a></span></p>
20521 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'>
20522 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar</span></li>
20527 References: 4. only referenced group should be cleared after processing references
20531 A <ref group="a">afoo</ref>
20534 <references group="a" />
20540 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{"group":"a"}}'><a href="#cite_note-1">[a 1]</a></span>
20541 B <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{}}'><a href="#cite_note-2">[1]</a></span></p>
20543 <ol class="references" typeof="mw:Extension/references" about="#mwt6" 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">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">afoo</span></li>
20546 <p>C <span about="#mwt8" class="reference" id="cite_ref-3" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-3"},"attrs":{}}'><a href="#cite_note-3">[2]</a></span></p>
20548 <ol class="references" typeof="mw:Extension/references" about="#mwt10" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bfoo</span></li><li about="#cite_note-3" id="cite_note-3"><span rel="mw:referencedBy"><a href="#cite_ref-3">↑</a></span> <span id="mw-reference-text-cite_note-3" class="mw-reference-text">cfoo</span></li>
20553 References: 5. ref tags in references should be processed while ignoring all other content
20558 B <ref name="b">bar</ref>
20561 <ref name="a">foo</ref>
20562 This should just get lost.
20565 <p>A <span about="#mwt2" class="reference" id="cite_ref-a_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"a"}}'><a href="#cite_note-a-1">[1]</a></span>
20566 B <span about="#mwt4" class="reference" id="cite_ref-b_2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-b-2"},"attrs":{"name":"b"}}'><a href="#cite_note-b-2">[2]</a></span></p>
20569 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost.","html":"\n<span about=\"#mwt8\" class=\"reference\" rel=\"dc:references\" typeof=\"mw:Extension/ref\" data-parsoid='{\"dsr\":[59,82,14,6]}' data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-a-1\"},\"attrs\":{\"name\":\"a\"}}'><a href=\"#cite_note-a-1\">[1]</a></span>\n"},"attrs":{}}'><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy"><a href="#cite_ref-a_1-0">↑</a></span> <span id="mw-reference-text-cite_note-a-1" class="mw-reference-text">foo</span></li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b_2-0">↑</a></span> <span id="mw-reference-text-cite_note-b-2" class="mw-reference-text">bar</span></li>
20574 References: 6. <references /> from a transclusion
20578 <ref>Foo</ref> {{echo|<references />}}
20580 <p><span about="#mwt3" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p> <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">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">Foo</span></li>
20585 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
20589 A <ref>foo bar for a</ref>
20590 B <ref group="X" name="b" />
20594 <references group="X">
20595 <ref name="b">foo</ref>
20598 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
20599 B <span about="#mwt4" class="reference" id="cite_ref-b_2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"group":"X","name":"b"}}'><a href="#cite_note-b-2">[X 1]</a></span>
20602 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20603 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo bar for a</span></li>
20606 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"b\">foo</ref>","html":"\n<span about=\"#mwt10\" class=\"reference\" rel=\"dc:references\" typeof=\"mw:Extension/ref\" data-parsoid='{\"dsr\":[96,119,14,6]}' data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-b-2\"},\"attrs\":{\"name\":\"b\"}}'><a href=\"#cite_note-b-2\">[X 1]</a></span>\n"},"attrs":{"group":"X"}}'>
20607 <li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b_2-0">↑</a></span> <span id="mw-reference-text-cite_note-b-2" class="mw-reference-text">foo</span></li>
20612 References: 8. T88019: Remove <meta>s from templates inside <ref> that's itself inside a template
20616 X{{echo|<ref>foo {{echo|<b>bar</b>}} and {{echo|baz}} boo</ref>}}
20619 <p>X<span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Transclusion mw:Extension/ref" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<ref>foo {{echo|<b>bar</b>}} and {{echo|baz}} boo</ref>"}},"i":0}}]}'><a href="#cite_note-1">[1]</a></span></p>
20620 <ol class="references" typeof="mw:Extension/references" about="#mwt7" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo <b data-parsoid='{"stx":"html"}'>bar</b> and baz boo</span></li>
20624 # This test only works in wt2html now as the <references /> are always generated
20625 # unless selser is active. Once T72722 is fixed, we should add a changes test
20626 # here to ensure that unrelated changes don't add the new <references /> in
20629 References: 9. Generate missing references list at the end
20634 B <ref group="inexistent">bar</ref>
20636 <p>A <span class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B <span class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{"group":"inexistent"}}'><a href="#cite_note-2">[inexistent 1]</a></span></p>
20637 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
20638 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20640 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{"group":"inexistent"}}'>
20641 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar</span></li>
20646 Entities in ref name
20650 <ref name="test & me">hi</ref>
20653 <p><span about="#mwt2" class="reference" id="cite_ref-test_.26_me_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-test_.26_me-1"},"attrs":{"name":"test &amp; me"}}'><a href="#cite_note-test_.26_me-1">[1]</a></span></p>
20654 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20655 <li about="#cite_note-test_.26_me-1" id="cite_note-test_.26_me-1"><span rel="mw:referencedBy"><a href="#cite_ref-test_.26_me_1-0">↑</a></span> <span id="mw-reference-text-cite_note-test_.26_me-1" class="mw-reference-text">hi</span></li>
20659 # This test is wt2html only because we're permitting the serializer to produce
20660 # dirty diffs, normalizing the unclosed references to the self-closed version.
20662 Generate references for unclosed references tag
20670 <p>a<span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20671 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20672 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li></ol>
20676 New reference serializes on its own line
20678 parsoid=wt2wt,html2wt
20683 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
20686 #### ----------------------------------------------------------------
20687 #### Parsoid-only testing of Parsoid's impl of LST
20688 #### Not implemented yet, see
20689 #### https://www.mediawiki.org/wiki/Parsoid/HTML_based_LST
20690 #### ----------------------------------------------------------------
20693 LST Sections: 1. Simple section start and end
20695 <section begin="2011-05-16" />
20696 <section end="2014-04-10 (MW 1.23wmf22)" />
20698 <p><meta typeof="mw:Extension/LabeledSectionTransclusion/begin" content="2011-05-16"/>
20699 <meta typeof="mw:Extension/LabeledSectionTransclusion/end" content="2014-04-10 (MW 1.23wmf22)"/></p>
20702 #--------- Test stripping of empty nodes in template content ----------
20704 Empty LI and TR nodes should be stripped from template content
20709 <ul about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyLITest","href":"./Template:EmptyLITest"},"params":{},"i":0}}]}'>
20713 <table about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyTRTest","href":"./Template:EmptyTRTest"},"params":{},"i":0}}]}'>
20726 Empty LI and TR nodes should not be stripped from top-level content
20753 Empty TR nodes should not be stripped if they have any attributes set
20755 {{EmptyTRWithHTMLAttrTest}}
20757 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyTRWithHTMLAttrTest","href":"./Template:EmptyTRWithHTMLAttrTest"},"params":{},"i":0}}]}'>
20758 <tr align="center"></tr>
20759 <tr><td>foo</td></tr>
20760 <tr align="center"></tr>
20761 <tr><td>bar</td></tr>
20765 #### ----------------------------------------------------------------
20766 #### The following section of tests are primarily to test
20767 #### wikitext escaping capabilities of Parsoid. Given that
20768 #### escaping can be done any number of ways, the wikitext (input)
20769 #### is always adjusted to reflect how Parsoid adds nowiki
20772 #### We are marking several tests as parsoid-only since the
20773 #### HTML in the result section is different from what the
20774 #### PHP parser generates for it.
20775 #### ----------------------------------------------------------------
20778 #### --------------- Headings ---------------
20780 #### 1. Nested inside html <h1>=foo=</h1>
20781 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
20782 #### 3. Nested inside html with wikitext split by html tags
20783 #### 4. No escape needed
20784 #### 5. Empty headings <h1></h1>
20785 #### 6. Heading chars in SOL context
20786 #### ----------------------------------------
20788 Headings: 0. Unnested
20792 <nowiki>=foo=</nowiki>
20794 <nowiki> =foo= </nowiki>
20796 <nowiki>=foo=</nowiki>
20798 =foo''a''<nowiki>=</nowiki>
20800 <p><span typeof="mw:Nowiki">=foo=</span></p>
20802 <p><span typeof="mw:Nowiki"> =foo= </span>
20804 <span typeof="mw:Nowiki">=foo=</span></p>
20806 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
20809 # New headings and existing headings are handled differently
20811 Headings: 1. Nested inside html
20819 <h1 data-parsoid=''>=foo=</h1>
20820 <h2 data-parsoid=''>=foo=</h2>
20821 <h3 data-parsoid=''>=foo=</h3>
20822 <h4 data-parsoid=''>=foo=</h4>
20823 <h5 data-parsoid=''>=foo=</h5>
20824 <h6 data-parsoid=''>=foo=</h6>
20832 =<nowiki>=foo=</nowiki>=
20833 ==<nowiki>=foo=</nowiki>==
20834 ===<nowiki>=foo=</nowiki>===
20835 ====<nowiki>=foo=</nowiki>====
20836 =====<nowiki>=foo=</nowiki>=====
20837 ======<nowiki>=foo=</nowiki>======
20842 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
20851 <nowiki>*</nowiki>bar
20857 <nowiki>=bar=</nowiki>
20861 Headings: 3. Nested inside html with wikitext split by html tags
20863 parsoid=html2wt,wt2wt
20865 = ='''bold'''<nowiki>foo=</nowiki> =
20867 <h1>=<b>bold</b>foo=</h1>
20871 Headings: 4a. No escaping needed (testing just h1 and h2)
20896 <h1><i>=</i>foo=</h1>
20900 Headings: 4b. No escaping needed (inside p-tags)
20915 Headings: 5. Empty headings
20927 =====<nowiki/>=====
20929 ======<nowiki/>======
20940 Headings: 6a. Heading chars in SOL context (with trailing spaces)
20944 <nowiki>=a=</nowiki>
20946 <nowiki>=a=</nowiki>
20948 <nowiki>=a=</nowiki>
20950 <nowiki>=a=</nowiki>
20959 Headings: 6b. Heading chars in SOL context (with trailing newlines)
20987 Headings: 6c. Heading chars in SOL context (leading newline break)
20992 <nowiki>=b=</nowiki>
20999 Headings: 6d. Heading chars in SOL context (with interspersed comments)
21003 <!--c0--><nowiki>=a=</nowiki>
21005 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
21007 <p><!--c0-->=a=</p>
21008 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
21012 Headings: 6d. Heading chars in SOL context (No escaping needed)
21022 Headings: 7. Insert a newline between new content and headings
21028 <h2 data-parsoid='{"dsr":[0,5,2,2]}'>A</h2>
21029 <p data-parsoid='{"dsr":[6,7,0,0]}'>a</p>
21039 #### --------------- Lists ---------------
21040 #### 0. Outside nests (*foo, etc.)
21041 #### 1. Nested inside html <ul><li>*foo</li></ul>
21042 #### 2. Inside definition lists
21043 #### 3. Only bullets at start should be escaped
21044 #### 4. No escapes needed
21045 #### 5. No unnecessary escapes
21046 #### 6. Escape bullets in SOL position
21047 #### 7. Escape bullets in a multi-line context
21048 #### ----------------------------------------
21051 Lists: 0. Outside nests
21053 <nowiki>*</nowiki>foo
21055 <nowiki>#</nowiki>foo
21057 <nowiki>;Foo:</nowiki>bar
21066 Lists: 1. Nested inside html
21068 *<nowiki>*foo</nowiki>
21070 *<nowiki>#foo</nowiki>
21072 *<nowiki>:foo</nowiki>
21074 *<nowiki>;foo</nowiki>
21076 #<nowiki>*foo</nowiki>
21078 #<nowiki>#foo</nowiki>
21080 #<nowiki>:foo</nowiki>
21082 #<nowiki>;foo</nowiki>
21084 <ul><li>*foo</li></ul>
21085 <ul><li>#foo</li></ul>
21086 <ul><li>:foo</li></ul>
21087 <ul><li>;foo</li></ul>
21088 <ol><li>*foo</li></ol>
21089 <ol><li>#foo</li></ol>
21090 <ol><li>:foo</li></ol>
21091 <ol><li>;foo</li></ol>
21096 Lists: 2. Inside definition lists
21098 ;<nowiki>;foo</nowiki>
21100 ;<nowiki>:foo</nowiki>
21102 ;<nowiki>:foo</nowiki>
21105 :<nowiki>:foo</nowiki>
21107 <dl><dt>;foo</dt></dl>
21108 <dl><dt>:foo</dt></dl>
21111 <dl><dd>:foo</dd></dl>
21116 Lists: 3. Only bullets at start of text should be escaped
21118 *<nowiki>*foo*bar</nowiki>
21120 *<nowiki>*foo</nowiki>''it''*bar
21122 <ul><li>*foo*bar</li></ul>
21123 <ul><li>*foo<i>it</i>*bar</li></ul>
21128 Lists: 4. No escapes needed
21149 <li><a rel="mw:WikiLink" href="Foo" title="Foo">Foo</a>: bar
21153 <li><a rel="mw:WikiLink" href="Foo" title="Foo">Foo</a>*bar
21159 Lists: 5. No unnecessary escapes
21161 * bar <span><nowiki>[[foo]]</nowiki></span>
21163 * =bar <span><nowiki>[[foo]]</nowiki></span>
21165 * [[bar <span><nowiki>[[foo]]</nowiki></span>
21167 * ]]bar <span><nowiki>[[foo]]</nowiki></span>
21169 * =bar <span>foo]]</span>=
21175 <ul><li> bar <span>[[foo]]</span></li></ul>
21176 <ul><li> =bar <span>[[foo]]</span></li></ul>
21177 <ul><li> [[bar <span>[[foo]]</span></li></ul>
21178 <ul><li> ]]bar <span>[[foo]]</span></li></ul>
21179 <ul><li> =bar <span>foo]]</span>=</li></ul>
21180 <ul><li> <s></s>: a</li></ul>
21181 <ul><li> <i>* foo</i></li></ul>
21186 Lists: 6. Escape bullets in SOL position
21190 <p><!--cmt-->*foo</p>
21192 <!--cmt--><nowiki>*</nowiki>foo
21196 Lists: 7. Escape bullets in a multi-line context
21199 <nowiki>*</nowiki>b
21207 Lists: 8. Escape colons only if not present in tags
21211 <dl><dt>a:b<i>c:d</i></dt></dl>
21213 ; <nowiki>a:b</nowiki>''c:d''
21216 #### --------------- HRs ---------------
21217 #### 1. Single line
21218 #### -----------------------------------
21221 HRs: 1. Single line
21223 ----<nowiki>----</nowiki>
21235 #### --------------- Tables ---------------
21236 #### 1a. Simple example
21237 #### 1b. No escaping needed (!foo)
21238 #### 1c. No escaping needed (|foo)
21239 #### 1d. No escaping needed (|}foo)
21241 #### 2a. Nested in td (<td>foo|bar</td>)
21242 #### 2b. Nested in td (<td>foo||bar</td>)
21243 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
21245 #### 3a. Nested in th (<th>foo!bar</th>)
21246 #### 3b. Nested in th (<th>foo!!bar</th>)
21247 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
21251 #### 4c. No escaping needed
21252 #### --------------------------------------
21255 Tables: 1a. Simple example
21266 Tables: 1b. No escaping needed
21275 Tables: 1c. No escaping needed
21284 Tables: 1d. No escaping needed
21293 Tables: 2a. Nested in td
21298 <td>foo|bar</td></tr>
21299 <tr><td>x<div>a|b</div></td>
21303 |<nowiki>foo|bar</nowiki>
21305 |x<div><nowiki>a|b</nowiki></div>
21321 Tables: 2b. Nested in td
21327 <td>a<i>b||c</i></td>
21328 <td>a<i><div>b||c</div></i></td>
21329 </tr></tbody></table>
21332 |<nowiki>foo||bar</nowiki>
21333 |a''<nowiki>b||c</nowiki>''
21334 |a''<div><nowiki>b||c</nowiki></div>''
21343 <td>a<i><div>b||c</div></i>
21349 Tables: 2c. Nested in td -- no escaping needed
21365 Tables: 3a. Nested in th
21381 Tables: 3b. Nested in th
21386 <tr><th>foo!!bar</th>
21387 <th><i>foo|bar</i></th>
21388 <th><i>foo!!bar</i></th>
21389 <th><i><span>foo!!bar</span></i></th>
21390 </tr></tbody></table>
21393 !<nowiki>foo!!bar</nowiki>
21394 !''<nowiki>foo|bar</nowiki>''
21395 !''<nowiki>foo!!bar</nowiki>''
21396 !''<span><nowiki>foo!!bar</nowiki></span>''
21405 <th><i>foo!!bar</i>
21407 <th><i><span>foo!!bar</span></i>
21413 Tables: 3c. Nested in th
21418 <tr><th>foo||bar</th>
21419 <th><span typeof="mw:Nowiki">foo||bar</span></th>
21420 </tr></tbody></table>
21423 !<nowiki>foo||bar</nowiki>
21424 !<nowiki>foo||bar</nowiki>
21437 Tables: 4a. Escape -
21456 |<nowiki>-bar</nowiki>
21461 Tables: 4b. Escape +
21480 |<nowiki>+bar</nowiki>
21485 Tables: 4c. No escaping needed
21528 <tr><td>foo-bar</td><td>foo+bar</td></tr>
21529 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
21535 <div>a|b</div></td>
21540 Tables: 4d. No escaping needed
21550 <td><a href="/wiki/Foo" title="Foo">Foo</a>-bar
21559 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo" title="Foo">Foo</a>-bar</td>
21560 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
21561 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
21566 Tables: Digest broken attributes on table and tr tag
21582 #### --------------- Links ----------------
21583 #### 1. Quote marks in link text
21584 #### 2. Wikilinks: Escapes needed
21585 #### 3. Wikilinks: No escapes needed
21586 #### 4. Extlinks: Escapes needed
21587 #### 5. Extlinks: No escapes needed
21588 #### --------------------------------------
21590 Links 1. WikiLinks: No escapes needed
21594 [[Foo|x [Foobar] x]]
21596 <p><a href="/wiki/Foo" title="Foo">Foo<i>boo</i></a>
21597 <a href="/wiki/Foo" title="Foo">[Foobar]</a>
21598 <a href="/wiki/Foo" title="Foo">x [Foobar] x</a>
21601 <p><a rel="mw:WikiLink" href="Foo" title="Foo">Foo<i>boo</i></a>
21602 <a rel="mw:WikiLink" href="Foo" title="Foo">[Foobar]</a>
21603 <a rel="mw:WikiLink" href="Foo" title="Foo">x [Foobar] x</a></p>
21607 Links 2. WikiLinks: Escapes needed
21611 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
21612 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
21613 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
21614 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
21615 <a href="Foo" rel="mw:WikiLink">|Bar</a>
21616 <a href="Foo" rel="mw:WikiLink">]]bar</a>
21617 <a href="Foo" rel="mw:WikiLink">[[bar</a>
21618 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
21619 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
21620 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
21622 [[Foo|<nowiki>Foobar]</nowiki>]]
21623 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
21624 [[Foo|<nowiki>[[Bar]]</nowiki>]]
21625 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
21626 [[Foo|<nowiki>|Bar</nowiki>]]
21627 [[Foo|<nowiki>]]bar</nowiki>]]
21628 [[Foo|<nowiki>[[bar</nowiki>]]
21629 [[Foo|<nowiki>x [[ y</nowiki>]]
21630 [[Foo|<nowiki>x ]] y</nowiki>]]
21631 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
21633 <p><a href="/wiki/Foo" title="Foo">Foobar]</a>
21634 <a href="/wiki/Foo" title="Foo">x [http://google.com g] x</a>
21635 <a href="/wiki/Foo" title="Foo">[[Bar]]</a>
21636 <a href="/wiki/Foo" title="Foo">x [[Bar]] x</a>
21637 <a href="/wiki/Foo" title="Foo">|Bar</a>
21638 <a href="/wiki/Foo" title="Foo">]]bar</a>
21639 <a href="/wiki/Foo" title="Foo">[[bar</a>
21640 <a href="/wiki/Foo" title="Foo">x [[ y</a>
21641 <a href="/wiki/Foo" title="Foo">x ]] y</a>
21642 <a href="/wiki/Foo" title="Foo">x ]] y [[ z</a>
21647 Links 3. WikiLinks: No escapes needed
21652 <p><a href="/wiki/Foo" title="Foo">[Foobar</a>
21653 <a href="/wiki/Foo" title="Foo">foo|bar</a>
21656 <p><a rel="mw:WikiLink" href="Foo">[Foobar</a>
21657 <a rel="mw:WikiLink" href="Foo" title="Foo">foo|bar</a></p>
21661 Links 4. ExtLinks: Escapes needed
21665 <p><a rel="mw:ExtLink" href="http://google.com">[google]</a>
21666 <a rel="mw:ExtLink" href="http://google.com">google]</a></p>
21667 <p>[http://google.com]</p>
21668 <p>[http://google.com google]</p>
21670 [http://google.com <nowiki>[google]</nowiki>]
21671 [http://google.com <nowiki>google]</nowiki>]
21673 <nowiki>[http://google.com]</nowiki>
21675 <nowiki>[http://google.com google]</nowiki>
21678 <p><a rel="nofollow" class="external text" href="http://google.com">[google]</a>
21679 <a rel="nofollow" class="external text" href="http://google.com">google]</a>
21680 </p><p>[http://google.com]
21681 </p><p>[http://google.com google]
21686 Links 5. ExtLinks: No escapes needed
21688 [http://google.com [google]
21690 <p><a rel="nofollow" class="external text" href="http://google.com">[google</a>
21693 <p><a rel="mw:ExtLink" href="http://google.com">[google</a></p>
21697 Links 6. Add <nowiki/>s between text-nodes and url-links when required (bug 64300)
21699 <p>x<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>y
21700 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>?x
21701 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>&x
21702 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>'x
21703 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,x
21704 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.x
21705 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
21706 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>:x
21707 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
21708 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>!x
21709 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>=x
21710 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>(x)
21711 <a rel="mw:ExtLink" href="http://example.com(x" data-parsoid='{"stx":"url"}'>http://example.com(x</a>)
21714 x<nowiki/>http://example.com<nowiki/>y
21715 http://example.com<nowiki/>?x
21716 http://example.com<nowiki/>&x
21717 http://example.com<nowiki/>'x
21718 http://example.com<nowiki/>,x
21719 http://example.com<nowiki/>.x
21720 http://example.com<nowiki/>;x
21721 http://example.com<nowiki/>:x
21722 http://example.com<nowiki/>;x
21723 http://example.com<nowiki/>!x
21724 http://example.com<nowiki/>=x
21725 http://example.com<nowiki/>(x)
21726 http://example.com(x<nowiki/>)
21730 Links 7a. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
21733 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>
21735 "<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>"
21736 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>)
21737 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>) foo
21738 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,
21739 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>, foo
21745 "http://example.com"
21746 (http://example.com)
21747 (http://example.com) foo
21748 http://example.com,
21749 http://example.com, foo
21752 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
21754 "<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>"
21755 (<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
21756 (<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>) foo
21757 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>,
21758 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>, foo
21763 Links 7b. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
21765 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.,;:!?\
21766 -<a rel="mw:ExtLink" href="http://example.com">http://example.com</a>:</p>
21768 http://example.com.,;:!?\
21769 -http://example.com:
21771 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>.,;:!?\
21772 -<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>:
21777 Links 8. Add <nowiki/>s between text-nodes and RFC-links when required (bug 64300)
21779 <p><a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>4
21780 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
21781 X<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y</p>
21785 X<nowiki/>RFC 123<nowiki/>y
21789 Links 9. Don't add spurious <nowiki/>s between text-nodes and RFC-links (bug 64300)
21791 <p><a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>?foo
21792 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>&foo
21793 -<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>-
21800 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc123">RFC 123</a>?foo
21801 <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc123">RFC 123</a>&foo
21802 -<a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc123">RFC 123</a>-
21807 Links 10. Add <nowiki/>s between text-nodes and PMID-links when required (bug 64300)
21809 <p><a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>4
21810 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
21811 X<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
21815 X<nowiki/>PMID 123<nowiki/>y
21819 Links 11. Don't add spurious <nowiki/>s between text-nodes and PMID-links (bug 64300)
21821 <p><a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>?foo
21822 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>&foo
21823 -<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>-
21830 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract">PMID 123</a>?foo
21831 <a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract">PMID 123</a>&foo
21832 -<a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract">PMID 123</a>-
21837 Links 12. Add <nowiki/>s between text-nodes and ISBN-links when required (bug 64300)
21839 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>1
21840 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>x
21841 a<a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>b
21844 ISBN 1234567890<nowiki/>1
21845 ISBN 1234567890<nowiki/>x
21846 a<nowiki/>ISBN 1234567890<nowiki/>b
21850 Links 13. Don't add spurious <nowiki/>s between text-nodes and ISBN-links (bug 64300)
21852 <p>-<a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>'s
21856 <p>-<a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>'s
21861 Links 14. Protect link-like plain text. (Parsoid bug T78425)
21865 <p>this is not a link: http://example.com
21868 this is not a link: <nowiki>http://example.com</nowiki>
21872 Links 15. Link trails can't become link prefixes.
21876 [[Söfnuður]]-[[00]]
21878 <p><a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">Söfnuður-</a><a href="/wiki/00" title="00">00</a>
21881 <p><a rel="mw:WikiLink" href="Söfnuður" title="Söfnuður" data-parsoid='{"stx":"simple","tail":"-"}'>Söfnuður-</a><a rel="mw:WikiLink" href="00" title="00">00</a></p>
21884 #### --------------- Quotes ---------------
21885 #### 1. Quotes inside <b> and <i>
21886 #### 2. Link fragments separated by <i> and <b> tags
21887 #### 3. Link fragments inside <i> and <b>
21888 #### 4. No escaping needed
21889 #### --------------------------------------
21891 1a. Quotes inside <b> and <i>
21893 parsoid=html2wt,wt2wt
21896 ''<nowiki>''foo''</nowiki>''
21897 ''<nowiki>'''foo'''</nowiki>''
21899 '''<nowiki/>'foo''''
21900 '''<nowiki>''foo''</nowiki>'''
21901 '''<nowiki>'''foo'''</nowiki>'''
21902 '''foo'<nowiki/>''bar'<nowiki/>''baz'''
21903 '''foo'''<nowiki/>'s
21909 '''foo'''<nowiki/>'
21910 ''''foo'''<nowiki/>'
21911 ''fools'<span> errand</span>''
21912 ''<span>fool</span>'s errand''
21913 '<nowiki/>''foo'' bar '''baz''
21914 a|!*#-:;+-~[]{}b'''x''
21923 <b>foo'<i>bar'</i>baz</b>
21932 <i>fools'<span> errand</span></i>
21933 <i><span>fool</span>'s errand</i>
21934 '<i>foo</i> bar '<i>baz</i>
21935 a|!*#-:;+-~[]{}b'<i>x</i>
21940 1b. Quotes inside <b> and <i> with other tags on same line
21942 parsoid=html2wt,wt2wt
21944 '''a'' foo ''[[bar]]''
21945 ''a''' foo ''[[bar]]''
21946 ''a''' foo '''{{echo|[[bar]]}}'''
21947 [[foo]] x'''[[bar]]''
21948 '''foo'' <ref>test</ref>
21949 '''foo'' <div title="name">test</div>
21950 '''foo'' and <br> bar
21953 '<i>a</i> foo <i><a rel="mw:WikiLink" href="Bar" title="Bar">bar</a></i>
21954 <i>a'</i> foo <i><a rel="mw:WikiLink" href="Bar" title="Bar">bar</a></i>
21955 <i>a'</i> foo <b><a rel="mw:WikiLink" href="Bar" title="Bar" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[[bar]]"}},"i":0}}]}'>bar</a></b>
21956 <a rel="mw:WikiLink" href="Foo" title="Foo">foo</a> x'<i><a href="Bar" rel="mw:WikiLink" title="Bar">bar</a></i>
21957 '<i>foo</i> <span class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
21958 '<i>foo</i> <div title="name">test</div>
21959 '<i>foo</i> and <br data-parsoid='{"stx":"html","noClose":true}'/> bar
21960 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
21961 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text" data-parsoid="{}">test</span></li>
21966 2. Link fragments separated by <i> and <b> tags
21968 [[''foo''<nowiki>hello]]</nowiki>
21970 [['''foo'''<nowiki>hello]]</nowiki>
21972 <p>[[<i>foo</i>hello]]
21973 </p><p>[[<b>foo</b>hello]]
21977 # FIXME: Escaping one or both of [[ and ]] is also acceptable --
21978 # this is one of the shortcomings of this format
21980 3. Link fragments inside <i> and <b>
21982 ''[[foo''<nowiki>]]</nowiki>
21984 '''[[foo'''<nowiki>]]</nowiki>
21987 </p><p><b>[[foo</b>]]
21992 4. No escaping needed
21994 '<span>''bar''</span>'
21995 '<span>'''bar'''</span>'
21998 <p>'<span><i>bar</i></span>'
21999 '<span><b>bar</b></span>'
22004 #### ----------- Paragraphs ---------------
22005 #### 1. No unnecessary escapes
22006 #### --------------------------------------
22009 1. No unnecessary escapes
22011 bar <span><nowiki>[[foo]]</nowiki></span>
22013 =bar <span><nowiki>[[foo]]</nowiki></span>
22015 [[bar <span><nowiki>[[foo]]</nowiki></span>
22017 ]]bar <span><nowiki>[[foo]]</nowiki></span>
22019 =bar <span>foo]]</span><nowiki>=</nowiki>
22021 <p>bar <span>[[foo]]</span>
22022 </p><p>=bar <span>[[foo]]</span>
22023 </p><p>[[bar <span>[[foo]]</span>
22024 </p><p>]]bar <span>[[foo]]</span>
22025 </p><p>=bar <span>foo]]</span>=
22029 #### ----------------------- PRE --------------------------
22030 #### 1. Leading whitespace in SOL context should be escaped
22031 #### ------------------------------------------------------
22033 1. Leading whitespace in SOL context should be escaped
22037 <nowiki> </nowiki>a
22039 <nowiki> </nowiki> a
22041 <nowiki> </nowiki>a(tab)
22043 <nowiki> </nowiki> a
22045 <nowiki> </nowiki> a
22048 <nowiki> </nowiki>b
22051 <nowiki> </nowiki>b
22054 <nowiki> </nowiki> b
22060 <p><!--cmt--> a</p>
22070 2. Leading whitespace in non-indent-pre contexts should not be escaped
22078 <p>foo <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
22079 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
22080 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text"><i data-parsoid='{"dsr":[9,14,2,2]}'>a</i>
22086 3. Leading whitespace in indent-pre suppressing contexts should not be escaped
22105 4. Leading whitespace in indent-pre suppressing contexts should not be escaped
22109 [[File:Foobar.jpg|thumb|caption]]
22112 <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>
22116 5. Nowiki escaping should account for indent-pres
22125 #### --------------- Behavior Switches --------------------
22127 1. Valid behavior switches should be escaped
22134 <nowiki>__TOC__</nowiki>
22135 ''<nowiki>__TOC__</nowiki>''
22139 2. Invalid behavior switches should not be escaped
22150 #### --------------- HTML tags ---------------
22153 #### 3. multi-line html tag
22154 #### 4. extension tags
22155 #### -----------------------------------------
22161 <a href="http://google.com">google</a>
22163 <a href="http://google.com">google</a>
22169 * <nowiki><div>foo</div></nowiki>
22170 * <nowiki><div style="color:red">foo</div></nowiki>
22171 * <nowiki><td></nowiki>
22173 <ul><li> <div>foo</div></li>
22174 <li> <div style="color:red">foo</div></li>
22175 <li> <td></li></ul>
22180 3. multi-line html tag
22195 <nowiki><ref>foo</ref></nowiki>
22197 <nowiki><ref>bar</nowiki>
22199 baz<nowiki></ref></nowiki>
22201 <p><ref>foo</ref>
22202 </p><p><ref>bar
22203 </p><p>baz</ref>
22207 #### --------------- Others ---------------
22211 <nowiki>foo</nowiki>
22213 <p><nowiki>foo</nowiki>
22217 ## The quote-char in the input is necessary for triggering the bug
22219 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
22221 parsoid=wt2wt,html2wt
22230 Tag-like HTML structures are passed through as text
22252 </p><p>1<d e>f
22257 HTML tag with necessary entities in attributes
22259 <span title="&amp;">foo</span>
22261 <p><span title="&amp;">foo</span>
22266 HTML tag with 'unnecessary' entity encoding in attributes
22268 <span title="&">foo</span>
22270 <p><span title="&">foo</span>
22275 HTML tag with broken attribute value quoting
22277 <span title="Hello world>Foo</span>
22279 <p><span>Foo</span>
22282 <p><span title="Hello world">Foo</span>
22287 Parsoid-only: HTML tag with broken attribute value quoting
22291 <span title="Hello world>Foo</span>
22293 <p><span title="Hello world">Foo</span>
22298 Table with broken attribute value quoting
22301 | title="Hello world|Foo
22312 <td title="Hello world">Foo
22318 Table with broken attribute value quoting on consecutive lines
22321 | title="Hello world|Foo
22322 | style="color:red|Bar
22335 <td title="Hello world">Foo
22336 </td><td style="color: red">Bar
22337 </td></tr></tbody></table>
22342 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
22352 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
22362 Accept empty td cell attribute
22365 | align="center" | foo || |
22370 <td align="center"> foo </td>
22377 Non-empty attributes in th-cells
22380 ! Foo !! style="color: red" | Bar
22386 <th style="color: red"> Bar
22392 Accept empty attributes in th-cells
22407 Empty table rows go away
22428 ### Parsoid-centric tests for testing RTing of inter-element separators
22429 ### Edge cases not tested by existing parser tests and specific to
22430 ### Parsoid-specific serialization strategies.
22434 RT-ed inter-element separators should be valid separators
22446 # Parsoid-only since PHP parser relies on Tidy for correct output
22448 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
22462 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'><small data-parsoid='{"stx":"html","autoInsertedEnd":true}'>foo
22463 <p>bar</p></small></td></tr>
22467 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'><small data-parsoid='{"stx":"html","autoInsertedEnd":true}'>foo<small data-parsoid='{"stx":"html","autoInsertedEnd":true}'></small></small></td></tr>
22472 Empty TD followed by TD with tpl-generated attribute
22477 |{{echo|style='color:red'}}|foo
22491 Indented table with an empty td
22509 ## We have some newline diffs RT-ing this edge case
22510 ## and it is not important enough -- we seem to be emitting
22511 ## at most 2 newlines after a </tr> and this is unrelated to
22512 ## the issue from T85627 that this is testing.
22514 Indented table with blank lines in between (T85627)
22533 Indented block & table
22547 <div data-parsoid='{"stx":"html"}'>foo</div>
22549 <tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>foo</td></tr>
22554 Indent and comment before table row
22569 <!--hi--><tbody><tr data-parsoid='{"startTagSrc":"|-","autoInsertedEnd":true}'>
22570 <td data-parsoid='{"autoInsertedEnd":true}'> there</td></tr>
22574 # Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext
22576 Empty TR followed by a template-generated TR
22582 {{echo|<tr><td>foo</td></tr>}}
22588 <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}}]}'>
22593 ## PHP and parsoid output differ for this, and since this is primarily
22594 ## for testing Parsoid's serializer, marking this Parsoid only
22596 Empty TR followed by mixed-ws-comment line should RT correctly
22612 <!--c--> </tr><!--d-->
22618 Multi-line image caption generated by templates with/without trailing newlines
22620 [[File:Foobar.jpg|thumb|300x300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
22621 [[File:Foobar.jpg|thumb|300x300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
22623 <figure typeof="mw:Image/Thumb"><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg" height="34" width="300"/></a><figcaption>foo\n<span about="#mwt9" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"A"}},"i":0}}]}'>A</span>\n<span about="#mwt10" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"B"}},"i":0}}]}'>B</span>\n<span about="#mwt11" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"C"}},"i":0}}]}'>C</span></figcaption></figure>
22624 <figure typeof="mw:Image/Thumb"><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg" height="34" width="300"/></a><figcaption>foo\n<span about="#mwt12" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"A"}},"i":0}}]}'>A</span>\n<span about="#mwt13" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"B"}},"i":0}}]}'>B</span>\n<span about="#mwt14" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"C"}},"i":0}}]}'>C</span>\n\n</figcaption></figure>
22628 New element inserted (without intervening newlines) after an old sol-transparent node should serialize correctly
22632 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>foo</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><p>new para</p>
22634 <link rel="mw:PageProp/Category" href="./Category:Foo" data-parsoid=''/><h1>new heading</h1>
22636 <includeonly>foo</includeonly>
22644 ## PHP emits broken html for this, and since this is primarily
22645 ## a Parsoid serializer test, marking this Parsoid only
22647 Improperly nested inline or quotes tags with whitespace in between
22651 <span> <s>x</span> </s>
22654 <p><span> <s>x</s></span><s> </s>
22655 <b> <i>x</i></b><i> </i>
22660 Encapsulate protected attributes from wt
22664 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
22666 <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>
22670 ## Currently the p-wrapper is fragile in how it adds / removes transformations.
22671 ## Having nested or stray pre tags results in the attempt to add duplicates,
22672 ## causing an assertion fail. This test tries to prevent that situation.
22674 Ensure ParagraphWrapper can deal with stray closing pre tags
22684 1. Ensure fostered text content is wrapped in element nodes
22688 <table>hi</table><table>ho</table>
22697 2. Ensure fostered text content is wrapped in element nodes (traps regressions around fostered marker on the element getting lost)
22699 parsoid=wt2html,wt2wt
22708 <tbody><tr><td> a</td></tr>
22713 Encapsulation properly handles null DSR information from foster box
22715 parsoid=wt2html,wt2wt
22717 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
22719 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<table>foo<tr><td>bar</td></tr></table>"}},"i":0}}]}">foo</span><table><tbody><tr><td>bar</td></tr></tbody></table>
22723 1. Encapsulate foster-parented transclusion content
22725 parsoid=wt2wt,wt2html
22727 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
22729 <p typeof="mw:Transclusion" data-mw="{"parts":["<table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<tr><td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</p><table>
22739 2. Encapsulate foster-parented transclusion content
22741 parsoid=wt2wt,wt2html
22743 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
22745 <div typeof="mw:Transclusion" data-mw="{"parts":["<table><div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div><tr><td>bar</td></tr></table>"]}">foo</div>
22756 3. Encapsulate foster-parented transclusion content
22758 parsoid=wt2wt,wt2html
22760 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
22762 <div typeof="mw:Transclusion" data-mw="{"parts":["<table><div><p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div><tr><td>"}},"i":0}},"bar</td></tr></table>"]}">
22775 4. Encapsulate foster-parented transclusion content
22777 parsoid=wt2wt,wt2html
22779 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
22781 <div typeof="mw:Transclusion" data-mw="{"parts":["<table><div><p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div><tr><td>"}},"i":0}},"bar</td></tr></table>"]}">
22794 5. Encapsulate foster-parented transclusion content
22796 parsoid=wt2wt,wt2html
22798 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
22800 <p typeof="mw:Transclusion" data-mw="{"parts":["<table><tr><td><div><p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</p>
22815 6. Encapsulate foster-parented transclusion content
22817 parsoid=wt2wt,wt2html
22819 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
22821 <p typeof="mw:Transclusion" data-mw="{"parts":["<table><tr><td><div><p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</p>
22837 7. Encapsulate foster-parented transclusion content
22839 parsoid=wt2wt,wt2html
22841 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
22843 <p typeof="mw:Transclusion" data-mw="{"parts":["<table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<p>foo</p>"}},"i":0}},"<td>bar</td></table>"]}">foo</p>
22854 8. Encapsulate foster-parented transclusion content
22856 parsoid=wt2wt,wt2html
22859 }}{|{{echo|style='color:red'}}
22864 <p typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\n"}},"i":0}}]}">a</p><p 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}}}</p><table>
22874 9. Encapsulate foster-parented transclusion content
22876 parsoid=wt2wt,wt2html
22878 <table>{{echo|hi</table>hello}}
22880 <p 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</p><table about="#mwt2" data-parsoid='{"stx":"html"}'></table><p about="#mwt2">hello</p>
22884 Table in fosterable position
22886 parsoid=wt2html,wt2wt
22895 <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">
22897 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
22903 # Parsoid only for bug 64747
22905 Properly encapsulate empty-content transclusions in fosterable positions
22913 <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":["","","",""]}]]}'>
22919 Support <object> element with .data attribute
22923 <object data="test.swf"></object>
22925 <object data="test.swf"></object>
22929 Don't block XML namespace declaration
22931 <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">MediaWiki</span>
22933 <p><span>MediaWiki</span>
22936 <p><span xmlns:dct="http://purl.org/dc/terms/" data-x-property="dct:title" data-parsoid='{"stx":"html"}'>MediaWiki</span></p>
22939 # -----------------------------------------------------------------
22940 # The following section of tests are primarily to spec requirements
22941 # around serialization of new/edited content.
22943 # All these tests are marked Parsoid html2wt and html2html only
22944 # ----------------------------------------------------------------
22946 # 'mi' is a localinterwiki prefix as well as a language
22948 Serialize interwiki links pointing to the current wiki as plain wiki links (bug 65869)
22952 <p><a rel="mw:ExtLink" href="http://mi.wikipedia.org/wiki/Foo">Foo</a></p>
22958 New wiki links (href variations)
22962 <a rel="mw:WikiLink" href="./Foo_bar">Foo_bar</a>
22963 <a rel="mw:WikiLink" href="Foo_bar">Foo_bar</a>
22964 <a rel="mw:WikiLink" href="Foo bar">Foo_bar</a>
22965 <a rel="mw:WikiLink" href="./Toxine_bact%C3%A9rienne">Toxine bactérienne</a>
22970 [[Toxine bactérienne]]
22974 New wiki links (content string variations)
22978 <a rel="mw:WikiLink" href="./Foo_bar">Foo_bar</a>
22979 <a rel="mw:WikiLink" href="./Foo_bar">Foo bar</a>
22980 <a rel="mw:WikiLink" href="./Foo_bar">./Foo_bar</a>
22984 [[Foo_bar|./Foo_bar]]
22988 New category links (href variations)
22992 <link rel="mw:PageProp/Category" href="./Category:Toxine_bactérienne" />
22993 <link rel="mw:PageProp/Category" href="./Category:Toxine_bact%C3%A9rienne" />
22994 <link rel="mw:PageProp/Category" href="Category:Toxine_bact%C3%A9rienne" />
22996 [[Category:Toxine bactérienne]]
22997 [[Category:Toxine bactérienne]]
22998 [[Category:Toxine bactérienne]]
23002 New sol transparent links don't need indent-pre nowiki protection
23007 <link rel="mw:PageProp/redirect" href="./Main_Page">
23008 <!-- this is good --> <link rel="mw:PageProp/Category" href="./Category:Good" />
23009 <!-- this is great --> <link rel="mw:PageProp/Category" href="./Kategorie:Great" />
23011 #WEITERLEITUNG [[Main Page]]
23012 <!-- this is good --> [[Category:Good]]
23013 <!-- this is great --> [[Kategorie:Great]]
23017 New interlanguage links (href variations)
23021 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine bactérienne" />
23022 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine_bactérienne" />
23023 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine_bact%C3%A9rienne" />
23025 [[es:Toxine bactérienne]]
23026 [[es:Toxine_bactérienne]]
23027 [[es:Toxine_bactérienne]]
23031 Image: Modifying size of an image (1)
23034 "modes": ["wt2wt"],
23036 ["img[height]", "attr", "height", "22"],
23037 ["img[width]", "attr", "width", "200"]
23041 [[Image:Foobar.jpg|230x230px]]
23043 [[Image:Foobar.jpg|200x200px]]
23047 Image: Modifying size of an image (2)
23050 "modes": ["wt2wt"],
23052 ["img[height]", "attr", "height", "100"],
23053 ["img[width]", "attr", "width", "500"]
23057 [[Image:Foobar.jpg|230x230px]]
23059 [[Image:Foobar.jpg|500x500px]]
23062 # Change in size is ignored so long as class='mw-default-size'
23064 Image: Modifying size of an image (3)
23067 "modes": ["wt2wt"],
23069 ["figure[class]", "removeClass", "mw-default-size"],
23070 ["figure img", "attr", "height", "19"],
23071 ["figure img", "attr", "width", "170"]
23075 [[Image:Foobar.jpg|thumb]]
23077 [[Image:Foobar.jpg|thumb|170x170px]]
23081 Image: Modifying alignment of an image (bug 48665)
23084 "modes": ["wt2wt"],
23086 ["figure[class]", "removeClass", "mw-halign-right"],
23087 ["figure[class]", "addClass", "mw-halign-left"]
23091 [[Image:Foobar.jpg|thumb|caption|right]]
23093 [[Image:Foobar.jpg|thumb|caption|left]]
23097 Image: Modifying mw-default-size of an frameless image (bug 62805)
23100 "modes": ["wt2wt"],
23102 ["figure.mw-default-size", "removeClass", "mw-default-size"]
23106 [[Image:Foobar.jpg|frameless|right]]
23108 [[Image:Foobar.jpg|frameless|right|220x220px]]
23112 Image: Modifying valign of an image (bug 49221)
23115 "modes": ["wt2wt"],
23117 ["*[typeof=\"mw:Image\"]", "removeClass", "mw-valign-middle"],
23118 ["*[typeof=\"mw:Image\"]", "addClass", "mw-valign-text-top"]
23122 [[File:Foobar.jpg|20px|middle]]
23124 [[File:Foobar.jpg|20px|text-top]]
23128 Image: Modifying alt attribute of an image (bug 56400)
23131 "modes": ["wt2wt"],
23133 ["img[alt]", "attr", "alt", "some alternate edited text"]
23137 [[File:Foobar.jpg|thumb|some caption|alt=some alternate text]]
23139 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
23143 Image: Modifying caption of an image
23146 "modes": ["wt2wt"],
23148 ["figcaption", "text", "new caption"]
23152 [[Image:Foobar.jpg|thumb|original caption]]
23154 [[Image:Foobar.jpg|thumb|new caption]]
23158 Image: empty alt attribute (bug 48924)
23162 [[File:Foobar.jpg|thumb|alt=|bar]]
23164 <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>
23168 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
23173 #<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>
23175 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
23179 Image: Block level image should have \n before and after
23182 [[File:Foobar.jpg|right|thumb|150x150px]]
23186 <figure class="mw-halign-right" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="17" width="150"/></a></figure>
23191 Image: New block level image should have \n before and after (existing content)
23194 [[File:Foobar.jpg|right|thumb|150x150px]]
23198 <figure class="mw-halign-right" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"right","ak":"right"},{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"150x150px"}]}'><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/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>
23203 Image: upright option (parsoid)
23207 [[File:Foobar.jpg|thumb|upright|caption]]
23208 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
23209 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
23211 <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>
23212 <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>
23213 <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>
23217 Image: upright option is ignored on inline and frame images (parsoid)
23221 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
23223 <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>
23227 Image: from basic HTML (1)
23231 <span typeof="mw:Image">
23232 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
23235 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
23239 Image: from basic HTML (2)
23243 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
23245 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
23249 Image: from basic HTML (3)
23253 <a href="Main"><img src="File:Foobar.jpg" width=100 height=100 alt="Alt"></a>
23255 [[File:Foobar.jpg|link=Main|alt=Alt|100x100px]]
23259 Image: from basic HTML (4)
23263 <img src="File:Foobar.jpg">
23265 [[File:Foobar.jpg|link=]]
23269 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
23274 <li><p>foo</p></li>
23281 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
23285 <ul> <li>foo</li></ul>
23291 Don't strip leading whitespace when handling indent-pre suppressing tags
23296 <tr><td> indented row</td></tr>
23299 <b>This is very bold of you!</b>
23302 indented cell (no pre-wrapping!)
23312 '''This is very bold of you!'''
23316 indented cell (no pre-wrapping!)
23324 Nowiki-wrap leading whitespace when handling indent-pre inducing tags
23329 <nowiki> </nowiki><span>bar</span>
23332 <nowiki> </nowiki></span>bar2
23335 <nowiki> </nowiki><span>bar</span>
23338 <nowiki> </nowiki><span>foo</span>
23356 Lists: Add space after bullets
23363 <li><span> baz</span></li>
23368 * <span> baz</span>
23372 Lists: Dont insert newlines in a serialized list item.
23376 <ul><li>a<br>b</li><li>c</li></ul>
23383 Headings: Add space before/after == (Bug 51744)
23390 <h2><span> baz</span></h2>
23398 == <span> baz</span> ==
23402 Headings: Force metas to serialize before/after
23406 <h2>hello there<link href="Category:A1" rel="mw:PageProp/Category" /></h2>
23407 <h2><link href="Category:A2" rel="mw:PageProp/Category" />hi pal</h2>
23409 <h2><!--foo--> <link href="Category:A3" rel="mw:PageProp/Category" /> how goes it</h2>
23417 <!--foo--> [[Category:A3]]
23422 Parsoid: Serialize positional parameters with = in them as named parameter
23426 <p about="#mwt1" typeof="mw:Transclusion"
23427 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
23429 <p about="#mwt1" typeof="mw:Transclusion"
23430 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
23432 <!--Orig params with data-parsoid has heuristics for handling = chars-->
23433 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
23434 <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>
23438 {{echo|1 = f=oo|2 = bar}}
23440 <!--Orig params with data-parsoid has heuristics for handling = chars-->
23441 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
23442 {{echo|<nowiki>f=oo</nowiki>|bar}}
23446 Parsoid: Serialize positional parameters with = in extlink as named parameter
23450 <p><a rel="mw:ExtLink" href="http://stuff?is=ok" about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://stuff?is=ok"}},"i":0}}]}'>http://stuff?is=ok</a></p>
23452 {{echo|1 = http://stuff?is=ok}}
23456 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
23460 <div>a<p>b</p></div>
23481 Substrings resembling wikitext in hrefs should not get nowiki escapes
23485 <a rel="mw:WikiLink" href="./Foo''bar''baz">Foo''bar''baz</a>
23491 Enforce single-line context in the serializer
23506 #-----------------------------
23507 # I/B quote minimization tests
23508 #-----------------------------
23511 1. I/B quote minimization: wikitext-only tags should be combined
23515 <p><i>A</i><i>B</i></p>
23516 <p><b>A</b><b>B</b></p>
23517 <p><i>A</i><b><i>B</i></b></p>
23518 <p><b>A</b><i><b>B</b></i></p>
23519 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
23520 <p><i><b>A</b></i><i><b>B</b></i></p>
23521 <p><i><b>A</b></i><b><i>B</i></b></p>
23522 <p><b><i>A</i></b><i><b>B</b></i></p>
23542 2. I/B quote minimization: wikitext and html tags should not be combined
23546 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
23547 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
23551 ''A''<nowiki/>'''<i>B</i>'''
23555 3. I/B quote minimization: templated content stops minimization
23559 <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>
23560 <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>
23562 ''A''{{echo|''B''}}
23564 ''A''{{echo|'''''B'''''}}
23568 4. I/B quote minimization: new content should be mimimized with adjacent old content
23572 <p><i>A</i><i>B</i></p>
23573 <p><b>A</b><b>B</b></p>
23574 <p><i>A</i><b><i>B</i></b></p>
23584 5a. Merge adjacent quote nodes if they've been edited
23587 "modes": ["wt2wt"],
23589 ["p", "contents", "remove", ":contains('b')"]
23599 5b. Merge adjacent quote nodes if they've been edited
23602 "modes": ["wt2wt"],
23608 ''a''<span id="x">b</span>''c''
23613 #------------------------------------
23614 # End of I/B quote minimization tests
23615 #------------------------------------
23618 Bug 54262: New entities
23624 <span typeof="mw:Entity"> </span>
23627 ## Note that there is no wikitext output for 'unknownproperty' ##
23628 ## Unknown magic words are silently dropped ##
23635 <meta property='mw:PageProp/toc' />
23636 <meta property='mw:PageProp/notoc' />
23637 <meta property='mw:PageProp/forcetoc' />
23638 <meta property='mw:PageProp/index' />
23639 <meta property='mw:PageProp/noindex' />
23640 <meta property='mw:PageProp/nogallery' />
23641 <meta property='mw:PageProp/noeditsection' />
23642 <meta property='mw:PageProp/notitleconvert' />
23643 <meta property='mw:PageProp/nocontentconvert' />
23644 <meta property='mw:PageProp/unknownproperty' />
23654 __NOCONTENTCONVERT__
23658 Consecutive <pre>s should not get merged
23660 parsoid=html2wt,html2html
23662 <pre>a</pre><pre>b</pre>
23690 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
23694 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
23696 [[Special:BookSources/1234567890|ISBN 1234567895]]
23700 Edited RFC links not serializable as RFC links should serialize as extlinks
23704 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
23706 [//tools.ietf.org/html/rfc123 New RFC]
23710 Edited PMID links not serializable as PMID links should serialize as extlinks
23714 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
23716 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
23720 WTS of autolinks with trailing/surrounding context
23724 <p><a href="http://cscott.net">http://cscott.net</a><b>foo</b></p>
23725 <p><a href="http://cscott.net">http://cscott.net</a><b data-parsoid='{"stx":"html"}'>foo</b></p>
23726 <p><b><a href="http://cscott.net">http://cscott.net</a></b></p>
23727 <p><b><a href="http://cscott.net">http://cscott.net</a> </b></p>
23728 <p><b><a href="http://cscott.net">http://cscott.net</a>x</b></p>
23729 <p><a href="http://cscott.net">http://cscott.net</a>x</p>
23731 http://cscott.net<nowiki/>'''foo'''
23733 http://cscott.net<b>foo</b>
23735 '''http://cscott.net<nowiki/>'''
23737 '''http://cscott.net '''
23739 '''http://cscott.net<nowiki/>x'''
23741 http://cscott.net<nowiki/>x
23745 WTS of autolinks with nowikis (round-trip)
23747 x<nowiki/>http://cscott.net<nowiki/>x
23749 <p>x<a rel="mw:ExtLink" href="http://cscott.net">http://cscott.net</a>x</p>
23752 # this is the "easy" test because it leaves in place all the
23753 # data-parsoid information indicating this is an autolink
23755 WTS of autolinks with escapes (editing)
23758 "modes": ["wt2wt"],
23760 [ "meta", "remove" ]
23764 x<nowiki/>http://cscott.net<nowiki/>x
23766 x<nowiki/>http://cscott.net<nowiki/>x
23770 Edited Redirect link should emit a non-piped wikitext link
23774 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
23780 T75121: Infer extension name from typeOf if data-mw is not present
23784 <div typeOf="mw:Extension/foo"></div>
23789 # Note that the <p> wrapping isn't present in PHP parser output
23790 # The important thing for this test is that P-wrapping doesn't
23791 # interfere with the <nowiki> protection for leading - in <td>
23792 # (which isn't necessary for <th>).
23794 T88318: p-wrapped dash in table.
23796 parsoid=html2wt,wt2wt
23799 <tr><th><p>-</p></th><th><p>- </p></th></tr>
23800 <tr><td><p>-</p></td><td><p>- </p></td></tr>
23801 <tr><td><small>-</small></td><td><br/><p>-</p></td><td><br/>-</td></tr>
23808 |<nowiki>-</nowiki>
23809 |<nowiki>- </nowiki>
23828 <td><small>-</small></td>
23839 # -----------------------------------------------------------------
23840 # End of section for Parsoid-only html2wt tests for serialization
23842 # -----------------------------------------------------------------
23849 Try for 100% code coverage