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
1244 Block tag on one line (<div>)
1256 Block tag on one line (<blockquote>)
1258 a <blockquote>foo</blockquote>
1262 a <blockquote>foo</blockquote>
1268 Block tag on both lines (<div>)
1280 Block tag on both lines (<blockquote>)
1282 a <blockquote>foo</blockquote>
1284 b <blockquote>foo</blockquote>
1286 a <blockquote>foo</blockquote>
1287 b <blockquote>foo</blockquote>
1292 Multiple lines without block tags
1310 Empty lines between lines with block tags
1340 ### Preformatted text
1349 And a [[Main Page|link]]
1355 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1360 Tabs don't trigger preformatted text
1364 This is preformatted text.
1370 <pre>This is preformatted text.
1376 Ident preformatting with inline content
1387 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1404 Regression with preformatted in <center>
1418 Bug 52763: Preformatted in <blockquote>
1432 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1449 Bug 15491: <ins>/<del> in blockquote
1452 Foo <del>bar</del> <ins>baz</ins> quux
1456 <p>Foo <del>bar</del> <ins>baz</ins> quux
1462 # Note that the p-wrapping is newline sensitive, which could be
1463 # considered a bug: tidy will wrap only the 'Foo' in the example
1464 # below in a <p> tag. (see comment 23-25 of bug #6200)
1466 Bug 15491: <ins>/<del> in blockquote (2)
1468 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1471 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1477 <pre> with attributes (bug 3202)
1479 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1481 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1486 <pre> with width attribute (bug 3202)
1488 <pre width="8">Narrow screen goodies</pre>
1490 <pre width="8">Narrow screen goodies</pre>
1495 <pre> with forbidden attribute (bug 3202)
1497 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1499 <pre width="8">Narrow screen goodies</pre>
1504 Entities inside <pre>
1513 <pre> with forbidden attribute values (bug 3202)
1515 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1517 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1522 <nowiki> inside <pre> (bug 13238)
1530 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1538 <pre><nowiki>Foo</nowiki></pre>
1543 <nowiki> and <pre> preference (first one wins)
1574 </pre> inside nowiki
1576 <nowiki></pre></nowiki>
1583 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1591 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1601 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1613 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1634 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1638 {{echo| foo}}{{echo| bar}}
1643 {{echo|<!--cmt--> foo}}
1645 <!--cmt-->{{echo| foo}}
1647 {{echo|{{echo| }}bar}}
1665 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1701 #--------------------------------------------------------------------
1702 # Transclusion parameter whitespace stripping tests
1703 # Behavior is different for positional and named parameters
1704 #--------------------------------------------------------------------
1706 Templates: Strip leading and trailing whitespace from named-param values
1710 {{echo|1= {{echo|b}} }}
1729 Templates: Don't strip whitespace from positional-param values
1734 {{echo|{{echo|b}} }}
1774 #--------------------------------------------------------------------
1775 # Transclusion parameter escaping tests
1776 #--------------------------------------------------------------------
1778 Templates: Parsoid parameter escaping test 1
1782 {{echo|[foo]|{{echo|[bar]}}}}
1784 <p about="#mwt1" typeof="mw:Transclusion"
1785 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1789 Parsoid: Pipes in external links in template parameter
1793 {{echo|[{{echo|http://example.com}} link]}}
1795 <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>
1799 Parsoid: pipe in transclusion parameter
1803 {{echo|http://foo.com/a|b}}
1805 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1806 typeof="mw:Transclusion"
1807 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>
1811 Parsoid: Pipe in external link target and content in template parameter
1813 parsoid=html2wt,wt2wt
1815 {{echo|[http://foo.com/a|b a|b]}}
1817 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1818 typeof="mw:Transclusion"
1819 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1820 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1824 Templates: Dont escape already nowiki-escaped text in template parameters
1826 parsoid=html2wt,wt2wt
1828 {{echo|foo<nowiki>|</nowiki>bar}}
1829 {{echo|<nowiki><div></nowiki>}}
1830 {{echo|<nowiki></nowiki>}}
1832 <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>
1833 <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>
1834 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1839 ### Parsoid-centric tests for testing RT edge cases for pre
1843 1a. Indent-Pre and Comments
1856 1b. Indent-Pre and Comments
1869 1c. Indent-Pre and Comments
1882 1d. Indent-Pre and Comments
1883 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
1896 2a. Indent-Pre and tables
1917 2b. Indent-Pre and tables
1933 2c. Indent-Pre and tables (bug 42252)
1950 3a. Indent-Pre and block tags (single-line html)
1954 <blockquote> foo </blockquote>
1959 <blockquote> foo </blockquote>
1960 <pre><span> foo </span>
1965 3b. Indent-Pre and block tags (pre-content on separate line)
2029 4. Multiple spaces at start-of-line
2048 5. White-space in indent-pre
2049 NOTE: the white-space char on 2nd line is significant
2062 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2085 7a. Indent-pre and category links
2087 parsoid=wt2html,wt2wt
2089 [[Category:foo]] <!-- No pre-wrapping -->
2090 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2092 <span typeof="mw:Transclusion"> </span>
2096 7b. Indent-pre and category links
2098 parsoid=wt2html,wt2wt
2101 [[Category:foo]] {{echo|b}}
2103 <pre> a <span typeof="mw:Transclusion">b</span>
2108 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2112 HTML-pre: 1. embedded newlines
2148 HTML-pre: 2: indented text
2161 HTML-pre: 3: other wikitext
2182 ### Definition lists
2189 <dl><dt> name </dt><dd> Definition
2195 Definition list for indentation only
2199 <dl><dd> Indented text
2205 Definition list with no space
2209 <dl><dt>name</dt><dd>Definition
2215 Definition list with URL link
2217 ; http://example.com/ : definition
2219 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
2225 Definition list with bracketed URL link
2227 ;[http://www.example.com/ Example]:Something about it
2229 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
2235 Definition list with wikilink containing colon
2237 ; [[Help:FAQ]]: The least-read page on Wikipedia
2239 <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
2244 # At Brion's and JeLuF's insistence... :)
2246 Definition list with news link containing colon
2248 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2250 <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!
2256 Malformed definition list with colon
2258 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2260 <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
2266 Definition lists: colon in external link text
2268 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2270 <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
2276 Definition lists: colon in HTML attribute
2278 ;<b style="display: inline">bold</b>
2280 <dl><dt><b style="display: inline">bold</b>
2286 Definition lists: self-closed tag
2288 ;one<br/>two : two-line fun
2290 <dl><dt>one<br />two </dt><dd> two-line fun
2296 Bug 11748: Literal closing tags
2300 <dd>test test test test test</dd>
2302 <dd>test test test test test</dd>
2307 <dd>test test test test test</dd>
2309 <dd>test test test test test</dd>
2315 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2318 ; term : description
2324 <dl><dt> term </dt><dd> description
2335 Definition list with empty definition and following paragraph
2340 <dl><dt> term</dt><dd>
2347 Nested definition lists using html syntax
2364 Definition Lists: No nesting: Multiple dd's
2378 Definition Lists: Indentation: Regular
2394 Definition Lists: Indentation: Missing 1st level
2408 Definition Lists: Indentation: Multi-level indent
2412 <dl><dd><dl><dd><dl><dd>i3
2420 Definition Lists: Hacky use to indent tables
2427 should be left alone
2429 <dl><dd><dl><dd><table>
2434 </td></tr></table></dd></dl></dd></dl>
2436 should be left alone
2442 Definition Lists: Hacky use to indent tables (WS-insensitive)
2450 <dl><dd> <table><tr><td>a</td></tr></table> </dd></dl>
2452 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2453 ## as an empty dt item. It also ignores all but the last ";" when followed
2454 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2455 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2458 ## Ex: ";;t2 ::d2" is transformed into:
2470 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2471 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2482 ## All Parsoid only definition list tests have this difference.
2484 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2485 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2488 Table / list interaction: indented table with lists in table contents
2510 </td></tr></table></dd></dl>
2515 Table / list interaction: lists nested in tables nested in indented lists
2540 </td></tr></table></dd></dl>
2548 Definition Lists: Nesting: Multi-level (Parsoid only)
2578 Definition Lists: Nesting: Test 2 (Parsoid only)
2598 Definition Lists: Nesting: Test 3 (Parsoid only)
2626 Definition Lists: Nesting: Test 4
2631 <dl><dd><dl><dd><dl><dt>t3
2640 ## The Parsoid team believes the following three test exposes a
2641 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2642 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2644 Definition Lists: Mixed Lists: Test 1 (php)
2652 <dl><dd><dl><dt><ul><li> foo
2662 Definition Lists: Mixed Lists: Test 1 (parsoid)
2670 <dl><dd><dl><dt><ul><li> foo
2671 </li></ul></dt><dd><ul><li> bar
2672 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2676 Definition Lists: Mixed Lists: Test 2
2690 Definition Lists: Mixed Lists: Test 3
2695 <ul><li><dl><dd><dl><dd><dl><dd> d1
2706 Definition Lists: Mixed Lists: Test 4
2711 <ul><li><dl><dt>d1 </dt><dd>d2
2712 </dd><dt>d3 </dt><dd>d4
2720 Definition Lists: Mixed Lists: Test 5
2735 Definition Lists: Mixed Lists: Test 6
2740 <ol><li><ul><li><dl><dd>d1
2752 Definition Lists: Mixed Lists: Test 7
2766 Definition Lists: Mixed Lists: Test 8
2782 Definition Lists: Mixed Lists: Test 9
2786 <ul><li><dl><dt>foo </dt><dd>bar
2794 Definition Lists: Mixed Lists: Test 10
2798 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2805 # The Parsoid team disagrees with the PHP parser's seemingly-random
2806 # rules regarding dd/dt on the next two tests. Parsoid is more
2807 # consistent, and recognizes the shared nesting and keeps the
2808 # still-open tags around until the nesting is complete.
2811 Definition Lists: Mixed Lists: Test 11 (php)
2818 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2823 <dl><dt>boo </dt><dd>baz
2832 Definition Lists: Mixed Lists: Test 11 (parsoid)
2854 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2855 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2856 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2857 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2862 Definition Lists: Weird Ones: Test 1 (php)
2866 *#;*::;; foo : bar (who uses this?)
2868 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2880 Definition Lists: Weird Ones: Test 1 (parsoid)
2884 *#;*::;; foo : bar (who uses this?)
2901 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2902 <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>
2909 External links: non-bracketed
2911 Non-bracketed: http://example.com
2913 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2918 External links: numbered
2920 Numbered: [http://example.com]
2921 Numbered: [http://example.net]
2922 Numbered: [http://example.com]
2924 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2925 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2926 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2931 External links: specified text
2933 Specified text: [http://example.com link]
2935 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2940 External links: trail
2942 Linktrails should not work for external links: [http://example.com link]s
2944 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2949 External links: dollar sign in URL
2951 http://example.com/1$2345
2953 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2958 External links: dollar sign in URL (named)
2960 [http://example.com/1$2345]
2962 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2967 External links: open square bracket forbidden in URL (bug 4377)
2969 http://example.com/1[2345
2971 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2976 External links: open square bracket forbidden in URL (named) (bug 4377)
2978 [http://example.com/1[2345]
2980 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2985 External links: nowiki in URL link text (bug 6230)
2987 [http://example.com/ <nowiki>''example site''</nowiki>]
2989 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2994 External links: newline forbidden in text (bug 6230 regression check)
2996 [http://example.com/ first
2999 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3005 External links: Pipe char between url and text
3007 [http://example.com | link]
3009 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3014 External links: protocol-relative URL in brackets
3016 [//example.com/ Test]
3018 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3023 External links: protocol-relative URL in brackets without text
3027 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3032 External links: protocol-relative URL in free text is left alone
3036 <p>//example.com/Foo
3041 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3043 foo//example.com/Foo
3045 <p>foo//example.com/Foo
3052 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3054 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3059 External image from https
3061 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3063 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3068 External image (when not allowed)
3070 wgAllowExternalImages=0
3072 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3074 <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>
3079 Link to non-http image, no img tag
3081 Link to non-http image, no img tag: ftp://example.com/test.jpg
3083 <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>
3088 External links: terminating separator
3090 Terminating separator: http://example.com/thing,
3092 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3097 External links: intervening separator
3099 Intervening separator: http://example.com/1,2,3
3101 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3106 External links: old bug with URL in query
3108 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3110 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3115 External links: old URL-in-URL bug, mixed protocols
3117 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3119 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3124 External links: URL in text
3126 URL in text: [http://example.com http://example.com]
3128 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3133 External links: Clickable images
3135 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3137 <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>
3142 External links: raw ampersand
3144 Old & use: http://x&y
3146 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3151 External links: encoded ampersand
3153 Old & use: http://x&y
3155 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3160 External links: encoded equals (bug 6102)
3162 http://example.com/?foo=bar
3164 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3169 External links: [raw ampersand]
3171 Old & use: [http://x&y]
3173 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3178 External links: [encoded ampersand]
3180 Old & use: [http://x&y]
3182 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3187 External links: [encoded equals] (bug 6102)
3189 [http://example.com/?foo=bar]
3191 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3196 External links: [IDN ignored character reference in hostname; strip it right off]
3198 [http://e‌xample.com/]
3200 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3204 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3205 # Where an external link could easily circumvent the sanitization of the text of
3206 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3207 # test demands a higher standard. That's a bit strange.
3211 # http://example.com -> [http://example.com|http://example.com]
3212 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3214 # The first example is sanitized, but the second is not. Any security benefits
3215 # from this production are trivial to circumvent. Either remove this test and
3216 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3217 # the test accordingly.
3222 External links: IDN ignored character reference in hostname; strip it right off
3224 http://e‌xample.com/
3226 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3231 External links: www.jpeg.org (bug 554)
3235 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3240 External links: URL within URL (original bug 2)
3242 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3244 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3249 BUG 361: URL inside bracketed URL
3251 [http://www.example.com/foo http://www.example.com/bar]
3253 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3258 BUG 361: URL within URL, not bracketed
3260 http://www.example.com/foo?=http://www.example.com/bar
3262 <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>
3267 BUG 289: ">"-token in URL-tail
3269 http://www.example.com/<hello>
3271 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3276 BUG 289: literal ">"-token in URL-tail
3278 http://www.example.com/<b>html</b>
3280 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3285 BUG 289: ">"-token in bracketed URL
3287 [http://www.example.com/<hello> stuff]
3289 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3294 BUG 289: literal ">"-token in bracketed URL
3296 [http://www.example.com/<b>html</b> stuff]
3298 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3303 BUG 289: literal double quote at end of URL
3305 http://www.example.com/"hello"
3307 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3312 BUG 289: literal double quote in bracketed URL
3314 [http://www.example.com/"hello" stuff]
3316 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3321 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3323 [http://www.example.com test]
3325 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3330 External links: link text with spaces
3332 [http://www.example.com a b c]
3333 [http://www.example.com ''a'' ''b'']
3335 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3336 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3341 External links: wiki links within external link (Bug 3695)
3343 [http://example.com [[wikilink]] embedded in ext link]
3345 <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>
3350 BUG 787: Links with one slash after the url protocol are invalid
3354 [http:/example.com title]
3356 <p>http:/example.com
3357 </p><p>[http:/example.com title]
3362 Bracketed external links with template-generated invalid target
3364 [{{echo|http:/example.com}} title]
3366 <p>[http:/example.com title]
3371 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3373 ''[http://example.com text'']
3374 [http://example.com '''text]'''
3375 ''Something [http://example.com in italic'']
3376 ''Something [http://example.com mixed''''', even bold]'''
3377 '''''Now [http://example.com both''''']
3379 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3380 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3381 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3382 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3383 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3389 Bug 4781: %26 in URL
3391 http://www.example.com/?title=AT%26T
3393 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3397 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3398 # % is actually legal in HTML5. Any change in output would need testing though.
3400 Bug 4781, 5267: %25 in URL
3402 http://www.example.com/?title=100%25_Bran
3404 <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>
3409 Bug 4781, 5267: %28, %29 in URL
3411 http://www.example.com/?title=Ben-Hur_%281959_film%29
3413 <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>
3419 Bug 4781: %26 in autonumber URL
3421 [http://www.example.com/?title=AT%26T]
3423 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3428 Bug 4781, 5267: %26 in autonumber URL
3430 [http://www.example.com/?title=100%25_Bran]
3432 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3437 Bug 4781, 5267: %28, %29 in autonumber URL
3439 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3441 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3447 Bug 4781: %26 in bracketed URL
3449 [http://www.example.com/?title=AT%26T link]
3451 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3456 Bug 4781, 5267: %26 in bracketed URL
3458 [http://www.example.com/?title=100%25_Bran link]
3460 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3465 Bug 4781, 5267: %28, %29 in bracketed URL
3467 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3469 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3474 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3476 Some [http://example.com/ pretty ''italics'' and stuff]!
3478 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3483 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3485 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3487 <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>
3492 External link containing double-single-quotes with no space separating the url from text in italics
3494 [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]].]
3496 <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>
3501 External link with comments in link text
3503 [http://www.google.com Google <!-- comment -->]
3505 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3510 URL-encoding in URL functions (single parameter)
3512 {{localurl:Some page|amp=&}}
3514 <p>/index.php?title=Some_page&amp=&
3519 URL-encoding in URL functions (multiple parameters)
3521 {{localurl:Some page|q=?&=&}}
3523 <p>/index.php?title=Some_page&q=?&amp=&
3530 http://example.com/index.php?foozoid%5B%5D=bar
3532 http://example.com/index.php?foozoid[]=bar
3534 <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>
3535 </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>
3540 IPv6 urls (bug 21261)
3544 http://[2404:130:0:1000::187:2]/index.php
3546 <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>
3551 Non-extlinks in brackets
3560 [{{echo|foo}} ''bar'']
3561 [{{echo|foo}}l's] errand
3562 [{{echo|foo}}l's errand]
3564 [url=http://example.com]
3577 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3582 Parsoid: Percent encoding in external links
3586 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3588 <p><a rel="mw:ExtLink"
3589 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3593 Parsoid: use url link syntax for links where the content is equal the link
3600 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3610 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3612 Normal text. '''''Bold italic text.''''' Normal text.
3614 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3615 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3621 Unclosed and unmatched quotes (php)
3625 '''''Bold italic text '''with bold deactivated''' in between.'''''
3627 '''''Bold italic text ''with italic deactivated'' in between.'''''
3631 ..spanning two paragraphs (should not work).'''
3633 '''Bold tag left open
3635 ''Italic tag left open
3639 <!-- Unmatching number of opening, closing tags: -->
3640 '''This year''''s election ''should'' beat '''last year''''s.
3642 ''Tom'''s car is bigger than ''Susan'''s.
3644 Plain ''italic'''s plain
3646 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3647 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3648 </p><p><b>Bold text..</b>
3649 </p><p>..spanning two paragraphs (should not work).
3650 </p><p><b>Bold tag left open</b>
3651 </p><p><i>Italic tag left open</i>
3653 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3654 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3655 </p><p>Plain <i>italic'</i>s plain
3658 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3659 # parser strips. The wikitext contains just the first half of the bold
3660 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3661 # differently than the PHP parser.)
3663 Unclosed and unmatched quotes (parsoid)
3667 '''''Bold italic text '''with bold deactivated''' in between.'''''
3669 '''''Bold italic text ''with italic deactivated'' in between.'''''
3673 ..spanning two paragraphs (should not work).'''
3675 '''Bold tag left open
3677 ''Italic tag left open
3681 <!-- Unmatching number of opening, closing tags: -->
3682 '''This year''''s election ''should'' beat '''last year''''s.
3684 ''Tom'''s car is bigger than ''Susan'''s.
3686 Plain ''italic'''s plain
3688 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3689 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3690 </p><p><b>Bold text..</b>
3691 </p><p>..spanning two paragraphs (should not work).<b></b>
3692 </p><p><b>Bold tag left open</b>
3693 </p><p><i>Italic tag left open</i>
3695 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3696 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3697 </p><p>Plain <i>italic'</i>s plain
3704 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3707 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3708 # is the bare minimum required by the spec, see:
3709 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3711 A table with no data. (php)
3718 # Parsoid team replies: empty table tags are legal in HTML5
3720 A table with no data. (parsoid)
3729 # A table with nothing but a caption is invalid XHTML, we might want to render
3730 # this as <p>caption</p>
3732 A table with nothing but a caption (php)
3742 </caption><tr><td></td></tr></table>
3745 # Parsoid team replies: table with only a caption is legal in HTML5
3747 A table with nothing but a caption (parsoid)
3755 <table><caption> caption</caption></table>
3759 A table with caption with default-spaced attributes and a table row
3762 |+ style="color: red;" | caption1
3768 <caption style="color: red;"> caption1
3777 A table with captions with non-default spaced attributes and a table row
3780 |+style="color: red;"|caption2
3781 |+ style="color: red;"| caption3
3787 <caption style="color: red;">caption2
3789 <caption style="color: red;"> caption3
3798 Table td-cell syntax variations
3802 | foo bar foo || baz
3803 | style='color:red;' | baz
3804 | style='color:red;' || baz
3811 <td> foo bar foo </td>
3814 <td style="color:red;"> baz
3816 <td> style='color:red;' </td>
3844 Simple table but with multiple dashes for row wikitext
3862 Multiplication table
3864 {| border="1" cellpadding="2"
3865 |+Multiplication table
3867 ! × !! 1 !! 2 !! 3
3885 <table border="1" cellpadding="2">
3886 <caption>Multiplication table
3933 Accept "||" in table headings
3948 Accept "||" in indented table headings
3958 </th></tr></table></dd></dl>
3963 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3980 Accept "| !" at start of line in tables (ignore !-attribute)
3984 | !style="color:red" | bar
3996 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 +/-
4000 |style='color:red;'|+1
4001 |style='color:blue;'|-1
4013 <td style="color:red;">+1
4015 <td style="color:blue;">-1
4039 |rowspan=2| Cell 2, row 1 (and 2)
4050 <td rowspan="2"> Cell 2, row 1 (and 2)
4068 {| bgcolor=#ABCDEF border=2
4073 |the original table again
4081 <table bgcolor="#ABCDEF" border="2">
4089 <td>the original table again
4095 Invalid attributes in table cell (bug 1830)
4110 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4113 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4117 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4118 <td>]" onmouseover="alert(document.cookie)">test
4127 Indented table markup mixed with indented pre content (proposed in bug 6200)
4132 Text that should be rendered preformatted
4140 <pre>Text that should be rendered preformatted
4149 Template-generated table cell attributes and cell content
4157 <td style="color: red"> Foo
4163 Template-generated table cell attributes and cell content (2)
4166 |align=center {{table_attribs}}
4171 <td align="center" style="color: red"> Foo
4177 Template-generated table cell attributes and cell content (3)
4180 |align=center {{table_cells}}
4185 <td align="center" style="color: red"> Foo </td>
4193 Table with row followed by newlines and table heading
4211 Table with empty line following the start tag
4228 # FIXME: Preserve the attribute properly (with an empty string as value) in
4229 # the PHP parser. Parsoid implements the behavior below.
4231 Table attributes with empty value
4243 </td></tr></tbody></table>
4248 Wikitext table with a lot of comments
4271 Wikitext table with double-line table cell
4288 Table cell with a single comment
4304 # The expected HTML structure in this test is debatable. The PHP parser does
4305 # not parse this kind of table at all. The main focus for Parsoid is on
4306 # round-tripping, so this output is ok for now. TODO: revisit!
4308 Wikitext table with html-syntax row (Parsoid)
4320 <td>foo</td></tr></tbody></table>
4324 Implicit <td> after a |-
4325 (PHP parser relies on Tidy to add the missing <td> tags)
4327 parsoid=wt2html,wt2wt
4340 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4341 (PHP parser relies on Tidy to add the missing <td> tags)
4343 parsoid=wt2html,wt2wt
4355 <tr><td><pre>a</pre></td></tr>
4356 <tr><td> b</td></tr>
4362 Lists should be recognized in an implicit <td> context
4363 (PHP parser relies on Tidy to add the missing <td> tags)
4365 parsoid=wt2html,wt2wt
4374 <td><ul><li>a</li></ul></td>
4380 Parsoid: Round-trip tables directly followed by content (bug 51219)
4382 parsoid=wt2html,wt2wt
4394 <td>foo</td></tr></tbody></table> bar
4398 <td>baz</td></tr></tbody></table><b>quux</b>
4402 Parsoid: Default to a newline after tables in new content (bug 51219)
4410 <nowiki> </nowiki>bar
4419 <td>foo</td></tr></tbody></table> bar
4422 <td>baz</td></tr></tbody></table><b>quux</b>
4429 Plain link, capitalized
4433 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4438 Plain link, uncapitalized
4442 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4449 [[Main Page|The Main Page]]
4451 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4456 Piped link with comment in link text
4458 [[Main Page|The Main<!--front--> Page]]
4460 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4469 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4474 Broken link with fragment
4476 [[Zigzagzogzagzig#zug]]
4478 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4483 Special page link with fragment
4485 [[Special:Version#anchor]]
4487 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4492 Nonexistent special page link with fragment
4494 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4496 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4503 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4505 <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>
4512 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4514 <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>!!!
4525 Bug 43661: Piped links with identical prefixes
4527 [[prefixed article|prefixed articles with spaces]]
4529 [[prefixed article|prefixed articlesaoeu]]
4531 [[Main Page|Main Page test]]
4533 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4534 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4535 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4541 Link with HTML entity in suffix / tail
4543 [[Main Page]]", [[Main Page]]a
4545 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4550 Link with 3 brackets
4559 Piped link with 3 brackets
4561 [[[main page|the main page]]]
4563 <p>[[[main page|the main page]]]
4568 Link with multiple pipes
4570 [[Main Page|The|Main|Page]]
4572 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4579 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4581 <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>
4586 Piped link to namespace
4588 [[Meta:Disclaimers|The disclaimers]]
4590 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4597 [[Usually caused by a typo (oops}]]
4599 <p>[[Usually caused by a typo (oops}]]
4604 Link containing % (not as a hex sequence)
4608 <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>
4613 Link containing % as a single hex sequence interpreted to char
4617 <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>
4622 Link containing % as a double hex sequence interpreted to hex sequence
4626 <p>[[7%2525 Solution]]
4631 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4632 Example for such a section: == < ==
4634 [[%23%3c]][[%23%3e]]
4636 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4641 Link containing "<#" and ">#" as a hex sequences
4643 [[%3c%23]][[%3e%23]]
4645 <p>[[%3c%23]][[%3e%23]]
4650 Link containing an equals sign
4652 [[Special:BookSources/isbn=4-00-026157-6]]
4654 <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>
4661 Just a test of an article title containing a tilde.
4664 # note that links containing signatures, like [[Foo~~~~]], are
4665 # massaged by the pre-save transform (PST) and so the tildes are never
4666 # seen by the parser.
4668 Link containing a tilde
4672 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4677 Link containing double-single-quotes '' (bug 4598)
4679 [[Lista d''e paise d''o munno]]
4681 <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>
4686 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4688 Some [[Link|pretty ''italics'' and stuff]]!
4690 <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>!
4695 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4697 ''Some [[Link|pretty ''italics'' and stuff]]!
4699 <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>
4704 Link with double quotes in title part (literal) and alternate part (interpreted)
4706 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4710 [[''Pentecoste''|Pentecoste]]
4712 [[''Pentecoste''|''Pentecoste'']]
4714 <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>
4715 </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>
4716 </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>
4717 </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>
4722 Broken image links with HTML captions (bug 39700)
4724 [[File:Nonexistent|<script></script>]]
4725 [[File:Nonexistent|100px|<script></script>]]
4726 [[File:Nonexistent|<]]
4727 [[File:Nonexistent|a<i>b</i>c]]
4729 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4730 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4731 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4732 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4739 [[http://www.example.com]]
4741 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4746 Plain link to URL with link text
4748 [[http://www.example.com Link text]]
4750 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4755 Plain link to protocol-relative URL
4757 [[//www.example.com]]
4759 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4764 Plain link to protocol-relative URL with link text
4766 [[//www.example.com Link text]]
4768 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4773 Plain link to page with question mark in title
4779 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4780 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4785 # I'm fairly sure the expected result here is wrong.
4786 # We want these to be URL links, not pseudo-pages with URLs for titles....
4787 # However the current output is also pretty screwy.
4790 # I'm changing it to match the current output--it arguably makes more
4791 # sense in the light of the test above. Old expected result was:
4792 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4794 # But I think this test is bordering on "garbage in, garbage out" anyway.
4799 Piped link to URL: [[http://www.example.com|an example URL]]
4801 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4806 BUG 2: [[page|http://url/]] should link to page, not http://url/
4808 [[Main Page|http://url/]]
4810 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4815 BUG 337: Escaped self-links should be bold
4819 [[Bug462]] [[Bug462]]
4821 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4826 Self-link to section should not be bold
4830 [[Main Page#section]]
4832 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4843 Self-link to numeric title
4849 <p><strong class="selflink">0</strong>
4854 Link to numeric-equivalent title
4860 <p><a href="/wiki/00" title="00">00</a>
4865 <nowiki> inside a link
4867 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4869 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4874 Non-breaking spaces in title
4876 [[ Main Page ]]
4878 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4883 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4889 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4894 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4900 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4905 Internal link with en linktrail: no apostrophes (bug 27473)
4911 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4916 Internal link with ca linktrail with apostrophes (bug 27473)
4922 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4927 Internal link with kaa linktrail with apostrophes (bug 27473)
4933 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4944 Internal link with is link prefix
4948 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4950 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4961 Internal link with is link trail and link prefix
4965 [[mótmælendatrú|xxx]]ar
4967 mótmælenda[[söfnuður]]
4968 mótmælenda[[söfnuður|söfnuðir]]
4969 mótmælenda[[söfnuður|söfnuðir]]xxx
4971 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4972 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4973 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4974 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4975 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4980 Parsoid link trail escaping
4982 parsoid=html2wt,html2html
4986 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4990 Parsoid link prefix escaping
4993 parsoid=html2wt,html2html
4995 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4997 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5001 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5009 [http://wp.org ''foo'']
5011 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5012 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5013 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5014 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5019 ### Interwiki links (see maintenance/interwiki.sql)
5023 Inline interwiki link
5025 [[MeatBall:SoftSecurity]]
5027 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5032 Inline interwiki link with empty title (bug 2372)
5036 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5041 Interwiki link encoding conversion (bug 1636)
5043 *[[Wikipedia:ro:Olteniţa]]
5044 *[[Wikipedia:ro:Olteniţa]]
5046 <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>
5047 </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>
5053 Interwiki link with fragment (bug 2130)
5055 [[MeatBall:SoftSecurity#foo]]
5057 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5072 Double interlanguage link
5083 Interlanguage link, with prefix links
5095 Double interlanguage link, with prefix links (bug 8897)
5108 Parsoid-specific test: Wikilinks with should RT properly
5114 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5119 Parsoid: handle constructor well
5127 <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>
5130 <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>
5134 ## Redirects, Parsoid-only
5137 Simple redirect to page
5141 #REDIRECT [[Main Page]]
5143 <link rel="mw:PageProp/redirect" href="./Main_Page">
5147 Optional colon in #REDIRECT
5149 # the colon is archaic syntax. we support it for wt2html, but we
5150 # don't care that it roundtrips back to the modern syntax.
5151 parsoid=wt2html,html2html
5153 #REDIRECT:[[Main Page]]
5155 <link rel="mw:PageProp/redirect" href="./Main_Page">
5159 Whitespace in #REDIRECT with optional colon
5161 # the colon and gratuitous whitespace is archaic syntax. we support
5162 # it for wt2html, but we don't care that it roundtrips back to the
5163 # modern syntax (without extra whitespace)
5164 parsoid=wt2html,html2html
5171 <link rel="mw:PageProp/redirect" href="./Main_Page">
5175 Piped link in #REDIRECT
5177 # content after piped link is ignored. we support this syntax,
5178 # but don't care that the piped link is lost when we roundtrip this.
5181 #REDIRECT [[Main Page|bar]]
5183 <link rel="mw:PageProp/redirect" href="./Main_Page">
5187 Redirect to category
5191 #REDIRECT [[Category:Foo]]
5193 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5197 Redirect to category with URL encoding
5201 #REDIRECT [[Category%3AFoo]]
5203 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5207 Redirect to category page
5209 parsoid=wt2html,html2html
5211 #REDIRECT [[:Category:Foo]]
5213 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5217 Redirect to image page (1)
5221 #REDIRECT [[File:Wiki.png]]
5223 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5227 Redirect to image page (2)
5231 #REDIRECT [[Image:Wiki.png]]
5233 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5237 Redirect to language
5241 #REDIRECT [[en:File:Wiki.png]]
5243 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5247 Redirect to interwiki
5251 #REDIRECT [[meatball:File:Wiki.png]]
5253 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5257 Non-English #REDIRECT
5262 #TILVÍSUN [[Main Page]]
5264 <link rel="mw:PageProp/redirect" href="./Main_Page">
5281 Broken br tag sanitization
5291 # TODO: Fix html2html mode (bug 51055)!
5293 Parsoid: Broken br tag recognition
5303 Incorrecly removing closing slashes from correctly formed XHTML
5305 <br style="clear:both;" />
5307 <p><br style="clear:both;" />
5312 Failing to transform badly formed HTML into correct XHTML
5314 <br style="clear: left;">
5315 <br style="clear: right;">
5316 <br style="clear: both;">
5318 <p><br style="clear: left;" />
5319 <br style="clear: right;" />
5320 <br style="clear: both;" />
5325 Handling html with a div self-closing tag
5334 <p><div title />
5338 <p><div title=bar />
5339 <div title=bar/>
5341 <div title="bar/"></div>
5347 Handling html with a br self-closing tag
5356 <p><br title="title" />
5357 <br title="title" />
5366 Horizontal ruler (should it add that extra space?)
5380 Horizontal ruler -- 4+ dashes render hr
5389 Horizontal ruler -- eats additional dashes on the same line
5398 Horizontal ruler -- does not collapse dashes on consecutive lines
5409 Horizontal ruler -- <4 dashes render as plain text
5418 Horizontal ruler -- Supports content following dashes on same line
5427 ### Block-level elements
5450 <ol><li>Numbered list
5467 ***#Number on level 4
5469 **#Number on level 3
5470 **#Number on level 3
5474 #** Level 3, but ordered
5477 <ol><li> with numbers
5479 <ul><li> and bullets
5481 <ol><li> and numbers
5483 </li><li>bullets again
5484 <ul><li>bullet level 2
5485 <ul><li>bullet level 3
5486 <ol><li>Number on level 4
5489 </li><li>bullet level 2
5490 <ol><li>Number on level 3
5491 </li><li>Number on level 3
5494 <ol><li>number level 2
5497 <ul><li><ul><li> Level 3
5501 <ol><li><ul><li><ul><li> Level 3, but ordered
5535 Nested lists 3 (first element empty)
5548 Nested lists 4 (first element empty)
5561 Nested lists 5 (both elements empty)
5574 Nested lists 6 (both elements empty)
5587 Nested lists 7 (skip initial nesting levels)
5591 <ul><li><ul><li><ul><li> foo
5599 Nested lists 8 (multiple nesting transitions)
5607 <ul><li><ul><li> bar
5617 1. Lists with start-of-line-transparent tokens before bullets: Comments
5631 2. Lists with start-of-line-transparent tokens before bullets: Template close
5643 List items are not parsed correctly following a <pre> block (bug 785)
5649 <ul><li> <pre>foo</pre>
5650 </li><li> <pre>bar</pre>
5657 List items from template
5668 * notSOL{{inner list}}
5687 List interrupted by empty line or heading
5697 <ul><li><ul><li> bar
5700 <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>
5701 <ul><li> Another list item
5707 Multiple list tags generated by templates
5722 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
5725 <!--This line will NOT split the list-->
5727 <!--This line will NOT split the list either-->
5729 <!--foo--> <!----> <!--This line NOT split the list either-->
5741 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
5744 <!--This line will NOT split the list-->
5746 <!--This line will NOT split the list either-->
5748 <!--foo--> <!----> <!--This line NOT split the list
5762 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5764 parsoid=wt2html,wt2wt
5768 * {{echo|<li>templated li-hack}}
5769 * <!--foo--> <li> unsupported li-hack with preceding comments
5772 <li><li>not a li-hack
5778 <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>
5779 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5782 <li></li><li>not a li-hack
5788 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5799 <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>
5803 Parsoid: Test of whitespace serialization with Templated bullets
5810 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}'> Bar</li>
5814 # ------------------------------------------------------------------------
5815 # The next set of tests are about Parsoid's ability to handle badly nested
5816 # tags (parse, minimize scope of fixup, and roundtrip back)
5817 # ------------------------------------------------------------------------
5820 Unbalanced closing block tags break a list
5821 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5831 </li></ul></div><div>
5837 Unbalanced closing non-block tags don't break a list
5838 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5848 <ul><li>a<span></span>
5854 Unclosed formatting tags that straddle lists are closed and reopened
5855 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5863 </li><li> <s> b </s>
5868 List embedded in a non-block tag
5869 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5877 <p><small></small></p>
5883 <p><small></small></p>
5890 # Note that the current date is hard-coded as
5891 # 1970-01-01T00:02:03Z (a Thursday)
5892 # when running parser tests. The timezone is also fixed to GMT, so
5893 # local date will be identical to current date.
5896 Magic Word: {{CURRENTDAY}}
5905 Magic Word: {{CURRENTDAY2}}
5914 Magic Word: {{CURRENTDAYNAME}}
5923 Magic Word: {{CURRENTDOW}}
5932 Magic Word: {{CURRENTMONTH}}
5941 Magic Word: {{CURRENTMONTH1}}
5950 Magic Word: {{CURRENTMONTHABBREV}}
5952 {{CURRENTMONTHABBREV}}
5959 Magic Word: {{CURRENTMONTHNAME}}
5961 {{CURRENTMONTHNAME}}
5968 Magic Word: {{CURRENTMONTHNAMEGEN}}
5970 {{CURRENTMONTHNAMEGEN}}
5977 Magic Word: {{CURRENTTIME}}
5986 Magic Word: {{CURRENTHOUR}}
5995 Magic Word: {{CURRENTWEEK}} (@bug 4594)
6004 Magic Word: {{CURRENTYEAR}}
6013 Magic Word: {{CURRENTTIMESTAMP}}
6015 {{CURRENTTIMESTAMP}}
6022 Magic Words LOCAL (UTC)
6026 * {{LOCALMONTHNAME}}
6027 * {{LOCALMONTHNAMEGEN}}
6028 * {{LOCALMONTHABBREV}}
6037 * {{LOCALTIMESTAMP}}
6052 </li><li> 19700101000203
6058 Magic Word: {{FULLPAGENAME}}
6060 title=[[User:Ævar Arnfjörð Bjarmason]]
6064 <p>User:Ævar Arnfjörð Bjarmason
6069 Magic Word: {{FULLPAGENAMEE}}
6071 title=[[User:Ævar Arnfjörð Bjarmason]]
6075 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6080 Magic Word: {{TALKSPACE}}
6082 title=[[User:Ævar Arnfjörð Bjarmason]]
6091 Magic Word: {{TALKSPACE}}, same namespace
6093 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6102 Magic Word: {{TALKSPACE}}, main namespace
6104 title=[[Parser Test]]
6113 Magic Word: {{TALKSPACEE}}
6115 title=[[User:Ævar Arnfjörð Bjarmason]]
6124 Magic Word: {{SUBJECTSPACE}}
6126 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6135 Magic Word: {{SUBJECTSPACE}}, same namespace
6137 title=[[User:Ævar Arnfjörð Bjarmason]]
6146 Magic Word: {{SUBJECTSPACE}}, main namespace
6148 title=[[Parser Test]]
6156 Magic Word: {{SUBJECTSPACEE}}
6158 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6167 Magic Word: {{NAMESPACE}}
6169 title=[[User:Ævar Arnfjörð Bjarmason]]
6178 Magic Word: {{NAMESPACEE}}
6180 title=[[User:Ævar Arnfjörð Bjarmason]]
6189 Magic Word: {{NAMESPACENUMBER}}
6191 title=[[User:Ævar Arnfjörð Bjarmason]]
6200 Magic Word: {{SUBPAGENAME}}
6202 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6211 Magic Word: {{SUBPAGENAMEE}}
6213 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6222 Magic Word: {{ROOTPAGENAME}}
6224 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6228 <p>Ævar Arnfjörð Bjarmason
6233 Magic Word: {{ROOTPAGENAMEE}}
6235 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6239 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6244 Magic Word: {{BASEPAGENAME}}
6246 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6250 <p>Ævar Arnfjörð Bjarmason
6255 Magic Word: {{BASEPAGENAMEE}}
6257 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6261 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6266 Magic Word: {{TALKPAGENAME}}
6268 title=[[User:Ævar Arnfjörð Bjarmason]]
6272 <p>User talk:Ævar Arnfjörð Bjarmason
6277 Magic Word: {{TALKPAGENAMEE}}
6279 title=[[User:Ævar Arnfjörð Bjarmason]]
6283 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6288 Magic Word: {{SUBJECTPAGENAME}}
6290 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6294 <p>User:Ævar Arnfjörð Bjarmason
6299 Magic Word: {{SUBJECTPAGENAMEE}}
6301 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6303 {{SUBJECTPAGENAMEE}}
6305 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6310 Magic Word: {{NUMBEROFFILES}}
6319 Magic Word: {{PAGENAME}}
6321 title=[[User:Ævar Arnfjörð Bjarmason]]
6325 <p>Ævar Arnfjörð Bjarmason
6330 Magic Word: {{PAGENAME}} with metacharacters
6332 title=[['foo & bar = baz']]
6336 <p><i>'foo & bar = baz'</i>
6341 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6343 title=[[*RFC 1234 http://example.com/]]
6347 <p>*RFC 1234 http://example.com/
6352 Magic Word: {{PAGENAMEE}}
6354 title=[[User:Ævar Arnfjörð Bjarmason]]
6358 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6363 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6365 title=[[*RFC 1234 http://example.com/]]
6369 <p>*RFC_1234_http://example.com/
6374 Magic Word: {{REVISIONID}}
6383 Magic Word: {{SCRIPTPATH}}
6392 Magic Word: {{STYLEPATH}}
6401 Magic Word: {{SERVER}}
6405 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6410 Magic Word: {{SERVERNAME}}
6419 Magic Word: {{SITENAME}}
6428 Case-sensitive magic words, when cased differently, should just be template transclusions
6435 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6436 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6437 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6438 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6443 Case-insensitive magic words should still work with weird casing.
6453 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6458 Namespace 1 {{ns:1}}
6467 Namespace 1 {{ns:01}}
6476 Namespace 0 {{ns:0}} (bug 4783)
6484 Namespace 0 {{ns:00}} (bug 4783)
6492 Namespace -1 {{ns:-1}}
6501 Namespace User {{ns:User}}
6510 Namespace User talk {{ns:User_talk}}
6519 Namespace User talk {{ns:uSeR tAlK}}
6528 Namespace File {{ns:File}}
6537 Namespace File {{ns:Image}}
6546 Namespace (lang=de) Benutzer {{ns:User}}
6557 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
6563 <p>Benutzer Diskussion
6571 {{urlencode:hi world?!}}
6572 {{urlencode:hi world?!|WIKI}}
6573 {{urlencode:hi world?!|PATH}}
6574 {{urlencode:hi world?!|QUERY}}
6587 Magic links: internal link to RFC (bug 479)
6591 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
6596 Magic links: RFC (bug 479)
6600 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
6605 Magic links: ISBN (bug 1937)
6609 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
6614 Magic links: PMID incorrectly converts space to underscore
6618 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
6627 Nonexistent template
6629 {{thistemplatedoesnotexist}}
6631 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
6636 Template with invalid target containing tags
6638 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6640 <p>{{a<b>b</b>|foo|a=b|a = b}}
6645 Template with invalid target containing unclosed tag
6647 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6649 <p>{{a<b>|foo|a=b|a = b}}</b>
6656 This is a test template
6664 <p>This is a test template
6669 Template with explicit namespace
6673 <p>This is a test template
6681 This is a test template with parameter {{{param}}}
6687 {{paramtest|param=foo}}
6689 <p>This is a test template with parameter foo
6694 Template:paramtestnum
6700 Template unnamed parameter
6702 {{paramtestnum|Main Page|the main page}}
6704 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
6709 Template:templatesimple
6715 Template:templateredirect
6717 #redirect [[Template:templatesimple]]
6721 Template:templateasargtestnum
6727 Template:templateasargtest
6729 {{template{{{templ}}}}}
6733 Template:templateasargtest2
6739 Template with template name as unnamed argument
6741 {{templateasargtestnum|templatesimple}}
6748 Template with template name as argument
6750 {{templateasargtest|templ=simple}}
6757 Template with template name as argument (2)
6759 {{templateasargtest2|templ=templatesimple}}
6766 Template:templateasargtestdefault
6768 {{{{{templ|templatesimple}}}}}
6778 Template with default value
6780 {{templateasargtestdefault}}
6787 Template with default value (value set)
6789 {{templateasargtestdefault|templ=templa}}
6798 {{templateredirect}}
6805 Template with argument in separate line
6807 {{ templateasargtest |
6815 Template with complex template as argument
6818 param ={{ templateasargtest |
6821 <p>This is a test template with parameter (test)
6826 Template with thumb image (with link in description)
6829 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6831 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>
6836 Template:complextemplate
6838 {{{1}}} {{paramtest|
6839 param ={{{param}}}}}
6843 Template with complex arguments
6846 param ={{ templateasargtest |
6847 templ = simple }}|[[Template:complextemplate|link]]}}
6849 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6854 BUG 553: link with two variables in a piped link
6857 |[[{{{1}}}|{{{2}}}]]
6862 <td>[[{{{1}}}|{{{2}}}]]
6868 Magic variable as template parameter
6870 {{paramtest|param={{SITENAME}}}}
6872 <p>This is a test template with parameter MediaWiki
6879 [[{{{param}}}|link]]
6883 Template parameter as link source
6885 {{linktest|param=Main Page}}
6887 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6892 Template-generated attribute string (k='v')
6894 <span {{attr_str|id|v1}}>bar</span>
6896 <p><span id="v1">bar</span>
6903 including another template, {{paramtest|param={{{arg}}}}}
6907 Template passing argument to another template
6909 {{paramtest2|arg='hmm'}}
6911 <p>including another template, This is a test template with parameter 'hmm'
6922 Template as link source
6926 [[{{linktest2}}|Main Page]]
6928 [[{{linktest2}}]]Page
6930 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6931 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6932 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6950 Template infinite loop
6954 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6959 Template from main namespace
6978 BUG 529: Template with table, not included at beginning of line
6997 BUG 523: Template shouldn't eat newline (or add an extra one before table)
7017 BUG 41: Template parameters shown as broken links
7026 Template with targets containing wikilinks
7030 {{[[{{echo|foo}}]]}}
7032 {{{{echo|[[foo}}]]}}
7034 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7035 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7043 ''None'' of '''this''' should be
7045 but rather passed unmodified
7049 # hmm, fix this or just deprecate msgnw and document its behavior?
7055 {{msgnw:MSGNW test}}
7057 <p>''None'' of '''this''' should be
7059 but rather passed unmodified
7067 {{int:youhavenewmessages|lots of money|not!}}
7069 <p>You have lots of money (not!).
7076 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7080 <includeonly> and <noinclude> being included
7091 <onlyinclude>Foo</onlyinclude>bar
7095 <onlyinclude> being included
7107 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
7111 <onlyinclude> and <includeonly> being included
7120 <includeonly> and <noinclude> on a page
7122 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
7129 Un-closed <noinclude>
7136 <onlyinclude> on a page
7138 <onlyinclude>Foo</onlyinclude>bar
7145 Un-closed <onlyinclude>
7152 Self-closed noinclude, includeonly, onlyinclude tags
7163 Unbalanced includeonly and noinclude tags
7167 |b</noinclude></noinclude>
7168 |c</noinclude></includeonly>
7169 |d</includeonly></includeonly>
7178 <td>c</includeonly>
7180 <td>d</includeonly></includeonly>
7186 Template:Includeonly section
7189 ==Includeonly section==
7195 Bug 6563: Edit link generation for section shown by <includeonly>
7197 {{includeonly section}}
7199 <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>
7200 <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>
7204 # Uses same input as the contents of [[Template:Includeonly section]]
7206 Bug 6563: Section extraction for section shown by <includeonly>
7211 ==Includeonly section==
7219 Bug 6563: Edit link generation for section suppressed by <includeonly>
7222 ==Includeonly section==
7226 <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>
7231 Bug 6563: Section extraction for section suppressed by <includeonly>
7236 ==Includeonly section==
7244 Un-closed <includeonly>
7250 # TODO: test with DOM fragment reuse!
7252 Parsoid: DOM fragment reuse
7254 parsoid=wt2wt,wt2html
7256 a{{echo|b<table></table>c}}d
7268 a<span typeof="mw:Transclusion">b</span>
7269 <table></table><span>c</span>d
7270 <p typeof="mw:Transclusion">ab</p>
7273 <p typeof="mw:Transclusion">a</p>
7279 ### <includeonly> and <noinclude> in attributes
7282 0. includeonly around the entire attribute
7284 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
7286 <p><span id="v2">bar</span>
7291 1. includeonly in html attr key
7293 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
7295 <p><span id="foo">bar</span>
7300 2. includeonly in html attr value
7302 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7303 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7305 <p><span id="v1">bar</span>
7306 <span id="v1">bar</span>
7311 3. includeonly in part of an attr value
7313 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7315 <p><span style="color:red;">bar</span>
7320 ### Testing parsing of templates where a template arg
7321 ### has the same name as the template itself.
7331 Templates: Template Name/Arg clash: 1. Use of positional param
7340 Templates: Template Name/Arg clash: 2. Use of named param
7349 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7358 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7362 Templates: 1. Simple use
7371 Templates: 2. Inside a block tag
7373 <div>{{echo|Foo}}</div>
7374 <blockquote>{{echo|Foo}}</blockquote>
7377 <blockquote>Foo</blockquote>
7382 Templates: P-wrapping: 1a. Templates on consecutive lines
7393 Templates: P-wrapping: 1b. Templates on consecutive lines
7407 Templates: P-wrapping: 1c. Templates on consecutive lines
7410 {{echo|bar}} <div>baz</div>
7419 Templates: P-wrapping: 1d. Template preceded by comment-only line
7421 parsoid=wt2html,wt2wt
7427 <p typeof="mw:Transclusion">Bar
7432 Templates: Inline Text: 1. Multiple tmeplate uses
7434 {{echo|Foo}}bar{{echo|baz}}
7441 Templates: Inline Text: 2. Back-to-back template uses
7443 {{echo|Foo}}{{echo|bar}}
7450 Templates: Block Tags: 1. Multiple template uses
7452 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
7454 <div>Foo</div><div>bar</div><div>baz</div>
7459 Templates: Block Tags: 2. Back-to-back template uses
7461 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
7463 <div>Foo</div><div>bar</div>
7468 Templates: Links: 1. Simple example
7470 {{echo|[[Foo|bar]]}}
7472 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7477 Templates: Links: 2. Generation of link href
7479 [[{{echo|Foo}}|bar]]
7481 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7486 Templates: Links: 3. Generation of part of a link href
7488 [[Fo{{echo|o}}|bar]]
7492 [[Foo{{echo|bar}}baz]]
7494 [[Foo{{echo|bar}}|bar]]
7496 [[:Foo{{echo|bar}}]]
7498 [[:Foo{{echo|bar}}|bar]]
7500 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7501 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7502 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
7503 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7504 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7505 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7510 Templates: Links: 4. Multiple templates generating link href
7512 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
7514 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7519 Templates: Links: 5. Generation of link text
7521 [[Foo|{{echo|bar}}]]
7523 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7528 Templates: Links: 5. Nested templates (only outermost template should be marked)
7530 {{echo|[[{{echo|Foo}}|bar]]}}
7532 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7537 Templates: HTML Tag: 1. Generation of HTML attr. key
7539 <div {{echo|style}}="color:red;">foo</div>
7541 <div style="color:red;">foo</div>
7546 Templates: HTML Tag: 2. Generation of HTML attr. value
7548 <div style={{echo|'color:red;'}}>foo</div>
7550 <div style="color:red;">foo</div>
7555 Templates: HTML Tag: 3. Generation of HTML attr key and value
7557 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
7559 <div style="color:red;">foo</div>
7564 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
7566 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
7568 <div title="This is a long title with just one piece templated">foo</div>
7573 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
7575 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
7577 <div title="This is a long title with just one piece templated">foo</div>
7582 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
7584 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
7586 <div title="This is a long title with just one piece templated">foo</div>
7591 Templates: HTML Tag: 7. Generation of partial attribute key string
7593 <div st{{echo|yle}}="color:red;">foo</div>
7595 <div style="color:red;">foo</div>
7600 Templates: HTML Tables: 1. Generating start of a HTML table
7602 {{echo|<table><tr><td>foo</td>}}</tr></table>
7604 <table><tr><td>foo</td></tr></table>
7609 Templates: HTML Tables: 2a. Generating middle of a HTML table
7611 <table><tr>{{echo|<td>foo</td>}}</tr></table>
7613 <table><tr><td>foo</td></tr></table>
7618 Templates: HTML Tables: 2b. Generating middle of a HTML table
7620 <table>{{echo|<tr><td>foo</td></tr>}}</table>
7622 <table><tr><td>foo</td></tr></table>
7627 Templates: HTML Tables: 3. Generating end of a HTML table
7629 <table><tr>{{echo|<td>foo</td></tr></table>}}
7631 <table><tr><td>foo</td></tr></table>
7636 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
7638 {{echo|<table>}}<tr><td>foo</td></tr></table>
7640 <table><tr><td>foo</td></tr></table>
7645 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
7647 <table>{{echo|<tr>}}<td>foo</td></tr></table>
7649 <table><tr><td>foo</td></tr></table>
7654 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
7656 <table><tr>{{echo|<td>}}foo</td></tr></table>
7658 <table><tr><td>foo</td></tr></table>
7663 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
7665 <table><tr><td>foo{{echo|</td>}}</tr></table>
7667 <table><tr><td>foo</td></tr></table>
7672 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
7674 <table><tr><td>foo</td>{{echo|</tr>}}</table>
7676 <table><tr><td>foo</td></tr></table>
7681 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
7683 <table><tr><td>foo</td></tr>{{echo|</table>}}
7685 <table><tr><td>foo</td></tr></table>
7690 Templates: HTML Tables: 5. Proper fostering of categories from inside
7692 parsoid=wt2html,wt2wt
7694 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
7695 <!--Two categories (Bug 50330)-->
7696 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
7698 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
7699 <!--Two categories (Bug 50330)-->
7700 <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>
7704 Templates: Wiki Tables: 1a. Fostering of entire template content
7712 <tr><td></td></tr></table>
7717 Templates: Wiki Tables: 1b. Fostering of entire template content
7730 <tr><td></td></tr></table>
7735 Templates: Wiki Tables: 2. Fostering of partial template content
7745 <tr><td></td></tr></table>
7750 Templates: Wiki Tables: 3. td-content via multiple templates
7753 {{echo|{{pipe}}a}}{{echo|b}}
7764 Templates: Wiki Tables: 4. Templated tags, no content
7770 <tr><td></td></tr></table>
7775 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7789 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7803 Templates: Lists: Multi-line list-items via templates
7805 *{{echo|a {{nonexistent|
7807 *{{echo|b {{nonexistent|
7810 <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>
7811 </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>
7817 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7819 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7821 <p><i>ab</i>c<i>d</i>e
7826 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7827 (PHP parser generates misnested html)
7829 parsoid=wt2html,wt2wt
7831 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7833 <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>
7837 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7838 (PHP parser generates misnested html)
7840 parsoid=wt2html,wt2wt
7842 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7844 <div typeof="mw:Transclusion"><i>a</i></div>
7845 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7846 <div typeof="mw:Transclusion">e</div>
7850 Templates: Ugly nesting: 4. Divs opened/closed across templates
7852 a<div>b{{echo|c</div>d}}e
7859 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7865 |{{echo|foo</table>}}
7869 <table typeof="mw:Transclusion">
7872 <td>foo</td></tr></tbody></table><span>bar</span>
7876 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7886 <td>1. {{echo|foo </table>}}</td>
7888 <td>2. {{echo|baz </table>}}</td>
7901 <table about="#mwt1" typeof="mw:Transclusion">
7906 <td >1. foo </td></tr></tbody></table></td>
7908 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7909 </span><span about="#mwt1">
7911 abc</span><span about="#mwt1">
7912 </span><span about="#mwt1">
7913 </span><span about="#mwt1">
7914 </span><span about="#mwt1">
7915 </span><span about="#mwt1">
7917 xyz</span><span about="#mwt1">
7918 </span><span about="#mwt1">
7923 Templates: Ugly templates: 3. newline-only template parameter
7932 # This looks like a bug: a single newline triggers p/br for some reason.
7934 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7945 Parser Functions: 1. Simple example
7954 Parser Functions: 2. Nested use (only outermost should be marked up)
7963 ### Pre-save transform tests
7966 pre-save transform: subst:
7972 This is a test template
7976 pre-save transform: normal template
7986 pre-save transform: nonexistent template
7990 {{thistemplatedoesnotexist}}
7992 {{thistemplatedoesnotexist}}
7997 pre-save transform: subst magic variables
8006 # This is bug 89, which I fixed. -- wtm
8008 pre-save transform: subst: templates with parameters
8012 {{subst:paramtest|param="something else"}}
8014 This is a test template with parameter "something else"
8020 <nowiki>'''not wiki'''</nowiki>
8024 pre-save transform: nowiki in subst (bug 1188)
8028 {{subst:nowikitest}}
8030 <nowiki>'''not wiki'''</nowiki>
8035 Template:commenttest
8037 This template has <!-- a comment --> in it.
8041 pre-save transform: comment in subst (bug 1936)
8045 {{subst:commenttest}}
8047 This template has <!-- a comment --> in it.
8051 pre-save transform: unclosed tag
8055 <nowiki>'''not wiki'''
8057 <nowiki>'''not wiki'''
8061 pre-save transform: mixed tag case
8065 <NOwiki>'''not wiki'''</noWIKI>
8067 <NOwiki>'''not wiki'''</noWIKI>
8071 pre-save transform: unclosed comment in <nowiki>
8075 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
8077 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
8080 # Leading @ in this template definition works around a limitation
8081 # in parsoid's parserTests which otherwise strips the <span> from the
8082 # result (confusing it for a template wrapper)
8086 @<span onmouseover="alert('crap')">Oh no</span>
8090 (confirming safety of fix for subst bug 1936)
8092 {{Template:dangerous}}
8094 <p>@<span>Oh no</span>
8099 pre-save transform: comment containing gallery (bug 5024)
8103 <!-- <gallery>data</gallery> -->
8105 <!-- <gallery>data</gallery> -->
8109 pre-save transform: comment containing extension
8113 <!-- <tag>data</tag> -->
8115 <!-- <tag>data</tag> -->
8119 pre-save transform: comment containing nowiki
8123 <!-- <nowiki>data</nowiki> -->
8125 <!-- <nowiki>data</nowiki> -->
8129 pre-save transform: <noinclude> in subst (bug 3298)
8139 pre-save transform: <onlyinclude> in subst (bug 3298)
8151 {{<includeonly>subst:</includeonly>Includes}}
8155 Template:SafeSubstTest
8157 {{<includeonly>safesubst:</includeonly>Includes}}
8161 bug 22297: safesubst: works during PST
8165 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
8171 bug 22297: safesubst: works during normal parse
8180 subst: does not work during normal parse
8184 <p>{{subst:Includes}}
8189 pre-save transform: context links ("pipe trick")
8193 [[Article (context)|]]
8196 [[Bar:Article (context)|]]
8197 [[:Bar:Article (context)|]]
8199 [[|Article (context)]]
8203 [[Article (context)|Article]]
8204 [[Bar:Article|Article]]
8205 [[:Bar:Article|Article]]
8206 [[Bar:Article (context)|Article]]
8207 [[:Bar:Article (context)|Article]]
8209 [[Article (context)]]
8210 [[Bar:X (Y) Z|X (Y) Z]]
8211 [[:Bar:X (Y) Z|X (Y) Z]]
8215 pre-save transform: context links ("pipe trick") with interwiki prefix
8219 [[interwiki:Article|]]
8220 [[:interwiki:Article|]]
8221 [[interwiki:Bar:Article|]]
8222 [[:interwiki:Bar:Article|]]
8224 [[interwiki:Article|Article]]
8225 [[:interwiki:Article|Article]]
8226 [[interwiki:Bar:Article|Bar:Article]]
8227 [[:interwiki:Bar:Article|Bar:Article]]
8231 pre-save transform: context links ("pipe trick") with parens in title
8233 pst title=[[Somearticle (context)]]
8237 [[Article (context)|Article]]
8241 pre-save transform: context links ("pipe trick") with comma in title
8243 pst title=[[Someplace, Somewhere]]
8246 [[Otherplace, Elsewhere|]]
8247 [[Otherplace, Elsewhere, Anywhere|]]
8249 [[Otherplace, Somewhere|Otherplace]]
8250 [[Otherplace, Elsewhere|Otherplace]]
8251 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
8255 pre-save transform: context links ("pipe trick") with parens and comma
8257 pst title=[[Someplace (IGNORED), Somewhere]]
8260 [[Otherplace (place), Elsewhere|]]
8262 [[Otherplace, Somewhere|Otherplace]]
8263 [[Otherplace (place), Elsewhere|Otherplace]]
8267 pre-save transform: context links ("pipe trick") with comma and parens
8269 pst title=[[Who, me? (context)]]
8272 [[Me, Myself, and I (1937 song)|]]
8274 [[Yes, you. (context)|Yes, you.]]
8275 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
8279 pre-save transform: context links ("pipe trick") with namespace
8281 pst title=[[Ns:Somearticle]]
8285 [[Ns:Article|Article]]
8289 pre-save transform: context links ("pipe trick") with namespace and parens
8291 pst title=[[Ns:Somearticle (context)]]
8295 [[Ns:Article (context)|Article]]
8299 pre-save transform: context links ("pipe trick") with namespace and comma
8301 pst title=[[Ns:Somearticle, Context, Whatever]]
8305 [[Ns:Article, Context, Whatever|Article]]
8309 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8311 pst title=[[Ns:Somearticle, Context (context)]]
8315 [[Ns:Article (context)|Article]]
8319 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8321 pst title=[[Ns:Somearticle (IGNORED), Context]]
8325 [[Ns:Article, Context|Article]]
8329 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8333 [[Article(context)|]]
8334 [[Bar:Article(context)|]]
8335 [[:Bar:Article(context)|]]
8336 [[|Article(context)]]
8340 [[Article(context)|Article]]
8341 [[Bar:Article(context)|Article]]
8342 [[:Bar:Article(context)|Article]]
8343 [[Article(context)]]
8345 [[:Bar:X(Y)Z|X(Y)Z]]
8349 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8353 [[Article (context)|]]
8354 [[Bar:Article (context)|]]
8355 [[:Bar:Article (context)|]]
8356 [[|Article (context)]]
8360 [[Article (context)|Article]]
8361 [[Bar:Article (context)|Article]]
8362 [[:Bar:Article (context)|Article]]
8363 [[Article (context)]]
8364 [[Bar:X (Y) Z|X (Y) Z]]
8365 [[:Bar:X (Y) Z|X (Y) Z]]
8369 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8373 [[Article(context)|]]
8374 [[Bar:Article(context)|]]
8375 [[:Bar:Article(context)|]]
8376 [[|Article(context)]]
8380 [[Article(context)|Article]]
8381 [[Bar:Article(context)|Article]]
8382 [[:Bar:Article(context)|Article]]
8383 [[Article(context)]]
8385 [[:Bar:X(Y)Z|X(Y)Z]]
8389 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8393 [[Article (context), context|]]
8394 [[Article (context),context|]]
8395 [[Bar:Article (context), context|]]
8396 [[Bar:Article (context),context|]]
8397 [[:Bar:Article (context), context|]]
8398 [[:Bar:Article (context),context|]]
8400 [[Article (context), context|Article]]
8401 [[Article (context),context|Article]]
8402 [[Bar:Article (context), context|Article]]
8403 [[Bar:Article (context),context|Article]]
8404 [[:Bar:Article (context), context|Article]]
8405 [[:Bar:Article (context),context|Article]]
8409 pre-save transform: trim trailing empty lines
8413 Empty lines are trimmed
8419 Empty lines are trimmed
8423 pre-save transform: Signature expansion
8428 * <noinclude>~~~</noinclude>
8429 * <includeonly>~~~</includeonly>
8430 * <onlyinclude>~~~</onlyinclude>
8432 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
8433 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
8434 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
8435 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
8440 pre-save transform: Signature expansion in nowiki tags (bug 93)
8446 <nowiki>~~~~</nowiki>
8448 <includeonly><nowiki>~~~~</nowiki></includeonly>
8450 <noinclude><nowiki>~~~~</nowiki></noinclude>
8452 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8454 {{subst:Foo}} shall be converted to FOO
8456 As well as inside noinclude/onlyinclude
8457 <noinclude>{{subst:Foo}}</noinclude>
8458 <onlyinclude>{{subst:Foo}}</onlyinclude>
8460 But not inside includeonly
8461 <includeonly>{{subst:Foo}}</includeonly>
8465 <nowiki>~~~~</nowiki>
8467 <includeonly><nowiki>~~~~</nowiki></includeonly>
8469 <noinclude><nowiki>~~~~</nowiki></noinclude>
8471 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8473 FOO shall be converted to FOO
8475 As well as inside noinclude/onlyinclude
8476 <noinclude>FOO</noinclude>
8477 <onlyinclude>FOO</onlyinclude>
8479 But not inside includeonly
8480 <includeonly>{{subst:Foo}}</includeonly>
8484 Parsoid: Recognize nowiki with trailing space in tags
8488 <nowiki ><div>[[foo]]</nowiki >
8496 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8503 Parsoid: Recognize nowiki with odd capitalization
8507 <noWikI ><div>[[foo]]</Nowiki >
8509 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8514 Parsoid: Escape nowiki with trailing space in tags
8518 <nowiki > foo </nowiki >
8524 <p><nowiki > foo </nowiki ></p>
8525 <p>a<nowiki />b</p>
8526 <p>c<nowiki/ >d</p>
8530 Parsoid: Escape weird noWikI capitalizations
8534 <noWikI > foo </NoWikI >
8536 <p><noWikI > foo </NoWikI ></p>
8540 ### Message transform tests
8543 message transform: magic variables
8553 message transform: should not transform wiki markup
8563 message transform: <noinclude> in transcluded template (bug 4926)
8573 message transform: <onlyinclude> in transcluded template (bug 4926)
8583 {{#special:}} page name, known
8587 {{#special:Recentchanges}}
8589 Special:RecentChanges
8593 {{#special:}} page name with subpage, known
8597 {{#special:Recentchanges/param}}
8599 Special:RecentChanges/param
8603 {{#special:}} page name, unknown
8607 {{#special:foobar nonexistent}}
8609 Special:Foobar nonexistent
8613 {{#speciale:}} page name, known
8617 {{#speciale:Recentchanges}}
8619 Special:RecentChanges
8623 {{#speciale:}} page name with subpage, known
8627 {{#speciale:Recentchanges/param}}
8629 Special:RecentChanges/param
8633 {{#speciale:}} page name, unknown
8637 {{#speciale:foobar nonexistent}}
8639 Special:Foobar_nonexistent
8645 ### For Parsoid-specific tests, see
8646 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8653 [[Image:foobar.jpg]]
8655 <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>
8660 Simple image (parsoid)
8664 [[Image:foobar.jpg]]
8666 <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>
8671 Simple image (using File: namespace, now canonical) (php)
8677 <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>
8682 Simple image (using File: namespace, now canonical) (parsoid)
8688 <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>
8693 Right-aligned image (php)
8697 [[Image:foobar.jpg|right]]
8699 <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>
8704 Right-aligned image (parsoid)
8708 [[File:Foobar.jpg|right]]
8710 <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>
8714 Image with caption (php)
8718 [[File:Foobar.jpg|right|Caption text]]
8720 <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>
8725 Image with caption (parsoid)
8729 [[File:Foobar.jpg|right|Caption text]]
8731 <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>
8735 Image with empty attribute (php)
8739 [[File:Foobar.jpg|right||Caption text]]
8741 <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>
8746 Image with empty attribute (parsoid)
8750 [[File:Foobar.jpg|right||Caption text]]
8752 <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>
8756 Image with attributes from template (php)
8760 [[File:Foobar.jpg|{{image_attribs}}]]
8762 <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>
8767 Image with attributes from template (parsoid)
8771 [[File:Foobar.jpg|{{image_attribs}}]]
8773 <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>
8777 Image with link tails (php)
8781 123[[File:Foobar.jpg]]456
8782 123[[File:Foobar.jpg|right]]456
8783 123[[File:Foobar.jpg|thumb]]456
8785 <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
8787 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
8788 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
8793 Image with link tails (parsoid)
8797 123[[File:Foobar.jpg]]456
8798 123[[File:Foobar.jpg|right]]456
8799 123[[File:Foobar.jpg|thumb]]456
8801 <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>
8802 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
8803 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
8807 Image with multiple captions -- only last one is accepted (php)
8811 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8813 <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>
8818 Image with multiple captions -- only last one is accepted (parsoid)
8822 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8824 <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>
8828 Image with width attribute at different positions (php)
8832 [[File:Foobar.jpg|200px|right|Caption]]
8833 [[File:Foobar.jpg|right|200px|Caption]]
8834 [[File:Foobar.jpg|right|Caption|200px]]
8836 <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>
8837 <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>
8838 <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>
8843 Image with width attribute at different positions (parsoid)
8847 [[File:Foobar.jpg|200px|right|Caption]]
8848 [[File:Foobar.jpg|right|200px|Caption]]
8849 [[File:Foobar.jpg|right|Caption|200px]]
8851 <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>
8852 <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>
8853 <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>
8857 Image with link parameter, wiki target (php)
8861 [[File:Foobar.jpg|link=Main Page]]
8863 <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>
8868 Image with link parameter, wiki target (parsoid)
8872 [[File:Foobar.jpg|link=Main Page]]
8874 <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>
8878 Image with link parameter, URL target (php)
8882 [[File:Foobar.jpg|link=http://example.com/]]
8884 <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>
8888 # parsoid bug 49293 (part 1)
8890 Image with link parameter, URL target (parsoid)
8894 [[File:Foobar.jpg|link=http://example.com/]]
8896 <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>
8900 Image with link parameter, protocol-less URL target (php)
8904 [[File:Foobar.jpg|link=//example.com/]]
8906 <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>
8910 # parsoid bug 49293 (part 2)
8912 Image with link parameter, protocol-less URL target (parsoid)
8916 [[File:Foobar.jpg|link=//example.com/]]
8918 <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>
8922 Image with link parameter, wgExternalLinkTarget
8924 [[Image:foobar.jpg|link=http://example.com/]]
8926 wgExternalLinkTarget='foobar'
8928 <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>
8933 Image with link parameter, wgNoFollowLinks set to false
8935 [[Image:foobar.jpg|link=http://example.com/]]
8937 wgNoFollowLinks=false
8939 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8944 Image with link parameter, wgNoFollowDomainExceptions
8946 [[Image:foobar.jpg|link=http://example.com/]]
8948 wgNoFollowDomainExceptions='example.com'
8950 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8955 Image with link parameter, wgExternalLinkTarget, unnamed parameter
8957 [[Image:foobar.jpg|link=http://example.com/|Title]]
8959 wgExternalLinkTarget='foobar'
8961 <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>
8966 Image with empty link parameter (php)
8970 [[File:Foobar.jpg|link=]]
8972 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8977 Image with empty link parameter (parsoid)
8981 [[File:Foobar.jpg|link=]]
8983 <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>
8987 Image with link parameter (wiki target) and unnamed parameter (php)
8991 [[File:Foobar.jpg|link=Main Page|Title]]
8993 <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>
8998 Image with link parameter (wiki target) and unnamed parameter (parsoid)
9002 [[File:Foobar.jpg|link=Main Page|Title]]
9004 <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>
9008 Image with link parameter (URL target) and unnamed parameter (php)
9012 [[File:Foobar.jpg|link=http://example.com/|Title]]
9014 <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>
9019 Image with link parameter (URL target) and unnamed parameter (parsoid)
9023 [[File:Foobar.jpg|link=http://example.com/|Title]]
9025 <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>
9029 Thumbnail image with link parameter
9033 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
9035 <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>
9040 Manually-specified thumbnail image
9044 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
9046 <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>
9051 Manually-specified thumbnail image with explicit link to wiki page
9055 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
9057 <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>
9062 Manually-specified thumbnail image with explicit link to url
9066 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
9068 <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>
9073 Manually-specified thumbnail image with explicit no link
9077 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
9079 <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>
9084 Manually-specified thumbnail image with explicit link and alt text
9088 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
9090 <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>
9095 Image with frame and link
9097 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
9099 <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>
9104 Image with frame and link and explicit alt
9106 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
9108 <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>
9113 Image with wiki markup in implicit alt
9115 [[Image:Foobar.jpg|testing '''bold''' in alt]]
9117 <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>
9122 Image with wiki markup in explicit alt
9124 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
9126 <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>
9131 Link to image page- image page normally doesn't exists, hence edit link
9132 Add test with existing image page
9133 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
9137 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
9142 bug 18784 Link to non-existent image page with caption should use caption as link text
9144 [[:Image:test|caption]]
9146 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
9151 Frameless image caption with a free URL
9153 [[Image:foobar.jpg|http://example.com]]
9155 <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>
9160 Thumbnail image caption with a free URL
9162 [[Image:foobar.jpg|thumb|http://example.com]]
9164 <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>
9169 Thumbnail image caption with a free URL and explicit alt
9171 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
9173 <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>
9178 SVG thumbnails with no language set
9181 [[File:Foobar.svg|thumb|width=200]]
9183 <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>
9188 SVG thumbnails with language de
9191 [[File:Foobar.svg|thumb|width=200|lang=de]]
9193 <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>
9198 SVG thumbnails with invalid language code
9201 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
9203 <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>
9208 BUG 1887: A ISBN with a thumbnail
9210 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
9212 <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>
9217 BUG 1887: A RFC with a thumbnail
9219 [[Image:foobar.jpg|thumb|This is RFC 12354]]
9221 <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>
9226 BUG 1887: A mailto link with a thumbnail
9228 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
9230 <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>
9234 # Pending resolution to bug 368
9236 BUG 648: Frameless image caption with a link
9238 [[Image:foobar.jpg|text with a [[link]] in it]]
9240 <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>
9245 BUG 648: Frameless image caption with a link (suffix)
9247 [[Image:foobar.jpg|text with a [[link]]foo in it]]
9249 <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>
9254 BUG 648: Frameless image caption with an interwiki link
9256 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
9258 <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>
9263 BUG 648: Frameless image caption with a piped interwiki link
9265 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
9267 <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>
9272 Escape HTML special chars in image alt text
9274 [[Image:foobar.jpg|& < > "]]
9276 <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>
9281 BUG 499: Alt text should have Ӓ, not &1234;
9283 [[Image:foobar.jpg|♀]]
9285 <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>
9290 Broken image caption with link
9292 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
9294 <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.
9299 Image caption containing another image
9301 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
9303 <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>
9308 Image caption containing a newline
9310 [[Image:Foobar.jpg|This
9313 <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>
9318 Parsoid: Image caption containing leading space
9319 (The leading space should not trigger nowiki escaping in wt2wt mode)
9321 [[Image:Foobar.jpg|thumb| bar]]
9323 <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>
9328 Bug 3090: External links other than http: in image captions
9330 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
9332 <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>
9339 [[Image:foobar.jpg|a|class=b]]
9341 <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>
9346 Localized image handling (1).
9350 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
9352 <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>
9357 Localized image handling (2).
9361 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
9363 <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>
9368 "border", "frameless" and "class" attributes on an image.
9370 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
9372 <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>
9379 #REDIRECT [[File:Barfoo.jpg]]
9385 [[Image:Barfoo.jpg]]
9387 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
9392 Missing image with uploads disabled
9396 [[Image:Foobaz.jpg]]
9398 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
9402 # Parsoid-specific testing for images
9403 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9404 # Currently imperfect due to a flaw in the Parsoid testrunner
9406 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
9410 Parsoid-specific image handling - simple image with size and middle alignment
9414 [[Image:Foobar.jpg|50px|middle]]
9417 <span class="mw-valign-middle" typeof="mw:Image">
9418 <a href="File:Foobar.jpg">
9419 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9426 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
9430 [[Image:Foobar.jpg|500x10px|baseline|caption]]
9433 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
9434 <a href="File:Foobar.jpg">
9435 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
9442 Parsoid-specific image handling - simple image with border and size spec
9446 [[Image:Foobar.jpg|50px|border|caption]]
9449 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
9450 <a href="File:Foobar.jpg">
9451 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9458 Parsoid-specific image handling - thumbnail with halign, valign, and caption
9462 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
9464 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
9465 <a href="File:Foobar.jpg">
9466 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
9468 <figcaption>caption content</figcaption>
9473 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
9477 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
9479 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
9480 <a href="File:Foobar.jpg">
9481 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
9483 <figcaption>caption</figcaption>
9488 Parsoid-specific image handling - framed image with specific size and caption
9492 [[Image:Foobar.jpg|500x50px|frame|caption]]
9494 <figure typeof="mw:Image/Frame">
9495 <a href="File:Foobar.jpg">
9496 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9498 <figcaption>caption</figcaption>
9503 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
9507 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
9509 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
9510 <a href="File:Foobar.jpg">
9511 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9513 <figcaption>caption</figcaption>
9518 Parsoid-specific image handling - frameless image with specific size, border, and caption
9522 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
9525 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
9526 <a href="File:Foobar.jpg">
9527 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9533 #Parsoid-specific image handling - simple image with a formatted caption
9537 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
9540 #<span typeof="mw:Image">
9541 #<a class="mw-default-size" href="Image:Foobar.jpg">
9542 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
9553 Subpage test/subpage
9561 subpage title=[[Subpage test]]
9565 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
9570 Subpage noslash link
9572 subpage title=[[Subpage test]]
9576 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
9580 # TODO: make this PHP-parser compatible!
9582 Relative subpage noslash link
9584 parsoid=wt2wt,wt2html,html2html
9585 subpage title=[[Subpage test/1/2/3/4]]
9591 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
9592 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
9595 # TODO: make this PHP-parser compatible!
9597 Parsoid: dot-slash prefixed wikilinks
9599 parsoid=wt2wt,wt2html,html2html
9607 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
9608 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
9609 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
9617 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
9622 BUG 561: {{/Subpage}}
9624 subpage title=[[Page]]
9628 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
9636 Category:MediaWiki User's Guide
9644 [[:Category:MediaWiki User's Guide]]
9646 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
9655 [[Category:MediaWiki User's Guide]]
9657 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9661 PAGESINCATEGORY invalid title fatal (r33546 fix)
9663 {{PAGESINCATEGORY:<bogus>}}
9670 Category with different sort key
9674 [[Category:MediaWiki User's Guide|Foo]]
9676 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9680 Category with identical sort key
9684 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9686 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9690 Category with empty sort key
9695 [[Category:MediaWiki User's Guide|]]
9697 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9701 Category with empty sort key and parentheses
9706 [[Category:Foo (bar)|]]
9708 [[Category:Foo (bar)|Foo]]
9712 Category with link tail
9717 123[[Category:Foo]]456
9719 123[[Category:Foo]]456
9723 Category with template
9728 [[Category:{{echo|Foo}}]]
9730 [[Category:{{echo|Foo}}]]
9734 Category with template in sort key
9739 [[Category:Foo|{{echo|Bar}}]]
9741 [[Category:Foo|{{echo|Bar}}]]
9745 Category with template in sort key and title
9750 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9752 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9756 Category / paragraph interactions
9758 Foo [[Category:Baz]] Bar
9760 Foo [[Category:Baz]]
9768 [[Category:Baz]] Bar
9781 {{echo|[[Category:Baz]]}}
9796 Parsoid: Serialize link to category page with colon escape
9802 [[:Category:Foo|Bar]]
9805 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
9806 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
9811 Parsoid: Link prefix/suffixes aren't applied to category links
9813 parsoid=wt2html,wt2wt,html2html
9818 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
9822 Parsoid: Serialize link to file page with colon escape
9828 [[:File:Foo.png|Bar]]
9831 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
9832 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
9837 Parsoid: Serialize a genuine category link without colon escape
9842 [[Category:Foo|Bar]]
9844 <link rel="mw:WikiLink/Category" href="Category:Foo">
9845 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
9849 ### Inter-language links
9852 Inter-language links
9858 [[zh:食品]]
9860 es:Alimento fr:Nourriture zh:食品
9864 Duplicate interlanguage links (bug 24502)
9880 Basic section headings
9887 ===Smaller headline===
9890 <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>
9893 <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>
9896 <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>
9902 Section headings with TOC
9905 === Subheadline 1 ===
9906 ===== Skipping a level =====
9907 ====== Skipping a level ======
9911 ===Another headline===
9913 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9915 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
9917 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
9919 <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>
9921 <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>
9928 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
9930 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
9935 <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>
9936 <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>
9937 <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>
9938 <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>
9939 <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>
9942 <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>
9946 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
9948 Handling of sections up to level 6 and beyond
9951 == Level 2 Heading==
9952 === Level 3 Heading===
9953 ==== Level 4 Heading====
9954 ===== Level 5 Heading=====
9955 ====== Level 6 Heading======
9956 ======= Level 7 Heading=======
9957 ======== Level 8 Heading========
9958 ========= Level 9 Heading=========
9959 ========== Level 10 Heading==========
9961 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9963 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9965 <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>
9967 <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>
9969 <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>
9971 <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>
9973 <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>
9974 <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>
9975 <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>
9976 <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>
9977 <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>
9990 <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>
9991 <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>
9992 <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>
9993 <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>
9994 <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>
9995 <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>
9996 <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>
9997 <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>
9998 <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>
9999 <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>
10004 TOC regression (bug 9764)
10008 ==== title 1.1.1 ====
10013 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10015 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10017 <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>
10019 <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>
10022 <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>
10025 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
10027 <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>
10032 <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>
10033 <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>
10034 <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>
10035 <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>
10036 <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>
10037 <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>
10042 TOC with wgMaxTocLevel=3 (bug 6204)
10048 ==== title 1.1.1 ====
10053 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10055 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10057 <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>
10058 <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>
10061 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
10063 <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>
10068 <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>
10069 <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>
10070 <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>
10071 <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>
10072 <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>
10073 <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>
10078 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
10084 ====Section 1.1.1====
10085 ====Section 1.1.1.1====
10088 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10090 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
10092 <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>
10095 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
10098 <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>
10099 <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>
10100 <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>
10101 <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>
10102 <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>
10108 Resolving duplicate section names
10113 <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>
10114 <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>
10119 Resolving duplicate section names with differing case (bug 10721)
10124 <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>
10125 <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>
10137 Template with sections, __NOTOC__
10144 <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>
10145 <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>
10146 <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>
10147 <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>
10152 __NOEDITSECTION__ keyword
10158 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
10159 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
10164 Link inside a section heading
10166 ==Section with a [[Main Page|link]] in it==
10168 <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>
10173 TOC regression (bug 12077)
10180 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10182 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10184 <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>
10187 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
10190 <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>
10191 <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>
10192 <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>
10197 BUG 1219 URL next to image (good)
10199 http://example.com [[Image:foobar.jpg]]
10201 <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>
10206 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
10209 The line above must have a trailing space!
10212 But just in case it doesn't...
10214 <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>
10215 <p>The line above must have a trailing space!
10217 <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>
10218 <p>But just in case it doesn't...
10223 Header with special characters (bug 25462)
10225 The tooltips shall not show entities to the user (ie. be double escaped)
10242 <p>The tooltips shall not show entities to the user (ie. be double escaped)
10244 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10246 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
10247 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
10248 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
10249 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
10250 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
10253 <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>
10256 <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>
10259 <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>
10262 <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>
10265 <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>
10271 Headers with excess '=' characters
10272 (Are similar tests necessary beyond the 1st level?)
10276 =''italic'' heading==
10277 ==''italic'' heading=
10279 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10281 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
10282 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
10283 <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>
10284 <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>
10287 <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>
10288 <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>
10289 <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>
10290 <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>
10295 HTML headers vs TOC (bug 23393)
10296 (__NOEDITSECTION__ for clearer output, doesn't matter here)
10308 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10310 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
10312 <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>
10313 <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>
10316 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
10318 <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>
10319 <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>
10324 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
10325 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
10326 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
10327 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
10328 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
10329 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
10334 BUG 1219 URL next to image (broken)
10336 http://example.com[[Image:foobar.jpg]]
10338 <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>
10343 Bug 1186 news: in the middle of text
10345 http://en.wikinews.org/wiki/Wikinews:Workplace
10347 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
10353 Namespaced link must have a title
10362 Namespaced link must have a title (bad fragment version)
10364 [[Project:#fragment]]
10366 <p>[[Project:#fragment]]
10372 ### HTML tags and HTML attributes
10376 div with no attributes
10378 <div>HTML rocks</div>
10380 <div>HTML rocks</div>
10385 div with double-quoted attribute
10387 <div id="rock">HTML rocks</div>
10389 <div id="rock">HTML rocks</div>
10394 div with single-quoted attribute
10396 <div id='rock'>HTML rocks</div>
10398 <div id="rock">HTML rocks</div>
10403 div with unquoted attribute
10405 <div id=rock>HTML rocks</div>
10407 <div id="rock">HTML rocks</div>
10412 div with illegal double attributes
10414 <div id="a" id="b">HTML rocks</div>
10416 <div id="b">HTML rocks</div>
10420 # FIXME: produce empty string instead of "class" in the PHP parser, following
10423 div with empty attribute value, space before equals
10427 <div class =>HTML rocks</div>
10429 <div class="">HTML rocks</div>
10433 # The PHP parser escapes the opening brace to { for some reason, so
10434 # disabled this test for it.
10436 div with braces in attribute value
10440 <div title="{}">Foo</div>
10442 <div title="{}">Foo</div>
10445 # This it very inconsistent in the PHP parser: it returns
10446 # class="class" if there is a space between the name and the equal sign (see
10447 # 'div with empty attribute value, space before equals'), but strips the
10448 # attribute completely if the space is missing. We hope that not much content
10449 # depends on this, so are implementing the behavior below in Parsoid for
10450 # consistencies' sake. Disabled for the PHP parser.
10451 # FIXME: fix this behavior in the PHP parser?
10453 div with empty attribute value, no space before equals
10457 <div class=>HTML rocks</div>
10459 <div class="">HTML rocks</div>
10464 HTML multiple attributes correction
10466 <p class="error" class="awesome">Awesome!</p>
10468 <p class="awesome">Awesome!</p>
10473 Table multiple attributes correction
10476 !+ class="error" class="awesome"| status
10481 <th class="awesome"> status
10489 <DIV ID="x">HTML ROCKS</DIV>
10491 <div id="x">HTML ROCKS</div>
10496 Non-ASCII pseudo-tags are rendered as text
10505 Pseudo-tag with URL 'name' renders as url link
10507 <http://example.com/>
10509 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
10514 text with amp in the middle of nowhere
10518 <p>Remember AT&T?
10523 text with character entity: eacute
10525 I always thought é was a cute letter.
10527 <p>I always thought é was a cute letter.
10532 text with entity-escaped character entity-like string: eacute
10534 I always thought &eacute; was a cute letter.
10536 <p>I always thought &eacute; was a cute letter.
10541 text with undefined character entity: xacute
10543 I always thought &xacute; was a cute letter.
10545 <p>I always thought &xacute; was a cute letter.
10551 ### Nesting tests (see bug 41545, 50604, 51081)
10554 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
10555 # Note that html2wt is considerably more difficult if we use <b> in
10556 # the test case, instead of <big>
10558 Ensure that HTML adoption agency algorithm is properly implemented.
10560 <big>X<big>Y</big>Z</big>
10562 <p><big>X<big>Y</big>Z</big>
10566 # This was bug 41545 in the PHP parser.
10570 <kbd>X<kbd>Y</kbd>Z</kbd>
10572 <p><kbd>X<kbd>Y</kbd>Z</kbd>
10576 # The following cases were bug 51081 in the PHP parser.
10577 # Note that there are some other nestable tags (b, i, etc) which are
10578 # not covered; see bug 51081 for discussion.
10582 <em>X<em>Y</em>Z</em>
10584 <p><em>X<em>Y</em>Z</em>
10589 Nesting of <strong>
10591 <strong>X<strong>Y</strong>Z</strong>
10593 <p><strong>X<strong>Y</strong>Z</strong>
10602 <p><q>X<q>Y</q>Z</q>
10609 <ruby>X<ruby>Y</ruby>Z</ruby>
10611 <p><ruby>X<ruby>Y</ruby>Z</ruby>
10618 <bdo>X<bdo>Y</bdo>Z</bdo>
10620 <p><bdo>X<bdo>Y</bdo>Z</bdo>
10632 [[Media:Foobar.jpg]]
10634 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
10639 Media link with text
10641 [[Media:Foobar.jpg|A neat file to look at]]
10643 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
10647 # FIXME: this is still bad HTML tag nesting
10649 Media link with nasty text
10650 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
10652 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
10654 <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>
10659 Media link to nonexistent file (bug 1702)
10661 [[Media:No such.jpg]]
10663 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
10668 Image link to nonexistent file (bug 1850 - good)
10670 [[Image:No such.jpg]]
10672 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
10677 :Image link to nonexistent file (bug 1850 - bad)
10679 [[:Image:No such.jpg]]
10681 <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>
10688 Character reference normalization in link text (bug 1938)
10690 [[Main Page|this&that]]
10692 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
10699 Test for unicode normalization
10701 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
10705 (bug 19451) Links should refer to the normalized form.
10713 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10714 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10715 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10716 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10717 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10722 Empty attribute crash test (bug 2067)
10724 <font color="">foo</font>
10726 <p><font color="">foo</font>
10731 Empty attribute crash test single-quotes (bug 2067)
10733 <font color=''>foo</font>
10735 <p><font color="">foo</font>
10740 Attribute test: equals, then nothing
10742 <font color=>foo</font>
10744 <p><font>foo</font>
10749 Attribute test: unquoted value
10751 <font color=x>foo</font>
10753 <p><font color="x">foo</font>
10758 Attribute test: unquoted but illegal value (hash)
10760 <font color=#x>foo</font>
10762 <p><font color="#x">foo</font>
10767 Attribute test: no value
10769 <font color>foo</font>
10771 <p><font color="color">foo</font>
10776 Bug 2095: link with three closing brackets
10780 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
10785 Bug 2095: link with pipe and three closing brackets
10787 [[Main Page|link]]]
10789 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
10794 Bug 2095: link with pipe and three closing brackets, version 2
10796 [[Main Page|[http://example.com/]]]
10798 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
10808 Template:Dangerous attribute
10810 " onmouseover="alert(document.cookie)
10814 Template:Dangerous style attribute
10816 border-size: expression(alert(document.cookie))
10822 <div style="float: right; {{{1}}}">Magic div</div>
10826 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
10828 <div title="{{test}}"></div>
10830 <div title="This is a test template"></div>
10835 Bug 2304: HTML attribute safety (dangerous template; 2309)
10837 <div title="{{dangerous attribute}}"></div>
10839 <div title=""></div>
10844 Bug 2304: HTML attribute safety (dangerous style template; 2309)
10846 <div style="{{dangerous style attribute}}"></div>
10848 <div style="/* insecure input */"></div>
10853 Bug 2304: HTML attribute safety (safe parameter; 2309)
10855 {{div style|width: 200px}}
10857 <div style="float: right; width: 200px">Magic div</div>
10862 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
10864 {{div style|width: expression(alert(document.cookie))}}
10866 <div style="/* insecure input */">Magic div</div>
10871 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
10873 {{div style|"><script>alert(document.cookie)</script>}}
10875 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10880 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
10882 {{div style|" ><script>alert(document.cookie)</script>}}
10884 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10889 Bug 2304: HTML attribute safety (link)
10891 <div title="[[Main Page]]"></div>
10893 <div title="[[Main Page]]"></div>
10898 Bug 2304: HTML attribute safety (italics)
10900 <div title="''foobar''"></div>
10902 <div title="''foobar''"></div>
10907 Bug 2304: HTML attribute safety (bold)
10909 <div title="'''foobar'''"></div>
10911 <div title="'''foobar'''"></div>
10917 Bug 2304: HTML attribute safety (ISBN)
10919 <div title="ISBN 1234567890"></div>
10921 <div title="ISBN 1234567890"></div>
10926 Bug 2304: HTML attribute safety (RFC)
10928 <div title="RFC 1234"></div>
10930 <div title="RFC 1234"></div>
10935 Bug 2304: HTML attribute safety (PMID)
10937 <div title="PMID 1234567890"></div>
10939 <div title="PMID 1234567890"></div>
10944 Bug 2304: HTML attribute safety (web link)
10946 <div title="http://example.com/"></div>
10948 <div title="http://example.com/"></div>
10953 Bug 2304: HTML attribute safety (named web link)
10955 <div title="[http://example.com/ link]"></div>
10957 <div title="[http://example.com/ link]"></div>
10962 Bug 3244: HTML attribute safety (extension; safe)
10964 <div style="<nowiki>background:blue</nowiki>"></div>
10966 <div style="background:blue"></div>
10971 Bug 3244: HTML attribute safety (extension; unsafe)
10973 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10975 <div style="/* insecure input */"></div>
10979 # More MSIE fun discovered by Tom Gilder
10982 MSIE CSS safety test: spurious slash
10984 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10986 <div style="/* insecure input */">evil</div>
10991 MSIE CSS safety test: hex code
10993 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10995 <div style="/* insecure input */">evil</div>
11000 MSIE CSS safety test: comment in url
11002 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
11004 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
11009 MSIE CSS safety test: comment in expression
11011 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
11013 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
11019 Table attribute legitimate extension
11022 !+ style="<nowiki>color:blue</nowiki>"| status
11027 <th style="color:blue"> status
11033 Table attribute safety
11036 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
11041 <th style="/* insecure input */"> status
11047 CSS line continuation 1
11049 <div style="background-image: u\ rl(test.jpg);"></div>
11051 <div style="/* insecure input */"></div>
11056 CSS line continuation 2
11058 <div style="background-image: u\ rl(test.jpg); "></div>
11060 <div style="/* insecure input */"></div>
11071 Expansion of multi-line templates in attribute values (bug 6255)
11073 <div style="background: {{identity|#00FF00}}">-</div>
11075 <div style="background: #00FF00">-</div>
11081 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
11083 <div style="background:
11086 <div style="background: #00FF00">-</div>
11091 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
11093 <div style="background: #00FF00">-</div>
11095 <div style="background: #00FF00">-</div>
11100 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
11103 Parser hook: empty input
11116 Parser hook: empty input using terminated empty elements
11129 Parser hook: empty input using terminated empty elements (space before)
11142 Parser hook: basic input
11156 Parser hook: case insensitive
11170 Parser hook: case insensitive, redux
11183 Parser hook: nested tags
11187 <tag><tag></tag></tag>
11198 Parser hook: basic arguments
11200 <tag width=200 height = "100" depth = '50' square></tag>
11208 'square' => 'square',
11215 Parser hook: argument containing a forward slash (bug 5344)
11217 <tag filename='/tmp/bla'></tag>
11222 'filename' => '/tmp/bla',
11229 Parser hook: empty input using terminated empty elements (bug 2374)
11242 # </tag> should be output literally since there is no matching tag that begins it
11244 Parser hook: basic arguments using terminated empty elements (bug 2374)
11246 <tag width=200 height = "100" depth = '50' square/>
11256 'square' => 'square',
11265 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
11269 Parser hook: static parser hook not inside a comment
11271 <statictag>hello, world</statictag>
11272 <statictag action=flush/>
11280 Parser hook: static parser hook inside a comment
11282 <!-- <statictag>hello, world</statictag> -->
11283 <statictag action=flush/>
11289 # Nested template calls; this case was broken by Parser.php rev 1.506,
11293 Template:One-parameter
11295 (My parameter is: {{{1}}})
11299 Template:Map-one-parameter
11301 {{{{{1}}}|{{{2}}}}}
11305 Nested template calls
11307 {{Map-one-parameter|One-parameter|param}}
11309 <p>(My parameter is: param)
11318 Sanitizer: Closing of open tags
11320 <s></s><table></table>
11322 <s></s><table></table>
11327 Sanitizer: Closing of open but not closed tags
11336 Sanitizer: Closing of closed but not open tags
11345 Sanitizer: Closing of closed but not open table tags
11347 Table not started</td></tr></table>
11349 <p>Table not started</td></tr></table>
11354 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
11356 <span id="æ: v">byte</span>[[#æ: v|backlink]]
11358 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
11363 Sanitizer: Validating the contents of the id attribute (bug 4515)
11369 Something, but definitely not <br id="9" />...
11373 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
11377 <br id="foo" /><br id="foo" />
11379 Something need to be done. foo-2 ?
11383 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
11386 <meta itemprop="hello" content="world">
11387 <meta http-equiv="refresh" content="5">
11388 <meta itemprop="hello" http-equiv="refresh" content="5">
11389 <link itemprop="hello" href="{{SERVER}}">
11390 <link rel="stylesheet" href="{{SERVER}}">
11391 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
11394 <div itemscope="itemscope">
11395 <p> <meta itemprop="hello" content="world" />
11396 <meta http-equiv="refresh" content="5">
11397 <meta itemprop="hello" content="5" />
11399 <link itemprop="hello" href="http://example.org" />
11400 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
11401 <link itemprop="hello" href="http://example.org" />
11407 Language converter: output gets cut off unexpectedly (bug 5757)
11411 this bit is safe: }-
11413 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
11415 then we get cut off here: }-
11417 all additional text is vanished
11419 <p>this bit is safe: }-
11420 </p><p>but if we add a conversion instance: xxx
11421 </p><p>then we get cut off here: }-
11422 </p><p>all additional text is vanished
11427 Self closed html pairs (bug 5487)
11430 <center><font id="bug" />Centered text</center>
11431 <div><font id="bug2" />In div text</div>
11433 <center><font id="bug" />Centered text</center>
11434 <div><font id="bug2" />In div text</div>
11443 Punctuation: nbsp before exclamation
11447 <p>C'est grave !
11452 Punctuation: CSS !important (bug 11874)
11454 <div style="width:50% !important">important</div>
11456 <div style="width:50% !important">important</div>
11461 Punctuation: CSS ! important (bug 11874; with space after)
11463 <div style="width:50% ! important">important</div>
11465 <div style="width:50% ! important">important</div>
11471 HTML bullet list, closed tags (bug 5497)
11486 HTML bullet list, unclosed tags (bug 5497)
11503 HTML ordered list, closed tags (bug 5497)
11518 HTML ordered list, unclosed tags (bug 5497)
11535 HTML nested bullet list, closed tags (bug 5497)
11560 HTML nested bullet list, open tags (bug 5497)
11585 HTML nested ordered list, closed tags (bug 5497)
11610 HTML nested ordered list, open tags (bug 5497)
11635 HTML ordered list item with parameters oddity
11637 <ol><li id="fragment">One</li></ol>
11639 <ol><li id="fragment">One</li></ol>
11644 bug 5918: autonumbering
11646 [http://first/] [http://second] [ftp://ftp]
11650 [mailto:enclosed@mail.tld With target]
11652 [mailto:enclosed@mail.tld]
11654 mailto:inline@mail.tld
11656 <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>
11657 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
11658 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
11659 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
11660 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
11666 # Security and HTML correctness
11667 # From Nick Jenkins' fuzz testing
11671 Fuzz testing: Parser13
11686 Fuzz testing: Parser14
11691 <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>
11692 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11694 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
11701 Fuzz testing: Parser14-table
11706 <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>
11707 <table style="__TOC__">
11713 # Known to produce bogus xml (extra </td>)
11715 Fuzz testing: Parser16
11735 Fuzz testing: Parser21
11738 ! irc://{{ftp://a" onmouseover="alert('hello world');"
11743 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
11753 Fuzz testing: Parser22
11755 http://===r:::https://b
11759 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
11767 # Known to produce bad XML for now
11769 Fuzz testing: Parser24
11776 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
11777 <br style="onmouseover='alert(document.cookie);' " />
11779 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11784 <u class="|">}}}} >
11785 <br style="onmouseover='alert(document.cookie);'" />
11787 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11796 # Note: the current result listed for this is not what the original one was,
11797 # but the original bug was JavaScript injection, which is fixed in any case.
11798 # It's not clear that the original result listed was any more correct than the
11799 # current one. Original result:
11802 # <li class="||">
11803 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11805 Fuzz testing: Parser25 (bug 6055)
11811 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
11813 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11818 Fuzz testing: URL adjacent extension (with space, clean)
11821 http://example.com <nowiki>junk</nowiki>
11823 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
11828 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
11831 http://example.com<nowiki>junk</nowiki>
11833 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
11838 Fuzz testing: URL adjacent extension (no space, dirty; pre)
11841 http://example.com<pre>junk</pre>
11843 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
11848 Fuzz testing: image with bogus manual thumbnail
11850 [[Image:foobar.jpg|thumbnail= ]]
11852 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
11857 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
11859 <pre dir=" "></pre>
11861 <pre dir=" "></pre>
11866 Parsing optional HTML elements (Bug 6171)
11871 <td> Some tabular data</td>
11872 <td> More tabular data ...
11873 <td> And yet som tabular data</td>
11879 <td> Some tabular data</td>
11880 <td> More tabular data ...
11881 </td><td> And yet som tabular data</td>
11888 Correct handling of <td>, <tr> (Bug 6171)
11893 <td> Some tabular data</td>
11894 <td> More tabular data ...</td>
11895 <td> And yet som tabular data</td>
11901 <td> Some tabular data</td>
11902 <td> More tabular data ...</td>
11903 <td> And yet som tabular data</td>
11911 Parsing crashing regression (fr:JavaScript)
11915 <p></body></x>
11920 Inline wiki vs wiki block nesting
11926 <p><b>Bold paragraph</b>
11927 </p><p>New wiki paragraph
11932 Inline HTML vs wiki block nesting
11940 <p><b>Bold paragraph</b>
11941 </p><p>New wiki paragraph
11945 # Original result was this:
11946 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
11948 # While that might be marginally more intuitive, maybe, the six-apostrophe
11949 # construct is clearly pathological and the result stated here (which is what
11950 # the parser actually does) is about as reasonable as anything.
11952 Mixing markup for italics and bold
11955 '''bold''''''bold''bolditalics'''''
11957 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11965 Article for special page transclusion test
11969 Special page transclusion
11972 {{Special:Prefixindex/Xyzzyx}}
11974 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11979 Special page transclusion twice (bug 5021)
11982 {{Special:Prefixindex/Xyzzyx}}
11983 {{Special:Prefixindex/Xyzzyx}}
11985 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11986 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11991 Transclusion of default MediaWiki message
11993 {{MediaWiki:Mainpage}}
12000 Transclusion of nonexistent MediaWiki message
12002 {{MediaWiki:Mainpagexxx}}
12004 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
12009 Transclusion of MediaWiki message with underscore
12011 {{MediaWiki:history_short}}
12018 Transclusion of MediaWiki message with space
12020 {{MediaWiki:history short}}
12027 Invalid header with following text
12037 Section extraction test (section 0)
12057 Section extraction test (section 1)
12079 Section extraction test (section 2)
12100 Section extraction test (section 3)
12120 Section extraction test (section 4)
12144 Section extraction test (section 5)
12164 Section extraction test (section 6)
12185 Section extraction test (section 7)
12205 Section extraction test (section 8)
12225 Section extraction test (section 9)
12246 Section extraction test (section 10)
12266 Section extraction test (nonexistent section 11)
12285 Section extraction test with bogus heading (section 1)
12290 ==bogus== not a legal section
12294 ==bogus== not a legal section
12298 Section extraction test with bogus heading (section 2)
12303 ==bogus== not a legal section
12310 Section extraction test with comment after heading (section 1)
12322 Section extraction test with comment after heading (section 2)
12334 Section extraction test with bogus <nowiki> heading (section 1)
12339 ==bogus== <nowiki>not a legal section</nowiki>
12343 ==bogus== <nowiki>not a legal section</nowiki>
12347 Section extraction test with bogus <nowiki> heading (section 2)
12352 ==bogus== <nowiki>not a legal section</nowiki>
12359 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
12360 # instead of respecting commented sections
12362 Section extraction prefixed by comment (section 1)
12373 Section extraction prefixed by comment (section 2)
12384 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
12385 # instead of respecting HTML-style headings
12387 Section extraction, mixed wiki and html (section 1)
12403 Section extraction, mixed wiki and html (section 2)
12419 # Formerly testing for bug 3342
12421 Section extraction, heading surrounded by <noinclude>
12425 <noinclude>==unmarked==</noinclude>
12431 # Test behavior of bug 19910
12433 Sectiion with all-equals
12438 The line above must have a trailing space
12441 But just in case it doesn't...
12445 But just in case it doesn't...
12449 Section replacement test (section 0)
12480 Section replacement test (section 1)
12509 Section replacement test (section 2)
12539 Section replacement test (section 3)
12570 Section replacement test (section 4)
12597 Section replacement test (section 5)
12628 Section replacement test (section 6)
12658 Section replacement test (section 7)
12689 Section replacement test (section 8)
12720 Section replacement test (section 9)
12749 Section replacement test (section 10)
12779 Section replacement test with initial whitespace (bug 13728)
12783 Preformatted initial line
12787 Preformatted initial line
12794 Section extraction, heading followed by pre with 20 spaces (bug 6398)
12806 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
12819 Section extraction, <pre> around bogus header (bug 10309)
12836 Section replacement, <pre> around bogus header (bug 10309)
12838 noxml replace=2,"xxx"
12859 Handling of 
 in URLs
12863 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
12870 5 quotes, code coverage +1 line (php)
12877 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
12879 5 quotes, code coverage +1 line (parsoid)
12885 <p><i><b></b></i></p>
12889 Special:Search page linking.
12893 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
12900 title=[[Parser test]]
12905 * {{FULLPAGENAMEE}}
12907 * {{BASEPAGENAMEE}}
12911 * {{ROOTPAGENAMEE}}
12913 * {{TALKPAGENAMEE}}
12914 * {{SUBJECTPAGENAME}}
12915 * {{SUBJECTPAGENAMEE}}
12918 * {{NAMESPACENUMBER}}
12922 * {{SUBJECTSPACEE}}
12923 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
12925 <ul><li> Parser test
12926 </li><li> Parser_test
12927 </li><li> Parser test
12928 </li><li> Parser_test
12929 </li><li> Parser test
12930 </li><li> Parser_test
12931 </li><li> Parser test
12932 </li><li> Parser_test
12933 </li><li> Parser test
12934 </li><li> Parser_test
12935 </li><li> Talk:Parser test
12936 </li><li> Talk:Parser_test
12937 </li><li> Parser test
12938 </li><li> Parser_test
12946 </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>
12950 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
12960 image4 |300px| centre
12961 image5.svg| http://///////
12966 <ul class="gallery mw-gallery-traditional">
12967 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12968 <div class="thumb" style="height: 150px;">Image1.png</div>
12969 <div class="gallerytext">
12972 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12973 <div class="thumb" style="height: 150px;">Image2.gif</div>
12974 <div class="gallerytext">
12979 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12980 <div class="thumb" style="height: 150px;">Image3</div>
12981 <div class="gallerytext">
12984 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12985 <div class="thumb" style="height: 150px;">Image4</div>
12986 <div class="gallerytext">
12991 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12992 <div class="thumb" style="height: 150px;">Image5.svg</div>
12993 <div class="gallerytext">
12994 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12998 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12999 <div class="thumb" style="height: 150px;">* image6</div>
13000 <div class="gallerytext">
13008 Gallery (with options)
13010 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
13011 File:Nonexistant.jpg|caption
13012 File:Nonexistant.jpg
13013 image:foobar.jpg|some '''caption''' [[Main Page]]
13015 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
13018 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
13019 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
13020 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13021 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
13022 <div class="gallerytext">
13027 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13028 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
13029 <div class="gallerytext">
13032 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13033 <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>
13034 <div class="gallerytext">
13035 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13039 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13040 <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>
13041 <div class="gallerytext">
13044 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
13045 <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>
13046 <div class="gallerytext">
13056 Gallery with wikitext inside caption
13059 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
13060 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
13063 <ul class="gallery mw-gallery-traditional">
13064 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13065 <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>
13066 <div class="gallerytext">
13067 <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>
13071 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13072 <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>
13073 <div class="gallerytext">
13074 <p>This is a test template
13083 gallery (with showfilename option)
13085 <gallery showfilename>
13086 File:Nonexistant.jpg|caption
13087 File:Nonexistant.jpg
13088 image:foobar.jpg|some '''caption''' [[Main Page]]
13092 <ul class="gallery mw-gallery-traditional">
13093 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13094 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13095 <div class="gallerytext">
13096 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13101 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13102 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13103 <div class="gallerytext">
13104 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
13108 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13109 <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>
13110 <div class="gallerytext">
13111 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13112 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13116 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13117 <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>
13118 <div class="gallerytext">
13119 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
13128 Gallery (with namespace-less filenames)
13131 File:Nonexistant.jpg
13137 <ul class="gallery mw-gallery-traditional">
13138 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13139 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13140 <div class="gallerytext">
13143 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13144 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
13145 <div class="gallerytext">
13148 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13149 <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>
13150 <div class="gallerytext">
13153 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13154 <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>
13155 <div class="gallerytext">
13163 HTML Hex character encoding (spells the word "JavaScript")
13165 JavaScript
13167 <p>JavaScript
13172 HTML Hex character encoding bogus encoding (bug 26437 regression check)
13176 <p>&#xsee;&#XSEE;
13181 HTML Hex character encoding mixed case
13190 __FORCETOC__ override
13202 ISBN 978-0-1234-56 789
13204 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
13209 ISBN followed by 5 spaces
13220 ISBN ISBN 1234567890
13222 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13227 Bug 22905: <abbr> followed by ISBN followed by </a>
13229 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
13231 <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>
13240 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
13245 Double RFC with a wiki link
13249 <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>
13258 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
13263 Centre-aligned image
13265 [[Image:foobar.jpg|centre]]
13267 <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>
13274 [[Image:foobar.jpg|none]]
13276 <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>
13281 Width + Height sized image (using px) (height is ignored)
13283 [[Image:foobar.jpg|640x480px]]
13285 <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>
13290 Width-sized image (using px, no following whitespace)
13292 [[Image:foobar.jpg|640px]]
13294 <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>
13299 Width-sized image (using px, with following whitespace - test regression from r39467)
13301 [[Image:foobar.jpg|640px ]]
13303 <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>
13308 Width-sized image (using px, with preceding whitespace - test regression from r39467)
13310 [[Image:foobar.jpg| 640px]]
13312 <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>
13317 Another italics / bold test
13325 # Note the results may be incorrect, as parserTest output included this:
13326 # XML error: Mismatched tag at byte 6120:
13327 # ...<dd> </dt></dl> </dd...
13335 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
13346 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
13348 Images with the "|" character in the comment
13350 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
13352 <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>
13357 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
13359 <html><script>alert(1);</script></html>
13361 <p><html><script>alert(1);</script></html>
13366 HTML with raw HTML ($wgRawHtml==true)
13370 <html><script>alert(1);</script></html>
13372 <p><script>alert(1);</script>
13377 Parents of subpages, one level up
13379 subpage title=[[Subpage test/L1/L2/L3]]
13383 <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>
13389 Parents of subpages, one level up, not named
13391 subpage title=[[Subpage test/L1/L2/L3]]
13395 <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>
13402 Parents of subpages, two levels up
13404 subpage title=[[Subpage test/L1/L2/L3]]
13410 <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
13411 </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>
13416 Parents of subpages, two levels up, without trailing slash or name.
13418 subpage title=[[Subpage test/L1/L2/L3]]
13427 Parents of subpages, two levels up, with lots of extra trailing slashes.
13429 subpage title=[[Subpage test/L1/L2/L3]]
13433 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
13438 Subpage test/L1/L2/L3Sibling
13444 Transclusion of a sibling page (one level up)
13446 subpage title=[[Subpage test/L1/L2/L3]]
13455 Transclusion of a child page
13457 subpage title=[[Subpage test/L1/L2]]
13466 Non-transclusion because of too many up levels
13468 subpage title=[[Subpage test/L1/L2/L3]]
13470 {{../../../../More than parent}}
13472 <p>{{../../../../More than parent}}
13477 Definition list code coverage
13483 <dl><dt> title  </dt><dd> def
13484 </dd><dt> title </dt><dd> def
13485 </dd><dt>title</dt><dd> def
13491 Don't fall for the self-closing div
13493 <div>hello world</div/>
13495 <div>hello world</div>
13504 <p>[[:Template:Msg]]
13513 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
13517 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
13519 Always escape literal '>' in output, not just after '<'
13533 <p>This is a test template
13534 This is a test template
13546 Inclusion of !userCanEdit() content
13550 <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>
13556 Out-of-order TOC heading levels
13565 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13567 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
13569 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
13570 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
13573 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
13575 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
13576 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
13581 <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>
13582 <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>
13583 <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>
13584 <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>
13585 <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>
13586 <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>
13592 ISBN with a dummy number
13602 ISBN with space-delimited number
13606 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
13612 ISBN with multiple spaces, no number
13631 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13632 </p><p>ISBN 12345678901
13638 ISBN with trailing year (bug 8110)
13640 ISBN 1-234-56789-0 - 2006
13642 ISBN 1 234 56789 0 - 2006
13644 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
13645 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
13653 {{anchorencode:foo bar©#%n}}
13655 <p>foo_bar.C2.A9.23.25n
13660 anchorencode trims spaces
13662 {{anchorencode: __pretty__please__}}
13669 anchorencode deals with links
13671 {{anchorencode: [[hello|world]] [[hi]]}}
13678 anchorencode deals with templates
13680 {{anchorencode: {{Foo}} }}
13687 anchorencode encodes like the TOC generator: (bug 18431)
13689 === _ +:.3A%3A&&]] ===
13690 {{anchorencode: _ +:.3A%3A&&]] }}
13693 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
13694 <p>.2B:.3A.253A.26.26.5D.5D
13699 Bug 6200: blockquotes and paragraph formatting
13720 Bug 8293: Use of center tag ruins paragraph formatting
13741 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
13745 <span><s>x</span></s>
13747 <p><span><s>x</span></s></span>
13752 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
13756 <span><s>x</span></s>
13758 <p><span><s>x</s></span><s></s>
13763 ### Language variants related tests
13766 Self-link in language variants
13768 title=[[Dunav]] language=sr
13770 Both [[Dunav]] and [[Дунав]] are names for this river.
13772 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
13783 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
13785 title=[[Duna]] language=sr
13787 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
13789 <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.
13794 Link to pages in language variants
13798 Main Page can be written as [[Маин Паге]]
13800 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
13806 Multiple links to pages in language variants
13810 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
13812 <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>.
13818 Simple template in language variants
13824 <p>This is a test template
13830 Template with explicit namespace in language variants
13836 <p>This is a test template
13842 Basic test for template parameter in language variants
13846 {{парамтест|param=foo}}
13848 <p>This is a test template with parameter foo
13854 Simple category in language variants
13858 [[Category:МедиаWики Усер'с Гуиде]]
13860 <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>
13877 Don't convert blue categorylinks to another variant (bug 33210)
13881 [[A]][[Category:分类]]
13883 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
13888 Stripping -{}- tags (language variants)
13892 Latin proverb: -{Ne nuntium necare}-
13894 <p>Latin proverb: Ne nuntium necare
13900 Prevent conversion with -{}- tags (language variants)
13902 language=sr variant=sr-ec
13904 Latinski: -{Ne nuntium necare}-
13906 <p>Латински: Ne nuntium necare
13912 Prevent conversion of text with -{}- tags (language variants)
13914 language=sr variant=sr-ec
13916 Latinski: -{Ne nuntium necare}-
13918 <p>Латински: Ne nuntium necare
13924 Prevent conversion of links with -{}- tags (language variants)
13926 language=sr variant=sr-ec
13930 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13936 -{}- tags within headlines (within html for parserConvert())
13938 language=sr variant=sr-ec
13942 <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>
13948 Explicit definition of language variant alternatives
13950 language=zh variant=zh-tw
13952 -{zh:China;zh-tw:Taiwan}-, not China
13954 <p>Taiwan, not China
13960 Conversion around HTML tags
13962 language=sr variant=sr-ec
13964 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13965 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13968 <span title="ЛаCтин">ски</span>
13974 Explicit session-wise language variant mapping (A flag and - flag)
13976 language=zh variant=zh-tw
13978 Taiwan is not China.
13979 But -{A|zh:China;zh-tw:Taiwan}- is China,
13980 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13981 and -{China}- is China.
13983 <p>Taiwan is not China.
13984 But Taiwan is Taiwan,
13985 (This should be stripped!)
13986 and China is China.
13991 Explicit session-wise language variant mapping (H flag for hide)
13993 language=zh variant=zh-tw
13995 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13998 <p>(This should be stripped!)
14004 Adding explicit conversion rule for title (T flag)
14006 language=zh variant=zh-tw showtitle
14008 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14011 <p>Should be stripped!
14016 Testing that changing the language variant here in the tests actually works
14018 language=zh variant=zh showtitle
14020 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14023 <p>Should be stripped!
14028 Recursive conversion of alt and title attrs shouldn't clear converter state
14030 language=zh variant=zh-cn showtitle
14032 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
14033 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
14037 Should be stripped<span title="Exclamation">!</span>
14042 Bug 24072: more test on conversion rule for title
14044 language=zh variant=zh-tw showtitle
14046 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
14047 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
14050 <p>This should be stripped!
14051 This won't take interferes with the title rule.
14056 Partly disable title conversion if variant == main language code
14058 language=zh variant=zh title=[[ZH]] showtitle
14060 -{T|zh-cn:CN;zh-tw:TW}-
14068 Partly disable title conversion if variant == main language code, more
14070 language=zh variant=zh title=[[ZH]] showtitle
14080 Raw output of variant escape tags (R flag)
14082 language=zh variant=zh-tw
14084 Raw: -{R|zh:China;zh-tw:Taiwan}-
14086 <p>Raw: zh:China;zh-tw:Taiwan
14091 Nested using of manual convert syntax
14093 language=zh variant=zh-hk
14095 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
14097 <p>Nested: Hello Hong Kong!
14102 Proper conversion of text in external links
14104 language=sr variant=sr-ec
14106 http://www.google.com
14107 gopher://www.google.com
14108 [http://www.google.com http://www.google.com]
14109 [gopher://www.google.com gopher://www.google.com]
14110 [https://www.google.com irc://www.google.com]
14111 [ftp://www.google.com www.google.com/ftp://dir]
14112 [//www.google.com www.google.com]
14114 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14115 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14116 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
14117 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
14118 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
14119 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
14120 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
14125 Do not convert roman numbers to language variants
14127 language=sr variant=sr-ec
14131 <p>Фридрих IV је цар.
14136 Unclosed language converter markup "-{"
14147 Don't convert raw rule "-{R|=>}-" to "=>"
14158 Bug 529: Uncovered bullet
14168 # Plain MediaWiki does not remove empty lists, but tidy actually does.
14169 # Templates in Wikipedia rely on this behavior, as tidy has always been
14170 # enabled there. These tests are normally run *without* tidy, so specify the
14171 # full output here.
14172 # To test realistic parsing behavior, apply a tidy-like transformation to both
14173 # the expected output and your parser's output.
14175 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
14177 ******* Foo {{bullet}}
14179 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
14192 Bug 529: Uncovered table already at line-start
14215 Bug 529: Uncovered bullet in parser function result
14217 * Foo {{lc:{{bullet}} }}
14226 Bug 5678: Double-parsed template argument
14228 {{lc:{{{1}}}|hello}}
14235 Bug 5678: Double-parsed template invocation
14237 {{lc:{{paramtest {{!}} param = hello }} }}
14239 <p>{{paramtest | param = hello }}
14244 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
14247 title=[[Main Page]]
14249 {{PRVNÍVELKÉ:ěščř}}
14250 {{prvnívelké:ěščř}}
14270 Morwen/13: Unclosed link followed by heading
14277 <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>
14282 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
14289 <h1><span class="mw-headline" id="heading">heading</span></h1>
14294 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
14301 <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>
14316 Paragraphs inside divs (no extra line breaks)
14328 Paragraphs inside divs (extra line break on open)
14343 Paragraphs inside divs (extra line break on close)
14358 Paragraphs inside divs (extra line break on open and close)
14375 Nesting tags, paragraphs on lines which begin with <div>
14379 <div></div><strong>A
14388 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
14390 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
14392 <blockquote>Line one
14394 Line two</blockquote>
14396 <blockquote>Line one
14397 Line two</blockquote>
14402 Bug 6200: paragraphs inside blockquotes (extra line break on open)
14407 Line two</blockquote>
14412 Line two</blockquote>
14417 Bug 6200: paragraphs inside blockquotes (extra line break on close)
14419 <blockquote>Line one
14424 <blockquote>Line one
14432 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
14449 Paragraphs inside blockquotes/divs (no extra line breaks)
14451 <blockquote><div>Line one
14453 Line two</div></blockquote>
14455 <blockquote><div>Line one
14456 Line two</div></blockquote>
14461 Paragraphs inside blockquotes/divs (extra line break on open)
14466 Line two</div></blockquote>
14471 Line two</div></blockquote>
14476 Paragraphs inside blockquotes/divs (extra line break on close)
14478 <blockquote><div>Line one
14481 </div></blockquote>
14483 <blockquote><div>Line one
14486 </div></blockquote>
14491 Paragraphs inside blockquotes/divs (extra line break on open and close)
14497 </div></blockquote>
14503 </div></blockquote>
14508 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
14510 wgLinkHolderBatchSize=0
14516 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
14517 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
14518 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
14523 Free external link invading image caption
14525 [[Image:Foobar.jpg|thumb|http://x|hello]]
14527 <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>
14532 Bug 15196: localised external link numbers
14536 [http://en.wikipedia.org/]
14538 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
14543 Multibyte character in padleft
14545 {{padleft:-Hello|7|Æ}}
14552 Multibyte character in padright
14554 {{padright:Hello-|7|Æ}}
14561 formatdate parser function
14563 {{#formatdate:2009-03-24}}
14565 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
14570 formatdate parser function, with default format
14572 {{#formatdate:2009-03-24|mdy}}
14574 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
14579 Spacing of numbers in formatted dates
14581 {{#formatdate:January 15}}
14583 <p><span class="mw-formatted-date" title="01-15">January 15</span>
14588 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
14590 language=nl title=[[MediaWiki:Common.css]]
14592 {{#formatdate:2009-03-24|dmy}}
14594 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
14607 Edit comment with link
14611 I like the [[Main Page]] a lot
14613 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
14617 Edit comment with link and link text
14621 I like the [[Main Page|best pages]] a lot
14623 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14627 Edit comment with link and link text with suffix
14631 I like the [[Main Page|best page]]s a lot
14633 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14637 Edit comment with section link (non-local, eg in history list)
14639 comment title=[[Main Page]]
14641 /* External links */ removed bogus entries
14643 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14647 Edit comment with section link and text before it (non-local, eg in history list)
14649 comment title=[[Main Page]]
14651 pre-comment text /* External links */ removed bogus entries
14653 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>
14657 Edit comment with section link (local, eg in diff view)
14659 comment local title=[[Main Page]]
14661 /* External links */ removed bogus entries
14663 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14667 Edit comment with subpage link (bug 14080)
14671 title=[[Subpage test]]
14673 Poked at a [[/subpage]] here...
14675 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
14679 Edit comment with subpage link and link text (bug 14080)
14683 title=[[Subpage test]]
14685 Poked at a [[/subpage|neat little page]] here...
14687 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
14691 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
14694 title=[[Subpage test]]
14696 Poked at a [[/subpage]] here...
14698 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
14702 Edit comment with bare anchor link (local, as on diff)
14706 title=[[Main Page]]
14710 <a href="#section">#section</a>
14714 Edit comment with bare anchor link (non-local, as on history)
14717 title=[[Main Page]]
14721 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
14725 Anchor starting with underscore
14729 <p><a href="#_ref">One</a>
14734 Id starting with underscore
14736 <div id="_ref"></div>
14738 <div id="_ref"></div>
14743 Space normalisation on autocomment (bug 22784)
14746 title=[[Main Page]]
14748 /* __hello__world__ */
14750 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
14754 percent-encoding and + signs in comments (Bug 26410)
14758 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
14760 <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>
14764 Bad images - basic functionality
14773 Bad images - bug 16039: text after bad image disappears
14787 Verify that displaytitle works (bug #22501) no displaytitle
14791 wgAllowDisplayTitle=true
14792 wgRestrictDisplayTitle=false
14794 this is not the the title
14797 <p>this is not the the title
14802 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
14807 wgAllowDisplayTitle=true
14808 wgRestrictDisplayTitle=false
14810 this is not the the title
14811 {{DISPLAYTITLE:whatever}}
14814 <p>this is not the the title
14819 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
14824 wgAllowDisplayTitle=true
14825 wgRestrictDisplayTitle=true
14827 this is not the the title
14828 {{DISPLAYTITLE:whatever}}
14831 <p>this is not the the title
14836 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
14841 wgAllowDisplayTitle=true
14842 wgRestrictDisplayTitle=true
14844 this is not the the title
14845 {{DISPLAYTITLE:screen}}
14848 <p>this is not the the title
14853 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
14858 wgAllowDisplayTitle=false
14860 this is not the the title
14861 {{DISPLAYTITLE:screen}}
14864 <p>this is not the the title
14865 <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>
14870 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
14875 wgAllowDisplayTitle=false
14877 this is not the the title
14880 <p>this is not the the title
14885 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
14890 wgAllowDisplayTitle=true
14891 wgRestrictDisplayTitle=true
14893 this is not the the title
14894 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
14896 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
14897 <p>this is not the the title
14902 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
14907 wgAllowDisplayTitle=true
14908 wgRestrictDisplayTitle=true
14910 this is not the the title
14911 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
14913 <span style="color: red;">s</span>creen
14914 <p>this is not the the title
14919 preload: check <noinclude> and <includeonly>
14923 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
14929 preload: check <onlyinclude>
14933 Goodbye <onlyinclude>Hello world</onlyinclude>
14939 preload: can pass tags through if we want to
14943 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
14945 <includeonly>Hello world</includeonly>
14949 preload: check that it doesn't try to do tricks
14953 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14955 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14959 Play a bit with r67090 and bug 3158
14963 <div style="width:50% !important"> </div>
14964 <div style="width:50% !important"> </div>
14965 <div style="width:50% !important"> </div>
14966 <div style="border : solid;"> </div>
14968 <div style="width:50% !important"> </div>
14969 <div style="width:50% !important"> </div>
14970 <div style="width:50% !important"> </div>
14971 <div style="border : solid;"> </div>
14976 HTML5 data attributes
14978 <span data-foo="bar">Baz</span>
14979 <p data-abc-def_hij="">Quuz</p>
14981 <p><span data-foo="bar">Baz</span>
14983 <p data-abc-def_hij="">Quuz</p>
14988 percent-encoding and + signs in internal links (Bug 26410)
14990 [[User:+%]] [[Page+title%]]
14991 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14992 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14993 [[%33%45]] [[%33%45+]]
14995 <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>
14996 <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>
14997 <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>
14998 <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>
15003 Special characters in embedded file links (bug 27679)
15005 [[File:Contains & ampersand.jpg]]
15006 [[File:Does not exist.jpg|Title with & ampersand]]
15008 <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>
15009 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
15015 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
15017 Text's been normalized?
15019 <p>Text's been normalized?
15024 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
15026 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
15028 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
15033 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
15035 [http://www.example.org/ ideograms]
15037 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
15042 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
15044 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
15046 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
15070 Bug 31098 Template which includes system messages which includes the template
15074 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15075 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
15080 Bug31490 Turkish: ucfirst 'blah'
15091 Bug31490 Turkish: ucfirst 'ix'
15102 Bug31490 Turkish: lcfirst 'BLAH'
15113 Bug31490 Turkish: ucfırst (with a dotless i)
15119 <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>
15124 Bug31490 ucfırst (with a dotless i) with English language
15130 <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>
15135 Bug 26375: TOC with italics
15137 title=[[Main Page]]
15140 == ''Lost'' episodes ==
15142 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15144 <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>
15147 <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>
15152 Bug 26375: TOC with bold
15154 title=[[Main Page]]
15157 == '''should be bold''' then normal text ==
15159 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15161 <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>
15164 <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>
15169 Bug 33845: Headings become cursive in TOC when they contain an image
15171 title=[[Main Page]]
15174 == Image [[Image:foobar.jpg]] ==
15176 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15178 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
15181 <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>
15186 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
15188 title=[[Main Page]]
15191 == <blockquote>Quote</blockquote> ==
15193 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15195 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
15198 <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>
15203 Unclosed tags in TOC
15205 title=[[Main Page]]
15209 <small>Hanc marginis exiguitas non caperet.</small>
15212 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15214 <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>
15217 <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>
15218 <p><small>Hanc marginis exiguitas non caperet.</small>
15224 Multiple tags in TOC
15227 == <i>Foo</i> <b>Bar</b> ==
15229 == <i>Foo</i> <blockquote>Bar</blockquote> ==
15231 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15233 <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>
15234 <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>
15237 <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>
15238 <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>
15243 Tags with parameters in TOC
15246 == <sup class="in-h2">Hello</sup> ==
15248 == <sup class="a > b">Evilbye</sup> ==
15250 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15252 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
15253 <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>
15256 <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>
15257 <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>
15262 span tags with directionality in TOC
15265 == <span dir="ltr">C++</span> ==
15267 == <span dir="rtl">זבנג!</span> ==
15269 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
15271 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
15273 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
15275 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15277 <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>
15278 <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>
15279 <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>
15280 <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>
15281 <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>
15284 <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>
15285 <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>
15286 <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>
15287 <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>
15288 <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>
15295 == {{int:headline_sample}} ==
15299 Bug 32057: Title needed when expanding <h> nodes.
15301 title=[[Main Page]]
15305 <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>
15310 Strip marker in urlencode
15312 {{urlencode:x<nowiki/>y}}
15313 {{urlencode:x<nowiki/>y|wiki}}
15314 {{urlencode:x<nowiki/>y|path}}
15341 Strip marker in formatNum
15343 {{formatnum:1<nowiki/>2}}
15344 {{formatnum:1<nowiki/>2|R}}
15352 Check noCommafy in formatNum
15356 {{formatnum:123456.78}}
15357 {{formatnum:123456.78|NOSEP}}
15365 Strip marker in grammar
15369 {{grammar:elative|foo<nowiki/>bar}}
15376 Strip marker in padleft
15378 {{padleft:|2|x<nowiki/>y}}
15385 Strip marker in padright
15387 {{padright:|2|x<nowiki/>y}}
15394 Strip marker in anchorencode
15396 {{anchorencode:x<nowiki/>y}}
15403 nowiki inside link inside heading (bug 18295)
15405 ==[[foo|x<nowiki>y</nowiki>z]]==
15407 <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>
15412 new support for bdi element (bug 31817)
15414 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15416 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15421 Ignore pipe between table row attributes
15425 |- id=foo | style='color: red'
15433 <tr id="foo" style="color: red">
15440 Gallery override link with WikiLink (bug 34852)
15443 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
15446 <ul class="gallery mw-gallery-traditional">
15447 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15448 <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>
15449 <div class="gallerytext">
15459 Gallery override link with absolute external link (bug 34852)
15462 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
15465 <ul class="gallery mw-gallery-traditional">
15466 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15467 <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>
15468 <div class="gallerytext">
15478 Gallery override link with malicious javascript (bug 34852)
15481 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
15484 <ul class="gallery mw-gallery-traditional">
15485 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15486 <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>
15487 <div class="gallerytext">
15497 Gallery with invalid title as link (bug 43964)
15500 File:foobar.jpg|link=<
15503 <ul class="gallery mw-gallery-traditional">
15504 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15505 <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>
15506 <div class="gallerytext">
15514 Language parser function
15523 Padleft and padright as substr
15525 {{padleft:|3|abcde}}
15526 {{padright:|3|abcde}}
15534 Special parser function
15536 {{#special:RandomPage}}
15537 {{#special:BaDtItLe}}
15538 {{#special:Foobar}}
15547 Bug 34939 - Case insensitive link parsing ([HttP://])
15549 [HttP://MediaWiki.Org/]
15551 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
15556 Bug 34939 - Case insensitive link parsing ([HttP:// title])
15558 [HttP://MediaWiki.Org/ MediaWiki]
15560 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
15565 Bug 34939 - Case insensitive link parsing (HttP://)
15567 HttP://MediaWiki.Org/
15569 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
15575 ### Parsoids-specific tests
15576 ### Parsoid-PHP parser incompatibilities
15579 1. SOL-sensitive wikitext tokens as template-args
15581 parsoid=wt2html,wt2wt
15587 <span about="#mwt1" typeof="mw:Transclusion">
15588 </span><ul about="#mwt1"><li>a</li></ul>
15589 <span about="#mwt2" typeof="mw:Transclusion">
15590 </span><ol about="#mwt2"><li>a</li></ol>
15591 <span about="#mwt3" typeof="mw:Transclusion">
15592 </span><dl about="#mwt3"><dd>a</dd></dl>
15595 #### ----------------------------------------------------------------
15596 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
15597 #### tags. Parsoid's output for these tags differs from that of the
15599 #### ----------------------------------------------------------------
15602 Ref: 1. ref-location should be replaced with an index span
15607 B <ref name="x">foo</ref>
15610 <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>
15611 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>
15612 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>
15616 Ref: 2. ref-tags with identical names should all get the same index
15620 A <ref name="x">foo</ref>
15623 <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>
15624 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>
15628 Ref: 3. spaces in ref-names should be ignored
15632 A <ref name="x">foo</ref>
15633 B <ref name=" x " />
15636 <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>
15637 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>
15638 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>
15642 Ref: 4. 'constructor' should be accepted as a valid ref-name
15643 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
15647 A <ref name="constructor">foo</ref>
15649 <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>
15653 Ref: 5. body should accept generic wikitext
15658 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
15663 <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>
15665 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15666 <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>
15671 Ref: 6. indent-pres should not be output in ref-body
15683 <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>
15685 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15686 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15693 Ref: 6. No p-wrapping in ref-body
15712 <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>
15714 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15715 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15729 Ref: 8. transclusion wikitext has lower precedence
15733 A <ref> foo {{echo|</ref> B C}}
15737 <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>
15739 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15740 <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>
15744 Ref: 9. unclosed comments should not leak out of ref-body
15748 A <ref> foo <!--</ref> B C
15752 <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>
15754 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15755 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
15759 Ref: 10. Unclosed HTML tags should not leak out of ref-body
15763 A <ref> <b> foo </ref> B C
15767 <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>
15769 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15770 <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>
15774 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
15781 <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
15782 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>
15786 Ref: 12. ref-tags act as trailing newline migration barrier
15790 <!--the newline at the end of this line moves out of the p-tag-->a
15792 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
15797 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
15800 <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>
15801 <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>
15808 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
15816 <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
15817 <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>
15821 Ref: 14. A nested ref-tag should be emitted as plain text
15825 <ref>foo <ref>bar</ref> baz</ref>
15829 <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>
15831 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
15832 <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>
15836 Ref: 15. ref-tags with identical names should get identical indexes
15840 A1 <ref name="a">foo</ref> A2 <ref name="a" />
15841 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
15845 <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>
15846 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>
15848 <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>
15852 References: 1. references tag without any refs should be handled properly
15858 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
15862 References: 2. references tag with group only outputs references from that group
15866 A <ref group="a">foo</ref>
15867 B <ref group="b">bar</ref>
15869 <references group='a' />
15871 <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>
15872 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>
15874 <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>
15878 References: 3. ref list should be cleared after processing references
15890 <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>
15892 <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>
15894 <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>
15896 <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>
15900 References: 4. only referenced group should be cleared after processing references
15904 A <ref group="a">afoo</ref>
15907 <references group="a"/>
15913 <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>
15914 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>
15916 <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>
15918 <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>
15920 <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>
15924 References: 5. ref tags in references should be processed while ignoring all other content
15929 B <ref name="b">bar</ref>
15932 <ref name="a">foo</ref>
15933 This should just get lost.
15936 <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>
15937 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>
15939 <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>
15943 References: 6. <references /> from a transclusion
15947 {{echo|<references />}}
15949 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15953 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
15957 A <ref>foo bar for a</ref>
15963 <ref name="b">foo</ref>
15966 <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>
15967 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>
15969 <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>
15971 <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>
15975 #### ----------------------------------------------------------------
15976 #### The following section of tests are primarily to test
15977 #### wikitext escaping capabilities of Parsoid. Given that
15978 #### escaping can be done any number of ways, the wikitext (input)
15979 #### is always adjusted to reflect how Parsoid adds nowiki
15982 #### We are marking several tests as parsoid-only since the
15983 #### HTML in the result section is different from what the
15984 #### PHP parser generates for it.
15985 #### ----------------------------------------------------------------
15988 #### --------------- Headings ---------------
15990 #### 1. Nested inside html <h1>=foo=</h1>
15991 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15992 #### 3. Nested inside html with wikitext split by html tags
15993 #### 4. No escape needed
15994 #### 5. Empty headings <h1></h1>
15995 #### 6. Heading chars in SOL context
15996 #### ----------------------------------------
15998 Headings: 0. Unnested
16002 <nowiki>=foo=</nowiki>
16004 <nowiki> =foo= </nowiki>
16006 <nowiki>=foo=</nowiki>
16008 =foo''a''<nowiki>=</nowiki>
16010 <p><span typeof="mw:Nowiki">=foo=</span></p>
16012 <p><span typeof="mw:Nowiki"> =foo= </span>
16014 <span typeof="mw:Nowiki">=foo=</span></p>
16016 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
16020 Headings: 1. Nested inside html
16024 =<nowiki>=foo=</nowiki>=
16026 ==<nowiki>=foo=</nowiki>==
16028 ===<nowiki>=foo=</nowiki>===
16030 ====<nowiki>=foo=</nowiki>====
16032 =====<nowiki>=foo=</nowiki>=====
16034 ======<nowiki>=foo=</nowiki>======
16036 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
16037 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
16038 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
16039 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
16040 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
16041 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
16045 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
16050 <nowiki>*</nowiki>bar
16056 <nowiki>=bar=</nowiki>
16064 Headings: 3. Nested inside html with wikitext split by html tags
16068 =='''bold'''<nowiki>foo=</nowiki>=
16070 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
16074 Headings: 4a. No escaping needed (testing just h1 and h2)
16092 =<nowiki>=</nowiki>=
16100 <h1><i>=</i>foo=</h1>
16101 <h1><span typeof="mw:Nowiki">=</span></h1>
16105 Headings: 4b. No escaping needed (inside p-tags)
16120 Headings: 5. Empty headings
16132 =====<nowiki/>=====
16134 ======<nowiki/>======
16145 Headings: 6a. Heading chars in SOL context (with trailing spaces)
16149 <nowiki>=a=</nowiki>
16151 <nowiki>=a=</nowiki>
16153 <nowiki>=a=</nowiki>
16155 <nowiki>=a=</nowiki>
16164 Headings: 6b. Heading chars in SOL context (with trailing newlines)
16192 Headings: 6c. Heading chars in SOL context (leading newline break)
16197 <nowiki>=b=</nowiki>
16204 Headings: 6d. Heading chars in SOL context (with interspersed comments)
16208 <!--c0--><nowiki>=a=</nowiki>
16210 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
16212 <p><!--c0-->=a=</p>
16213 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
16217 Headings: 6d. Heading chars in SOL context (No escaping needed)
16226 #### --------------- Lists ---------------
16227 #### 0. Outside nests (*foo, etc.)
16228 #### 1. Nested inside html <ul><li>*foo</li></ul>
16229 #### 2. Inside definition lists
16230 #### 3. Only bullets at start should be escaped
16231 #### 4. No escapes needed
16232 #### 5. No unnecessary escapes
16233 #### 6. Escape bullets in SOL position
16234 #### 7. Escape bullets in a multi-line context
16235 #### ----------------------------------------
16238 Lists: 0. Outside nests
16240 <nowiki>*</nowiki>foo
16242 <nowiki>#</nowiki>foo
16250 Lists: 1. Nested inside html
16252 *<nowiki>*foo</nowiki>
16254 *<nowiki>#foo</nowiki>
16256 *<nowiki>:foo</nowiki>
16258 *<nowiki>;foo</nowiki>
16260 #<nowiki>*foo</nowiki>
16262 #<nowiki>#foo</nowiki>
16264 #<nowiki>:foo</nowiki>
16266 #<nowiki>;foo</nowiki>
16288 Lists: 2. Inside definition lists
16290 ;<nowiki>;foo</nowiki>
16292 ;<nowiki>:foo</nowiki>
16294 ;<nowiki>:foo</nowiki>
16297 :<nowiki>:foo</nowiki>
16312 Lists: 3. Only bullets at start of text should be escaped
16314 *<nowiki>*foo*bar</nowiki>
16316 *<nowiki>*foo</nowiki>''it''*bar
16320 <ul><li>*foo<i>it</i>*bar
16326 Lists: 4. No escapes needed
16338 <ul><li><i>foo</i>*bar
16340 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
16345 Lists: 5. No unnecessary escapes
16347 * bar <span><nowiki>[[foo]]</nowiki></span>
16349 *=bar <span><nowiki>[[foo]]</nowiki></span>
16351 *[[bar <span><nowiki>[[foo]]</nowiki></span>
16353 *]]bar <span><nowiki>[[foo]]</nowiki></span>
16355 *=bar <span>foo]]</span>=
16359 <ul><li> bar <span>[[foo]]</span>
16361 <ul><li>=bar <span>[[foo]]</span>
16363 <ul><li>[[bar <span>[[foo]]</span>
16365 <ul><li>]]bar <span>[[foo]]</span>
16367 <ul><li>=bar <span>foo]]</span>=
16369 <ul><li> <s></s>: a
16375 Lists: 6. Escape bullets in SOL position
16379 <!--cmt--><nowiki>*foo</nowiki>
16381 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
16385 Lists: 7. Escape bullets in a multi-line context
16388 <nowiki>*</nowiki>b
16395 #### --------------- HRs ---------------
16396 #### 1. Single line
16397 #### -----------------------------------
16400 HRs: 1. Single line
16404 ----<nowiki>----</nowiki>
16408 <hr><span typeof="mw:Nowiki">----</span>
16413 #### --------------- Tables ---------------
16414 #### 1a. Simple example
16415 #### 1b. No escaping needed (!foo)
16416 #### 1c. No escaping needed (|foo)
16417 #### 1d. No escaping needed (|}foo)
16419 #### 2a. Nested in td (<td>foo|bar</td>)
16420 #### 2b. Nested in td (<td>foo||bar</td>)
16421 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
16423 #### 3a. Nested in th (<th>foo!bar</th>)
16424 #### 3b. Nested in th (<th>foo!!bar</th>)
16425 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
16429 #### 4c. No escaping needed
16430 #### --------------------------------------
16433 Tables: 1a. Simple example
16444 Tables: 1b. No escaping needed
16453 Tables: 1c. No escaping needed
16462 Tables: 1d. No escaping needed
16471 Tables: 2a. Nested in td
16476 |<nowiki>foo|bar</nowiki>
16480 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
16484 Tables: 2b. Nested in td
16489 |<nowiki>foo||bar</nowiki>
16490 |''it''<nowiki>foo||bar</nowiki>
16494 <td><span typeof="mw:Nowiki">foo||bar</span></td>
16495 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
16499 Tables: 2c. Nested in td -- no escaping needed
16507 <table><tbody><tr><td>foo!!bar
16508 </td></tr></tbody></table>
16513 Tables: 3a. Nested in th
16521 <table><tbody><tr><th>foo!bar
16522 </th></tr></tbody></table>
16527 Tables: 3b. Nested in th
16532 !<nowiki>foo!!bar</nowiki>
16536 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
16541 Tables: 3c. Nested in th -- no escaping needed
16546 !<nowiki>foo||bar</nowiki>
16550 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
16554 Tables: 4a. Escape -
16562 |<nowiki>-bar</nowiki>
16566 <tr><th>-bar</th></tr>
16568 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
16572 Tables: 4b. Escape +
16580 |<nowiki>+bar</nowiki>
16584 <tr><th>+bar</th></tr>
16586 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
16590 Tables: 4c. No escaping needed
16609 <tr><td>foo-bar</td><td>foo+bar</td></tr>
16610 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
16618 ### SSS FIXME: Disabled right now because accurate html2wt
16619 ### on this snippet requires data-parsoid flags that we've
16620 ### stripped out of these tests. We should scheme how we
16621 ### we want to handle these kind of tests that require
16622 ### data-parsoid flags for accurate html2wt serialization
16625 Tables: 4d. No escaping needed
16643 #### --------------- Links ----------------
16644 #### 1. Quote marks in link text
16645 #### 2. Wikilinks: Escapes needed
16646 #### 3. Wikilinks: No escapes needed
16647 #### 4. Extlinks: Escapes needed
16648 #### 5. Extlinks: No escapes needed
16649 #### --------------------------------------
16651 Links 1. Quote marks in link text
16655 [[Foo|Foo<nowiki>''boo''</nowiki>]]
16657 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
16661 Links 2. WikiLinks: Escapes needed
16665 [[Foo|<nowiki>[Foobar]</nowiki>]]
16666 [[Foo|<nowiki>Foobar]</nowiki>]]
16667 [[Foo|x [Foobar] x]]
16668 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
16669 [[Foo|<nowiki>[[Bar]]</nowiki>]]
16670 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
16671 [[Foo|<nowiki>|Bar</nowiki>]]
16672 [[Foo|<nowiki>]]bar</nowiki>]]
16673 [[Foo|<nowiki>[[bar</nowiki>]]
16674 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
16676 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
16677 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
16678 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
16679 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
16680 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
16681 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
16682 <a href="Foo" rel="mw:WikiLink">|Bar</a>
16683 <a href="Foo" rel="mw:WikiLink">]]bar</a>
16684 <a href="Foo" rel="mw:WikiLink">[[bar</a>
16685 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
16689 Links 3. WikiLinks: No escapes needed
16696 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
16697 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
16701 Links 4. ExtLinks: Escapes needed
16705 [http://google.com <nowiki>[google]</nowiki>]
16706 [http://google.com <nowiki>google]</nowiki>]
16708 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
16709 <a href="http://google.com" rel="mw:ExtLink">google]</a>
16713 Links 5. ExtLinks: No escapes needed
16717 [http://google.com [google]
16719 <a href="http://google.com" rel="mw:ExtLink">[google</a>
16722 #### --------------- Quotes ---------------
16723 #### 1. Quotes inside <b> and <i>
16724 #### 2. Link fragments separated by <i> and <b> tags
16725 #### 3. Link fragments inside <i> and <b>
16726 #### 4. No escaping needed
16727 #### --------------------------------------
16729 1. Quotes inside <b> and <i>
16731 parsoid=html2wt,wt2wt
16733 ''<nowiki>'foo'</nowiki>''
16734 ''<nowiki>''foo''</nowiki>''
16735 ''<nowiki>'''foo'''</nowiki>''
16737 '''<nowiki>'foo'</nowiki>'''
16738 '''<nowiki>''foo''</nowiki>'''
16739 '''<nowiki>'''foo'''</nowiki>'''
16740 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
16741 '''foo'''<nowiki/>'s
16744 '<nowiki/>''foo''<nowiki/>'
16746 '''foo'''<nowiki/>'
16747 '<nowiki/>'''foo'''<nowiki/>'
16756 <b>foo'<i>bar'</i>baz</b>
16767 2. Link fragments separated by <i> and <b> tags
16769 [[''foo''<nowiki>hello]]</nowiki>
16771 [['''foo'''<nowiki>hello]]</nowiki>
16773 <p>[[<i>foo</i>hello]]
16774 </p><p>[[<b>foo</b>hello]]
16779 3. Link fragments inside <i> and <b>
16780 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
16781 this is one of the shortcomings of this format)
16783 ''[[foo''<nowiki>]]</nowiki>
16785 '''[[foo'''<nowiki>]]</nowiki>
16788 </p><p><b>[[foo</b>]]
16793 4. No escaping needed
16795 '<span>''bar''</span>'
16796 '<span>'''bar'''</span>'
16798 <p>'<span><i>bar</i></span>'
16799 '<span><b>bar</b></span>'
16803 #### ----------- Paragraphs ---------------
16804 #### 1. No unnecessary escapes
16805 #### --------------------------------------
16808 1. No unnecessary escapes
16810 bar <span><nowiki>[[foo]]</nowiki></span>
16812 =bar <span><nowiki>[[foo]]</nowiki></span>
16814 [[bar <span><nowiki>[[foo]]</nowiki></span>
16816 ]]bar <span><nowiki>[[foo]]</nowiki></span>
16818 =bar <span>foo]]</span><nowiki>=</nowiki>
16820 <p>bar <span>[[foo]]</span>
16821 </p><p>=bar <span>[[foo]]</span>
16822 </p><p>[[bar <span>[[foo]]</span>
16823 </p><p>]]bar <span>[[foo]]</span>
16824 </p><p>=bar <span>foo]]</span>=
16828 #### ----------------------- PRE --------------------------
16829 #### 1. Leading whitespace in SOL context should be escaped
16830 #### ------------------------------------------------------
16832 1. Leading whitespace in SOL context should be escaped
16836 <nowiki> </nowiki>a
16838 <nowiki> </nowiki> a
16840 <nowiki> </nowiki>a(tab)
16842 <nowiki> </nowiki> a
16844 <nowiki> </nowiki> a
16847 <nowiki> </nowiki>b
16850 <nowiki> </nowiki>b
16853 <nowiki> </nowiki> b
16859 <p><!--cmt--> a</p>
16868 #### --------------- HTML tags ---------------
16871 #### 3. multi-line html tag
16872 #### -----------------------------------------
16878 <a href="http://google.com">google</a>
16880 <a href="http://google.com">google</a>
16886 <nowiki><div>foo</div>
16887 <div style="color:red">foo</div></nowiki>
16889 <p><div>foo</div>
16890 <div style="color:red">foo</div>
16895 3. multi-line html tag
16910 <nowiki><ref>foo</ref></nowiki>
16912 <p><ref>foo</ref>
16916 #### --------------- Others ---------------
16920 <nowiki>foo</nowiki>
16922 <p><nowiki>foo</nowiki>
16926 ## The quote-char in the input is necessary for triggering the bug
16928 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
16930 parsoid=wt2wt,html2wt
16939 Tag-like HTML structures are passed through as text
16961 </p><p>1<d e>f
16966 # This was a bug in the PHP parser (see bug 17663 and its dups,
16967 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
16969 Tag names followed by punctuation should not be recognized as tags
16973 <p><s.ome> text
16978 HTML tag with necessary entities in attributes
16980 <span title="&amp;">foo</span>
16982 <p><span title="&amp;">foo</span>
16987 HTML tag with 'unnecessary' entity encoding in attributes
16989 <span title="&">foo</span>
16991 <p><span title="&">foo</span>
16996 HTML tag with broken attribute value quoting
16998 <span title="Hello world>Foo</span>
17000 <p><span>Foo</span>
17005 Parsoid-only: HTML tag with broken attribute value quoting
17009 <span title="Hello world>Foo</span>
17011 <p><span title="Hello world">Foo</span>
17016 Table with broken attribute value quoting
17019 | title="Hello world|Foo
17030 Table with broken attribute value quoting on consecutive lines
17033 | title="Hello world|Foo
17034 | style="color:red|Bar
17047 Parsoid-only: Table with broken attribute value quoting on consecutive lines
17052 | title="Hello world|Foo
17053 | style="color:red|Bar
17058 <td title="Hello world">Foo
17059 </td><td style="color: red">Bar
17060 </td></tr></tbody></table>
17065 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
17075 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
17085 Accept empty td cell attribute
17088 | align="center" | foo || |
17093 <td align="center"> foo </td>
17100 Non-empty attributes in th-cells
17103 ! Foo !! style="color: red" | Bar
17109 <th style="color: red"> Bar
17115 Accept empty attributes in th-cells
17130 Empty table rows go away
17151 ### Parsoid-centric tests for testing RTing of inter-element separators
17152 ### Edge cases not tested by existing parser tests and specific to
17153 ### Parsoid-specific serialization strategies.
17157 RT-ed inter-element separators should be valid separators
17170 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
17171 (Parsoid-only since PHP parser relies on Tidy for correct output)
17187 Empty TD followed by TD with tpl-generated attribute
17192 |{{echo|style='color:red'}}|foo
17206 Indented table with an empty td
17225 Empty TR followed by a template-generated TR
17226 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
17228 parsoid=wt2html,wt2wt
17232 {{echo|<tr><td>foo</td></tr>}}
17238 <tr typeof="mw:Transclusion">
17239 <td>foo</td></tr></tbody></table>
17242 ## PHP and parsoid output differ for this, and since this is primarily
17243 ## for testing Parsoid's serializer, marking this Parsoid only
17245 Empty TR followed by mixed-ws-comment line should RT correctly
17259 <td> <!--c--></td></tr>
17261 <td><!--c--> <!--d--></td></tr>
17267 Multi-line image caption generated by templates with/without trailing newlines
17271 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
17272 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
17274 <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>
17275 <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>
17279 ## PHP emits broken html for this, and since this is primarily
17280 ## a Parsoid serializer test, marking this Parsoid only
17282 Improperly nested inline or quotes tags with whitespace in between
17286 <span> <s>x</span> </s>
17289 <p><span> <s>x</s></span><s> </s>
17290 <b> <i>x</i></b><i> </i>
17295 Encapsulate protected attributes from wt
17299 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
17301 <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>
17305 ## Currently the p-wrapper is fragile in how adds / removes transformations.
17306 ## Having nested or stray pre tags results in the attempt to add duplicates,
17307 ## causing an assertion fail. This test tries to prevent that situation.
17309 Ensure ParagraphWrapper can deal with stray closing pre tags
17318 # -----------------------------------------------------------------
17319 # The following section of tests are primarily to spec requirements
17320 # around serialization of new/edited content.
17322 # All these tests are marked Parsoid html2wt and html2html only
17323 # ----------------------------------------------------------------
17326 Image: Modifying size of an image
17330 [[Image:Wiki.png|230x230px]]
17332 <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>
17336 Image: New block level image should have \n before and after
17341 [[File:Wiki.png|right|thumb|150x150px]]
17344 <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>
17347 # Wacky -- the leading newline in input is required because
17348 # that is what the serializer emits. To be fixed. Not fixing
17349 # the test because this test is required to test serialization of
17350 # new content and preferred whitespace style.
17352 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
17360 <li><p>foo</p></li>
17364 # Wacky -- the leading newline in input is required because
17365 # that is what the serializer emits. To be fixed. Not fixing
17366 # the test because this test is required to test serialization of
17367 # new content and preferred whitespace style.
17369 Lists: Add space after bullets
17376 * <span> baz</span>
17381 <li><span> baz</span></li>
17386 Parsoid: Serialize positional parameters with = in them as named parameter
17392 <p about="#mwt1" typeof="mw:Transclusion"
17393 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
17397 # -----------------------------------------------------------------
17398 # End of section for Parsoid-only html2wt tests for serialization
17400 # -----------------------------------------------------------------
17407 Try for 100% code coverage