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
1632 #--------------------------------------------------------------------
1633 # Transclusion parameter whitespace stripping tests
1634 # Behavior is different for positional and named parameters
1635 #--------------------------------------------------------------------
1637 Templates: Strip leading and trailing whitespace from named-param values
1641 {{echo|1= {{echo|b}} }}
1660 Templates: Don't strip whitespace from positional-param values
1665 {{echo|{{echo|b}} }}
1705 #--------------------------------------------------------------------
1706 # Transclusion parameter escaping tests
1707 #--------------------------------------------------------------------
1709 Templates: Parsoid parameter escaping test 1
1713 {{echo|[foo]|{{echo|[bar]}}}}
1715 <p about="#mwt1" typeof="mw:Transclusion"
1716 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1720 Parsoid: Pipes in external links in template parameter
1724 {{echo|[{{echo|http://example.com}} link]}}
1726 <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>
1730 Parsoid: pipe in transclusion parameter
1734 {{echo|http://foo.com/a|b}}
1736 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1737 typeof="mw:Transclusion"
1738 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>
1742 Parsoid: Pipe in external link target and content in template parameter
1744 parsoid=html2wt,wt2wt
1746 {{echo|[http://foo.com/a|b a|b]}}
1748 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1749 typeof="mw:Transclusion"
1750 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1751 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1755 Templates: Dont escape already nowiki-escaped text in template parameters
1757 parsoid=html2wt,wt2wt
1759 {{echo|foo<nowiki>|</nowiki>bar}}
1760 {{echo|<nowiki><div></nowiki>}}
1761 {{echo|<nowiki></nowiki>}}
1763 <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>
1764 <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>
1765 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1770 ### Parsoid-centric tests for testing RT edge cases for pre
1774 1a. Indent-Pre and Comments
1787 1b. Indent-Pre and Comments
1800 1c. Indent-Pre and Comments
1813 1d. Indent-Pre and Comments
1814 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
1827 2a. Indent-Pre and tables
1848 2b. Indent-Pre and tables
1864 2c. Indent-Pre and tables (bug 42252)
1881 3a. Indent-Pre and block tags (single-line html)
1889 <pre><span> foo </span>
1894 3b. Indent-Pre and block tags (pre-content on separate line)
1946 4. Multiple spaces at start-of-line
1965 5. White-space in indent-pre
1966 NOTE: the white-space char on 2nd line is significant
1979 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2002 7a. Indent-pre and category links
2004 parsoid=wt2html,wt2wt
2006 [[Category:foo]] <!-- No pre-wrapping -->
2007 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2009 <span typeof="mw:Transclusion"> </span>
2013 7b. Indent-pre and category links
2015 parsoid=wt2html,wt2wt
2018 [[Category:foo]] {{echo|b}}
2020 <pre> a <span typeof="mw:Transclusion">b</span>
2025 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2029 HTML-pre: 1. embedded newlines
2065 HTML-pre: 2: indented text
2078 HTML-pre: 3: other wikitext
2099 ### Definition lists
2106 <dl><dt> name </dt><dd> Definition
2112 Definition list for indentation only
2116 <dl><dd> Indented text
2122 Definition list with no space
2126 <dl><dt>name</dt><dd>Definition
2132 Definition list with URL link
2134 ; http://example.com/ : definition
2136 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
2142 Definition list with bracketed URL link
2144 ;[http://www.example.com/ Example]:Something about it
2146 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
2152 Definition list with wikilink containing colon
2154 ; [[Help:FAQ]]: The least-read page on Wikipedia
2156 <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
2161 # At Brion's and JeLuF's insistence... :)
2163 Definition list with news link containing colon
2165 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2167 <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!
2173 Malformed definition list with colon
2175 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2177 <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
2183 Definition lists: colon in external link text
2185 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2187 <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
2193 Definition lists: colon in HTML attribute
2195 ;<b style="display: inline">bold</b>
2197 <dl><dt><b style="display: inline">bold</b>
2203 Definition lists: self-closed tag
2205 ;one<br/>two : two-line fun
2207 <dl><dt>one<br />two </dt><dd> two-line fun
2213 Bug 11748: Literal closing tags
2217 <dd>test test test test test</dd>
2219 <dd>test test test test test</dd>
2224 <dd>test test test test test</dd>
2226 <dd>test test test test test</dd>
2232 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2235 ; term : description
2241 <dl><dt> term </dt><dd> description
2252 Definition list with empty definition and following paragraph
2257 <dl><dt> term</dt><dd>
2264 Nested definition lists using html syntax
2281 Definition Lists: No nesting: Multiple dd's
2295 Definition Lists: Indentation: Regular
2311 Definition Lists: Indentation: Missing 1st level
2325 Definition Lists: Indentation: Multi-level indent
2329 <dl><dd><dl><dd><dl><dd>i3
2337 Definition Lists: Hacky use to indent tables
2344 should be left alone
2346 <dl><dd><dl><dd><table>
2351 </td></tr></table></dd></dl></dd></dl>
2353 should be left alone
2359 Definition Lists: Hacky use to indent tables (WS-insensitive)
2367 <dl><dd> <table><tr><td>a</td></tr></table> </dd></dl>
2369 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2370 ## as an empty dt item. It also ignores all but the last ";" when followed
2371 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2372 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2375 ## Ex: ";;t2 ::d2" is transformed into:
2387 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2388 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2399 ## All Parsoid only definition list tests have this difference.
2401 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2402 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2405 Table / list interaction: indented table with lists in table contents
2427 </td></tr></table></dd></dl>
2432 Table / list interaction: lists nested in tables nested in indented lists
2457 </td></tr></table></dd></dl>
2465 Definition Lists: Nesting: Multi-level (Parsoid only)
2495 Definition Lists: Nesting: Test 2 (Parsoid only)
2515 Definition Lists: Nesting: Test 3 (Parsoid only)
2543 Definition Lists: Nesting: Test 4
2548 <dl><dd><dl><dd><dl><dt>t3
2557 ## The Parsoid team believes the following three test exposes a
2558 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2559 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2561 Definition Lists: Mixed Lists: Test 1 (php)
2569 <dl><dd><dl><dt><ul><li> foo
2579 Definition Lists: Mixed Lists: Test 1 (parsoid)
2587 <dl><dd><dl><dt><ul><li> foo
2588 </li></ul></dt><dd><ul><li> bar
2589 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2593 Definition Lists: Mixed Lists: Test 2
2607 Definition Lists: Mixed Lists: Test 3
2612 <ul><li><dl><dd><dl><dd><dl><dd> d1
2623 Definition Lists: Mixed Lists: Test 4
2628 <ul><li><dl><dt>d1 </dt><dd>d2
2629 </dd><dt>d3 </dt><dd>d4
2637 Definition Lists: Mixed Lists: Test 5
2652 Definition Lists: Mixed Lists: Test 6
2657 <ol><li><ul><li><dl><dd>d1
2669 Definition Lists: Mixed Lists: Test 7
2683 Definition Lists: Mixed Lists: Test 8
2699 Definition Lists: Mixed Lists: Test 9
2703 <ul><li><dl><dt>foo </dt><dd>bar
2711 Definition Lists: Mixed Lists: Test 10
2715 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2722 # The Parsoid team disagrees with the PHP parser's seemingly-random
2723 # rules regarding dd/dt on the next two tests. Parsoid is more
2724 # consistent, and recognizes the shared nesting and keeps the
2725 # still-open tags around until the nesting is complete.
2728 Definition Lists: Mixed Lists: Test 11 (php)
2735 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2740 <dl><dt>boo </dt><dd>baz
2749 Definition Lists: Mixed Lists: Test 11 (parsoid)
2771 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2772 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2773 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2774 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2779 Definition Lists: Weird Ones: Test 1 (php)
2783 *#;*::;; foo : bar (who uses this?)
2785 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2797 Definition Lists: Weird Ones: Test 1 (parsoid)
2801 *#;*::;; foo : bar (who uses this?)
2818 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2819 <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>
2826 External links: non-bracketed
2828 Non-bracketed: http://example.com
2830 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2835 External links: numbered
2837 Numbered: [http://example.com]
2838 Numbered: [http://example.net]
2839 Numbered: [http://example.com]
2841 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2842 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2843 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2848 External links: specified text
2850 Specified text: [http://example.com link]
2852 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2857 External links: trail
2859 Linktrails should not work for external links: [http://example.com link]s
2861 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2866 External links: dollar sign in URL
2868 http://example.com/1$2345
2870 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2875 External links: dollar sign in URL (named)
2877 [http://example.com/1$2345]
2879 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2884 External links: open square bracket forbidden in URL (bug 4377)
2886 http://example.com/1[2345
2888 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2893 External links: open square bracket forbidden in URL (named) (bug 4377)
2895 [http://example.com/1[2345]
2897 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2902 External links: nowiki in URL link text (bug 6230)
2904 [http://example.com/ <nowiki>''example site''</nowiki>]
2906 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2911 External links: newline forbidden in text (bug 6230 regression check)
2913 [http://example.com/ first
2916 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2922 External links: Pipe char between url and text
2924 [http://example.com | link]
2926 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2931 External links: protocol-relative URL in brackets
2933 [//example.com/ Test]
2935 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2940 External links: protocol-relative URL in brackets without text
2944 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2949 External links: protocol-relative URL in free text is left alone
2953 <p>//example.com/Foo
2958 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2960 foo//example.com/Foo
2962 <p>foo//example.com/Foo
2969 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2971 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2976 External image from https
2978 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2980 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2985 External image (when not allowed)
2987 wgAllowExternalImages=0
2989 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2991 <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>
2996 Link to non-http image, no img tag
2998 Link to non-http image, no img tag: ftp://example.com/test.jpg
3000 <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>
3005 External links: terminating separator
3007 Terminating separator: http://example.com/thing,
3009 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3014 External links: intervening separator
3016 Intervening separator: http://example.com/1,2,3
3018 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3023 External links: old bug with URL in query
3025 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3027 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3032 External links: old URL-in-URL bug, mixed protocols
3034 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3036 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3041 External links: URL in text
3043 URL in text: [http://example.com http://example.com]
3045 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3050 External links: Clickable images
3052 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3054 <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>
3059 External links: raw ampersand
3061 Old & use: http://x&y
3063 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3068 External links: encoded ampersand
3070 Old & use: http://x&y
3072 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3077 External links: encoded equals (bug 6102)
3079 http://example.com/?foo=bar
3081 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3086 External links: [raw ampersand]
3088 Old & use: [http://x&y]
3090 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3095 External links: [encoded ampersand]
3097 Old & use: [http://x&y]
3099 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3104 External links: [encoded equals] (bug 6102)
3106 [http://example.com/?foo=bar]
3108 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3113 External links: [IDN ignored character reference in hostname; strip it right off]
3115 [http://e‌xample.com/]
3117 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3121 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3122 # Where an external link could easily circumvent the sanitization of the text of
3123 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3124 # test demands a higher standard. That's a bit strange.
3128 # http://example.com -> [http://example.com|http://example.com]
3129 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3131 # The first example is sanitized, but the second is not. Any security benefits
3132 # from this production are trivial to circumvent. Either remove this test and
3133 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3134 # the test accordingly.
3139 External links: IDN ignored character reference in hostname; strip it right off
3141 http://e‌xample.com/
3143 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3148 External links: www.jpeg.org (bug 554)
3152 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3157 External links: URL within URL (original bug 2)
3159 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3161 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3166 BUG 361: URL inside bracketed URL
3168 [http://www.example.com/foo http://www.example.com/bar]
3170 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3175 BUG 361: URL within URL, not bracketed
3177 http://www.example.com/foo?=http://www.example.com/bar
3179 <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>
3184 BUG 289: ">"-token in URL-tail
3186 http://www.example.com/<hello>
3188 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3193 BUG 289: literal ">"-token in URL-tail
3195 http://www.example.com/<b>html</b>
3197 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3202 BUG 289: ">"-token in bracketed URL
3204 [http://www.example.com/<hello> stuff]
3206 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3211 BUG 289: literal ">"-token in bracketed URL
3213 [http://www.example.com/<b>html</b> stuff]
3215 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3220 BUG 289: literal double quote at end of URL
3222 http://www.example.com/"hello"
3224 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3229 BUG 289: literal double quote in bracketed URL
3231 [http://www.example.com/"hello" stuff]
3233 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3238 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3240 [http://www.example.com test]
3242 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3247 External links: link text with spaces
3249 [http://www.example.com a b c]
3250 [http://www.example.com ''a'' ''b'']
3252 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3253 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3258 External links: wiki links within external link (Bug 3695)
3260 [http://example.com [[wikilink]] embedded in ext link]
3262 <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>
3267 BUG 787: Links with one slash after the url protocol are invalid
3271 [http:/example.com title]
3273 <p>http:/example.com
3274 </p><p>[http:/example.com title]
3279 Bracketed external links with template-generated invalid target
3281 [{{echo|http:/example.com}} title]
3283 <p>[http:/example.com title]
3288 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3290 ''[http://example.com text'']
3291 [http://example.com '''text]'''
3292 ''Something [http://example.com in italic'']
3293 ''Something [http://example.com mixed''''', even bold]'''
3294 '''''Now [http://example.com both''''']
3296 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3297 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3298 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3299 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3300 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3306 Bug 4781: %26 in URL
3308 http://www.example.com/?title=AT%26T
3310 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3314 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3315 # % is actually legal in HTML5. Any change in output would need testing though.
3317 Bug 4781, 5267: %25 in URL
3319 http://www.example.com/?title=100%25_Bran
3321 <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>
3326 Bug 4781, 5267: %28, %29 in URL
3328 http://www.example.com/?title=Ben-Hur_%281959_film%29
3330 <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>
3336 Bug 4781: %26 in autonumber URL
3338 [http://www.example.com/?title=AT%26T]
3340 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3345 Bug 4781, 5267: %26 in autonumber URL
3347 [http://www.example.com/?title=100%25_Bran]
3349 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3354 Bug 4781, 5267: %28, %29 in autonumber URL
3356 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3358 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3364 Bug 4781: %26 in bracketed URL
3366 [http://www.example.com/?title=AT%26T link]
3368 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3373 Bug 4781, 5267: %26 in bracketed URL
3375 [http://www.example.com/?title=100%25_Bran link]
3377 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3382 Bug 4781, 5267: %28, %29 in bracketed URL
3384 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3386 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3391 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3393 Some [http://example.com/ pretty ''italics'' and stuff]!
3395 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3400 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3402 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3404 <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>
3409 External link containing double-single-quotes with no space separating the url from text in italics
3411 [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]].]
3413 <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>
3418 External link with comments in link text
3420 [http://www.google.com Google <!-- comment -->]
3422 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3427 URL-encoding in URL functions (single parameter)
3429 {{localurl:Some page|amp=&}}
3431 <p>/index.php?title=Some_page&amp=&
3436 URL-encoding in URL functions (multiple parameters)
3438 {{localurl:Some page|q=?&=&}}
3440 <p>/index.php?title=Some_page&q=?&amp=&
3447 http://example.com/index.php?foozoid%5B%5D=bar
3449 http://example.com/index.php?foozoid[]=bar
3451 <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>
3452 </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>
3457 IPv6 urls (bug 21261)
3461 http://[2404:130:0:1000::187:2]/index.php
3463 <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>
3468 Non-extlinks in brackets
3477 [{{echo|foo}} ''bar'']
3478 [{{echo|foo}}l's] errand
3479 [{{echo|foo}}l's errand]
3481 [url=http://example.com]
3494 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3499 Parsoid: Percent encoding in external links
3503 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3505 <p><a rel="mw:ExtLink"
3506 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3510 Parsoid: use url link syntax for links where the content is equal the link
3517 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3527 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3529 Normal text. '''''Bold italic text.''''' Normal text.
3531 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3532 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3538 Unclosed and unmatched quotes (php)
3542 '''''Bold italic text '''with bold deactivated''' in between.'''''
3544 '''''Bold italic text ''with italic deactivated'' in between.'''''
3548 ..spanning two paragraphs (should not work).'''
3550 '''Bold tag left open
3552 ''Italic tag left open
3556 <!-- Unmatching number of opening, closing tags: -->
3557 '''This year''''s election ''should'' beat '''last year''''s.
3559 ''Tom'''s car is bigger than ''Susan'''s.
3561 Plain ''italic'''s plain
3563 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3564 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3565 </p><p><b>Bold text..</b>
3566 </p><p>..spanning two paragraphs (should not work).
3567 </p><p><b>Bold tag left open</b>
3568 </p><p><i>Italic tag left open</i>
3570 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3571 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3572 </p><p>Plain <i>italic'</i>s plain
3575 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3576 # parser strips. The wikitext contains just the first half of the bold
3577 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3578 # differently than the PHP parser.)
3580 Unclosed and unmatched quotes (parsoid)
3584 '''''Bold italic text '''with bold deactivated''' in between.'''''
3586 '''''Bold italic text ''with italic deactivated'' in between.'''''
3590 ..spanning two paragraphs (should not work).'''
3592 '''Bold tag left open
3594 ''Italic tag left open
3598 <!-- Unmatching number of opening, closing tags: -->
3599 '''This year''''s election ''should'' beat '''last year''''s.
3601 ''Tom'''s car is bigger than ''Susan'''s.
3603 Plain ''italic'''s plain
3605 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3606 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3607 </p><p><b>Bold text..</b>
3608 </p><p>..spanning two paragraphs (should not work).<b></b>
3609 </p><p><b>Bold tag left open</b>
3610 </p><p><i>Italic tag left open</i>
3612 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3613 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3614 </p><p>Plain <i>italic'</i>s plain
3621 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3624 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3625 # is the bare minimum required by the spec, see:
3626 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3628 A table with no data. (php)
3635 # Parsoid team replies: empty table tags are legal in HTML5
3637 A table with no data. (parsoid)
3646 # A table with nothing but a caption is invalid XHTML, we might want to render
3647 # this as <p>caption</p>
3649 A table with nothing but a caption (php)
3659 </caption><tr><td></td></tr></table>
3662 # Parsoid team replies: table with only a caption is legal in HTML5
3664 A table with nothing but a caption (parsoid)
3672 <table><caption> caption</caption></table>
3676 A table with caption with default-spaced attributes and a table row
3679 |+ style="color: red;" | caption1
3685 <caption style="color: red;"> caption1
3694 A table with captions with non-default spaced attributes and a table row
3697 |+style="color: red;"|caption2
3698 |+ style="color: red;"| caption3
3704 <caption style="color: red;">caption2
3706 <caption style="color: red;"> caption3
3715 Table td-cell syntax variations
3719 | foo bar foo || baz
3720 | style='color:red;' | baz
3721 | style='color:red;' || baz
3728 <td> foo bar foo </td>
3731 <td style="color:red;"> baz
3733 <td> style='color:red;' </td>
3761 Simple table but with multiple dashes for row wikitext
3779 Multiplication table
3781 {| border="1" cellpadding="2"
3782 |+Multiplication table
3784 ! × !! 1 !! 2 !! 3
3802 <table border="1" cellpadding="2">
3803 <caption>Multiplication table
3850 Accept "||" in table headings
3865 Accept "||" in indented table headings
3875 </th></tr></table></dd></dl>
3880 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3897 Accept "| !" at start of line in tables (ignore !-attribute)
3901 | !style="color:red" | bar
3913 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 +/-
3917 |style='color:red;'|+1
3918 |style='color:blue;'|-1
3930 <td style="color:red;">+1
3932 <td style="color:blue;">-1
3956 |rowspan=2| Cell 2, row 1 (and 2)
3967 <td rowspan="2"> Cell 2, row 1 (and 2)
3985 {| bgcolor=#ABCDEF border=2
3990 |the original table again
3998 <table bgcolor="#ABCDEF" border="2">
4006 <td>the original table again
4012 Invalid attributes in table cell (bug 1830)
4027 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4030 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4034 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4035 <td>]" onmouseover="alert(document.cookie)">test
4044 Indented table markup mixed with indented pre content (proposed in bug 6200)
4049 Text that should be rendered preformatted
4057 <pre>Text that should be rendered preformatted
4066 Template-generated table cell attributes and cell content
4074 <td style="color: red"> Foo
4080 Template-generated table cell attributes and cell content (2)
4083 |align=center {{table_attribs}}
4088 <td align="center" style="color: red"> Foo
4094 Template-generated table cell attributes and cell content (3)
4097 |align=center {{table_cells}}
4102 <td align="center" style="color: red"> Foo </td>
4110 Table with row followed by newlines and table heading
4128 Table with empty line following the start tag
4145 # FIXME: Preserve the attribute properly (with an empty string as value) in
4146 # the PHP parser. Parsoid implements the behavior below.
4148 Table attributes with empty value
4160 </td></tr></tbody></table>
4165 Wikitext table with a lot of comments
4188 Wikitext table with double-line table cell
4205 Table cell with a single comment
4221 # The expected HTML structure in this test is debatable. The PHP parser does
4222 # not parse this kind of table at all. The main focus for Parsoid is on
4223 # round-tripping, so this output is ok for now. TODO: revisit!
4225 Wikitext table with html-syntax row (Parsoid)
4237 <td>foo</td></tr></tbody></table>
4241 Implicit <td> after a |-
4242 (PHP parser relies on Tidy to add the missing <td> tags)
4244 parsoid=wt2html,wt2wt
4257 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4258 (PHP parser relies on Tidy to add the missing <td> tags)
4260 parsoid=wt2html,wt2wt
4272 <tr><td><pre>a</pre></td></tr>
4273 <tr><td> b</td></tr>
4279 Lists should be recognized in an implicit <td> context
4280 (PHP parser relies on Tidy to add the missing <td> tags)
4282 parsoid=wt2html,wt2wt
4291 <td><ul><li>a</li></ul></td>
4297 Parsoid: Round-trip tables directly followed by content (bug 51219)
4299 parsoid=wt2html,wt2wt
4311 <td>foo</td></tr></tbody></table> bar
4315 <td>baz</td></tr></tbody></table><b>quux</b>
4319 Parsoid: Default to a newline after tables in new content (bug 51219)
4327 <nowiki> </nowiki>bar
4336 <td>foo</td></tr></tbody></table> bar
4339 <td>baz</td></tr></tbody></table><b>quux</b>
4346 Plain link, capitalized
4350 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4355 Plain link, uncapitalized
4359 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4366 [[Main Page|The Main Page]]
4368 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4373 Piped link with comment in link text
4375 [[Main Page|The Main<!--front--> Page]]
4377 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4386 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4391 Broken link with fragment
4393 [[Zigzagzogzagzig#zug]]
4395 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4400 Special page link with fragment
4402 [[Special:Version#anchor]]
4404 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4409 Nonexistent special page link with fragment
4411 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4413 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4420 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4422 <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>
4429 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4431 <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>!!!
4442 Bug 43661: Piped links with identical prefixes
4444 [[prefixed article|prefixed articles with spaces]]
4446 [[prefixed article|prefixed articlesaoeu]]
4448 [[Main Page|Main Page test]]
4450 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4451 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4452 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4458 Link with HTML entity in suffix / tail
4460 [[Main Page]]", [[Main Page]]a
4462 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4467 Link with 3 brackets
4476 Piped link with 3 brackets
4478 [[[main page|the main page]]]
4480 <p>[[[main page|the main page]]]
4485 Link with multiple pipes
4487 [[Main Page|The|Main|Page]]
4489 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4496 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4498 <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>
4503 Piped link to namespace
4505 [[Meta:Disclaimers|The disclaimers]]
4507 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4514 [[Usually caused by a typo (oops}]]
4516 <p>[[Usually caused by a typo (oops}]]
4521 Link containing % (not as a hex sequence)
4525 <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>
4530 Link containing % as a single hex sequence interpreted to char
4534 <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>
4539 Link containing % as a double hex sequence interpreted to hex sequence
4543 <p>[[7%2525 Solution]]
4548 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4549 Example for such a section: == < ==
4551 [[%23%3c]][[%23%3e]]
4553 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4558 Link containing "<#" and ">#" as a hex sequences
4560 [[%3c%23]][[%3e%23]]
4562 <p>[[%3c%23]][[%3e%23]]
4567 Link containing an equals sign
4569 [[Special:BookSources/isbn=4-00-026157-6]]
4571 <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>
4578 Just a test of an article title containing a tilde.
4581 # note that links containing signatures, like [[Foo~~~~]], are
4582 # massaged by the pre-save transform (PST) and so the tildes are never
4583 # seen by the parser.
4585 Link containing a tilde
4589 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4594 Link containing double-single-quotes '' (bug 4598)
4596 [[Lista d''e paise d''o munno]]
4598 <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>
4603 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4605 Some [[Link|pretty ''italics'' and stuff]]!
4607 <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>!
4612 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4614 ''Some [[Link|pretty ''italics'' and stuff]]!
4616 <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>
4621 Link with double quotes in title part (literal) and alternate part (interpreted)
4623 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4627 [[''Pentecoste''|Pentecoste]]
4629 [[''Pentecoste''|''Pentecoste'']]
4631 <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>
4632 </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>
4633 </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>
4634 </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>
4639 Broken image links with HTML captions (bug 39700)
4641 [[File:Nonexistent|<script></script>]]
4642 [[File:Nonexistent|100px|<script></script>]]
4643 [[File:Nonexistent|<]]
4644 [[File:Nonexistent|a<i>b</i>c]]
4646 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4647 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4648 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4649 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4656 [[http://www.example.com]]
4658 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4663 Plain link to URL with link text
4665 [[http://www.example.com Link text]]
4667 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4672 Plain link to protocol-relative URL
4674 [[//www.example.com]]
4676 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4681 Plain link to protocol-relative URL with link text
4683 [[//www.example.com Link text]]
4685 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4690 Plain link to page with question mark in title
4696 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4697 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4702 # I'm fairly sure the expected result here is wrong.
4703 # We want these to be URL links, not pseudo-pages with URLs for titles....
4704 # However the current output is also pretty screwy.
4707 # I'm changing it to match the current output--it arguably makes more
4708 # sense in the light of the test above. Old expected result was:
4709 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4711 # But I think this test is bordering on "garbage in, garbage out" anyway.
4716 Piped link to URL: [[http://www.example.com|an example URL]]
4718 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4723 BUG 2: [[page|http://url/]] should link to page, not http://url/
4725 [[Main Page|http://url/]]
4727 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4732 BUG 337: Escaped self-links should be bold
4736 [[Bug462]] [[Bug462]]
4738 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4743 Self-link to section should not be bold
4747 [[Main Page#section]]
4749 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4760 Self-link to numeric title
4766 <p><strong class="selflink">0</strong>
4771 Link to numeric-equivalent title
4777 <p><a href="/wiki/00" title="00">00</a>
4782 <nowiki> inside a link
4784 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4786 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4791 Non-breaking spaces in title
4793 [[ Main Page ]]
4795 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4800 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4806 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4811 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4817 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4822 Internal link with en linktrail: no apostrophes (bug 27473)
4828 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4833 Internal link with ca linktrail with apostrophes (bug 27473)
4839 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4844 Internal link with kaa linktrail with apostrophes (bug 27473)
4850 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4861 Internal link with is link prefix
4865 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4867 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4878 Internal link with is link trail and link prefix
4882 [[mótmælendatrú|xxx]]ar
4884 mótmælenda[[söfnuður]]
4885 mótmælenda[[söfnuður|söfnuðir]]
4886 mótmælenda[[söfnuður|söfnuðir]]xxx
4888 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4889 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4890 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4891 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4892 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4897 Parsoid link trail escaping
4899 parsoid=html2wt,html2html
4903 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4907 Parsoid link prefix escaping
4910 parsoid=html2wt,html2html
4912 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4914 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4918 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4926 [http://wp.org ''foo'']
4928 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4929 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4930 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4931 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4936 ### Interwiki links (see maintenance/interwiki.sql)
4940 Inline interwiki link
4942 [[MeatBall:SoftSecurity]]
4944 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4949 Inline interwiki link with empty title (bug 2372)
4953 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4958 Interwiki link encoding conversion (bug 1636)
4960 *[[Wikipedia:ro:Olteniţa]]
4961 *[[Wikipedia:ro:Olteniţa]]
4963 <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>
4964 </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>
4970 Interwiki link with fragment (bug 2130)
4972 [[MeatBall:SoftSecurity#foo]]
4974 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4989 Double interlanguage link
5000 Interlanguage link, with prefix links
5012 Double interlanguage link, with prefix links (bug 8897)
5025 Parsoid-specific test: Wikilinks with should RT properly
5031 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5036 Parsoid: handle constructor well
5044 <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>
5047 <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>
5051 ## Redirects, Parsoid-only
5054 Simple redirect to page
5058 #REDIRECT [[Main Page]]
5060 <link rel="mw:PageProp/redirect" href="./Main_Page">
5064 Optional colon in #REDIRECT
5066 # the colon is archaic syntax. we support it for wt2html, but we
5067 # don't care that it roundtrips back to the modern syntax.
5068 parsoid=wt2html,html2html
5070 #REDIRECT:[[Main Page]]
5072 <link rel="mw:PageProp/redirect" href="./Main_Page">
5076 Whitespace in #REDIRECT with optional colon
5078 # the colon and gratuitous whitespace is archaic syntax. we support
5079 # it for wt2html, but we don't care that it roundtrips back to the
5080 # modern syntax (without extra whitespace)
5081 parsoid=wt2html,html2html
5088 <link rel="mw:PageProp/redirect" href="./Main_Page">
5092 Piped link in #REDIRECT
5094 # content after piped link is ignored. we support this syntax,
5095 # but don't care that the piped link is lost when we roundtrip this.
5098 #REDIRECT [[Main Page|bar]]
5100 <link rel="mw:PageProp/redirect" href="./Main_Page">
5104 Redirect to category
5108 #REDIRECT [[Category:Foo]]
5110 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5114 Redirect to category with URL encoding
5118 #REDIRECT [[Category%3AFoo]]
5120 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5124 Redirect to category page
5126 parsoid=wt2html,html2html
5128 #REDIRECT [[:Category:Foo]]
5130 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5134 Redirect to image page (1)
5138 #REDIRECT [[File:Wiki.png]]
5140 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5144 Redirect to image page (2)
5148 #REDIRECT [[Image:Wiki.png]]
5150 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5154 Redirect to language
5158 #REDIRECT [[en:File:Wiki.png]]
5160 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5164 Redirect to interwiki
5168 #REDIRECT [[meatball:File:Wiki.png]]
5170 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5174 Non-English #REDIRECT
5179 #TILVÍSUN [[Main Page]]
5181 <link rel="mw:PageProp/redirect" href="./Main_Page">
5198 Broken br tag sanitization
5208 # TODO: Fix html2html mode (bug 51055)!
5210 Parsoid: Broken br tag recognition
5220 Incorrecly removing closing slashes from correctly formed XHTML
5222 <br style="clear:both;" />
5224 <p><br style="clear:both;" />
5229 Failing to transform badly formed HTML into correct XHTML
5231 <br style="clear: left;">
5232 <br style="clear: right;">
5233 <br style="clear: both;">
5235 <p><br style="clear: left;" />
5236 <br style="clear: right;" />
5237 <br style="clear: both;" />
5242 Handling html with a div self-closing tag
5251 <p><div title />
5255 <p><div title=bar />
5256 <div title=bar/>
5258 <div title="bar/"></div>
5264 Handling html with a br self-closing tag
5273 <p><br title="title" />
5274 <br title="title" />
5283 Horizontal ruler (should it add that extra space?)
5297 Horizontal ruler -- 4+ dashes render hr
5306 Horizontal ruler -- eats additional dashes on the same line
5315 Horizontal ruler -- does not collapse dashes on consecutive lines
5326 Horizontal ruler -- <4 dashes render as plain text
5335 Horizontal ruler -- Supports content following dashes on same line
5344 ### Block-level elements
5367 <ol><li>Numbered list
5384 ***#Number on level 4
5386 **#Number on level 3
5387 **#Number on level 3
5391 #** Level 3, but ordered
5394 <ol><li> with numbers
5396 <ul><li> and bullets
5398 <ol><li> and numbers
5400 </li><li>bullets again
5401 <ul><li>bullet level 2
5402 <ul><li>bullet level 3
5403 <ol><li>Number on level 4
5406 </li><li>bullet level 2
5407 <ol><li>Number on level 3
5408 </li><li>Number on level 3
5411 <ol><li>number level 2
5414 <ul><li><ul><li> Level 3
5418 <ol><li><ul><li><ul><li> Level 3, but ordered
5452 Nested lists 3 (first element empty)
5465 Nested lists 4 (first element empty)
5478 Nested lists 5 (both elements empty)
5491 Nested lists 6 (both elements empty)
5504 Nested lists 7 (skip initial nesting levels)
5508 <ul><li><ul><li><ul><li> foo
5516 Nested lists 8 (multiple nesting transitions)
5524 <ul><li><ul><li> bar
5534 1. Lists with start-of-line-transparent tokens before bullets: Comments
5548 2. Lists with start-of-line-transparent tokens before bullets: Template close
5560 List items are not parsed correctly following a <pre> block (bug 785)
5566 <ul><li> <pre>foo</pre>
5567 </li><li> <pre>bar</pre>
5574 List items from template
5585 * notSOL{{inner list}}
5604 List interrupted by empty line or heading
5614 <ul><li><ul><li> bar
5617 <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>
5618 <ul><li> Another list item
5624 Multiple list tags generated by templates
5639 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
5642 <!--This line will NOT split the list-->
5644 <!--This line will NOT split the list either-->
5646 <!--foo--> <!----> <!--This line NOT split the list either-->
5658 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
5661 <!--This line will NOT split the list-->
5663 <!--This line will NOT split the list either-->
5665 <!--foo--> <!----> <!--This line NOT split the list
5679 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5681 parsoid=wt2html,wt2wt
5685 * {{echo|<li>templated li-hack}}
5686 * <!--foo--> <li> unsupported li-hack with preceding comments
5689 <li><li>not a li-hack
5695 <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>
5696 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5699 <li></li><li>not a li-hack
5705 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5716 <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>
5720 Parsoid: Test of whitespace serialization with Templated bullets
5727 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}'> Bar</li>
5731 # ------------------------------------------------------------------------
5732 # The next set of tests are about Parsoid's ability to handle badly nested
5733 # tags (parse, minimize scope of fixup, and roundtrip back)
5734 # ------------------------------------------------------------------------
5737 Unbalanced closing block tags break a list
5738 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5748 </li></ul></div><div>
5754 Unbalanced closing non-block tags don't break a list
5755 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5765 <ul><li>a<span></span>
5771 Unclosed formatting tags that straddle lists are closed and reopened
5772 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5780 </li><li> <s> b </s>
5785 List embedded in a non-block tag
5786 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5794 <p><small></small></p>
5800 <p><small></small></p>
5807 # Note that the current date is hard-coded as
5808 # 1970-01-01T00:02:03Z (a Thursday)
5809 # when running parser tests. The timezone is also fixed to GMT, so
5810 # local date will be identical to current date.
5813 Magic Word: {{CURRENTDAY}}
5822 Magic Word: {{CURRENTDAY2}}
5831 Magic Word: {{CURRENTDAYNAME}}
5840 Magic Word: {{CURRENTDOW}}
5849 Magic Word: {{CURRENTMONTH}}
5858 Magic Word: {{CURRENTMONTH1}}
5867 Magic Word: {{CURRENTMONTHABBREV}}
5869 {{CURRENTMONTHABBREV}}
5876 Magic Word: {{CURRENTMONTHNAME}}
5878 {{CURRENTMONTHNAME}}
5885 Magic Word: {{CURRENTMONTHNAMEGEN}}
5887 {{CURRENTMONTHNAMEGEN}}
5894 Magic Word: {{CURRENTTIME}}
5903 Magic Word: {{CURRENTHOUR}}
5912 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5921 Magic Word: {{CURRENTYEAR}}
5930 Magic Word: {{CURRENTTIMESTAMP}}
5932 {{CURRENTTIMESTAMP}}
5939 Magic Words LOCAL (UTC)
5943 * {{LOCALMONTHNAME}}
5944 * {{LOCALMONTHNAMEGEN}}
5945 * {{LOCALMONTHABBREV}}
5954 * {{LOCALTIMESTAMP}}
5969 </li><li> 19700101000203
5975 Magic Word: {{FULLPAGENAME}}
5977 title=[[User:Ævar Arnfjörð Bjarmason]]
5981 <p>User:Ævar Arnfjörð Bjarmason
5986 Magic Word: {{FULLPAGENAMEE}}
5988 title=[[User:Ævar Arnfjörð Bjarmason]]
5992 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5997 Magic Word: {{TALKSPACE}}
5999 title=[[User:Ævar Arnfjörð Bjarmason]]
6008 Magic Word: {{TALKSPACE}}, same namespace
6010 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6019 Magic Word: {{TALKSPACE}}, main namespace
6021 title=[[Parser Test]]
6030 Magic Word: {{TALKSPACEE}}
6032 title=[[User:Ævar Arnfjörð Bjarmason]]
6041 Magic Word: {{SUBJECTSPACE}}
6043 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6052 Magic Word: {{SUBJECTSPACE}}, same namespace
6054 title=[[User:Ævar Arnfjörð Bjarmason]]
6063 Magic Word: {{SUBJECTSPACE}}, main namespace
6065 title=[[Parser Test]]
6073 Magic Word: {{SUBJECTSPACEE}}
6075 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6084 Magic Word: {{NAMESPACE}}
6086 title=[[User:Ævar Arnfjörð Bjarmason]]
6095 Magic Word: {{NAMESPACEE}}
6097 title=[[User:Ævar Arnfjörð Bjarmason]]
6106 Magic Word: {{NAMESPACENUMBER}}
6108 title=[[User:Ævar Arnfjörð Bjarmason]]
6117 Magic Word: {{SUBPAGENAME}}
6119 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6128 Magic Word: {{SUBPAGENAMEE}}
6130 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6139 Magic Word: {{ROOTPAGENAME}}
6141 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6145 <p>Ævar Arnfjörð Bjarmason
6150 Magic Word: {{ROOTPAGENAMEE}}
6152 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6156 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6161 Magic Word: {{BASEPAGENAME}}
6163 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6167 <p>Ævar Arnfjörð Bjarmason
6172 Magic Word: {{BASEPAGENAMEE}}
6174 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6178 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6183 Magic Word: {{TALKPAGENAME}}
6185 title=[[User:Ævar Arnfjörð Bjarmason]]
6189 <p>User talk:Ævar Arnfjörð Bjarmason
6194 Magic Word: {{TALKPAGENAMEE}}
6196 title=[[User:Ævar Arnfjörð Bjarmason]]
6200 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6205 Magic Word: {{SUBJECTPAGENAME}}
6207 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6211 <p>User:Ævar Arnfjörð Bjarmason
6216 Magic Word: {{SUBJECTPAGENAMEE}}
6218 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6220 {{SUBJECTPAGENAMEE}}
6222 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6227 Magic Word: {{NUMBEROFFILES}}
6236 Magic Word: {{PAGENAME}}
6238 title=[[User:Ævar Arnfjörð Bjarmason]]
6242 <p>Ævar Arnfjörð Bjarmason
6247 Magic Word: {{PAGENAME}} with metacharacters
6249 title=[['foo & bar = baz']]
6253 <p><i>'foo & bar = baz'</i>
6258 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6260 title=[[*RFC 1234 http://example.com/]]
6264 <p>*RFC 1234 http://example.com/
6269 Magic Word: {{PAGENAMEE}}
6271 title=[[User:Ævar Arnfjörð Bjarmason]]
6275 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6280 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6282 title=[[*RFC 1234 http://example.com/]]
6286 <p>*RFC_1234_http://example.com/
6291 Magic Word: {{REVISIONID}}
6300 Magic Word: {{SCRIPTPATH}}
6309 Magic Word: {{STYLEPATH}}
6318 Magic Word: {{SERVER}}
6322 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6327 Magic Word: {{SERVERNAME}}
6336 Magic Word: {{SITENAME}}
6345 Case-sensitive magic words, when cased differently, should just be template transclusions
6352 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6353 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6354 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6355 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6360 Case-insensitive magic words should still work with weird casing.
6370 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6375 Namespace 1 {{ns:1}}
6384 Namespace 1 {{ns:01}}
6393 Namespace 0 {{ns:0}} (bug 4783)
6401 Namespace 0 {{ns:00}} (bug 4783)
6409 Namespace -1 {{ns:-1}}
6418 Namespace User {{ns:User}}
6427 Namespace User talk {{ns:User_talk}}
6436 Namespace User talk {{ns:uSeR tAlK}}
6445 Namespace File {{ns:File}}
6454 Namespace File {{ns:Image}}
6463 Namespace (lang=de) Benutzer {{ns:User}}
6474 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
6480 <p>Benutzer Diskussion
6488 {{urlencode:hi world?!}}
6489 {{urlencode:hi world?!|WIKI}}
6490 {{urlencode:hi world?!|PATH}}
6491 {{urlencode:hi world?!|QUERY}}
6504 Magic links: internal link to RFC (bug 479)
6508 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
6513 Magic links: RFC (bug 479)
6517 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
6522 Magic links: ISBN (bug 1937)
6526 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
6531 Magic links: PMID incorrectly converts space to underscore
6535 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
6544 Nonexistent template
6546 {{thistemplatedoesnotexist}}
6548 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
6553 Template with invalid target containing tags
6555 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6557 <p>{{a<b>b</b>|foo|a=b|a = b}}
6562 Template with invalid target containing unclosed tag
6564 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6566 <p>{{a<b>|foo|a=b|a = b}}</b>
6573 This is a test template
6581 <p>This is a test template
6586 Template with explicit namespace
6590 <p>This is a test template
6598 This is a test template with parameter {{{param}}}
6604 {{paramtest|param=foo}}
6606 <p>This is a test template with parameter foo
6611 Template:paramtestnum
6617 Template unnamed parameter
6619 {{paramtestnum|Main Page|the main page}}
6621 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
6626 Template:templatesimple
6632 Template:templateredirect
6634 #redirect [[Template:templatesimple]]
6638 Template:templateasargtestnum
6644 Template:templateasargtest
6646 {{template{{{templ}}}}}
6650 Template:templateasargtest2
6656 Template with template name as unnamed argument
6658 {{templateasargtestnum|templatesimple}}
6665 Template with template name as argument
6667 {{templateasargtest|templ=simple}}
6674 Template with template name as argument (2)
6676 {{templateasargtest2|templ=templatesimple}}
6683 Template:templateasargtestdefault
6685 {{{{{templ|templatesimple}}}}}
6695 Template with default value
6697 {{templateasargtestdefault}}
6704 Template with default value (value set)
6706 {{templateasargtestdefault|templ=templa}}
6715 {{templateredirect}}
6722 Template with argument in separate line
6724 {{ templateasargtest |
6732 Template with complex template as argument
6735 param ={{ templateasargtest |
6738 <p>This is a test template with parameter (test)
6743 Template with thumb image (with link in description)
6746 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6748 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>
6753 Template:complextemplate
6755 {{{1}}} {{paramtest|
6756 param ={{{param}}}}}
6760 Template with complex arguments
6763 param ={{ templateasargtest |
6764 templ = simple }}|[[Template:complextemplate|link]]}}
6766 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6771 BUG 553: link with two variables in a piped link
6774 |[[{{{1}}}|{{{2}}}]]
6779 <td>[[{{{1}}}|{{{2}}}]]
6785 Magic variable as template parameter
6787 {{paramtest|param={{SITENAME}}}}
6789 <p>This is a test template with parameter MediaWiki
6796 [[{{{param}}}|link]]
6800 Template parameter as link source
6802 {{linktest|param=Main Page}}
6804 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6809 Template-generated attribute string (k='v')
6811 <span {{attr_str|id|v1}}>bar</span>
6813 <p><span id="v1">bar</span>
6820 including another template, {{paramtest|param={{{arg}}}}}
6824 Template passing argument to another template
6826 {{paramtest2|arg='hmm'}}
6828 <p>including another template, This is a test template with parameter 'hmm'
6839 Template as link source
6843 [[{{linktest2}}|Main Page]]
6845 [[{{linktest2}}]]Page
6847 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6848 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6849 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6867 Template infinite loop
6871 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6876 Template from main namespace
6895 BUG 529: Template with table, not included at beginning of line
6914 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6934 BUG 41: Template parameters shown as broken links
6943 Template with targets containing wikilinks
6947 {{[[{{echo|foo}}]]}}
6949 {{{{echo|[[foo}}]]}}
6951 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6952 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6960 ''None'' of '''this''' should be
6962 but rather passed unmodified
6966 # hmm, fix this or just deprecate msgnw and document its behavior?
6972 {{msgnw:MSGNW test}}
6974 <p>''None'' of '''this''' should be
6976 but rather passed unmodified
6984 {{int:youhavenewmessages|lots of money|not!}}
6986 <p>You have lots of money (not!).
6993 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6997 <includeonly> and <noinclude> being included
7008 <onlyinclude>Foo</onlyinclude>bar
7012 <onlyinclude> being included
7024 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
7028 <onlyinclude> and <includeonly> being included
7037 <includeonly> and <noinclude> on a page
7039 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7046 Un-closed <noinclude>
7053 <onlyinclude> on a page
7055 <onlyinclude>Foo</onlyinclude>bar
7062 Un-closed <onlyinclude>
7069 Self-closed noinclude, includeonly, onlyinclude tags
7080 Unbalanced includeonly and noinclude tags
7084 |b</noinclude></noinclude>
7085 |c</noinclude></includeonly>
7086 |d</includeonly></includeonly>
7095 <td>c</includeonly>
7097 <td>d</includeonly></includeonly>
7103 Template:Includeonly section
7106 ==Includeonly section==
7112 Bug 6563: Edit link generation for section shown by <includeonly>
7114 {{includeonly section}}
7116 <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>
7117 <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>
7121 # Uses same input as the contents of [[Template:Includeonly section]]
7123 Bug 6563: Section extraction for section shown by <includeonly>
7128 ==Includeonly section==
7136 Bug 6563: Edit link generation for section suppressed by <includeonly>
7139 ==Includeonly section==
7143 <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>
7148 Bug 6563: Section extraction for section suppressed by <includeonly>
7153 ==Includeonly section==
7161 Un-closed <includeonly>
7167 # TODO: test with DOM fragment reuse!
7169 Parsoid: DOM fragment reuse
7171 parsoid=wt2wt,wt2html
7173 a{{echo|b<table></table>c}}d
7185 a<span typeof="mw:Transclusion">b</span>
7186 <table></table><span>c</span>d
7187 <p typeof="mw:Transclusion">ab</p>
7190 <p typeof="mw:Transclusion">a</p>
7196 ### <includeonly> and <noinclude> in attributes
7199 0. includeonly around the entire attribute
7201 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
7203 <p><span id="v2">bar</span>
7208 1. includeonly in html attr key
7210 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
7212 <p><span id="foo">bar</span>
7217 2. includeonly in html attr value
7219 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7220 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7222 <p><span id="v1">bar</span>
7223 <span id="v1">bar</span>
7228 3. includeonly in part of an attr value
7230 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7232 <p><span style="color:red;">bar</span>
7237 ### Testing parsing of templates where a template arg
7238 ### has the same name as the template itself.
7248 Templates: Template Name/Arg clash: 1. Use of positional param
7257 Templates: Template Name/Arg clash: 2. Use of named param
7266 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7275 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7279 Templates: 1. Simple use
7288 Templates: 2. Inside a block tag
7290 <div>{{echo|Foo}}</div>
7297 Templates: P-wrapping: 1a. Templates on consecutive lines
7308 Templates: P-wrapping: 1b. Templates on consecutive lines
7322 Templates: P-wrapping: 1c. Templates on consecutive lines
7325 {{echo|bar}} <div>baz</div>
7334 Templates: P-wrapping: 1d. Template preceded by comment-only line
7336 parsoid=wt2html,wt2wt
7342 <p typeof="mw:Transclusion">Bar
7347 Templates: Inline Text: 1. Multiple tmeplate uses
7349 {{echo|Foo}}bar{{echo|baz}}
7356 Templates: Inline Text: 2. Back-to-back template uses
7358 {{echo|Foo}}{{echo|bar}}
7365 Templates: Block Tags: 1. Multiple template uses
7367 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
7369 <div>Foo</div><div>bar</div><div>baz</div>
7374 Templates: Block Tags: 2. Back-to-back template uses
7376 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
7378 <div>Foo</div><div>bar</div>
7383 Templates: Links: 1. Simple example
7385 {{echo|[[Foo|bar]]}}
7387 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7392 Templates: Links: 2. Generation of link href
7394 [[{{echo|Foo}}|bar]]
7396 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7401 Templates: Links: 3. Generation of part of a link href
7403 [[Fo{{echo|o}}|bar]]
7407 [[Foo{{echo|bar}}baz]]
7409 [[Foo{{echo|bar}}|bar]]
7411 [[:Foo{{echo|bar}}]]
7413 [[:Foo{{echo|bar}}|bar]]
7415 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7416 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7417 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
7418 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7419 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7420 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7425 Templates: Links: 4. Multiple templates generating link href
7427 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
7429 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7434 Templates: Links: 5. Generation of link text
7436 [[Foo|{{echo|bar}}]]
7438 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7443 Templates: Links: 5. Nested templates (only outermost template should be marked)
7445 {{echo|[[{{echo|Foo}}|bar]]}}
7447 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7452 Templates: HTML Tag: 1. Generation of HTML attr. key
7454 <div {{echo|style}}="color:red;">foo</div>
7456 <div style="color:red;">foo</div>
7461 Templates: HTML Tag: 2. Generation of HTML attr. value
7463 <div style={{echo|'color:red;'}}>foo</div>
7465 <div style="color:red;">foo</div>
7470 Templates: HTML Tag: 3. Generation of HTML attr key and value
7472 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
7474 <div style="color:red;">foo</div>
7479 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
7481 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
7483 <div title="This is a long title with just one piece templated">foo</div>
7488 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
7490 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
7492 <div title="This is a long title with just one piece templated">foo</div>
7497 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
7499 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
7501 <div title="This is a long title with just one piece templated">foo</div>
7506 Templates: HTML Tag: 7. Generation of partial attribute key string
7508 <div st{{echo|yle}}="color:red;">foo</div>
7510 <div style="color:red;">foo</div>
7515 Templates: HTML Tables: 1. Generating start of a HTML table
7517 {{echo|<table><tr><td>foo</td>}}</tr></table>
7519 <table><tr><td>foo</td></tr></table>
7524 Templates: HTML Tables: 2a. Generating middle of a HTML table
7526 <table><tr>{{echo|<td>foo</td>}}</tr></table>
7528 <table><tr><td>foo</td></tr></table>
7533 Templates: HTML Tables: 2b. Generating middle of a HTML table
7535 <table>{{echo|<tr><td>foo</td></tr>}}</table>
7537 <table><tr><td>foo</td></tr></table>
7542 Templates: HTML Tables: 3. Generating end of a HTML table
7544 <table><tr>{{echo|<td>foo</td></tr></table>}}
7546 <table><tr><td>foo</td></tr></table>
7551 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
7553 {{echo|<table>}}<tr><td>foo</td></tr></table>
7555 <table><tr><td>foo</td></tr></table>
7560 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
7562 <table>{{echo|<tr>}}<td>foo</td></tr></table>
7564 <table><tr><td>foo</td></tr></table>
7569 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
7571 <table><tr>{{echo|<td>}}foo</td></tr></table>
7573 <table><tr><td>foo</td></tr></table>
7578 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
7580 <table><tr><td>foo{{echo|</td>}}</tr></table>
7582 <table><tr><td>foo</td></tr></table>
7587 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
7589 <table><tr><td>foo</td>{{echo|</tr>}}</table>
7591 <table><tr><td>foo</td></tr></table>
7596 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
7598 <table><tr><td>foo</td></tr>{{echo|</table>}}
7600 <table><tr><td>foo</td></tr></table>
7605 Templates: HTML Tables: 5. Proper fostering of categories from inside
7607 parsoid=wt2html,wt2wt
7609 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
7610 <!--Two categories (Bug 50330)-->
7611 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
7613 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
7614 <!--Two categories (Bug 50330)-->
7615 <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>
7619 Templates: Wiki Tables: 1a. Fostering of entire template content
7627 <tr><td></td></tr></table>
7632 Templates: Wiki Tables: 1b. Fostering of entire template content
7645 <tr><td></td></tr></table>
7650 Templates: Wiki Tables: 2. Fostering of partial template content
7660 <tr><td></td></tr></table>
7665 Templates: Wiki Tables: 3. td-content via multiple templates
7668 {{echo|{{pipe}}a}}{{echo|b}}
7679 Templates: Wiki Tables: 4. Templated tags, no content
7685 <tr><td></td></tr></table>
7690 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7704 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7718 Templates: Lists: Multi-line list-items via templates
7720 *{{echo|a {{nonexistent|
7722 *{{echo|b {{nonexistent|
7725 <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>
7726 </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>
7732 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7734 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7736 <p><i>ab</i>c<i>d</i>e
7741 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7742 (PHP parser generates misnested html)
7744 parsoid=wt2html,wt2wt
7746 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7748 <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>
7752 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7753 (PHP parser generates misnested html)
7755 parsoid=wt2html,wt2wt
7757 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7759 <div typeof="mw:Transclusion"><i>a</i></div>
7760 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7761 <div typeof="mw:Transclusion">e</div>
7765 Templates: Ugly nesting: 4. Divs opened/closed across templates
7767 a<div>b{{echo|c</div>d}}e
7774 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7780 |{{echo|foo</table>}}
7784 <table typeof="mw:Transclusion">
7787 <td>foo</td></tr></tbody></table><span>bar</span>
7791 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7801 <td>1. {{echo|foo </table>}}</td>
7803 <td>2. {{echo|baz </table>}}</td>
7816 <table about="#mwt1" typeof="mw:Transclusion">
7821 <td >1. foo </td></tr></tbody></table></td>
7823 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7824 </span><span about="#mwt1">
7826 abc</span><span about="#mwt1">
7827 </span><span about="#mwt1">
7828 </span><span about="#mwt1">
7829 </span><span about="#mwt1">
7830 </span><span about="#mwt1">
7832 xyz</span><span about="#mwt1">
7833 </span><span about="#mwt1">
7838 Templates: Ugly templates: 3. newline-only template parameter
7847 # This looks like a bug: a single newline triggers p/br for some reason.
7849 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7860 Parser Functions: 1. Simple example
7869 Parser Functions: 2. Nested use (only outermost should be marked up)
7878 ### Pre-save transform tests
7881 pre-save transform: subst:
7887 This is a test template
7891 pre-save transform: normal template
7901 pre-save transform: nonexistent template
7905 {{thistemplatedoesnotexist}}
7907 {{thistemplatedoesnotexist}}
7912 pre-save transform: subst magic variables
7921 # This is bug 89, which I fixed. -- wtm
7923 pre-save transform: subst: templates with parameters
7927 {{subst:paramtest|param="something else"}}
7929 This is a test template with parameter "something else"
7935 <nowiki>'''not wiki'''</nowiki>
7939 pre-save transform: nowiki in subst (bug 1188)
7943 {{subst:nowikitest}}
7945 <nowiki>'''not wiki'''</nowiki>
7950 Template:commenttest
7952 This template has <!-- a comment --> in it.
7956 pre-save transform: comment in subst (bug 1936)
7960 {{subst:commenttest}}
7962 This template has <!-- a comment --> in it.
7966 pre-save transform: unclosed tag
7970 <nowiki>'''not wiki'''
7972 <nowiki>'''not wiki'''
7976 pre-save transform: mixed tag case
7980 <NOwiki>'''not wiki'''</noWIKI>
7982 <NOwiki>'''not wiki'''</noWIKI>
7986 pre-save transform: unclosed comment in <nowiki>
7990 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7992 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7995 # Leading @ in this template definition works around a limitation
7996 # in parsoid's parserTests which otherwise strips the <span> from the
7997 # result (confusing it for a template wrapper)
8001 @<span onmouseover="alert('crap')">Oh no</span>
8005 (confirming safety of fix for subst bug 1936)
8007 {{Template:dangerous}}
8009 <p>@<span>Oh no</span>
8014 pre-save transform: comment containing gallery (bug 5024)
8018 <!-- <gallery>data</gallery> -->
8020 <!-- <gallery>data</gallery> -->
8024 pre-save transform: comment containing extension
8028 <!-- <tag>data</tag> -->
8030 <!-- <tag>data</tag> -->
8034 pre-save transform: comment containing nowiki
8038 <!-- <nowiki>data</nowiki> -->
8040 <!-- <nowiki>data</nowiki> -->
8044 pre-save transform: <noinclude> in subst (bug 3298)
8054 pre-save transform: <onlyinclude> in subst (bug 3298)
8066 {{<includeonly>subst:</includeonly>Includes}}
8070 Template:SafeSubstTest
8072 {{<includeonly>safesubst:</includeonly>Includes}}
8076 bug 22297: safesubst: works during PST
8080 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
8086 bug 22297: safesubst: works during normal parse
8095 subst: does not work during normal parse
8099 <p>{{subst:Includes}}
8104 pre-save transform: context links ("pipe trick")
8108 [[Article (context)|]]
8111 [[Bar:Article (context)|]]
8112 [[:Bar:Article (context)|]]
8114 [[|Article (context)]]
8118 [[Article (context)|Article]]
8119 [[Bar:Article|Article]]
8120 [[:Bar:Article|Article]]
8121 [[Bar:Article (context)|Article]]
8122 [[:Bar:Article (context)|Article]]
8124 [[Article (context)]]
8125 [[Bar:X (Y) Z|X (Y) Z]]
8126 [[:Bar:X (Y) Z|X (Y) Z]]
8130 pre-save transform: context links ("pipe trick") with interwiki prefix
8134 [[interwiki:Article|]]
8135 [[:interwiki:Article|]]
8136 [[interwiki:Bar:Article|]]
8137 [[:interwiki:Bar:Article|]]
8139 [[interwiki:Article|Article]]
8140 [[:interwiki:Article|Article]]
8141 [[interwiki:Bar:Article|Bar:Article]]
8142 [[:interwiki:Bar:Article|Bar:Article]]
8146 pre-save transform: context links ("pipe trick") with parens in title
8148 pst title=[[Somearticle (context)]]
8152 [[Article (context)|Article]]
8156 pre-save transform: context links ("pipe trick") with comma in title
8158 pst title=[[Someplace, Somewhere]]
8161 [[Otherplace, Elsewhere|]]
8162 [[Otherplace, Elsewhere, Anywhere|]]
8164 [[Otherplace, Somewhere|Otherplace]]
8165 [[Otherplace, Elsewhere|Otherplace]]
8166 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
8170 pre-save transform: context links ("pipe trick") with parens and comma
8172 pst title=[[Someplace (IGNORED), Somewhere]]
8175 [[Otherplace (place), Elsewhere|]]
8177 [[Otherplace, Somewhere|Otherplace]]
8178 [[Otherplace (place), Elsewhere|Otherplace]]
8182 pre-save transform: context links ("pipe trick") with comma and parens
8184 pst title=[[Who, me? (context)]]
8187 [[Me, Myself, and I (1937 song)|]]
8189 [[Yes, you. (context)|Yes, you.]]
8190 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
8194 pre-save transform: context links ("pipe trick") with namespace
8196 pst title=[[Ns:Somearticle]]
8200 [[Ns:Article|Article]]
8204 pre-save transform: context links ("pipe trick") with namespace and parens
8206 pst title=[[Ns:Somearticle (context)]]
8210 [[Ns:Article (context)|Article]]
8214 pre-save transform: context links ("pipe trick") with namespace and comma
8216 pst title=[[Ns:Somearticle, Context, Whatever]]
8220 [[Ns:Article, Context, Whatever|Article]]
8224 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8226 pst title=[[Ns:Somearticle, Context (context)]]
8230 [[Ns:Article (context)|Article]]
8234 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8236 pst title=[[Ns:Somearticle (IGNORED), Context]]
8240 [[Ns:Article, Context|Article]]
8244 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8248 [[Article(context)|]]
8249 [[Bar:Article(context)|]]
8250 [[:Bar:Article(context)|]]
8251 [[|Article(context)]]
8255 [[Article(context)|Article]]
8256 [[Bar:Article(context)|Article]]
8257 [[:Bar:Article(context)|Article]]
8258 [[Article(context)]]
8260 [[:Bar:X(Y)Z|X(Y)Z]]
8264 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8268 [[Article (context)|]]
8269 [[Bar:Article (context)|]]
8270 [[:Bar:Article (context)|]]
8271 [[|Article (context)]]
8275 [[Article (context)|Article]]
8276 [[Bar:Article (context)|Article]]
8277 [[:Bar:Article (context)|Article]]
8278 [[Article (context)]]
8279 [[Bar:X (Y) Z|X (Y) Z]]
8280 [[:Bar:X (Y) Z|X (Y) Z]]
8284 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8288 [[Article(context)|]]
8289 [[Bar:Article(context)|]]
8290 [[:Bar:Article(context)|]]
8291 [[|Article(context)]]
8295 [[Article(context)|Article]]
8296 [[Bar:Article(context)|Article]]
8297 [[:Bar:Article(context)|Article]]
8298 [[Article(context)]]
8300 [[:Bar:X(Y)Z|X(Y)Z]]
8304 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8308 [[Article (context), context|]]
8309 [[Article (context),context|]]
8310 [[Bar:Article (context), context|]]
8311 [[Bar:Article (context),context|]]
8312 [[:Bar:Article (context), context|]]
8313 [[:Bar:Article (context),context|]]
8315 [[Article (context), context|Article]]
8316 [[Article (context),context|Article]]
8317 [[Bar:Article (context), context|Article]]
8318 [[Bar:Article (context),context|Article]]
8319 [[:Bar:Article (context), context|Article]]
8320 [[:Bar:Article (context),context|Article]]
8324 pre-save transform: trim trailing empty lines
8328 Empty lines are trimmed
8334 Empty lines are trimmed
8338 pre-save transform: Signature expansion
8343 * <noinclude>~~~</noinclude>
8344 * <includeonly>~~~</includeonly>
8345 * <onlyinclude>~~~</onlyinclude>
8347 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
8348 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
8349 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
8350 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
8355 pre-save transform: Signature expansion in nowiki tags (bug 93)
8361 <nowiki>~~~~</nowiki>
8363 <includeonly><nowiki>~~~~</nowiki></includeonly>
8365 <noinclude><nowiki>~~~~</nowiki></noinclude>
8367 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8369 {{subst:Foo}} shall be converted to FOO
8371 As well as inside noinclude/onlyinclude
8372 <noinclude>{{subst:Foo}}</noinclude>
8373 <onlyinclude>{{subst:Foo}}</onlyinclude>
8375 But not inside includeonly
8376 <includeonly>{{subst:Foo}}</includeonly>
8380 <nowiki>~~~~</nowiki>
8382 <includeonly><nowiki>~~~~</nowiki></includeonly>
8384 <noinclude><nowiki>~~~~</nowiki></noinclude>
8386 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8388 FOO shall be converted to FOO
8390 As well as inside noinclude/onlyinclude
8391 <noinclude>FOO</noinclude>
8392 <onlyinclude>FOO</onlyinclude>
8394 But not inside includeonly
8395 <includeonly>{{subst:Foo}}</includeonly>
8399 Parsoid: Recognize nowiki with trailing space in tags
8403 <nowiki ><div>[[foo]]</nowiki >
8411 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8418 Parsoid: Recognize nowiki with odd capitalization
8422 <noWikI ><div>[[foo]]</Nowiki >
8424 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8429 Parsoid: Escape nowiki with trailing space in tags
8433 <nowiki > foo </nowiki >
8439 <p><nowiki > foo </nowiki ></p>
8440 <p>a<nowiki />b</p>
8441 <p>c<nowiki/ >d</p>
8445 Parsoid: Escape weird noWikI capitalizations
8449 <noWikI > foo </NoWikI >
8451 <p><noWikI > foo </NoWikI ></p>
8455 ### Message transform tests
8458 message transform: magic variables
8468 message transform: should not transform wiki markup
8478 message transform: <noinclude> in transcluded template (bug 4926)
8488 message transform: <onlyinclude> in transcluded template (bug 4926)
8498 {{#special:}} page name, known
8502 {{#special:Recentchanges}}
8504 Special:RecentChanges
8508 {{#special:}} page name with subpage, known
8512 {{#special:Recentchanges/param}}
8514 Special:RecentChanges/param
8518 {{#special:}} page name, unknown
8522 {{#special:foobar nonexistent}}
8524 Special:Foobar nonexistent
8528 {{#speciale:}} page name, known
8532 {{#speciale:Recentchanges}}
8534 Special:RecentChanges
8538 {{#speciale:}} page name with subpage, known
8542 {{#speciale:Recentchanges/param}}
8544 Special:RecentChanges/param
8548 {{#speciale:}} page name, unknown
8552 {{#speciale:foobar nonexistent}}
8554 Special:Foobar_nonexistent
8560 ### For Parsoid-specific tests, see
8561 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8568 [[Image:foobar.jpg]]
8570 <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>
8575 Simple image (parsoid)
8579 [[Image:foobar.jpg]]
8581 <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>
8586 Simple image (using File: namespace, now canonical) (php)
8592 <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>
8597 Simple image (using File: namespace, now canonical) (parsoid)
8603 <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>
8608 Right-aligned image (php)
8612 [[Image:foobar.jpg|right]]
8614 <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>
8619 Right-aligned image (parsoid)
8623 [[File:Foobar.jpg|right]]
8625 <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>
8629 Image with caption (php)
8633 [[File:Foobar.jpg|right|Caption text]]
8635 <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>
8640 Image with caption (parsoid)
8644 [[File:Foobar.jpg|right|Caption text]]
8646 <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>
8650 Image with empty attribute (php)
8654 [[File:Foobar.jpg|right||Caption text]]
8656 <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>
8661 Image with empty attribute (parsoid)
8665 [[File:Foobar.jpg|right||Caption text]]
8667 <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>
8671 Image with attributes from template (php)
8675 [[File:Foobar.jpg|{{image_attribs}}]]
8677 <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>
8682 Image with attributes from template (parsoid)
8686 [[File:Foobar.jpg|{{image_attribs}}]]
8688 <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>
8692 Image with link tails (php)
8696 123[[File:Foobar.jpg]]456
8697 123[[File:Foobar.jpg|right]]456
8698 123[[File:Foobar.jpg|thumb]]456
8700 <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
8702 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
8703 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
8708 Image with link tails (parsoid)
8712 123[[File:Foobar.jpg]]456
8713 123[[File:Foobar.jpg|right]]456
8714 123[[File:Foobar.jpg|thumb]]456
8716 <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>
8717 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
8718 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
8722 Image with multiple captions -- only last one is accepted (php)
8726 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8728 <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>
8733 Image with multiple captions -- only last one is accepted (parsoid)
8737 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8739 <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>
8743 Image with width attribute at different positions (php)
8747 [[File:Foobar.jpg|200px|right|Caption]]
8748 [[File:Foobar.jpg|right|200px|Caption]]
8749 [[File:Foobar.jpg|right|Caption|200px]]
8751 <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>
8752 <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>
8753 <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>
8758 Image with width attribute at different positions (parsoid)
8762 [[File:Foobar.jpg|200px|right|Caption]]
8763 [[File:Foobar.jpg|right|200px|Caption]]
8764 [[File:Foobar.jpg|right|Caption|200px]]
8766 <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>
8767 <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>
8768 <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>
8772 Image with link parameter, wiki target (php)
8776 [[File:Foobar.jpg|link=Main Page]]
8778 <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>
8783 Image with link parameter, wiki target (parsoid)
8787 [[File:Foobar.jpg|link=Main Page]]
8789 <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>
8793 Image with link parameter, URL target (php)
8797 [[File:Foobar.jpg|link=http://example.com/]]
8799 <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>
8803 # parsoid bug 49293 (part 1)
8805 Image with link parameter, URL target (parsoid)
8809 [[File:Foobar.jpg|link=http://example.com/]]
8811 <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>
8815 Image with link parameter, protocol-less URL target (php)
8819 [[File:Foobar.jpg|link=//example.com/]]
8821 <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>
8825 # parsoid bug 49293 (part 2)
8827 Image with link parameter, protocol-less URL target (parsoid)
8831 [[File:Foobar.jpg|link=//example.com/]]
8833 <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>
8837 Image with link parameter, wgExternalLinkTarget
8839 [[Image:foobar.jpg|link=http://example.com/]]
8841 wgExternalLinkTarget='foobar'
8843 <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>
8848 Image with link parameter, wgNoFollowLinks set to false
8850 [[Image:foobar.jpg|link=http://example.com/]]
8852 wgNoFollowLinks=false
8854 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8859 Image with link parameter, wgNoFollowDomainExceptions
8861 [[Image:foobar.jpg|link=http://example.com/]]
8863 wgNoFollowDomainExceptions='example.com'
8865 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8870 Image with link parameter, wgExternalLinkTarget, unnamed parameter
8872 [[Image:foobar.jpg|link=http://example.com/|Title]]
8874 wgExternalLinkTarget='foobar'
8876 <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>
8881 Image with empty link parameter (php)
8885 [[File:Foobar.jpg|link=]]
8887 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8892 Image with empty link parameter (parsoid)
8896 [[File:Foobar.jpg|link=]]
8898 <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>
8902 Image with link parameter (wiki target) and unnamed parameter (php)
8906 [[File:Foobar.jpg|link=Main Page|Title]]
8908 <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>
8913 Image with link parameter (wiki target) and unnamed parameter (parsoid)
8917 [[File:Foobar.jpg|link=Main Page|Title]]
8919 <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>
8923 Image with link parameter (URL target) and unnamed parameter (php)
8927 [[File:Foobar.jpg|link=http://example.com/|Title]]
8929 <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>
8934 Image with link parameter (URL target) and unnamed parameter (parsoid)
8938 [[File:Foobar.jpg|link=http://example.com/|Title]]
8940 <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>
8944 Thumbnail image with link parameter
8948 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8950 <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>
8955 Manually-specified thumbnail image
8959 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8961 <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>
8966 Manually-specified thumbnail image with explicit link to wiki page
8970 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8972 <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>
8977 Manually-specified thumbnail image with explicit link to url
8981 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8983 <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>
8988 Manually-specified thumbnail image with explicit no link
8992 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8994 <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>
8999 Manually-specified thumbnail image with explicit link and alt text
9003 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
9005 <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>
9010 Image with frame and link
9012 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
9014 <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>
9019 Image with frame and link and explicit alt
9021 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
9023 <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>
9028 Image with wiki markup in implicit alt
9030 [[Image:Foobar.jpg|testing '''bold''' in alt]]
9032 <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>
9037 Image with wiki markup in explicit alt
9039 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
9041 <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>
9046 Link to image page- image page normally doesn't exists, hence edit link
9047 Add test with existing image page
9048 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
9052 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
9057 bug 18784 Link to non-existent image page with caption should use caption as link text
9059 [[:Image:test|caption]]
9061 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
9066 Frameless image caption with a free URL
9068 [[Image:foobar.jpg|http://example.com]]
9070 <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>
9075 Thumbnail image caption with a free URL
9077 [[Image:foobar.jpg|thumb|http://example.com]]
9079 <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>
9084 Thumbnail image caption with a free URL and explicit alt
9086 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
9088 <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>
9093 SVG thumbnails with no language set
9096 [[File:Foobar.svg|thumb|width=200]]
9098 <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>
9103 SVG thumbnails with language de
9106 [[File:Foobar.svg|thumb|width=200|lang=de]]
9108 <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>
9113 SVG thumbnails with invalid language code
9116 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
9118 <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>
9123 BUG 1887: A ISBN with a thumbnail
9125 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
9127 <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>
9132 BUG 1887: A RFC with a thumbnail
9134 [[Image:foobar.jpg|thumb|This is RFC 12354]]
9136 <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>
9141 BUG 1887: A mailto link with a thumbnail
9143 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
9145 <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>
9149 # Pending resolution to bug 368
9151 BUG 648: Frameless image caption with a link
9153 [[Image:foobar.jpg|text with a [[link]] in it]]
9155 <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>
9160 BUG 648: Frameless image caption with a link (suffix)
9162 [[Image:foobar.jpg|text with a [[link]]foo in it]]
9164 <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>
9169 BUG 648: Frameless image caption with an interwiki link
9171 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
9173 <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>
9178 BUG 648: Frameless image caption with a piped interwiki link
9180 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
9182 <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>
9187 Escape HTML special chars in image alt text
9189 [[Image:foobar.jpg|& < > "]]
9191 <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>
9196 BUG 499: Alt text should have Ӓ, not &1234;
9198 [[Image:foobar.jpg|♀]]
9200 <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>
9205 Broken image caption with link
9207 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
9209 <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.
9214 Image caption containing another image
9216 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
9218 <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>
9223 Image caption containing a newline
9225 [[Image:Foobar.jpg|This
9228 <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>
9233 Parsoid: Image caption containing leading space
9234 (The leading space should not trigger nowiki escaping in wt2wt mode)
9236 [[Image:Foobar.jpg|thumb| bar]]
9238 <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>
9243 Bug 3090: External links other than http: in image captions
9245 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
9247 <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>
9254 [[Image:foobar.jpg|a|class=b]]
9256 <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>
9261 Localized image handling (1).
9265 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
9267 <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>
9272 Localized image handling (2).
9276 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
9278 <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>
9283 "border", "frameless" and "class" attributes on an image.
9285 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
9287 <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>
9294 #REDIRECT [[File:Barfoo.jpg]]
9300 [[Image:Barfoo.jpg]]
9302 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
9307 Missing image with uploads disabled
9311 [[Image:Foobaz.jpg]]
9313 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
9317 # Parsoid-specific testing for images
9318 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9319 # Currently imperfect due to a flaw in the Parsoid testrunner
9321 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
9325 Parsoid-specific image handling - simple image with size and middle alignment
9329 [[Image:Foobar.jpg|50px|middle]]
9332 <span class="mw-valign-middle" typeof="mw:Image">
9333 <a href="File:Foobar.jpg">
9334 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9341 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
9345 [[Image:Foobar.jpg|500x10px|baseline|caption]]
9348 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
9349 <a href="File:Foobar.jpg">
9350 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
9357 Parsoid-specific image handling - simple image with border and size spec
9361 [[Image:Foobar.jpg|50px|border|caption]]
9364 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
9365 <a href="File:Foobar.jpg">
9366 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9373 Parsoid-specific image handling - thumbnail with halign, valign, and caption
9377 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
9379 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
9380 <a href="File:Foobar.jpg">
9381 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
9383 <figcaption>caption content</figcaption>
9388 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
9392 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
9394 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
9395 <a href="File:Foobar.jpg">
9396 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
9398 <figcaption>caption</figcaption>
9403 Parsoid-specific image handling - framed image with specific size and caption
9407 [[Image:Foobar.jpg|500x50px|frame|caption]]
9409 <figure typeof="mw:Image/Frame">
9410 <a href="File:Foobar.jpg">
9411 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9413 <figcaption>caption</figcaption>
9418 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
9422 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
9424 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
9425 <a href="File:Foobar.jpg">
9426 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9428 <figcaption>caption</figcaption>
9433 Parsoid-specific image handling - frameless image with specific size, border, and caption
9437 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
9440 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
9441 <a href="File:Foobar.jpg">
9442 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9448 #Parsoid-specific image handling - simple image with a formatted caption
9452 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
9455 #<span typeof="mw:Image">
9456 #<a class="mw-default-size" href="Image:Foobar.jpg">
9457 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
9468 Subpage test/subpage
9476 subpage title=[[Subpage test]]
9480 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
9485 Subpage noslash link
9487 subpage title=[[Subpage test]]
9491 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
9495 # TODO: make this PHP-parser compatible!
9497 Relative subpage noslash link
9499 parsoid=wt2wt,wt2html,html2html
9500 subpage title=[[Subpage test/1/2/3/4]]
9506 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
9507 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
9510 # TODO: make this PHP-parser compatible!
9512 Parsoid: dot-slash prefixed wikilinks
9514 parsoid=wt2wt,wt2html,html2html
9522 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
9523 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
9524 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
9532 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
9537 BUG 561: {{/Subpage}}
9539 subpage title=[[Page]]
9543 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
9551 Category:MediaWiki User's Guide
9559 [[:Category:MediaWiki User's Guide]]
9561 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
9570 [[Category:MediaWiki User's Guide]]
9572 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9576 PAGESINCATEGORY invalid title fatal (r33546 fix)
9578 {{PAGESINCATEGORY:<bogus>}}
9585 Category with different sort key
9589 [[Category:MediaWiki User's Guide|Foo]]
9591 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9595 Category with identical sort key
9599 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9601 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9605 Category with empty sort key
9610 [[Category:MediaWiki User's Guide|]]
9612 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9616 Category with empty sort key and parentheses
9621 [[Category:Foo (bar)|]]
9623 [[Category:Foo (bar)|Foo]]
9627 Category with link tail
9632 123[[Category:Foo]]456
9634 123[[Category:Foo]]456
9638 Category with template
9643 [[Category:{{echo|Foo}}]]
9645 [[Category:{{echo|Foo}}]]
9649 Category with template in sort key
9654 [[Category:Foo|{{echo|Bar}}]]
9656 [[Category:Foo|{{echo|Bar}}]]
9660 Category with template in sort key and title
9665 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9667 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9671 Category / paragraph interactions
9673 Foo [[Category:Baz]] Bar
9675 Foo [[Category:Baz]]
9683 [[Category:Baz]] Bar
9696 {{echo|[[Category:Baz]]}}
9711 Parsoid: Serialize link to category page with colon escape
9717 [[:Category:Foo|Bar]]
9720 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
9721 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
9726 Parsoid: Link prefix/suffixes aren't applied to category links
9728 parsoid=wt2html,wt2wt,html2html
9733 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
9737 Parsoid: Serialize link to file page with colon escape
9743 [[:File:Foo.png|Bar]]
9746 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
9747 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
9752 Parsoid: Serialize a genuine category link without colon escape
9757 [[Category:Foo|Bar]]
9759 <link rel="mw:WikiLink/Category" href="Category:Foo">
9760 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
9764 ### Inter-language links
9767 Inter-language links
9773 [[zh:食品]]
9775 es:Alimento fr:Nourriture zh:食品
9779 Duplicate interlanguage links (bug 24502)
9795 Basic section headings
9802 ===Smaller headline===
9805 <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>
9808 <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>
9811 <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>
9817 Section headings with TOC
9820 === Subheadline 1 ===
9821 ===== Skipping a level =====
9822 ====== Skipping a level ======
9826 ===Another headline===
9828 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9830 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
9832 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
9834 <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>
9836 <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>
9843 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
9845 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
9850 <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>
9851 <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>
9852 <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>
9853 <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>
9854 <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>
9857 <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>
9861 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
9863 Handling of sections up to level 6 and beyond
9866 == Level 2 Heading==
9867 === Level 3 Heading===
9868 ==== Level 4 Heading====
9869 ===== Level 5 Heading=====
9870 ====== Level 6 Heading======
9871 ======= Level 7 Heading=======
9872 ======== Level 8 Heading========
9873 ========= Level 9 Heading=========
9874 ========== Level 10 Heading==========
9876 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9878 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9880 <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>
9882 <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>
9884 <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>
9886 <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>
9888 <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>
9889 <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>
9890 <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>
9891 <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>
9892 <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>
9905 <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>
9906 <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>
9907 <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>
9908 <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>
9909 <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>
9910 <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>
9911 <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>
9912 <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>
9913 <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>
9914 <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>
9919 TOC regression (bug 9764)
9923 ==== title 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="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9932 <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>
9934 <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>
9937 <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>
9940 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9942 <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>
9947 <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>
9948 <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>
9949 <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>
9950 <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>
9951 <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>
9952 <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>
9957 TOC with wgMaxTocLevel=3 (bug 6204)
9963 ==== title 1.1.1 ====
9968 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9970 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9972 <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>
9973 <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>
9976 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9978 <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>
9983 <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>
9984 <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>
9985 <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>
9986 <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>
9987 <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>
9988 <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>
9993 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9999 ====Section 1.1.1====
10000 ====Section 1.1.1.1====
10003 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10005 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
10007 <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>
10010 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
10013 <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>
10014 <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>
10015 <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>
10016 <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>
10017 <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>
10023 Resolving duplicate section names
10028 <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>
10029 <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>
10034 Resolving duplicate section names with differing case (bug 10721)
10039 <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>
10040 <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>
10052 Template with sections, __NOTOC__
10059 <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>
10060 <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>
10061 <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>
10062 <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>
10067 __NOEDITSECTION__ keyword
10073 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
10074 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
10079 Link inside a section heading
10081 ==Section with a [[Main Page|link]] in it==
10083 <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>
10088 TOC regression (bug 12077)
10095 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10097 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10099 <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>
10102 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
10105 <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>
10106 <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>
10107 <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>
10112 BUG 1219 URL next to image (good)
10114 http://example.com [[Image:foobar.jpg]]
10116 <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>
10121 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
10124 The line above must have a trailing space!
10127 But just in case it doesn't...
10129 <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>
10130 <p>The line above must have a trailing space!
10132 <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>
10133 <p>But just in case it doesn't...
10138 Header with special characters (bug 25462)
10140 The tooltips shall not show entities to the user (ie. be double escaped)
10157 <p>The tooltips shall not show entities to the user (ie. be double escaped)
10159 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10161 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
10162 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
10163 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
10164 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
10165 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
10168 <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>
10171 <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>
10174 <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>
10177 <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>
10180 <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>
10186 Headers with excess '=' characters
10187 (Are similar tests necessary beyond the 1st level?)
10191 =''italic'' heading==
10192 ==''italic'' heading=
10194 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10196 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
10197 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
10198 <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>
10199 <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>
10202 <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>
10203 <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>
10204 <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>
10205 <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>
10210 HTML headers vs TOC (bug 23393)
10211 (__NOEDITSECTION__ for clearer output, doesn't matter here)
10223 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10225 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
10227 <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>
10228 <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>
10231 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
10233 <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>
10234 <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>
10239 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
10240 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
10241 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
10242 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
10243 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
10244 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
10249 BUG 1219 URL next to image (broken)
10251 http://example.com[[Image:foobar.jpg]]
10253 <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>
10258 Bug 1186 news: in the middle of text
10260 http://en.wikinews.org/wiki/Wikinews:Workplace
10262 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
10268 Namespaced link must have a title
10277 Namespaced link must have a title (bad fragment version)
10279 [[Project:#fragment]]
10281 <p>[[Project:#fragment]]
10287 ### HTML tags and HTML attributes
10291 div with no attributes
10293 <div>HTML rocks</div>
10295 <div>HTML rocks</div>
10300 div with double-quoted attribute
10302 <div id="rock">HTML rocks</div>
10304 <div id="rock">HTML rocks</div>
10309 div with single-quoted attribute
10311 <div id='rock'>HTML rocks</div>
10313 <div id="rock">HTML rocks</div>
10318 div with unquoted attribute
10320 <div id=rock>HTML rocks</div>
10322 <div id="rock">HTML rocks</div>
10327 div with illegal double attributes
10329 <div id="a" id="b">HTML rocks</div>
10331 <div id="b">HTML rocks</div>
10335 # FIXME: produce empty string instead of "class" in the PHP parser, following
10338 div with empty attribute value, space before equals
10342 <div class =>HTML rocks</div>
10344 <div class="">HTML rocks</div>
10348 # The PHP parser escapes the opening brace to { for some reason, so
10349 # disabled this test for it.
10351 div with braces in attribute value
10355 <div title="{}">Foo</div>
10357 <div title="{}">Foo</div>
10360 # This it very inconsistent in the PHP parser: it returns
10361 # class="class" if there is a space between the name and the equal sign (see
10362 # 'div with empty attribute value, space before equals'), but strips the
10363 # attribute completely if the space is missing. We hope that not much content
10364 # depends on this, so are implementing the behavior below in Parsoid for
10365 # consistencies' sake. Disabled for the PHP parser.
10366 # FIXME: fix this behavior in the PHP parser?
10368 div with empty attribute value, no space before equals
10372 <div class=>HTML rocks</div>
10374 <div class="">HTML rocks</div>
10379 HTML multiple attributes correction
10381 <p class="error" class="awesome">Awesome!</p>
10383 <p class="awesome">Awesome!</p>
10388 Table multiple attributes correction
10391 !+ class="error" class="awesome"| status
10396 <th class="awesome"> status
10404 <DIV ID="x">HTML ROCKS</DIV>
10406 <div id="x">HTML ROCKS</div>
10411 Non-ASCII pseudo-tags are rendered as text
10420 Pseudo-tag with URL 'name' renders as url link
10422 <http://example.com/>
10424 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
10429 text with amp in the middle of nowhere
10433 <p>Remember AT&T?
10438 text with character entity: eacute
10440 I always thought é was a cute letter.
10442 <p>I always thought é was a cute letter.
10447 text with entity-escaped character entity-like string: eacute
10449 I always thought &eacute; was a cute letter.
10451 <p>I always thought &eacute; was a cute letter.
10456 text with undefined character entity: xacute
10458 I always thought &xacute; was a cute letter.
10460 <p>I always thought &xacute; was a cute letter.
10466 ### Nesting tests (see bug 41545, 50604, 51081)
10469 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
10470 # Note that html2wt is considerably more difficult if we use <b> in
10471 # the test case, instead of <big>
10473 Ensure that HTML adoption agency algorithm is properly implemented.
10475 <big>X<big>Y</big>Z</big>
10477 <p><big>X<big>Y</big>Z</big>
10481 # This was bug 41545 in the PHP parser.
10485 <kbd>X<kbd>Y</kbd>Z</kbd>
10487 <p><kbd>X<kbd>Y</kbd>Z</kbd>
10491 # The following cases were bug 51081 in the PHP parser.
10492 # Note that there are some other nestable tags (b, i, etc) which are
10493 # not covered; see bug 51081 for discussion.
10497 <em>X<em>Y</em>Z</em>
10499 <p><em>X<em>Y</em>Z</em>
10504 Nesting of <strong>
10506 <strong>X<strong>Y</strong>Z</strong>
10508 <p><strong>X<strong>Y</strong>Z</strong>
10517 <p><q>X<q>Y</q>Z</q>
10524 <ruby>X<ruby>Y</ruby>Z</ruby>
10526 <p><ruby>X<ruby>Y</ruby>Z</ruby>
10533 <bdo>X<bdo>Y</bdo>Z</bdo>
10535 <p><bdo>X<bdo>Y</bdo>Z</bdo>
10547 [[Media:Foobar.jpg]]
10549 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
10554 Media link with text
10556 [[Media:Foobar.jpg|A neat file to look at]]
10558 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
10562 # FIXME: this is still bad HTML tag nesting
10564 Media link with nasty text
10565 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
10567 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
10569 <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>
10574 Media link to nonexistent file (bug 1702)
10576 [[Media:No such.jpg]]
10578 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
10583 Image link to nonexistent file (bug 1850 - good)
10585 [[Image:No such.jpg]]
10587 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
10592 :Image link to nonexistent file (bug 1850 - bad)
10594 [[:Image:No such.jpg]]
10596 <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>
10603 Character reference normalization in link text (bug 1938)
10605 [[Main Page|this&that]]
10607 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
10614 Test for unicode normalization
10616 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
10620 (bug 19451) Links should refer to the normalized form.
10628 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10629 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10630 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10631 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10632 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10637 Empty attribute crash test (bug 2067)
10639 <font color="">foo</font>
10641 <p><font color="">foo</font>
10646 Empty attribute crash test single-quotes (bug 2067)
10648 <font color=''>foo</font>
10650 <p><font color="">foo</font>
10655 Attribute test: equals, then nothing
10657 <font color=>foo</font>
10659 <p><font>foo</font>
10664 Attribute test: unquoted value
10666 <font color=x>foo</font>
10668 <p><font color="x">foo</font>
10673 Attribute test: unquoted but illegal value (hash)
10675 <font color=#x>foo</font>
10677 <p><font color="#x">foo</font>
10682 Attribute test: no value
10684 <font color>foo</font>
10686 <p><font color="color">foo</font>
10691 Bug 2095: link with three closing brackets
10695 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
10700 Bug 2095: link with pipe and three closing brackets
10702 [[Main Page|link]]]
10704 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
10709 Bug 2095: link with pipe and three closing brackets, version 2
10711 [[Main Page|[http://example.com/]]]
10713 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
10723 Template:Dangerous attribute
10725 " onmouseover="alert(document.cookie)
10729 Template:Dangerous style attribute
10731 border-size: expression(alert(document.cookie))
10737 <div style="float: right; {{{1}}}">Magic div</div>
10741 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
10743 <div title="{{test}}"></div>
10745 <div title="This is a test template"></div>
10750 Bug 2304: HTML attribute safety (dangerous template; 2309)
10752 <div title="{{dangerous attribute}}"></div>
10754 <div title=""></div>
10759 Bug 2304: HTML attribute safety (dangerous style template; 2309)
10761 <div style="{{dangerous style attribute}}"></div>
10763 <div style="/* insecure input */"></div>
10768 Bug 2304: HTML attribute safety (safe parameter; 2309)
10770 {{div style|width: 200px}}
10772 <div style="float: right; width: 200px">Magic div</div>
10777 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
10779 {{div style|width: expression(alert(document.cookie))}}
10781 <div style="/* insecure input */">Magic div</div>
10786 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
10788 {{div style|"><script>alert(document.cookie)</script>}}
10790 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10795 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
10797 {{div style|" ><script>alert(document.cookie)</script>}}
10799 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10804 Bug 2304: HTML attribute safety (link)
10806 <div title="[[Main Page]]"></div>
10808 <div title="[[Main Page]]"></div>
10813 Bug 2304: HTML attribute safety (italics)
10815 <div title="''foobar''"></div>
10817 <div title="''foobar''"></div>
10822 Bug 2304: HTML attribute safety (bold)
10824 <div title="'''foobar'''"></div>
10826 <div title="'''foobar'''"></div>
10832 Bug 2304: HTML attribute safety (ISBN)
10834 <div title="ISBN 1234567890"></div>
10836 <div title="ISBN 1234567890"></div>
10841 Bug 2304: HTML attribute safety (RFC)
10843 <div title="RFC 1234"></div>
10845 <div title="RFC 1234"></div>
10850 Bug 2304: HTML attribute safety (PMID)
10852 <div title="PMID 1234567890"></div>
10854 <div title="PMID 1234567890"></div>
10859 Bug 2304: HTML attribute safety (web link)
10861 <div title="http://example.com/"></div>
10863 <div title="http://example.com/"></div>
10868 Bug 2304: HTML attribute safety (named web link)
10870 <div title="[http://example.com/ link]"></div>
10872 <div title="[http://example.com/ link]"></div>
10877 Bug 3244: HTML attribute safety (extension; safe)
10879 <div style="<nowiki>background:blue</nowiki>"></div>
10881 <div style="background:blue"></div>
10886 Bug 3244: HTML attribute safety (extension; unsafe)
10888 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10890 <div style="/* insecure input */"></div>
10894 # More MSIE fun discovered by Tom Gilder
10897 MSIE CSS safety test: spurious slash
10899 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10901 <div style="/* insecure input */">evil</div>
10906 MSIE CSS safety test: hex code
10908 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10910 <div style="/* insecure input */">evil</div>
10915 MSIE CSS safety test: comment in url
10917 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10919 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10924 MSIE CSS safety test: comment in expression
10926 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10928 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10934 Table attribute legitimate extension
10937 !+ style="<nowiki>color:blue</nowiki>"| status
10942 <th style="color:blue"> status
10948 Table attribute safety
10951 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10956 <th style="/* insecure input */"> status
10962 CSS line continuation 1
10964 <div style="background-image: u\ rl(test.jpg);"></div>
10966 <div style="/* insecure input */"></div>
10971 CSS line continuation 2
10973 <div style="background-image: u\ rl(test.jpg); "></div>
10975 <div style="/* insecure input */"></div>
10986 Expansion of multi-line templates in attribute values (bug 6255)
10988 <div style="background: {{identity|#00FF00}}">-</div>
10990 <div style="background: #00FF00">-</div>
10996 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10998 <div style="background:
11001 <div style="background: #00FF00">-</div>
11006 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
11008 <div style="background: #00FF00">-</div>
11010 <div style="background: #00FF00">-</div>
11015 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
11018 Parser hook: empty input
11031 Parser hook: empty input using terminated empty elements
11044 Parser hook: empty input using terminated empty elements (space before)
11057 Parser hook: basic input
11071 Parser hook: case insensitive
11085 Parser hook: case insensitive, redux
11098 Parser hook: nested tags
11102 <tag><tag></tag></tag>
11113 Parser hook: basic arguments
11115 <tag width=200 height = "100" depth = '50' square></tag>
11123 'square' => 'square',
11130 Parser hook: argument containing a forward slash (bug 5344)
11132 <tag filename='/tmp/bla'></tag>
11137 'filename' => '/tmp/bla',
11144 Parser hook: empty input using terminated empty elements (bug 2374)
11157 # </tag> should be output literally since there is no matching tag that begins it
11159 Parser hook: basic arguments using terminated empty elements (bug 2374)
11161 <tag width=200 height = "100" depth = '50' square/>
11171 'square' => 'square',
11180 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
11184 Parser hook: static parser hook not inside a comment
11186 <statictag>hello, world</statictag>
11187 <statictag action=flush/>
11195 Parser hook: static parser hook inside a comment
11197 <!-- <statictag>hello, world</statictag> -->
11198 <statictag action=flush/>
11204 # Nested template calls; this case was broken by Parser.php rev 1.506,
11208 Template:One-parameter
11210 (My parameter is: {{{1}}})
11214 Template:Map-one-parameter
11216 {{{{{1}}}|{{{2}}}}}
11220 Nested template calls
11222 {{Map-one-parameter|One-parameter|param}}
11224 <p>(My parameter is: param)
11233 Sanitizer: Closing of open tags
11235 <s></s><table></table>
11237 <s></s><table></table>
11242 Sanitizer: Closing of open but not closed tags
11251 Sanitizer: Closing of closed but not open tags
11260 Sanitizer: Closing of closed but not open table tags
11262 Table not started</td></tr></table>
11264 <p>Table not started</td></tr></table>
11269 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
11271 <span id="æ: v">byte</span>[[#æ: v|backlink]]
11273 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
11278 Sanitizer: Validating the contents of the id attribute (bug 4515)
11284 Something, but definitely not <br id="9" />...
11288 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
11292 <br id="foo" /><br id="foo" />
11294 Something need to be done. foo-2 ?
11298 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
11301 <meta itemprop="hello" content="world">
11302 <meta http-equiv="refresh" content="5">
11303 <meta itemprop="hello" http-equiv="refresh" content="5">
11304 <link itemprop="hello" href="{{SERVER}}">
11305 <link rel="stylesheet" href="{{SERVER}}">
11306 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
11309 <div itemscope="itemscope">
11310 <p> <meta itemprop="hello" content="world" />
11311 <meta http-equiv="refresh" content="5">
11312 <meta itemprop="hello" content="5" />
11314 <link itemprop="hello" href="http://example.org" />
11315 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
11316 <link itemprop="hello" href="http://example.org" />
11322 Language converter: output gets cut off unexpectedly (bug 5757)
11326 this bit is safe: }-
11328 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
11330 then we get cut off here: }-
11332 all additional text is vanished
11334 <p>this bit is safe: }-
11335 </p><p>but if we add a conversion instance: xxx
11336 </p><p>then we get cut off here: }-
11337 </p><p>all additional text is vanished
11342 Self closed html pairs (bug 5487)
11345 <center><font id="bug" />Centered text</center>
11346 <div><font id="bug2" />In div text</div>
11348 <center><font id="bug" />Centered text</center>
11349 <div><font id="bug2" />In div text</div>
11358 Punctuation: nbsp before exclamation
11362 <p>C'est grave !
11367 Punctuation: CSS !important (bug 11874)
11369 <div style="width:50% !important">important</div>
11371 <div style="width:50% !important">important</div>
11376 Punctuation: CSS ! important (bug 11874; with space after)
11378 <div style="width:50% ! important">important</div>
11380 <div style="width:50% ! important">important</div>
11386 HTML bullet list, closed tags (bug 5497)
11401 HTML bullet list, unclosed tags (bug 5497)
11418 HTML ordered list, closed tags (bug 5497)
11433 HTML ordered list, unclosed tags (bug 5497)
11450 HTML nested bullet list, closed tags (bug 5497)
11475 HTML nested bullet list, open tags (bug 5497)
11500 HTML nested ordered list, closed tags (bug 5497)
11525 HTML nested ordered list, open tags (bug 5497)
11550 HTML ordered list item with parameters oddity
11552 <ol><li id="fragment">One</li></ol>
11554 <ol><li id="fragment">One</li></ol>
11559 bug 5918: autonumbering
11561 [http://first/] [http://second] [ftp://ftp]
11565 [mailto:enclosed@mail.tld With target]
11567 [mailto:enclosed@mail.tld]
11569 mailto:inline@mail.tld
11571 <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>
11572 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
11573 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
11574 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
11575 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
11581 # Security and HTML correctness
11582 # From Nick Jenkins' fuzz testing
11586 Fuzz testing: Parser13
11601 Fuzz testing: Parser14
11606 <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>
11607 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11609 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
11616 Fuzz testing: Parser14-table
11621 <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>
11622 <table style="__TOC__">
11628 # Known to produce bogus xml (extra </td>)
11630 Fuzz testing: Parser16
11650 Fuzz testing: Parser21
11653 ! irc://{{ftp://a" onmouseover="alert('hello world');"
11658 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
11668 Fuzz testing: Parser22
11670 http://===r:::https://b
11674 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
11682 # Known to produce bad XML for now
11684 Fuzz testing: Parser24
11691 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
11692 <br style="onmouseover='alert(document.cookie);' " />
11694 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11699 <u class="|">}}}} >
11700 <br style="onmouseover='alert(document.cookie);'" />
11702 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11711 # Note: the current result listed for this is not what the original one was,
11712 # but the original bug was JavaScript injection, which is fixed in any case.
11713 # It's not clear that the original result listed was any more correct than the
11714 # current one. Original result:
11717 # <li class="||">
11718 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11720 Fuzz testing: Parser25 (bug 6055)
11726 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
11728 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11733 Fuzz testing: URL adjacent extension (with space, clean)
11736 http://example.com <nowiki>junk</nowiki>
11738 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
11743 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
11746 http://example.com<nowiki>junk</nowiki>
11748 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
11753 Fuzz testing: URL adjacent extension (no space, dirty; pre)
11756 http://example.com<pre>junk</pre>
11758 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
11763 Fuzz testing: image with bogus manual thumbnail
11765 [[Image:foobar.jpg|thumbnail= ]]
11767 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
11772 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
11774 <pre dir=" "></pre>
11776 <pre dir=" "></pre>
11781 Parsing optional HTML elements (Bug 6171)
11786 <td> Some tabular data</td>
11787 <td> More tabular data ...
11788 <td> And yet som tabular data</td>
11794 <td> Some tabular data</td>
11795 <td> More tabular data ...
11796 </td><td> And yet som tabular data</td>
11803 Correct handling of <td>, <tr> (Bug 6171)
11808 <td> Some tabular data</td>
11809 <td> More tabular data ...</td>
11810 <td> And yet som tabular data</td>
11816 <td> Some tabular data</td>
11817 <td> More tabular data ...</td>
11818 <td> And yet som tabular data</td>
11826 Parsing crashing regression (fr:JavaScript)
11830 <p></body></x>
11835 Inline wiki vs wiki block nesting
11841 <p><b>Bold paragraph</b>
11842 </p><p>New wiki paragraph
11847 Inline HTML vs wiki block nesting
11855 <p><b>Bold paragraph</b>
11856 </p><p>New wiki paragraph
11860 # Original result was this:
11861 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
11863 # While that might be marginally more intuitive, maybe, the six-apostrophe
11864 # construct is clearly pathological and the result stated here (which is what
11865 # the parser actually does) is about as reasonable as anything.
11867 Mixing markup for italics and bold
11870 '''bold''''''bold''bolditalics'''''
11872 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11880 Article for special page transclusion test
11884 Special page transclusion
11887 {{Special:Prefixindex/Xyzzyx}}
11889 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11894 Special page transclusion twice (bug 5021)
11897 {{Special:Prefixindex/Xyzzyx}}
11898 {{Special:Prefixindex/Xyzzyx}}
11900 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11901 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11906 Transclusion of default MediaWiki message
11908 {{MediaWiki:Mainpage}}
11915 Transclusion of nonexistent MediaWiki message
11917 {{MediaWiki:Mainpagexxx}}
11919 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11924 Transclusion of MediaWiki message with underscore
11926 {{MediaWiki:history_short}}
11933 Transclusion of MediaWiki message with space
11935 {{MediaWiki:history short}}
11942 Invalid header with following text
11952 Section extraction test (section 0)
11972 Section extraction test (section 1)
11994 Section extraction test (section 2)
12015 Section extraction test (section 3)
12035 Section extraction test (section 4)
12059 Section extraction test (section 5)
12079 Section extraction test (section 6)
12100 Section extraction test (section 7)
12120 Section extraction test (section 8)
12140 Section extraction test (section 9)
12161 Section extraction test (section 10)
12181 Section extraction test (nonexistent section 11)
12200 Section extraction test with bogus heading (section 1)
12205 ==bogus== not a legal section
12209 ==bogus== not a legal section
12213 Section extraction test with bogus heading (section 2)
12218 ==bogus== not a legal section
12225 Section extraction test with comment after heading (section 1)
12237 Section extraction test with comment after heading (section 2)
12249 Section extraction test with bogus <nowiki> heading (section 1)
12254 ==bogus== <nowiki>not a legal section</nowiki>
12258 ==bogus== <nowiki>not a legal section</nowiki>
12262 Section extraction test with bogus <nowiki> heading (section 2)
12267 ==bogus== <nowiki>not a legal section</nowiki>
12274 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
12275 # instead of respecting commented sections
12277 Section extraction prefixed by comment (section 1)
12288 Section extraction prefixed by comment (section 2)
12299 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
12300 # instead of respecting HTML-style headings
12302 Section extraction, mixed wiki and html (section 1)
12318 Section extraction, mixed wiki and html (section 2)
12334 # Formerly testing for bug 3342
12336 Section extraction, heading surrounded by <noinclude>
12340 <noinclude>==unmarked==</noinclude>
12346 # Test behavior of bug 19910
12348 Sectiion with all-equals
12353 The line above must have a trailing space
12356 But just in case it doesn't...
12360 But just in case it doesn't...
12364 Section replacement test (section 0)
12395 Section replacement test (section 1)
12424 Section replacement test (section 2)
12454 Section replacement test (section 3)
12485 Section replacement test (section 4)
12512 Section replacement test (section 5)
12543 Section replacement test (section 6)
12573 Section replacement test (section 7)
12604 Section replacement test (section 8)
12635 Section replacement test (section 9)
12664 Section replacement test (section 10)
12694 Section replacement test with initial whitespace (bug 13728)
12698 Preformatted initial line
12702 Preformatted initial line
12709 Section extraction, heading followed by pre with 20 spaces (bug 6398)
12721 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
12734 Section extraction, <pre> around bogus header (bug 10309)
12751 Section replacement, <pre> around bogus header (bug 10309)
12753 noxml replace=2,"xxx"
12774 Handling of 
 in URLs
12778 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
12785 5 quotes, code coverage +1 line (php)
12792 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
12794 5 quotes, code coverage +1 line (parsoid)
12800 <p><i><b></b></i></p>
12804 Special:Search page linking.
12808 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
12815 title=[[Parser test]]
12820 * {{FULLPAGENAMEE}}
12822 * {{BASEPAGENAMEE}}
12826 * {{ROOTPAGENAMEE}}
12828 * {{TALKPAGENAMEE}}
12829 * {{SUBJECTPAGENAME}}
12830 * {{SUBJECTPAGENAMEE}}
12833 * {{NAMESPACENUMBER}}
12837 * {{SUBJECTSPACEE}}
12838 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
12840 <ul><li> Parser test
12841 </li><li> Parser_test
12842 </li><li> Parser test
12843 </li><li> Parser_test
12844 </li><li> Parser test
12845 </li><li> Parser_test
12846 </li><li> Parser test
12847 </li><li> Parser_test
12848 </li><li> Parser test
12849 </li><li> Parser_test
12850 </li><li> Talk:Parser test
12851 </li><li> Talk:Parser_test
12852 </li><li> Parser test
12853 </li><li> Parser_test
12861 </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>
12865 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
12875 image4 |300px| centre
12876 image5.svg| http://///////
12881 <ul class="gallery mw-gallery-traditional">
12882 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12883 <div class="thumb" style="height: 150px;">Image1.png</div>
12884 <div class="gallerytext">
12887 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12888 <div class="thumb" style="height: 150px;">Image2.gif</div>
12889 <div class="gallerytext">
12894 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12895 <div class="thumb" style="height: 150px;">Image3</div>
12896 <div class="gallerytext">
12899 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12900 <div class="thumb" style="height: 150px;">Image4</div>
12901 <div class="gallerytext">
12906 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12907 <div class="thumb" style="height: 150px;">Image5.svg</div>
12908 <div class="gallerytext">
12909 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12913 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12914 <div class="thumb" style="height: 150px;">* image6</div>
12915 <div class="gallerytext">
12923 Gallery (with options)
12925 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12926 File:Nonexistant.jpg|caption
12927 File:Nonexistant.jpg
12928 image:foobar.jpg|some '''caption''' [[Main Page]]
12930 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12933 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
12934 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12935 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12936 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
12937 <div class="gallerytext">
12942 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12943 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
12944 <div class="gallerytext">
12947 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12948 <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>
12949 <div class="gallerytext">
12950 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12954 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12955 <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>
12956 <div class="gallerytext">
12959 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12960 <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>
12961 <div class="gallerytext">
12971 Gallery with wikitext inside caption
12974 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12975 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12978 <ul class="gallery mw-gallery-traditional">
12979 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12980 <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>
12981 <div class="gallerytext">
12982 <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>
12986 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12987 <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>
12988 <div class="gallerytext">
12989 <p>This is a test template
12998 gallery (with showfilename option)
13000 <gallery showfilename>
13001 File:Nonexistant.jpg|caption
13002 File:Nonexistant.jpg
13003 image:foobar.jpg|some '''caption''' [[Main Page]]
13007 <ul class="gallery mw-gallery-traditional">
13008 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13009 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13010 <div class="gallerytext">
13011 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13016 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13017 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13018 <div class="gallerytext">
13019 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13023 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13024 <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>
13025 <div class="gallerytext">
13026 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13027 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13031 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13032 <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>
13033 <div class="gallerytext">
13034 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13043 Gallery (with namespace-less filenames)
13046 File:Nonexistant.jpg
13052 <ul class="gallery mw-gallery-traditional">
13053 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13054 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13055 <div class="gallerytext">
13058 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13059 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13060 <div class="gallerytext">
13063 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13064 <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>
13065 <div class="gallerytext">
13068 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13069 <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>
13070 <div class="gallerytext">
13078 HTML Hex character encoding (spells the word "JavaScript")
13080 JavaScript
13082 <p>JavaScript
13087 HTML Hex character encoding bogus encoding (bug 26437 regression check)
13091 <p>&#xsee;&#XSEE;
13096 HTML Hex character encoding mixed case
13105 __FORCETOC__ override
13117 ISBN 978-0-1234-56 789
13119 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
13124 ISBN followed by 5 spaces
13135 ISBN ISBN 1234567890
13137 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13142 Bug 22905: <abbr> followed by ISBN followed by </a>
13144 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
13146 <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>
13155 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
13160 Double RFC with a wiki link
13164 <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>
13173 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
13178 Centre-aligned image
13180 [[Image:foobar.jpg|centre]]
13182 <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>
13189 [[Image:foobar.jpg|none]]
13191 <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>
13196 Width + Height sized image (using px) (height is ignored)
13198 [[Image:foobar.jpg|640x480px]]
13200 <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>
13205 Width-sized image (using px, no following whitespace)
13207 [[Image:foobar.jpg|640px]]
13209 <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>
13214 Width-sized image (using px, with following whitespace - test regression from r39467)
13216 [[Image:foobar.jpg|640px ]]
13218 <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>
13223 Width-sized image (using px, with preceding whitespace - test regression from r39467)
13225 [[Image:foobar.jpg| 640px]]
13227 <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>
13232 Another italics / bold test
13240 # Note the results may be incorrect, as parserTest output included this:
13241 # XML error: Mismatched tag at byte 6120:
13242 # ...<dd> </dt></dl> </dd...
13250 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
13261 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
13263 Images with the "|" character in the comment
13265 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
13267 <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>
13272 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
13274 <html><script>alert(1);</script></html>
13276 <p><html><script>alert(1);</script></html>
13281 HTML with raw HTML ($wgRawHtml==true)
13285 <html><script>alert(1);</script></html>
13287 <p><script>alert(1);</script>
13292 Parents of subpages, one level up
13294 subpage title=[[Subpage test/L1/L2/L3]]
13298 <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>
13304 Parents of subpages, one level up, not named
13306 subpage title=[[Subpage test/L1/L2/L3]]
13310 <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>
13317 Parents of subpages, two levels up
13319 subpage title=[[Subpage test/L1/L2/L3]]
13325 <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
13326 </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>
13331 Parents of subpages, two levels up, without trailing slash or name.
13333 subpage title=[[Subpage test/L1/L2/L3]]
13342 Parents of subpages, two levels up, with lots of extra trailing slashes.
13344 subpage title=[[Subpage test/L1/L2/L3]]
13348 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
13353 Subpage test/L1/L2/L3Sibling
13359 Transclusion of a sibling page (one level up)
13361 subpage title=[[Subpage test/L1/L2/L3]]
13370 Transclusion of a child page
13372 subpage title=[[Subpage test/L1/L2]]
13381 Non-transclusion because of too many up levels
13383 subpage title=[[Subpage test/L1/L2/L3]]
13385 {{../../../../More than parent}}
13387 <p>{{../../../../More than parent}}
13392 Definition list code coverage
13398 <dl><dt> title  </dt><dd> def
13399 </dd><dt> title </dt><dd> def
13400 </dd><dt>title</dt><dd> def
13406 Don't fall for the self-closing div
13408 <div>hello world</div/>
13410 <div>hello world</div>
13419 <p>[[:Template:Msg]]
13428 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
13432 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
13434 Always escape literal '>' in output, not just after '<'
13448 <p>This is a test template
13449 This is a test template
13461 Inclusion of !userCanEdit() content
13465 <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>
13471 Out-of-order TOC heading levels
13480 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13482 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
13484 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
13485 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
13488 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
13490 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
13491 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
13496 <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>
13497 <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>
13498 <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>
13499 <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>
13500 <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>
13501 <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>
13507 ISBN with a dummy number
13517 ISBN with space-delimited number
13521 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
13527 ISBN with multiple spaces, no number
13546 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13547 </p><p>ISBN 12345678901
13553 ISBN with trailing year (bug 8110)
13555 ISBN 1-234-56789-0 - 2006
13557 ISBN 1 234 56789 0 - 2006
13559 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
13560 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
13568 {{anchorencode:foo bar©#%n}}
13570 <p>foo_bar.C2.A9.23.25n
13575 anchorencode trims spaces
13577 {{anchorencode: __pretty__please__}}
13584 anchorencode deals with links
13586 {{anchorencode: [[hello|world]] [[hi]]}}
13593 anchorencode deals with templates
13595 {{anchorencode: {{Foo}} }}
13602 anchorencode encodes like the TOC generator: (bug 18431)
13604 === _ +:.3A%3A&&]] ===
13605 {{anchorencode: _ +:.3A%3A&&]] }}
13608 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
13609 <p>.2B:.3A.253A.26.26.5D.5D
13613 # Expected output in the following test is not necessarily expected (there
13614 # should probably be <p> tags inside the <blockquote> in the output) -- it's
13615 # only testing for well-formedness.
13617 Bug 6200: blockquotes and paragraph formatting
13637 Bug 8293: Use of center tag ruins paragraph formatting
13658 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
13662 <span><s>x</span></s>
13664 <p><span><s>x</span></s></span>
13669 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
13673 <span><s>x</span></s>
13675 <p><span><s>x</s></span><s></s>
13680 ### Language variants related tests
13683 Self-link in language variants
13685 title=[[Dunav]] language=sr
13687 Both [[Dunav]] and [[Дунав]] are names for this river.
13689 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
13700 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
13702 title=[[Duna]] language=sr
13704 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
13706 <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.
13711 Link to pages in language variants
13715 Main Page can be written as [[Маин Паге]]
13717 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
13723 Multiple links to pages in language variants
13727 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
13729 <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>.
13735 Simple template in language variants
13741 <p>This is a test template
13747 Template with explicit namespace in language variants
13753 <p>This is a test template
13759 Basic test for template parameter in language variants
13763 {{парамтест|param=foo}}
13765 <p>This is a test template with parameter foo
13771 Simple category in language variants
13775 [[Category:МедиаWики Усер'с Гуиде]]
13777 <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>
13794 Don't convert blue categorylinks to another variant (bug 33210)
13798 [[A]][[Category:分类]]
13800 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
13805 Stripping -{}- tags (language variants)
13809 Latin proverb: -{Ne nuntium necare}-
13811 <p>Latin proverb: Ne nuntium necare
13817 Prevent conversion with -{}- tags (language variants)
13819 language=sr variant=sr-ec
13821 Latinski: -{Ne nuntium necare}-
13823 <p>Латински: Ne nuntium necare
13829 Prevent conversion of text with -{}- tags (language variants)
13831 language=sr variant=sr-ec
13833 Latinski: -{Ne nuntium necare}-
13835 <p>Латински: Ne nuntium necare
13841 Prevent conversion of links with -{}- tags (language variants)
13843 language=sr variant=sr-ec
13847 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13853 -{}- tags within headlines (within html for parserConvert())
13855 language=sr variant=sr-ec
13859 <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>
13865 Explicit definition of language variant alternatives
13867 language=zh variant=zh-tw
13869 -{zh:China;zh-tw:Taiwan}-, not China
13871 <p>Taiwan, not China
13877 Conversion around HTML tags
13879 language=sr variant=sr-ec
13881 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13882 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13885 <span title="ЛаCтин">ски</span>
13891 Explicit session-wise language variant mapping (A flag and - flag)
13893 language=zh variant=zh-tw
13895 Taiwan is not China.
13896 But -{A|zh:China;zh-tw:Taiwan}- is China,
13897 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13898 and -{China}- is China.
13900 <p>Taiwan is not China.
13901 But Taiwan is Taiwan,
13902 (This should be stripped!)
13903 and China is China.
13908 Explicit session-wise language variant mapping (H flag for hide)
13910 language=zh variant=zh-tw
13912 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13915 <p>(This should be stripped!)
13921 Adding explicit conversion rule for title (T flag)
13923 language=zh variant=zh-tw showtitle
13925 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13928 <p>Should be stripped!
13933 Testing that changing the language variant here in the tests actually works
13935 language=zh variant=zh showtitle
13937 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13940 <p>Should be stripped!
13945 Recursive conversion of alt and title attrs shouldn't clear converter state
13947 language=zh variant=zh-cn showtitle
13949 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13950 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13954 Should be stripped<span title="Exclamation">!</span>
13959 Bug 24072: more test on conversion rule for title
13961 language=zh variant=zh-tw showtitle
13963 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13964 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13967 <p>This should be stripped!
13968 This won't take interferes with the title rule.
13973 Partly disable title conversion if variant == main language code
13975 language=zh variant=zh title=[[ZH]] showtitle
13977 -{T|zh-cn:CN;zh-tw:TW}-
13985 Partly disable title conversion if variant == main language code, more
13987 language=zh variant=zh title=[[ZH]] showtitle
13997 Raw output of variant escape tags (R flag)
13999 language=zh variant=zh-tw
14001 Raw: -{R|zh:China;zh-tw:Taiwan}-
14003 <p>Raw: zh:China;zh-tw:Taiwan
14008 Nested using of manual convert syntax
14010 language=zh variant=zh-hk
14012 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
14014 <p>Nested: Hello Hong Kong!
14019 Proper conversion of text in external links
14021 language=sr variant=sr-ec
14023 http://www.google.com
14024 gopher://www.google.com
14025 [http://www.google.com http://www.google.com]
14026 [gopher://www.google.com gopher://www.google.com]
14027 [https://www.google.com irc://www.google.com]
14028 [ftp://www.google.com www.google.com/ftp://dir]
14029 [//www.google.com www.google.com]
14031 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14032 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14033 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14034 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14035 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
14036 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
14037 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
14042 Do not convert roman numbers to language variants
14044 language=sr variant=sr-ec
14048 <p>Фридрих IV је цар.
14053 Unclosed language converter markup "-{"
14064 Don't convert raw rule "-{R|=>}-" to "=>"
14075 Bug 529: Uncovered bullet
14085 # Plain MediaWiki does not remove empty lists, but tidy actually does.
14086 # Templates in Wikipedia rely on this behavior, as tidy has always been
14087 # enabled there. These tests are normally run *without* tidy, so specify the
14088 # full output here.
14089 # To test realistic parsing behavior, apply a tidy-like transformation to both
14090 # the expected output and your parser's output.
14092 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
14094 ******* Foo {{bullet}}
14096 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
14109 Bug 529: Uncovered table already at line-start
14132 Bug 529: Uncovered bullet in parser function result
14134 * Foo {{lc:{{bullet}} }}
14143 Bug 5678: Double-parsed template argument
14145 {{lc:{{{1}}}|hello}}
14152 Bug 5678: Double-parsed template invocation
14154 {{lc:{{paramtest {{!}} param = hello }} }}
14156 <p>{{paramtest | param = hello }}
14161 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
14164 title=[[Main Page]]
14166 {{PRVNÍVELKÉ:ěščř}}
14167 {{prvnívelké:ěščř}}
14187 Morwen/13: Unclosed link followed by heading
14194 <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>
14199 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
14206 <h1><span class="mw-headline" id="heading">heading</span></h1>
14211 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
14218 <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>
14233 Paragraphs inside divs (no extra line breaks)
14245 Paragraphs inside divs (extra line break on open)
14260 Paragraphs inside divs (extra line break on close)
14275 Paragraphs inside divs (extra line break on open and close)
14292 Nesting tags, paragraphs on lines which begin with <div>
14296 <div></div><strong>A
14305 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
14307 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
14311 <blockquote>Line one
14313 Line two</blockquote>
14315 <blockquote>Line one
14316 Line two</blockquote>
14321 Bug 6200: paragraphs inside blockquotes (extra line break on open)
14328 Line two</blockquote>
14333 Line two</blockquote>
14338 Bug 6200: paragraphs inside blockquotes (extra line break on close)
14342 <blockquote>Line one
14347 <blockquote>Line one
14355 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
14374 Paragraphs inside blockquotes/divs (no extra line breaks)
14376 <blockquote><div>Line one
14378 Line two</div></blockquote>
14380 <blockquote><div>Line one
14381 Line two</div></blockquote>
14386 Paragraphs inside blockquotes/divs (extra line break on open)
14391 Line two</div></blockquote>
14396 Line two</div></blockquote>
14401 Paragraphs inside blockquotes/divs (extra line break on close)
14403 <blockquote><div>Line one
14406 </div></blockquote>
14408 <blockquote><div>Line one
14411 </div></blockquote>
14416 Paragraphs inside blockquotes/divs (extra line break on open and close)
14422 </div></blockquote>
14428 </div></blockquote>
14433 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
14435 wgLinkHolderBatchSize=0
14441 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
14442 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
14443 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
14448 Free external link invading image caption
14450 [[Image:Foobar.jpg|thumb|http://x|hello]]
14452 <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>
14457 Bug 15196: localised external link numbers
14461 [http://en.wikipedia.org/]
14463 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
14468 Multibyte character in padleft
14470 {{padleft:-Hello|7|Æ}}
14477 Multibyte character in padright
14479 {{padright:Hello-|7|Æ}}
14486 formatdate parser function
14488 {{#formatdate:2009-03-24}}
14490 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
14495 formatdate parser function, with default format
14497 {{#formatdate:2009-03-24|mdy}}
14499 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
14504 Spacing of numbers in formatted dates
14506 {{#formatdate:January 15}}
14508 <p><span class="mw-formatted-date" title="01-15">January 15</span>
14513 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
14515 language=nl title=[[MediaWiki:Common.css]]
14517 {{#formatdate:2009-03-24|dmy}}
14519 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
14532 Edit comment with link
14536 I like the [[Main Page]] a lot
14538 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
14542 Edit comment with link and link text
14546 I like the [[Main Page|best pages]] a lot
14548 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14552 Edit comment with link and link text with suffix
14556 I like the [[Main Page|best page]]s a lot
14558 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14562 Edit comment with section link (non-local, eg in history list)
14564 comment title=[[Main Page]]
14566 /* External links */ removed bogus entries
14568 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14572 Edit comment with section link and text before it (non-local, eg in history list)
14574 comment title=[[Main Page]]
14576 pre-comment text /* External links */ removed bogus entries
14578 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>
14582 Edit comment with section link (local, eg in diff view)
14584 comment local title=[[Main Page]]
14586 /* External links */ removed bogus entries
14588 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14592 Edit comment with subpage link (bug 14080)
14596 title=[[Subpage test]]
14598 Poked at a [[/subpage]] here...
14600 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
14604 Edit comment with subpage link and link text (bug 14080)
14608 title=[[Subpage test]]
14610 Poked at a [[/subpage|neat little page]] here...
14612 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
14616 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
14619 title=[[Subpage test]]
14621 Poked at a [[/subpage]] here...
14623 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
14627 Edit comment with bare anchor link (local, as on diff)
14631 title=[[Main Page]]
14635 <a href="#section">#section</a>
14639 Edit comment with bare anchor link (non-local, as on history)
14642 title=[[Main Page]]
14646 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
14650 Anchor starting with underscore
14654 <p><a href="#_ref">One</a>
14659 Id starting with underscore
14661 <div id="_ref"></div>
14663 <div id="_ref"></div>
14668 Space normalisation on autocomment (bug 22784)
14671 title=[[Main Page]]
14673 /* __hello__world__ */
14675 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
14679 percent-encoding and + signs in comments (Bug 26410)
14683 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
14685 <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>
14689 Bad images - basic functionality
14698 Bad images - bug 16039: text after bad image disappears
14712 Verify that displaytitle works (bug #22501) no displaytitle
14716 wgAllowDisplayTitle=true
14717 wgRestrictDisplayTitle=false
14719 this is not the the title
14722 <p>this is not the the title
14727 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
14732 wgAllowDisplayTitle=true
14733 wgRestrictDisplayTitle=false
14735 this is not the the title
14736 {{DISPLAYTITLE:whatever}}
14739 <p>this is not the the title
14744 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
14749 wgAllowDisplayTitle=true
14750 wgRestrictDisplayTitle=true
14752 this is not the the title
14753 {{DISPLAYTITLE:whatever}}
14756 <p>this is not the the title
14761 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
14766 wgAllowDisplayTitle=true
14767 wgRestrictDisplayTitle=true
14769 this is not the the title
14770 {{DISPLAYTITLE:screen}}
14773 <p>this is not the the title
14778 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
14783 wgAllowDisplayTitle=false
14785 this is not the the title
14786 {{DISPLAYTITLE:screen}}
14789 <p>this is not the the title
14790 <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>
14795 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
14800 wgAllowDisplayTitle=false
14802 this is not the the title
14805 <p>this is not the the title
14810 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
14815 wgAllowDisplayTitle=true
14816 wgRestrictDisplayTitle=true
14818 this is not the the title
14819 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
14821 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
14822 <p>this is not the the title
14827 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
14832 wgAllowDisplayTitle=true
14833 wgRestrictDisplayTitle=true
14835 this is not the the title
14836 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
14838 <span style="color: red;">s</span>creen
14839 <p>this is not the the title
14844 preload: check <noinclude> and <includeonly>
14848 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
14854 preload: check <onlyinclude>
14858 Goodbye <onlyinclude>Hello world</onlyinclude>
14864 preload: can pass tags through if we want to
14868 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
14870 <includeonly>Hello world</includeonly>
14874 preload: check that it doesn't try to do tricks
14878 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14880 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14884 Play a bit with r67090 and bug 3158
14888 <div style="width:50% !important"> </div>
14889 <div style="width:50% !important"> </div>
14890 <div style="width:50% !important"> </div>
14891 <div style="border : solid;"> </div>
14893 <div style="width:50% !important"> </div>
14894 <div style="width:50% !important"> </div>
14895 <div style="width:50% !important"> </div>
14896 <div style="border : solid;"> </div>
14901 HTML5 data attributes
14903 <span data-foo="bar">Baz</span>
14904 <p data-abc-def_hij="">Quuz</p>
14906 <p><span data-foo="bar">Baz</span>
14908 <p data-abc-def_hij="">Quuz</p>
14913 percent-encoding and + signs in internal links (Bug 26410)
14915 [[User:+%]] [[Page+title%]]
14916 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14917 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14918 [[%33%45]] [[%33%45+]]
14920 <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>
14921 <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>
14922 <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>
14923 <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>
14928 Special characters in embedded file links (bug 27679)
14930 [[File:Contains & ampersand.jpg]]
14931 [[File:Does not exist.jpg|Title with & ampersand]]
14933 <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>
14934 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14940 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14942 Text's been normalized?
14944 <p>Text's been normalized?
14949 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14951 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14953 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14958 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14960 [http://www.example.org/ ideograms]
14962 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14967 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14969 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14971 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14995 Bug 31098 Template which includes system messages which includes the template
14999 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15000 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15005 Bug31490 Turkish: ucfirst 'blah'
15016 Bug31490 Turkish: ucfirst 'ix'
15027 Bug31490 Turkish: lcfirst 'BLAH'
15038 Bug31490 Turkish: ucfırst (with a dotless i)
15044 <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>
15049 Bug31490 ucfırst (with a dotless i) with English language
15055 <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>
15060 Bug 26375: TOC with italics
15062 title=[[Main Page]]
15065 == ''Lost'' episodes ==
15067 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15069 <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>
15072 <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>
15077 Bug 26375: TOC with bold
15079 title=[[Main Page]]
15082 == '''should be bold''' then normal text ==
15084 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15086 <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>
15089 <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>
15094 Bug 33845: Headings become cursive in TOC when they contain an image
15096 title=[[Main Page]]
15099 == Image [[Image:foobar.jpg]] ==
15101 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15103 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
15106 <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>
15111 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
15113 title=[[Main Page]]
15116 == <blockquote>Quote</blockquote> ==
15118 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15120 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
15123 <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>
15128 Unclosed tags in TOC
15130 title=[[Main Page]]
15134 <small>Hanc marginis exiguitas non caperet.</small>
15137 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15139 <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>
15142 <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>
15143 <p><small>Hanc marginis exiguitas non caperet.</small>
15149 Multiple tags in TOC
15152 == <i>Foo</i> <b>Bar</b> ==
15154 == <i>Foo</i> <blockquote>Bar</blockquote> ==
15156 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15158 <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>
15159 <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>
15162 <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>
15163 <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>
15168 Tags with parameters in TOC
15171 == <sup class="in-h2">Hello</sup> ==
15173 == <sup class="a > b">Evilbye</sup> ==
15175 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15177 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
15178 <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>
15181 <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>
15182 <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>
15187 span tags with directionality in TOC
15190 == <span dir="ltr">C++</span> ==
15192 == <span dir="rtl">זבנג!</span> ==
15194 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
15196 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
15198 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
15200 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15202 <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>
15203 <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>
15204 <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>
15205 <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>
15206 <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>
15209 <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>
15210 <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>
15211 <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>
15212 <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>
15213 <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>
15220 == {{int:headline_sample}} ==
15224 Bug 32057: Title needed when expanding <h> nodes.
15226 title=[[Main Page]]
15230 <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>
15235 Strip marker in urlencode
15237 {{urlencode:x<nowiki/>y}}
15238 {{urlencode:x<nowiki/>y|wiki}}
15239 {{urlencode:x<nowiki/>y|path}}
15266 Strip marker in formatNum
15268 {{formatnum:1<nowiki/>2}}
15269 {{formatnum:1<nowiki/>2|R}}
15277 Check noCommafy in formatNum
15281 {{formatnum:123456.78}}
15282 {{formatnum:123456.78|NOSEP}}
15290 Strip marker in grammar
15294 {{grammar:elative|foo<nowiki/>bar}}
15301 Strip marker in padleft
15303 {{padleft:|2|x<nowiki/>y}}
15310 Strip marker in padright
15312 {{padright:|2|x<nowiki/>y}}
15319 Strip marker in anchorencode
15321 {{anchorencode:x<nowiki/>y}}
15328 nowiki inside link inside heading (bug 18295)
15330 ==[[foo|x<nowiki>y</nowiki>z]]==
15332 <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>
15337 new support for bdi element (bug 31817)
15339 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15341 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15346 Ignore pipe between table row attributes
15350 |- id=foo | style='color: red'
15358 <tr id="foo" style="color: red">
15365 Gallery override link with WikiLink (bug 34852)
15368 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
15371 <ul class="gallery mw-gallery-traditional">
15372 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15373 <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>
15374 <div class="gallerytext">
15384 Gallery override link with absolute external link (bug 34852)
15387 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
15390 <ul class="gallery mw-gallery-traditional">
15391 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15392 <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>
15393 <div class="gallerytext">
15403 Gallery override link with malicious javascript (bug 34852)
15406 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
15409 <ul class="gallery mw-gallery-traditional">
15410 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15411 <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>
15412 <div class="gallerytext">
15422 Gallery with invalid title as link (bug 43964)
15425 File:foobar.jpg|link=<
15428 <ul class="gallery mw-gallery-traditional">
15429 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15430 <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>
15431 <div class="gallerytext">
15439 Language parser function
15448 Padleft and padright as substr
15450 {{padleft:|3|abcde}}
15451 {{padright:|3|abcde}}
15459 Special parser function
15461 {{#special:RandomPage}}
15462 {{#special:BaDtItLe}}
15463 {{#special:Foobar}}
15472 Bug 34939 - Case insensitive link parsing ([HttP://])
15474 [HttP://MediaWiki.Org/]
15476 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
15481 Bug 34939 - Case insensitive link parsing ([HttP:// title])
15483 [HttP://MediaWiki.Org/ MediaWiki]
15485 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
15490 Bug 34939 - Case insensitive link parsing (HttP://)
15492 HttP://MediaWiki.Org/
15494 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
15500 ### Parsoids-specific tests
15501 ### Parsoid-PHP parser incompatibilities
15504 1. SOL-sensitive wikitext tokens as template-args
15506 parsoid=wt2html,wt2wt
15512 <span about="#mwt1" typeof="mw:Transclusion">
15513 </span><ul about="#mwt1"><li>a</li></ul>
15514 <span about="#mwt2" typeof="mw:Transclusion">
15515 </span><ol about="#mwt2"><li>a</li></ol>
15516 <span about="#mwt3" typeof="mw:Transclusion">
15517 </span><dl about="#mwt3"><dd>a</dd></dl>
15520 #### ----------------------------------------------------------------
15521 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
15522 #### tags. Parsoid's output for these tags differs from that of the
15524 #### ----------------------------------------------------------------
15527 Ref: 1. ref-location should be replaced with an index span
15532 B <ref name="x">foo</ref>
15535 <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>
15536 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>
15537 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>
15541 Ref: 2. ref-tags with identical names should all get the same index
15545 A <ref name="x">foo</ref>
15548 <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>
15549 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>
15553 Ref: 3. spaces in ref-names should be ignored
15557 A <ref name="x">foo</ref>
15558 B <ref name=" x " />
15561 <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>
15562 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>
15563 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>
15567 Ref: 4. 'constructor' should be accepted as a valid ref-name
15568 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
15572 A <ref name="constructor">foo</ref>
15574 <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>
15578 Ref: 5. body should accept generic wikitext
15583 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
15588 <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>
15590 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15591 <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>
15596 Ref: 6. indent-pres should not be output in ref-body
15608 <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>
15610 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15611 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15618 Ref: 6. No p-wrapping in ref-body
15637 <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>
15639 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15640 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15654 Ref: 8. transclusion wikitext has lower precedence
15658 A <ref> foo {{echo|</ref> B C}}
15662 <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>
15664 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15665 <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>
15669 Ref: 9. unclosed comments should not leak out of ref-body
15673 A <ref> foo <!--</ref> B C
15677 <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>
15679 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15680 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
15684 Ref: 10. Unclosed HTML tags should not leak out of ref-body
15688 A <ref> <b> foo </ref> B C
15692 <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>
15694 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15695 <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>
15699 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
15706 <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
15707 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>
15711 Ref: 12. ref-tags act as trailing newline migration barrier
15715 <!--the newline at the end of this line moves out of the p-tag-->a
15717 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
15722 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
15725 <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>
15726 <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>
15733 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
15741 <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
15742 <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>
15746 Ref: 14. A nested ref-tag should be emitted as plain text
15750 <ref>foo <ref>bar</ref> baz</ref>
15754 <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>
15756 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
15757 <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>
15761 Ref: 15. ref-tags with identical names should get identical indexes
15765 A1 <ref name="a">foo</ref> A2 <ref name="a" />
15766 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
15770 <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>
15771 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>
15773 <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>
15777 References: 1. references tag without any refs should be handled properly
15783 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
15787 References: 2. references tag with group only outputs references from that group
15791 A <ref group="a">foo</ref>
15792 B <ref group="b">bar</ref>
15794 <references group='a' />
15796 <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>
15797 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>
15799 <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>
15803 References: 3. ref list should be cleared after processing references
15815 <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>
15817 <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>
15819 <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>
15821 <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>
15825 References: 4. only referenced group should be cleared after processing references
15829 A <ref group="a">afoo</ref>
15832 <references group="a"/>
15838 <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>
15839 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>
15841 <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>
15843 <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>
15845 <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>
15849 References: 5. ref tags in references should be processed while ignoring all other content
15854 B <ref name="b">bar</ref>
15857 <ref name="a">foo</ref>
15858 This should just get lost.
15861 <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>
15862 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>
15864 <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>
15868 References: 6. <references /> from a transclusion
15872 {{echo|<references />}}
15874 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15878 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
15882 A <ref>foo bar for a</ref>
15888 <ref name="b">foo</ref>
15891 <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>
15892 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>
15894 <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>
15896 <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>
15900 #### ----------------------------------------------------------------
15901 #### The following section of tests are primarily to test
15902 #### wikitext escaping capabilities of Parsoid. Given that
15903 #### escaping can be done any number of ways, the wikitext (input)
15904 #### is always adjusted to reflect how Parsoid adds nowiki
15907 #### We are marking several tests as parsoid-only since the
15908 #### HTML in the result section is different from what the
15909 #### PHP parser generates for it.
15910 #### ----------------------------------------------------------------
15913 #### --------------- Headings ---------------
15915 #### 1. Nested inside html <h1>=foo=</h1>
15916 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15917 #### 3. Nested inside html with wikitext split by html tags
15918 #### 4. No escape needed
15919 #### 5. Empty headings <h1></h1>
15920 #### 6. Heading chars in SOL context
15921 #### ----------------------------------------
15923 Headings: 0. Unnested
15927 <nowiki>=foo=</nowiki>
15929 <nowiki> =foo= </nowiki>
15931 <nowiki>=foo=</nowiki>
15933 =foo''a''<nowiki>=</nowiki>
15935 <p><span typeof="mw:Nowiki">=foo=</span></p>
15937 <p><span typeof="mw:Nowiki"> =foo= </span>
15939 <span typeof="mw:Nowiki">=foo=</span></p>
15941 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15945 Headings: 1. Nested inside html
15949 =<nowiki>=foo=</nowiki>=
15951 ==<nowiki>=foo=</nowiki>==
15953 ===<nowiki>=foo=</nowiki>===
15955 ====<nowiki>=foo=</nowiki>====
15957 =====<nowiki>=foo=</nowiki>=====
15959 ======<nowiki>=foo=</nowiki>======
15961 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15962 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15963 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15964 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15965 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15966 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15970 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15975 <nowiki>*</nowiki>bar
15981 <nowiki>=bar=</nowiki>
15989 Headings: 3. Nested inside html with wikitext split by html tags
15993 =='''bold'''<nowiki>foo=</nowiki>=
15995 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15999 Headings: 4a. No escaping needed (testing just h1 and h2)
16017 =<nowiki>=</nowiki>=
16025 <h1><i>=</i>foo=</h1>
16026 <h1><span typeof="mw:Nowiki">=</span></h1>
16030 Headings: 4b. No escaping needed (inside p-tags)
16045 Headings: 5. Empty headings
16057 =====<nowiki/>=====
16059 ======<nowiki/>======
16070 Headings: 6a. Heading chars in SOL context (with trailing spaces)
16074 <nowiki>=a=</nowiki>
16076 <nowiki>=a=</nowiki>
16078 <nowiki>=a=</nowiki>
16080 <nowiki>=a=</nowiki>
16089 Headings: 6b. Heading chars in SOL context (with trailing newlines)
16117 Headings: 6c. Heading chars in SOL context (leading newline break)
16122 <nowiki>=b=</nowiki>
16129 Headings: 6d. Heading chars in SOL context (with interspersed comments)
16133 <!--c0--><nowiki>=a=</nowiki>
16135 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
16137 <p><!--c0-->=a=</p>
16138 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
16142 Headings: 6d. Heading chars in SOL context (No escaping needed)
16151 #### --------------- Lists ---------------
16152 #### 0. Outside nests (*foo, etc.)
16153 #### 1. Nested inside html <ul><li>*foo</li></ul>
16154 #### 2. Inside definition lists
16155 #### 3. Only bullets at start should be escaped
16156 #### 4. No escapes needed
16157 #### 5. No unnecessary escapes
16158 #### 6. Escape bullets in SOL position
16159 #### 7. Escape bullets in a multi-line context
16160 #### ----------------------------------------
16163 Lists: 0. Outside nests
16165 <nowiki>*</nowiki>foo
16167 <nowiki>#</nowiki>foo
16175 Lists: 1. Nested inside html
16177 *<nowiki>*foo</nowiki>
16179 *<nowiki>#foo</nowiki>
16181 *<nowiki>:foo</nowiki>
16183 *<nowiki>;foo</nowiki>
16185 #<nowiki>*foo</nowiki>
16187 #<nowiki>#foo</nowiki>
16189 #<nowiki>:foo</nowiki>
16191 #<nowiki>;foo</nowiki>
16213 Lists: 2. Inside definition lists
16215 ;<nowiki>;foo</nowiki>
16217 ;<nowiki>:foo</nowiki>
16219 ;<nowiki>:foo</nowiki>
16222 :<nowiki>:foo</nowiki>
16237 Lists: 3. Only bullets at start of text should be escaped
16239 *<nowiki>*foo*bar</nowiki>
16241 *<nowiki>*foo</nowiki>''it''*bar
16245 <ul><li>*foo<i>it</i>*bar
16251 Lists: 4. No escapes needed
16263 <ul><li><i>foo</i>*bar
16265 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
16270 Lists: 5. No unnecessary escapes
16272 * bar <span><nowiki>[[foo]]</nowiki></span>
16274 *=bar <span><nowiki>[[foo]]</nowiki></span>
16276 *[[bar <span><nowiki>[[foo]]</nowiki></span>
16278 *]]bar <span><nowiki>[[foo]]</nowiki></span>
16280 *=bar <span>foo]]</span>=
16284 <ul><li> bar <span>[[foo]]</span>
16286 <ul><li>=bar <span>[[foo]]</span>
16288 <ul><li>[[bar <span>[[foo]]</span>
16290 <ul><li>]]bar <span>[[foo]]</span>
16292 <ul><li>=bar <span>foo]]</span>=
16294 <ul><li> <s></s>: a
16300 Lists: 6. Escape bullets in SOL position
16304 <!--cmt--><nowiki>*foo</nowiki>
16306 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
16310 Lists: 7. Escape bullets in a multi-line context
16313 <nowiki>*</nowiki>b
16320 #### --------------- HRs ---------------
16321 #### 1. Single line
16322 #### -----------------------------------
16325 HRs: 1. Single line
16329 ----<nowiki>----</nowiki>
16333 <hr><span typeof="mw:Nowiki">----</span>
16338 #### --------------- Tables ---------------
16339 #### 1a. Simple example
16340 #### 1b. No escaping needed (!foo)
16341 #### 1c. No escaping needed (|foo)
16342 #### 1d. No escaping needed (|}foo)
16344 #### 2a. Nested in td (<td>foo|bar</td>)
16345 #### 2b. Nested in td (<td>foo||bar</td>)
16346 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
16348 #### 3a. Nested in th (<th>foo!bar</th>)
16349 #### 3b. Nested in th (<th>foo!!bar</th>)
16350 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
16354 #### 4c. No escaping needed
16355 #### --------------------------------------
16358 Tables: 1a. Simple example
16369 Tables: 1b. No escaping needed
16378 Tables: 1c. No escaping needed
16387 Tables: 1d. No escaping needed
16396 Tables: 2a. Nested in td
16401 |<nowiki>foo|bar</nowiki>
16405 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
16409 Tables: 2b. Nested in td
16414 |<nowiki>foo||bar</nowiki>
16415 |''it''<nowiki>foo||bar</nowiki>
16419 <td><span typeof="mw:Nowiki">foo||bar</span></td>
16420 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
16424 Tables: 2c. Nested in td -- no escaping needed
16432 <table><tbody><tr><td>foo!!bar
16433 </td></tr></tbody></table>
16438 Tables: 3a. Nested in th
16446 <table><tbody><tr><th>foo!bar
16447 </th></tr></tbody></table>
16452 Tables: 3b. Nested in th
16457 !<nowiki>foo!!bar</nowiki>
16461 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
16466 Tables: 3c. Nested in th -- no escaping needed
16471 !<nowiki>foo||bar</nowiki>
16475 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
16479 Tables: 4a. Escape -
16487 |<nowiki>-bar</nowiki>
16491 <tr><th>-bar</th></tr>
16493 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
16497 Tables: 4b. Escape +
16505 |<nowiki>+bar</nowiki>
16509 <tr><th>+bar</th></tr>
16511 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
16515 Tables: 4c. No escaping needed
16534 <tr><td>foo-bar</td><td>foo+bar</td></tr>
16535 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
16543 ### SSS FIXME: Disabled right now because accurate html2wt
16544 ### on this snippet requires data-parsoid flags that we've
16545 ### stripped out of these tests. We should scheme how we
16546 ### we want to handle these kind of tests that require
16547 ### data-parsoid flags for accurate html2wt serialization
16550 Tables: 4d. No escaping needed
16568 #### --------------- Links ----------------
16569 #### 1. Quote marks in link text
16570 #### 2. Wikilinks: Escapes needed
16571 #### 3. Wikilinks: No escapes needed
16572 #### 4. Extlinks: Escapes needed
16573 #### 5. Extlinks: No escapes needed
16574 #### --------------------------------------
16576 Links 1. Quote marks in link text
16580 [[Foo|Foo<nowiki>''boo''</nowiki>]]
16582 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
16586 Links 2. WikiLinks: Escapes needed
16590 [[Foo|<nowiki>[Foobar]</nowiki>]]
16591 [[Foo|<nowiki>Foobar]</nowiki>]]
16592 [[Foo|x [Foobar] x]]
16593 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
16594 [[Foo|<nowiki>[[Bar]]</nowiki>]]
16595 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
16596 [[Foo|<nowiki>|Bar</nowiki>]]
16597 [[Foo|<nowiki>]]bar</nowiki>]]
16598 [[Foo|<nowiki>[[bar</nowiki>]]
16599 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
16601 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
16602 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
16603 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
16604 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
16605 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
16606 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
16607 <a href="Foo" rel="mw:WikiLink">|Bar</a>
16608 <a href="Foo" rel="mw:WikiLink">]]bar</a>
16609 <a href="Foo" rel="mw:WikiLink">[[bar</a>
16610 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
16614 Links 3. WikiLinks: No escapes needed
16621 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
16622 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
16626 Links 4. ExtLinks: Escapes needed
16630 [http://google.com <nowiki>[google]</nowiki>]
16631 [http://google.com <nowiki>google]</nowiki>]
16633 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
16634 <a href="http://google.com" rel="mw:ExtLink">google]</a>
16638 Links 5. ExtLinks: No escapes needed
16642 [http://google.com [google]
16644 <a href="http://google.com" rel="mw:ExtLink">[google</a>
16647 #### --------------- Quotes ---------------
16648 #### 1. Quotes inside <b> and <i>
16649 #### 2. Link fragments separated by <i> and <b> tags
16650 #### 3. Link fragments inside <i> and <b>
16651 #### 4. No escaping needed
16652 #### --------------------------------------
16654 1. Quotes inside <b> and <i>
16656 parsoid=html2wt,wt2wt
16658 ''<nowiki>'foo'</nowiki>''
16659 ''<nowiki>''foo''</nowiki>''
16660 ''<nowiki>'''foo'''</nowiki>''
16662 '''<nowiki>'foo'</nowiki>'''
16663 '''<nowiki>''foo''</nowiki>'''
16664 '''<nowiki>'''foo'''</nowiki>'''
16665 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
16666 '''foo'''<nowiki/>'s
16669 '<nowiki/>''foo''<nowiki/>'
16671 '''foo'''<nowiki/>'
16672 '<nowiki/>'''foo'''<nowiki/>'
16681 <b>foo'<i>bar'</i>baz</b>
16692 2. Link fragments separated by <i> and <b> tags
16694 [[''foo''<nowiki>hello]]</nowiki>
16696 [['''foo'''<nowiki>hello]]</nowiki>
16698 <p>[[<i>foo</i>hello]]
16699 </p><p>[[<b>foo</b>hello]]
16704 3. Link fragments inside <i> and <b>
16705 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
16706 this is one of the shortcomings of this format)
16708 ''[[foo''<nowiki>]]</nowiki>
16710 '''[[foo'''<nowiki>]]</nowiki>
16713 </p><p><b>[[foo</b>]]
16718 4. No escaping needed
16720 '<span>''bar''</span>'
16721 '<span>'''bar'''</span>'
16723 <p>'<span><i>bar</i></span>'
16724 '<span><b>bar</b></span>'
16728 #### ----------- Paragraphs ---------------
16729 #### 1. No unnecessary escapes
16730 #### --------------------------------------
16733 1. No unnecessary escapes
16735 bar <span><nowiki>[[foo]]</nowiki></span>
16737 =bar <span><nowiki>[[foo]]</nowiki></span>
16739 [[bar <span><nowiki>[[foo]]</nowiki></span>
16741 ]]bar <span><nowiki>[[foo]]</nowiki></span>
16743 =bar <span>foo]]</span><nowiki>=</nowiki>
16745 <p>bar <span>[[foo]]</span>
16746 </p><p>=bar <span>[[foo]]</span>
16747 </p><p>[[bar <span>[[foo]]</span>
16748 </p><p>]]bar <span>[[foo]]</span>
16749 </p><p>=bar <span>foo]]</span>=
16753 #### ----------------------- PRE --------------------------
16754 #### 1. Leading whitespace in SOL context should be escaped
16755 #### ------------------------------------------------------
16757 1. Leading whitespace in SOL context should be escaped
16761 <nowiki> </nowiki>a
16763 <nowiki> </nowiki> a
16765 <nowiki> </nowiki>a(tab)
16767 <nowiki> </nowiki> a
16769 <nowiki> </nowiki> a
16772 <nowiki> </nowiki>b
16775 <nowiki> </nowiki>b
16778 <nowiki> </nowiki> b
16784 <p><!--cmt--> a</p>
16793 #### --------------- HTML tags ---------------
16796 #### 3. multi-line html tag
16797 #### -----------------------------------------
16803 <a href="http://google.com">google</a>
16805 <a href="http://google.com">google</a>
16811 <nowiki><div>foo</div>
16812 <div style="color:red">foo</div></nowiki>
16814 <p><div>foo</div>
16815 <div style="color:red">foo</div>
16820 3. multi-line html tag
16835 <nowiki><ref>foo</ref></nowiki>
16837 <p><ref>foo</ref>
16841 #### --------------- Others ---------------
16845 <nowiki>foo</nowiki>
16847 <p><nowiki>foo</nowiki>
16851 ## The quote-char in the input is necessary for triggering the bug
16853 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
16855 parsoid=wt2wt,html2wt
16864 Tag-like HTML structures are passed through as text
16886 </p><p>1<d e>f
16891 # This was a bug in the PHP parser (see bug 17663 and its dups,
16892 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
16894 Tag names followed by punctuation should not be recognized as tags
16898 <p><s.ome> text
16903 HTML tag with necessary entities in attributes
16905 <span title="&amp;">foo</span>
16907 <p><span title="&amp;">foo</span>
16912 HTML tag with 'unnecessary' entity encoding in attributes
16914 <span title="&">foo</span>
16916 <p><span title="&">foo</span>
16921 HTML tag with broken attribute value quoting
16923 <span title="Hello world>Foo</span>
16925 <p><span>Foo</span>
16930 Parsoid-only: HTML tag with broken attribute value quoting
16934 <span title="Hello world>Foo</span>
16936 <p><span title="Hello world">Foo</span>
16941 Table with broken attribute value quoting
16944 | title="Hello world|Foo
16955 Table with broken attribute value quoting on consecutive lines
16958 | title="Hello world|Foo
16959 | style="color:red|Bar
16972 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16977 | title="Hello world|Foo
16978 | style="color:red|Bar
16983 <td title="Hello world">Foo
16984 </td><td style="color: red">Bar
16985 </td></tr></tbody></table>
16990 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
17000 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
17010 Accept empty td cell attribute
17013 | align="center" | foo || |
17018 <td align="center"> foo </td>
17025 Non-empty attributes in th-cells
17028 ! Foo !! style="color: red" | Bar
17034 <th style="color: red"> Bar
17040 Accept empty attributes in th-cells
17055 Empty table rows go away
17076 ### Parsoid-centric tests for testing RTing of inter-element separators
17077 ### Edge cases not tested by existing parser tests and specific to
17078 ### Parsoid-specific serialization strategies.
17082 RT-ed inter-element separators should be valid separators
17095 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
17096 (Parsoid-only since PHP parser relies on Tidy for correct output)
17112 Empty TD followed by TD with tpl-generated attribute
17117 |{{echo|style='color:red'}}|foo
17131 Indented table with an empty td
17150 Empty TR followed by a template-generated TR
17151 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
17153 parsoid=wt2html,wt2wt
17157 {{echo|<tr><td>foo</td></tr>}}
17163 <tr typeof="mw:Transclusion">
17164 <td>foo</td></tr></tbody></table>
17167 ## PHP and parsoid output differ for this, and since this is primarily
17168 ## for testing Parsoid's serializer, marking this Parsoid only
17170 Empty TR followed by mixed-ws-comment line should RT correctly
17184 <td> <!--c--></td></tr>
17186 <td><!--c--> <!--d--></td></tr>
17192 Multi-line image caption generated by templates with/without trailing newlines
17196 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
17197 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
17199 <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>
17200 <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>
17204 ## PHP emits broken html for this, and since this is primarily
17205 ## a Parsoid serializer test, marking this Parsoid only
17207 Improperly nested inline or quotes tags with whitespace in between
17211 <span> <s>x</span> </s>
17214 <p><span> <s>x</s></span><s> </s>
17215 <b> <i>x</i></b><i> </i>
17220 Encapsulate protected attributes from wt
17224 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
17226 <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>
17230 ## Currently the p-wrapper is fragile in how adds / removes transformations.
17231 ## Having nested or stray pre tags results in the attempt to add duplicates,
17232 ## causing an assertion fail. This test tries to prevent that situation.
17234 Ensure ParagraphWrapper can deal with stray closing pre tags
17243 # -----------------------------------------------------------------
17244 # The following section of tests are primarily to spec requirements
17245 # around serialization of new/edited content.
17247 # All these tests are marked Parsoid html2wt and html2html only
17248 # ----------------------------------------------------------------
17251 Image: Modifying size of an image
17255 [[Image:Wiki.png|230x230px]]
17257 <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>
17261 Image: New block level image should have \n before and after
17266 [[File:Wiki.png|right|thumb|150x150px]]
17269 <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>
17272 # Wacky -- the leading newline in input is required because
17273 # that is what the serializer emits. To be fixed. Not fixing
17274 # the test because this test is required to test serialization of
17275 # new content and preferred whitespace style.
17277 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
17285 <li><p>foo</p></li>
17289 # Wacky -- the leading newline in input is required because
17290 # that is what the serializer emits. To be fixed. Not fixing
17291 # the test because this test is required to test serialization of
17292 # new content and preferred whitespace style.
17294 Lists: Add space after bullets
17301 * <span> baz</span>
17306 <li><span> baz</span></li>
17311 Parsoid: Serialize positional parameters with = in them as named parameter
17317 <p about="#mwt1" typeof="mw:Transclusion"
17318 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
17322 # -----------------------------------------------------------------
17323 # End of section for Parsoid-only html2wt tests for serialization
17325 # -----------------------------------------------------------------
17332 Try for 100% code coverage