1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # You can also set the following parser properties via test options:
31 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
32 # wgLinkHolderBatchSize, wgRawHtml
34 # For testing purposes, temporary articles can created:
35 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
36 # where '/' denotes a newline.
38 # This is the standard article assumed to exist.
63 MediaWiki:bad image list
65 * [[File:Bad.jpg]] except [[Nasty page]]
99 Template:echo_with_span
105 Template:echo_with_div
117 Template:table_attribs
120 |</noinclude>style="color: red"| Foo
126 {{table_attribs}} || Bar || Baz
130 Template:image_attribs
133 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
161 This is a simple paragraph.
163 <p>This is a simple paragraph.
168 Paragraphs with extra newline spacing
191 Paragraphs with newline spacing with comment lines in between
199 <!--foo--><!--More than 1 comment, still stripped-->
203 <!--foo--> <!----> <!-- bar -->
264 Paragraphs with newline spacing with non-empty white-space lines in between
291 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
299 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
338 Extra newlines: More paragraphs with indented comment
353 Extra newlines followed by heading
368 <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>
369 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
372 <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>
377 Extra newlines between heading and content are swallowed
385 <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>
386 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
393 http://fr.wikipedia.org/wiki/🍺
394 <!-- EasterEgg we love beer, better be able be able to link to it -->
396 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
416 * plain''italic''plain
417 * plain''italic''plain''italic''plain
418 * plain'''bold'''plain
419 * plain'''bold'''plain'''bold'''plain
420 * plain''italic''plain'''bold'''plain
421 * plain'''bold'''plain''italic''plain
422 * plain''italic'''bold-italic'''italic''plain
423 * plain'''bold''bold-italic''bold'''plain
424 * plain'''''bold-italic'''italic''plain
425 * plain'''''bold-italic''bold'''plain
426 * plain''italic'''bold-italic'''''plain
427 * plain'''bold''bold-italic'''''plain
428 * plain l'''italic''plain
429 * plain l''''bold''' plain
432 </li><li> plain<i>italic</i>plain
433 </li><li> plain<i>italic</i>plain<i>italic</i>plain
434 </li><li> plain<b>bold</b>plain
435 </li><li> plain<b>bold</b>plain<b>bold</b>plain
436 </li><li> plain<i>italic</i>plain<b>bold</b>plain
437 </li><li> plain<b>bold</b>plain<i>italic</i>plain
438 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
439 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
440 </li><li> plain<i><b>bold-italic</b>italic</i>plain
441 </li><li> plain<b><i>bold-italic</i>bold</b>plain
442 </li><li> plain<i>italic<b>bold-italic</b></i>plain
443 </li><li> plain<b>bold<i>bold-italic</i></b>plain
444 </li><li> plain l'<i>italic</i>plain
445 </li><li> plain l'<b>bold</b> plain
450 # this example taken from the [[simple:Moon]] article (bug 47326)
452 Italics and possessives (1)
454 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
456 <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
460 # this example taken from [[en:Flaming Pie]] (bug 49926)
462 Italics and possessives (2)
464 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
466 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
470 # this example taken from [[en:Dictionary]] (bug 49926)
472 Italics and possessives (3)
474 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''.
476 <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>.
482 ### 2-quote opening sequence tests
485 Italics and bold: 2-quote opening sequence: (2,2)
495 Italics and bold: 2-quote opening sequence: (2,3)
505 Italics and bold: 2-quote opening sequence: (2,4)
515 Italics and bold: 2-quote opening sequence: (2,5) (php)
524 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
526 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
538 ### 3-quote opening sequence tests
542 Italics and bold: 3-quote opening sequence: (3,2)
552 Italics and bold: 3-quote opening sequence: (3,3)
562 Italics and bold: 3-quote opening sequence: (3,4)
572 Italics and bold: 3-quote opening sequence: (3,5) (php)
581 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
583 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
595 ### 4-quote opening sequence tests
599 Italics and bold: 4-quote opening sequence: (4,2)
609 Italics and bold: 4-quote opening sequence: (4,3)
619 Italics and bold: 4-quote opening sequence: (4,4)
629 Italics and bold: 4-quote opening sequence: (4,5) (php)
638 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
640 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
646 <p>'<b>foo<i></i></b>
652 ### 5-quote opening sequence tests
656 Italics and bold: 5-quote opening sequence: (5,2) (php)
665 # Parsoid reverses the nesting order, compared to the PHP parser
667 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
679 Italics and bold: 5-quote opening sequence: (5,3)
689 Italics and bold: 5-quote opening sequence: (5,4)
693 <p><i><b>foo'</b></i>
699 Italics and bold: 5-quote opening sequence: (5,5)
708 ### multiple quote sequences in a line
711 Italics and bold: multiple quote sequences: (2,4,2)
715 <p><i>foo'<b>bar</b></i>
721 Italics and bold: multiple quote sequences: (2,4,3)
725 <p><i>foo'<b>bar</b></i>
731 Italics and bold: multiple quote sequences: (2,4,4)
735 <p><i>foo'<b>bar'</b></i>
741 Italics and bold: multiple quote sequences: (3,4,2) (php)
750 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
752 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
758 <p><b>foo'</b>bar<i></i>
764 Italics and bold: multiple quote sequences: (3,4,3) (php)
773 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
775 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
781 <p><b>foo'</b>bar<b></b>
786 ### other quote tests
789 Italics and bold: other quote tests: (2,3,5)
791 ''this is about '''foo's family'''''
793 <p><i>this is about <b>foo's family</b></i>
799 Italics and bold: other quote tests: (2,(3,3),2)
801 ''this is about '''foo's''' family''
803 <p><i>this is about <b>foo's</b> family</i>
809 Italics and bold: other quote tests: (3,2,3,2)
811 '''this is about ''foo'''s family''
813 <p><b>this is about <i>foo</i></b><i>s family</i>
818 # The Parsoid team believes the PHP parser's output on this test is wrong.
819 # It only checks for convert-to-bold-on-single-character-word when the word
820 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
821 # This means that the bold token in position 2 (0-indexed) gets converted by
822 # parsoid, but doesn't get changed by the PHP parser.
824 Italics and bold: other quote tests: (3,2,3,3) (php)
828 '''this is about ''foo'''s family'''
830 <p>'<i>this is about </i>foo<b>s family</b>
833 # This is the output the Parsoid team believes to be correct.
835 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
839 '''this is about ''foo'''s family'''
841 <p><b>this is about <i>foo'</i>s family</b>
847 Italics and bold: other quote tests: (3,(2,2),3)
849 '''this is about ''foo's'' family'''
851 <p><b>this is about <i>foo's</i> family</b>
857 Italicized possessive
859 The ''[[Main Page]]'''s talk page.
861 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
866 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
867 (Requires tidy for PHP parser output to be fixed up)
869 parsoid=wt2html,wt2wt
877 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
878 <td><i>a</i></td><td><i>b</i></td></tr>
887 Non-html5 tags should be accepted
889 <center>''foo''</center>
892 <strike>''foo''</strike>
895 <center><i>foo</i></center>
896 <p><big><i>foo</i></big>
897 <font><i>foo</i></font>
898 <strike><i>foo</i></strike>
904 <wbr> is valid wikitext (bug 52468)
912 # <strike> is HTML4, <s> is HTML4/5.
914 <s> or <strike> for strikethrough
916 <strike>strike</strike>
920 <p><strike>strike</strike>
926 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
928 <b→> doesn't work! </b>
930 <bä> doesn't work! </b>
932 <boo> works fine </b>
940 <p><b→> doesn't work! </b>
941 </p><p><bä> doesn't work! </b>
942 </p><p><boo> works fine </b>
943 </p><p><s.foo>foo</s>
944 </p><p><s.foo>s.foo</s.foo>
945 </p><p><sub-ID#1>
950 ### Special characters
954 Bare pipe character (bug 52363)
963 Bare pipe character from a template (bug 52363)
972 ### <nowiki> test cases
976 <nowiki> unordered list
978 <nowiki>* This is not an unordered list item.</nowiki>
980 <p>* This is not an unordered list item.
987 <nowiki>Lorem ipsum dolor
1008 :There is not nowiki.
1009 :There is <nowiki>nowiki</nowiki>.
1011 #There is not nowiki.
1012 #There is <nowiki>nowiki</nowiki>.
1014 *There is not nowiki.
1015 *There is <nowiki>nowiki</nowiki>.
1017 <dl><dd>There is not nowiki.
1018 </dd><dd>There is nowiki.
1020 <ol><li>There is not nowiki.
1021 </li><li>There is nowiki.
1023 <ul><li>There is not nowiki.
1024 </li><li>There is nowiki.
1030 Entities inside <nowiki>
1032 <nowiki><</nowiki>
1039 Entities inside template parameters
1045 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
1053 Comments and Indent-Pre
1055 <!-- comment 1 --> asdf
1057 <!-- comment 1 --> asdf
1060 <!-- comment 1 --> asdf
1061 <!-- comment 2 -->xyz
1063 <!-- comment 1 --> asdf
1064 <!-- comment 2 --> xyz
1120 asdf<!-- comment 1 -->jkl
1130 <!-- foo --> b <!-- bar -->
1144 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1150 Comment semantics and delimiters
1152 <!-- --><!----><!-----><!------>
1158 Comment semantics and delimiters, redux
1160 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1161 -- foo -- funky huh? ... -->
1167 Comment semantics and delimiters: directors cut
1169 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1170 everything starting with < followed by !-- until the first -- and > we see,
1171 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1179 Comment semantics: nesting
1181 <!--<!-- no, we're not going to do anything fancy here -->-->
1188 Comment semantics: unclosed comment at end
1190 <!--This comment will run out to the end of the document
1196 Comment in template title
1205 Comment on its own line post-expand
1217 Comment on its own line post-expand with non-significant whitespace
1229 ### paragraph wrapping tests
1243 Block tag on one line
1255 Block tag on both lines
1267 Multiple lines without block tags
1285 Empty lines between lines with block tags
1315 ### Preformatted text
1324 And a [[Main Page|link]]
1330 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1335 Tabs don't trigger preformatted text
1339 This is preformatted text.
1345 <pre>This is preformatted text.
1351 Ident preformatting with inline content
1362 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1379 Regression with preformatted in <center>
1392 # Expected output in the following test is not really expected (there should be
1393 # <pre> in the output) -- it's only testing for well-formedness.
1395 Bug 6200: Preformatted in <blockquote>
1408 <pre> with attributes (bug 3202)
1410 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1412 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1417 <pre> with width attribute (bug 3202)
1419 <pre width="8">Narrow screen goodies</pre>
1421 <pre width="8">Narrow screen goodies</pre>
1426 <pre> with forbidden attribute (bug 3202)
1428 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1430 <pre width="8">Narrow screen goodies</pre>
1435 Entities inside <pre>
1444 <pre> with forbidden attribute values (bug 3202)
1446 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1448 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1453 <nowiki> inside <pre> (bug 13238)
1461 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1469 <pre><nowiki>Foo</nowiki></pre>
1474 <nowiki> and <pre> preference (first one wins)
1505 </pre> inside nowiki
1507 <nowiki></pre></nowiki>
1514 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1522 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1532 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1544 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1565 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1569 {{echo| foo}}{{echo| bar}}
1574 {{echo|<!--cmt--> foo}}
1576 <!--cmt-->{{echo| foo}}
1578 {{echo|{{echo| }}bar}}
1596 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1633 Templates: Single-line variant of parameter whitespace stripping test
1639 {{echo|{{echo| a}}}}
1641 {{echo|1={{echo| a}}}}
1654 Templates: Strip whitespace from named parameters, but not positional ones
1682 Templates: Dont strip whitespace from whitespace/comment-only arguments
1686 {{echo| <!--cmt--> }}
1693 Templates: Parsoid parameter escaping test 1
1697 {{echo|[foo]|{{echo|[bar]}}}}
1699 <p about="#mwt1" typeof="mw:Transclusion"
1700 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1704 Parsoid: Pipes in external links in template parameter
1708 {{echo|[{{echo|http://example.com}} link]}}
1710 <p><a rel="mw:ExtLink" href="http://example.com" about="#mwt31" typeof="mw:Transclusion" data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{echo|http://example.com}} link]"}},"i":0}">link</a></p>
1714 Parsoid: pipe in transclusion parameter
1718 {{echo|http://foo.com/a|b}}
1720 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1721 typeof="mw:Transclusion"
1722 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a|b"}},"i":0}'>http://foo.com/a|b</a></p>
1726 Parsoid: Pipe in external link target and content in template parameter
1728 parsoid=html2wt,wt2wt
1730 {{echo|[http://foo.com/a|b a|b]}}
1732 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1733 typeof="mw:Transclusion"
1734 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1735 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1739 Templates: Dont escape already nowiki-escaped text in template parameters
1741 parsoid=html2wt,wt2wt
1743 {{echo|foo<nowiki>|</nowiki>bar}}
1744 {{echo|<nowiki><div></nowiki>}}
1745 {{echo|<nowiki></nowiki>}}
1747 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"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>
1748 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt2" data-mw='{"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>
1749 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1754 ### Parsoid-centric tests for testing RT edge cases for pre
1758 1a. Indent-Pre and Comments
1771 1b. Indent-Pre and Comments
1784 1c. Indent-Pre and Comments
1797 1d. Indent-Pre and Comments
1798 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
1811 2a. Indent-Pre and tables
1832 2b. Indent-Pre and tables
1848 2c. Indent-Pre and tables (bug 42252)
1865 3a. Indent-Pre and block tags (single-line html)
1873 <pre><span> foo </span>
1878 3b. Indent-Pre and block tags (pre-content on separate line)
1930 4. Multiple spaces at start-of-line
1949 5. White-space in indent-pre
1950 NOTE: the white-space char on 2nd line is significant
1963 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
1986 7a. Indent-pre and category links
1988 parsoid=wt2html,wt2wt
1990 [[Category:foo]] <!-- No pre-wrapping -->
1991 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
1993 <span typeof="mw:Transclusion"> </span>
1997 7b. Indent-pre and category links
1999 parsoid=wt2html,wt2wt
2002 [[Category:foo]] {{echo|b}}
2004 <pre> a <span typeof="mw:Transclusion">b</span>
2009 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2013 HTML-pre: 1. embedded newlines
2049 HTML-pre: 2: indented text
2062 HTML-pre: 3: other wikitext
2083 ### Definition lists
2090 <dl><dt> name </dt><dd> Definition
2096 Definition list for indentation only
2100 <dl><dd> Indented text
2106 Definition list with no space
2110 <dl><dt>name</dt><dd>Definition
2116 Definition list with URL link
2118 ; http://example.com/ : definition
2120 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
2126 Definition list with bracketed URL link
2128 ;[http://www.example.com/ Example]:Something about it
2130 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
2136 Definition list with wikilink containing colon
2138 ; [[Help:FAQ]]: The least-read page on Wikipedia
2140 <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><dd> The least-read page on Wikipedia
2145 # At Brion's and JeLuF's insistence... :)
2147 Definition list with news link containing colon
2149 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2151 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
2157 Malformed definition list with colon
2159 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2161 <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
2167 Definition lists: colon in external link text
2169 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2171 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
2177 Definition lists: colon in HTML attribute
2179 ;<b style="display: inline">bold</b>
2181 <dl><dt><b style="display: inline">bold</b>
2187 Definition lists: self-closed tag
2189 ;one<br/>two : two-line fun
2191 <dl><dt>one<br />two </dt><dd> two-line fun
2197 Bug 11748: Literal closing tags
2201 <dd>test test test test test</dd>
2203 <dd>test test test test test</dd>
2208 <dd>test test test test test</dd>
2210 <dd>test test test test test</dd>
2216 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2219 ; term : description
2225 <dl><dt> term </dt><dd> description
2236 Definition list with empty definition and following paragraph
2241 <dl><dt> term</dt><dd>
2248 Nested definition lists using html syntax
2265 Definition Lists: No nesting: Multiple dd's
2279 Definition Lists: Indentation: Regular
2295 Definition Lists: Indentation: Missing 1st level
2309 Definition Lists: Indentation: Multi-level indent
2313 <dl><dd><dl><dd><dl><dd>i3
2321 Definition Lists: Hacky use to indent tables
2328 should be left alone
2330 <dl><dd><dl><dd><table>
2335 </td></tr></table></dd></dl></dd></dl>
2337 should be left alone
2340 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2341 ## as an empty dt item. It also ignores all but the last ";" when followed
2342 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2343 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2346 ## Ex: ";;t2 ::d2" is transformed into:
2358 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2359 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2370 ## All Parsoid only definition list tests have this difference.
2372 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2373 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2376 Table / list interaction: indented table with lists in table contents
2398 </td></tr></table></dd></dl>
2403 Table / list interaction: lists nested in tables nested in indented lists
2428 </td></tr></table></dd></dl>
2436 Definition Lists: Nesting: Multi-level (Parsoid only)
2466 Definition Lists: Nesting: Test 2 (Parsoid only)
2486 Definition Lists: Nesting: Test 3 (Parsoid only)
2514 Definition Lists: Nesting: Test 4
2519 <dl><dd><dl><dd><dl><dt>t3
2528 ## The Parsoid team believes the following three test exposes a
2529 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2530 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2532 Definition Lists: Mixed Lists: Test 1 (php)
2540 <dl><dd><dl><dt><ul><li> foo
2550 Definition Lists: Mixed Lists: Test 1 (parsoid)
2558 <dl><dd><dl><dt><ul><li> foo
2559 </li></ul></dt><dd><ul><li> bar
2560 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2564 Definition Lists: Mixed Lists: Test 2
2578 Definition Lists: Mixed Lists: Test 3
2583 <ul><li><dl><dd><dl><dd><dl><dd> d1
2594 Definition Lists: Mixed Lists: Test 4
2599 <ul><li><dl><dt>d1 </dt><dd>d2
2600 </dd><dt>d3 </dt><dd>d4
2608 Definition Lists: Mixed Lists: Test 5
2623 Definition Lists: Mixed Lists: Test 6
2628 <ol><li><ul><li><dl><dd>d1
2640 Definition Lists: Mixed Lists: Test 7
2654 Definition Lists: Mixed Lists: Test 8
2670 Definition Lists: Mixed Lists: Test 9
2674 <ul><li><dl><dt>foo </dt><dd>bar
2682 Definition Lists: Mixed Lists: Test 10
2686 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2693 # The Parsoid team disagrees with the PHP parser's seemingly-random
2694 # rules regarding dd/dt on the next two tests. Parsoid is more
2695 # consistent, and recognizes the shared nesting and keeps the
2696 # still-open tags around until the nesting is complete.
2699 Definition Lists: Mixed Lists: Test 11 (php)
2706 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2711 <dl><dt>boo </dt><dd>baz
2720 Definition Lists: Mixed Lists: Test 11 (parsoid)
2742 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2743 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2744 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2745 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2750 Definition Lists: Weird Ones: Test 1 (php)
2754 *#;*::;; foo : bar (who uses this?)
2756 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2768 Definition Lists: Weird Ones: Test 1 (parsoid)
2772 *#;*::;; foo : bar (who uses this?)
2789 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2790 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2797 External links: non-bracketed
2799 Non-bracketed: http://example.com
2801 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2806 External links: numbered
2808 Numbered: [http://example.com]
2809 Numbered: [http://example.net]
2810 Numbered: [http://example.com]
2812 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2813 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2814 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2819 External links: specified text
2821 Specified text: [http://example.com link]
2823 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2828 External links: trail
2830 Linktrails should not work for external links: [http://example.com link]s
2832 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2837 External links: dollar sign in URL
2839 http://example.com/1$2345
2841 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2846 External links: dollar sign in URL (named)
2848 [http://example.com/1$2345]
2850 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2855 External links: open square bracket forbidden in URL (bug 4377)
2857 http://example.com/1[2345
2859 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2864 External links: open square bracket forbidden in URL (named) (bug 4377)
2866 [http://example.com/1[2345]
2868 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2873 External links: nowiki in URL link text (bug 6230)
2875 [http://example.com/ <nowiki>''example site''</nowiki>]
2877 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2882 External links: newline forbidden in text (bug 6230 regression check)
2884 [http://example.com/ first
2887 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2893 External links: Pipe char between url and text
2895 [http://example.com | link]
2897 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2902 External links: protocol-relative URL in brackets
2904 [//example.com/ Test]
2906 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2911 External links: protocol-relative URL in brackets without text
2915 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2920 External links: protocol-relative URL in free text is left alone
2924 <p>//example.com/Foo
2929 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2931 foo//example.com/Foo
2933 <p>foo//example.com/Foo
2940 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2942 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2947 External image from https
2949 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2951 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2956 External image (when not allowed)
2958 wgAllowExternalImages=0
2960 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2962 <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>
2967 Link to non-http image, no img tag
2969 Link to non-http image, no img tag: ftp://example.com/test.jpg
2971 <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>
2976 External links: terminating separator
2978 Terminating separator: http://example.com/thing,
2980 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2985 External links: intervening separator
2987 Intervening separator: http://example.com/1,2,3
2989 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2994 External links: old bug with URL in query
2996 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2998 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3003 External links: old URL-in-URL bug, mixed protocols
3005 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3007 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3012 External links: URL in text
3014 URL in text: [http://example.com http://example.com]
3016 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3021 External links: Clickable images
3023 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3025 <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>
3030 External links: raw ampersand
3032 Old & use: http://x&y
3034 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3039 External links: encoded ampersand
3041 Old & use: http://x&y
3043 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3048 External links: encoded equals (bug 6102)
3050 http://example.com/?foo=bar
3052 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3057 External links: [raw ampersand]
3059 Old & use: [http://x&y]
3061 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3066 External links: [encoded ampersand]
3068 Old & use: [http://x&y]
3070 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3075 External links: [encoded equals] (bug 6102)
3077 [http://example.com/?foo=bar]
3079 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3084 External links: [IDN ignored character reference in hostname; strip it right off]
3086 [http://e‌xample.com/]
3088 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3092 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3093 # Where an external link could easily circumvent the sanitization of the text of
3094 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3095 # test demands a higher standard. That's a bit strange.
3099 # http://example.com -> [http://example.com|http://example.com]
3100 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3102 # The first example is sanitized, but the second is not. Any security benefits
3103 # from this production are trivial to circumvent. Either remove this test and
3104 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3105 # the test accordingly.
3110 External links: IDN ignored character reference in hostname; strip it right off
3112 http://e‌xample.com/
3114 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3119 External links: www.jpeg.org (bug 554)
3123 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3128 External links: URL within URL (original bug 2)
3130 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3132 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3137 BUG 361: URL inside bracketed URL
3139 [http://www.example.com/foo http://www.example.com/bar]
3141 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3146 BUG 361: URL within URL, not bracketed
3148 http://www.example.com/foo?=http://www.example.com/bar
3150 <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>
3155 BUG 289: ">"-token in URL-tail
3157 http://www.example.com/<hello>
3159 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3164 BUG 289: literal ">"-token in URL-tail
3166 http://www.example.com/<b>html</b>
3168 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3173 BUG 289: ">"-token in bracketed URL
3175 [http://www.example.com/<hello> stuff]
3177 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3182 BUG 289: literal ">"-token in bracketed URL
3184 [http://www.example.com/<b>html</b> stuff]
3186 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3191 BUG 289: literal double quote at end of URL
3193 http://www.example.com/"hello"
3195 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3200 BUG 289: literal double quote in bracketed URL
3202 [http://www.example.com/"hello" stuff]
3204 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3209 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3211 [http://www.example.com test]
3213 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3218 External links: link text with spaces
3220 [http://www.example.com a b c]
3221 [http://www.example.com ''a'' ''b'']
3223 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3224 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3229 External links: wiki links within external link (Bug 3695)
3231 [http://example.com [[wikilink]] embedded in ext link]
3233 <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>
3238 BUG 787: Links with one slash after the url protocol are invalid
3242 [http:/example.com title]
3244 <p>http:/example.com
3245 </p><p>[http:/example.com title]
3250 Bracketed external links with template-generated invalid target
3252 [{{echo|http:/example.com}} title]
3254 <p>[http:/example.com title]
3259 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3261 ''[http://example.com text'']
3262 [http://example.com '''text]'''
3263 ''Something [http://example.com in italic'']
3264 ''Something [http://example.com mixed''''', even bold]'''
3265 '''''Now [http://example.com both''''']
3267 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3268 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3269 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3270 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3271 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3277 Bug 4781: %26 in URL
3279 http://www.example.com/?title=AT%26T
3281 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3285 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3286 # % is actually legal in HTML5. Any change in output would need testing though.
3288 Bug 4781, 5267: %25 in URL
3290 http://www.example.com/?title=100%25_Bran
3292 <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>
3297 Bug 4781, 5267: %28, %29 in URL
3299 http://www.example.com/?title=Ben-Hur_%281959_film%29
3301 <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>
3307 Bug 4781: %26 in autonumber URL
3309 [http://www.example.com/?title=AT%26T]
3311 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3316 Bug 4781, 5267: %26 in autonumber URL
3318 [http://www.example.com/?title=100%25_Bran]
3320 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3325 Bug 4781, 5267: %28, %29 in autonumber URL
3327 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3329 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3335 Bug 4781: %26 in bracketed URL
3337 [http://www.example.com/?title=AT%26T link]
3339 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3344 Bug 4781, 5267: %26 in bracketed URL
3346 [http://www.example.com/?title=100%25_Bran link]
3348 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3353 Bug 4781, 5267: %28, %29 in bracketed URL
3355 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3357 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3362 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3364 Some [http://example.com/ pretty ''italics'' and stuff]!
3366 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3371 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3373 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3375 <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>
3380 External link containing double-single-quotes with no space separating the url from text in italics
3382 [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]].]
3384 <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>
3389 External link with comments in link text
3391 [http://www.google.com Google <!-- comment -->]
3393 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3398 URL-encoding in URL functions (single parameter)
3400 {{localurl:Some page|amp=&}}
3402 <p>/index.php?title=Some_page&amp=&
3407 URL-encoding in URL functions (multiple parameters)
3409 {{localurl:Some page|q=?&=&}}
3411 <p>/index.php?title=Some_page&q=?&amp=&
3418 http://example.com/index.php?foozoid%5B%5D=bar
3420 http://example.com/index.php?foozoid[]=bar
3422 <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>
3423 </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>
3428 IPv6 urls (bug 21261)
3432 http://[2404:130:0:1000::187:2]/index.php
3434 <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>
3439 Non-extlinks in brackets
3448 [{{echo|foo}} ''bar'']
3449 [{{echo|foo}}l's] errand
3450 [{{echo|foo}}l's errand]
3452 [url=http://example.com]
3465 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3470 Parsoid: Percent encoding in external links
3474 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3476 <p><a rel="mw:ExtLink"
3477 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3481 Parsoid: use url link syntax for links where the content is equal the link
3488 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3498 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3500 Normal text. '''''Bold italic text.''''' Normal text.
3502 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3503 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3509 Unclosed and unmatched quotes (php)
3513 '''''Bold italic text '''with bold deactivated''' in between.'''''
3515 '''''Bold italic text ''with italic deactivated'' in between.'''''
3519 ..spanning two paragraphs (should not work).'''
3521 '''Bold tag left open
3523 ''Italic tag left open
3527 <!-- Unmatching number of opening, closing tags: -->
3528 '''This year''''s election ''should'' beat '''last year''''s.
3530 ''Tom'''s car is bigger than ''Susan'''s.
3532 Plain ''italic'''s plain
3534 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3535 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3536 </p><p><b>Bold text..</b>
3537 </p><p>..spanning two paragraphs (should not work).
3538 </p><p><b>Bold tag left open</b>
3539 </p><p><i>Italic tag left open</i>
3541 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3542 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3543 </p><p>Plain <i>italic'</i>s plain
3546 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3547 # parser strips. The wikitext contains just the first half of the bold
3548 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3549 # differently than the PHP parser.)
3551 Unclosed and unmatched quotes (parsoid)
3555 '''''Bold italic text '''with bold deactivated''' in between.'''''
3557 '''''Bold italic text ''with italic deactivated'' in between.'''''
3561 ..spanning two paragraphs (should not work).'''
3563 '''Bold tag left open
3565 ''Italic tag left open
3569 <!-- Unmatching number of opening, closing tags: -->
3570 '''This year''''s election ''should'' beat '''last year''''s.
3572 ''Tom'''s car is bigger than ''Susan'''s.
3574 Plain ''italic'''s plain
3576 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3577 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3578 </p><p><b>Bold text..</b>
3579 </p><p>..spanning two paragraphs (should not work).<b></b>
3580 </p><p><b>Bold tag left open</b>
3581 </p><p><i>Italic tag left open</i>
3583 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3584 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3585 </p><p>Plain <i>italic'</i>s plain
3592 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3595 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3596 # is the bare minimum required by the spec, see:
3597 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3599 A table with no data. (php)
3606 # Parsoid team replies: empty table tags are legal in HTML5
3608 A table with no data. (parsoid)
3617 # A table with nothing but a caption is invalid XHTML, we might want to render
3618 # this as <p>caption</p>
3620 A table with nothing but a caption (php)
3630 </caption><tr><td></td></tr></table>
3633 # Parsoid team replies: table with only a caption is legal in HTML5
3635 A table with nothing but a caption (parsoid)
3643 <table><caption> caption</caption></table>
3647 A table with caption with default-spaced attributes and a table row
3650 |+ style="color: red;" | caption1
3656 <caption style="color: red;"> caption1
3665 A table with captions with non-default spaced attributes and a table row
3668 |+style="color: red;"|caption2
3669 |+ style="color: red;"| caption3
3675 <caption style="color: red;">caption2
3677 <caption style="color: red;"> caption3
3686 Table td-cell syntax variations
3690 | foo bar foo || baz
3691 | style='color:red;' | baz
3692 | style='color:red;' || baz
3699 <td> foo bar foo </td>
3702 <td style="color:red;"> baz
3704 <td> style='color:red;' </td>
3732 Simple table but with multiple dashes for row wikitext
3750 Multiplication table
3752 {| border="1" cellpadding="2"
3753 |+Multiplication table
3755 ! × !! 1 !! 2 !! 3
3773 <table border="1" cellpadding="2">
3774 <caption>Multiplication table
3821 Accept "||" in table headings
3836 Accept "||" in indented table headings
3846 </th></tr></table></dd></dl>
3851 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3868 Accept "| !" at start of line in tables (ignore !-attribute)
3872 | !style="color:red" | bar
3884 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 +/-
3888 |style='color:red;'|+1
3889 |style='color:blue;'|-1
3901 <td style="color:red;">+1
3903 <td style="color:blue;">-1
3927 |rowspan=2| Cell 2, row 1 (and 2)
3938 <td rowspan="2"> Cell 2, row 1 (and 2)
3956 {| bgcolor=#ABCDEF border=2
3961 |the original table again
3969 <table bgcolor="#ABCDEF" border="2">
3977 <td>the original table again
3983 Invalid attributes in table cell (bug 1830)
3998 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4001 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4005 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4006 <td>]" onmouseover="alert(document.cookie)">test
4015 Indented table markup mixed with indented pre content (proposed in bug 6200)
4020 Text that should be rendered preformatted
4028 <pre>Text that should be rendered preformatted
4037 Template-generated table cell attributes and cell content
4045 <td style="color: red"> Foo
4051 Template-generated table cell attributes and cell content (2)
4054 |align=center {{table_attribs}}
4059 <td align="center" style="color: red"> Foo
4065 Template-generated table cell attributes and cell content (3)
4068 |align=center {{table_cells}}
4073 <td align="center" style="color: red"> Foo </td>
4081 Table with row followed by newlines and table heading
4099 Table with empty line following the start tag
4116 # FIXME: Preserve the attribute properly (with an empty string as value) in
4117 # the PHP parser. Parsoid implements the behavior below.
4119 Table attributes with empty value
4131 </td></tr></tbody></table>
4136 Wikitext table with a lot of comments
4159 Wikitext table with double-line table cell
4176 Table cell with a single comment
4192 # The expected HTML structure in this test is debatable. The PHP parser does
4193 # not parse this kind of table at all. The main focus for Parsoid is on
4194 # round-tripping, so this output is ok for now. TODO: revisit!
4196 Wikitext table with html-syntax row (Parsoid)
4208 <td>foo</td></tr></tbody></table>
4212 Implicit <td> after a |-
4213 (PHP parser relies on Tidy to add the missing <td> tags)
4215 parsoid=wt2html,wt2wt
4228 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4229 (PHP parser relies on Tidy to add the missing <td> tags)
4231 parsoid=wt2html,wt2wt
4243 <tr><td><pre>a</pre></td></tr>
4244 <tr><td> b</td></tr>
4250 Lists should be recognized in an implicit <td> context
4251 (PHP parser relies on Tidy to add the missing <td> tags)
4253 parsoid=wt2html,wt2wt
4262 <td><ul><li>a</li></ul></td>
4271 Plain link, capitalized
4275 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4280 Plain link, uncapitalized
4284 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4291 [[Main Page|The Main Page]]
4293 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4298 Piped link with comment in link text
4300 [[Main Page|The Main<!--front--> Page]]
4302 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4311 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4316 Broken link with fragment
4318 [[Zigzagzogzagzig#zug]]
4320 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4325 Special page link with fragment
4327 [[Special:Version#anchor]]
4329 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4334 Nonexistent special page link with fragment
4336 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4338 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4345 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4347 <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>
4354 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4356 <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>!!!
4367 Bug 43661: Piped links with identical prefixes
4369 [[prefixed article|prefixed articles with spaces]]
4371 [[prefixed article|prefixed articlesaoeu]]
4373 [[Main Page|Main Page test]]
4375 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4376 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4377 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4383 Link with HTML entity in suffix / tail
4385 [[Main Page]]", [[Main Page]]a
4387 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4392 Link with 3 brackets
4401 Piped link with 3 brackets
4403 [[[main page|the main page]]]
4405 <p>[[[main page|the main page]]]
4410 Link with multiple pipes
4412 [[Main Page|The|Main|Page]]
4414 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4421 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4423 <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>
4428 Piped link to namespace
4430 [[Meta:Disclaimers|The disclaimers]]
4432 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4439 [[Usually caused by a typo (oops}]]
4441 <p>[[Usually caused by a typo (oops}]]
4446 Link containing % (not as a hex sequence)
4450 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
4455 Link containing % as a single hex sequence interpreted to char
4459 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
4464 Link containing % as a double hex sequence interpreted to hex sequence
4468 <p>[[7%2525 Solution]]
4473 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4474 Example for such a section: == < ==
4476 [[%23%3c]][[%23%3e]]
4478 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4483 Link containing "<#" and ">#" as a hex sequences
4485 [[%3c%23]][[%3e%23]]
4487 <p>[[%3c%23]][[%3e%23]]
4492 Link containing an equals sign
4494 [[Special:BookSources/isbn=4-00-026157-6]]
4496 <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>
4503 Just a test of an article title containing a tilde.
4506 # note that links containing signatures, like [[Foo~~~~]], are
4507 # massaged by the pre-save transform (PST) and so the tildes are never
4508 # seen by the parser.
4510 Link containing a tilde
4514 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4519 Link containing double-single-quotes '' (bug 4598)
4521 [[Lista d''e paise d''o munno]]
4523 <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>
4528 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4530 Some [[Link|pretty ''italics'' and stuff]]!
4532 <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>!
4537 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4539 ''Some [[Link|pretty ''italics'' and stuff]]!
4541 <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>
4546 Link with double quotes in title part (literal) and alternate part (interpreted)
4548 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4552 [[''Pentecoste''|Pentecoste]]
4554 [[''Pentecoste''|''Pentecoste'']]
4556 <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>
4557 </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>
4558 </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>
4559 </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>
4564 Broken image links with HTML captions (bug 39700)
4566 [[File:Nonexistent|<script></script>]]
4567 [[File:Nonexistent|100px|<script></script>]]
4568 [[File:Nonexistent|<]]
4569 [[File:Nonexistent|a<i>b</i>c]]
4571 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4572 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4573 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4574 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4581 [[http://www.example.com]]
4583 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4588 Plain link to URL with link text
4590 [[http://www.example.com Link text]]
4592 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4597 Plain link to protocol-relative URL
4599 [[//www.example.com]]
4601 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4606 Plain link to protocol-relative URL with link text
4608 [[//www.example.com Link text]]
4610 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4615 Plain link to page with question mark in title
4621 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4622 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4627 # I'm fairly sure the expected result here is wrong.
4628 # We want these to be URL links, not pseudo-pages with URLs for titles....
4629 # However the current output is also pretty screwy.
4632 # I'm changing it to match the current output--it arguably makes more
4633 # sense in the light of the test above. Old expected result was:
4634 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4636 # But I think this test is bordering on "garbage in, garbage out" anyway.
4641 Piped link to URL: [[http://www.example.com|an example URL]]
4643 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4648 BUG 2: [[page|http://url/]] should link to page, not http://url/
4650 [[Main Page|http://url/]]
4652 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4657 BUG 337: Escaped self-links should be bold
4661 [[Bug462]] [[Bug462]]
4663 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4668 Self-link to section should not be bold
4672 [[Main Page#section]]
4674 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4685 Self-link to numeric title
4691 <p><strong class="selflink">0</strong>
4696 Link to numeric-equivalent title
4702 <p><a href="/wiki/00" title="00">00</a>
4707 <nowiki> inside a link
4709 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4711 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4716 Non-breaking spaces in title
4718 [[ Main Page ]]
4720 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4725 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4731 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4736 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4742 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4747 Internal link with en linktrail: no apostrophes (bug 27473)
4753 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4758 Internal link with ca linktrail with apostrophes (bug 27473)
4764 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4769 Internal link with kaa linktrail with apostrophes (bug 27473)
4775 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4786 Internal link with is link prefix
4790 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4792 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4803 Internal link with is link trail and link prefix
4807 [[mótmælendatrú|xxx]]ar
4809 mótmælenda[[söfnuður]]
4810 mótmælenda[[söfnuður|söfnuðir]]
4811 mótmælenda[[söfnuður|söfnuðir]]xxx
4813 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4814 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4815 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4816 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4817 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4822 Parsoid link trail escaping
4824 parsoid=html2wt,html2html
4828 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4832 Parsoid link prefix escaping
4835 parsoid=html2wt,html2html
4837 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4839 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4843 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4851 [http://wp.org ''foo'']
4853 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4854 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4855 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4856 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4861 ### Interwiki links (see maintenance/interwiki.sql)
4865 Inline interwiki link
4867 [[MeatBall:SoftSecurity]]
4869 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4874 Inline interwiki link with empty title (bug 2372)
4878 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4883 Interwiki link encoding conversion (bug 1636)
4885 *[[Wikipedia:ro:Olteniţa]]
4886 *[[Wikipedia:ro:Olteniţa]]
4888 <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>
4889 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4895 Interwiki link with fragment (bug 2130)
4897 [[MeatBall:SoftSecurity#foo]]
4899 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4914 Double interlanguage link
4925 Interlanguage link, with prefix links
4937 Double interlanguage link, with prefix links (bug 8897)
4950 Parsoid-specific test: Wikilinks with should RT properly
4956 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4961 Parsoid: handle constructor well
4969 <p data-parsoid="{"dsr":[0,15,0,0]}"><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"},"dsr":[0,15,2,2]}">constructor</a></p>
4972 <p data-parsoid="{"dsr":[17,36,0,0]}"><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"},"dsr":[17,36,2,2]}">constructor:foo</a></p>
4976 ## Redirects, Parsoid-only
4979 Simple redirect to page
4983 #REDIRECT [[Main Page]]
4985 <link rel="mw:PageProp/redirect" href="./Main_Page">
4989 Optional colon in #REDIRECT
4991 # the colon is archaic syntax. we support it for wt2html, but we
4992 # don't care that it roundtrips back to the modern syntax.
4993 parsoid=wt2html,html2html
4995 #REDIRECT:[[Main Page]]
4997 <link rel="mw:PageProp/redirect" href="./Main_Page">
5001 Whitespace in #REDIRECT with optional colon
5003 # the colon and gratuitous whitespace is archaic syntax. we support
5004 # it for wt2html, but we don't care that it roundtrips back to the
5005 # modern syntax (without extra whitespace)
5006 parsoid=wt2html,html2html
5013 <link rel="mw:PageProp/redirect" href="./Main_Page">
5017 Piped link in #REDIRECT
5019 # content after piped link is ignored. we support this syntax,
5020 # but don't care that the piped link is lost when we roundtrip this.
5023 #REDIRECT [[Main Page|bar]]
5025 <link rel="mw:PageProp/redirect" href="./Main_Page">
5029 Redirect to category
5033 #REDIRECT [[Category:Foo]]
5035 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5039 Redirect to category with URL encoding
5043 #REDIRECT [[Category%3AFoo]]
5045 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5049 Redirect to category page
5051 parsoid=wt2html,html2html
5053 #REDIRECT [[:Category:Foo]]
5055 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5059 Redirect to image page (1)
5063 #REDIRECT [[File:Wiki.png]]
5065 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5069 Redirect to image page (2)
5073 #REDIRECT [[Image:Wiki.png]]
5075 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5079 Redirect to language
5083 #REDIRECT [[en:File:Wiki.png]]
5085 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5089 Redirect to interwiki
5093 #REDIRECT [[meatball:File:Wiki.png]]
5095 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5099 Non-English #REDIRECT
5104 #TILVÍSUN [[Main Page]]
5106 <link rel="mw:PageProp/redirect" href="./Main_Page">
5123 Broken br tag sanitization
5133 # TODO: Fix html2html mode (bug 51055)!
5135 Parsoid: Broken br tag recognition
5145 Incorrecly removing closing slashes from correctly formed XHTML
5147 <br style="clear:both;" />
5149 <p><br style="clear:both;" />
5154 Failing to transform badly formed HTML into correct XHTML
5156 <br style="clear: left;">
5157 <br style="clear: right;">
5158 <br style="clear: both;">
5160 <p><br style="clear: left;" />
5161 <br style="clear: right;" />
5162 <br style="clear: both;" />
5167 Handling html with a div self-closing tag
5176 <p><div title />
5180 <p><div title=bar />
5181 <div title=bar/>
5183 <div title="bar/"></div>
5189 Handling html with a br self-closing tag
5198 <p><br title="title" />
5199 <br title="title" />
5208 Horizontal ruler (should it add that extra space?)
5222 Horizontal ruler -- 4+ dashes render hr
5231 Horizontal ruler -- eats additional dashes on the same line
5240 Horizontal ruler -- does not collapse dashes on consecutive lines
5251 Horizontal ruler -- <4 dashes render as plain text
5260 Horizontal ruler -- Supports content following dashes on same line
5269 ### Block-level elements
5292 <ol><li>Numbered list
5309 ***#Number on level 4
5311 **#Number on level 3
5312 **#Number on level 3
5316 #** Level 3, but ordered
5319 <ol><li> with numbers
5321 <ul><li> and bullets
5323 <ol><li> and numbers
5325 </li><li>bullets again
5326 <ul><li>bullet level 2
5327 <ul><li>bullet level 3
5328 <ol><li>Number on level 4
5331 </li><li>bullet level 2
5332 <ol><li>Number on level 3
5333 </li><li>Number on level 3
5336 <ol><li>number level 2
5339 <ul><li><ul><li> Level 3
5343 <ol><li><ul><li><ul><li> Level 3, but ordered
5377 Nested lists 3 (first element empty)
5390 Nested lists 4 (first element empty)
5403 Nested lists 5 (both elements empty)
5416 Nested lists 6 (both elements empty)
5429 Nested lists 7 (skip initial nesting levels)
5433 <ul><li><ul><li><ul><li> foo
5441 Nested lists 8 (multiple nesting transitions)
5449 <ul><li><ul><li> bar
5459 1. Lists with start-of-line-transparent tokens before bullets: Comments
5473 2. Lists with start-of-line-transparent tokens before bullets: Template close
5485 List items are not parsed correctly following a <pre> block (bug 785)
5491 <ul><li> <pre>foo</pre>
5492 </li><li> <pre>bar</pre>
5499 List items from template
5510 * notSOL{{inner list}}
5529 List interrupted by empty line or heading
5539 <ul><li><ul><li> bar
5542 <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>
5543 <ul><li> Another list item
5549 Multiple list tags generated by templates
5564 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
5567 <!--This line will NOT split the list-->
5569 <!--This line will NOT split the list either-->
5571 <!--foo--> <!----> <!--This line NOT split the list either-->
5583 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
5586 <!--This line will NOT split the list-->
5588 <!--This line will NOT split the list either-->
5590 <!--foo--> <!----> <!--This line NOT split the list
5604 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5606 parsoid=wt2html,wt2wt
5610 * {{echo|<li>templated li-hack}}
5611 * <!--foo--> <li> unsupported li-hack with preceding comments
5614 <li><li>not a li-hack
5620 <li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<li>templated li-hack"}}}'>templated li-hack</li>
5621 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5624 <li></li><li>not a li-hack
5630 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5641 <ol><li> foo<ol><li> bar</li></ol></li></ol><ul><li> foo<ul><li> bar</li></ul></li></ul><dl><dd> foo<dl><dd> bar</dd></dl></dd></dl>
5645 Parsoid: Test of whitespace serialization with Templated bullets
5652 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}'> Bar</li>
5656 # ------------------------------------------------------------------------
5657 # The next set of tests are about Parsoid's ability to handle badly nested
5658 # tags (parse, minimize scope of fixup, and roundtrip back)
5659 # ------------------------------------------------------------------------
5662 Unbalanced closing block tags break a list
5663 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5673 </li></ul></div><div>
5679 Unbalanced closing non-block tags don't break a list
5680 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5690 <ul><li>a<span></span>
5696 Unclosed formatting tags that straddle lists are closed and reopened
5697 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5705 </li><li> <s> b </s>
5710 List embedded in a non-block tag
5711 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5719 <p><small></small></p>
5725 <p><small></small></p>
5732 # Note that the current date is hard-coded as
5733 # 1970-01-01T00:02:03Z (a Thursday)
5734 # when running parser tests. The timezone is also fixed to GMT, so
5735 # local date will be identical to current date.
5738 Magic Word: {{CURRENTDAY}}
5747 Magic Word: {{CURRENTDAY2}}
5756 Magic Word: {{CURRENTDAYNAME}}
5765 Magic Word: {{CURRENTDOW}}
5774 Magic Word: {{CURRENTMONTH}}
5783 Magic Word: {{CURRENTMONTH1}}
5792 Magic Word: {{CURRENTMONTHABBREV}}
5794 {{CURRENTMONTHABBREV}}
5801 Magic Word: {{CURRENTMONTHNAME}}
5803 {{CURRENTMONTHNAME}}
5810 Magic Word: {{CURRENTMONTHNAMEGEN}}
5812 {{CURRENTMONTHNAMEGEN}}
5819 Magic Word: {{CURRENTTIME}}
5828 Magic Word: {{CURRENTHOUR}}
5837 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5846 Magic Word: {{CURRENTYEAR}}
5855 Magic Word: {{CURRENTTIMESTAMP}}
5857 {{CURRENTTIMESTAMP}}
5864 Magic Words LOCAL (UTC)
5868 * {{LOCALMONTHNAME}}
5869 * {{LOCALMONTHNAMEGEN}}
5870 * {{LOCALMONTHABBREV}}
5879 * {{LOCALTIMESTAMP}}
5894 </li><li> 19700101000203
5900 Magic Word: {{FULLPAGENAME}}
5902 title=[[User:Ævar Arnfjörð Bjarmason]]
5906 <p>User:Ævar Arnfjörð Bjarmason
5911 Magic Word: {{FULLPAGENAMEE}}
5913 title=[[User:Ævar Arnfjörð Bjarmason]]
5917 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5922 Magic Word: {{TALKSPACE}}
5924 title=[[User:Ævar Arnfjörð Bjarmason]]
5933 Magic Word: {{TALKSPACE}}, same namespace
5935 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5944 Magic Word: {{TALKSPACE}}, main namespace
5946 title=[[Parser Test]]
5955 Magic Word: {{TALKSPACEE}}
5957 title=[[User:Ævar Arnfjörð Bjarmason]]
5966 Magic Word: {{SUBJECTSPACE}}
5968 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5977 Magic Word: {{SUBJECTSPACE}}, same namespace
5979 title=[[User:Ævar Arnfjörð Bjarmason]]
5988 Magic Word: {{SUBJECTSPACE}}, main namespace
5990 title=[[Parser Test]]
5998 Magic Word: {{SUBJECTSPACEE}}
6000 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6009 Magic Word: {{NAMESPACE}}
6011 title=[[User:Ævar Arnfjörð Bjarmason]]
6020 Magic Word: {{NAMESPACEE}}
6022 title=[[User:Ævar Arnfjörð Bjarmason]]
6031 Magic Word: {{NAMESPACENUMBER}}
6033 title=[[User:Ævar Arnfjörð Bjarmason]]
6042 Magic Word: {{SUBPAGENAME}}
6044 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6053 Magic Word: {{SUBPAGENAMEE}}
6055 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6064 Magic Word: {{ROOTPAGENAME}}
6066 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6070 <p>Ævar Arnfjörð Bjarmason
6075 Magic Word: {{ROOTPAGENAMEE}}
6077 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6081 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6086 Magic Word: {{BASEPAGENAME}}
6088 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6092 <p>Ævar Arnfjörð Bjarmason
6097 Magic Word: {{BASEPAGENAMEE}}
6099 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6103 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6108 Magic Word: {{TALKPAGENAME}}
6110 title=[[User:Ævar Arnfjörð Bjarmason]]
6114 <p>User talk:Ævar Arnfjörð Bjarmason
6119 Magic Word: {{TALKPAGENAMEE}}
6121 title=[[User:Ævar Arnfjörð Bjarmason]]
6125 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6130 Magic Word: {{SUBJECTPAGENAME}}
6132 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6136 <p>User:Ævar Arnfjörð Bjarmason
6141 Magic Word: {{SUBJECTPAGENAMEE}}
6143 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6145 {{SUBJECTPAGENAMEE}}
6147 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6152 Magic Word: {{NUMBEROFFILES}}
6161 Magic Word: {{PAGENAME}}
6163 title=[[User:Ævar Arnfjörð Bjarmason]]
6167 <p>Ævar Arnfjörð Bjarmason
6172 Magic Word: {{PAGENAME}} with metacharacters
6174 title=[['foo & bar = baz']]
6178 <p><i>'foo & bar = baz'</i>
6183 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6185 title=[[*RFC 1234 http://example.com/]]
6189 <p>*RFC 1234 http://example.com/
6194 Magic Word: {{PAGENAMEE}}
6196 title=[[User:Ævar Arnfjörð Bjarmason]]
6200 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6205 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6207 title=[[*RFC 1234 http://example.com/]]
6211 <p>*RFC_1234_http://example.com/
6216 Magic Word: {{REVISIONID}}
6225 Magic Word: {{SCRIPTPATH}}
6234 Magic Word: {{STYLEPATH}}
6243 Magic Word: {{SERVER}}
6247 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6252 Magic Word: {{SERVERNAME}}
6261 Magic Word: {{SITENAME}}
6270 Case-sensitive magic words, when cased differently, should just be template transclusions
6277 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6278 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6279 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6280 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6285 Case-insensitive magic words should still work with weird casing.
6295 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6300 Namespace 1 {{ns:1}}
6309 Namespace 1 {{ns:01}}
6318 Namespace 0 {{ns:0}} (bug 4783)
6326 Namespace 0 {{ns:00}} (bug 4783)
6334 Namespace -1 {{ns:-1}}
6343 Namespace User {{ns:User}}
6352 Namespace User talk {{ns:User_talk}}
6361 Namespace User talk {{ns:uSeR tAlK}}
6370 Namespace File {{ns:File}}
6379 Namespace File {{ns:Image}}
6388 Namespace (lang=de) Benutzer {{ns:User}}
6399 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
6405 <p>Benutzer Diskussion
6413 {{urlencode:hi world?!}}
6414 {{urlencode:hi world?!|WIKI}}
6415 {{urlencode:hi world?!|PATH}}
6416 {{urlencode:hi world?!|QUERY}}
6429 Magic links: internal link to RFC (bug 479)
6433 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
6438 Magic links: RFC (bug 479)
6442 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
6447 Magic links: ISBN (bug 1937)
6451 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
6456 Magic links: PMID incorrectly converts space to underscore
6460 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
6469 Nonexistent template
6471 {{thistemplatedoesnotexist}}
6473 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
6478 Template with invalid target containing tags
6480 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6482 <p>{{a<b>b</b>|foo|a=b|a = b}}
6487 Template with invalid target containing unclosed tag
6489 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6491 <p>{{a<b>|foo|a=b|a = b}}</b>
6498 This is a test template
6506 <p>This is a test template
6511 Template with explicit namespace
6515 <p>This is a test template
6523 This is a test template with parameter {{{param}}}
6529 {{paramtest|param=foo}}
6531 <p>This is a test template with parameter foo
6536 Template:paramtestnum
6542 Template unnamed parameter
6544 {{paramtestnum|Main Page|the main page}}
6546 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
6551 Template:templatesimple
6557 Template:templateredirect
6559 #redirect [[Template:templatesimple]]
6563 Template:templateasargtestnum
6569 Template:templateasargtest
6571 {{template{{{templ}}}}}
6575 Template:templateasargtest2
6581 Template with template name as unnamed argument
6583 {{templateasargtestnum|templatesimple}}
6590 Template with template name as argument
6592 {{templateasargtest|templ=simple}}
6599 Template with template name as argument (2)
6601 {{templateasargtest2|templ=templatesimple}}
6608 Template:templateasargtestdefault
6610 {{{{{templ|templatesimple}}}}}
6620 Template with default value
6622 {{templateasargtestdefault}}
6629 Template with default value (value set)
6631 {{templateasargtestdefault|templ=templa}}
6640 {{templateredirect}}
6647 Template with argument in separate line
6649 {{ templateasargtest |
6657 Template with complex template as argument
6660 param ={{ templateasargtest |
6663 <p>This is a test template with parameter (test)
6668 Template with thumb image (with link in description)
6671 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6673 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>
6678 Template:complextemplate
6680 {{{1}}} {{paramtest|
6681 param ={{{param}}}}}
6685 Template with complex arguments
6688 param ={{ templateasargtest |
6689 templ = simple }}|[[Template:complextemplate|link]]}}
6691 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6696 BUG 553: link with two variables in a piped link
6699 |[[{{{1}}}|{{{2}}}]]
6704 <td>[[{{{1}}}|{{{2}}}]]
6710 Magic variable as template parameter
6712 {{paramtest|param={{SITENAME}}}}
6714 <p>This is a test template with parameter MediaWiki
6721 [[{{{param}}}|link]]
6725 Template parameter as link source
6727 {{linktest|param=Main Page}}
6729 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6734 Template-generated attribute string (k='v')
6736 <span {{attr_str|id|v1}}>bar</span>
6738 <p><span id="v1">bar</span>
6745 including another template, {{paramtest|param={{{arg}}}}}
6749 Template passing argument to another template
6751 {{paramtest2|arg='hmm'}}
6753 <p>including another template, This is a test template with parameter 'hmm'
6764 Template as link source
6768 [[{{linktest2}}|Main Page]]
6770 [[{{linktest2}}]]Page
6772 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6773 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6774 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6792 Template infinite loop
6796 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6801 Template from main namespace
6820 BUG 529: Template with table, not included at beginning of line
6839 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6859 BUG 41: Template parameters shown as broken links
6868 Template with targets containing wikilinks
6872 {{[[{{echo|foo}}]]}}
6874 {{{{echo|[[foo}}]]}}
6876 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6877 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6885 ''None'' of '''this''' should be
6887 but rather passed unmodified
6891 # hmm, fix this or just deprecate msgnw and document its behavior?
6897 {{msgnw:MSGNW test}}
6899 <p>''None'' of '''this''' should be
6901 but rather passed unmodified
6909 {{int:youhavenewmessages|lots of money|not!}}
6911 <p>You have lots of money (not!).
6918 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6922 <includeonly> and <noinclude> being included
6933 <onlyinclude>Foo</onlyinclude>bar
6937 <onlyinclude> being included
6949 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6953 <onlyinclude> and <includeonly> being included
6962 <includeonly> and <noinclude> on a page
6964 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6971 Un-closed <noinclude>
6978 <onlyinclude> on a page
6980 <onlyinclude>Foo</onlyinclude>bar
6987 Un-closed <onlyinclude>
6994 Self-closed noinclude, includeonly, onlyinclude tags
7005 Unbalanced includeonly and noinclude tags
7009 |b</noinclude></noinclude>
7010 |c</noinclude></includeonly>
7011 |d</includeonly></includeonly>
7020 <td>c</includeonly>
7022 <td>d</includeonly></includeonly>
7028 Template:Includeonly section
7031 ==Includeonly section==
7037 Bug 6563: Edit link generation for section shown by <includeonly>
7039 {{includeonly section}}
7041 <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>
7042 <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>
7046 # Uses same input as the contents of [[Template:Includeonly section]]
7048 Bug 6563: Section extraction for section shown by <includeonly>
7053 ==Includeonly section==
7061 Bug 6563: Edit link generation for section suppressed by <includeonly>
7064 ==Includeonly section==
7068 <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>
7073 Bug 6563: Section extraction for section suppressed by <includeonly>
7078 ==Includeonly section==
7086 Un-closed <includeonly>
7092 # TODO: test with DOM fragment reuse!
7094 Parsoid: DOM fragment reuse
7096 parsoid=wt2wt,wt2html
7098 a{{echo|b<table></table>c}}d
7110 a<span typeof="mw:Transclusion">b</span>
7111 <table></table><span>c</span>d
7112 <p typeof="mw:Transclusion">ab</p>
7115 <p typeof="mw:Transclusion">a</p>
7121 ### <includeonly> and <noinclude> in attributes
7124 0. includeonly around the entire attribute
7126 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
7128 <p><span id="v2">bar</span>
7133 1. includeonly in html attr key
7135 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
7137 <p><span id="foo">bar</span>
7142 2. includeonly in html attr value
7144 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7145 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7147 <p><span id="v1">bar</span>
7148 <span id="v1">bar</span>
7153 3. includeonly in part of an attr value
7155 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7157 <p><span style="color:red;">bar</span>
7162 ### Testing parsing of templates where a template arg
7163 ### has the same name as the template itself.
7173 Templates: Template Name/Arg clash: 1. Use of positional param
7182 Templates: Template Name/Arg clash: 2. Use of named param
7191 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7200 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7204 Templates: 1. Simple use
7213 Templates: 2. Inside a block tag
7215 <div>{{echo|Foo}}</div>
7222 Templates: P-wrapping: 1a. Templates on consecutive lines
7233 Templates: P-wrapping: 1b. Templates on consecutive lines
7247 Templates: P-wrapping: 1c. Templates on consecutive lines
7250 {{echo|bar}} <div>baz</div>
7259 Templates: P-wrapping: 1d. Template preceded by comment-only line
7261 parsoid=wt2html,wt2wt
7267 <p typeof="mw:Transclusion">Bar
7272 Templates: Inline Text: 1. Multiple tmeplate uses
7274 {{echo|Foo}}bar{{echo|baz}}
7281 Templates: Inline Text: 2. Back-to-back template uses
7283 {{echo|Foo}}{{echo|bar}}
7290 Templates: Block Tags: 1. Multiple template uses
7292 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
7294 <div>Foo</div><div>bar</div><div>baz</div>
7299 Templates: Block Tags: 2. Back-to-back template uses
7301 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
7303 <div>Foo</div><div>bar</div>
7308 Templates: Links: 1. Simple example
7310 {{echo|[[Foo|bar]]}}
7312 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7317 Templates: Links: 2. Generation of link href
7319 [[{{echo|Foo}}|bar]]
7321 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7326 Templates: Links: 3. Generation of part of a link href
7328 [[Fo{{echo|o}}|bar]]
7332 [[Foo{{echo|bar}}baz]]
7334 [[Foo{{echo|bar}}|bar]]
7336 [[:Foo{{echo|bar}}]]
7338 [[:Foo{{echo|bar}}|bar]]
7340 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7341 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7342 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
7343 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7344 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7345 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7350 Templates: Links: 4. Multiple templates generating link href
7352 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
7354 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7359 Templates: Links: 5. Generation of link text
7361 [[Foo|{{echo|bar}}]]
7363 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7368 Templates: Links: 5. Nested templates (only outermost template should be marked)
7370 {{echo|[[{{echo|Foo}}|bar]]}}
7372 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7377 Templates: HTML Tag: 1. Generation of HTML attr. key
7379 <div {{echo|style}}="color:red;">foo</div>
7381 <div style="color:red;">foo</div>
7386 Templates: HTML Tag: 2. Generation of HTML attr. value
7388 <div style={{echo|'color:red;'}}>foo</div>
7390 <div style="color:red;">foo</div>
7395 Templates: HTML Tag: 3. Generation of HTML attr key and value
7397 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
7399 <div style="color:red;">foo</div>
7404 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
7406 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
7408 <div title="This is a long title with just one piece templated">foo</div>
7413 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
7415 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
7417 <div title="This is a long title with just one piece templated">foo</div>
7422 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
7424 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
7426 <div title="This is a long title with just one piece templated">foo</div>
7431 Templates: HTML Tag: 7. Generation of partial attribute key string
7433 <div st{{echo|yle}}="color:red;">foo</div>
7435 <div style="color:red;">foo</div>
7440 Templates: HTML Tables: 1. Generating start of a HTML table
7442 {{echo|<table><tr><td>foo</td>}}</tr></table>
7444 <table><tr><td>foo</td></tr></table>
7449 Templates: HTML Tables: 2a. Generating middle of a HTML table
7451 <table><tr>{{echo|<td>foo</td>}}</tr></table>
7453 <table><tr><td>foo</td></tr></table>
7458 Templates: HTML Tables: 2b. Generating middle of a HTML table
7460 <table>{{echo|<tr><td>foo</td></tr>}}</table>
7462 <table><tr><td>foo</td></tr></table>
7467 Templates: HTML Tables: 3. Generating end of a HTML table
7469 <table><tr>{{echo|<td>foo</td></tr></table>}}
7471 <table><tr><td>foo</td></tr></table>
7476 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
7478 {{echo|<table>}}<tr><td>foo</td></tr></table>
7480 <table><tr><td>foo</td></tr></table>
7485 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
7487 <table>{{echo|<tr>}}<td>foo</td></tr></table>
7489 <table><tr><td>foo</td></tr></table>
7494 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
7496 <table><tr>{{echo|<td>}}foo</td></tr></table>
7498 <table><tr><td>foo</td></tr></table>
7503 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
7505 <table><tr><td>foo{{echo|</td>}}</tr></table>
7507 <table><tr><td>foo</td></tr></table>
7512 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
7514 <table><tr><td>foo</td>{{echo|</tr>}}</table>
7516 <table><tr><td>foo</td></tr></table>
7521 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
7523 <table><tr><td>foo</td></tr>{{echo|</table>}}
7525 <table><tr><td>foo</td></tr></table>
7530 Templates: HTML Tables: 5. Proper fostering of categories from inside
7532 parsoid=wt2html,wt2wt
7534 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
7535 <!--Two categories (Bug 50330)-->
7536 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
7538 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
7539 <!--Two categories (Bug 50330)-->
7540 <link rel="mw:WikiLink/Category" href="./Category:Bar1"><link rel="mw:WikiLink/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
7544 Templates: Wiki Tables: 1a. Fostering of entire template content
7552 <tr><td></td></tr></table>
7557 Templates: Wiki Tables: 1b. Fostering of entire template content
7570 <tr><td></td></tr></table>
7575 Templates: Wiki Tables: 2. Fostering of partial template content
7585 <tr><td></td></tr></table>
7590 Templates: Wiki Tables: 3. td-content via multiple templates
7593 {{echo|{{pipe}}a}}{{echo|b}}
7604 Templates: Wiki Tables: 4. Templated tags, no content
7610 <tr><td></td></tr></table>
7615 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7629 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7643 Templates: Lists: Multi-line list-items via templates
7645 *{{echo|a {{nonexistent|
7647 *{{echo|b {{nonexistent|
7650 <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>
7651 </li><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>
7657 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7659 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7661 <p><i>ab</i>c<i>d</i>e
7666 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7667 (PHP parser generates misnested html)
7669 parsoid=wt2html,wt2wt
7671 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7673 <p><span typeof="mw:Transclusion"><i>a</i></span><i typeof="mw:Transclusion"><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
7677 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7678 (PHP parser generates misnested html)
7680 parsoid=wt2html,wt2wt
7682 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7684 <div typeof="mw:Transclusion"><i>a</i></div>
7685 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7686 <div typeof="mw:Transclusion">e</div>
7690 Templates: Ugly nesting: 4. Divs opened/closed across templates
7692 a<div>b{{echo|c</div>d}}e
7699 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7705 |{{echo|foo</table>}}
7709 <table typeof="mw:Transclusion">
7712 <td>foo</td></tr></tbody></table><span>bar</span>
7716 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7726 <td>1. {{echo|foo </table>}}</td>
7728 <td>2. {{echo|baz </table>}}</td>
7741 <table about="#mwt1" typeof="mw:Transclusion">
7746 <td >1. foo </td></tr></tbody></table></td>
7748 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7749 </span><span about="#mwt1">
7751 abc</span><span about="#mwt1">
7752 </span><span about="#mwt1">
7753 </span><span about="#mwt1">
7754 </span><span about="#mwt1">
7755 </span><span about="#mwt1">
7757 xyz</span><span about="#mwt1">
7758 </span><span about="#mwt1">
7763 Templates: Ugly templates: 3. newline-only template parameter
7772 # This looks like a bug: a single newline triggers p/br for some reason.
7774 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7785 Parser Functions: 1. Simple example
7794 Parser Functions: 2. Nested use (only outermost should be marked up)
7803 ### Pre-save transform tests
7806 pre-save transform: subst:
7812 This is a test template
7816 pre-save transform: normal template
7826 pre-save transform: nonexistent template
7830 {{thistemplatedoesnotexist}}
7832 {{thistemplatedoesnotexist}}
7837 pre-save transform: subst magic variables
7846 # This is bug 89, which I fixed. -- wtm
7848 pre-save transform: subst: templates with parameters
7852 {{subst:paramtest|param="something else"}}
7854 This is a test template with parameter "something else"
7860 <nowiki>'''not wiki'''</nowiki>
7864 pre-save transform: nowiki in subst (bug 1188)
7868 {{subst:nowikitest}}
7870 <nowiki>'''not wiki'''</nowiki>
7875 Template:commenttest
7877 This template has <!-- a comment --> in it.
7881 pre-save transform: comment in subst (bug 1936)
7885 {{subst:commenttest}}
7887 This template has <!-- a comment --> in it.
7891 pre-save transform: unclosed tag
7895 <nowiki>'''not wiki'''
7897 <nowiki>'''not wiki'''
7901 pre-save transform: mixed tag case
7905 <NOwiki>'''not wiki'''</noWIKI>
7907 <NOwiki>'''not wiki'''</noWIKI>
7911 pre-save transform: unclosed comment in <nowiki>
7915 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7917 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7920 # Leading @ in this template definition works around a limitation
7921 # in parsoid's parserTests which otherwise strips the <span> from the
7922 # result (confusing it for a template wrapper)
7926 @<span onmouseover="alert('crap')">Oh no</span>
7930 (confirming safety of fix for subst bug 1936)
7932 {{Template:dangerous}}
7934 <p>@<span>Oh no</span>
7939 pre-save transform: comment containing gallery (bug 5024)
7943 <!-- <gallery>data</gallery> -->
7945 <!-- <gallery>data</gallery> -->
7949 pre-save transform: comment containing extension
7953 <!-- <tag>data</tag> -->
7955 <!-- <tag>data</tag> -->
7959 pre-save transform: comment containing nowiki
7963 <!-- <nowiki>data</nowiki> -->
7965 <!-- <nowiki>data</nowiki> -->
7969 pre-save transform: <noinclude> in subst (bug 3298)
7979 pre-save transform: <onlyinclude> in subst (bug 3298)
7991 {{<includeonly>subst:</includeonly>Includes}}
7995 Template:SafeSubstTest
7997 {{<includeonly>safesubst:</includeonly>Includes}}
8001 bug 22297: safesubst: works during PST
8005 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
8011 bug 22297: safesubst: works during normal parse
8020 subst: does not work during normal parse
8024 <p>{{subst:Includes}}
8029 pre-save transform: context links ("pipe trick")
8033 [[Article (context)|]]
8036 [[Bar:Article (context)|]]
8037 [[:Bar:Article (context)|]]
8039 [[|Article (context)]]
8043 [[Article (context)|Article]]
8044 [[Bar:Article|Article]]
8045 [[:Bar:Article|Article]]
8046 [[Bar:Article (context)|Article]]
8047 [[:Bar:Article (context)|Article]]
8049 [[Article (context)]]
8050 [[Bar:X (Y) Z|X (Y) Z]]
8051 [[:Bar:X (Y) Z|X (Y) Z]]
8055 pre-save transform: context links ("pipe trick") with interwiki prefix
8059 [[interwiki:Article|]]
8060 [[:interwiki:Article|]]
8061 [[interwiki:Bar:Article|]]
8062 [[:interwiki:Bar:Article|]]
8064 [[interwiki:Article|Article]]
8065 [[:interwiki:Article|Article]]
8066 [[interwiki:Bar:Article|Bar:Article]]
8067 [[:interwiki:Bar:Article|Bar:Article]]
8071 pre-save transform: context links ("pipe trick") with parens in title
8073 pst title=[[Somearticle (context)]]
8077 [[Article (context)|Article]]
8081 pre-save transform: context links ("pipe trick") with comma in title
8083 pst title=[[Someplace, Somewhere]]
8086 [[Otherplace, Elsewhere|]]
8087 [[Otherplace, Elsewhere, Anywhere|]]
8089 [[Otherplace, Somewhere|Otherplace]]
8090 [[Otherplace, Elsewhere|Otherplace]]
8091 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
8095 pre-save transform: context links ("pipe trick") with parens and comma
8097 pst title=[[Someplace (IGNORED), Somewhere]]
8100 [[Otherplace (place), Elsewhere|]]
8102 [[Otherplace, Somewhere|Otherplace]]
8103 [[Otherplace (place), Elsewhere|Otherplace]]
8107 pre-save transform: context links ("pipe trick") with comma and parens
8109 pst title=[[Who, me? (context)]]
8112 [[Me, Myself, and I (1937 song)|]]
8114 [[Yes, you. (context)|Yes, you.]]
8115 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
8119 pre-save transform: context links ("pipe trick") with namespace
8121 pst title=[[Ns:Somearticle]]
8125 [[Ns:Article|Article]]
8129 pre-save transform: context links ("pipe trick") with namespace and parens
8131 pst title=[[Ns:Somearticle (context)]]
8135 [[Ns:Article (context)|Article]]
8139 pre-save transform: context links ("pipe trick") with namespace and comma
8141 pst title=[[Ns:Somearticle, Context, Whatever]]
8145 [[Ns:Article, Context, Whatever|Article]]
8149 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8151 pst title=[[Ns:Somearticle, Context (context)]]
8155 [[Ns:Article (context)|Article]]
8159 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8161 pst title=[[Ns:Somearticle (IGNORED), Context]]
8165 [[Ns:Article, Context|Article]]
8169 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8173 [[Article(context)|]]
8174 [[Bar:Article(context)|]]
8175 [[:Bar:Article(context)|]]
8176 [[|Article(context)]]
8180 [[Article(context)|Article]]
8181 [[Bar:Article(context)|Article]]
8182 [[:Bar:Article(context)|Article]]
8183 [[Article(context)]]
8185 [[:Bar:X(Y)Z|X(Y)Z]]
8189 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8193 [[Article (context)|]]
8194 [[Bar:Article (context)|]]
8195 [[:Bar:Article (context)|]]
8196 [[|Article (context)]]
8200 [[Article (context)|Article]]
8201 [[Bar:Article (context)|Article]]
8202 [[:Bar:Article (context)|Article]]
8203 [[Article (context)]]
8204 [[Bar:X (Y) Z|X (Y) Z]]
8205 [[:Bar:X (Y) Z|X (Y) Z]]
8209 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8213 [[Article(context)|]]
8214 [[Bar:Article(context)|]]
8215 [[:Bar:Article(context)|]]
8216 [[|Article(context)]]
8220 [[Article(context)|Article]]
8221 [[Bar:Article(context)|Article]]
8222 [[:Bar:Article(context)|Article]]
8223 [[Article(context)]]
8225 [[:Bar:X(Y)Z|X(Y)Z]]
8229 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8233 [[Article (context), context|]]
8234 [[Article (context),context|]]
8235 [[Bar:Article (context), context|]]
8236 [[Bar:Article (context),context|]]
8237 [[:Bar:Article (context), context|]]
8238 [[:Bar:Article (context),context|]]
8240 [[Article (context), context|Article]]
8241 [[Article (context),context|Article]]
8242 [[Bar:Article (context), context|Article]]
8243 [[Bar:Article (context),context|Article]]
8244 [[:Bar:Article (context), context|Article]]
8245 [[:Bar:Article (context),context|Article]]
8249 pre-save transform: trim trailing empty lines
8253 Empty lines are trimmed
8259 Empty lines are trimmed
8263 pre-save transform: Signature expansion
8268 * <noinclude>~~~</noinclude>
8269 * <includeonly>~~~</includeonly>
8270 * <onlyinclude>~~~</onlyinclude>
8272 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
8273 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
8274 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
8275 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
8280 pre-save transform: Signature expansion in nowiki tags (bug 93)
8286 <nowiki>~~~~</nowiki>
8288 <includeonly><nowiki>~~~~</nowiki></includeonly>
8290 <noinclude><nowiki>~~~~</nowiki></noinclude>
8292 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8294 {{subst:Foo}} shall be converted to FOO
8296 As well as inside noinclude/onlyinclude
8297 <noinclude>{{subst:Foo}}</noinclude>
8298 <onlyinclude>{{subst:Foo}}</onlyinclude>
8300 But not inside includeonly
8301 <includeonly>{{subst:Foo}}</includeonly>
8305 <nowiki>~~~~</nowiki>
8307 <includeonly><nowiki>~~~~</nowiki></includeonly>
8309 <noinclude><nowiki>~~~~</nowiki></noinclude>
8311 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8313 FOO shall be converted to FOO
8315 As well as inside noinclude/onlyinclude
8316 <noinclude>FOO</noinclude>
8317 <onlyinclude>FOO</onlyinclude>
8319 But not inside includeonly
8320 <includeonly>{{subst:Foo}}</includeonly>
8324 Parsoid: Recognize nowiki with trailing space in tags
8328 <nowiki ><div>[[foo]]</nowiki >
8336 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8343 Parsoid: Recognize nowiki with odd capitalization
8347 <noWikI ><div>[[foo]]</Nowiki >
8349 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8354 Parsoid: Escape nowiki with trailing space in tags
8358 <nowiki > foo </nowiki >
8364 <p><nowiki > foo </nowiki ></p>
8365 <p>a<nowiki />b</p>
8366 <p>c<nowiki/ >d</p>
8370 Parsoid: Escape weird noWikI capitalizations
8374 <noWikI > foo </NoWikI >
8376 <p><noWikI > foo </NoWikI ></p>
8380 ### Message transform tests
8383 message transform: magic variables
8393 message transform: should not transform wiki markup
8403 message transform: <noinclude> in transcluded template (bug 4926)
8413 message transform: <onlyinclude> in transcluded template (bug 4926)
8423 {{#special:}} page name, known
8427 {{#special:Recentchanges}}
8429 Special:RecentChanges
8433 {{#special:}} page name with subpage, known
8437 {{#special:Recentchanges/param}}
8439 Special:RecentChanges/param
8443 {{#special:}} page name, unknown
8447 {{#special:foobar nonexistent}}
8449 Special:Foobar nonexistent
8453 {{#speciale:}} page name, known
8457 {{#speciale:Recentchanges}}
8459 Special:RecentChanges
8463 {{#speciale:}} page name with subpage, known
8467 {{#speciale:Recentchanges/param}}
8469 Special:RecentChanges/param
8473 {{#speciale:}} page name, unknown
8477 {{#speciale:foobar nonexistent}}
8479 Special:Foobar_nonexistent
8485 ### For Parsoid-specific tests, see
8486 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8493 [[Image:foobar.jpg]]
8495 <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>
8500 Simple image (parsoid)
8504 [[Image:foobar.jpg]]
8506 <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>
8511 Simple image (using File: namespace, now canonical) (php)
8517 <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>
8522 Simple image (using File: namespace, now canonical) (parsoid)
8528 <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>
8533 Right-aligned image (php)
8537 [[Image:foobar.jpg|right]]
8539 <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>
8544 Right-aligned image (parsoid)
8548 [[File:Foobar.jpg|right]]
8550 <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>
8554 Image with caption (php)
8558 [[File:Foobar.jpg|right|Caption text]]
8560 <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>
8565 Image with caption (parsoid)
8569 [[File:Foobar.jpg|right|Caption text]]
8571 <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>
8575 Image with empty attribute (php)
8579 [[File:Foobar.jpg|right||Caption text]]
8581 <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>
8586 Image with empty attribute (parsoid)
8590 [[File:Foobar.jpg|right||Caption text]]
8592 <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>
8596 Image with attributes from template (php)
8600 [[File:Foobar.jpg|{{image_attribs}}]]
8602 <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>
8607 Image with attributes from template (parsoid)
8611 [[File:Foobar.jpg|{{image_attribs}}]]
8613 <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>
8617 Image with link tails (php)
8621 123[[File:Foobar.jpg]]456
8622 123[[File:Foobar.jpg|right]]456
8623 123[[File:Foobar.jpg|thumb]]456
8625 <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
8627 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
8628 123<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
8633 Image with link tails (parsoid)
8637 123[[File:Foobar.jpg]]456
8638 123[[File:Foobar.jpg|right]]456
8639 123[[File:Foobar.jpg|thumb]]456
8641 <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>
8642 123<figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></figure>456
8643 123<figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180"></a></figure>456
8647 Image with multiple captions -- only last one is accepted (php)
8651 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8653 <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>
8658 Image with multiple captions -- only last one is accepted (parsoid)
8662 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8664 <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>
8668 Image with width attribute at different positions (php)
8672 [[File:Foobar.jpg|200px|right|Caption]]
8673 [[File:Foobar.jpg|right|200px|Caption]]
8674 [[File:Foobar.jpg|right|Caption|200px]]
8676 <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>
8677 <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>
8678 <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>
8683 Image with width attribute at different positions (parsoid)
8687 [[File:Foobar.jpg|200px|right|Caption]]
8688 [[File:Foobar.jpg|right|200px|Caption]]
8689 [[File:Foobar.jpg|right|Caption|200px]]
8691 <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>
8692 <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>
8693 <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>
8697 Image with link parameter, wiki target (php)
8701 [[File:Foobar.jpg|link=Main Page]]
8703 <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>
8708 Image with link parameter, wiki target (parsoid)
8712 [[File:Foobar.jpg|link=Main Page]]
8714 <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>
8718 Image with link parameter, URL target (php)
8722 [[File:Foobar.jpg|link=http://example.com/]]
8724 <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>
8728 # parsoid bug 49293 (part 1)
8730 Image with link parameter, URL target (parsoid)
8734 [[File:Foobar.jpg|link=http://example.com/]]
8736 <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>
8740 Image with link parameter, protocol-less URL target (php)
8744 [[File:Foobar.jpg|link=//example.com/]]
8746 <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>
8750 # parsoid bug 49293 (part 2)
8752 Image with link parameter, protocol-less URL target (parsoid)
8756 [[File:Foobar.jpg|link=//example.com/]]
8758 <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>
8762 Image with link parameter, wgExternalLinkTarget
8764 [[Image:foobar.jpg|link=http://example.com/]]
8766 wgExternalLinkTarget='foobar'
8768 <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>
8773 Image with link parameter, wgNoFollowLinks set to false
8775 [[Image:foobar.jpg|link=http://example.com/]]
8777 wgNoFollowLinks=false
8779 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8784 Image with link parameter, wgNoFollowDomainExceptions
8786 [[Image:foobar.jpg|link=http://example.com/]]
8788 wgNoFollowDomainExceptions='example.com'
8790 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8795 Image with link parameter, wgExternalLinkTarget, unnamed parameter
8797 [[Image:foobar.jpg|link=http://example.com/|Title]]
8799 wgExternalLinkTarget='foobar'
8801 <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>
8806 Image with empty link parameter (php)
8810 [[File:Foobar.jpg|link=]]
8812 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8817 Image with empty link parameter (parsoid)
8821 [[File:Foobar.jpg|link=]]
8823 <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>
8827 Image with link parameter (wiki target) and unnamed parameter (php)
8831 [[File:Foobar.jpg|link=Main Page|Title]]
8833 <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>
8838 Image with link parameter (wiki target) and unnamed parameter (parsoid)
8842 [[File:Foobar.jpg|link=Main Page|Title]]
8844 <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>
8848 Image with link parameter (URL target) and unnamed parameter (php)
8852 [[File:Foobar.jpg|link=http://example.com/|Title]]
8854 <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>
8859 Image with link parameter (URL target) and unnamed parameter (parsoid)
8863 [[File:Foobar.jpg|link=http://example.com/|Title]]
8865 <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>
8869 Thumbnail image with link parameter
8873 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8875 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8880 Manually-specified thumbnail image
8884 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8886 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/File:Foobar.jpg"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8891 Manually-specified thumbnail image with explicit link to wiki page
8895 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8897 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8902 Manually-specified thumbnail image with explicit link to url
8906 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8908 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="http://example.com"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8913 Manually-specified thumbnail image with explicit no link
8917 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8919 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8924 Manually-specified thumbnail image with explicit link and alt text
8928 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8930 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="alttext" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8935 Image with frame and link
8937 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8939 <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>
8944 Image with frame and link and explicit alt
8946 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8948 <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>
8953 Image with wiki markup in implicit alt
8955 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8957 <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>
8962 Image with wiki markup in explicit alt
8964 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8966 <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>
8971 Link to image page- image page normally doesn't exists, hence edit link
8972 Add test with existing image page
8973 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8977 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8982 bug 18784 Link to non-existent image page with caption should use caption as link text
8984 [[:Image:test|caption]]
8986 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8991 Frameless image caption with a free URL
8993 [[Image:foobar.jpg|http://example.com]]
8995 <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>
9000 Thumbnail image caption with a free URL
9002 [[Image:foobar.jpg|thumb|http://example.com]]
9004 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
9009 Thumbnail image caption with a free URL and explicit alt
9011 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
9013 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
9018 SVG thumbnails with no language set
9021 [[File:Foobar.svg|thumb|width=200]]
9023 <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="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
9028 SVG thumbnails with language de
9031 [[File:Foobar.svg|thumb|width=200|lang=de]]
9033 <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="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/langde-270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/langde-360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
9038 SVG thumbnails with invalid language code
9041 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
9043 <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="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>lang=invalid.language.code</div></div></div>
9048 BUG 1887: A ISBN with a thumbnail
9050 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
9052 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
9057 BUG 1887: A RFC with a thumbnail
9059 [[Image:foobar.jpg|thumb|This is RFC 12354]]
9061 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
9066 BUG 1887: A mailto link with a thumbnail
9068 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
9070 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
9074 # Pending resolution to bug 368
9076 BUG 648: Frameless image caption with a link
9078 [[Image:foobar.jpg|text with a [[link]] in it]]
9080 <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>
9085 BUG 648: Frameless image caption with a link (suffix)
9087 [[Image:foobar.jpg|text with a [[link]]foo in it]]
9089 <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>
9094 BUG 648: Frameless image caption with an interwiki link
9096 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
9098 <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>
9103 BUG 648: Frameless image caption with a piped interwiki link
9105 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
9107 <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>
9112 Escape HTML special chars in image alt text
9114 [[Image:foobar.jpg|& < > "]]
9116 <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>
9121 BUG 499: Alt text should have Ӓ, not &1234;
9123 [[Image:foobar.jpg|♀]]
9125 <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>
9130 Broken image caption with link
9132 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
9134 <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.
9139 Image caption containing another image
9141 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
9143 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
9148 Image caption containing a newline
9150 [[Image:Foobar.jpg|This
9153 <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>
9158 Parsoid: Image caption containing leading space
9159 (The leading space should not trigger nowiki escaping in wt2wt mode)
9161 [[Image:Foobar.jpg|thumb| bar]]
9163 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>bar</div></div></div>
9168 Bug 3090: External links other than http: in image captions
9170 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
9172 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
9179 [[Image:foobar.jpg|a|class=b]]
9181 <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>
9186 Localized image handling (1).
9190 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
9192 <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>
9197 Localized image handling (2).
9201 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
9203 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
9208 "border", "frameless" and "class" attributes on an image.
9210 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
9212 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a>
9219 #REDIRECT [[File:Barfoo.jpg]]
9225 [[Image:Barfoo.jpg]]
9227 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
9232 Missing image with uploads disabled
9236 [[Image:Foobaz.jpg]]
9238 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
9242 # Parsoid-specific testing for images
9243 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9244 # Currently imperfect due to a flaw in the Parsoid testrunner
9246 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
9250 Parsoid-specific image handling - simple image with size and middle alignment
9254 [[Image:Foobar.jpg|50px|middle]]
9257 <span class="mw-valign-middle" typeof="mw:Image">
9258 <a href="File:Foobar.jpg">
9259 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9266 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
9270 [[Image:Foobar.jpg|500x10px|baseline|caption]]
9273 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
9274 <a href="File:Foobar.jpg">
9275 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
9282 Parsoid-specific image handling - simple image with border and size spec
9286 [[Image:Foobar.jpg|50px|border|caption]]
9289 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
9290 <a href="File:Foobar.jpg">
9291 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9298 Parsoid-specific image handling - thumbnail with halign, valign, and caption
9302 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
9304 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
9305 <a href="File:Foobar.jpg">
9306 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
9308 <figcaption>caption content</figcaption>
9313 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
9317 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
9319 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
9320 <a href="File:Foobar.jpg">
9321 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
9323 <figcaption>caption</figcaption>
9328 Parsoid-specific image handling - framed image with specific size and caption
9332 [[Image:Foobar.jpg|500x50px|frame|caption]]
9334 <figure typeof="mw:Image/Frame">
9335 <a href="File:Foobar.jpg">
9336 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9338 <figcaption>caption</figcaption>
9343 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
9347 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
9349 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
9350 <a href="File:Foobar.jpg">
9351 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9353 <figcaption>caption</figcaption>
9358 Parsoid-specific image handling - frameless image with specific size, border, and caption
9362 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
9365 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
9366 <a href="File:Foobar.jpg">
9367 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9373 #Parsoid-specific image handling - simple image with a formatted caption
9377 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
9380 #<span typeof="mw:Image">
9381 #<a class="mw-default-size" href="Image:Foobar.jpg">
9382 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
9393 Subpage test/subpage
9401 subpage title=[[Subpage test]]
9405 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
9410 Subpage noslash link
9412 subpage title=[[Subpage test]]
9416 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
9420 # TODO: make this PHP-parser compatible!
9422 Relative subpage noslash link
9424 parsoid=wt2wt,wt2html,html2html
9425 subpage title=[[Subpage test/1/2/3/4]]
9431 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
9432 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
9435 # TODO: make this PHP-parser compatible!
9437 Parsoid: dot-slash prefixed wikilinks
9439 parsoid=wt2wt,wt2html,html2html
9447 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
9448 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
9449 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
9457 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
9462 BUG 561: {{/Subpage}}
9464 subpage title=[[Page]]
9468 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
9476 Category:MediaWiki User's Guide
9484 [[:Category:MediaWiki User's Guide]]
9486 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
9495 [[Category:MediaWiki User's Guide]]
9497 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9501 PAGESINCATEGORY invalid title fatal (r33546 fix)
9503 {{PAGESINCATEGORY:<bogus>}}
9510 Category with different sort key
9514 [[Category:MediaWiki User's Guide|Foo]]
9516 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9520 Category with identical sort key
9524 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9526 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9530 Category with empty sort key
9535 [[Category:MediaWiki User's Guide|]]
9537 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9541 Category with empty sort key and parentheses
9546 [[Category:Foo (bar)|]]
9548 [[Category:Foo (bar)|Foo]]
9552 Category with link tail
9557 123[[Category:Foo]]456
9559 123[[Category:Foo]]456
9563 Category with template
9568 [[Category:{{echo|Foo}}]]
9570 [[Category:{{echo|Foo}}]]
9574 Category with template in sort key
9579 [[Category:Foo|{{echo|Bar}}]]
9581 [[Category:Foo|{{echo|Bar}}]]
9585 Category with template in sort key and title
9590 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9592 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9596 Category / paragraph interactions
9598 Foo [[Category:Baz]] Bar
9600 Foo [[Category:Baz]]
9608 [[Category:Baz]] Bar
9621 {{echo|[[Category:Baz]]}}
9636 Parsoid: Serialize link to category page with colon escape
9642 [[:Category:Foo|Bar]]
9645 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
9646 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
9651 Parsoid: Link prefix/suffixes aren't applied to category links
9653 parsoid=wt2html,wt2wt,html2html
9658 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
9662 Parsoid: Serialize link to file page with colon escape
9668 [[:File:Foo.png|Bar]]
9671 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
9672 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
9677 Parsoid: Serialize a genuine category link without colon escape
9682 [[Category:Foo|Bar]]
9684 <link rel="mw:WikiLink/Category" href="Category:Foo">
9685 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
9689 ### Inter-language links
9692 Inter-language links
9698 [[zh:食品]]
9700 es:Alimento fr:Nourriture zh:食品
9704 Duplicate interlanguage links (bug 24502)
9720 Basic section headings
9727 ===Smaller headline===
9730 <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>
9733 <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>
9736 <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>
9742 Section headings with TOC
9745 === Subheadline 1 ===
9746 ===== Skipping a level =====
9747 ====== Skipping a level ======
9751 ===Another headline===
9753 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9755 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
9757 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
9759 <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>
9761 <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>
9768 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
9770 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
9775 <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>
9776 <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>
9777 <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>
9778 <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>
9779 <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>
9782 <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>
9786 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
9788 Handling of sections up to level 6 and beyond
9791 == Level 2 Heading==
9792 === Level 3 Heading===
9793 ==== Level 4 Heading====
9794 ===== Level 5 Heading=====
9795 ====== Level 6 Heading======
9796 ======= Level 7 Heading=======
9797 ======== Level 8 Heading========
9798 ========= Level 9 Heading=========
9799 ========== Level 10 Heading==========
9801 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9803 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9805 <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>
9807 <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>
9809 <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>
9811 <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>
9813 <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>
9814 <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>
9815 <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>
9816 <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>
9817 <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>
9830 <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>
9831 <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>
9832 <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>
9833 <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>
9834 <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>
9835 <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>
9836 <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>
9837 <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>
9838 <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>
9839 <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>
9844 TOC regression (bug 9764)
9848 ==== title 1.1.1 ====
9853 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9855 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9857 <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>
9859 <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>
9862 <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>
9865 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9867 <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>
9872 <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>
9873 <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>
9874 <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>
9875 <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>
9876 <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>
9877 <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>
9882 TOC with wgMaxTocLevel=3 (bug 6204)
9888 ==== title 1.1.1 ====
9893 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9895 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9897 <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>
9898 <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>
9901 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9903 <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>
9908 <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>
9909 <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>
9910 <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>
9911 <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>
9912 <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>
9913 <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>
9918 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9924 ====Section 1.1.1====
9925 ====Section 1.1.1.1====
9928 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9930 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9932 <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>
9935 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9938 <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>
9939 <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>
9940 <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>
9941 <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>
9942 <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>
9948 Resolving duplicate section names
9953 <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>
9954 <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>
9959 Resolving duplicate section names with differing case (bug 10721)
9964 <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>
9965 <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>
9977 Template with sections, __NOTOC__
9984 <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>
9985 <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>
9986 <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>
9987 <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>
9992 __NOEDITSECTION__ keyword
9998 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9999 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
10004 Link inside a section heading
10006 ==Section with a [[Main Page|link]] in it==
10008 <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>
10013 TOC regression (bug 12077)
10020 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10022 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10024 <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>
10027 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
10030 <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>
10031 <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>
10032 <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>
10037 BUG 1219 URL next to image (good)
10039 http://example.com [[Image:foobar.jpg]]
10041 <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>
10046 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
10049 The line above must have a trailing space!
10052 But just in case it doesn't...
10054 <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>
10055 <p>The line above must have a trailing space!
10057 <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>
10058 <p>But just in case it doesn't...
10063 Header with special characters (bug 25462)
10065 The tooltips shall not show entities to the user (ie. be double escaped)
10082 <p>The tooltips shall not show entities to the user (ie. be double escaped)
10084 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10086 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
10087 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
10088 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
10089 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
10090 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
10093 <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>
10096 <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>
10099 <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>
10102 <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>
10105 <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>
10111 Headers with excess '=' characters
10112 (Are similar tests necessary beyond the 1st level?)
10116 =''italic'' heading==
10117 ==''italic'' heading=
10119 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10121 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
10122 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
10123 <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>
10124 <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>
10127 <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>
10128 <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>
10129 <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>
10130 <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>
10135 HTML headers vs TOC (bug 23393)
10136 (__NOEDITSECTION__ for clearer output, doesn't matter here)
10148 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10150 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
10152 <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>
10153 <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>
10156 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
10158 <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>
10159 <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>
10164 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
10165 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
10166 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
10167 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
10168 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
10169 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
10174 BUG 1219 URL next to image (broken)
10176 http://example.com[[Image:foobar.jpg]]
10178 <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>
10183 Bug 1186 news: in the middle of text
10185 http://en.wikinews.org/wiki/Wikinews:Workplace
10187 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
10193 Namespaced link must have a title
10202 Namespaced link must have a title (bad fragment version)
10204 [[Project:#fragment]]
10206 <p>[[Project:#fragment]]
10212 ### HTML tags and HTML attributes
10216 div with no attributes
10218 <div>HTML rocks</div>
10220 <div>HTML rocks</div>
10225 div with double-quoted attribute
10227 <div id="rock">HTML rocks</div>
10229 <div id="rock">HTML rocks</div>
10234 div with single-quoted attribute
10236 <div id='rock'>HTML rocks</div>
10238 <div id="rock">HTML rocks</div>
10243 div with unquoted attribute
10245 <div id=rock>HTML rocks</div>
10247 <div id="rock">HTML rocks</div>
10252 div with illegal double attributes
10254 <div id="a" id="b">HTML rocks</div>
10256 <div id="b">HTML rocks</div>
10260 # FIXME: produce empty string instead of "class" in the PHP parser, following
10263 div with empty attribute value, space before equals
10267 <div class =>HTML rocks</div>
10269 <div class="">HTML rocks</div>
10273 # The PHP parser escapes the opening brace to { for some reason, so
10274 # disabled this test for it.
10276 div with braces in attribute value
10280 <div title="{}">Foo</div>
10282 <div title="{}">Foo</div>
10285 # This it very inconsistent in the PHP parser: it returns
10286 # class="class" if there is a space between the name and the equal sign (see
10287 # 'div with empty attribute value, space before equals'), but strips the
10288 # attribute completely if the space is missing. We hope that not much content
10289 # depends on this, so are implementing the behavior below in Parsoid for
10290 # consistencies' sake. Disabled for the PHP parser.
10291 # FIXME: fix this behavior in the PHP parser?
10293 div with empty attribute value, no space before equals
10297 <div class=>HTML rocks</div>
10299 <div class="">HTML rocks</div>
10304 HTML multiple attributes correction
10306 <p class="error" class="awesome">Awesome!</p>
10308 <p class="awesome">Awesome!</p>
10313 Table multiple attributes correction
10316 !+ class="error" class="awesome"| status
10321 <th class="awesome"> status
10329 <DIV ID="x">HTML ROCKS</DIV>
10331 <div id="x">HTML ROCKS</div>
10336 Non-ASCII pseudo-tags are rendered as text
10345 Pseudo-tag with URL 'name' renders as url link
10347 <http://example.com/>
10349 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
10354 text with amp in the middle of nowhere
10358 <p>Remember AT&T?
10363 text with character entity: eacute
10365 I always thought é was a cute letter.
10367 <p>I always thought é was a cute letter.
10372 text with entity-escaped character entity-like string: eacute
10374 I always thought &eacute; was a cute letter.
10376 <p>I always thought &eacute; was a cute letter.
10381 text with undefined character entity: xacute
10383 I always thought &xacute; was a cute letter.
10385 <p>I always thought &xacute; was a cute letter.
10391 ### Nesting tests (see bug 41545, 50604, 51081)
10394 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
10395 # Note that html2wt is considerably more difficult if we use <b> in
10396 # the test case, instead of <big>
10398 Ensure that HTML adoption agency algorithm is properly implemented.
10400 <big>X<big>Y</big>Z</big>
10402 <p><big>X<big>Y</big>Z</big>
10406 # This was bug 41545 in the PHP parser.
10410 <kbd>X<kbd>Y</kbd>Z</kbd>
10412 <p><kbd>X<kbd>Y</kbd>Z</kbd>
10416 # The following cases were bug 51081 in the PHP parser.
10417 # Note that there are some other nestable tags (b, i, etc) which are
10418 # not covered; see bug 51081 for discussion.
10422 <em>X<em>Y</em>Z</em>
10424 <p><em>X<em>Y</em>Z</em>
10429 Nesting of <strong>
10431 <strong>X<strong>Y</strong>Z</strong>
10433 <p><strong>X<strong>Y</strong>Z</strong>
10442 <p><q>X<q>Y</q>Z</q>
10449 <ruby>X<ruby>Y</ruby>Z</ruby>
10451 <p><ruby>X<ruby>Y</ruby>Z</ruby>
10458 <bdo>X<bdo>Y</bdo>Z</bdo>
10460 <p><bdo>X<bdo>Y</bdo>Z</bdo>
10472 [[Media:Foobar.jpg]]
10474 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
10479 Media link with text
10481 [[Media:Foobar.jpg|A neat file to look at]]
10483 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
10487 # FIXME: this is still bad HTML tag nesting
10489 Media link with nasty text
10490 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
10492 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
10494 <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>
10499 Media link to nonexistent file (bug 1702)
10501 [[Media:No such.jpg]]
10503 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
10508 Image link to nonexistent file (bug 1850 - good)
10510 [[Image:No such.jpg]]
10512 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
10517 :Image link to nonexistent file (bug 1850 - bad)
10519 [[:Image:No such.jpg]]
10521 <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>
10528 Character reference normalization in link text (bug 1938)
10530 [[Main Page|this&that]]
10532 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
10539 Test for unicode normalization
10541 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
10545 (bug 19451) Links should refer to the normalized form.
10553 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10554 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10555 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10556 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10557 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10562 Empty attribute crash test (bug 2067)
10564 <font color="">foo</font>
10566 <p><font color="">foo</font>
10571 Empty attribute crash test single-quotes (bug 2067)
10573 <font color=''>foo</font>
10575 <p><font color="">foo</font>
10580 Attribute test: equals, then nothing
10582 <font color=>foo</font>
10584 <p><font>foo</font>
10589 Attribute test: unquoted value
10591 <font color=x>foo</font>
10593 <p><font color="x">foo</font>
10598 Attribute test: unquoted but illegal value (hash)
10600 <font color=#x>foo</font>
10602 <p><font color="#x">foo</font>
10607 Attribute test: no value
10609 <font color>foo</font>
10611 <p><font color="color">foo</font>
10616 Bug 2095: link with three closing brackets
10620 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
10625 Bug 2095: link with pipe and three closing brackets
10627 [[Main Page|link]]]
10629 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
10634 Bug 2095: link with pipe and three closing brackets, version 2
10636 [[Main Page|[http://example.com/]]]
10638 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
10648 Template:Dangerous attribute
10650 " onmouseover="alert(document.cookie)
10654 Template:Dangerous style attribute
10656 border-size: expression(alert(document.cookie))
10662 <div style="float: right; {{{1}}}">Magic div</div>
10666 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
10668 <div title="{{test}}"></div>
10670 <div title="This is a test template"></div>
10675 Bug 2304: HTML attribute safety (dangerous template; 2309)
10677 <div title="{{dangerous attribute}}"></div>
10679 <div title=""></div>
10684 Bug 2304: HTML attribute safety (dangerous style template; 2309)
10686 <div style="{{dangerous style attribute}}"></div>
10688 <div style="/* insecure input */"></div>
10693 Bug 2304: HTML attribute safety (safe parameter; 2309)
10695 {{div style|width: 200px}}
10697 <div style="float: right; width: 200px">Magic div</div>
10702 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
10704 {{div style|width: expression(alert(document.cookie))}}
10706 <div style="/* insecure input */">Magic div</div>
10711 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
10713 {{div style|"><script>alert(document.cookie)</script>}}
10715 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10720 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
10722 {{div style|" ><script>alert(document.cookie)</script>}}
10724 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10729 Bug 2304: HTML attribute safety (link)
10731 <div title="[[Main Page]]"></div>
10733 <div title="[[Main Page]]"></div>
10738 Bug 2304: HTML attribute safety (italics)
10740 <div title="''foobar''"></div>
10742 <div title="''foobar''"></div>
10747 Bug 2304: HTML attribute safety (bold)
10749 <div title="'''foobar'''"></div>
10751 <div title="'''foobar'''"></div>
10757 Bug 2304: HTML attribute safety (ISBN)
10759 <div title="ISBN 1234567890"></div>
10761 <div title="ISBN 1234567890"></div>
10766 Bug 2304: HTML attribute safety (RFC)
10768 <div title="RFC 1234"></div>
10770 <div title="RFC 1234"></div>
10775 Bug 2304: HTML attribute safety (PMID)
10777 <div title="PMID 1234567890"></div>
10779 <div title="PMID 1234567890"></div>
10784 Bug 2304: HTML attribute safety (web link)
10786 <div title="http://example.com/"></div>
10788 <div title="http://example.com/"></div>
10793 Bug 2304: HTML attribute safety (named web link)
10795 <div title="[http://example.com/ link]"></div>
10797 <div title="[http://example.com/ link]"></div>
10802 Bug 3244: HTML attribute safety (extension; safe)
10804 <div style="<nowiki>background:blue</nowiki>"></div>
10806 <div style="background:blue"></div>
10811 Bug 3244: HTML attribute safety (extension; unsafe)
10813 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10815 <div style="/* insecure input */"></div>
10819 # More MSIE fun discovered by Tom Gilder
10822 MSIE CSS safety test: spurious slash
10824 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10826 <div style="/* insecure input */">evil</div>
10831 MSIE CSS safety test: hex code
10833 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10835 <div style="/* insecure input */">evil</div>
10840 MSIE CSS safety test: comment in url
10842 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10844 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10849 MSIE CSS safety test: comment in expression
10851 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10853 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10859 Table attribute legitimate extension
10862 !+ style="<nowiki>color:blue</nowiki>"| status
10867 <th style="color:blue"> status
10873 Table attribute safety
10876 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10881 <th style="/* insecure input */"> status
10887 CSS line continuation 1
10889 <div style="background-image: u\ rl(test.jpg);"></div>
10891 <div style="/* insecure input */"></div>
10896 CSS line continuation 2
10898 <div style="background-image: u\ rl(test.jpg); "></div>
10900 <div style="/* insecure input */"></div>
10911 Expansion of multi-line templates in attribute values (bug 6255)
10913 <div style="background: {{identity|#00FF00}}">-</div>
10915 <div style="background: #00FF00">-</div>
10921 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10923 <div style="background:
10926 <div style="background: #00FF00">-</div>
10931 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10933 <div style="background: #00FF00">-</div>
10935 <div style="background: #00FF00">-</div>
10940 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
10943 Parser hook: empty input
10956 Parser hook: empty input using terminated empty elements
10969 Parser hook: empty input using terminated empty elements (space before)
10982 Parser hook: basic input
10996 Parser hook: case insensitive
11010 Parser hook: case insensitive, redux
11023 Parser hook: nested tags
11027 <tag><tag></tag></tag>
11038 Parser hook: basic arguments
11040 <tag width=200 height = "100" depth = '50' square></tag>
11048 'square' => 'square',
11055 Parser hook: argument containing a forward slash (bug 5344)
11057 <tag filename='/tmp/bla'></tag>
11062 'filename' => '/tmp/bla',
11069 Parser hook: empty input using terminated empty elements (bug 2374)
11082 # </tag> should be output literally since there is no matching tag that begins it
11084 Parser hook: basic arguments using terminated empty elements (bug 2374)
11086 <tag width=200 height = "100" depth = '50' square/>
11096 'square' => 'square',
11105 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
11109 Parser hook: static parser hook not inside a comment
11111 <statictag>hello, world</statictag>
11112 <statictag action=flush/>
11120 Parser hook: static parser hook inside a comment
11122 <!-- <statictag>hello, world</statictag> -->
11123 <statictag action=flush/>
11129 # Nested template calls; this case was broken by Parser.php rev 1.506,
11133 Template:One-parameter
11135 (My parameter is: {{{1}}})
11139 Template:Map-one-parameter
11141 {{{{{1}}}|{{{2}}}}}
11145 Nested template calls
11147 {{Map-one-parameter|One-parameter|param}}
11149 <p>(My parameter is: param)
11158 Sanitizer: Closing of open tags
11160 <s></s><table></table>
11162 <s></s><table></table>
11167 Sanitizer: Closing of open but not closed tags
11176 Sanitizer: Closing of closed but not open tags
11185 Sanitizer: Closing of closed but not open table tags
11187 Table not started</td></tr></table>
11189 <p>Table not started</td></tr></table>
11194 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
11196 <span id="æ: v">byte</span>[[#æ: v|backlink]]
11198 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
11203 Sanitizer: Validating the contents of the id attribute (bug 4515)
11209 Something, but definitely not <br id="9" />...
11213 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
11217 <br id="foo" /><br id="foo" />
11219 Something need to be done. foo-2 ?
11223 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
11226 <meta itemprop="hello" content="world">
11227 <meta http-equiv="refresh" content="5">
11228 <meta itemprop="hello" http-equiv="refresh" content="5">
11229 <link itemprop="hello" href="{{SERVER}}">
11230 <link rel="stylesheet" href="{{SERVER}}">
11231 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
11234 <div itemscope="itemscope">
11235 <p> <meta itemprop="hello" content="world" />
11236 <meta http-equiv="refresh" content="5">
11237 <meta itemprop="hello" content="5" />
11239 <link itemprop="hello" href="http://example.org" />
11240 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
11241 <link itemprop="hello" href="http://example.org" />
11247 Language converter: output gets cut off unexpectedly (bug 5757)
11251 this bit is safe: }-
11253 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
11255 then we get cut off here: }-
11257 all additional text is vanished
11259 <p>this bit is safe: }-
11260 </p><p>but if we add a conversion instance: xxx
11261 </p><p>then we get cut off here: }-
11262 </p><p>all additional text is vanished
11267 Self closed html pairs (bug 5487)
11270 <center><font id="bug" />Centered text</center>
11271 <div><font id="bug2" />In div text</div>
11273 <center><font id="bug" />Centered text</center>
11274 <div><font id="bug2" />In div text</div>
11283 Punctuation: nbsp before exclamation
11287 <p>C'est grave !
11292 Punctuation: CSS !important (bug 11874)
11294 <div style="width:50% !important">important</div>
11296 <div style="width:50% !important">important</div>
11301 Punctuation: CSS ! important (bug 11874; with space after)
11303 <div style="width:50% ! important">important</div>
11305 <div style="width:50% ! important">important</div>
11311 HTML bullet list, closed tags (bug 5497)
11326 HTML bullet list, unclosed tags (bug 5497)
11343 HTML ordered list, closed tags (bug 5497)
11358 HTML ordered list, unclosed tags (bug 5497)
11375 HTML nested bullet list, closed tags (bug 5497)
11400 HTML nested bullet list, open tags (bug 5497)
11425 HTML nested ordered list, closed tags (bug 5497)
11450 HTML nested ordered list, open tags (bug 5497)
11475 HTML ordered list item with parameters oddity
11477 <ol><li id="fragment">One</li></ol>
11479 <ol><li id="fragment">One</li></ol>
11484 bug 5918: autonumbering
11486 [http://first/] [http://second] [ftp://ftp]
11490 [mailto:enclosed@mail.tld With target]
11492 [mailto:enclosed@mail.tld]
11494 mailto:inline@mail.tld
11496 <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>
11497 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
11498 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
11499 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
11500 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
11506 # Security and HTML correctness
11507 # From Nick Jenkins' fuzz testing
11511 Fuzz testing: Parser13
11526 Fuzz testing: Parser14
11531 <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>
11532 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11534 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
11541 Fuzz testing: Parser14-table
11546 <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>
11547 <table style="__TOC__">
11553 # Known to produce bogus xml (extra </td>)
11555 Fuzz testing: Parser16
11575 Fuzz testing: Parser21
11578 ! irc://{{ftp://a" onmouseover="alert('hello world');"
11583 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
11593 Fuzz testing: Parser22
11595 http://===r:::https://b
11599 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
11607 # Known to produce bad XML for now
11609 Fuzz testing: Parser24
11616 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
11617 <br style="onmouseover='alert(document.cookie);' " />
11619 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11624 <u class="|">}}}} >
11625 <br style="onmouseover='alert(document.cookie);'" />
11627 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11636 # Note: the current result listed for this is not what the original one was,
11637 # but the original bug was JavaScript injection, which is fixed in any case.
11638 # It's not clear that the original result listed was any more correct than the
11639 # current one. Original result:
11642 # <li class="||">
11643 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11645 Fuzz testing: Parser25 (bug 6055)
11651 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
11653 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11658 Fuzz testing: URL adjacent extension (with space, clean)
11661 http://example.com <nowiki>junk</nowiki>
11663 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
11668 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
11671 http://example.com<nowiki>junk</nowiki>
11673 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
11678 Fuzz testing: URL adjacent extension (no space, dirty; pre)
11681 http://example.com<pre>junk</pre>
11683 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
11688 Fuzz testing: image with bogus manual thumbnail
11690 [[Image:foobar.jpg|thumbnail= ]]
11692 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
11697 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
11699 <pre dir=" "></pre>
11701 <pre dir=" "></pre>
11706 Parsing optional HTML elements (Bug 6171)
11711 <td> Some tabular data</td>
11712 <td> More tabular data ...
11713 <td> And yet som tabular data</td>
11719 <td> Some tabular data</td>
11720 <td> More tabular data ...
11721 </td><td> And yet som tabular data</td>
11728 Correct handling of <td>, <tr> (Bug 6171)
11733 <td> Some tabular data</td>
11734 <td> More tabular data ...</td>
11735 <td> And yet som tabular data</td>
11741 <td> Some tabular data</td>
11742 <td> More tabular data ...</td>
11743 <td> And yet som tabular data</td>
11751 Parsing crashing regression (fr:JavaScript)
11755 <p></body></x>
11760 Inline wiki vs wiki block nesting
11766 <p><b>Bold paragraph</b>
11767 </p><p>New wiki paragraph
11772 Inline HTML vs wiki block nesting
11780 <p><b>Bold paragraph</b>
11781 </p><p>New wiki paragraph
11785 # Original result was this:
11786 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
11788 # While that might be marginally more intuitive, maybe, the six-apostrophe
11789 # construct is clearly pathological and the result stated here (which is what
11790 # the parser actually does) is about as reasonable as anything.
11792 Mixing markup for italics and bold
11795 '''bold''''''bold''bolditalics'''''
11797 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11805 Article for special page transclusion test
11809 Special page transclusion
11812 {{Special:Prefixindex/Xyzzyx}}
11814 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11819 Special page transclusion twice (bug 5021)
11822 {{Special:Prefixindex/Xyzzyx}}
11823 {{Special:Prefixindex/Xyzzyx}}
11825 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11826 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11831 Transclusion of default MediaWiki message
11833 {{MediaWiki:Mainpage}}
11840 Transclusion of nonexistent MediaWiki message
11842 {{MediaWiki:Mainpagexxx}}
11844 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11849 Transclusion of MediaWiki message with underscore
11851 {{MediaWiki:history_short}}
11858 Transclusion of MediaWiki message with space
11860 {{MediaWiki:history short}}
11867 Invalid header with following text
11877 Section extraction test (section 0)
11897 Section extraction test (section 1)
11919 Section extraction test (section 2)
11940 Section extraction test (section 3)
11960 Section extraction test (section 4)
11984 Section extraction test (section 5)
12004 Section extraction test (section 6)
12025 Section extraction test (section 7)
12045 Section extraction test (section 8)
12065 Section extraction test (section 9)
12086 Section extraction test (section 10)
12106 Section extraction test (nonexistent section 11)
12125 Section extraction test with bogus heading (section 1)
12130 ==bogus== not a legal section
12134 ==bogus== not a legal section
12138 Section extraction test with bogus heading (section 2)
12143 ==bogus== not a legal section
12150 Section extraction test with comment after heading (section 1)
12162 Section extraction test with comment after heading (section 2)
12174 Section extraction test with bogus <nowiki> heading (section 1)
12179 ==bogus== <nowiki>not a legal section</nowiki>
12183 ==bogus== <nowiki>not a legal section</nowiki>
12187 Section extraction test with bogus <nowiki> heading (section 2)
12192 ==bogus== <nowiki>not a legal section</nowiki>
12199 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
12200 # instead of respecting commented sections
12202 Section extraction prefixed by comment (section 1)
12213 Section extraction prefixed by comment (section 2)
12224 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
12225 # instead of respecting HTML-style headings
12227 Section extraction, mixed wiki and html (section 1)
12243 Section extraction, mixed wiki and html (section 2)
12259 # Formerly testing for bug 3342
12261 Section extraction, heading surrounded by <noinclude>
12265 <noinclude>==unmarked==</noinclude>
12271 # Test behavior of bug 19910
12273 Sectiion with all-equals
12278 The line above must have a trailing space
12281 But just in case it doesn't...
12285 But just in case it doesn't...
12289 Section replacement test (section 0)
12320 Section replacement test (section 1)
12349 Section replacement test (section 2)
12379 Section replacement test (section 3)
12410 Section replacement test (section 4)
12437 Section replacement test (section 5)
12468 Section replacement test (section 6)
12498 Section replacement test (section 7)
12529 Section replacement test (section 8)
12560 Section replacement test (section 9)
12589 Section replacement test (section 10)
12619 Section replacement test with initial whitespace (bug 13728)
12623 Preformatted initial line
12627 Preformatted initial line
12634 Section extraction, heading followed by pre with 20 spaces (bug 6398)
12646 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
12659 Section extraction, <pre> around bogus header (bug 10309)
12676 Section replacement, <pre> around bogus header (bug 10309)
12678 noxml replace=2,"xxx"
12699 Handling of 
 in URLs
12703 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
12710 5 quotes, code coverage +1 line (php)
12717 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
12719 5 quotes, code coverage +1 line (parsoid)
12725 <p><i><b></b></i></p>
12729 Special:Search page linking.
12733 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
12740 title=[[Parser test]]
12745 * {{FULLPAGENAMEE}}
12747 * {{BASEPAGENAMEE}}
12751 * {{ROOTPAGENAMEE}}
12753 * {{TALKPAGENAMEE}}
12754 * {{SUBJECTPAGENAME}}
12755 * {{SUBJECTPAGENAMEE}}
12758 * {{NAMESPACENUMBER}}
12762 * {{SUBJECTSPACEE}}
12763 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
12765 <ul><li> Parser test
12766 </li><li> Parser_test
12767 </li><li> Parser test
12768 </li><li> Parser_test
12769 </li><li> Parser test
12770 </li><li> Parser_test
12771 </li><li> Parser test
12772 </li><li> Parser_test
12773 </li><li> Parser test
12774 </li><li> Parser_test
12775 </li><li> Talk:Parser test
12776 </li><li> Talk:Parser_test
12777 </li><li> Parser test
12778 </li><li> Parser_test
12786 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
12790 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
12800 image4 |300px| centre
12801 image5.svg| http://///////
12806 <ul class="gallery mw-gallery-traditional">
12807 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12808 <div class="thumb" style="height: 150px;">Image1.png</div>
12809 <div class="gallerytext">
12812 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12813 <div class="thumb" style="height: 150px;">Image2.gif</div>
12814 <div class="gallerytext">
12819 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12820 <div class="thumb" style="height: 150px;">Image3</div>
12821 <div class="gallerytext">
12824 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12825 <div class="thumb" style="height: 150px;">Image4</div>
12826 <div class="gallerytext">
12831 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12832 <div class="thumb" style="height: 150px;">Image5.svg</div>
12833 <div class="gallerytext">
12834 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12838 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12839 <div class="thumb" style="height: 150px;">* image6</div>
12840 <div class="gallerytext">
12848 Gallery (with options)
12850 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12851 File:Nonexistant.jpg|caption
12852 File:Nonexistant.jpg
12853 image:foobar.jpg|some '''caption''' [[Main Page]]
12855 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12858 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
12859 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12860 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12861 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
12862 <div class="gallerytext">
12867 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12868 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
12869 <div class="gallerytext">
12872 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12873 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12874 <div class="gallerytext">
12875 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12879 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12880 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12881 <div class="gallerytext">
12884 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12885 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12886 <div class="gallerytext">
12896 Gallery with wikitext inside caption
12899 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12900 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12903 <ul class="gallery mw-gallery-traditional">
12904 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12905 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12906 <div class="gallerytext">
12907 <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>
12911 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12912 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12913 <div class="gallerytext">
12914 <p>This is a test template
12923 gallery (with showfilename option)
12925 <gallery showfilename>
12926 File:Nonexistant.jpg|caption
12927 File:Nonexistant.jpg
12928 image:foobar.jpg|some '''caption''' [[Main Page]]
12932 <ul class="gallery mw-gallery-traditional">
12933 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12934 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
12935 <div class="gallerytext">
12936 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12941 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12942 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
12943 <div class="gallerytext">
12944 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12948 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12949 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12950 <div class="gallerytext">
12951 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12952 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12956 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12957 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12958 <div class="gallerytext">
12959 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12968 Gallery (with namespace-less filenames)
12971 File:Nonexistant.jpg
12977 <ul class="gallery mw-gallery-traditional">
12978 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12979 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
12980 <div class="gallerytext">
12983 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12984 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
12985 <div class="gallerytext">
12988 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12989 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12990 <div class="gallerytext">
12993 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12994 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12995 <div class="gallerytext">
13003 HTML Hex character encoding (spells the word "JavaScript")
13005 JavaScript
13007 <p>JavaScript
13012 HTML Hex character encoding bogus encoding (bug 26437 regression check)
13016 <p>&#xsee;&#XSEE;
13021 HTML Hex character encoding mixed case
13030 __FORCETOC__ override
13042 ISBN 978-0-1234-56 789
13044 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
13049 ISBN followed by 5 spaces
13060 ISBN ISBN 1234567890
13062 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13067 Bug 22905: <abbr> followed by ISBN followed by </a>
13069 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
13071 <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>
13080 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
13085 Double RFC with a wiki link
13089 <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>
13098 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
13103 Centre-aligned image
13105 [[Image:foobar.jpg|centre]]
13107 <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>
13114 [[Image:foobar.jpg|none]]
13116 <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>
13121 Width + Height sized image (using px) (height is ignored)
13123 [[Image:foobar.jpg|640x480px]]
13125 <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>
13130 Width-sized image (using px, no following whitespace)
13132 [[Image:foobar.jpg|640px]]
13134 <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>
13139 Width-sized image (using px, with following whitespace - test regression from r39467)
13141 [[Image:foobar.jpg|640px ]]
13143 <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>
13148 Width-sized image (using px, with preceding whitespace - test regression from r39467)
13150 [[Image:foobar.jpg| 640px]]
13152 <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>
13157 Another italics / bold test
13165 # Note the results may be incorrect, as parserTest output included this:
13166 # XML error: Mismatched tag at byte 6120:
13167 # ...<dd> </dt></dl> </dd...
13175 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
13186 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
13188 Images with the "|" character in the comment
13190 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
13192 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
13197 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
13199 <html><script>alert(1);</script></html>
13201 <p><html><script>alert(1);</script></html>
13206 HTML with raw HTML ($wgRawHtml==true)
13210 <html><script>alert(1);</script></html>
13212 <p><script>alert(1);</script>
13217 Parents of subpages, one level up
13219 subpage title=[[Subpage test/L1/L2/L3]]
13223 <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>
13229 Parents of subpages, one level up, not named
13231 subpage title=[[Subpage test/L1/L2/L3]]
13235 <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>
13242 Parents of subpages, two levels up
13244 subpage title=[[Subpage test/L1/L2/L3]]
13250 <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
13251 </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>
13256 Parents of subpages, two levels up, without trailing slash or name.
13258 subpage title=[[Subpage test/L1/L2/L3]]
13267 Parents of subpages, two levels up, with lots of extra trailing slashes.
13269 subpage title=[[Subpage test/L1/L2/L3]]
13273 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
13278 Subpage test/L1/L2/L3Sibling
13284 Transclusion of a sibling page (one level up)
13286 subpage title=[[Subpage test/L1/L2/L3]]
13295 Transclusion of a child page
13297 subpage title=[[Subpage test/L1/L2]]
13306 Non-transclusion because of too many up levels
13308 subpage title=[[Subpage test/L1/L2/L3]]
13310 {{../../../../More than parent}}
13312 <p>{{../../../../More than parent}}
13317 Definition list code coverage
13323 <dl><dt> title  </dt><dd> def
13324 </dd><dt> title </dt><dd> def
13325 </dd><dt>title</dt><dd> def
13331 Don't fall for the self-closing div
13333 <div>hello world</div/>
13335 <div>hello world</div>
13344 <p>[[:Template:Msg]]
13353 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
13357 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
13359 Always escape literal '>' in output, not just after '<'
13373 <p>This is a test template
13374 This is a test template
13386 Inclusion of !userCanEdit() content
13390 <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>
13396 Out-of-order TOC heading levels
13405 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13407 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
13409 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
13410 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
13413 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
13415 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
13416 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
13421 <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>
13422 <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>
13423 <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>
13424 <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>
13425 <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>
13426 <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>
13432 ISBN with a dummy number
13442 ISBN with space-delimited number
13446 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
13452 ISBN with multiple spaces, no number
13471 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13472 </p><p>ISBN 12345678901
13478 ISBN with trailing year (bug 8110)
13480 ISBN 1-234-56789-0 - 2006
13482 ISBN 1 234 56789 0 - 2006
13484 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
13485 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
13493 {{anchorencode:foo bar©#%n}}
13495 <p>foo_bar.C2.A9.23.25n
13500 anchorencode trims spaces
13502 {{anchorencode: __pretty__please__}}
13509 anchorencode deals with links
13511 {{anchorencode: [[hello|world]] [[hi]]}}
13518 anchorencode deals with templates
13520 {{anchorencode: {{Foo}} }}
13527 anchorencode encodes like the TOC generator: (bug 18431)
13529 === _ +:.3A%3A&&]] ===
13530 {{anchorencode: _ +:.3A%3A&&]] }}
13533 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
13534 <p>.2B:.3A.253A.26.26.5D.5D
13538 # Expected output in the following test is not necessarily expected (there
13539 # should probably be <p> tags inside the <blockquote> in the output) -- it's
13540 # only testing for well-formedness.
13542 Bug 6200: blockquotes and paragraph formatting
13562 Bug 8293: Use of center tag ruins paragraph formatting
13583 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
13587 <span><s>x</span></s>
13589 <p><span><s>x</span></s></span>
13594 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
13598 <span><s>x</span></s>
13600 <p><span><s>x</s></span><s></s>
13605 ### Language variants related tests
13608 Self-link in language variants
13610 title=[[Dunav]] language=sr
13612 Both [[Dunav]] and [[Дунав]] are names for this river.
13614 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
13625 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
13627 title=[[Duna]] language=sr
13629 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
13631 <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.
13636 Link to pages in language variants
13640 Main Page can be written as [[Маин Паге]]
13642 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
13648 Multiple links to pages in language variants
13652 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
13654 <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>.
13660 Simple template in language variants
13666 <p>This is a test template
13672 Template with explicit namespace in language variants
13678 <p>This is a test template
13684 Basic test for template parameter in language variants
13688 {{парамтест|param=foo}}
13690 <p>This is a test template with parameter foo
13696 Simple category in language variants
13700 [[Category:МедиаWики Усер'с Гуиде]]
13702 <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>
13719 Don't convert blue categorylinks to another variant (bug 33210)
13723 [[A]][[Category:分类]]
13725 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
13730 Stripping -{}- tags (language variants)
13734 Latin proverb: -{Ne nuntium necare}-
13736 <p>Latin proverb: Ne nuntium necare
13742 Prevent conversion with -{}- tags (language variants)
13744 language=sr variant=sr-ec
13746 Latinski: -{Ne nuntium necare}-
13748 <p>Латински: Ne nuntium necare
13754 Prevent conversion of text with -{}- tags (language variants)
13756 language=sr variant=sr-ec
13758 Latinski: -{Ne nuntium necare}-
13760 <p>Латински: Ne nuntium necare
13766 Prevent conversion of links with -{}- tags (language variants)
13768 language=sr variant=sr-ec
13772 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13778 -{}- tags within headlines (within html for parserConvert())
13780 language=sr variant=sr-ec
13784 <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>
13790 Explicit definition of language variant alternatives
13792 language=zh variant=zh-tw
13794 -{zh:China;zh-tw:Taiwan}-, not China
13796 <p>Taiwan, not China
13802 Conversion around HTML tags
13804 language=sr variant=sr-ec
13806 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13807 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13810 <span title="ЛаCтин">ски</span>
13816 Explicit session-wise language variant mapping (A flag and - flag)
13818 language=zh variant=zh-tw
13820 Taiwan is not China.
13821 But -{A|zh:China;zh-tw:Taiwan}- is China,
13822 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13823 and -{China}- is China.
13825 <p>Taiwan is not China.
13826 But Taiwan is Taiwan,
13827 (This should be stripped!)
13828 and China is China.
13833 Explicit session-wise language variant mapping (H flag for hide)
13835 language=zh variant=zh-tw
13837 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13840 <p>(This should be stripped!)
13846 Adding explicit conversion rule for title (T flag)
13848 language=zh variant=zh-tw showtitle
13850 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13853 <p>Should be stripped!
13858 Testing that changing the language variant here in the tests actually works
13860 language=zh variant=zh showtitle
13862 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13865 <p>Should be stripped!
13870 Recursive conversion of alt and title attrs shouldn't clear converter state
13872 language=zh variant=zh-cn showtitle
13874 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13875 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13879 Should be stripped<span title="Exclamation">!</span>
13884 Bug 24072: more test on conversion rule for title
13886 language=zh variant=zh-tw showtitle
13888 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13889 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13892 <p>This should be stripped!
13893 This won't take interferes with the title rule.
13898 Partly disable title conversion if variant == main language code
13900 language=zh variant=zh title=[[ZH]] showtitle
13902 -{T|zh-cn:CN;zh-tw:TW}-
13910 Partly disable title conversion if variant == main language code, more
13912 language=zh variant=zh title=[[ZH]] showtitle
13922 Raw output of variant escape tags (R flag)
13924 language=zh variant=zh-tw
13926 Raw: -{R|zh:China;zh-tw:Taiwan}-
13928 <p>Raw: zh:China;zh-tw:Taiwan
13933 Nested using of manual convert syntax
13935 language=zh variant=zh-hk
13937 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13939 <p>Nested: Hello Hong Kong!
13944 Proper conversion of text in external links
13946 language=sr variant=sr-ec
13948 http://www.google.com
13949 gopher://www.google.com
13950 [http://www.google.com http://www.google.com]
13951 [gopher://www.google.com gopher://www.google.com]
13952 [https://www.google.com irc://www.google.com]
13953 [ftp://www.google.com www.google.com/ftp://dir]
13954 [//www.google.com www.google.com]
13956 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13957 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13958 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13959 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13960 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13961 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13962 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13967 Do not convert roman numbers to language variants
13969 language=sr variant=sr-ec
13973 <p>Фридрих IV је цар.
13978 Unclosed language converter markup "-{"
13989 Don't convert raw rule "-{R|=>}-" to "=>"
14000 Bug 529: Uncovered bullet
14010 # Plain MediaWiki does not remove empty lists, but tidy actually does.
14011 # Templates in Wikipedia rely on this behavior, as tidy has always been
14012 # enabled there. These tests are normally run *without* tidy, so specify the
14013 # full output here.
14014 # To test realistic parsing behavior, apply a tidy-like transformation to both
14015 # the expected output and your parser's output.
14017 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
14019 ******* Foo {{bullet}}
14021 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
14034 Bug 529: Uncovered table already at line-start
14057 Bug 529: Uncovered bullet in parser function result
14059 * Foo {{lc:{{bullet}} }}
14068 Bug 5678: Double-parsed template argument
14070 {{lc:{{{1}}}|hello}}
14077 Bug 5678: Double-parsed template invocation
14079 {{lc:{{paramtest {{!}} param = hello }} }}
14081 <p>{{paramtest | param = hello }}
14086 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
14089 title=[[Main Page]]
14091 {{PRVNÍVELKÉ:ěščř}}
14092 {{prvnívelké:ěščř}}
14112 Morwen/13: Unclosed link followed by heading
14119 <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>
14124 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
14131 <h1><span class="mw-headline" id="heading">heading</span></h1>
14136 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
14143 <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>
14158 Paragraphs inside divs (no extra line breaks)
14170 Paragraphs inside divs (extra line break on open)
14185 Paragraphs inside divs (extra line break on close)
14200 Paragraphs inside divs (extra line break on open and close)
14217 Nesting tags, paragraphs on lines which begin with <div>
14221 <div></div><strong>A
14230 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
14232 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
14236 <blockquote>Line one
14238 Line two</blockquote>
14240 <blockquote>Line one
14241 Line two</blockquote>
14246 Bug 6200: paragraphs inside blockquotes (extra line break on open)
14253 Line two</blockquote>
14258 Line two</blockquote>
14263 Bug 6200: paragraphs inside blockquotes (extra line break on close)
14267 <blockquote>Line one
14272 <blockquote>Line one
14280 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
14299 Paragraphs inside blockquotes/divs (no extra line breaks)
14301 <blockquote><div>Line one
14303 Line two</div></blockquote>
14305 <blockquote><div>Line one
14306 Line two</div></blockquote>
14311 Paragraphs inside blockquotes/divs (extra line break on open)
14316 Line two</div></blockquote>
14321 Line two</div></blockquote>
14326 Paragraphs inside blockquotes/divs (extra line break on close)
14328 <blockquote><div>Line one
14331 </div></blockquote>
14333 <blockquote><div>Line one
14336 </div></blockquote>
14341 Paragraphs inside blockquotes/divs (extra line break on open and close)
14347 </div></blockquote>
14353 </div></blockquote>
14358 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
14360 wgLinkHolderBatchSize=0
14366 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
14367 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
14368 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
14373 Free external link invading image caption
14375 [[Image:Foobar.jpg|thumb|http://x|hello]]
14377 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>hello</div></div></div>
14382 Bug 15196: localised external link numbers
14386 [http://en.wikipedia.org/]
14388 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
14393 Multibyte character in padleft
14395 {{padleft:-Hello|7|Æ}}
14402 Multibyte character in padright
14404 {{padright:Hello-|7|Æ}}
14411 formatdate parser function
14413 {{#formatdate:2009-03-24}}
14415 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
14420 formatdate parser function, with default format
14422 {{#formatdate:2009-03-24|mdy}}
14424 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
14429 Spacing of numbers in formatted dates
14431 {{#formatdate:January 15}}
14433 <p><span class="mw-formatted-date" title="01-15">January 15</span>
14438 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
14440 language=nl title=[[MediaWiki:Common.css]]
14442 {{#formatdate:2009-03-24|dmy}}
14444 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
14457 Edit comment with link
14461 I like the [[Main Page]] a lot
14463 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
14467 Edit comment with link and link text
14471 I like the [[Main Page|best pages]] a lot
14473 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14477 Edit comment with link and link text with suffix
14481 I like the [[Main Page|best page]]s a lot
14483 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14487 Edit comment with section link (non-local, eg in history list)
14489 comment title=[[Main Page]]
14491 /* External links */ removed bogus entries
14493 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14497 Edit comment with section link and text before it (non-local, eg in history list)
14499 comment title=[[Main Page]]
14501 pre-comment text /* External links */ removed bogus entries
14503 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>
14507 Edit comment with section link (local, eg in diff view)
14509 comment local title=[[Main Page]]
14511 /* External links */ removed bogus entries
14513 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14517 Edit comment with subpage link (bug 14080)
14521 title=[[Subpage test]]
14523 Poked at a [[/subpage]] here...
14525 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
14529 Edit comment with subpage link and link text (bug 14080)
14533 title=[[Subpage test]]
14535 Poked at a [[/subpage|neat little page]] here...
14537 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
14541 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
14544 title=[[Subpage test]]
14546 Poked at a [[/subpage]] here...
14548 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
14552 Edit comment with bare anchor link (local, as on diff)
14556 title=[[Main Page]]
14560 <a href="#section">#section</a>
14564 Edit comment with bare anchor link (non-local, as on history)
14567 title=[[Main Page]]
14571 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
14575 Anchor starting with underscore
14579 <p><a href="#_ref">One</a>
14584 Id starting with underscore
14586 <div id="_ref"></div>
14588 <div id="_ref"></div>
14593 Space normalisation on autocomment (bug 22784)
14596 title=[[Main Page]]
14598 /* __hello__world__ */
14600 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
14604 percent-encoding and + signs in comments (Bug 26410)
14608 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
14610 <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>
14614 Bad images - basic functionality
14623 Bad images - bug 16039: text after bad image disappears
14637 Verify that displaytitle works (bug #22501) no displaytitle
14641 wgAllowDisplayTitle=true
14642 wgRestrictDisplayTitle=false
14644 this is not the the title
14647 <p>this is not the the title
14652 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
14657 wgAllowDisplayTitle=true
14658 wgRestrictDisplayTitle=false
14660 this is not the the title
14661 {{DISPLAYTITLE:whatever}}
14664 <p>this is not the the title
14669 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
14674 wgAllowDisplayTitle=true
14675 wgRestrictDisplayTitle=true
14677 this is not the the title
14678 {{DISPLAYTITLE:whatever}}
14681 <p>this is not the the title
14686 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
14691 wgAllowDisplayTitle=true
14692 wgRestrictDisplayTitle=true
14694 this is not the the title
14695 {{DISPLAYTITLE:screen}}
14698 <p>this is not the the title
14703 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
14708 wgAllowDisplayTitle=false
14710 this is not the the title
14711 {{DISPLAYTITLE:screen}}
14714 <p>this is not the the title
14715 <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>
14720 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
14725 wgAllowDisplayTitle=false
14727 this is not the the title
14730 <p>this is not the the title
14735 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
14740 wgAllowDisplayTitle=true
14741 wgRestrictDisplayTitle=true
14743 this is not the the title
14744 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
14746 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
14747 <p>this is not the the title
14752 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
14757 wgAllowDisplayTitle=true
14758 wgRestrictDisplayTitle=true
14760 this is not the the title
14761 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
14763 <span style="color: red;">s</span>creen
14764 <p>this is not the the title
14769 preload: check <noinclude> and <includeonly>
14773 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
14779 preload: check <onlyinclude>
14783 Goodbye <onlyinclude>Hello world</onlyinclude>
14789 preload: can pass tags through if we want to
14793 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
14795 <includeonly>Hello world</includeonly>
14799 preload: check that it doesn't try to do tricks
14803 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14805 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14809 Play a bit with r67090 and bug 3158
14813 <div style="width:50% !important"> </div>
14814 <div style="width:50% !important"> </div>
14815 <div style="width:50% !important"> </div>
14816 <div style="border : solid;"> </div>
14818 <div style="width:50% !important"> </div>
14819 <div style="width:50% !important"> </div>
14820 <div style="width:50% !important"> </div>
14821 <div style="border : solid;"> </div>
14826 HTML5 data attributes
14828 <span data-foo="bar">Baz</span>
14829 <p data-abc-def_hij="">Quuz</p>
14831 <p><span data-foo="bar">Baz</span>
14833 <p data-abc-def_hij="">Quuz</p>
14838 percent-encoding and + signs in internal links (Bug 26410)
14840 [[User:+%]] [[Page+title%]]
14841 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14842 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14843 [[%33%45]] [[%33%45+]]
14845 <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>
14846 <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>
14847 <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>
14848 <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>
14853 Special characters in embedded file links (bug 27679)
14855 [[File:Contains & ampersand.jpg]]
14856 [[File:Does not exist.jpg|Title with & ampersand]]
14858 <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>
14859 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14865 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14867 Text's been normalized?
14869 <p>Text's been normalized?
14874 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14876 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14878 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14883 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14885 [http://www.example.org/ ideograms]
14887 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14892 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14894 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14896 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14920 Bug 31098 Template which includes system messages which includes the template
14924 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14925 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14930 Bug31490 Turkish: ucfirst 'blah'
14941 Bug31490 Turkish: ucfirst 'ix'
14952 Bug31490 Turkish: lcfirst 'BLAH'
14963 Bug31490 Turkish: ucfırst (with a dotless i)
14969 <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>
14974 Bug31490 ucfırst (with a dotless i) with English language
14980 <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>
14985 Bug 26375: TOC with italics
14987 title=[[Main Page]]
14990 == ''Lost'' episodes ==
14992 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14994 <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>
14997 <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>
15002 Bug 26375: TOC with bold
15004 title=[[Main Page]]
15007 == '''should be bold''' then normal text ==
15009 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15011 <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>
15014 <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>
15019 Bug 33845: Headings become cursive in TOC when they contain an image
15021 title=[[Main Page]]
15024 == Image [[Image:foobar.jpg]] ==
15026 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15028 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
15031 <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>
15036 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
15038 title=[[Main Page]]
15041 == <blockquote>Quote</blockquote> ==
15043 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15045 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
15048 <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>
15053 Unclosed tags in TOC
15055 title=[[Main Page]]
15059 <small>Hanc marginis exiguitas non caperet.</small>
15062 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15064 <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>
15067 <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>
15068 <p><small>Hanc marginis exiguitas non caperet.</small>
15074 Multiple tags in TOC
15077 == <i>Foo</i> <b>Bar</b> ==
15079 == <i>Foo</i> <blockquote>Bar</blockquote> ==
15081 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15083 <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>
15084 <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>
15087 <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>
15088 <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>
15093 Tags with parameters in TOC
15096 == <sup class="in-h2">Hello</sup> ==
15098 == <sup class="a > b">Evilbye</sup> ==
15100 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15102 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
15103 <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>
15106 <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>
15107 <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>
15112 span tags with directionality in TOC
15115 == <span dir="ltr">C++</span> ==
15117 == <span dir="rtl">זבנג!</span> ==
15119 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
15121 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
15123 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
15125 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15127 <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>
15128 <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>
15129 <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>
15130 <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>
15131 <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>
15134 <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>
15135 <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>
15136 <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>
15137 <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>
15138 <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>
15145 == {{int:headline_sample}} ==
15149 Bug 32057: Title needed when expanding <h> nodes.
15151 title=[[Main Page]]
15155 <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>
15160 Strip marker in urlencode
15162 {{urlencode:x<nowiki/>y}}
15163 {{urlencode:x<nowiki/>y|wiki}}
15164 {{urlencode:x<nowiki/>y|path}}
15191 Strip marker in formatNum
15193 {{formatnum:1<nowiki/>2}}
15194 {{formatnum:1<nowiki/>2|R}}
15202 Check noCommafy in formatNum
15206 {{formatnum:123456.78}}
15207 {{formatnum:123456.78|NOSEP}}
15215 Strip marker in grammar
15219 {{grammar:elative|foo<nowiki/>bar}}
15226 Strip marker in padleft
15228 {{padleft:|2|x<nowiki/>y}}
15235 Strip marker in padright
15237 {{padright:|2|x<nowiki/>y}}
15244 Strip marker in anchorencode
15246 {{anchorencode:x<nowiki/>y}}
15253 nowiki inside link inside heading (bug 18295)
15255 ==[[foo|x<nowiki>y</nowiki>z]]==
15257 <h2><span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15262 new support for bdi element (bug 31817)
15264 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15266 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15271 Ignore pipe between table row attributes
15275 |- id=foo | style='color: red'
15283 <tr id="foo" style="color: red">
15290 Gallery override link with WikiLink (bug 34852)
15293 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
15296 <ul class="gallery mw-gallery-traditional">
15297 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15298 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15299 <div class="gallerytext">
15309 Gallery override link with absolute external link (bug 34852)
15312 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
15315 <ul class="gallery mw-gallery-traditional">
15316 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15317 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15318 <div class="gallerytext">
15328 Gallery override link with malicious javascript (bug 34852)
15331 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
15334 <ul class="gallery mw-gallery-traditional">
15335 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15336 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/%22_onclick%3D%22alert(%27malicious_javascript_code!%27);"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15337 <div class="gallerytext">
15347 Gallery with invalid title as link (bug 43964)
15350 File:foobar.jpg|link=<
15353 <ul class="gallery mw-gallery-traditional">
15354 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15355 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15356 <div class="gallerytext">
15364 Language parser function
15373 Padleft and padright as substr
15375 {{padleft:|3|abcde}}
15376 {{padright:|3|abcde}}
15384 Special parser function
15386 {{#special:RandomPage}}
15387 {{#special:BaDtItLe}}
15388 {{#special:Foobar}}
15397 Bug 34939 - Case insensitive link parsing ([HttP://])
15399 [HttP://MediaWiki.Org/]
15401 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
15406 Bug 34939 - Case insensitive link parsing ([HttP:// title])
15408 [HttP://MediaWiki.Org/ MediaWiki]
15410 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
15415 Bug 34939 - Case insensitive link parsing (HttP://)
15417 HttP://MediaWiki.Org/
15419 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
15425 ### Parsoids-specific tests
15426 ### Parsoid-PHP parser incompatibilities
15429 1. SOL-sensitive wikitext tokens as template-args
15431 parsoid=wt2html,wt2wt
15437 <span about="#mwt1" typeof="mw:Transclusion">
15438 </span><ul about="#mwt1"><li>a</li></ul>
15439 <span about="#mwt2" typeof="mw:Transclusion">
15440 </span><ol about="#mwt2"><li>a</li></ol>
15441 <span about="#mwt3" typeof="mw:Transclusion">
15442 </span><dl about="#mwt3"><dd>a</dd></dl>
15445 #### ----------------------------------------------------------------
15446 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
15447 #### tags. Parsoid's output for these tags differs from that of the
15449 #### ----------------------------------------------------------------
15452 Ref: 1. ref-location should be replaced with an index span
15457 B <ref name="x">foo</ref>
15460 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
15461 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-2">[2]</a></span>
15462 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"y"}}' id="cite_ref-y-3-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-y-3">[3]</a></span></p>
15466 Ref: 2. ref-tags with identical names should all get the same index
15470 A <ref name="x">foo</ref>
15473 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
15474 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
15478 Ref: 3. spaces in ref-names should be ignored
15482 A <ref name="x">foo</ref>
15483 B <ref name=" x " />
15486 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
15487 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
15488 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-2" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
15492 Ref: 4. 'constructor' should be accepted as a valid ref-name
15493 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
15497 A <ref name="constructor">foo</ref>
15499 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"constructor"}}' id="cite_ref-constructor-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-constructor-1">[1]</a></span></p>
15503 Ref: 5. body should accept generic wikitext
15508 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
15513 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid=\"{&quot;dsr&quot;:[19,40,3,3]}\"><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" data-parsoid=\"{&quot;a&quot;:{&quot;href&quot;:&quot;./Bolded_link&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;bolded link&quot;},&quot;stx&quot;:&quot;simple&quot;,&quot;dsr&quot;:[22,37,2,2]}\">bolded link</a></b> and this is a <span about=\"#mwt3\" typeof=\"mw:Transclusion\" data-mw=\"{&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;transclusion&quot;}}}\" data-parsoid=\"{&quot;src&quot;:&quot;{{echo|transclusion}}&quot;,&quot;dsr&quot;:[55,76,null,null]}\">transclusion</span>\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15515 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15516 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> This is a <b><a rel="mw:WikiLink" href="./Bolded_link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}}}'>transclusion</span>
15521 Ref: 6. indent-pres should not be output in ref-body
15533 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n bar\n baz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15535 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15536 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15543 Ref: 6. No p-wrapping in ref-body
15562 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n\nbar\n\n\nbaz\n\n\n\nbooz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15564 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15565 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15579 Ref: 8. transclusion wikitext has lower precedence
15583 A <ref> foo {{echo|</ref> B C}}
15587 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid=\"{&quot;src&quot;:&quot;{{&quot;,&quot;dsr&quot;:[12,14,2,null]}\">{{</span>echo|"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
15589 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15590 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <span typeof="mw:Nowiki">{{</span>echo|</li></ol>
15594 Ref: 9. unclosed comments should not leak out of ref-body
15598 A <ref> foo <!--</ref> B C
15602 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <!---->"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
15604 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15605 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
15609 Ref: 10. Unclosed HTML tags should not leak out of ref-body
15613 A <ref> <b> foo </ref> B C
15617 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"<b data-parsoid=\"{&quot;stx&quot;:&quot;html&quot;,&quot;autoInsertedEnd&quot;:true,&quot;dsr&quot;:[8,16,3,0]}\"> foo </b>"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
15619 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15620 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b> foo </b></li></ol>
15624 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
15631 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B
15632 C <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> D</p>
15636 Ref: 12. ref-tags act as trailing newline migration barrier
15640 <!--the newline at the end of this line moves out of the p-tag-->a
15642 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
15647 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
15650 <p>b<!--the newline at the end of this line stays inside the p-tag--> <span about="#mwt1" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
15651 <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
15658 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
15666 <p><span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> A
15667 <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar\n"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> B</p>
15671 Ref: 14. A nested ref-tag should be emitted as plain text
15675 <ref>foo <ref>bar</ref> baz</ref>
15679 <p><span about="#mwt1" class="reference" data-mw="{"name":"ref","body":{"html":"foo &lt;ref&gt;bar&lt;/ref&gt; baz"},"attrs":{}}" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15681 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
15682 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <ref>bar</ref> baz</li></ol>
15686 Ref: 15. ref-tags with identical names should get identical indexes
15690 A1 <ref name="a">foo</ref> A2 <ref name="a" />
15691 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
15695 <p>A1 <span about="#mwt3" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span> A2 <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
15696 B1 <span about="#mwt7" class="reference" data-mw='{"name":"ref","attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span> B2 <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
15698 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-a-1-0">1.0</a> <a href="#cite_ref-a-1-1">1.1</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy">↑ <a href="#cite_ref-b-2-0">2.0</a> <a href="#cite_ref-b-2-1">2.1</a></span> bar</li></ol>
15702 References: 1. references tag without any refs should be handled properly
15708 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
15712 References: 2. references tag with group only outputs references from that group
15716 A <ref group="a">foo</ref>
15717 B <ref group="b">bar</ref>
15719 <references group='a' />
15721 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
15722 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[b 1]</a></span></p>
15724 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
15728 References: 3. ref list should be cleared after processing references
15740 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15742 <ol about="#mwt4" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
15744 <p>B <span about="#mwt6" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15746 <ol about="#mwt8" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bar</li></ol>
15750 References: 4. only referenced group should be cleared after processing references
15754 A <ref group="a">afoo</ref>
15757 <references group="a"/>
15763 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"afoo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
15764 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bfoo</ref>","dsr":[30,45,5,6]}'><a href="#cite_note-1">[1]</a></span></p>
15766 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> afoo</li></ol>
15768 <p>C <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
15770 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bfoo</li><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> cfoo</li></ol>
15774 References: 5. ref tags in references should be processed while ignoring all other content
15779 B <ref name="b">bar</ref>
15782 <ref name="a">foo</ref>
15783 This should just get lost.
15786 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
15787 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
15789 <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":"<span about=\"#mwt8\" class=\"reference\" data-mw=\"{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;a&quot;}}\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-a-1\">[1]</a></span>"},"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> foo</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> bar</li></ol>
15793 References: 6. <references /> from a transclusion
15797 {{echo|<references />}}
15799 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15803 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
15807 A <ref>foo bar for a</ref>
15813 <ref name="b">foo</ref>
15816 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo bar for a"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
15817 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
15819 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo bar for a</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> </li></ol>
15821 <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\" data-mw=\"{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;b&quot;}}\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-b-1\">[1]</a></span>\n"},"attrs":{}}'><li about="#cite_note-b-1" id="cite_note-b-1"><span rel="mw:referencedBy">↑</span> foo</li></ol>
15825 #### ----------------------------------------------------------------
15826 #### The following section of tests are primarily to test
15827 #### wikitext escaping capabilities of Parsoid. Given that
15828 #### escaping can be done any number of ways, the wikitext (input)
15829 #### is always adjusted to reflect how Parsoid adds nowiki
15832 #### We are marking several tests as parsoid-only since the
15833 #### HTML in the result section is different from what the
15834 #### PHP parser generates for it.
15835 #### ----------------------------------------------------------------
15838 #### --------------- Headings ---------------
15840 #### 1. Nested inside html <h1>=foo=</h1>
15841 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15842 #### 3. Nested inside html with wikitext split by html tags
15843 #### 4. No escape needed
15844 #### 5. Empty headings <h1></h1>
15845 #### 6. Heading chars in SOL context
15846 #### ----------------------------------------
15848 Headings: 0. Unnested
15852 <nowiki>=foo=</nowiki>
15854 <nowiki> =foo= </nowiki>
15856 <nowiki>=foo=</nowiki>
15858 =foo''a''<nowiki>=</nowiki>
15860 <p><span typeof="mw:Nowiki">=foo=</span></p>
15862 <p><span typeof="mw:Nowiki"> =foo= </span>
15864 <span typeof="mw:Nowiki">=foo=</span></p>
15866 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15870 Headings: 1. Nested inside html
15874 =<nowiki>=foo=</nowiki>=
15876 ==<nowiki>=foo=</nowiki>==
15878 ===<nowiki>=foo=</nowiki>===
15880 ====<nowiki>=foo=</nowiki>====
15882 =====<nowiki>=foo=</nowiki>=====
15884 ======<nowiki>=foo=</nowiki>======
15886 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15887 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15888 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15889 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15890 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15891 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15895 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15900 <nowiki>*</nowiki>bar
15906 <nowiki>=bar=</nowiki>
15914 Headings: 3. Nested inside html with wikitext split by html tags
15918 =='''bold'''<nowiki>foo=</nowiki>=
15920 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15924 Headings: 4a. No escaping needed (testing just h1 and h2)
15942 =<nowiki>=</nowiki>=
15950 <h1><i>=</i>foo=</h1>
15951 <h1><span typeof="mw:Nowiki">=</span></h1>
15955 Headings: 4b. No escaping needed (inside p-tags)
15970 Headings: 5. Empty headings
15982 =====<nowiki/>=====
15984 ======<nowiki/>======
15995 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15999 <nowiki>=a=</nowiki>
16001 <nowiki>=a=</nowiki>
16003 <nowiki>=a=</nowiki>
16005 <nowiki>=a=</nowiki>
16014 Headings: 6b. Heading chars in SOL context (with trailing newlines)
16042 Headings: 6c. Heading chars in SOL context (leading newline break)
16047 <nowiki>=b=</nowiki>
16054 Headings: 6d. Heading chars in SOL context (with interspersed comments)
16058 <!--c0--><nowiki>=a=</nowiki>
16060 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
16062 <p><!--c0-->=a=</p>
16063 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
16067 Headings: 6d. Heading chars in SOL context (No escaping needed)
16076 #### --------------- Lists ---------------
16077 #### 0. Outside nests (*foo, etc.)
16078 #### 1. Nested inside html <ul><li>*foo</li></ul>
16079 #### 2. Inside definition lists
16080 #### 3. Only bullets at start should be escaped
16081 #### 4. No escapes needed
16082 #### 5. No unnecessary escapes
16083 #### 6. Escape bullets in SOL position
16084 #### 7. Escape bullets in a multi-line context
16085 #### ----------------------------------------
16088 Lists: 0. Outside nests
16090 <nowiki>*</nowiki>foo
16092 <nowiki>#</nowiki>foo
16100 Lists: 1. Nested inside html
16102 *<nowiki>*foo</nowiki>
16104 *<nowiki>#foo</nowiki>
16106 *<nowiki>:foo</nowiki>
16108 *<nowiki>;foo</nowiki>
16110 #<nowiki>*foo</nowiki>
16112 #<nowiki>#foo</nowiki>
16114 #<nowiki>:foo</nowiki>
16116 #<nowiki>;foo</nowiki>
16138 Lists: 2. Inside definition lists
16140 ;<nowiki>;foo</nowiki>
16142 ;<nowiki>:foo</nowiki>
16144 ;<nowiki>:foo</nowiki>
16147 :<nowiki>:foo</nowiki>
16162 Lists: 3. Only bullets at start of text should be escaped
16164 *<nowiki>*foo*bar</nowiki>
16166 *<nowiki>*foo</nowiki>''it''*bar
16170 <ul><li>*foo<i>it</i>*bar
16176 Lists: 4. No escapes needed
16188 <ul><li><i>foo</i>*bar
16190 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
16195 Lists: 5. No unnecessary escapes
16197 * bar <span><nowiki>[[foo]]</nowiki></span>
16199 *=bar <span><nowiki>[[foo]]</nowiki></span>
16201 *[[bar <span><nowiki>[[foo]]</nowiki></span>
16203 *]]bar <span><nowiki>[[foo]]</nowiki></span>
16205 *=bar <span>foo]]</span>=
16209 <ul><li> bar <span>[[foo]]</span>
16211 <ul><li>=bar <span>[[foo]]</span>
16213 <ul><li>[[bar <span>[[foo]]</span>
16215 <ul><li>]]bar <span>[[foo]]</span>
16217 <ul><li>=bar <span>foo]]</span>=
16219 <ul><li> <s></s>: a
16225 Lists: 6. Escape bullets in SOL position
16229 <!--cmt--><nowiki>*foo</nowiki>
16231 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
16235 Lists: 7. Escape bullets in a multi-line context
16238 <nowiki>*</nowiki>b
16245 #### --------------- HRs ---------------
16246 #### 1. Single line
16247 #### -----------------------------------
16250 HRs: 1. Single line
16254 ----<nowiki>----</nowiki>
16258 <hr><span typeof="mw:Nowiki">----</span>
16263 #### --------------- Tables ---------------
16264 #### 1a. Simple example
16265 #### 1b. No escaping needed (!foo)
16266 #### 1c. No escaping needed (|foo)
16267 #### 1d. No escaping needed (|}foo)
16269 #### 2a. Nested in td (<td>foo|bar</td>)
16270 #### 2b. Nested in td (<td>foo||bar</td>)
16271 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
16273 #### 3a. Nested in th (<th>foo!bar</th>)
16274 #### 3b. Nested in th (<th>foo!!bar</th>)
16275 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
16279 #### 4c. No escaping needed
16280 #### --------------------------------------
16283 Tables: 1a. Simple example
16294 Tables: 1b. No escaping needed
16303 Tables: 1c. No escaping needed
16312 Tables: 1d. No escaping needed
16321 Tables: 2a. Nested in td
16326 |<nowiki>foo|bar</nowiki>
16330 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
16334 Tables: 2b. Nested in td
16339 |<nowiki>foo||bar</nowiki>
16340 |''it''<nowiki>foo||bar</nowiki>
16344 <td><span typeof="mw:Nowiki">foo||bar</span></td>
16345 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
16349 Tables: 2c. Nested in td -- no escaping needed
16357 <table><tbody><tr><td>foo!!bar
16358 </td></tr></tbody></table>
16363 Tables: 3a. Nested in th
16371 <table><tbody><tr><th>foo!bar
16372 </th></tr></tbody></table>
16377 Tables: 3b. Nested in th
16382 !<nowiki>foo!!bar</nowiki>
16386 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
16391 Tables: 3c. Nested in th -- no escaping needed
16396 !<nowiki>foo||bar</nowiki>
16400 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
16404 Tables: 4a. Escape -
16412 |<nowiki>-bar</nowiki>
16416 <tr><th>-bar</th></tr>
16418 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
16422 Tables: 4b. Escape +
16430 |<nowiki>+bar</nowiki>
16434 <tr><th>+bar</th></tr>
16436 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
16440 Tables: 4c. No escaping needed
16459 <tr><td>foo-bar</td><td>foo+bar</td></tr>
16460 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
16468 ### SSS FIXME: Disabled right now because accurate html2wt
16469 ### on this snippet requires data-parsoid flags that we've
16470 ### stripped out of these tests. We should scheme how we
16471 ### we want to handle these kind of tests that require
16472 ### data-parsoid flags for accurate html2wt serialization
16475 Tables: 4d. No escaping needed
16493 #### --------------- Links ----------------
16494 #### 1. Quote marks in link text
16495 #### 2. Wikilinks: Escapes needed
16496 #### 3. Wikilinks: No escapes needed
16497 #### 4. Extlinks: Escapes needed
16498 #### 5. Extlinks: No escapes needed
16499 #### --------------------------------------
16501 Links 1. Quote marks in link text
16505 [[Foo|Foo<nowiki>''boo''</nowiki>]]
16507 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
16511 Links 2. WikiLinks: Escapes needed
16515 [[Foo|<nowiki>[Foobar]</nowiki>]]
16516 [[Foo|<nowiki>Foobar]</nowiki>]]
16517 [[Foo|x [Foobar] x]]
16518 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
16519 [[Foo|<nowiki>[[Bar]]</nowiki>]]
16520 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
16521 [[Foo|<nowiki>|Bar</nowiki>]]
16522 [[Foo|<nowiki>]]bar</nowiki>]]
16523 [[Foo|<nowiki>[[bar</nowiki>]]
16524 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
16526 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
16527 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
16528 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
16529 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
16530 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
16531 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
16532 <a href="Foo" rel="mw:WikiLink">|Bar</a>
16533 <a href="Foo" rel="mw:WikiLink">]]bar</a>
16534 <a href="Foo" rel="mw:WikiLink">[[bar</a>
16535 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
16539 Links 3. WikiLinks: No escapes needed
16546 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
16547 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
16551 Links 4. ExtLinks: Escapes needed
16555 [http://google.com <nowiki>[google]</nowiki>]
16556 [http://google.com <nowiki>google]</nowiki>]
16558 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
16559 <a href="http://google.com" rel="mw:ExtLink">google]</a>
16563 Links 5. ExtLinks: No escapes needed
16567 [http://google.com [google]
16569 <a href="http://google.com" rel="mw:ExtLink">[google</a>
16572 #### --------------- Quotes ---------------
16573 #### 1. Quotes inside <b> and <i>
16574 #### 2. Link fragments separated by <i> and <b> tags
16575 #### 3. Link fragments inside <i> and <b>
16576 #### 4. No escaping needed
16577 #### --------------------------------------
16579 1. Quotes inside <b> and <i>
16581 parsoid=html2wt,wt2wt
16583 ''<nowiki>'foo'</nowiki>''
16584 ''<nowiki>''foo''</nowiki>''
16585 ''<nowiki>'''foo'''</nowiki>''
16587 '''<nowiki>'foo'</nowiki>'''
16588 '''<nowiki>''foo''</nowiki>'''
16589 '''<nowiki>'''foo'''</nowiki>'''
16590 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
16591 '''foo'''<nowiki/>'s
16594 '<nowiki/>''foo''<nowiki/>'
16596 '''foo'''<nowiki/>'
16597 '<nowiki/>'''foo'''<nowiki/>'
16606 <b>foo'<i>bar'</i>baz</b>
16617 2. Link fragments separated by <i> and <b> tags
16619 [[''foo''<nowiki>hello]]</nowiki>
16621 [['''foo'''<nowiki>hello]]</nowiki>
16623 <p>[[<i>foo</i>hello]]
16624 </p><p>[[<b>foo</b>hello]]
16629 3. Link fragments inside <i> and <b>
16630 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
16631 this is one of the shortcomings of this format)
16633 ''[[foo''<nowiki>]]</nowiki>
16635 '''[[foo'''<nowiki>]]</nowiki>
16638 </p><p><b>[[foo</b>]]
16643 4. No escaping needed
16645 '<span>''bar''</span>'
16646 '<span>'''bar'''</span>'
16648 <p>'<span><i>bar</i></span>'
16649 '<span><b>bar</b></span>'
16653 #### ----------- Paragraphs ---------------
16654 #### 1. No unnecessary escapes
16655 #### --------------------------------------
16658 1. No unnecessary escapes
16660 bar <span><nowiki>[[foo]]</nowiki></span>
16662 =bar <span><nowiki>[[foo]]</nowiki></span>
16664 [[bar <span><nowiki>[[foo]]</nowiki></span>
16666 ]]bar <span><nowiki>[[foo]]</nowiki></span>
16668 =bar <span>foo]]</span><nowiki>=</nowiki>
16670 <p>bar <span>[[foo]]</span>
16671 </p><p>=bar <span>[[foo]]</span>
16672 </p><p>[[bar <span>[[foo]]</span>
16673 </p><p>]]bar <span>[[foo]]</span>
16674 </p><p>=bar <span>foo]]</span>=
16678 #### ----------------------- PRE --------------------------
16679 #### 1. Leading whitespace in SOL context should be escaped
16680 #### ------------------------------------------------------
16682 1. Leading whitespace in SOL context should be escaped
16686 <nowiki> </nowiki>a
16688 <nowiki> </nowiki> a
16690 <nowiki> </nowiki>a(tab)
16692 <nowiki> </nowiki> a
16694 <nowiki> </nowiki> a
16697 <nowiki> </nowiki>b
16700 <nowiki> </nowiki>b
16703 <nowiki> </nowiki> b
16709 <p><!--cmt--> a</p>
16718 #### --------------- HTML tags ---------------
16721 #### 3. multi-line html tag
16722 #### -----------------------------------------
16728 <a href="http://google.com">google</a>
16730 <a href="http://google.com">google</a>
16736 <nowiki><div>foo</div>
16737 <div style="color:red">foo</div></nowiki>
16739 <p><div>foo</div>
16740 <div style="color:red">foo</div>
16745 3. multi-line html tag
16760 <nowiki><ref>foo</ref></nowiki>
16762 <p><ref>foo</ref>
16766 #### --------------- Others ---------------
16770 <nowiki>foo</nowiki>
16772 <p><nowiki>foo</nowiki>
16776 ## The quote-char in the input is necessary for triggering the bug
16778 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
16780 parsoid=wt2wt,html2wt
16789 Tag-like HTML structures are passed through as text
16811 </p><p>1<d e>f
16816 # This was a bug in the PHP parser (see bug 17663 and its dups,
16817 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
16819 Tag names followed by punctuation should not be recognized as tags
16823 <p><s.ome> text
16828 HTML tag with necessary entities in attributes
16830 <span title="&amp;">foo</span>
16832 <p><span title="&amp;">foo</span>
16837 HTML tag with 'unnecessary' entity encoding in attributes
16839 <span title="&">foo</span>
16841 <p><span title="&">foo</span>
16846 HTML tag with broken attribute value quoting
16848 <span title="Hello world>Foo</span>
16850 <p><span>Foo</span>
16855 Parsoid-only: HTML tag with broken attribute value quoting
16859 <span title="Hello world>Foo</span>
16861 <p><span title="Hello world">Foo</span>
16866 Table with broken attribute value quoting
16869 | title="Hello world|Foo
16880 Table with broken attribute value quoting on consecutive lines
16883 | title="Hello world|Foo
16884 | style="color:red|Bar
16897 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16902 | title="Hello world|Foo
16903 | style="color:red|Bar
16908 <td title="Hello world">Foo
16909 </td><td style="color: red">Bar
16910 </td></tr></tbody></table>
16915 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16925 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16935 Accept empty td cell attribute
16938 | align="center" | foo || |
16943 <td align="center"> foo </td>
16950 Non-empty attributes in th-cells
16953 ! Foo !! style="color: red" | Bar
16959 <th style="color: red"> Bar
16965 Accept empty attributes in th-cells
16980 Empty table rows go away
17001 ### Parsoid-centric tests for testing RTing of inter-element separators
17002 ### Edge cases not tested by existing parser tests and specific to
17003 ### Parsoid-specific serialization strategies.
17007 RT-ed inter-element separators should be valid separators
17020 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
17021 (Parsoid-only since PHP parser relies on Tidy for correct output)
17037 Empty TD followed by TD with tpl-generated attribute
17042 |{{echo|style='color:red'}}|foo
17056 Indented table with an empty td
17075 Empty TR followed by a template-generated TR
17076 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
17078 parsoid=wt2html,wt2wt
17082 {{echo|<tr><td>foo</td></tr>}}
17088 <tr typeof="mw:Transclusion">
17089 <td>foo</td></tr></tbody></table>
17092 ## PHP and parsoid output differ for this, and since this is primarily
17093 ## for testing Parsoid's serializer, marking this Parsoid only
17095 Empty TR followed by mixed-ws-comment line should RT correctly
17109 <td> <!--c--></td></tr>
17111 <td><!--c--> <!--d--></td></tr>
17117 Multi-line image caption generated by templates with/without trailing newlines
17121 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
17122 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
17124 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC</div></div></div>
17125 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC\n\n</div></div></div>
17129 ## PHP emits broken html for this, and since this is primarily
17130 ## a Parsoid serializer test, marking this Parsoid only
17132 Improperly nested inline or quotes tags with whitespace in between
17136 <span> <s>x</span> </s>
17139 <p><span> <s>x</s></span><s> </s>
17140 <b> <i>x</i></b><i> </i>
17145 Encapsulate protected attributes from wt
17149 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
17151 <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>
17155 # -----------------------------------------------------------------
17156 # The following section of tests are primarily to spec requirements
17157 # around serialization of new/edited content.
17159 # All these tests are marked Parsoid html2wt and html2html only
17160 # ----------------------------------------------------------------
17163 Image: Modifying size of an image
17167 [[Image:Wiki.png|230x230px]]
17169 <p data-parsoid='{"dsr":[0,24,0,0]}'><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"100px"}],"cacheKey":"[[Image:Wiki.png|100px]]","img":{"h":115,"w":100,"wdset":true},"dsr":[0,24,null,null]}'><a href="./File:Wiki.png" data-parsoid='{"a":{"href":"./File:Wiki.png"}}'><img resource="./File:Wiki.png" src="//upload.wikimedia.org/wikipedia/en/thumb/b/bc/Wiki.png/100px-Wiki.png" height="230" width="200" data-parsoid='{"a":{"resource":"./File:Wiki.png"},"sa":{"resource":"Image:Wiki.png"}}'></a></span></p>
17173 Image: New block level image should have \n before and after
17178 [[File:Wiki.png|right|thumb|150x150px]]
17181 <p>123</p><figure typeof="mw:Image/Thumb" class="mw-halign-right"><a href="./File:Wiki.png"><img src="http://192.168.142.128/mw/images/thumb/b/bc/Wiki.png/131px-Wiki.png" width="131" height="150" resource="./File:Wiki.png"></a></figure><p>456</p>
17184 # Wacky -- the leading newline in input is required because
17185 # that is what the serializer emits. To be fixed. Not fixing
17186 # the test because this test is required to test serialization of
17187 # new content and preferred whitespace style.
17189 Lists: Add space after bullets
17196 * <span> baz</span>
17201 <li><span> baz</span></li>
17206 Parsoid: Serialize positional parameters with = in them as named parameter
17212 <p about="#mwt1" typeof="mw:Transclusion"
17213 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
17217 # -----------------------------------------------------------------
17218 # End of section for Parsoid-only html2wt tests for serialization
17220 # -----------------------------------------------------------------
17227 Try for 100% code coverage