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
452 Italics and possessives
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
461 ### 2-quote opening sequence tests
464 Italics and bold: 2-quote opening sequence: (2,2)
474 Italics and bold: 2-quote opening sequence: (2,3)
484 Italics and bold: 2-quote opening sequence: (2,4)
494 Italics and bold: 2-quote opening sequence: (2,5) (php)
503 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
505 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
517 ### 3-quote opening sequence tests
521 Italics and bold: 3-quote opening sequence: (3,2)
531 Italics and bold: 3-quote opening sequence: (3,3)
541 Italics and bold: 3-quote opening sequence: (3,4)
551 Italics and bold: 3-quote opening sequence: (3,5) (php)
560 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
562 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
574 ### 4-quote opening sequence tests
578 Italics and bold: 4-quote opening sequence: (4,2)
588 Italics and bold: 4-quote opening sequence: (4,3)
598 Italics and bold: 4-quote opening sequence: (4,4)
608 Italics and bold: 4-quote opening sequence: (4,5) (php)
617 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
619 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
625 <p>'<b>foo<i></i></b>
631 ### 5-quote opening sequence tests
635 Italics and bold: 5-quote opening sequence: (5,2) (php)
644 # Parsoid reverses the nesting order, compared to the PHP parser
646 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
658 Italics and bold: 5-quote opening sequence: (5,3)
668 Italics and bold: 5-quote opening sequence: (5,4)
672 <p><i><b>foo'</b></i>
678 Italics and bold: 5-quote opening sequence: (5,5)
687 ### multiple quote sequences in a line
690 Italics and bold: multiple quote sequences: (2,4,2)
694 <p><i>foo'<b>bar</b></i>
700 Italics and bold: multiple quote sequences: (2,4,3)
704 <p><i>foo'<b>bar</b></i>
710 Italics and bold: multiple quote sequences: (2,4,4)
714 <p><i>foo'<b>bar'</b></i>
720 Italics and bold: multiple quote sequences: (3,4,2) (php)
729 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
731 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
737 <p><b>foo'</b>bar<i></i>
743 Italics and bold: multiple quote sequences: (3,4,3) (php)
752 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
754 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
760 <p><b>foo'</b>bar<b></b>
765 ### other quote tests
768 Italics and bold: other quote tests: (2,3,5)
770 ''this is about '''foo's family'''''
772 <p><i>this is about <b>foo's family</b></i>
778 Italics and bold: other quote tests: (2,(3,3),2)
780 ''this is about '''foo's''' family''
782 <p><i>this is about <b>foo's</b> family</i>
788 Italics and bold: other quote tests: (3,2,3,2)
790 '''this is about ''foo'''s family''
792 <p><b>this is about <i>foo</i></b><i>s family</i>
797 # The Parsoid team believes the PHP parser's output on this test is wrong.
798 # It only checks for convert-to-bold-on-single-character-word when the word
799 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
800 # This means that the bold token in position 2 (0-indexed) gets converted by
801 # parsoid, but doesn't get changed by the PHP parser.
803 Italics and bold: other quote tests: (3,2,3,3) (php)
807 '''this is about ''foo'''s family'''
809 <p>'<i>this is about </i>foo<b>s family</b>
812 # This is the output the Parsoid team believes to be correct.
814 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
818 '''this is about ''foo'''s family'''
820 <p><b>this is about <i>foo'</i>s family</b>
826 Italics and bold: other quote tests: (3,(2,2),3)
828 '''this is about ''foo's'' family'''
830 <p><b>this is about <i>foo's</i> family</b>
836 Italicized possessive
838 The ''[[Main Page]]'''s talk page.
840 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
845 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
846 (Requires tidy for PHP parser output to be fixed up)
848 parsoid=wt2html,wt2wt
856 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
857 <td><i>a</i></td><td><i>b</i></td></tr>
866 Non-html5 tags should be accepted
868 <center>''foo''</center>
871 <strike>''foo''</strike>
874 <center><i>foo</i></center>
875 <p><big><i>foo</i></big>
876 <font><i>foo</i></font>
877 <strike><i>foo</i></strike>
883 <wbr> is valid wikitext (bug 52468)
891 # <strike> is HTML4, <s> is HTML4/5.
893 <s> or <strike> for strikethrough
895 <strike>strike</strike>
899 <p><strike>strike</strike>
905 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
907 <b→> doesn't work! </b>
909 <bä> doesn't work! </b>
911 <boo> works fine </b>
919 <p><b→> doesn't work! </b>
920 </p><p><bä> doesn't work! </b>
921 </p><p><boo> works fine </b>
922 </p><p><s.foo>foo</s>
923 </p><p><s.foo>s.foo</s.foo>
924 </p><p><sub-ID#1>
929 ### Special characters
933 Bare pipe character (bug 52363)
942 Bare pipe character from a template (bug 52363)
951 ### <nowiki> test cases
955 <nowiki> unordered list
957 <nowiki>* This is not an unordered list item.</nowiki>
959 <p>* This is not an unordered list item.
966 <nowiki>Lorem ipsum dolor
987 :There is not nowiki.
988 :There is <nowiki>nowiki</nowiki>.
990 #There is not nowiki.
991 #There is <nowiki>nowiki</nowiki>.
993 *There is not nowiki.
994 *There is <nowiki>nowiki</nowiki>.
996 <dl><dd>There is not nowiki.
997 </dd><dd>There is nowiki.
999 <ol><li>There is not nowiki.
1000 </li><li>There is nowiki.
1002 <ul><li>There is not nowiki.
1003 </li><li>There is nowiki.
1009 Entities inside <nowiki>
1011 <nowiki><</nowiki>
1018 Entities inside template parameters
1024 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
1032 Comments and Indent-Pre
1034 <!-- comment 1 --> asdf
1036 <!-- comment 1 --> asdf
1039 <!-- comment 1 --> asdf
1040 <!-- comment 2 -->xyz
1042 <!-- comment 1 --> asdf
1043 <!-- comment 2 --> xyz
1099 asdf<!-- comment 1 -->jkl
1109 <!-- foo --> b <!-- bar -->
1123 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1129 Comment semantics and delimiters
1131 <!-- --><!----><!-----><!------>
1137 Comment semantics and delimiters, redux
1139 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1140 -- foo -- funky huh? ... -->
1146 Comment semantics and delimiters: directors cut
1148 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1149 everything starting with < followed by !-- until the first -- and > we see,
1150 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1158 Comment semantics: nesting
1160 <!--<!-- no, we're not going to do anything fancy here -->-->
1167 Comment semantics: unclosed comment at end
1169 <!--This comment will run out to the end of the document
1175 Comment in template title
1184 Comment on its own line post-expand
1196 Comment on its own line post-expand with non-significant whitespace
1208 ### paragraph wrapping tests
1222 Block tag on one line
1234 Block tag on both lines
1246 Multiple lines without block tags
1264 Empty lines between lines with block tags
1294 ### Preformatted text
1303 And a [[Main Page|link]]
1309 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1314 Ident preformatting with inline content
1325 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1342 Regression with preformatted in <center>
1355 # Expected output in the following test is not really expected (there should be
1356 # <pre> in the output) -- it's only testing for well-formedness.
1358 Bug 6200: Preformatted in <blockquote>
1371 <pre> with attributes (bug 3202)
1373 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1375 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1380 <pre> with width attribute (bug 3202)
1382 <pre width="8">Narrow screen goodies</pre>
1384 <pre width="8">Narrow screen goodies</pre>
1389 <pre> with forbidden attribute (bug 3202)
1391 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1393 <pre width="8">Narrow screen goodies</pre>
1398 Entities inside <pre>
1407 <pre> with forbidden attribute values (bug 3202)
1409 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1411 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1416 <nowiki> inside <pre> (bug 13238)
1424 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1432 <pre><nowiki>Foo</nowiki></pre>
1437 <nowiki> and <pre> preference (first one wins)
1468 </pre> inside nowiki
1470 <nowiki></pre></nowiki>
1477 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1485 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1495 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1507 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1528 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1532 {{echo| foo}}{{echo| bar}}
1537 {{echo|<!--cmt--> foo}}
1539 <!--cmt-->{{echo| foo}}
1541 {{echo|{{echo| }}bar}}
1559 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1596 Templates: Single-line variant of parameter whitespace stripping test
1602 {{echo|{{echo| a}}}}
1604 {{echo|1={{echo| a}}}}
1617 Templates: Strip whitespace from named parameters, but not positional ones
1645 Templates: Dont strip whitespace from whitespace/comment-only arguments
1649 {{echo| <!--cmt--> }}
1656 Templates: Parsoid parameter escaping test 1
1660 {{echo|[foo]|{{echo|[bar]}}}}
1662 <p about="#mwt1" typeof="mw:Transclusion"
1663 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1667 Parsoid: Pipes in external links in template parameter
1671 {{echo|[{{echo|http://example.com}} link]}}
1673 <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>
1677 Parsoid: pipe in transclusion parameter
1681 {{echo|http://foo.com/a|b}}
1683 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1684 typeof="mw:Transclusion"
1685 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>
1689 Parsoid: Pipe in external link target and content in template parameter
1691 parsoid=html2wt,wt2wt
1693 {{echo|[http://foo.com/a|b a|b]}}
1695 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1696 typeof="mw:Transclusion"
1697 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1698 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1702 Templates: Dont escape already nowiki-escaped text in template parameters
1704 parsoid=html2wt,wt2wt
1706 {{echo|foo<nowiki>|</nowiki>bar}}
1707 {{echo|<nowiki><div></nowiki>}}
1708 {{echo|<nowiki></nowiki>}}
1710 <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>
1711 <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>
1712 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1717 ### Parsoid-centric tests for testing RT edge cases for pre
1721 1a. Indent-Pre and Comments
1734 1b. Indent-Pre and Comments
1747 1c. Indent-Pre and Comments
1760 1d. Indent-Pre and Comments
1761 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
1774 2a. Indent-Pre and tables
1795 2b. Indent-Pre and tables
1811 2c. Indent-Pre and tables (bug 42252)
1828 3a. Indent-Pre and block tags (single-line html)
1836 <pre><span> foo </span>
1841 3b. Indent-Pre and block tags (pre-content on separate line)
1893 4. Multiple spaces at start-of-line
1912 5. White-space in indent-pre
1913 NOTE: the white-space char on 2nd line is significant
1926 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
1949 7a. Indent-pre and category links
1951 parsoid=wt2html,wt2wt
1953 [[Category:foo]] <!-- No pre-wrapping -->
1954 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
1956 <span typeof="mw:Transclusion"> </span>
1960 7b. Indent-pre and category links
1962 parsoid=wt2html,wt2wt
1965 [[Category:foo]] {{echo|b}}
1967 <pre> a <span typeof="mw:Transclusion">b</span>
1972 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1976 HTML-pre: 1. embedded newlines
2012 HTML-pre: 2: indented text
2025 HTML-pre: 3: other wikitext
2046 ### Definition lists
2053 <dl><dt> name </dt><dd> Definition
2059 Definition list for indentation only
2063 <dl><dd> Indented text
2069 Definition list with no space
2073 <dl><dt>name</dt><dd>Definition
2079 Definition list with URL link
2081 ; http://example.com/ : definition
2083 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
2089 Definition list with bracketed URL link
2091 ;[http://www.example.com/ Example]:Something about it
2093 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
2099 Definition list with wikilink containing colon
2101 ; [[Help:FAQ]]: The least-read page on Wikipedia
2103 <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
2108 # At Brion's and JeLuF's insistence... :)
2110 Definition list with news link containing colon
2112 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2114 <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!
2120 Malformed definition list with colon
2122 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2124 <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
2130 Definition lists: colon in external link text
2132 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2134 <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
2140 Definition lists: colon in HTML attribute
2142 ;<b style="display: inline">bold</b>
2144 <dl><dt><b style="display: inline">bold</b>
2150 Definition lists: self-closed tag
2152 ;one<br/>two : two-line fun
2154 <dl><dt>one<br />two </dt><dd> two-line fun
2160 Bug 11748: Literal closing tags
2164 <dd>test test test test test</dd>
2166 <dd>test test test test test</dd>
2171 <dd>test test test test test</dd>
2173 <dd>test test test test test</dd>
2179 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2182 ; term : description
2188 <dl><dt> term </dt><dd> description
2199 Definition list with empty definition and following paragraph
2204 <dl><dt> term</dt><dd>
2211 Nested definition lists using html syntax
2228 Definition Lists: No nesting: Multiple dd's
2242 Definition Lists: Indentation: Regular
2258 Definition Lists: Indentation: Missing 1st level
2272 Definition Lists: Indentation: Multi-level indent
2276 <dl><dd><dl><dd><dl><dd>i3
2284 Definition Lists: Hacky use to indent tables
2291 should be left alone
2293 <dl><dd><dl><dd><table>
2298 </td></tr></table></dd></dl></dd></dl>
2300 should be left alone
2303 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2304 ## as an empty dt item. It also ignores all but the last ";" when followed
2305 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2306 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2309 ## Ex: ";;t2 ::d2" is transformed into:
2321 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2322 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2333 ## All Parsoid only definition list tests have this difference.
2335 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2336 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2339 Table / list interaction: indented table with lists in table contents
2361 </td></tr></table></dd></dl>
2366 Table / list interaction: lists nested in tables nested in indented lists
2391 </td></tr></table></dd></dl>
2399 Definition Lists: Nesting: Multi-level (Parsoid only)
2429 Definition Lists: Nesting: Test 2 (Parsoid only)
2449 Definition Lists: Nesting: Test 3 (Parsoid only)
2477 Definition Lists: Nesting: Test 4
2482 <dl><dd><dl><dd><dl><dt>t3
2491 ## The Parsoid team believes the following three test exposes a
2492 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2493 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2495 Definition Lists: Mixed Lists: Test 1 (php)
2503 <dl><dd><dl><dt><ul><li> foo
2513 Definition Lists: Mixed Lists: Test 1 (parsoid)
2521 <dl><dd><dl><dt><ul><li> foo
2522 </li></ul></dt><dd><ul><li> bar
2523 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2527 Definition Lists: Mixed Lists: Test 2
2541 Definition Lists: Mixed Lists: Test 3
2546 <ul><li><dl><dd><dl><dd><dl><dd> d1
2557 Definition Lists: Mixed Lists: Test 4
2562 <ul><li><dl><dt>d1 </dt><dd>d2
2563 </dd><dt>d3 </dt><dd>d4
2571 Definition Lists: Mixed Lists: Test 5
2586 Definition Lists: Mixed Lists: Test 6
2591 <ol><li><ul><li><dl><dd>d1
2603 Definition Lists: Mixed Lists: Test 7
2617 Definition Lists: Mixed Lists: Test 8
2633 Definition Lists: Mixed Lists: Test 9
2637 <ul><li><dl><dt>foo </dt><dd>bar
2645 Definition Lists: Mixed Lists: Test 10
2649 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2656 # The Parsoid team disagrees with the PHP parser's seemingly-random
2657 # rules regarding dd/dt on the next two tests. Parsoid is more
2658 # consistent, and recognizes the shared nesting and keeps the
2659 # still-open tags around until the nesting is complete.
2662 Definition Lists: Mixed Lists: Test 11 (php)
2669 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2674 <dl><dt>boo </dt><dd>baz
2683 Definition Lists: Mixed Lists: Test 11 (parsoid)
2705 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2706 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2707 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2708 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2713 Definition Lists: Weird Ones: Test 1 (php)
2717 *#;*::;; foo : bar (who uses this?)
2719 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2731 Definition Lists: Weird Ones: Test 1 (parsoid)
2735 *#;*::;; foo : bar (who uses this?)
2752 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2753 <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>
2760 External links: non-bracketed
2762 Non-bracketed: http://example.com
2764 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2769 External links: numbered
2771 Numbered: [http://example.com]
2772 Numbered: [http://example.net]
2773 Numbered: [http://example.com]
2775 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2776 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2777 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2782 External links: specified text
2784 Specified text: [http://example.com link]
2786 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2791 External links: trail
2793 Linktrails should not work for external links: [http://example.com link]s
2795 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2800 External links: dollar sign in URL
2802 http://example.com/1$2345
2804 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2809 External links: dollar sign in URL (named)
2811 [http://example.com/1$2345]
2813 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2818 External links: open square bracket forbidden in URL (bug 4377)
2820 http://example.com/1[2345
2822 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2827 External links: open square bracket forbidden in URL (named) (bug 4377)
2829 [http://example.com/1[2345]
2831 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2836 External links: nowiki in URL link text (bug 6230)
2838 [http://example.com/ <nowiki>''example site''</nowiki>]
2840 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2845 External links: newline forbidden in text (bug 6230 regression check)
2847 [http://example.com/ first
2850 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2856 External links: Pipe char between url and text
2858 [http://example.com | link]
2860 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2865 External links: protocol-relative URL in brackets
2867 [//example.com/ Test]
2869 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2874 External links: protocol-relative URL in brackets without text
2878 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2883 External links: protocol-relative URL in free text is left alone
2887 <p>//example.com/Foo
2892 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2894 foo//example.com/Foo
2896 <p>foo//example.com/Foo
2903 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2905 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2910 External image from https
2912 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2914 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2919 External image (when not allowed)
2921 wgAllowExternalImages=0
2923 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2925 <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>
2930 Link to non-http image, no img tag
2932 Link to non-http image, no img tag: ftp://example.com/test.jpg
2934 <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>
2939 External links: terminating separator
2941 Terminating separator: http://example.com/thing,
2943 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2948 External links: intervening separator
2950 Intervening separator: http://example.com/1,2,3
2952 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2957 External links: old bug with URL in query
2959 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2961 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2966 External links: old URL-in-URL bug, mixed protocols
2968 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2970 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2975 External links: URL in text
2977 URL in text: [http://example.com http://example.com]
2979 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2984 External links: Clickable images
2986 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2988 <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>
2993 External links: raw ampersand
2995 Old & use: http://x&y
2997 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3002 External links: encoded ampersand
3004 Old & use: http://x&y
3006 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3011 External links: encoded equals (bug 6102)
3013 http://example.com/?foo=bar
3015 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3020 External links: [raw ampersand]
3022 Old & use: [http://x&y]
3024 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3029 External links: [encoded ampersand]
3031 Old & use: [http://x&y]
3033 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3038 External links: [encoded equals] (bug 6102)
3040 [http://example.com/?foo=bar]
3042 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3047 External links: [IDN ignored character reference in hostname; strip it right off]
3049 [http://e‌xample.com/]
3051 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3055 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3056 # Where an external link could easily circumvent the sanitization of the text of
3057 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3058 # test demands a higher standard. That's a bit strange.
3062 # http://example.com -> [http://example.com|http://example.com]
3063 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3065 # The first example is sanitized, but the second is not. Any security benefits
3066 # from this production are trivial to circumvent. Either remove this test and
3067 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3068 # the test accordingly.
3073 External links: IDN ignored character reference in hostname; strip it right off
3075 http://e‌xample.com/
3077 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3082 External links: www.jpeg.org (bug 554)
3086 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3091 External links: URL within URL (original bug 2)
3093 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3095 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3100 BUG 361: URL inside bracketed URL
3102 [http://www.example.com/foo http://www.example.com/bar]
3104 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3109 BUG 361: URL within URL, not bracketed
3111 http://www.example.com/foo?=http://www.example.com/bar
3113 <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>
3118 BUG 289: ">"-token in URL-tail
3120 http://www.example.com/<hello>
3122 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3127 BUG 289: literal ">"-token in URL-tail
3129 http://www.example.com/<b>html</b>
3131 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3136 BUG 289: ">"-token in bracketed URL
3138 [http://www.example.com/<hello> stuff]
3140 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3145 BUG 289: literal ">"-token in bracketed URL
3147 [http://www.example.com/<b>html</b> stuff]
3149 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3154 BUG 289: literal double quote at end of URL
3156 http://www.example.com/"hello"
3158 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3163 BUG 289: literal double quote in bracketed URL
3165 [http://www.example.com/"hello" stuff]
3167 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3172 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3174 [http://www.example.com test]
3176 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3181 External links: link text with spaces
3183 [http://www.example.com a b c]
3184 [http://www.example.com ''a'' ''b'']
3186 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3187 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3192 External links: wiki links within external link (Bug 3695)
3194 [http://example.com [[wikilink]] embedded in ext link]
3196 <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>
3201 BUG 787: Links with one slash after the url protocol are invalid
3205 [http:/example.com title]
3207 <p>http:/example.com
3208 </p><p>[http:/example.com title]
3213 Bracketed external links with template-generated invalid target
3215 [{{echo|http:/example.com}} title]
3217 <p>[http:/example.com title]
3222 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3224 ''[http://example.com text'']
3225 [http://example.com '''text]'''
3226 ''Something [http://example.com in italic'']
3227 ''Something [http://example.com mixed''''', even bold]'''
3228 '''''Now [http://example.com both''''']
3230 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3231 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3232 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3233 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3234 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3240 Bug 4781: %26 in URL
3242 http://www.example.com/?title=AT%26T
3244 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3248 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3249 # % is actually legal in HTML5. Any change in output would need testing though.
3251 Bug 4781, 5267: %25 in URL
3253 http://www.example.com/?title=100%25_Bran
3255 <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>
3260 Bug 4781, 5267: %28, %29 in URL
3262 http://www.example.com/?title=Ben-Hur_%281959_film%29
3264 <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>
3270 Bug 4781: %26 in autonumber URL
3272 [http://www.example.com/?title=AT%26T]
3274 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3279 Bug 4781, 5267: %26 in autonumber URL
3281 [http://www.example.com/?title=100%25_Bran]
3283 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3288 Bug 4781, 5267: %28, %29 in autonumber URL
3290 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3292 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3298 Bug 4781: %26 in bracketed URL
3300 [http://www.example.com/?title=AT%26T link]
3302 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3307 Bug 4781, 5267: %26 in bracketed URL
3309 [http://www.example.com/?title=100%25_Bran link]
3311 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3316 Bug 4781, 5267: %28, %29 in bracketed URL
3318 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3320 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3325 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3327 Some [http://example.com/ pretty ''italics'' and stuff]!
3329 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3334 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3336 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3338 <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>
3343 External link containing double-single-quotes with no space separating the url from text in italics
3345 [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]].]
3347 <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>
3352 External link with comments in link text
3354 [http://www.google.com Google <!-- comment -->]
3356 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3361 URL-encoding in URL functions (single parameter)
3363 {{localurl:Some page|amp=&}}
3365 <p>/index.php?title=Some_page&amp=&
3370 URL-encoding in URL functions (multiple parameters)
3372 {{localurl:Some page|q=?&=&}}
3374 <p>/index.php?title=Some_page&q=?&amp=&
3381 http://example.com/index.php?foozoid%5B%5D=bar
3383 http://example.com/index.php?foozoid[]=bar
3385 <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>
3386 </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>
3391 IPv6 urls (bug 21261)
3395 http://[2404:130:0:1000::187:2]/index.php
3397 <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>
3402 Non-extlinks in brackets
3411 [{{echo|foo}} ''bar'']
3412 [{{echo|foo}}l's] errand
3413 [{{echo|foo}}l's errand]
3415 [url=http://example.com]
3428 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3433 Parsoid: Percent encoding in external links
3437 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3439 <p><a rel="mw:ExtLink"
3440 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3444 Parsoid: use url link syntax for links where the content is equal the link
3451 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3461 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3463 Normal text. '''''Bold italic text.''''' Normal text.
3465 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3466 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3472 Unclosed and unmatched quotes (php)
3476 '''''Bold italic text '''with bold deactivated''' in between.'''''
3478 '''''Bold italic text ''with italic deactivated'' in between.'''''
3482 ..spanning two paragraphs (should not work).'''
3484 '''Bold tag left open
3486 ''Italic tag left open
3490 <!-- Unmatching number of opening, closing tags: -->
3491 '''This year''''s election ''should'' beat '''last year''''s.
3493 ''Tom'''s car is bigger than ''Susan'''s.
3495 Plain ''italic'''s plain
3497 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3498 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3499 </p><p><b>Bold text..</b>
3500 </p><p>..spanning two paragraphs (should not work).
3501 </p><p><b>Bold tag left open</b>
3502 </p><p><i>Italic tag left open</i>
3504 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3505 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3506 </p><p>Plain <i>italic'</i>s plain
3509 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3510 # parser strips. The wikitext contains just the first half of the bold
3511 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3512 # differently than the PHP parser.)
3514 Unclosed and unmatched quotes (parsoid)
3518 '''''Bold italic text '''with bold deactivated''' in between.'''''
3520 '''''Bold italic text ''with italic deactivated'' in between.'''''
3524 ..spanning two paragraphs (should not work).'''
3526 '''Bold tag left open
3528 ''Italic tag left open
3532 <!-- Unmatching number of opening, closing tags: -->
3533 '''This year''''s election ''should'' beat '''last year''''s.
3535 ''Tom'''s car is bigger than ''Susan'''s.
3537 Plain ''italic'''s plain
3539 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3540 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3541 </p><p><b>Bold text..</b>
3542 </p><p>..spanning two paragraphs (should not work).<b></b>
3543 </p><p><b>Bold tag left open</b>
3544 </p><p><i>Italic tag left open</i>
3546 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3547 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3548 </p><p>Plain <i>italic'</i>s plain
3555 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3558 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3559 # is the bare minimum required by the spec, see:
3560 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3562 A table with no data. (php)
3569 # Parsoid team replies: empty table tags are legal in HTML5
3571 A table with no data. (parsoid)
3580 # A table with nothing but a caption is invalid XHTML, we might want to render
3581 # this as <p>caption</p>
3583 A table with nothing but a caption (php)
3593 </caption><tr><td></td></tr></table>
3596 # Parsoid team replies: table with only a caption is legal in HTML5
3598 A table with nothing but a caption (parsoid)
3606 <table><caption> caption</caption></table>
3610 A table with caption with default-spaced attributes and a table row
3613 |+ style="color: red;" | caption1
3619 <caption style="color: red;"> caption1
3628 A table with captions with non-default spaced attributes and a table row
3631 |+style="color: red;"|caption2
3632 |+ style="color: red;"| caption3
3638 <caption style="color: red;">caption2
3640 <caption style="color: red;"> caption3
3649 Table td-cell syntax variations
3653 | foo bar foo || baz
3654 | style='color:red;' | baz
3655 | style='color:red;' || baz
3662 <td> foo bar foo </td>
3665 <td style="color:red;"> baz
3667 <td> style='color:red;' </td>
3695 Simple table but with multiple dashes for row wikitext
3713 Multiplication table
3715 {| border="1" cellpadding="2"
3716 |+Multiplication table
3718 ! × !! 1 !! 2 !! 3
3736 <table border="1" cellpadding="2">
3737 <caption>Multiplication table
3784 Accept "||" in table headings
3799 Accept "||" in indented table headings
3809 </th></tr></table></dd></dl>
3814 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3831 Accept "| !" at start of line in tables (ignore !-attribute)
3835 | !style="color:red" | bar
3847 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 +/-
3851 |style='color:red;'|+1
3852 |style='color:blue;'|-1
3864 <td style="color:red;">+1
3866 <td style="color:blue;">-1
3890 |rowspan=2| Cell 2, row 1 (and 2)
3901 <td rowspan="2"> Cell 2, row 1 (and 2)
3919 {| bgcolor=#ABCDEF border=2
3924 |the original table again
3932 <table bgcolor="#ABCDEF" border="2">
3940 <td>the original table again
3946 Invalid attributes in table cell (bug 1830)
3961 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3964 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3968 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3969 <td>]" onmouseover="alert(document.cookie)">test
3978 Indented table markup mixed with indented pre content (proposed in bug 6200)
3983 Text that should be rendered preformatted
3991 <pre>Text that should be rendered preformatted
4000 Template-generated table cell attributes and cell content
4008 <td style="color: red"> Foo
4014 Template-generated table cell attributes and cell content (2)
4017 |align=center {{table_attribs}}
4022 <td align="center" style="color: red"> Foo
4028 Template-generated table cell attributes and cell content (3)
4031 |align=center {{table_cells}}
4036 <td align="center" style="color: red"> Foo </td>
4044 Table with row followed by newlines and table heading
4062 Table with empty line following the start tag
4079 # FIXME: Preserve the attribute properly (with an empty string as value) in
4080 # the PHP parser. Parsoid implements the behavior below.
4082 Table attributes with empty value
4094 </td></tr></tbody></table>
4099 Wikitext table with a lot of comments
4122 Wikitext table with double-line table cell
4139 Table cell with a single comment
4155 # The expected HTML structure in this test is debatable. The PHP parser does
4156 # not parse this kind of table at all. The main focus for Parsoid is on
4157 # round-tripping, so this output is ok for now. TODO: revisit!
4159 Wikitext table with html-syntax row (Parsoid)
4171 <td>foo</td></tr></tbody></table>
4175 Implicit <td> after a |-
4176 (PHP parser relies on Tidy to add the missing <td> tags)
4178 parsoid=wt2html,wt2wt
4191 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4192 (PHP parser relies on Tidy to add the missing <td> tags)
4194 parsoid=wt2html,wt2wt
4206 <tr><td><pre>a</pre></td></tr>
4207 <tr><td> b</td></tr>
4213 Lists should be recognized in an implicit <td> context
4214 (PHP parser relies on Tidy to add the missing <td> tags)
4216 parsoid=wt2html,wt2wt
4225 <td><ul><li>a</li></ul></td>
4234 Plain link, capitalized
4238 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4243 Plain link, uncapitalized
4247 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4254 [[Main Page|The Main Page]]
4256 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4261 Piped link with comment in link text
4263 [[Main Page|The Main<!--front--> Page]]
4265 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4274 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4279 Broken link with fragment
4281 [[Zigzagzogzagzig#zug]]
4283 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4288 Special page link with fragment
4290 [[Special:Version#anchor]]
4292 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4297 Nonexistent special page link with fragment
4299 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4301 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4308 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4310 <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>
4317 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4319 <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>!!!
4330 Bug 43661: Piped links with identical prefixes
4332 [[prefixed article|prefixed articles with spaces]]
4334 [[prefixed article|prefixed articlesaoeu]]
4336 [[Main Page|Main Page test]]
4338 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4339 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4340 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4346 Link with HTML entity in suffix / tail
4348 [[Main Page]]", [[Main Page]]a
4350 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4355 Link with 3 brackets
4364 Piped link with 3 brackets
4366 [[[main page|the main page]]]
4368 <p>[[[main page|the main page]]]
4373 Link with multiple pipes
4375 [[Main Page|The|Main|Page]]
4377 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4384 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4386 <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>
4391 Piped link to namespace
4393 [[Meta:Disclaimers|The disclaimers]]
4395 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4402 [[Usually caused by a typo (oops}]]
4404 <p>[[Usually caused by a typo (oops}]]
4409 Link containing % (not as a hex sequence)
4413 <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>
4418 Link containing % as a single hex sequence interpreted to char
4422 <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>
4427 Link containing % as a double hex sequence interpreted to hex sequence
4431 <p>[[7%2525 Solution]]
4436 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4437 Example for such a section: == < ==
4439 [[%23%3c]][[%23%3e]]
4441 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4446 Link containing "<#" and ">#" as a hex sequences
4448 [[%3c%23]][[%3e%23]]
4450 <p>[[%3c%23]][[%3e%23]]
4455 Link containing an equals sign
4457 [[Special:BookSources/isbn=4-00-026157-6]]
4459 <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>
4466 Just a test of an article title containing a tilde.
4469 # note that links containing signatures, like [[Foo~~~~]], are
4470 # massaged by the pre-save transform (PST) and so the tildes are never
4471 # seen by the parser.
4473 Link containing a tilde
4477 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4482 Link containing double-single-quotes '' (bug 4598)
4484 [[Lista d''e paise d''o munno]]
4486 <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>
4491 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4493 Some [[Link|pretty ''italics'' and stuff]]!
4495 <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>!
4500 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4502 ''Some [[Link|pretty ''italics'' and stuff]]!
4504 <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>
4509 Link with double quotes in title part (literal) and alternate part (interpreted)
4511 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4515 [[''Pentecoste''|Pentecoste]]
4517 [[''Pentecoste''|''Pentecoste'']]
4519 <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>
4520 </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>
4521 </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>
4522 </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>
4527 Broken image links with HTML captions (bug 39700)
4529 [[File:Nonexistent|<script></script>]]
4530 [[File:Nonexistent|100px|<script></script>]]
4531 [[File:Nonexistent|<]]
4532 [[File:Nonexistent|a<i>b</i>c]]
4534 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4535 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4536 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4537 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4544 [[http://www.example.com]]
4546 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4551 Plain link to URL with link text
4553 [[http://www.example.com Link text]]
4555 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4560 Plain link to protocol-relative URL
4562 [[//www.example.com]]
4564 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4569 Plain link to protocol-relative URL with link text
4571 [[//www.example.com Link text]]
4573 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4578 Plain link to page with question mark in title
4584 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4585 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4590 # I'm fairly sure the expected result here is wrong.
4591 # We want these to be URL links, not pseudo-pages with URLs for titles....
4592 # However the current output is also pretty screwy.
4595 # I'm changing it to match the current output--it arguably makes more
4596 # sense in the light of the test above. Old expected result was:
4597 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4599 # But I think this test is bordering on "garbage in, garbage out" anyway.
4604 Piped link to URL: [[http://www.example.com|an example URL]]
4606 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4611 BUG 2: [[page|http://url/]] should link to page, not http://url/
4613 [[Main Page|http://url/]]
4615 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4620 BUG 337: Escaped self-links should be bold
4624 [[Bug462]] [[Bug462]]
4626 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4631 Self-link to section should not be bold
4635 [[Main Page#section]]
4637 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4648 Self-link to numeric title
4654 <p><strong class="selflink">0</strong>
4659 Link to numeric-equivalent title
4665 <p><a href="/wiki/00" title="00">00</a>
4670 <nowiki> inside a link
4672 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4674 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4679 Non-breaking spaces in title
4681 [[ Main Page ]]
4683 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4688 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4694 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4699 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4705 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4710 Internal link with en linktrail: no apostrophes (bug 27473)
4716 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4721 Internal link with ca linktrail with apostrophes (bug 27473)
4727 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4732 Internal link with kaa linktrail with apostrophes (bug 27473)
4738 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4749 Internal link with is link prefix
4753 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4755 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4766 Internal link with is link trail and link prefix
4770 [[mótmælendatrú|xxx]]ar
4772 mótmælenda[[söfnuður]]
4773 mótmælenda[[söfnuður|söfnuðir]]
4774 mótmælenda[[söfnuður|söfnuðir]]xxx
4776 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4777 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4778 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4779 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4780 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4785 Parsoid link trail escaping
4787 parsoid=html2wt,html2html
4791 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4795 Parsoid link prefix escaping
4798 parsoid=html2wt,html2html
4800 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4802 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4806 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4814 [http://wp.org ''foo'']
4816 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4817 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4818 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4819 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4824 ### Interwiki links (see maintenance/interwiki.sql)
4828 Inline interwiki link
4830 [[MeatBall:SoftSecurity]]
4832 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4837 Inline interwiki link with empty title (bug 2372)
4841 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4846 Interwiki link encoding conversion (bug 1636)
4848 *[[Wikipedia:ro:Olteniţa]]
4849 *[[Wikipedia:ro:Olteniţa]]
4851 <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>
4852 </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>
4858 Interwiki link with fragment (bug 2130)
4860 [[MeatBall:SoftSecurity#foo]]
4862 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4877 Double interlanguage link
4888 Interlanguage link, with prefix links
4900 Double interlanguage link, with prefix links (bug 8897)
4913 Parsoid-specific test: Wikilinks with should RT properly
4919 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4924 Parsoid: handle constructor well
4932 <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>
4935 <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>
4939 ## Redirects, Parsoid-only
4942 Simple redirect to page
4946 #REDIRECT [[Main Page]]
4948 <link rel="mw:PageProp/redirect" href="./Main_Page">
4952 Optional colon in #REDIRECT
4954 # the colon is archaic syntax. we support it for wt2html, but we
4955 # don't care that it roundtrips back to the modern syntax.
4956 parsoid=wt2html,html2html
4958 #REDIRECT:[[Main Page]]
4960 <link rel="mw:PageProp/redirect" href="./Main_Page">
4964 Whitespace in #REDIRECT with optional colon
4966 # the colon and gratuitous whitespace is archaic syntax. we support
4967 # it for wt2html, but we don't care that it roundtrips back to the
4968 # modern syntax (without extra whitespace)
4969 parsoid=wt2html,html2html
4976 <link rel="mw:PageProp/redirect" href="./Main_Page">
4980 Piped link in #REDIRECT
4982 # content after piped link is ignored. we support this syntax,
4983 # but don't care that the piped link is lost when we roundtrip this.
4986 #REDIRECT [[Main Page|bar]]
4988 <link rel="mw:PageProp/redirect" href="./Main_Page">
4992 Redirect to category
4996 #REDIRECT [[Category:Foo]]
4998 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5002 Redirect to category with URL encoding
5006 #REDIRECT [[Category%3AFoo]]
5008 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5012 Redirect to category page
5014 parsoid=wt2html,html2html
5016 #REDIRECT [[:Category:Foo]]
5018 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5022 Redirect to image page (1)
5026 #REDIRECT [[File:Wiki.png]]
5028 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5032 Redirect to image page (2)
5036 #REDIRECT [[Image:Wiki.png]]
5038 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5042 Redirect to language
5046 #REDIRECT [[en:File:Wiki.png]]
5048 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5052 Redirect to interwiki
5056 #REDIRECT [[meatball:File:Wiki.png]]
5058 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5062 Non-English #REDIRECT
5067 #TILVÍSUN [[Main Page]]
5069 <link rel="mw:PageProp/redirect" href="./Main_Page">
5086 Broken br tag sanitization
5096 # TODO: Fix html2html mode (bug 51055)!
5098 Parsoid: Broken br tag recognition
5108 Incorrecly removing closing slashes from correctly formed XHTML
5110 <br style="clear:both;" />
5112 <p><br style="clear:both;" />
5117 Failing to transform badly formed HTML into correct XHTML
5119 <br style="clear: left;">
5120 <br style="clear: right;">
5121 <br style="clear: both;">
5123 <p><br style="clear: left;" />
5124 <br style="clear: right;" />
5125 <br style="clear: both;" />
5130 Handling html with a div self-closing tag
5139 <p><div title />
5143 <p><div title=bar />
5144 <div title=bar/>
5146 <div title="bar/"></div>
5152 Handling html with a br self-closing tag
5161 <p><br title="title" />
5162 <br title="title" />
5171 Horizontal ruler (should it add that extra space?)
5185 Horizontal ruler -- 4+ dashes render hr
5194 Horizontal ruler -- eats additional dashes on the same line
5203 Horizontal ruler -- does not collapse dashes on consecutive lines
5214 Horizontal ruler -- <4 dashes render as plain text
5223 Horizontal ruler -- Supports content following dashes on same line
5232 ### Block-level elements
5255 <ol><li>Numbered list
5272 ***#Number on level 4
5274 **#Number on level 3
5275 **#Number on level 3
5279 #** Level 3, but ordered
5282 <ol><li> with numbers
5284 <ul><li> and bullets
5286 <ol><li> and numbers
5288 </li><li>bullets again
5289 <ul><li>bullet level 2
5290 <ul><li>bullet level 3
5291 <ol><li>Number on level 4
5294 </li><li>bullet level 2
5295 <ol><li>Number on level 3
5296 </li><li>Number on level 3
5299 <ol><li>number level 2
5302 <ul><li><ul><li> Level 3
5306 <ol><li><ul><li><ul><li> Level 3, but ordered
5340 Nested lists 3 (first element empty)
5353 Nested lists 4 (first element empty)
5366 Nested lists 5 (both elements empty)
5379 Nested lists 6 (both elements empty)
5392 Nested lists 7 (skip initial nesting levels)
5396 <ul><li><ul><li><ul><li> foo
5404 Nested lists 8 (multiple nesting transitions)
5412 <ul><li><ul><li> bar
5422 1. Lists with start-of-line-transparent tokens before bullets: Comments
5436 2. Lists with start-of-line-transparent tokens before bullets: Template close
5448 List items are not parsed correctly following a <pre> block (bug 785)
5454 <ul><li> <pre>foo</pre>
5455 </li><li> <pre>bar</pre>
5462 List items from template
5473 * notSOL{{inner list}}
5492 List interrupted by empty line or heading
5502 <ul><li><ul><li> bar
5505 <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>
5506 <ul><li> Another list item
5512 Multiple list tags generated by templates
5527 Single-comment whitespace lines dont break lists, and so do multi-comment whitespace lines
5530 <!--This line will NOT split the list-->
5532 <!--This line will NOT split the list either-->
5534 <!--foo--> <!----> <!--This line NOT split the list either-->
5547 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5549 parsoid=wt2html,wt2wt
5553 * {{echo|<li>templated li-hack}}
5554 * <!--foo--> <li> unsupported li-hack with preceding comments
5557 <li><li>not a li-hack
5563 <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>
5564 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5567 <li></li><li>not a li-hack
5573 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5584 <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>
5588 Parsoid: Test of whitespace serialization with Templated bullets
5595 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}'> Bar</li>
5599 # ------------------------------------------------------------------------
5600 # The next set of tests are about Parsoid's ability to handle badly nested
5601 # tags (parse, minimize scope of fixup, and roundtrip back)
5602 # ------------------------------------------------------------------------
5605 Unbalanced closing block tags break a list
5606 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5616 </li></ul></div><div>
5622 Unbalanced closing non-block tags don't break a list
5623 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5633 <ul><li>a<span></span>
5639 Unclosed formatting tags that straddle lists are closed and reopened
5640 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5648 </li><li> <s> b </s>
5653 List embedded in a non-block tag
5654 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5662 <p><small></small></p>
5668 <p><small></small></p>
5675 # Note that the current date is hard-coded as
5676 # 1970-01-01T00:02:03Z (a Thursday)
5677 # when running parser tests. The timezone is also fixed to GMT, so
5678 # local date will be identical to current date.
5681 Magic Word: {{CURRENTDAY}}
5690 Magic Word: {{CURRENTDAY2}}
5699 Magic Word: {{CURRENTDAYNAME}}
5708 Magic Word: {{CURRENTDOW}}
5717 Magic Word: {{CURRENTMONTH}}
5726 Magic Word: {{CURRENTMONTH1}}
5735 Magic Word: {{CURRENTMONTHABBREV}}
5737 {{CURRENTMONTHABBREV}}
5744 Magic Word: {{CURRENTMONTHNAME}}
5746 {{CURRENTMONTHNAME}}
5753 Magic Word: {{CURRENTMONTHNAMEGEN}}
5755 {{CURRENTMONTHNAMEGEN}}
5762 Magic Word: {{CURRENTTIME}}
5771 Magic Word: {{CURRENTHOUR}}
5780 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5789 Magic Word: {{CURRENTYEAR}}
5798 Magic Word: {{CURRENTTIMESTAMP}}
5800 {{CURRENTTIMESTAMP}}
5807 Magic Words LOCAL (UTC)
5811 * {{LOCALMONTHNAME}}
5812 * {{LOCALMONTHNAMEGEN}}
5813 * {{LOCALMONTHABBREV}}
5822 * {{LOCALTIMESTAMP}}
5837 </li><li> 19700101000203
5843 Magic Word: {{FULLPAGENAME}}
5845 title=[[User:Ævar Arnfjörð Bjarmason]]
5849 <p>User:Ævar Arnfjörð Bjarmason
5854 Magic Word: {{FULLPAGENAMEE}}
5856 title=[[User:Ævar Arnfjörð Bjarmason]]
5860 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5865 Magic Word: {{TALKSPACE}}
5867 title=[[User:Ævar Arnfjörð Bjarmason]]
5876 Magic Word: {{TALKSPACE}}, same namespace
5878 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5887 Magic Word: {{TALKSPACE}}, main namespace
5889 title=[[Parser Test]]
5898 Magic Word: {{TALKSPACEE}}
5900 title=[[User:Ævar Arnfjörð Bjarmason]]
5909 Magic Word: {{SUBJECTSPACE}}
5911 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5920 Magic Word: {{SUBJECTSPACE}}, same namespace
5922 title=[[User:Ævar Arnfjörð Bjarmason]]
5931 Magic Word: {{SUBJECTSPACE}}, main namespace
5933 title=[[Parser Test]]
5941 Magic Word: {{SUBJECTSPACEE}}
5943 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5952 Magic Word: {{NAMESPACE}}
5954 title=[[User:Ævar Arnfjörð Bjarmason]]
5963 Magic Word: {{NAMESPACEE}}
5965 title=[[User:Ævar Arnfjörð Bjarmason]]
5974 Magic Word: {{NAMESPACENUMBER}}
5976 title=[[User:Ævar Arnfjörð Bjarmason]]
5985 Magic Word: {{SUBPAGENAME}}
5987 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
5996 Magic Word: {{SUBPAGENAMEE}}
5998 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6007 Magic Word: {{ROOTPAGENAME}}
6009 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6013 <p>Ævar Arnfjörð Bjarmason
6018 Magic Word: {{ROOTPAGENAMEE}}
6020 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6024 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6029 Magic Word: {{BASEPAGENAME}}
6031 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6035 <p>Ævar Arnfjörð Bjarmason
6040 Magic Word: {{BASEPAGENAMEE}}
6042 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6046 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6051 Magic Word: {{TALKPAGENAME}}
6053 title=[[User:Ævar Arnfjörð Bjarmason]]
6057 <p>User talk:Ævar Arnfjörð Bjarmason
6062 Magic Word: {{TALKPAGENAMEE}}
6064 title=[[User:Ævar Arnfjörð Bjarmason]]
6068 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6073 Magic Word: {{SUBJECTPAGENAME}}
6075 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6079 <p>User:Ævar Arnfjörð Bjarmason
6084 Magic Word: {{SUBJECTPAGENAMEE}}
6086 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6088 {{SUBJECTPAGENAMEE}}
6090 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6095 Magic Word: {{NUMBEROFFILES}}
6104 Magic Word: {{PAGENAME}}
6106 title=[[User:Ævar Arnfjörð Bjarmason]]
6110 <p>Ævar Arnfjörð Bjarmason
6115 Magic Word: {{PAGENAME}} with metacharacters
6117 title=[['foo & bar = baz']]
6121 <p><i>'foo & bar = baz'</i>
6126 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6128 title=[[*RFC 1234 http://example.com/]]
6132 <p>*RFC 1234 http://example.com/
6137 Magic Word: {{PAGENAMEE}}
6139 title=[[User:Ævar Arnfjörð Bjarmason]]
6143 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6148 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6150 title=[[*RFC 1234 http://example.com/]]
6154 <p>*RFC_1234_http://example.com/
6159 Magic Word: {{REVISIONID}}
6168 Magic Word: {{SCRIPTPATH}}
6177 Magic Word: {{STYLEPATH}}
6186 Magic Word: {{SERVER}}
6190 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6195 Magic Word: {{SERVERNAME}}
6204 Magic Word: {{SITENAME}}
6213 Case-sensitive magic words, when cased differently, should just be template transclusions
6220 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6221 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6222 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6223 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6228 Case-insensitive magic words should still work with weird casing.
6238 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6243 Namespace 1 {{ns:1}}
6252 Namespace 1 {{ns:01}}
6261 Namespace 0 {{ns:0}} (bug 4783)
6269 Namespace 0 {{ns:00}} (bug 4783)
6277 Namespace -1 {{ns:-1}}
6286 Namespace User {{ns:User}}
6295 Namespace User talk {{ns:User_talk}}
6304 Namespace User talk {{ns:uSeR tAlK}}
6313 Namespace File {{ns:File}}
6322 Namespace File {{ns:Image}}
6331 Namespace (lang=de) Benutzer {{ns:User}}
6342 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
6348 <p>Benutzer Diskussion
6356 {{urlencode:hi world?!}}
6357 {{urlencode:hi world?!|WIKI}}
6358 {{urlencode:hi world?!|PATH}}
6359 {{urlencode:hi world?!|QUERY}}
6372 Magic links: internal link to RFC (bug 479)
6376 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
6381 Magic links: RFC (bug 479)
6385 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
6390 Magic links: ISBN (bug 1937)
6394 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
6399 Magic links: PMID incorrectly converts space to underscore
6403 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
6412 Nonexistent template
6414 {{thistemplatedoesnotexist}}
6416 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
6421 Template with invalid target containing tags
6423 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6425 <p>{{a<b>b</b>|foo|a=b|a = b}}
6430 Template with invalid target containing unclosed tag
6432 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6434 <p>{{a<b>|foo|a=b|a = b}}</b>
6441 This is a test template
6449 <p>This is a test template
6454 Template with explicit namespace
6458 <p>This is a test template
6466 This is a test template with parameter {{{param}}}
6472 {{paramtest|param=foo}}
6474 <p>This is a test template with parameter foo
6479 Template:paramtestnum
6485 Template unnamed parameter
6487 {{paramtestnum|Main Page|the main page}}
6489 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
6494 Template:templatesimple
6500 Template:templateredirect
6502 #redirect [[Template:templatesimple]]
6506 Template:templateasargtestnum
6512 Template:templateasargtest
6514 {{template{{{templ}}}}}
6518 Template:templateasargtest2
6524 Template with template name as unnamed argument
6526 {{templateasargtestnum|templatesimple}}
6533 Template with template name as argument
6535 {{templateasargtest|templ=simple}}
6542 Template with template name as argument (2)
6544 {{templateasargtest2|templ=templatesimple}}
6551 Template:templateasargtestdefault
6553 {{{{{templ|templatesimple}}}}}
6563 Template with default value
6565 {{templateasargtestdefault}}
6572 Template with default value (value set)
6574 {{templateasargtestdefault|templ=templa}}
6583 {{templateredirect}}
6590 Template with argument in separate line
6592 {{ templateasargtest |
6600 Template with complex template as argument
6603 param ={{ templateasargtest |
6606 <p>This is a test template with parameter (test)
6611 Template with thumb image (with link in description)
6614 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6616 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>
6621 Template:complextemplate
6623 {{{1}}} {{paramtest|
6624 param ={{{param}}}}}
6628 Template with complex arguments
6631 param ={{ templateasargtest |
6632 templ = simple }}|[[Template:complextemplate|link]]}}
6634 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6639 BUG 553: link with two variables in a piped link
6642 |[[{{{1}}}|{{{2}}}]]
6647 <td>[[{{{1}}}|{{{2}}}]]
6653 Magic variable as template parameter
6655 {{paramtest|param={{SITENAME}}}}
6657 <p>This is a test template with parameter MediaWiki
6664 [[{{{param}}}|link]]
6668 Template parameter as link source
6670 {{linktest|param=Main Page}}
6672 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6677 Template-generated attribute string (k='v')
6679 <span {{attr_str|id|v1}}>bar</span>
6681 <p><span id="v1">bar</span>
6688 including another template, {{paramtest|param={{{arg}}}}}
6692 Template passing argument to another template
6694 {{paramtest2|arg='hmm'}}
6696 <p>including another template, This is a test template with parameter 'hmm'
6707 Template as link source
6711 [[{{linktest2}}|Main Page]]
6713 [[{{linktest2}}]]Page
6715 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6716 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6717 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6735 Template infinite loop
6739 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6744 Template from main namespace
6763 BUG 529: Template with table, not included at beginning of line
6782 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6802 BUG 41: Template parameters shown as broken links
6811 Template with targets containing wikilinks
6815 {{[[{{echo|foo}}]]}}
6817 {{{{echo|[[foo}}]]}}
6819 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6820 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6828 ''None'' of '''this''' should be
6830 but rather passed unmodified
6834 # hmm, fix this or just deprecate msgnw and document its behavior?
6840 {{msgnw:MSGNW test}}
6842 <p>''None'' of '''this''' should be
6844 but rather passed unmodified
6852 {{int:youhavenewmessages|lots of money|not!}}
6854 <p>You have lots of money (not!).
6861 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6865 <includeonly> and <noinclude> being included
6876 <onlyinclude>Foo</onlyinclude>bar
6880 <onlyinclude> being included
6892 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6896 <onlyinclude> and <includeonly> being included
6905 <includeonly> and <noinclude> on a page
6907 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6914 Un-closed <noinclude>
6921 <onlyinclude> on a page
6923 <onlyinclude>Foo</onlyinclude>bar
6930 Un-closed <onlyinclude>
6937 Self-closed noinclude, includeonly, onlyinclude tags
6948 Unbalanced includeonly and noinclude tags
6952 |b</noinclude></noinclude>
6953 |c</noinclude></includeonly>
6954 |d</includeonly></includeonly>
6963 <td>c</includeonly>
6965 <td>d</includeonly></includeonly>
6971 Template:Includeonly section
6974 ==Includeonly section==
6980 Bug 6563: Edit link generation for section shown by <includeonly>
6982 {{includeonly section}}
6984 <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>
6985 <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>
6989 # Uses same input as the contents of [[Template:Includeonly section]]
6991 Bug 6563: Section extraction for section shown by <includeonly>
6996 ==Includeonly section==
7004 Bug 6563: Edit link generation for section suppressed by <includeonly>
7007 ==Includeonly section==
7011 <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>
7016 Bug 6563: Section extraction for section suppressed by <includeonly>
7021 ==Includeonly section==
7029 Un-closed <includeonly>
7035 # TODO: test with DOM fragment reuse!
7037 Parsoid: DOM fragment reuse
7039 parsoid=wt2wt,wt2html
7041 a{{echo|b<table></table>c}}d
7053 a<span typeof="mw:Transclusion">b</span>
7054 <table></table><span>c</span>d
7055 <p typeof="mw:Transclusion">ab</p>
7058 <p typeof="mw:Transclusion">a</p>
7064 ### <includeonly> and <noinclude> in attributes
7067 0. includeonly around the entire attribute
7069 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
7071 <p><span id="v2">bar</span>
7076 1. includeonly in html attr key
7078 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
7080 <p><span id="foo">bar</span>
7085 2. includeonly in html attr value
7087 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7088 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7090 <p><span id="v1">bar</span>
7091 <span id="v1">bar</span>
7096 3. includeonly in part of an attr value
7098 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7100 <p><span style="color:red;">bar</span>
7105 ### Testing parsing of templates where a template arg
7106 ### has the same name as the template itself.
7116 Templates: Template Name/Arg clash: 1. Use of positional param
7125 Templates: Template Name/Arg clash: 2. Use of named param
7134 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7143 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7147 Templates: 1. Simple use
7156 Templates: 2. Inside a block tag
7158 <div>{{echo|Foo}}</div>
7165 Templates: P-wrapping: 1a. Templates on consecutive lines
7176 Templates: P-wrapping: 1b. Templates on consecutive lines
7190 Templates: P-wrapping: 1c. Templates on consecutive lines
7193 {{echo|bar}} <div>baz</div>
7202 Templates: P-wrapping: 1d. Template preceded by comment-only line
7204 parsoid=wt2html,wt2wt
7210 <p typeof="mw:Transclusion">Bar
7215 Templates: Inline Text: 1. Multiple tmeplate uses
7217 {{echo|Foo}}bar{{echo|baz}}
7224 Templates: Inline Text: 2. Back-to-back template uses
7226 {{echo|Foo}}{{echo|bar}}
7233 Templates: Block Tags: 1. Multiple template uses
7235 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
7237 <div>Foo</div><div>bar</div><div>baz</div>
7242 Templates: Block Tags: 2. Back-to-back template uses
7244 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
7246 <div>Foo</div><div>bar</div>
7251 Templates: Links: 1. Simple example
7253 {{echo|[[Foo|bar]]}}
7255 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7260 Templates: Links: 2. Generation of link href
7262 [[{{echo|Foo}}|bar]]
7264 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7269 Templates: Links: 3. Generation of part of a link href
7271 [[Fo{{echo|o}}|bar]]
7275 [[Foo{{echo|bar}}baz]]
7277 [[Foo{{echo|bar}}|bar]]
7279 [[:Foo{{echo|bar}}]]
7281 [[:Foo{{echo|bar}}|bar]]
7283 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7284 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7285 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
7286 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7287 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7288 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7293 Templates: Links: 4. Multiple templates generating link href
7295 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
7297 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7302 Templates: Links: 5. Generation of link text
7304 [[Foo|{{echo|bar}}]]
7306 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7311 Templates: Links: 5. Nested templates (only outermost template should be marked)
7313 {{echo|[[{{echo|Foo}}|bar]]}}
7315 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7320 Templates: HTML Tag: 1. Generation of HTML attr. key
7322 <div {{echo|style}}="color:red;">foo</div>
7324 <div style="color:red;">foo</div>
7329 Templates: HTML Tag: 2. Generation of HTML attr. value
7331 <div style={{echo|'color:red;'}}>foo</div>
7333 <div style="color:red;">foo</div>
7338 Templates: HTML Tag: 3. Generation of HTML attr key and value
7340 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
7342 <div style="color:red;">foo</div>
7347 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
7349 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
7351 <div title="This is a long title with just one piece templated">foo</div>
7356 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
7358 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
7360 <div title="This is a long title with just one piece templated">foo</div>
7365 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
7367 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
7369 <div title="This is a long title with just one piece templated">foo</div>
7374 Templates: HTML Tag: 7. Generation of partial attribute key string
7376 <div st{{echo|yle}}="color:red;">foo</div>
7378 <div style="color:red;">foo</div>
7383 Templates: HTML Tables: 1. Generating start of a HTML table
7385 {{echo|<table><tr><td>foo</td>}}</tr></table>
7387 <table><tr><td>foo</td></tr></table>
7392 Templates: HTML Tables: 2a. Generating middle of a HTML table
7394 <table><tr>{{echo|<td>foo</td>}}</tr></table>
7396 <table><tr><td>foo</td></tr></table>
7401 Templates: HTML Tables: 2b. Generating middle of a HTML table
7403 <table>{{echo|<tr><td>foo</td></tr>}}</table>
7405 <table><tr><td>foo</td></tr></table>
7410 Templates: HTML Tables: 3. Generating end of a HTML table
7412 <table><tr>{{echo|<td>foo</td></tr></table>}}
7414 <table><tr><td>foo</td></tr></table>
7419 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
7421 {{echo|<table>}}<tr><td>foo</td></tr></table>
7423 <table><tr><td>foo</td></tr></table>
7428 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
7430 <table>{{echo|<tr>}}<td>foo</td></tr></table>
7432 <table><tr><td>foo</td></tr></table>
7437 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
7439 <table><tr>{{echo|<td>}}foo</td></tr></table>
7441 <table><tr><td>foo</td></tr></table>
7446 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
7448 <table><tr><td>foo{{echo|</td>}}</tr></table>
7450 <table><tr><td>foo</td></tr></table>
7455 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
7457 <table><tr><td>foo</td>{{echo|</tr>}}</table>
7459 <table><tr><td>foo</td></tr></table>
7464 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
7466 <table><tr><td>foo</td></tr>{{echo|</table>}}
7468 <table><tr><td>foo</td></tr></table>
7473 Templates: HTML Tables: 5. Proper fostering of categories from inside
7475 parsoid=wt2html,wt2wt
7477 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
7478 <!--Two categories (Bug 50330)-->
7479 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
7481 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
7482 <!--Two categories (Bug 50330)-->
7483 <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>
7487 Templates: Wiki Tables: 1a. Fostering of entire template content
7495 <tr><td></td></tr></table>
7500 Templates: Wiki Tables: 1b. Fostering of entire template content
7513 <tr><td></td></tr></table>
7518 Templates: Wiki Tables: 2. Fostering of partial template content
7528 <tr><td></td></tr></table>
7533 Templates: Wiki Tables: 3. td-content via multiple templates
7536 {{echo|{{pipe}}a}}{{echo|b}}
7547 Templates: Wiki Tables: 4. Templated tags, no content
7553 <tr><td></td></tr></table>
7558 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7572 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7586 Templates: Lists: Multi-line list-items via templates
7588 *{{echo|a {{nonexistent|
7590 *{{echo|b {{nonexistent|
7593 <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>
7594 </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>
7600 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7602 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7604 <p><i>ab</i>c<i>d</i>e
7609 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7610 (PHP parser generates misnested html)
7612 parsoid=wt2html,wt2wt
7614 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7616 <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>
7620 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7621 (PHP parser generates misnested html)
7623 parsoid=wt2html,wt2wt
7625 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7627 <div typeof="mw:Transclusion"><i>a</i></div>
7628 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7629 <div typeof="mw:Transclusion">e</div>
7633 Templates: Ugly nesting: 4. Divs opened/closed across templates
7635 a<div>b{{echo|c</div>d}}e
7642 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7648 |{{echo|foo</table>}}
7652 <table typeof="mw:Transclusion">
7655 <td>foo</td></tr></tbody></table><span>bar</span>
7659 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7669 <td>1. {{echo|foo </table>}}</td>
7671 <td>2. {{echo|baz </table>}}</td>
7684 <table about="#mwt1" typeof="mw:Transclusion">
7689 <td >1. foo </td></tr></tbody></table></td>
7691 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7692 </span><span about="#mwt1">
7694 abc</span><span about="#mwt1">
7695 </span><span about="#mwt1">
7696 </span><span about="#mwt1">
7697 </span><span about="#mwt1">
7698 </span><span about="#mwt1">
7700 xyz</span><span about="#mwt1">
7701 </span><span about="#mwt1">
7706 Templates: Ugly templates: 3. newline-only template parameter
7715 # This looks like a bug: a single newline triggers p/br for some reason.
7717 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7728 Parser Functions: 1. Simple example
7737 Parser Functions: 2. Nested use (only outermost should be marked up)
7746 ### Pre-save transform tests
7749 pre-save transform: subst:
7755 This is a test template
7759 pre-save transform: normal template
7769 pre-save transform: nonexistent template
7773 {{thistemplatedoesnotexist}}
7775 {{thistemplatedoesnotexist}}
7780 pre-save transform: subst magic variables
7789 # This is bug 89, which I fixed. -- wtm
7791 pre-save transform: subst: templates with parameters
7795 {{subst:paramtest|param="something else"}}
7797 This is a test template with parameter "something else"
7803 <nowiki>'''not wiki'''</nowiki>
7807 pre-save transform: nowiki in subst (bug 1188)
7811 {{subst:nowikitest}}
7813 <nowiki>'''not wiki'''</nowiki>
7818 Template:commenttest
7820 This template has <!-- a comment --> in it.
7824 pre-save transform: comment in subst (bug 1936)
7828 {{subst:commenttest}}
7830 This template has <!-- a comment --> in it.
7834 pre-save transform: unclosed tag
7838 <nowiki>'''not wiki'''
7840 <nowiki>'''not wiki'''
7844 pre-save transform: mixed tag case
7848 <NOwiki>'''not wiki'''</noWIKI>
7850 <NOwiki>'''not wiki'''</noWIKI>
7854 pre-save transform: unclosed comment in <nowiki>
7858 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7860 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7863 # Leading @ in this template definition works around a limitation
7864 # in parsoid's parserTests which otherwise strips the <span> from the
7865 # result (confusing it for a template wrapper)
7869 @<span onmouseover="alert('crap')">Oh no</span>
7873 (confirming safety of fix for subst bug 1936)
7875 {{Template:dangerous}}
7877 <p>@<span>Oh no</span>
7882 pre-save transform: comment containing gallery (bug 5024)
7886 <!-- <gallery>data</gallery> -->
7888 <!-- <gallery>data</gallery> -->
7892 pre-save transform: comment containing extension
7896 <!-- <tag>data</tag> -->
7898 <!-- <tag>data</tag> -->
7902 pre-save transform: comment containing nowiki
7906 <!-- <nowiki>data</nowiki> -->
7908 <!-- <nowiki>data</nowiki> -->
7912 pre-save transform: <noinclude> in subst (bug 3298)
7922 pre-save transform: <onlyinclude> in subst (bug 3298)
7934 {{<includeonly>subst:</includeonly>Includes}}
7938 Template:SafeSubstTest
7940 {{<includeonly>safesubst:</includeonly>Includes}}
7944 bug 22297: safesubst: works during PST
7948 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7954 bug 22297: safesubst: works during normal parse
7963 subst: does not work during normal parse
7967 <p>{{subst:Includes}}
7972 pre-save transform: context links ("pipe trick")
7976 [[Article (context)|]]
7979 [[Bar:Article (context)|]]
7980 [[:Bar:Article (context)|]]
7982 [[|Article (context)]]
7986 [[Article (context)|Article]]
7987 [[Bar:Article|Article]]
7988 [[:Bar:Article|Article]]
7989 [[Bar:Article (context)|Article]]
7990 [[:Bar:Article (context)|Article]]
7992 [[Article (context)]]
7993 [[Bar:X (Y) Z|X (Y) Z]]
7994 [[:Bar:X (Y) Z|X (Y) Z]]
7998 pre-save transform: context links ("pipe trick") with interwiki prefix
8002 [[interwiki:Article|]]
8003 [[:interwiki:Article|]]
8004 [[interwiki:Bar:Article|]]
8005 [[:interwiki:Bar:Article|]]
8007 [[interwiki:Article|Article]]
8008 [[:interwiki:Article|Article]]
8009 [[interwiki:Bar:Article|Bar:Article]]
8010 [[:interwiki:Bar:Article|Bar:Article]]
8014 pre-save transform: context links ("pipe trick") with parens in title
8016 pst title=[[Somearticle (context)]]
8020 [[Article (context)|Article]]
8024 pre-save transform: context links ("pipe trick") with comma in title
8026 pst title=[[Someplace, Somewhere]]
8029 [[Otherplace, Elsewhere|]]
8030 [[Otherplace, Elsewhere, Anywhere|]]
8032 [[Otherplace, Somewhere|Otherplace]]
8033 [[Otherplace, Elsewhere|Otherplace]]
8034 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
8038 pre-save transform: context links ("pipe trick") with parens and comma
8040 pst title=[[Someplace (IGNORED), Somewhere]]
8043 [[Otherplace (place), Elsewhere|]]
8045 [[Otherplace, Somewhere|Otherplace]]
8046 [[Otherplace (place), Elsewhere|Otherplace]]
8050 pre-save transform: context links ("pipe trick") with comma and parens
8052 pst title=[[Who, me? (context)]]
8055 [[Me, Myself, and I (1937 song)|]]
8057 [[Yes, you. (context)|Yes, you.]]
8058 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
8062 pre-save transform: context links ("pipe trick") with namespace
8064 pst title=[[Ns:Somearticle]]
8068 [[Ns:Article|Article]]
8072 pre-save transform: context links ("pipe trick") with namespace and parens
8074 pst title=[[Ns:Somearticle (context)]]
8078 [[Ns:Article (context)|Article]]
8082 pre-save transform: context links ("pipe trick") with namespace and comma
8084 pst title=[[Ns:Somearticle, Context, Whatever]]
8088 [[Ns:Article, Context, Whatever|Article]]
8092 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8094 pst title=[[Ns:Somearticle, Context (context)]]
8098 [[Ns:Article (context)|Article]]
8102 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8104 pst title=[[Ns:Somearticle (IGNORED), Context]]
8108 [[Ns:Article, Context|Article]]
8112 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8116 [[Article(context)|]]
8117 [[Bar:Article(context)|]]
8118 [[:Bar:Article(context)|]]
8119 [[|Article(context)]]
8123 [[Article(context)|Article]]
8124 [[Bar:Article(context)|Article]]
8125 [[:Bar:Article(context)|Article]]
8126 [[Article(context)]]
8128 [[:Bar:X(Y)Z|X(Y)Z]]
8132 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8136 [[Article (context)|]]
8137 [[Bar:Article (context)|]]
8138 [[:Bar:Article (context)|]]
8139 [[|Article (context)]]
8143 [[Article (context)|Article]]
8144 [[Bar:Article (context)|Article]]
8145 [[:Bar:Article (context)|Article]]
8146 [[Article (context)]]
8147 [[Bar:X (Y) Z|X (Y) Z]]
8148 [[:Bar:X (Y) Z|X (Y) Z]]
8152 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8156 [[Article(context)|]]
8157 [[Bar:Article(context)|]]
8158 [[:Bar:Article(context)|]]
8159 [[|Article(context)]]
8163 [[Article(context)|Article]]
8164 [[Bar:Article(context)|Article]]
8165 [[:Bar:Article(context)|Article]]
8166 [[Article(context)]]
8168 [[:Bar:X(Y)Z|X(Y)Z]]
8172 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8176 [[Article (context), context|]]
8177 [[Article (context),context|]]
8178 [[Bar:Article (context), context|]]
8179 [[Bar:Article (context),context|]]
8180 [[:Bar:Article (context), context|]]
8181 [[:Bar:Article (context),context|]]
8183 [[Article (context), context|Article]]
8184 [[Article (context),context|Article]]
8185 [[Bar:Article (context), context|Article]]
8186 [[Bar:Article (context),context|Article]]
8187 [[:Bar:Article (context), context|Article]]
8188 [[:Bar:Article (context),context|Article]]
8192 pre-save transform: trim trailing empty lines
8196 Empty lines are trimmed
8202 Empty lines are trimmed
8206 pre-save transform: Signature expansion
8211 * <noinclude>~~~</noinclude>
8212 * <includeonly>~~~</includeonly>
8213 * <onlyinclude>~~~</onlyinclude>
8215 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
8216 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
8217 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
8218 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
8223 pre-save transform: Signature expansion in nowiki tags (bug 93)
8229 <nowiki>~~~~</nowiki>
8231 <includeonly><nowiki>~~~~</nowiki></includeonly>
8233 <noinclude><nowiki>~~~~</nowiki></noinclude>
8235 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8237 {{subst:Foo}} shall be converted to FOO
8239 As well as inside noinclude/onlyinclude
8240 <noinclude>{{subst:Foo}}</noinclude>
8241 <onlyinclude>{{subst:Foo}}</onlyinclude>
8243 But not inside includeonly
8244 <includeonly>{{subst:Foo}}</includeonly>
8248 <nowiki>~~~~</nowiki>
8250 <includeonly><nowiki>~~~~</nowiki></includeonly>
8252 <noinclude><nowiki>~~~~</nowiki></noinclude>
8254 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8256 FOO shall be converted to FOO
8258 As well as inside noinclude/onlyinclude
8259 <noinclude>FOO</noinclude>
8260 <onlyinclude>FOO</onlyinclude>
8262 But not inside includeonly
8263 <includeonly>{{subst:Foo}}</includeonly>
8267 Parsoid: Recognize nowiki with trailing space in tags
8271 <nowiki ><div>[[foo]]</nowiki >
8279 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8286 Parsoid: Recognize nowiki with odd capitalization
8290 <noWikI ><div>[[foo]]</Nowiki >
8292 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8297 Parsoid: Escape nowiki with trailing space in tags
8301 <nowiki > foo </nowiki >
8307 <p><nowiki > foo </nowiki ></p>
8308 <p>a<nowiki />b</p>
8309 <p>c<nowiki/ >d</p>
8313 Parsoid: Escape weird noWikI capitalizations
8317 <noWikI > foo </NoWikI >
8319 <p><noWikI > foo </NoWikI ></p>
8323 ### Message transform tests
8326 message transform: magic variables
8336 message transform: should not transform wiki markup
8346 message transform: <noinclude> in transcluded template (bug 4926)
8356 message transform: <onlyinclude> in transcluded template (bug 4926)
8366 {{#special:}} page name, known
8370 {{#special:Recentchanges}}
8372 Special:RecentChanges
8376 {{#special:}} page name with subpage, known
8380 {{#special:Recentchanges/param}}
8382 Special:RecentChanges/param
8386 {{#special:}} page name, unknown
8390 {{#special:foobar nonexistent}}
8392 Special:Foobar nonexistent
8396 {{#speciale:}} page name, known
8400 {{#speciale:Recentchanges}}
8402 Special:RecentChanges
8406 {{#speciale:}} page name with subpage, known
8410 {{#speciale:Recentchanges/param}}
8412 Special:RecentChanges/param
8416 {{#speciale:}} page name, unknown
8420 {{#speciale:foobar nonexistent}}
8422 Special:Foobar_nonexistent
8428 ### For Parsoid-specific tests, see
8429 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8436 [[Image:foobar.jpg]]
8438 <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>
8443 Simple image (parsoid)
8447 [[Image:foobar.jpg]]
8449 <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>
8454 Simple image (using File: namespace, now canonical) (php)
8460 <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>
8465 Simple image (using File: namespace, now canonical) (parsoid)
8471 <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>
8476 Right-aligned image (php)
8480 [[Image:foobar.jpg|right]]
8482 <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>
8487 Right-aligned image (parsoid)
8491 [[File:Foobar.jpg|right]]
8493 <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>
8497 Image with caption (php)
8501 [[File:Foobar.jpg|right|Caption text]]
8503 <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>
8508 Image with caption (parsoid)
8512 [[File:Foobar.jpg|right|Caption text]]
8514 <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>
8518 Image with empty attribute (php)
8522 [[File:Foobar.jpg|right||Caption text]]
8524 <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>
8529 Image with empty attribute (parsoid)
8533 [[File:Foobar.jpg|right||Caption text]]
8535 <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>
8539 Image with attributes from template (php)
8543 [[File:Foobar.jpg|{{image_attribs}}]]
8545 <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>
8550 Image with attributes from template (parsoid)
8554 [[File:Foobar.jpg|{{image_attribs}}]]
8556 <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>
8560 Image with link tails (php)
8564 123[[File:Foobar.jpg]]456
8565 123[[File:Foobar.jpg|right]]456
8566 123[[File:Foobar.jpg|thumb]]456
8568 <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
8570 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
8571 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
8576 Image with link tails (parsoid)
8580 123[[File:Foobar.jpg]]456
8581 123[[File:Foobar.jpg|right]]456
8582 123[[File:Foobar.jpg|thumb]]456
8584 <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>
8585 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
8586 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
8590 Image with multiple captions -- only last one is accepted (php)
8594 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8596 <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>
8601 Image with multiple captions -- only last one is accepted (parsoid)
8605 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8607 <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>
8611 Image with width attribute at different positions (php)
8615 [[File:Foobar.jpg|200px|right|Caption]]
8616 [[File:Foobar.jpg|right|200px|Caption]]
8617 [[File:Foobar.jpg|right|Caption|200px]]
8619 <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>
8620 <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>
8621 <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>
8626 Image with width attribute at different positions (parsoid)
8630 [[File:Foobar.jpg|200px|right|Caption]]
8631 [[File:Foobar.jpg|right|200px|Caption]]
8632 [[File:Foobar.jpg|right|Caption|200px]]
8634 <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>
8635 <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>
8636 <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>
8640 Image with link parameter, wiki target (php)
8644 [[File:Foobar.jpg|link=Main Page]]
8646 <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>
8651 Image with link parameter, wiki target (parsoid)
8655 [[File:Foobar.jpg|link=Main Page]]
8657 <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>
8661 Image with link parameter, URL target (php)
8665 [[File:Foobar.jpg|link=http://example.com/]]
8667 <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>
8671 # parsoid bug 49293 (part 1)
8673 Image with link parameter, URL target (parsoid)
8677 [[File:Foobar.jpg|link=http://example.com/]]
8679 <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>
8683 Image with link parameter, protocol-less URL target (php)
8687 [[File:Foobar.jpg|link=//example.com/]]
8689 <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>
8693 # parsoid bug 49293 (part 2)
8695 Image with link parameter, protocol-less URL target (parsoid)
8699 [[File:Foobar.jpg|link=//example.com/]]
8701 <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>
8705 Image with link parameter, wgExternalLinkTarget
8707 [[Image:foobar.jpg|link=http://example.com/]]
8709 wgExternalLinkTarget='foobar'
8711 <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>
8716 Image with link parameter, wgNoFollowLinks set to false
8718 [[Image:foobar.jpg|link=http://example.com/]]
8720 wgNoFollowLinks=false
8722 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8727 Image with link parameter, wgNoFollowDomainExceptions
8729 [[Image:foobar.jpg|link=http://example.com/]]
8731 wgNoFollowDomainExceptions='example.com'
8733 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8738 Image with link parameter, wgExternalLinkTarget, unnamed parameter
8740 [[Image:foobar.jpg|link=http://example.com/|Title]]
8742 wgExternalLinkTarget='foobar'
8744 <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>
8749 Image with empty link parameter (php)
8753 [[File:Foobar.jpg|link=]]
8755 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8760 Image with empty link parameter (parsoid)
8764 [[File:Foobar.jpg|link=]]
8766 <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>
8770 Image with link parameter (wiki target) and unnamed parameter (php)
8774 [[File:Foobar.jpg|link=Main Page|Title]]
8776 <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>
8781 Image with link parameter (wiki target) and unnamed parameter (parsoid)
8785 [[File:Foobar.jpg|link=Main Page|Title]]
8787 <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>
8791 Image with link parameter (URL target) and unnamed parameter (php)
8795 [[File:Foobar.jpg|link=http://example.com/|Title]]
8797 <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>
8802 Image with link parameter (URL target) and unnamed parameter (parsoid)
8806 [[File:Foobar.jpg|link=http://example.com/|Title]]
8808 <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>
8812 Thumbnail image with link parameter
8816 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8818 <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>
8823 Manually-specified thumbnail image
8827 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8829 <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>
8834 Manually-specified thumbnail image with explicit link to wiki page
8838 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8840 <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>
8845 Manually-specified thumbnail image with explicit link to url
8849 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8851 <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>
8856 Manually-specified thumbnail image with explicit no link
8860 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8862 <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>
8867 Manually-specified thumbnail image with explicit link and alt text
8871 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8873 <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>
8878 Image with frame and link
8880 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8882 <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>
8887 Image with frame and link and explicit alt
8889 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8891 <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>
8896 Image with wiki markup in implicit alt
8898 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8900 <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>
8905 Image with wiki markup in explicit alt
8907 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8909 <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>
8914 Link to image page- image page normally doesn't exists, hence edit link
8915 Add test with existing image page
8916 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8920 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8925 bug 18784 Link to non-existent image page with caption should use caption as link text
8927 [[:Image:test|caption]]
8929 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8934 Frameless image caption with a free URL
8936 [[Image:foobar.jpg|http://example.com]]
8938 <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>
8943 Thumbnail image caption with a free URL
8945 [[Image:foobar.jpg|thumb|http://example.com]]
8947 <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>
8952 Thumbnail image caption with a free URL and explicit alt
8954 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8956 <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>
8961 SVG thumbnails with no language set
8964 [[File:Foobar.svg|thumb|width=200]]
8966 <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>
8971 SVG thumbnails with language de
8974 [[File:Foobar.svg|thumb|width=200|lang=de]]
8976 <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>
8981 SVG thumbnails with invalid language code
8984 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8986 <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>
8991 BUG 1887: A ISBN with a thumbnail
8993 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8995 <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>
9000 BUG 1887: A RFC with a thumbnail
9002 [[Image:foobar.jpg|thumb|This is RFC 12354]]
9004 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
9009 BUG 1887: A mailto link with a thumbnail
9011 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
9013 <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>
9017 # Pending resolution to bug 368
9019 BUG 648: Frameless image caption with a link
9021 [[Image:foobar.jpg|text with a [[link]] in it]]
9023 <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>
9028 BUG 648: Frameless image caption with a link (suffix)
9030 [[Image:foobar.jpg|text with a [[link]]foo in it]]
9032 <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>
9037 BUG 648: Frameless image caption with an interwiki link
9039 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
9041 <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>
9046 BUG 648: Frameless image caption with a piped interwiki link
9048 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
9050 <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>
9055 Escape HTML special chars in image alt text
9057 [[Image:foobar.jpg|& < > "]]
9059 <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>
9064 BUG 499: Alt text should have Ӓ, not &1234;
9066 [[Image:foobar.jpg|♀]]
9068 <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>
9073 Broken image caption with link
9075 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
9077 <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.
9082 Image caption containing another image
9084 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
9086 <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>
9091 Image caption containing a newline
9093 [[Image:Foobar.jpg|This
9096 <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>
9101 Parsoid: Image caption containing leading space
9102 (The leading space should not trigger nowiki escaping in wt2wt mode)
9104 [[Image:Foobar.jpg|thumb| bar]]
9106 <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>
9111 Bug 3090: External links other than http: in image captions
9113 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
9115 <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>
9122 [[Image:foobar.jpg|a|class=b]]
9124 <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>
9129 Localized image handling (1).
9133 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
9135 <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>
9140 Localized image handling (2).
9144 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
9146 <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>
9151 "border", "frameless" and "class" attributes on an image.
9153 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
9155 <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>
9162 #REDIRECT [[File:Barfoo.jpg]]
9168 [[Image:Barfoo.jpg]]
9170 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
9175 Missing image with uploads disabled
9179 [[Image:Foobaz.jpg]]
9181 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
9185 # Parsoid-specific testing for images
9186 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9187 # Currently imperfect due to a flaw in the Parsoid testrunner
9189 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
9193 Parsoid-specific image handling - simple image with size and middle alignment
9197 [[Image:Foobar.jpg|50px|middle]]
9200 <span class="mw-valign-middle" typeof="mw:Image">
9201 <a href="File:Foobar.jpg">
9202 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9209 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
9213 [[Image:Foobar.jpg|500x10px|baseline|caption]]
9216 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
9217 <a href="File:Foobar.jpg">
9218 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
9225 Parsoid-specific image handling - simple image with border and size spec
9229 [[Image:Foobar.jpg|50px|border|caption]]
9232 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
9233 <a href="File:Foobar.jpg">
9234 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9241 Parsoid-specific image handling - thumbnail with halign, valign, and caption
9245 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
9247 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
9248 <a href="File:Foobar.jpg">
9249 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
9251 <figcaption>caption content</figcaption>
9256 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
9260 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
9262 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
9263 <a href="File:Foobar.jpg">
9264 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
9266 <figcaption>caption</figcaption>
9271 Parsoid-specific image handling - framed image with specific size and caption
9275 [[Image:Foobar.jpg|500x50px|frame|caption]]
9277 <figure typeof="mw:Image/Frame">
9278 <a href="File:Foobar.jpg">
9279 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9281 <figcaption>caption</figcaption>
9286 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
9290 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
9292 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
9293 <a href="File:Foobar.jpg">
9294 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9296 <figcaption>caption</figcaption>
9301 Parsoid-specific image handling - frameless image with specific size, border, and caption
9305 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
9308 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
9309 <a href="File:Foobar.jpg">
9310 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9316 #Parsoid-specific image handling - simple image with a formatted caption
9320 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
9323 #<span typeof="mw:Image">
9324 #<a class="mw-default-size" href="Image:Foobar.jpg">
9325 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
9336 Subpage test/subpage
9344 subpage title=[[Subpage test]]
9348 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
9353 Subpage noslash link
9355 subpage title=[[Subpage test]]
9359 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
9363 # TODO: make this PHP-parser compatible!
9365 Relative subpage noslash link
9367 parsoid=wt2wt,wt2html,html2html
9368 subpage title=[[Subpage test/1/2/3/4]]
9374 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
9375 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
9378 # TODO: make this PHP-parser compatible!
9380 Parsoid: dot-slash prefixed wikilinks
9382 parsoid=wt2wt,wt2html,html2html
9390 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
9391 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
9392 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
9400 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
9405 BUG 561: {{/Subpage}}
9407 subpage title=[[Page]]
9411 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
9419 Category:MediaWiki User's Guide
9427 [[:Category:MediaWiki User's Guide]]
9429 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
9438 [[Category:MediaWiki User's Guide]]
9440 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9444 PAGESINCATEGORY invalid title fatal (r33546 fix)
9446 {{PAGESINCATEGORY:<bogus>}}
9453 Category with different sort key
9457 [[Category:MediaWiki User's Guide|Foo]]
9459 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9463 Category with identical sort key
9467 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9469 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9473 Category with empty sort key
9478 [[Category:MediaWiki User's Guide|]]
9480 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9484 Category with empty sort key and parentheses
9489 [[Category:Foo (bar)|]]
9491 [[Category:Foo (bar)|Foo]]
9495 Category with link tail
9500 123[[Category:Foo]]456
9502 123[[Category:Foo]]456
9506 Category with template
9511 [[Category:{{echo|Foo}}]]
9513 [[Category:{{echo|Foo}}]]
9517 Category with template in sort key
9522 [[Category:Foo|{{echo|Bar}}]]
9524 [[Category:Foo|{{echo|Bar}}]]
9528 Category with template in sort key and title
9533 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9535 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9539 Category / paragraph interactions
9541 Foo [[Category:Baz]] Bar
9543 Foo [[Category:Baz]]
9551 [[Category:Baz]] Bar
9564 {{echo|[[Category:Baz]]}}
9579 Parsoid: Serialize link to category page with colon escape
9585 [[:Category:Foo|Bar]]
9588 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
9589 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
9594 Parsoid: Link prefix/suffixes aren't applied to category links
9596 parsoid=wt2html,wt2wt,html2html
9601 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
9605 Parsoid: Serialize link to file page with colon escape
9611 [[:File:Foo.png|Bar]]
9614 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
9615 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
9620 Parsoid: Serialize a genuine category link without colon escape
9625 [[Category:Foo|Bar]]
9627 <link rel="mw:WikiLink/Category" href="Category:Foo">
9628 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
9632 ### Inter-language links
9635 Inter-language links
9641 [[zh:食品]]
9643 es:Alimento fr:Nourriture zh:食品
9647 Duplicate interlanguage links (bug 24502)
9663 Basic section headings
9670 ===Smaller headline===
9673 <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>
9676 <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>
9679 <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>
9685 Section headings with TOC
9688 === Subheadline 1 ===
9689 ===== Skipping a level =====
9690 ====== Skipping a level ======
9694 ===Another headline===
9696 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9698 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
9700 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
9702 <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>
9704 <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>
9711 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
9713 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
9718 <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>
9719 <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>
9720 <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>
9721 <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>
9722 <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>
9725 <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>
9729 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
9731 Handling of sections up to level 6 and beyond
9734 == Level 2 Heading==
9735 === Level 3 Heading===
9736 ==== Level 4 Heading====
9737 ===== Level 5 Heading=====
9738 ====== Level 6 Heading======
9739 ======= Level 7 Heading=======
9740 ======== Level 8 Heading========
9741 ========= Level 9 Heading=========
9742 ========== Level 10 Heading==========
9744 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9746 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9748 <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>
9750 <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>
9752 <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>
9754 <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>
9756 <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>
9757 <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>
9758 <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>
9759 <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>
9760 <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>
9773 <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>
9774 <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>
9775 <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>
9776 <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>
9777 <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>
9778 <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>
9779 <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>
9780 <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>
9781 <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>
9782 <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>
9787 TOC regression (bug 9764)
9791 ==== title 1.1.1 ====
9796 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9798 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9800 <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>
9802 <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>
9805 <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>
9808 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9810 <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>
9815 <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>
9816 <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>
9817 <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>
9818 <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>
9819 <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>
9820 <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>
9825 TOC with wgMaxTocLevel=3 (bug 6204)
9831 ==== title 1.1.1 ====
9836 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9838 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9840 <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>
9841 <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>
9844 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9846 <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>
9851 <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>
9852 <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>
9853 <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>
9854 <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>
9855 <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>
9856 <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>
9861 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9867 ====Section 1.1.1====
9868 ====Section 1.1.1.1====
9871 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9873 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9875 <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>
9878 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9881 <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>
9882 <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>
9883 <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>
9884 <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>
9885 <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>
9891 Resolving duplicate section names
9896 <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>
9897 <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>
9902 Resolving duplicate section names with differing case (bug 10721)
9907 <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>
9908 <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>
9920 Template with sections, __NOTOC__
9927 <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>
9928 <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>
9929 <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>
9930 <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>
9935 __NOEDITSECTION__ keyword
9941 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9942 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9947 Link inside a section heading
9949 ==Section with a [[Main Page|link]] in it==
9951 <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>
9956 TOC regression (bug 12077)
9963 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9965 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9967 <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>
9970 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9973 <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>
9974 <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>
9975 <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>
9980 BUG 1219 URL next to image (good)
9982 http://example.com [[Image:foobar.jpg]]
9984 <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>
9989 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9992 The line above must have a trailing space!
9995 But just in case it doesn't...
9997 <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>
9998 <p>The line above must have a trailing space!
10000 <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>
10001 <p>But just in case it doesn't...
10006 Header with special characters (bug 25462)
10008 The tooltips shall not show entities to the user (ie. be double escaped)
10025 <p>The tooltips shall not show entities to the user (ie. be double escaped)
10027 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10029 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
10030 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
10031 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
10032 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
10033 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
10036 <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>
10039 <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>
10042 <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>
10045 <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>
10048 <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>
10054 Headers with excess '=' characters
10055 (Are similar tests necessary beyond the 1st level?)
10059 =''italic'' heading==
10060 ==''italic'' heading=
10062 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10064 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
10065 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
10066 <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>
10067 <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>
10070 <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>
10071 <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>
10072 <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>
10073 <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>
10078 HTML headers vs TOC (bug 23393)
10079 (__NOEDITSECTION__ for clearer output, doesn't matter here)
10091 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10093 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
10095 <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>
10096 <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>
10099 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
10101 <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>
10102 <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>
10107 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
10108 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
10109 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
10110 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
10111 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
10112 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
10117 BUG 1219 URL next to image (broken)
10119 http://example.com[[Image:foobar.jpg]]
10121 <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>
10126 Bug 1186 news: in the middle of text
10128 http://en.wikinews.org/wiki/Wikinews:Workplace
10130 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
10136 Namespaced link must have a title
10145 Namespaced link must have a title (bad fragment version)
10147 [[Project:#fragment]]
10149 <p>[[Project:#fragment]]
10155 ### HTML tags and HTML attributes
10159 div with no attributes
10161 <div>HTML rocks</div>
10163 <div>HTML rocks</div>
10168 div with double-quoted attribute
10170 <div id="rock">HTML rocks</div>
10172 <div id="rock">HTML rocks</div>
10177 div with single-quoted attribute
10179 <div id='rock'>HTML rocks</div>
10181 <div id="rock">HTML rocks</div>
10186 div with unquoted attribute
10188 <div id=rock>HTML rocks</div>
10190 <div id="rock">HTML rocks</div>
10195 div with illegal double attributes
10197 <div id="a" id="b">HTML rocks</div>
10199 <div id="b">HTML rocks</div>
10203 # FIXME: produce empty string instead of "class" in the PHP parser, following
10206 div with empty attribute value, space before equals
10210 <div class =>HTML rocks</div>
10212 <div class="">HTML rocks</div>
10216 # The PHP parser escapes the opening brace to { for some reason, so
10217 # disabled this test for it.
10219 div with braces in attribute value
10223 <div title="{}">Foo</div>
10225 <div title="{}">Foo</div>
10228 # This it very inconsistent in the PHP parser: it returns
10229 # class="class" if there is a space between the name and the equal sign (see
10230 # 'div with empty attribute value, space before equals'), but strips the
10231 # attribute completely if the space is missing. We hope that not much content
10232 # depends on this, so are implementing the behavior below in Parsoid for
10233 # consistencies' sake. Disabled for the PHP parser.
10234 # FIXME: fix this behavior in the PHP parser?
10236 div with empty attribute value, no space before equals
10240 <div class=>HTML rocks</div>
10242 <div class="">HTML rocks</div>
10247 HTML multiple attributes correction
10249 <p class="error" class="awesome">Awesome!</p>
10251 <p class="awesome">Awesome!</p>
10256 Table multiple attributes correction
10259 !+ class="error" class="awesome"| status
10264 <th class="awesome"> status
10272 <DIV ID="x">HTML ROCKS</DIV>
10274 <div id="x">HTML ROCKS</div>
10279 Non-ASCII pseudo-tags are rendered as text
10288 Pseudo-tag with URL 'name' renders as url link
10290 <http://example.com/>
10292 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
10297 text with amp in the middle of nowhere
10301 <p>Remember AT&T?
10306 text with character entity: eacute
10308 I always thought é was a cute letter.
10310 <p>I always thought é was a cute letter.
10315 text with entity-escaped character entity-like string: eacute
10317 I always thought &eacute; was a cute letter.
10319 <p>I always thought &eacute; was a cute letter.
10324 text with undefined character entity: xacute
10326 I always thought &xacute; was a cute letter.
10328 <p>I always thought &xacute; was a cute letter.
10334 ### Nesting tests (see bug 41545, 50604, 51081)
10337 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
10338 # Note that html2wt is considerably more difficult if we use <b> in
10339 # the test case, instead of <big>
10341 Ensure that HTML adoption agency algorithm is properly implemented.
10343 <big>X<big>Y</big>Z</big>
10345 <p><big>X<big>Y</big>Z</big>
10349 # This was bug 41545 in the PHP parser.
10353 <kbd>X<kbd>Y</kbd>Z</kbd>
10355 <p><kbd>X<kbd>Y</kbd>Z</kbd>
10359 # The following cases were bug 51081 in the PHP parser.
10360 # Note that there are some other nestable tags (b, i, etc) which are
10361 # not covered; see bug 51081 for discussion.
10365 <em>X<em>Y</em>Z</em>
10367 <p><em>X<em>Y</em>Z</em>
10372 Nesting of <strong>
10374 <strong>X<strong>Y</strong>Z</strong>
10376 <p><strong>X<strong>Y</strong>Z</strong>
10385 <p><q>X<q>Y</q>Z</q>
10392 <ruby>X<ruby>Y</ruby>Z</ruby>
10394 <p><ruby>X<ruby>Y</ruby>Z</ruby>
10401 <bdo>X<bdo>Y</bdo>Z</bdo>
10403 <p><bdo>X<bdo>Y</bdo>Z</bdo>
10415 [[Media:Foobar.jpg]]
10417 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
10422 Media link with text
10424 [[Media:Foobar.jpg|A neat file to look at]]
10426 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
10430 # FIXME: this is still bad HTML tag nesting
10432 Media link with nasty text
10433 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
10435 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
10437 <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>
10442 Media link to nonexistent file (bug 1702)
10444 [[Media:No such.jpg]]
10446 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
10451 Image link to nonexistent file (bug 1850 - good)
10453 [[Image:No such.jpg]]
10455 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
10460 :Image link to nonexistent file (bug 1850 - bad)
10462 [[:Image:No such.jpg]]
10464 <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>
10471 Character reference normalization in link text (bug 1938)
10473 [[Main Page|this&that]]
10475 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
10482 Test for unicode normalization
10484 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
10488 (bug 19451) Links should refer to the normalized form.
10496 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10497 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10498 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10499 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10500 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10505 Empty attribute crash test (bug 2067)
10507 <font color="">foo</font>
10509 <p><font color="">foo</font>
10514 Empty attribute crash test single-quotes (bug 2067)
10516 <font color=''>foo</font>
10518 <p><font color="">foo</font>
10523 Attribute test: equals, then nothing
10525 <font color=>foo</font>
10527 <p><font>foo</font>
10532 Attribute test: unquoted value
10534 <font color=x>foo</font>
10536 <p><font color="x">foo</font>
10541 Attribute test: unquoted but illegal value (hash)
10543 <font color=#x>foo</font>
10545 <p><font color="#x">foo</font>
10550 Attribute test: no value
10552 <font color>foo</font>
10554 <p><font color="color">foo</font>
10559 Bug 2095: link with three closing brackets
10563 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
10568 Bug 2095: link with pipe and three closing brackets
10570 [[Main Page|link]]]
10572 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
10577 Bug 2095: link with pipe and three closing brackets, version 2
10579 [[Main Page|[http://example.com/]]]
10581 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
10591 Template:Dangerous attribute
10593 " onmouseover="alert(document.cookie)
10597 Template:Dangerous style attribute
10599 border-size: expression(alert(document.cookie))
10605 <div style="float: right; {{{1}}}">Magic div</div>
10609 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
10611 <div title="{{test}}"></div>
10613 <div title="This is a test template"></div>
10618 Bug 2304: HTML attribute safety (dangerous template; 2309)
10620 <div title="{{dangerous attribute}}"></div>
10622 <div title=""></div>
10627 Bug 2304: HTML attribute safety (dangerous style template; 2309)
10629 <div style="{{dangerous style attribute}}"></div>
10631 <div style="/* insecure input */"></div>
10636 Bug 2304: HTML attribute safety (safe parameter; 2309)
10638 {{div style|width: 200px}}
10640 <div style="float: right; width: 200px">Magic div</div>
10645 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
10647 {{div style|width: expression(alert(document.cookie))}}
10649 <div style="/* insecure input */">Magic div</div>
10654 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
10656 {{div style|"><script>alert(document.cookie)</script>}}
10658 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10663 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
10665 {{div style|" ><script>alert(document.cookie)</script>}}
10667 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10672 Bug 2304: HTML attribute safety (link)
10674 <div title="[[Main Page]]"></div>
10676 <div title="[[Main Page]]"></div>
10681 Bug 2304: HTML attribute safety (italics)
10683 <div title="''foobar''"></div>
10685 <div title="''foobar''"></div>
10690 Bug 2304: HTML attribute safety (bold)
10692 <div title="'''foobar'''"></div>
10694 <div title="'''foobar'''"></div>
10700 Bug 2304: HTML attribute safety (ISBN)
10702 <div title="ISBN 1234567890"></div>
10704 <div title="ISBN 1234567890"></div>
10709 Bug 2304: HTML attribute safety (RFC)
10711 <div title="RFC 1234"></div>
10713 <div title="RFC 1234"></div>
10718 Bug 2304: HTML attribute safety (PMID)
10720 <div title="PMID 1234567890"></div>
10722 <div title="PMID 1234567890"></div>
10727 Bug 2304: HTML attribute safety (web link)
10729 <div title="http://example.com/"></div>
10731 <div title="http://example.com/"></div>
10736 Bug 2304: HTML attribute safety (named web link)
10738 <div title="[http://example.com/ link]"></div>
10740 <div title="[http://example.com/ link]"></div>
10745 Bug 3244: HTML attribute safety (extension; safe)
10747 <div style="<nowiki>background:blue</nowiki>"></div>
10749 <div style="background:blue"></div>
10754 Bug 3244: HTML attribute safety (extension; unsafe)
10756 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10758 <div style="/* insecure input */"></div>
10762 # More MSIE fun discovered by Tom Gilder
10765 MSIE CSS safety test: spurious slash
10767 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10769 <div style="/* insecure input */">evil</div>
10774 MSIE CSS safety test: hex code
10776 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10778 <div style="/* insecure input */">evil</div>
10783 MSIE CSS safety test: comment in url
10785 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10787 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10792 MSIE CSS safety test: comment in expression
10794 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10796 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10802 Table attribute legitimate extension
10805 !+ style="<nowiki>color:blue</nowiki>"| status
10810 <th style="color:blue"> status
10816 Table attribute safety
10819 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10824 <th style="/* insecure input */"> status
10830 CSS line continuation 1
10832 <div style="background-image: u\ rl(test.jpg);"></div>
10834 <div style="/* insecure input */"></div>
10839 CSS line continuation 2
10841 <div style="background-image: u\ rl(test.jpg); "></div>
10843 <div style="/* insecure input */"></div>
10854 Expansion of multi-line templates in attribute values (bug 6255)
10856 <div style="background: {{identity|#00FF00}}">-</div>
10858 <div style="background: #00FF00">-</div>
10864 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10866 <div style="background:
10869 <div style="background: #00FF00">-</div>
10874 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10876 <div style="background: #00FF00">-</div>
10878 <div style="background: #00FF00">-</div>
10883 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
10886 Parser hook: empty input
10899 Parser hook: empty input using terminated empty elements
10912 Parser hook: empty input using terminated empty elements (space before)
10925 Parser hook: basic input
10939 Parser hook: case insensitive
10953 Parser hook: case insensitive, redux
10966 Parser hook: nested tags
10970 <tag><tag></tag></tag>
10981 Parser hook: basic arguments
10983 <tag width=200 height = "100" depth = '50' square></tag>
10991 'square' => 'square',
10998 Parser hook: argument containing a forward slash (bug 5344)
11000 <tag filename='/tmp/bla'></tag>
11005 'filename' => '/tmp/bla',
11012 Parser hook: empty input using terminated empty elements (bug 2374)
11025 # </tag> should be output literally since there is no matching tag that begins it
11027 Parser hook: basic arguments using terminated empty elements (bug 2374)
11029 <tag width=200 height = "100" depth = '50' square/>
11039 'square' => 'square',
11048 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
11052 Parser hook: static parser hook not inside a comment
11054 <statictag>hello, world</statictag>
11055 <statictag action=flush/>
11063 Parser hook: static parser hook inside a comment
11065 <!-- <statictag>hello, world</statictag> -->
11066 <statictag action=flush/>
11072 # Nested template calls; this case was broken by Parser.php rev 1.506,
11076 Template:One-parameter
11078 (My parameter is: {{{1}}})
11082 Template:Map-one-parameter
11084 {{{{{1}}}|{{{2}}}}}
11088 Nested template calls
11090 {{Map-one-parameter|One-parameter|param}}
11092 <p>(My parameter is: param)
11101 Sanitizer: Closing of open tags
11103 <s></s><table></table>
11105 <s></s><table></table>
11110 Sanitizer: Closing of open but not closed tags
11119 Sanitizer: Closing of closed but not open tags
11128 Sanitizer: Closing of closed but not open table tags
11130 Table not started</td></tr></table>
11132 <p>Table not started</td></tr></table>
11137 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
11139 <span id="æ: v">byte</span>[[#æ: v|backlink]]
11141 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
11146 Sanitizer: Validating the contents of the id attribute (bug 4515)
11152 Something, but definitely not <br id="9" />...
11156 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
11160 <br id="foo" /><br id="foo" />
11162 Something need to be done. foo-2 ?
11166 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
11169 <meta itemprop="hello" content="world">
11170 <meta http-equiv="refresh" content="5">
11171 <meta itemprop="hello" http-equiv="refresh" content="5">
11172 <link itemprop="hello" href="{{SERVER}}">
11173 <link rel="stylesheet" href="{{SERVER}}">
11174 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
11177 <div itemscope="itemscope">
11178 <p> <meta itemprop="hello" content="world" />
11179 <meta http-equiv="refresh" content="5">
11180 <meta itemprop="hello" content="5" />
11182 <link itemprop="hello" href="http://example.org" />
11183 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
11184 <link itemprop="hello" href="http://example.org" />
11190 Language converter: output gets cut off unexpectedly (bug 5757)
11194 this bit is safe: }-
11196 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
11198 then we get cut off here: }-
11200 all additional text is vanished
11202 <p>this bit is safe: }-
11203 </p><p>but if we add a conversion instance: xxx
11204 </p><p>then we get cut off here: }-
11205 </p><p>all additional text is vanished
11210 Self closed html pairs (bug 5487)
11213 <center><font id="bug" />Centered text</center>
11214 <div><font id="bug2" />In div text</div>
11216 <center><font id="bug" />Centered text</center>
11217 <div><font id="bug2" />In div text</div>
11226 Punctuation: nbsp before exclamation
11230 <p>C'est grave !
11235 Punctuation: CSS !important (bug 11874)
11237 <div style="width:50% !important">important</div>
11239 <div style="width:50% !important">important</div>
11244 Punctuation: CSS ! important (bug 11874; with space after)
11246 <div style="width:50% ! important">important</div>
11248 <div style="width:50% ! important">important</div>
11254 HTML bullet list, closed tags (bug 5497)
11269 HTML bullet list, unclosed tags (bug 5497)
11286 HTML ordered list, closed tags (bug 5497)
11301 HTML ordered list, unclosed tags (bug 5497)
11318 HTML nested bullet list, closed tags (bug 5497)
11343 HTML nested bullet list, open tags (bug 5497)
11368 HTML nested ordered list, closed tags (bug 5497)
11393 HTML nested ordered list, open tags (bug 5497)
11418 HTML ordered list item with parameters oddity
11420 <ol><li id="fragment">One</li></ol>
11422 <ol><li id="fragment">One</li></ol>
11427 bug 5918: autonumbering
11429 [http://first/] [http://second] [ftp://ftp]
11433 [mailto:enclosed@mail.tld With target]
11435 [mailto:enclosed@mail.tld]
11437 mailto:inline@mail.tld
11439 <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>
11440 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
11441 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
11442 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
11443 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
11449 # Security and HTML correctness
11450 # From Nick Jenkins' fuzz testing
11454 Fuzz testing: Parser13
11469 Fuzz testing: Parser14
11474 <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>
11475 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11477 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
11484 Fuzz testing: Parser14-table
11489 <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>
11490 <table style="__TOC__">
11496 # Known to produce bogus xml (extra </td>)
11498 Fuzz testing: Parser16
11518 Fuzz testing: Parser21
11521 ! irc://{{ftp://a" onmouseover="alert('hello world');"
11526 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
11536 Fuzz testing: Parser22
11538 http://===r:::https://b
11542 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
11550 # Known to produce bad XML for now
11552 Fuzz testing: Parser24
11559 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
11560 <br style="onmouseover='alert(document.cookie);' " />
11562 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11567 <u class="|">}}}} >
11568 <br style="onmouseover='alert(document.cookie);'" />
11570 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11579 # Note: the current result listed for this is not what the original one was,
11580 # but the original bug was JavaScript injection, which is fixed in any case.
11581 # It's not clear that the original result listed was any more correct than the
11582 # current one. Original result:
11585 # <li class="||">
11586 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11588 Fuzz testing: Parser25 (bug 6055)
11594 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
11596 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11601 Fuzz testing: URL adjacent extension (with space, clean)
11604 http://example.com <nowiki>junk</nowiki>
11606 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
11611 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
11614 http://example.com<nowiki>junk</nowiki>
11616 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
11621 Fuzz testing: URL adjacent extension (no space, dirty; pre)
11624 http://example.com<pre>junk</pre>
11626 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
11631 Fuzz testing: image with bogus manual thumbnail
11633 [[Image:foobar.jpg|thumbnail= ]]
11635 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
11640 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
11642 <pre dir=" "></pre>
11644 <pre dir=" "></pre>
11649 Parsing optional HTML elements (Bug 6171)
11654 <td> Some tabular data</td>
11655 <td> More tabular data ...
11656 <td> And yet som tabular data</td>
11662 <td> Some tabular data</td>
11663 <td> More tabular data ...
11664 </td><td> And yet som tabular data</td>
11671 Correct handling of <td>, <tr> (Bug 6171)
11676 <td> Some tabular data</td>
11677 <td> More tabular data ...</td>
11678 <td> And yet som tabular data</td>
11684 <td> Some tabular data</td>
11685 <td> More tabular data ...</td>
11686 <td> And yet som tabular data</td>
11694 Parsing crashing regression (fr:JavaScript)
11698 <p></body></x>
11703 Inline wiki vs wiki block nesting
11709 <p><b>Bold paragraph</b>
11710 </p><p>New wiki paragraph
11715 Inline HTML vs wiki block nesting
11723 <p><b>Bold paragraph</b>
11724 </p><p>New wiki paragraph
11728 # Original result was this:
11729 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
11731 # While that might be marginally more intuitive, maybe, the six-apostrophe
11732 # construct is clearly pathological and the result stated here (which is what
11733 # the parser actually does) is about as reasonable as anything.
11735 Mixing markup for italics and bold
11738 '''bold''''''bold''bolditalics'''''
11740 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11748 Article for special page transclusion test
11752 Special page transclusion
11755 {{Special:Prefixindex/Xyzzyx}}
11757 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11762 Special page transclusion twice (bug 5021)
11765 {{Special:Prefixindex/Xyzzyx}}
11766 {{Special:Prefixindex/Xyzzyx}}
11768 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11769 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11774 Transclusion of default MediaWiki message
11776 {{MediaWiki:Mainpage}}
11783 Transclusion of nonexistent MediaWiki message
11785 {{MediaWiki:Mainpagexxx}}
11787 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11792 Transclusion of MediaWiki message with underscore
11794 {{MediaWiki:history_short}}
11801 Transclusion of MediaWiki message with space
11803 {{MediaWiki:history short}}
11810 Invalid header with following text
11820 Section extraction test (section 0)
11840 Section extraction test (section 1)
11862 Section extraction test (section 2)
11883 Section extraction test (section 3)
11903 Section extraction test (section 4)
11927 Section extraction test (section 5)
11947 Section extraction test (section 6)
11968 Section extraction test (section 7)
11988 Section extraction test (section 8)
12008 Section extraction test (section 9)
12029 Section extraction test (section 10)
12049 Section extraction test (nonexistent section 11)
12068 Section extraction test with bogus heading (section 1)
12073 ==bogus== not a legal section
12077 ==bogus== not a legal section
12081 Section extraction test with bogus heading (section 2)
12086 ==bogus== not a legal section
12093 Section extraction test with comment after heading (section 1)
12105 Section extraction test with comment after heading (section 2)
12117 Section extraction test with bogus <nowiki> heading (section 1)
12122 ==bogus== <nowiki>not a legal section</nowiki>
12126 ==bogus== <nowiki>not a legal section</nowiki>
12130 Section extraction test with bogus <nowiki> heading (section 2)
12135 ==bogus== <nowiki>not a legal section</nowiki>
12142 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
12143 # instead of respecting commented sections
12145 Section extraction prefixed by comment (section 1)
12156 Section extraction prefixed by comment (section 2)
12167 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
12168 # instead of respecting HTML-style headings
12170 Section extraction, mixed wiki and html (section 1)
12186 Section extraction, mixed wiki and html (section 2)
12202 # Formerly testing for bug 3342
12204 Section extraction, heading surrounded by <noinclude>
12208 <noinclude>==unmarked==</noinclude>
12214 # Test behavior of bug 19910
12216 Sectiion with all-equals
12221 The line above must have a trailing space
12224 But just in case it doesn't...
12228 But just in case it doesn't...
12232 Section replacement test (section 0)
12263 Section replacement test (section 1)
12292 Section replacement test (section 2)
12322 Section replacement test (section 3)
12353 Section replacement test (section 4)
12380 Section replacement test (section 5)
12411 Section replacement test (section 6)
12441 Section replacement test (section 7)
12472 Section replacement test (section 8)
12503 Section replacement test (section 9)
12532 Section replacement test (section 10)
12562 Section replacement test with initial whitespace (bug 13728)
12566 Preformatted initial line
12570 Preformatted initial line
12577 Section extraction, heading followed by pre with 20 spaces (bug 6398)
12589 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
12602 Section extraction, <pre> around bogus header (bug 10309)
12619 Section replacement, <pre> around bogus header (bug 10309)
12621 noxml replace=2,"xxx"
12642 Handling of 
 in URLs
12646 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
12653 5 quotes, code coverage +1 line (php)
12660 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
12662 5 quotes, code coverage +1 line (parsoid)
12668 <p><i><b></b></i></p>
12672 Special:Search page linking.
12676 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
12683 title=[[Parser test]]
12688 * {{FULLPAGENAMEE}}
12690 * {{BASEPAGENAMEE}}
12694 * {{ROOTPAGENAMEE}}
12696 * {{TALKPAGENAMEE}}
12697 * {{SUBJECTPAGENAME}}
12698 * {{SUBJECTPAGENAMEE}}
12701 * {{NAMESPACENUMBER}}
12705 * {{SUBJECTSPACEE}}
12706 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
12708 <ul><li> Parser test
12709 </li><li> Parser_test
12710 </li><li> Parser test
12711 </li><li> Parser_test
12712 </li><li> Parser test
12713 </li><li> Parser_test
12714 </li><li> Parser test
12715 </li><li> Parser_test
12716 </li><li> Parser test
12717 </li><li> Parser_test
12718 </li><li> Talk:Parser test
12719 </li><li> Talk:Parser_test
12720 </li><li> Parser test
12721 </li><li> Parser_test
12729 </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>
12733 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
12743 image4 |300px| centre
12744 image5.svg| http://///////
12749 <ul class="gallery">
12750 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12751 <div style="height: 150px;">Image1.png</div>
12752 <div class="gallerytext">
12755 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12756 <div style="height: 150px;">Image2.gif</div>
12757 <div class="gallerytext">
12762 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12763 <div style="height: 150px;">Image3</div>
12764 <div class="gallerytext">
12767 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12768 <div style="height: 150px;">Image4</div>
12769 <div class="gallerytext">
12774 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12775 <div style="height: 150px;">Image5.svg</div>
12776 <div class="gallerytext">
12777 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12781 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12782 <div style="height: 150px;">* image6</div>
12783 <div class="gallerytext">
12791 Gallery (with options)
12793 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12794 File:Nonexistant.jpg|caption
12795 File:Nonexistant.jpg
12796 image:foobar.jpg|some '''caption''' [[Main Page]]
12798 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12801 <ul class="gallery" style="max-width: 226px;_width: 226px;">
12802 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12803 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12804 <div style="height: 70px;">Nonexistant.jpg</div>
12805 <div class="gallerytext">
12810 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12811 <div style="height: 70px;">Nonexistant.jpg</div>
12812 <div class="gallerytext">
12815 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12816 <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>
12817 <div class="gallerytext">
12818 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12822 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12823 <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>
12824 <div class="gallerytext">
12827 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12828 <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>
12829 <div class="gallerytext">
12839 Gallery with wikitext inside caption
12842 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12843 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12846 <ul class="gallery">
12847 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12848 <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>
12849 <div class="gallerytext">
12850 <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>
12854 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12855 <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>
12856 <div class="gallerytext">
12857 <p>This is a test template
12866 gallery (with showfilename option)
12868 <gallery showfilename>
12869 File:Nonexistant.jpg|caption
12870 File:Nonexistant.jpg
12871 image:foobar.jpg|some '''caption''' [[Main Page]]
12875 <ul class="gallery">
12876 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12877 <div style="height: 150px;">Nonexistant.jpg</div>
12878 <div class="gallerytext">
12879 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12884 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12885 <div style="height: 150px;">Nonexistant.jpg</div>
12886 <div class="gallerytext">
12887 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12891 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12892 <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>
12893 <div class="gallerytext">
12894 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12895 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12899 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12900 <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>
12901 <div class="gallerytext">
12902 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12911 Gallery (with namespace-less filenames)
12914 File:Nonexistant.jpg
12920 <ul class="gallery">
12921 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12922 <div style="height: 150px;">Nonexistant.jpg</div>
12923 <div class="gallerytext">
12926 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12927 <div style="height: 150px;">Nonexistant.jpg</div>
12928 <div class="gallerytext">
12931 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12932 <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>
12933 <div class="gallerytext">
12936 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12937 <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>
12938 <div class="gallerytext">
12946 HTML Hex character encoding (spells the word "JavaScript")
12948 JavaScript
12950 <p>JavaScript
12955 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12959 <p>&#xsee;&#XSEE;
12964 HTML Hex character encoding mixed case
12973 __FORCETOC__ override
12985 ISBN 978-0-1234-56 789
12987 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12992 ISBN followed by 5 spaces
13003 ISBN ISBN 1234567890
13005 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13010 Bug 22905: <abbr> followed by ISBN followed by </a>
13012 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
13014 <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>
13023 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
13028 Double RFC with a wiki link
13032 <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>
13041 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
13046 Centre-aligned image
13048 [[Image:foobar.jpg|centre]]
13050 <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>
13057 [[Image:foobar.jpg|none]]
13059 <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>
13064 Width + Height sized image (using px) (height is ignored)
13066 [[Image:foobar.jpg|640x480px]]
13068 <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>
13073 Width-sized image (using px, no following whitespace)
13075 [[Image:foobar.jpg|640px]]
13077 <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>
13082 Width-sized image (using px, with following whitespace - test regression from r39467)
13084 [[Image:foobar.jpg|640px ]]
13086 <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>
13091 Width-sized image (using px, with preceding whitespace - test regression from r39467)
13093 [[Image:foobar.jpg| 640px]]
13095 <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>
13100 Another italics / bold test
13108 # Note the results may be incorrect, as parserTest output included this:
13109 # XML error: Mismatched tag at byte 6120:
13110 # ...<dd> </dt></dl> </dd...
13118 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
13129 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
13131 Images with the "|" character in the comment
13133 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
13135 <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>
13140 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
13142 <html><script>alert(1);</script></html>
13144 <p><html><script>alert(1);</script></html>
13149 HTML with raw HTML ($wgRawHtml==true)
13153 <html><script>alert(1);</script></html>
13155 <p><script>alert(1);</script>
13160 Parents of subpages, one level up
13162 subpage title=[[Subpage test/L1/L2/L3]]
13166 <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>
13172 Parents of subpages, one level up, not named
13174 subpage title=[[Subpage test/L1/L2/L3]]
13178 <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>
13185 Parents of subpages, two levels up
13187 subpage title=[[Subpage test/L1/L2/L3]]
13193 <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
13194 </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>
13199 Parents of subpages, two levels up, without trailing slash or name.
13201 subpage title=[[Subpage test/L1/L2/L3]]
13210 Parents of subpages, two levels up, with lots of extra trailing slashes.
13212 subpage title=[[Subpage test/L1/L2/L3]]
13216 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
13221 Subpage test/L1/L2/L3Sibling
13227 Transclusion of a sibling page (one level up)
13229 subpage title=[[Subpage test/L1/L2/L3]]
13238 Transclusion of a child page
13240 subpage title=[[Subpage test/L1/L2]]
13249 Non-transclusion because of too many up levels
13251 subpage title=[[Subpage test/L1/L2/L3]]
13253 {{../../../../More than parent}}
13255 <p>{{../../../../More than parent}}
13260 Definition list code coverage
13266 <dl><dt> title  </dt><dd> def
13267 </dd><dt> title </dt><dd> def
13268 </dd><dt>title</dt><dd> def
13274 Don't fall for the self-closing div
13276 <div>hello world</div/>
13278 <div>hello world</div>
13287 <p>[[:Template:Msg]]
13296 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
13300 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
13302 Always escape literal '>' in output, not just after '<'
13316 <p>This is a test template
13317 This is a test template
13329 Inclusion of !userCanEdit() content
13333 <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>
13339 Out-of-order TOC heading levels
13348 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13350 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
13352 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
13353 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
13356 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
13358 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
13359 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
13364 <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>
13365 <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>
13366 <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>
13367 <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>
13368 <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>
13369 <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>
13375 ISBN with a dummy number
13385 ISBN with space-delimited number
13389 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
13395 ISBN with multiple spaces, no number
13414 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13415 </p><p>ISBN 12345678901
13421 ISBN with trailing year (bug 8110)
13423 ISBN 1-234-56789-0 - 2006
13425 ISBN 1 234 56789 0 - 2006
13427 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
13428 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
13436 {{anchorencode:foo bar©#%n}}
13438 <p>foo_bar.C2.A9.23.25n
13443 anchorencode trims spaces
13445 {{anchorencode: __pretty__please__}}
13452 anchorencode deals with links
13454 {{anchorencode: [[hello|world]] [[hi]]}}
13461 anchorencode deals with templates
13463 {{anchorencode: {{Foo}} }}
13470 anchorencode encodes like the TOC generator: (bug 18431)
13472 === _ +:.3A%3A&&]] ===
13473 {{anchorencode: _ +:.3A%3A&&]] }}
13476 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
13477 <p>.2B:.3A.253A.26.26.5D.5D
13481 # Expected output in the following test is not necessarily expected (there
13482 # should probably be <p> tags inside the <blockquote> in the output) -- it's
13483 # only testing for well-formedness.
13485 Bug 6200: blockquotes and paragraph formatting
13505 Bug 8293: Use of center tag ruins paragraph formatting
13526 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
13530 <span><s>x</span></s>
13532 <p><span><s>x</span></s></span>
13537 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
13541 <span><s>x</span></s>
13543 <p><span><s>x</s></span><s></s>
13548 ### Language variants related tests
13551 Self-link in language variants
13553 title=[[Dunav]] language=sr
13555 Both [[Dunav]] and [[Дунав]] are names for this river.
13557 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
13568 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
13570 title=[[Duna]] language=sr
13572 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
13574 <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.
13579 Link to pages in language variants
13583 Main Page can be written as [[Маин Паге]]
13585 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
13591 Multiple links to pages in language variants
13595 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
13597 <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>.
13603 Simple template in language variants
13609 <p>This is a test template
13615 Template with explicit namespace in language variants
13621 <p>This is a test template
13627 Basic test for template parameter in language variants
13631 {{парамтест|param=foo}}
13633 <p>This is a test template with parameter foo
13639 Simple category in language variants
13643 [[Category:МедиаWики Усер'с Гуиде]]
13645 <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>
13662 Don't convert blue categorylinks to another variant (bug 33210)
13666 [[A]][[Category:分类]]
13668 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
13673 Stripping -{}- tags (language variants)
13677 Latin proverb: -{Ne nuntium necare}-
13679 <p>Latin proverb: Ne nuntium necare
13685 Prevent conversion with -{}- tags (language variants)
13687 language=sr variant=sr-ec
13689 Latinski: -{Ne nuntium necare}-
13691 <p>Латински: Ne nuntium necare
13697 Prevent conversion of text with -{}- tags (language variants)
13699 language=sr variant=sr-ec
13701 Latinski: -{Ne nuntium necare}-
13703 <p>Латински: Ne nuntium necare
13709 Prevent conversion of links with -{}- tags (language variants)
13711 language=sr variant=sr-ec
13715 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13721 -{}- tags within headlines (within html for parserConvert())
13723 language=sr variant=sr-ec
13727 <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>
13733 Explicit definition of language variant alternatives
13735 language=zh variant=zh-tw
13737 -{zh:China;zh-tw:Taiwan}-, not China
13739 <p>Taiwan, not China
13745 Conversion around HTML tags
13747 language=sr variant=sr-ec
13749 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13750 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13753 <span title="ЛаCтин">ски</span>
13759 Explicit session-wise language variant mapping (A flag and - flag)
13761 language=zh variant=zh-tw
13763 Taiwan is not China.
13764 But -{A|zh:China;zh-tw:Taiwan}- is China,
13765 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13766 and -{China}- is China.
13768 <p>Taiwan is not China.
13769 But Taiwan is Taiwan,
13770 (This should be stripped!)
13771 and China is China.
13776 Explicit session-wise language variant mapping (H flag for hide)
13778 language=zh variant=zh-tw
13780 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13783 <p>(This should be stripped!)
13789 Adding explicit conversion rule for title (T flag)
13791 language=zh variant=zh-tw showtitle
13793 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13796 <p>Should be stripped!
13801 Testing that changing the language variant here in the tests actually works
13803 language=zh variant=zh showtitle
13805 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13808 <p>Should be stripped!
13813 Recursive conversion of alt and title attrs shouldn't clear converter state
13815 language=zh variant=zh-cn showtitle
13817 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13818 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13822 Should be stripped<span title="Exclamation">!</span>
13827 Bug 24072: more test on conversion rule for title
13829 language=zh variant=zh-tw showtitle
13831 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13832 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13835 <p>This should be stripped!
13836 This won't take interferes with the title rule.
13841 Partly disable title conversion if variant == main language code
13843 language=zh variant=zh title=[[ZH]] showtitle
13845 -{T|zh-cn:CN;zh-tw:TW}-
13853 Partly disable title conversion if variant == main language code, more
13855 language=zh variant=zh title=[[ZH]] showtitle
13865 Raw output of variant escape tags (R flag)
13867 language=zh variant=zh-tw
13869 Raw: -{R|zh:China;zh-tw:Taiwan}-
13871 <p>Raw: zh:China;zh-tw:Taiwan
13876 Nested using of manual convert syntax
13878 language=zh variant=zh-hk
13880 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13882 <p>Nested: Hello Hong Kong!
13887 Proper conversion of text in external links
13889 language=sr variant=sr-ec
13891 http://www.google.com
13892 gopher://www.google.com
13893 [http://www.google.com http://www.google.com]
13894 [gopher://www.google.com gopher://www.google.com]
13895 [https://www.google.com irc://www.google.com]
13896 [ftp://www.google.com www.google.com/ftp://dir]
13897 [//www.google.com www.google.com]
13899 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13900 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13901 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13902 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13903 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13904 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13905 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13910 Do not convert roman numbers to language variants
13912 language=sr variant=sr-ec
13916 <p>Фридрих IV је цар.
13921 Unclosed language converter markup "-{"
13932 Don't convert raw rule "-{R|=>}-" to "=>"
13943 Bug 529: Uncovered bullet
13953 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13954 # Templates in Wikipedia rely on this behavior, as tidy has always been
13955 # enabled there. These tests are normally run *without* tidy, so specify the
13956 # full output here.
13957 # To test realistic parsing behavior, apply a tidy-like transformation to both
13958 # the expected output and your parser's output.
13960 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13962 ******* Foo {{bullet}}
13964 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13977 Bug 529: Uncovered table already at line-start
14000 Bug 529: Uncovered bullet in parser function result
14002 * Foo {{lc:{{bullet}} }}
14011 Bug 5678: Double-parsed template argument
14013 {{lc:{{{1}}}|hello}}
14020 Bug 5678: Double-parsed template invocation
14022 {{lc:{{paramtest {{!}} param = hello }} }}
14024 <p>{{paramtest | param = hello }}
14029 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
14032 title=[[Main Page]]
14034 {{PRVNÍVELKÉ:ěščř}}
14035 {{prvnívelké:ěščř}}
14055 Morwen/13: Unclosed link followed by heading
14062 <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>
14067 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
14074 <h1><span class="mw-headline" id="heading">heading</span></h1>
14079 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
14086 <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>
14101 Paragraphs inside divs (no extra line breaks)
14113 Paragraphs inside divs (extra line break on open)
14128 Paragraphs inside divs (extra line break on close)
14143 Paragraphs inside divs (extra line break on open and close)
14160 Nesting tags, paragraphs on lines which begin with <div>
14164 <div></div><strong>A
14173 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
14175 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
14179 <blockquote>Line one
14181 Line two</blockquote>
14183 <blockquote>Line one
14184 Line two</blockquote>
14189 Bug 6200: paragraphs inside blockquotes (extra line break on open)
14196 Line two</blockquote>
14201 Line two</blockquote>
14206 Bug 6200: paragraphs inside blockquotes (extra line break on close)
14210 <blockquote>Line one
14215 <blockquote>Line one
14223 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
14242 Paragraphs inside blockquotes/divs (no extra line breaks)
14244 <blockquote><div>Line one
14246 Line two</div></blockquote>
14248 <blockquote><div>Line one
14249 Line two</div></blockquote>
14254 Paragraphs inside blockquotes/divs (extra line break on open)
14259 Line two</div></blockquote>
14264 Line two</div></blockquote>
14269 Paragraphs inside blockquotes/divs (extra line break on close)
14271 <blockquote><div>Line one
14274 </div></blockquote>
14276 <blockquote><div>Line one
14279 </div></blockquote>
14284 Paragraphs inside blockquotes/divs (extra line break on open and close)
14290 </div></blockquote>
14296 </div></blockquote>
14301 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
14303 wgLinkHolderBatchSize=0
14309 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
14310 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
14311 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
14316 Free external link invading image caption
14318 [[Image:Foobar.jpg|thumb|http://x|hello]]
14320 <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>
14325 Bug 15196: localised external link numbers
14329 [http://en.wikipedia.org/]
14331 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
14336 Multibyte character in padleft
14338 {{padleft:-Hello|7|Æ}}
14345 Multibyte character in padright
14347 {{padright:Hello-|7|Æ}}
14354 formatdate parser function
14356 {{#formatdate:2009-03-24}}
14358 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
14363 formatdate parser function, with default format
14365 {{#formatdate:2009-03-24|mdy}}
14367 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
14372 Spacing of numbers in formatted dates
14374 {{#formatdate:January 15}}
14376 <p><span class="mw-formatted-date" title="01-15">January 15</span>
14381 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
14383 language=nl title=[[MediaWiki:Common.css]]
14385 {{#formatdate:2009-03-24|dmy}}
14387 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
14400 Edit comment with link
14404 I like the [[Main Page]] a lot
14406 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
14410 Edit comment with link and link text
14414 I like the [[Main Page|best pages]] a lot
14416 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14420 Edit comment with link and link text with suffix
14424 I like the [[Main Page|best page]]s a lot
14426 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14430 Edit comment with section link (non-local, eg in history list)
14432 comment title=[[Main Page]]
14434 /* External links */ removed bogus entries
14436 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14440 Edit comment with section link and text before it (non-local, eg in history list)
14442 comment title=[[Main Page]]
14444 pre-comment text /* External links */ removed bogus entries
14446 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>
14450 Edit comment with section link (local, eg in diff view)
14452 comment local title=[[Main Page]]
14454 /* External links */ removed bogus entries
14456 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14460 Edit comment with subpage link (bug 14080)
14464 title=[[Subpage test]]
14466 Poked at a [[/subpage]] here...
14468 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
14472 Edit comment with subpage link and link text (bug 14080)
14476 title=[[Subpage test]]
14478 Poked at a [[/subpage|neat little page]] here...
14480 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
14484 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
14487 title=[[Subpage test]]
14489 Poked at a [[/subpage]] here...
14491 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
14495 Edit comment with bare anchor link (local, as on diff)
14499 title=[[Main Page]]
14503 <a href="#section">#section</a>
14507 Edit comment with bare anchor link (non-local, as on history)
14510 title=[[Main Page]]
14514 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
14518 Anchor starting with underscore
14522 <p><a href="#_ref">One</a>
14527 Id starting with underscore
14529 <div id="_ref"></div>
14531 <div id="_ref"></div>
14536 Space normalisation on autocomment (bug 22784)
14539 title=[[Main Page]]
14541 /* __hello__world__ */
14543 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
14547 percent-encoding and + signs in comments (Bug 26410)
14551 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
14553 <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>
14557 Bad images - basic functionality
14566 Bad images - bug 16039: text after bad image disappears
14580 Verify that displaytitle works (bug #22501) no displaytitle
14584 wgAllowDisplayTitle=true
14585 wgRestrictDisplayTitle=false
14587 this is not the the title
14590 <p>this is not the the title
14595 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
14600 wgAllowDisplayTitle=true
14601 wgRestrictDisplayTitle=false
14603 this is not the the title
14604 {{DISPLAYTITLE:whatever}}
14607 <p>this is not the the title
14612 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
14617 wgAllowDisplayTitle=true
14618 wgRestrictDisplayTitle=true
14620 this is not the the title
14621 {{DISPLAYTITLE:whatever}}
14624 <p>this is not the the title
14629 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
14634 wgAllowDisplayTitle=true
14635 wgRestrictDisplayTitle=true
14637 this is not the the title
14638 {{DISPLAYTITLE:screen}}
14641 <p>this is not the the title
14646 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
14651 wgAllowDisplayTitle=false
14653 this is not the the title
14654 {{DISPLAYTITLE:screen}}
14657 <p>this is not the the title
14658 <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>
14663 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
14668 wgAllowDisplayTitle=false
14670 this is not the the title
14673 <p>this is not the the title
14678 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
14683 wgAllowDisplayTitle=true
14684 wgRestrictDisplayTitle=true
14686 this is not the the title
14687 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
14689 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
14690 <p>this is not the the title
14695 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
14700 wgAllowDisplayTitle=true
14701 wgRestrictDisplayTitle=true
14703 this is not the the title
14704 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
14706 <span style="color: red;">s</span>creen
14707 <p>this is not the the title
14712 preload: check <noinclude> and <includeonly>
14716 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
14722 preload: check <onlyinclude>
14726 Goodbye <onlyinclude>Hello world</onlyinclude>
14732 preload: can pass tags through if we want to
14736 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
14738 <includeonly>Hello world</includeonly>
14742 preload: check that it doesn't try to do tricks
14746 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14748 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14752 Play a bit with r67090 and bug 3158
14756 <div style="width:50% !important"> </div>
14757 <div style="width:50% !important"> </div>
14758 <div style="width:50% !important"> </div>
14759 <div style="border : solid;"> </div>
14761 <div style="width:50% !important"> </div>
14762 <div style="width:50% !important"> </div>
14763 <div style="width:50% !important"> </div>
14764 <div style="border : solid;"> </div>
14769 HTML5 data attributes
14771 <span data-foo="bar">Baz</span>
14772 <p data-abc-def_hij="">Quuz</p>
14774 <p><span data-foo="bar">Baz</span>
14776 <p data-abc-def_hij="">Quuz</p>
14781 percent-encoding and + signs in internal links (Bug 26410)
14783 [[User:+%]] [[Page+title%]]
14784 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14785 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14786 [[%33%45]] [[%33%45+]]
14788 <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>
14789 <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>
14790 <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>
14791 <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>
14796 Special characters in embedded file links (bug 27679)
14798 [[File:Contains & ampersand.jpg]]
14799 [[File:Does not exist.jpg|Title with & ampersand]]
14801 <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>
14802 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14808 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14810 Text's been normalized?
14812 <p>Text's been normalized?
14817 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14819 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14821 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14826 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14828 [http://www.example.org/ ideograms]
14830 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14835 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14837 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14839 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14863 Bug 31098 Template which includes system messages which includes the template
14867 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14868 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14873 Bug31490 Turkish: ucfirst 'blah'
14884 Bug31490 Turkish: ucfirst 'ix'
14895 Bug31490 Turkish: lcfirst 'BLAH'
14906 Bug31490 Turkish: ucfırst (with a dotless i)
14912 <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>
14917 Bug31490 ucfırst (with a dotless i) with English language
14923 <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>
14928 Bug 26375: TOC with italics
14930 title=[[Main Page]]
14933 == ''Lost'' episodes ==
14935 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14937 <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>
14940 <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>
14945 Bug 26375: TOC with bold
14947 title=[[Main Page]]
14950 == '''should be bold''' then normal text ==
14952 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14954 <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>
14957 <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>
14962 Bug 33845: Headings become cursive in TOC when they contain an image
14964 title=[[Main Page]]
14967 == Image [[Image:foobar.jpg]] ==
14969 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14971 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14974 <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>
14979 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14981 title=[[Main Page]]
14984 == <blockquote>Quote</blockquote> ==
14986 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14988 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14991 <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>
14996 Unclosed tags in TOC
14998 title=[[Main Page]]
15002 <small>Hanc marginis exiguitas non caperet.</small>
15005 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15007 <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>
15010 <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>
15011 <p><small>Hanc marginis exiguitas non caperet.</small>
15017 Multiple tags in TOC
15020 == <i>Foo</i> <b>Bar</b> ==
15022 == <i>Foo</i> <blockquote>Bar</blockquote> ==
15024 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15026 <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>
15027 <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>
15030 <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>
15031 <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>
15036 Tags with parameters in TOC
15039 == <sup class="in-h2">Hello</sup> ==
15041 == <sup class="a > b">Evilbye</sup> ==
15043 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15045 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
15046 <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>
15049 <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>
15050 <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>
15055 span tags with directionality in TOC
15058 == <span dir="ltr">C++</span> ==
15060 == <span dir="rtl">זבנג!</span> ==
15062 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
15064 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
15066 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
15068 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15070 <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>
15071 <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>
15072 <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>
15073 <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>
15074 <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>
15077 <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>
15078 <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>
15079 <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>
15080 <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>
15081 <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>
15088 == {{int:headline_sample}} ==
15092 Bug 32057: Title needed when expanding <h> nodes.
15094 title=[[Main Page]]
15098 <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>
15103 Strip marker in urlencode
15105 {{urlencode:x<nowiki/>y}}
15106 {{urlencode:x<nowiki/>y|wiki}}
15107 {{urlencode:x<nowiki/>y|path}}
15134 Strip marker in formatNum
15136 {{formatnum:1<nowiki/>2}}
15137 {{formatnum:1<nowiki/>2|R}}
15145 Check noCommafy in formatNum
15149 {{formatnum:123456.78}}
15150 {{formatnum:123456.78|NOSEP}}
15158 Strip marker in grammar
15162 {{grammar:elative|foo<nowiki/>bar}}
15169 Strip marker in padleft
15171 {{padleft:|2|x<nowiki/>y}}
15178 Strip marker in padright
15180 {{padright:|2|x<nowiki/>y}}
15187 Strip marker in anchorencode
15189 {{anchorencode:x<nowiki/>y}}
15196 nowiki inside link inside heading (bug 18295)
15198 ==[[foo|x<nowiki>y</nowiki>z]]==
15200 <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>
15205 new support for bdi element (bug 31817)
15207 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15209 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15214 Ignore pipe between table row attributes
15218 |- id=foo | style='color: red'
15226 <tr id="foo" style="color: red">
15233 Gallery override link with WikiLink (bug 34852)
15236 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
15239 <ul class="gallery">
15240 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15241 <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>
15242 <div class="gallerytext">
15252 Gallery override link with absolute external link (bug 34852)
15255 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
15258 <ul class="gallery">
15259 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15260 <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>
15261 <div class="gallerytext">
15271 Gallery override link with malicious javascript (bug 34852)
15274 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
15277 <ul class="gallery">
15278 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15279 <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>
15280 <div class="gallerytext">
15290 Gallery with invalid title as link (bug 43964)
15293 File:foobar.jpg|link=<
15296 <ul class="gallery">
15297 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15298 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/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>
15299 <div class="gallerytext">
15307 Language parser function
15316 Padleft and padright as substr
15318 {{padleft:|3|abcde}}
15319 {{padright:|3|abcde}}
15327 Special parser function
15329 {{#special:RandomPage}}
15330 {{#special:BaDtItLe}}
15331 {{#special:Foobar}}
15340 Bug 34939 - Case insensitive link parsing ([HttP://])
15342 [HttP://MediaWiki.Org/]
15344 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
15349 Bug 34939 - Case insensitive link parsing ([HttP:// title])
15351 [HttP://MediaWiki.Org/ MediaWiki]
15353 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
15358 Bug 34939 - Case insensitive link parsing (HttP://)
15360 HttP://MediaWiki.Org/
15362 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
15368 ### Parsoids-specific tests
15369 ### Parsoid-PHP parser incompatibilities
15372 1. SOL-sensitive wikitext tokens as template-args
15374 parsoid=wt2html,wt2wt
15380 <span about="#mwt1" typeof="mw:Transclusion">
15381 </span><ul about="#mwt1"><li>a</li></ul>
15382 <span about="#mwt2" typeof="mw:Transclusion">
15383 </span><ol about="#mwt2"><li>a</li></ol>
15384 <span about="#mwt3" typeof="mw:Transclusion">
15385 </span><dl about="#mwt3"><dd>a</dd></dl>
15388 #### ----------------------------------------------------------------
15389 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
15390 #### tags. Parsoid's output for these tags differs from that of the
15392 #### ----------------------------------------------------------------
15395 Ref: 1. ref-location should be replaced with an index span
15400 B <ref name="x">foo</ref>
15403 <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>
15404 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>
15405 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>
15409 Ref: 2. ref-tags with identical names should all get the same index
15413 A <ref name="x">foo</ref>
15416 <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>
15417 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>
15421 Ref: 3. spaces in ref-names should be ignored
15425 A <ref name="x">foo</ref>
15426 B <ref name=" x " />
15429 <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>
15430 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>
15431 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>
15435 Ref: 4. 'constructor' should be accepted as a valid ref-name
15436 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
15440 A <ref name="constructor">foo</ref>
15442 <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>
15446 Ref: 5. body should accept generic wikitext
15451 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
15456 <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>
15458 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15459 <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>
15464 Ref: 6. indent-pres should not be output in ref-body
15476 <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>
15478 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15479 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15486 Ref: 6. No p-wrapping in ref-body
15505 <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>
15507 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15508 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15522 Ref: 8. transclusion wikitext has lower precedence
15526 A <ref> foo {{echo|</ref> B C}}
15530 <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>
15532 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15533 <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>
15537 Ref: 9. unclosed comments should not leak out of ref-body
15541 A <ref> foo <!--</ref> B C
15545 <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>
15547 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15548 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
15552 Ref: 10. Unclosed HTML tags should not leak out of ref-body
15556 A <ref> <b> foo </ref> B C
15560 <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>
15562 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15563 <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>
15567 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
15574 <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
15575 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>
15579 Ref: 12. ref-tags act as trailing newline migration barrier
15583 <!--the newline at the end of this line moves out of the p-tag-->a
15585 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
15590 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
15593 <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>
15594 <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>
15601 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
15609 <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
15610 <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>
15614 Ref: 14. A nested ref-tag should be emitted as plain text
15618 <ref>foo <ref>bar</ref> baz</ref>
15622 <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>
15624 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
15625 <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>
15629 Ref: 15. ref-tags with identical names should get identical indexes
15633 A1 <ref name="a">foo</ref> A2 <ref name="a" />
15634 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
15638 <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>
15639 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>
15641 <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>
15645 References: 1. references tag without any refs should be handled properly
15651 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
15655 References: 2. references tag with group only outputs references from that group
15659 A <ref group="a">foo</ref>
15660 B <ref group="b">bar</ref>
15662 <references group='a' />
15664 <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>
15665 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>
15667 <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>
15671 References: 3. ref list should be cleared after processing references
15683 <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>
15685 <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>
15687 <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>
15689 <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>
15693 References: 4. only referenced group should be cleared after processing references
15697 A <ref group="a">afoo</ref>
15700 <references group="a"/>
15706 <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>
15707 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>
15709 <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>
15711 <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>
15713 <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>
15717 References: 5. ref tags in references should be processed while ignoring all other content
15722 B <ref name="b">bar</ref>
15725 <ref name="a">foo</ref>
15726 This should just get lost.
15729 <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>
15730 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>
15732 <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>
15736 References: 6. <references /> from a transclusion
15740 {{echo|<references />}}
15742 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15746 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
15750 A <ref>foo bar for a</ref>
15756 <ref name="b">foo</ref>
15759 <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>
15760 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>
15762 <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>
15764 <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>
15768 #### ----------------------------------------------------------------
15769 #### The following section of tests are primarily to test
15770 #### wikitext escaping capabilities of Parsoid. Given that
15771 #### escaping can be done any number of ways, the wikitext (input)
15772 #### is always adjusted to reflect how Parsoid adds nowiki
15775 #### We are marking several tests as parsoid-only since the
15776 #### HTML in the result section is different from what the
15777 #### PHP parser generates for it.
15778 #### ----------------------------------------------------------------
15781 #### --------------- Headings ---------------
15783 #### 1. Nested inside html <h1>=foo=</h1>
15784 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15785 #### 3. Nested inside html with wikitext split by html tags
15786 #### 4. No escape needed
15787 #### 5. Empty headings <h1></h1>
15788 #### 6. Heading chars in SOL context
15789 #### ----------------------------------------
15791 Headings: 0. Unnested
15795 <nowiki>=foo=</nowiki>
15797 <nowiki> =foo= </nowiki>
15799 <nowiki>=foo=</nowiki>
15801 =foo''a''<nowiki>=</nowiki>
15803 <p><span typeof="mw:Nowiki">=foo=</span></p>
15805 <p><span typeof="mw:Nowiki"> =foo= </span>
15807 <span typeof="mw:Nowiki">=foo=</span></p>
15809 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15813 Headings: 1. Nested inside html
15817 =<nowiki>=foo=</nowiki>=
15819 ==<nowiki>=foo=</nowiki>==
15821 ===<nowiki>=foo=</nowiki>===
15823 ====<nowiki>=foo=</nowiki>====
15825 =====<nowiki>=foo=</nowiki>=====
15827 ======<nowiki>=foo=</nowiki>======
15829 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15830 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15831 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15832 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15833 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15834 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15838 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15843 <nowiki>*</nowiki>bar
15849 <nowiki>=bar=</nowiki>
15857 Headings: 3. Nested inside html with wikitext split by html tags
15861 =='''bold'''<nowiki>foo=</nowiki>=
15863 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15867 Headings: 4a. No escaping needed (testing just h1 and h2)
15885 =<nowiki>=</nowiki>=
15893 <h1><i>=</i>foo=</h1>
15894 <h1><span typeof="mw:Nowiki">=</span></h1>
15898 Headings: 4b. No escaping needed (inside p-tags)
15913 Headings: 5. Empty headings
15925 =====<nowiki/>=====
15927 ======<nowiki/>======
15938 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15942 <nowiki>=a=</nowiki>
15944 <nowiki>=a=</nowiki>
15946 <nowiki>=a=</nowiki>
15948 <nowiki>=a=</nowiki>
15957 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15985 Headings: 6c. Heading chars in SOL context (leading newline break)
15990 <nowiki>=b=</nowiki>
15997 Headings: 6d. Heading chars in SOL context (with interspersed comments)
16001 <!--c0--><nowiki>=a=</nowiki>
16003 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
16005 <p><!--c0-->=a=</p>
16006 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
16010 Headings: 6d. Heading chars in SOL context (No escaping needed)
16019 #### --------------- Lists ---------------
16020 #### 0. Outside nests (*foo, etc.)
16021 #### 1. Nested inside html <ul><li>*foo</li></ul>
16022 #### 2. Inside definition lists
16023 #### 3. Only bullets at start should be escaped
16024 #### 4. No escapes needed
16025 #### 5. No unnecessary escapes
16026 #### 6. Escape bullets in SOL position
16027 #### 7. Escape bullets in a multi-line context
16028 #### ----------------------------------------
16031 Lists: 0. Outside nests
16033 <nowiki>*</nowiki>foo
16035 <nowiki>#</nowiki>foo
16043 Lists: 1. Nested inside html
16045 *<nowiki>*foo</nowiki>
16047 *<nowiki>#foo</nowiki>
16049 *<nowiki>:foo</nowiki>
16051 *<nowiki>;foo</nowiki>
16053 #<nowiki>*foo</nowiki>
16055 #<nowiki>#foo</nowiki>
16057 #<nowiki>:foo</nowiki>
16059 #<nowiki>;foo</nowiki>
16081 Lists: 2. Inside definition lists
16083 ;<nowiki>;foo</nowiki>
16085 ;<nowiki>:foo</nowiki>
16087 ;<nowiki>:foo</nowiki>
16090 :<nowiki>:foo</nowiki>
16105 Lists: 3. Only bullets at start of text should be escaped
16107 *<nowiki>*foo*bar</nowiki>
16109 *<nowiki>*foo</nowiki>''it''*bar
16113 <ul><li>*foo<i>it</i>*bar
16119 Lists: 4. No escapes needed
16131 <ul><li><i>foo</i>*bar
16133 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
16138 Lists: 5. No unnecessary escapes
16140 * bar <span><nowiki>[[foo]]</nowiki></span>
16142 *=bar <span><nowiki>[[foo]]</nowiki></span>
16144 *[[bar <span><nowiki>[[foo]]</nowiki></span>
16146 *]]bar <span><nowiki>[[foo]]</nowiki></span>
16148 *=bar <span>foo]]</span>=
16152 <ul><li> bar <span>[[foo]]</span>
16154 <ul><li>=bar <span>[[foo]]</span>
16156 <ul><li>[[bar <span>[[foo]]</span>
16158 <ul><li>]]bar <span>[[foo]]</span>
16160 <ul><li>=bar <span>foo]]</span>=
16162 <ul><li> <s></s>: a
16168 Lists: 6. Escape bullets in SOL position
16172 <!--cmt--><nowiki>*foo</nowiki>
16174 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
16178 Lists: 7. Escape bullets in a multi-line context
16181 <nowiki>*</nowiki>b
16188 #### --------------- HRs ---------------
16189 #### 1. Single line
16190 #### -----------------------------------
16193 HRs: 1. Single line
16197 ----<nowiki>----</nowiki>
16201 <hr><span typeof="mw:Nowiki">----</span>
16206 #### --------------- Tables ---------------
16207 #### 1a. Simple example
16208 #### 1b. No escaping needed (!foo)
16209 #### 1c. No escaping needed (|foo)
16210 #### 1d. No escaping needed (|}foo)
16212 #### 2a. Nested in td (<td>foo|bar</td>)
16213 #### 2b. Nested in td (<td>foo||bar</td>)
16214 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
16216 #### 3a. Nested in th (<th>foo!bar</th>)
16217 #### 3b. Nested in th (<th>foo!!bar</th>)
16218 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
16222 #### 4c. No escaping needed
16223 #### --------------------------------------
16226 Tables: 1a. Simple example
16237 Tables: 1b. No escaping needed
16246 Tables: 1c. No escaping needed
16255 Tables: 1d. No escaping needed
16264 Tables: 2a. Nested in td
16269 |<nowiki>foo|bar</nowiki>
16273 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
16277 Tables: 2b. Nested in td
16282 |<nowiki>foo||bar</nowiki>
16283 |''it''<nowiki>foo||bar</nowiki>
16287 <td><span typeof="mw:Nowiki">foo||bar</span></td>
16288 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
16292 Tables: 2c. Nested in td -- no escaping needed
16300 <table><tbody><tr><td>foo!!bar
16301 </td></tr></tbody></table>
16306 Tables: 3a. Nested in th
16314 <table><tbody><tr><th>foo!bar
16315 </th></tr></tbody></table>
16320 Tables: 3b. Nested in th
16325 !<nowiki>foo!!bar</nowiki>
16329 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
16334 Tables: 3c. Nested in th -- no escaping needed
16339 !<nowiki>foo||bar</nowiki>
16343 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
16347 Tables: 4a. Escape -
16355 |<nowiki>-bar</nowiki>
16359 <tr><th>-bar</th></tr>
16361 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
16365 Tables: 4b. Escape +
16373 |<nowiki>+bar</nowiki>
16377 <tr><th>+bar</th></tr>
16379 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
16383 Tables: 4c. No escaping needed
16402 <tr><td>foo-bar</td><td>foo+bar</td></tr>
16403 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
16411 ### SSS FIXME: Disabled right now because accurate html2wt
16412 ### on this snippet requires data-parsoid flags that we've
16413 ### stripped out of these tests. We should scheme how we
16414 ### we want to handle these kind of tests that require
16415 ### data-parsoid flags for accurate html2wt serialization
16418 Tables: 4d. No escaping needed
16436 #### --------------- Links ----------------
16437 #### 1. Quote marks in link text
16438 #### 2. Wikilinks: Escapes needed
16439 #### 3. Wikilinks: No escapes needed
16440 #### 4. Extlinks: Escapes needed
16441 #### 5. Extlinks: No escapes needed
16442 #### --------------------------------------
16444 Links 1. Quote marks in link text
16448 [[Foo|Foo<nowiki>''boo''</nowiki>]]
16450 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
16454 Links 2. WikiLinks: Escapes needed
16458 [[Foo|<nowiki>[Foobar]</nowiki>]]
16459 [[Foo|<nowiki>Foobar]</nowiki>]]
16460 [[Foo|x [Foobar] x]]
16461 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
16462 [[Foo|<nowiki>[[Bar]]</nowiki>]]
16463 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
16464 [[Foo|<nowiki>|Bar</nowiki>]]
16465 [[Foo|<nowiki>]]bar</nowiki>]]
16466 [[Foo|<nowiki>[[bar</nowiki>]]
16467 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
16469 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
16470 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
16471 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
16472 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
16473 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
16474 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
16475 <a href="Foo" rel="mw:WikiLink">|Bar</a>
16476 <a href="Foo" rel="mw:WikiLink">]]bar</a>
16477 <a href="Foo" rel="mw:WikiLink">[[bar</a>
16478 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
16482 Links 3. WikiLinks: No escapes needed
16489 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
16490 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
16494 Links 4. ExtLinks: Escapes needed
16498 [http://google.com <nowiki>[google]</nowiki>]
16499 [http://google.com <nowiki>google]</nowiki>]
16501 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
16502 <a href="http://google.com" rel="mw:ExtLink">google]</a>
16506 Links 5. ExtLinks: No escapes needed
16510 [http://google.com [google]
16512 <a href="http://google.com" rel="mw:ExtLink">[google</a>
16515 #### --------------- Quotes ---------------
16516 #### 1. Quotes inside <b> and <i>
16517 #### 2. Link fragments separated by <i> and <b> tags
16518 #### 3. Link fragments inside <i> and <b>
16519 #### 4. No escaping needed
16520 #### --------------------------------------
16522 1. Quotes inside <b> and <i>
16524 parsoid=html2wt,wt2wt
16526 ''<nowiki>'foo'</nowiki>''
16527 ''<nowiki>''foo''</nowiki>''
16528 ''<nowiki>'''foo'''</nowiki>''
16530 '''<nowiki>'foo'</nowiki>'''
16531 '''<nowiki>''foo''</nowiki>'''
16532 '''<nowiki>'''foo'''</nowiki>'''
16533 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
16534 '''foo'''<nowiki/>'s
16537 '<nowiki/>''foo''<nowiki/>'
16539 '''foo'''<nowiki/>'
16540 '<nowiki/>'''foo'''<nowiki/>'
16549 <b>foo'<i>bar'</i>baz</b>
16560 2. Link fragments separated by <i> and <b> tags
16562 [[''foo''<nowiki>hello]]</nowiki>
16564 [['''foo'''<nowiki>hello]]</nowiki>
16566 <p>[[<i>foo</i>hello]]
16567 </p><p>[[<b>foo</b>hello]]
16572 3. Link fragments inside <i> and <b>
16573 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
16574 this is one of the shortcomings of this format)
16576 ''[[foo''<nowiki>]]</nowiki>
16578 '''[[foo'''<nowiki>]]</nowiki>
16581 </p><p><b>[[foo</b>]]
16586 4. No escaping needed
16588 '<span>''bar''</span>'
16589 '<span>'''bar'''</span>'
16591 <p>'<span><i>bar</i></span>'
16592 '<span><b>bar</b></span>'
16596 #### ----------- Paragraphs ---------------
16597 #### 1. No unnecessary escapes
16598 #### --------------------------------------
16601 1. No unnecessary escapes
16603 bar <span><nowiki>[[foo]]</nowiki></span>
16605 =bar <span><nowiki>[[foo]]</nowiki></span>
16607 [[bar <span><nowiki>[[foo]]</nowiki></span>
16609 ]]bar <span><nowiki>[[foo]]</nowiki></span>
16611 =bar <span>foo]]</span><nowiki>=</nowiki>
16613 <p>bar <span>[[foo]]</span>
16614 </p><p>=bar <span>[[foo]]</span>
16615 </p><p>[[bar <span>[[foo]]</span>
16616 </p><p>]]bar <span>[[foo]]</span>
16617 </p><p>=bar <span>foo]]</span>=
16621 #### ----------------------- PRE --------------------------
16622 #### 1. Leading whitespace in SOL context should be escaped
16623 #### ------------------------------------------------------
16625 1. Leading whitespace in SOL context should be escaped
16629 <nowiki> </nowiki>a
16631 <nowiki> </nowiki> a
16633 <nowiki> </nowiki>a(tab)
16635 <nowiki> </nowiki> a
16637 <nowiki> </nowiki> a
16640 <nowiki> </nowiki>b
16643 <nowiki> </nowiki>b
16646 <nowiki> </nowiki> b
16652 <p><!--cmt--> a</p>
16661 #### --------------- HTML tags ---------------
16664 #### 3. multi-line html tag
16665 #### -----------------------------------------
16671 <a href="http://google.com">google</a>
16673 <a href="http://google.com">google</a>
16679 <nowiki><div>foo</div>
16680 <div style="color:red">foo</div></nowiki>
16682 <p><div>foo</div>
16683 <div style="color:red">foo</div>
16688 3. multi-line html tag
16703 <nowiki><ref>foo</ref></nowiki>
16705 <p><ref>foo</ref>
16709 #### --------------- Others ---------------
16713 <nowiki>foo</nowiki>
16715 <p><nowiki>foo</nowiki>
16719 ## The quote-char in the input is necessary for triggering the bug
16721 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
16723 parsoid=wt2wt,html2wt
16732 Tag-like HTML structures are passed through as text
16754 </p><p>1<d e>f
16759 # This was a bug in the PHP parser (see bug 17663 and its dups,
16760 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
16762 Tag names followed by punctuation should not be recognized as tags
16766 <p><s.ome> text
16771 HTML tag with necessary entities in attributes
16773 <span title="&amp;">foo</span>
16775 <p><span title="&amp;">foo</span>
16780 HTML tag with 'unnecessary' entity encoding in attributes
16782 <span title="&">foo</span>
16784 <p><span title="&">foo</span>
16789 HTML tag with broken attribute value quoting
16791 <span title="Hello world>Foo</span>
16793 <p><span>Foo</span>
16798 Parsoid-only: HTML tag with broken attribute value quoting
16802 <span title="Hello world>Foo</span>
16804 <p><span title="Hello world">Foo</span>
16809 Table with broken attribute value quoting
16812 | title="Hello world|Foo
16823 Table with broken attribute value quoting on consecutive lines
16826 | title="Hello world|Foo
16827 | style="color:red|Bar
16840 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16845 | title="Hello world|Foo
16846 | style="color:red|Bar
16851 <td title="Hello world">Foo
16852 </td><td style="color: red">Bar
16853 </td></tr></tbody></table>
16858 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16868 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16878 Accept empty td cell attribute
16881 | align="center" | foo || |
16886 <td align="center"> foo </td>
16893 Non-empty attributes in th-cells
16896 ! Foo !! style="color: red" | Bar
16902 <th style="color: red"> Bar
16908 Accept empty attributes in th-cells
16923 Empty table rows go away
16944 ### Parsoid-centric tests for testing RTing of inter-element separators
16945 ### Edge cases not tested by existing parser tests and specific to
16946 ### Parsoid-specific serialization strategies.
16950 RT-ed inter-element separators should be valid separators
16963 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16964 (Parsoid-only since PHP parser relies on Tidy for correct output)
16980 Empty TD followed by TD with tpl-generated attribute
16985 |{{echo|style='color:red'}}|foo
16999 Indented table with an empty td
17018 Empty TR followed by a template-generated TR
17019 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
17021 parsoid=wt2html,wt2wt
17025 {{echo|<tr><td>foo</td></tr>}}
17031 <tr typeof="mw:Transclusion">
17032 <td>foo</td></tr></tbody></table>
17035 ## PHP and parsoid output differ for this, and since this is primarily
17036 ## for testing Parsoid's serializer, marking this Parsoid only
17038 Empty TR followed by mixed-ws-comment line should RT correctly
17052 <td> <!--c--></td></tr>
17054 <td><!--c--> <!--d--></td></tr>
17060 Multi-line image caption generated by templates with/without trailing newlines
17064 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
17065 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
17067 <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>
17068 <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>
17072 ## PHP emits broken html for this, and since this is primarily
17073 ## a Parsoid serializer test, marking this Parsoid only
17075 Improperly nested inline or quotes tags with whitespace in between
17079 <span> <s>x</span> </s>
17082 <p><span> <s>x</s></span><s> </s>
17083 <b> <i>x</i></b><i> </i>
17088 Encapsulate protected attributes from wt
17092 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
17094 <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>
17098 # -----------------------------------------------------------------
17099 # The following section of tests are primarily to spec requirements
17100 # around serialization of new/edited content.
17102 # All these tests are marked Parsoid html2wt and html2html only
17103 # ----------------------------------------------------------------
17106 Image: Modifying size of an image
17110 [[Image:Wiki.png|230x230px]]
17112 <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>
17116 Image: New block level image should have \n before and after
17121 [[File:Wiki.png|right|thumb|150x150px]]
17124 <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>
17127 # Wacky -- the leading newline in input is required because
17128 # that is what the serializer emits. To be fixed. Not fixing
17129 # the test because this test is required to test serialization of
17130 # new content and preferred whitespace style.
17132 Lists: Add space after bullets
17139 * <span> baz</span>
17144 <li><span> baz</span></li>
17149 Parsoid: Serialize positional parameters with = in them as named parameter
17155 <p about="#mwt1" typeof="mw:Transclusion"
17156 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
17160 # -----------------------------------------------------------------
17161 # End of section for Parsoid-only html2wt tests for serialization
17163 # -----------------------------------------------------------------
17170 Try for 100% code coverage