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
142 This is a simple paragraph.
144 <p>This is a simple paragraph.
149 Paragraphs with extra newline spacing
172 Paragraphs with newline spacing with comment lines in between
180 <!--foo--><!--More than 1 comment disables stripping of this line!-->
237 Paragraphs with newline spacing with non-empty white-space lines in between
264 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
272 <!--foo--><!--More than 1 comment disables stripping of this line!-->
311 Extra newlines: More paragraphs with indented comment
326 Extra newlines followed by heading
341 <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>
342 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
345 <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>
350 Extra newlines between heading and content are swallowed
358 <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>
359 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
366 http://fr.wikipedia.org/wiki/🍺
367 <!-- EasterEgg we love beer, better be able be able to link to it -->
369 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
389 * plain''italic''plain
390 * plain''italic''plain''italic''plain
391 * plain'''bold'''plain
392 * plain'''bold'''plain'''bold'''plain
393 * plain''italic''plain'''bold'''plain
394 * plain'''bold'''plain''italic''plain
395 * plain''italic'''bold-italic'''italic''plain
396 * plain'''bold''bold-italic''bold'''plain
397 * plain'''''bold-italic'''italic''plain
398 * plain'''''bold-italic''bold'''plain
399 * plain''italic'''bold-italic'''''plain
400 * plain'''bold''bold-italic'''''plain
401 * plain l'''italic''plain
402 * plain l''''bold''' plain
405 </li><li> plain<i>italic</i>plain
406 </li><li> plain<i>italic</i>plain<i>italic</i>plain
407 </li><li> plain<b>bold</b>plain
408 </li><li> plain<b>bold</b>plain<b>bold</b>plain
409 </li><li> plain<i>italic</i>plain<b>bold</b>plain
410 </li><li> plain<b>bold</b>plain<i>italic</i>plain
411 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
412 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
413 </li><li> plain<i><b>bold-italic</b>italic</i>plain
414 </li><li> plain<b><i>bold-italic</i>bold</b>plain
415 </li><li> plain<i>italic<b>bold-italic</b></i>plain
416 </li><li> plain<b>bold<i>bold-italic</i></b>plain
417 </li><li> plain l'<i>italic</i>plain
418 </li><li> plain l'<b>bold</b> plain
423 # this example taken from the simple/Moon article
425 Italics and possessives
427 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
429 <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
434 ### 2-quote opening sequence tests
437 Italics and bold: 2-quote opening sequence: (2,2)
447 Italics and bold: 2-quote opening sequence: (2,3)
457 Italics and bold: 2-quote opening sequence: (2,4)
467 Italics and bold: 2-quote opening sequence: (2,5) (php)
476 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
478 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
490 ### 3-quote opening sequence tests
494 Italics and bold: 3-quote opening sequence: (3,2)
504 Italics and bold: 3-quote opening sequence: (3,3)
514 Italics and bold: 3-quote opening sequence: (3,4)
524 Italics and bold: 3-quote opening sequence: (3,5) (php)
533 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
535 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
547 ### 4-quote opening sequence tests
551 Italics and bold: 4-quote opening sequence: (4,2)
561 Italics and bold: 4-quote opening sequence: (4,3)
571 Italics and bold: 4-quote opening sequence: (4,4)
581 Italics and bold: 4-quote opening sequence: (4,5) (php)
590 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
592 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
598 <p>'<b>foo<i></i></b>
604 ### 5-quote opening sequence tests
608 Italics and bold: 5-quote opening sequence: (5,2) (php)
617 # Parsoid reverses the nesting order, compared to the PHP parser
619 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
631 Italics and bold: 5-quote opening sequence: (5,3)
641 Italics and bold: 5-quote opening sequence: (5,4)
645 <p><i><b>foo'</b></i>
651 Italics and bold: 5-quote opening sequence: (5,5)
660 ### multiple quote sequences in a line
663 Italics and bold: multiple quote sequences: (2,4,2)
667 <p><i>foo'<b>bar</b></i>
673 Italics and bold: multiple quote sequences: (2,4,3)
677 <p><i>foo'<b>bar</b></i>
683 Italics and bold: multiple quote sequences: (2,4,4)
687 <p><i>foo'<b>bar'</b></i>
693 Italics and bold: multiple quote sequences: (3,4,2) (php)
702 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
704 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
710 <p><b>foo'</b>bar<i></i>
716 Italics and bold: multiple quote sequences: (3,4,3) (php)
725 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
727 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
733 <p><b>foo'</b>bar<b></b>
738 ### other quote tests
741 Italics and bold: other quote tests: (2,3,5)
743 ''this is about '''foo's family'''''
745 <p><i>this is about <b>foo's family</b></i>
751 Italics and bold: other quote tests: (2,(3,3),2)
753 ''this is about '''foo's''' family''
755 <p><i>this is about <b>foo's</b> family</i>
761 Italics and bold: other quote tests: (3,2,3,2)
763 '''this is about ''foo'''s family''
765 <p><b>this is about <i>foo</i></b><i>s family</i>
770 # The Parsoid team believes the PHP parser's output on this test is wrong.
771 # It only checks for convert-to-bold-on-single-character-word when the word
772 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
773 # This means that the bold token in position 2 (0-indexed) gets converted by
774 # parsoid, but doesn't get changed by the PHP parser.
776 Italics and bold: other quote tests: (3,2,3,3) (php)
780 '''this is about ''foo'''s family'''
782 <p>'<i>this is about </i>foo<b>s family</b>
785 # This is the output the Parsoid team believes to be correct.
787 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
791 '''this is about ''foo'''s family'''
793 <p><b>this is about <i>foo'</i>s family</b>
799 Italics and bold: other quote tests: (3,(2,2),3)
801 '''this is about ''foo's'' family'''
803 <p><b>this is about <i>foo's</i> family</b>
809 Italicized possessive
811 The ''[[Main Page]]'''s talk page.
813 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
818 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
819 (Requires tidy for PHP parser output to be fixed up)
821 parsoid=wt2html,wt2wt
829 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
830 <td><i>a</i></td><td><i>b</i></td></tr>
839 Non-html5 tags should be accepted
841 <center>''foo''</center>
844 <strike>''foo''</strike>
847 <center><i>foo</i></center>
848 <p><big><i>foo</i></big>
849 <font><i>foo</i></font>
850 <strike><i>foo</i></strike>
856 ### <nowiki> test cases
860 <nowiki> unordered list
862 <nowiki>* This is not an unordered list item.</nowiki>
864 <p>* This is not an unordered list item.
871 <nowiki>Lorem ipsum dolor
892 :There is not nowiki.
893 :There is <nowiki>nowiki</nowiki>.
895 #There is not nowiki.
896 #There is <nowiki>nowiki</nowiki>.
898 *There is not nowiki.
899 *There is <nowiki>nowiki</nowiki>.
901 <dl><dd>There is not nowiki.
902 </dd><dd>There is nowiki.
904 <ol><li>There is not nowiki.
905 </li><li>There is nowiki.
907 <ul><li>There is not nowiki.
908 </li><li>There is nowiki.
914 Entities inside <nowiki>
916 <nowiki><</nowiki>
923 Entities inside template parameters
929 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
937 Comments and Indent-Pre
939 <!-- comment 1 --> asdf
941 <!-- comment 1 --> asdf
944 <!-- comment 1 --> asdf
945 <!-- comment 2 -->xyz
947 <!-- comment 1 --> asdf
948 <!-- comment 2 --> xyz
1004 asdf<!-- comment 1 -->jkl
1014 <!-- foo --> b <!-- bar -->
1028 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1034 Comment semantics and delimiters
1036 <!-- --><!----><!-----><!------>
1042 Comment semantics and delimiters, redux
1044 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1045 -- foo -- funky huh? ... -->
1051 Comment semantics and delimiters: directors cut
1053 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1054 everything starting with < followed by !-- until the first -- and > we see,
1055 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1063 Comment semantics: nesting
1065 <!--<!-- no, we're not going to do anything fancy here -->-->
1072 Comment semantics: unclosed comment at end
1074 <!--This comment will run out to the end of the document
1080 Comment in template title
1089 Comment on its own line post-expand
1101 Comment on its own line post-expand with non-significant whitespace
1113 ### paragraph wrapping tests
1127 Block tag on one line
1139 Block tag on both lines
1151 Multiple lines without block tags
1169 Empty lines between lines with block tags
1199 ### Preformatted text
1208 And a [[Main Page|link]]
1214 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1219 Ident preformatting with inline content
1230 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1247 Regression with preformatted in <center>
1260 # Expected output in the following test is not really expected (there should be
1261 # <pre> in the output) -- it's only testing for well-formedness.
1263 Bug 6200: Preformatted in <blockquote>
1276 <pre> with attributes (bug 3202)
1278 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1280 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1285 <pre> with width attribute (bug 3202)
1287 <pre width="8">Narrow screen goodies</pre>
1289 <pre width="8">Narrow screen goodies</pre>
1294 <pre> with forbidden attribute (bug 3202)
1296 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1298 <pre width="8">Narrow screen goodies</pre>
1303 Entities inside <pre>
1312 <pre> with forbidden attribute values (bug 3202)
1314 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1316 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1321 <nowiki> inside <pre> (bug 13238)
1329 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1337 <pre><nowiki>Foo</nowiki></pre>
1342 <nowiki> and <pre> preference (first one wins)
1373 </pre> inside nowiki
1375 <nowiki></pre></nowiki>
1382 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1390 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1400 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1412 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1433 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1437 {{echo| foo}}{{echo| bar}}
1442 {{echo|<!--cmt--> foo}}
1444 <!--cmt-->{{echo| foo}}
1446 {{echo|{{echo| }}bar}}
1464 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1501 Templates: Single-line variant of parameter whitespace stripping test
1507 {{echo|{{echo| a}}}}
1509 {{echo|1={{echo| a}}}}
1522 Templates: Strip whitespace from named parameters, but not positional ones
1550 Templates: Dont strip whitespace from whitespace/comment-only arguments
1554 {{echo| <!--cmt--> }}
1561 Templates: Parsoid parameter escaping test 1
1565 {{echo|[foo]|{{echo|[bar]}}}}
1567 <p about="#mwt1" typeof="mw:Transclusion"
1568 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1572 Parsoid: Pipes in external links in template parameter
1576 {{echo|[{{echo|http://example.com}} link]}}
1578 <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>
1582 Parsoid: pipe in transclusion parameter
1586 {{echo|http://foo.com/a|b}}
1588 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1589 typeof="mw:Transclusion"
1590 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>
1594 Parsoid: Pipe in external link target and content in template parameter
1596 parsoid=html2wt,wt2wt
1598 {{echo|[http://foo.com/a|b a|b]}}
1600 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1601 typeof="mw:Transclusion"
1602 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1603 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1607 Templates: Dont escape already nowiki-escaped text in template parameters
1609 parsoid=html2wt,wt2wt
1611 {{echo|foo<nowiki>|</nowiki>bar}}
1612 {{echo|<nowiki><div></nowiki>}}
1613 {{echo|<nowiki></nowiki>}}
1615 <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>
1616 <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>
1617 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1622 ### Parsoid-centric tests for testing RT edge cases for pre
1626 1a. Indent-Pre and Comments
1639 1b. Indent-Pre and Comments
1652 1c. Indent-Pre and Comments
1665 2a. Indent-Pre and tables
1686 2b. Indent-Pre and tables
1702 2c. Indent-Pre and tables (bug 42252)
1719 3a. Indent-Pre and block tags (single-line html)
1727 <pre><span> foo </span>
1732 3b. Indent-Pre and block tags (pre-content on separate line)
1784 4. Multiple spaces at start-of-line
1803 5. White-space in indent-pre
1804 NOTE: the white-space char on 2nd line is significant
1817 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1821 HTML-pre: 1. embedded newlines
1857 HTML-pre: 2: indented text
1870 HTML-pre: 3: other wikitext
1891 ### Definition lists
1898 <dl><dt> name </dt><dd> Definition
1904 Definition list for indentation only
1908 <dl><dd> Indented text
1914 Definition list with no space
1918 <dl><dt>name</dt><dd>Definition
1924 Definition list with URL link
1926 ; http://example.com/ : definition
1928 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1934 Definition list with bracketed URL link
1936 ;[http://www.example.com/ Example]:Something about it
1938 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1944 Definition list with wikilink containing colon
1946 ; [[Help:FAQ]]: The least-read page on Wikipedia
1948 <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
1953 # At Brion's and JeLuF's insistence... :)
1955 Definition list with news link containing colon
1957 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1959 <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!
1965 Malformed definition list with colon
1967 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1969 <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
1975 Definition lists: colon in external link text
1977 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1979 <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
1985 Definition lists: colon in HTML attribute
1987 ;<b style="display: inline">bold</b>
1989 <dl><dt><b style="display: inline">bold</b>
1995 Definition lists: self-closed tag
1997 ;one<br/>two : two-line fun
1999 <dl><dt>one<br />two </dt><dd> two-line fun
2005 Bug 11748: Literal closing tags
2009 <dd>test test test test test</dd>
2011 <dd>test test test test test</dd>
2016 <dd>test test test test test</dd>
2018 <dd>test test test test test</dd>
2024 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2027 ; term : description
2033 <dl><dt> term </dt><dd> description
2044 Definition list with empty definition and following paragraph
2049 <dl><dt> term</dt><dd>
2056 Nested definition lists using html syntax
2073 Definition Lists: No nesting: Multiple dd's
2087 Definition Lists: Indentation: Regular
2103 Definition Lists: Indentation: Missing 1st level
2117 Definition Lists: Indentation: Multi-level indent
2121 <dl><dd><dl><dd><dl><dd>i3
2129 Definition Lists: Hacky use to indent tables
2136 should be left alone
2138 <dl><dd><dl><dd><table>
2143 </td></tr></table></dd></dl></dd></dl>
2145 should be left alone
2148 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2149 ## as an empty dt item. It also ignores all but the last ";" when followed
2150 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2151 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2154 ## Ex: ";;t2 ::d2" is transformed into:
2166 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2167 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2178 ## All Parsoid only definition list tests have this difference.
2180 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2181 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2184 Table / list interaction: indented table with lists in table contents
2206 </td></tr></table></dd></dl>
2211 Table / list interaction: lists nested in tables nested in indented lists
2236 </td></tr></table></dd></dl>
2244 Definition Lists: Nesting: Multi-level (Parsoid only)
2274 Definition Lists: Nesting: Test 2 (Parsoid only)
2294 Definition Lists: Nesting: Test 3 (Parsoid only)
2322 Definition Lists: Nesting: Test 4
2327 <dl><dd><dl><dd><dl><dt>t3
2336 ## The Parsoid team believes the following three test exposes a
2337 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2338 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2340 Definition Lists: Mixed Lists: Test 1 (php)
2348 <dl><dd><dl><dt><ul><li> foo
2358 Definition Lists: Mixed Lists: Test 1 (parsoid)
2366 <dl><dd><dl><dt><ul><li> foo
2367 </li></ul></dt><dd><ul><li> bar
2368 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2372 Definition Lists: Mixed Lists: Test 2
2386 Definition Lists: Mixed Lists: Test 3
2391 <ul><li><dl><dd><dl><dd><dl><dd> d1
2402 Definition Lists: Mixed Lists: Test 4
2407 <ul><li><dl><dt>d1 </dt><dd>d2
2408 </dd><dt>d3 </dt><dd>d4
2416 Definition Lists: Mixed Lists: Test 5
2431 Definition Lists: Mixed Lists: Test 6
2436 <ol><li><ul><li><dl><dd>d1
2448 Definition Lists: Mixed Lists: Test 7
2462 Definition Lists: Mixed Lists: Test 8
2478 Definition Lists: Mixed Lists: Test 9
2482 <ul><li><dl><dt>foo </dt><dd>bar
2490 Definition Lists: Mixed Lists: Test 10
2494 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2501 # The Parsoid team disagrees with the PHP parser's seemingly-random
2502 # rules regarding dd/dt on the next two tests. Parsoid is more
2503 # consistent, and recognizes the shared nesting and keeps the
2504 # still-open tags around until the nesting is complete.
2507 Definition Lists: Mixed Lists: Test 11 (php)
2514 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2519 <dl><dt>boo </dt><dd>baz
2528 Definition Lists: Mixed Lists: Test 11 (parsoid)
2550 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2551 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2552 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2553 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2558 Definition Lists: Weird Ones: Test 1 (php)
2562 *#;*::;; foo : bar (who uses this?)
2564 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2576 Definition Lists: Weird Ones: Test 1 (parsoid)
2580 *#;*::;; foo : bar (who uses this?)
2597 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2598 <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>
2605 External links: non-bracketed
2607 Non-bracketed: http://example.com
2609 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2614 External links: numbered
2616 Numbered: [http://example.com]
2617 Numbered: [http://example.net]
2618 Numbered: [http://example.com]
2620 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2621 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2622 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2627 External links: specified text
2629 Specified text: [http://example.com link]
2631 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2636 External links: trail
2638 Linktrails should not work for external links: [http://example.com link]s
2640 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2645 External links: dollar sign in URL
2647 http://example.com/1$2345
2649 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2654 External links: dollar sign in URL (named)
2656 [http://example.com/1$2345]
2658 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2663 External links: open square bracket forbidden in URL (bug 4377)
2665 http://example.com/1[2345
2667 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2672 External links: open square bracket forbidden in URL (named) (bug 4377)
2674 [http://example.com/1[2345]
2676 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2681 External links: nowiki in URL link text (bug 6230)
2683 [http://example.com/ <nowiki>''example site''</nowiki>]
2685 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2690 External links: newline forbidden in text (bug 6230 regression check)
2692 [http://example.com/ first
2695 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2701 External links: Pipe char between url and text
2703 [http://example.com | link]
2705 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2710 External links: protocol-relative URL in brackets
2712 [//example.com/ Test]
2714 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2719 External links: protocol-relative URL in brackets without text
2723 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2728 External links: protocol-relative URL in free text is left alone
2732 <p>//example.com/Foo
2737 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2739 foo//example.com/Foo
2741 <p>foo//example.com/Foo
2748 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2750 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2755 External image from https
2757 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2759 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2764 External image (when not allowed)
2766 wgAllowExternalImages=0
2768 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2770 <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>
2775 Link to non-http image, no img tag
2777 Link to non-http image, no img tag: ftp://example.com/test.jpg
2779 <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>
2784 External links: terminating separator
2786 Terminating separator: http://example.com/thing,
2788 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2793 External links: intervening separator
2795 Intervening separator: http://example.com/1,2,3
2797 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2802 External links: old bug with URL in query
2804 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2806 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2811 External links: old URL-in-URL bug, mixed protocols
2813 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2815 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2820 External links: URL in text
2822 URL in text: [http://example.com http://example.com]
2824 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2829 External links: Clickable images
2831 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2833 <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>
2838 External links: raw ampersand
2840 Old & use: http://x&y
2842 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2847 External links: encoded ampersand
2849 Old & use: http://x&y
2851 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2856 External links: encoded equals (bug 6102)
2858 http://example.com/?foo=bar
2860 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2865 External links: [raw ampersand]
2867 Old & use: [http://x&y]
2869 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2874 External links: [encoded ampersand]
2876 Old & use: [http://x&y]
2878 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2883 External links: [encoded equals] (bug 6102)
2885 [http://example.com/?foo=bar]
2887 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2892 External links: [IDN ignored character reference in hostname; strip it right off]
2894 [http://e‌xample.com/]
2896 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2900 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2901 # Where an external link could easily circumvent the sanitization of the text of
2902 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2903 # test demands a higher standard. That's a bit strange.
2907 # http://example.com -> [http://example.com|http://example.com]
2908 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2910 # The first example is sanitized, but the second is not. Any security benefits
2911 # from this production are trivial to circumvent. Either remove this test and
2912 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2913 # the test accordingly.
2918 External links: IDN ignored character reference in hostname; strip it right off
2920 http://e‌xample.com/
2922 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2927 External links: www.jpeg.org (bug 554)
2931 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2936 External links: URL within URL (original bug 2)
2938 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2940 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2945 BUG 361: URL inside bracketed URL
2947 [http://www.example.com/foo http://www.example.com/bar]
2949 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2954 BUG 361: URL within URL, not bracketed
2956 http://www.example.com/foo?=http://www.example.com/bar
2958 <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>
2963 BUG 289: ">"-token in URL-tail
2965 http://www.example.com/<hello>
2967 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2972 BUG 289: literal ">"-token in URL-tail
2974 http://www.example.com/<b>html</b>
2976 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2981 BUG 289: ">"-token in bracketed URL
2983 [http://www.example.com/<hello> stuff]
2985 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2990 BUG 289: literal ">"-token in bracketed URL
2992 [http://www.example.com/<b>html</b> stuff]
2994 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2999 BUG 289: literal double quote at end of URL
3001 http://www.example.com/"hello"
3003 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3008 BUG 289: literal double quote in bracketed URL
3010 [http://www.example.com/"hello" stuff]
3012 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3017 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3019 [http://www.example.com test]
3021 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3026 External links: link text with spaces
3028 [http://www.example.com a b c]
3029 [http://www.example.com ''a'' ''b'']
3031 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3032 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3037 External links: wiki links within external link (Bug 3695)
3039 [http://example.com [[wikilink]] embedded in ext link]
3041 <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>
3046 BUG 787: Links with one slash after the url protocol are invalid
3050 [http:/example.com title]
3052 <p>http:/example.com
3053 </p><p>[http:/example.com title]
3058 Bracketed external links with template-generated invalid target
3060 [{{echo|http:/example.com}} title]
3062 <p>[http:/example.com title]
3067 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3069 ''[http://example.com text'']
3070 [http://example.com '''text]'''
3071 ''Something [http://example.com in italic'']
3072 ''Something [http://example.com mixed''''', even bold]'''
3073 '''''Now [http://example.com both''''']
3075 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3076 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3077 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3078 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3079 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3085 Bug 4781: %26 in URL
3087 http://www.example.com/?title=AT%26T
3089 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3093 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3094 # % is actually legal in HTML5. Any change in output would need testing though.
3096 Bug 4781, 5267: %25 in URL
3098 http://www.example.com/?title=100%25_Bran
3100 <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>
3105 Bug 4781, 5267: %28, %29 in URL
3107 http://www.example.com/?title=Ben-Hur_%281959_film%29
3109 <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>
3115 Bug 4781: %26 in autonumber URL
3117 [http://www.example.com/?title=AT%26T]
3119 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3124 Bug 4781, 5267: %26 in autonumber URL
3126 [http://www.example.com/?title=100%25_Bran]
3128 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3133 Bug 4781, 5267: %28, %29 in autonumber URL
3135 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3137 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3143 Bug 4781: %26 in bracketed URL
3145 [http://www.example.com/?title=AT%26T link]
3147 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3152 Bug 4781, 5267: %26 in bracketed URL
3154 [http://www.example.com/?title=100%25_Bran link]
3156 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3161 Bug 4781, 5267: %28, %29 in bracketed URL
3163 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3165 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3170 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3172 Some [http://example.com/ pretty ''italics'' and stuff]!
3174 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3179 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3181 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3183 <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>
3188 External link containing double-single-quotes with no space separating the url from text in italics
3190 [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]].]
3192 <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>
3197 External link with comments in link text
3199 [http://www.google.com Google <!-- comment -->]
3201 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3206 URL-encoding in URL functions (single parameter)
3208 {{localurl:Some page|amp=&}}
3210 <p>/index.php?title=Some_page&amp=&
3215 URL-encoding in URL functions (multiple parameters)
3217 {{localurl:Some page|q=?&=&}}
3219 <p>/index.php?title=Some_page&q=?&amp=&
3226 http://example.com/index.php?foozoid%5B%5D=bar
3228 http://example.com/index.php?foozoid[]=bar
3230 <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>
3231 </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>
3236 IPv6 urls (bug 21261)
3240 http://[2404:130:0:1000::187:2]/index.php
3242 <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>
3247 Non-extlinks in brackets
3256 [{{echo|foo}} ''bar'']
3257 [{{echo|foo}}l's] errand
3258 [{{echo|foo}}l's errand]
3260 [url=http://example.com]
3273 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3278 Parsoid: Percent encoding in external links
3282 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3284 <p><a rel="mw:ExtLink"
3285 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3289 Parsoid: use url link syntax for links where the content is equal the link
3296 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3306 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3308 Normal text. '''''Bold italic text.''''' Normal text.
3310 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3311 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3317 Unclosed and unmatched quotes (php)
3321 '''''Bold italic text '''with bold deactivated''' in between.'''''
3323 '''''Bold italic text ''with italic deactivated'' in between.'''''
3327 ..spanning two paragraphs (should not work).'''
3329 '''Bold tag left open
3331 ''Italic tag left open
3335 <!-- Unmatching number of opening, closing tags: -->
3336 '''This year''''s election ''should'' beat '''last year''''s.
3338 ''Tom'''s car is bigger than ''Susan'''s.
3340 Plain ''italic'''s plain
3342 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3343 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3344 </p><p><b>Bold text..</b>
3345 </p><p>..spanning two paragraphs (should not work).
3346 </p><p><b>Bold tag left open</b>
3347 </p><p><i>Italic tag left open</i>
3349 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3350 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3351 </p><p>Plain <i>italic'</i>s plain
3354 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3355 # parser strips. The wikitext contains just the first half of the bold
3356 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3357 # differently than the PHP parser.)
3359 Unclosed and unmatched quotes (parsoid)
3363 '''''Bold italic text '''with bold deactivated''' in between.'''''
3365 '''''Bold italic text ''with italic deactivated'' in between.'''''
3369 ..spanning two paragraphs (should not work).'''
3371 '''Bold tag left open
3373 ''Italic tag left open
3377 <!-- Unmatching number of opening, closing tags: -->
3378 '''This year''''s election ''should'' beat '''last year''''s.
3380 ''Tom'''s car is bigger than ''Susan'''s.
3382 Plain ''italic'''s plain
3384 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3385 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3386 </p><p><b>Bold text..</b>
3387 </p><p>..spanning two paragraphs (should not work).<b></b>
3388 </p><p><b>Bold tag left open</b>
3389 </p><p><i>Italic tag left open</i>
3391 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3392 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3393 </p><p>Plain <i>italic'</i>s plain
3400 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3403 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3404 # is the bare minimum required by the spec, see:
3405 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3407 A table with no data. (php)
3414 # Parsoid team replies: empty table tags are legal in HTML5
3416 A table with no data. (parsoid)
3425 # A table with nothing but a caption is invalid XHTML, we might want to render
3426 # this as <p>caption</p>
3428 A table with nothing but a caption (php)
3438 </caption><tr><td></td></tr></table>
3441 # Parsoid team replies: table with only a caption is legal in HTML5
3443 A table with nothing but a caption (parsoid)
3451 <table><caption> caption</caption></table>
3455 A table with caption with default-spaced attributes and a table row
3458 |+ style="color: red;" | caption1
3464 <caption style="color: red;"> caption1
3473 A table with captions with non-default spaced attributes and a table row
3476 |+style="color: red;"|caption2
3477 |+ style="color: red;"| caption3
3483 <caption style="color: red;">caption2
3485 <caption style="color: red;"> caption3
3494 Table td-cell syntax variations
3498 | foo bar foo || baz
3499 | style='color:red;' | baz
3500 | style='color:red;' || baz
3507 <td> foo bar foo </td>
3510 <td style="color:red;"> baz
3512 <td> style='color:red;' </td>
3540 Simple table but with multiple dashes for row wikitext
3558 Multiplication table
3560 {| border="1" cellpadding="2"
3561 |+Multiplication table
3563 ! × !! 1 !! 2 !! 3
3581 <table border="1" cellpadding="2">
3582 <caption>Multiplication table
3629 Accept "||" in table headings
3644 Accept "||" in indented table headings
3654 </th></tr></table></dd></dl>
3659 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3676 Accept "| !" at start of line in tables (ignore !-attribute)
3680 | !style="color:red" | bar
3692 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 +/-
3696 |style='color:red;'|+1
3697 |style='color:blue;'|-1
3709 <td style="color:red;">+1
3711 <td style="color:blue;">-1
3735 |rowspan=2| Cell 2, row 1 (and 2)
3746 <td rowspan="2"> Cell 2, row 1 (and 2)
3764 {| bgcolor=#ABCDEF border=2
3769 |the original table again
3777 <table bgcolor="#ABCDEF" border="2">
3785 <td>the original table again
3791 Invalid attributes in table cell (bug 1830)
3806 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3809 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3813 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3814 <td>]" onmouseover="alert(document.cookie)">test
3823 Indented table markup mixed with indented pre content (proposed in bug 6200)
3828 Text that should be rendered preformatted
3836 <pre>Text that should be rendered preformatted
3845 Template-generated table cell attributes and cell content
3853 <td style="color: red"> Foo
3859 Table with row followed by newlines and table heading
3877 Table with empty line following the start tag
3894 # FIXME: Preserve the attribute properly (with an empty string as value) in
3895 # the PHP parser. Parsoid implements the behavior below.
3897 Table attributes with empty value
3909 </td></tr></tbody></table>
3914 Wikitext table with a lot of comments
3937 Wikitext table with double-line table cell
3954 Table cell with a single comment
3970 # The expected HTML structure in this test is debatable. The PHP parser does
3971 # not parse this kind of table at all. The main focus for Parsoid is on
3972 # round-tripping, so this output is ok for now. TODO: revisit!
3974 Wikitext table with html-syntax row (Parsoid)
3986 <td>foo</td></tr></tbody></table>
3990 Implicit <td> after a |-
3991 (PHP parser relies on Tidy to add the missing <td> tags)
3993 parsoid=wt2html,wt2wt
4006 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4007 (PHP parser relies on Tidy to add the missing <td> tags)
4009 parsoid=wt2html,wt2wt
4021 <tr><td><pre>a</pre></td></tr>
4022 <tr><td> b</td></tr>
4028 Lists should be recognized in an implicit <td> context
4029 (PHP parser relies on Tidy to add the missing <td> tags)
4031 parsoid=wt2html,wt2wt
4040 <td><ul><li>a</li></ul></td>
4049 Plain link, capitalized
4053 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4058 Plain link, uncapitalized
4062 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4069 [[Main Page|The Main Page]]
4071 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4076 Piped link with comment in link text
4078 [[Main Page|The Main<!--front--> Page]]
4080 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4089 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4094 Broken link with fragment
4096 [[Zigzagzogzagzig#zug]]
4098 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4103 Special page link with fragment
4105 [[Special:Version#anchor]]
4107 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4112 Nonexistent special page link with fragment
4114 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4116 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4123 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4125 <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>
4132 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4134 <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>!!!
4145 Bug 43661: Piped links with identical prefixes
4147 [[prefixed article|prefixed articles with spaces]]
4149 [[prefixed article|prefixed articlesaoeu]]
4151 [[Main Page|Main Page test]]
4153 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4154 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4155 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4161 Link with HTML entity in suffix / tail
4163 [[Main Page]]", [[Main Page]]a
4165 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4170 Link with 3 brackets
4179 Piped link with 3 brackets
4181 [[[main page|the main page]]]
4183 <p>[[[main page|the main page]]]
4188 Link with multiple pipes
4190 [[Main Page|The|Main|Page]]
4192 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4199 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4201 <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>
4206 Piped link to namespace
4208 [[Meta:Disclaimers|The disclaimers]]
4210 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4217 [[Usually caused by a typo (oops}]]
4219 <p>[[Usually caused by a typo (oops}]]
4224 Link containing % (not as a hex sequence)
4228 <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>
4233 Link containing % as a single hex sequence interpreted to char
4237 <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>
4242 Link containing % as a double hex sequence interpreted to hex sequence
4246 <p>[[7%2525 Solution]]
4251 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4252 Example for such a section: == < ==
4254 [[%23%3c]][[%23%3e]]
4256 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4261 Link containing "<#" and ">#" as a hex sequences
4263 [[%3c%23]][[%3e%23]]
4265 <p>[[%3c%23]][[%3e%23]]
4270 Link containing an equals sign
4272 [[Special:BookSources/isbn=4-00-026157-6]]
4274 <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>
4281 Just a test of an article title containing a tilde.
4284 # note that links containing signatures, like [[Foo~~~~]], are
4285 # massaged by the pre-save transform (PST) and so the tildes are never
4286 # seen by the parser.
4288 Link containing a tilde
4292 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4297 Link containing double-single-quotes '' (bug 4598)
4299 [[Lista d''e paise d''o munno]]
4301 <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>
4306 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4308 Some [[Link|pretty ''italics'' and stuff]]!
4310 <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>!
4315 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4317 ''Some [[Link|pretty ''italics'' and stuff]]!
4319 <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>
4324 Link with double quotes in title part (literal) and alternate part (interpreted)
4326 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4330 [[''Pentecoste''|Pentecoste]]
4332 [[''Pentecoste''|''Pentecoste'']]
4334 <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>
4335 </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>
4336 </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>
4337 </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>
4342 Broken image links with HTML captions (bug 39700)
4344 [[File:Nonexistent|<script></script>]]
4345 [[File:Nonexistent|100px|<script></script>]]
4346 [[File:Nonexistent|<]]
4347 [[File:Nonexistent|a<i>b</i>c]]
4349 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4350 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4351 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4352 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4359 [[http://www.example.com]]
4361 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4366 Plain link to URL with link text
4368 [[http://www.example.com Link text]]
4370 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4375 Plain link to protocol-relative URL
4377 [[//www.example.com]]
4379 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4384 Plain link to protocol-relative URL with link text
4386 [[//www.example.com Link text]]
4388 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4393 Plain link to page with question mark in title
4399 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4400 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4405 # I'm fairly sure the expected result here is wrong.
4406 # We want these to be URL links, not pseudo-pages with URLs for titles....
4407 # However the current output is also pretty screwy.
4410 # I'm changing it to match the current output--it arguably makes more
4411 # sense in the light of the test above. Old expected result was:
4412 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4414 # But I think this test is bordering on "garbage in, garbage out" anyway.
4419 Piped link to URL: [[http://www.example.com|an example URL]]
4421 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4426 BUG 2: [[page|http://url/]] should link to page, not http://url/
4428 [[Main Page|http://url/]]
4430 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4435 BUG 337: Escaped self-links should be bold
4439 [[Bug462]] [[Bug462]]
4441 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4446 Self-link to section should not be bold
4450 [[Main Page#section]]
4452 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4463 Self-link to numeric title
4469 <p><strong class="selflink">0</strong>
4474 Link to numeric-equivalent title
4480 <p><a href="/wiki/00" title="00">00</a>
4485 <nowiki> inside a link
4487 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4489 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4494 Non-breaking spaces in title
4496 [[ Main Page ]]
4498 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4503 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4509 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4514 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4520 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4525 Internal link with en linktrail: no apostrophes (bug 27473)
4531 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4536 Internal link with ca linktrail with apostrophes (bug 27473)
4542 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4547 Internal link with kaa linktrail with apostrophes (bug 27473)
4553 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4564 Internal link with is link prefix
4568 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4570 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4581 Internal link with is link trail and link prefix
4585 [[mótmælendatrú|xxx]]ar
4587 mótmælenda[[söfnuður]]
4588 mótmælenda[[söfnuður|söfnuðir]]
4589 mótmælenda[[söfnuður|söfnuðir]]xxx
4591 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4592 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4593 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4594 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4595 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4600 Parsoid link trail escaping
4602 parsoid=html2wt,html2html
4606 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4610 Parsoid link prefix escaping
4613 parsoid=html2wt,html2html
4615 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4617 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4621 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4629 [http://wp.org ''foo'']
4631 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4632 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4633 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4634 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4639 ### Interwiki links (see maintenance/interwiki.sql)
4643 Inline interwiki link
4645 [[MeatBall:SoftSecurity]]
4647 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4652 Inline interwiki link with empty title (bug 2372)
4656 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4661 Interwiki link encoding conversion (bug 1636)
4663 *[[Wikipedia:ro:Olteniţa]]
4664 *[[Wikipedia:ro:Olteniţa]]
4666 <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>
4667 </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>
4673 Interwiki link with fragment (bug 2130)
4675 [[MeatBall:SoftSecurity#foo]]
4677 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4692 Double interlanguage link
4703 Interlanguage link, with prefix links
4715 Double interlanguage link, with prefix links (bug 8897)
4728 Parsoid-specific test: Wikilinks with should RT properly
4734 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4739 Parsoid: handle constructor well
4747 <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>
4750 <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>
4754 ## Redirects, Parsoid-only
4757 Simple redirect to page
4761 #REDIRECT [[Main Page]]
4763 <link rel="mw:PageProp/redirect" href="./Main_Page">
4767 Redirect to category
4771 #REDIRECT [[Category:Foo]]
4773 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4777 Redirect to category page
4779 parsoid=wt2html,html2html
4781 #REDIRECT [[:Category:Foo]]
4783 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4787 Redirect to image page
4791 #REDIRECT [[File:Wiki.png]]
4793 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4797 Redirect to language
4801 #REDIRECT [[en:File:Wiki.png]]
4803 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4807 Redirect to interwiki
4811 #REDIRECT [[meatball:File:Wiki.png]]
4813 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4830 Broken br tag sanitization
4840 # TODO: Fix html2html mode (bug 51055)!
4842 Parsoid: Broken br tag recognition
4852 Incorrecly removing closing slashes from correctly formed XHTML
4854 <br style="clear:both;" />
4856 <p><br style="clear:both;" />
4861 Failing to transform badly formed HTML into correct XHTML
4863 <br style="clear: left;">
4864 <br style="clear: right;">
4865 <br style="clear: both;">
4867 <p><br style="clear: left;" />
4868 <br style="clear: right;" />
4869 <br style="clear: both;" />
4874 Handling html with a div self-closing tag
4883 <p><div title />
4887 <p><div title=bar />
4888 <div title=bar/>
4890 <div title="bar/"></div>
4896 Handling html with a br self-closing tag
4905 <p><br title="title" />
4906 <br title="title" />
4915 Horizontal ruler (should it add that extra space?)
4929 Horizontal ruler -- 4+ dashes render hr
4938 Horizontal ruler -- eats additional dashes on the same line
4947 Horizontal ruler -- does not collapse dashes on consecutive lines
4958 Horizontal ruler -- <4 dashes render as plain text
4967 Horizontal ruler -- Supports content following dashes on same line
4976 ### Block-level elements
4999 <ol><li>Numbered list
5016 ***#Number on level 4
5018 **#Number on level 3
5019 **#Number on level 3
5023 #** Level 3, but ordered
5026 <ol><li> with numbers
5028 <ul><li> and bullets
5030 <ol><li> and numbers
5032 </li><li>bullets again
5033 <ul><li>bullet level 2
5034 <ul><li>bullet level 3
5035 <ol><li>Number on level 4
5038 </li><li>bullet level 2
5039 <ol><li>Number on level 3
5040 </li><li>Number on level 3
5043 <ol><li>number level 2
5046 <ul><li><ul><li> Level 3
5050 <ol><li><ul><li><ul><li> Level 3, but ordered
5084 Nested lists 3 (first element empty)
5097 Nested lists 4 (first element empty)
5110 Nested lists 5 (both elements empty)
5123 Nested lists 6 (both elements empty)
5136 Nested lists 7 (skip initial nesting levels)
5140 <ul><li><ul><li><ul><li> foo
5148 Nested lists 8 (multiple nesting transitions)
5156 <ul><li><ul><li> bar
5166 1. Lists with start-of-line-transparent tokens before bullets: Comments
5180 2. Lists with start-of-line-transparent tokens before bullets: Template close
5192 List items are not parsed correctly following a <pre> block (bug 785)
5198 <ul><li> <pre>foo</pre>
5199 </li><li> <pre>bar</pre>
5206 List items from template
5217 * notSOL{{inner list}}
5236 List interrupted by empty line or heading
5246 <ul><li><ul><li> bar
5249 <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>
5250 <ul><li> Another list item
5256 Multiple list tags generated by templates
5271 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5274 <!--This line will NOT split the list-->
5276 <!--This line will NOT split the list either-->
5278 <!--foo--> <!--This line with more than 1 comment will split the list-->
5292 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5294 parsoid=wt2html,wt2wt
5298 * {{echo|<li>templated li-hack}}
5299 * <!--foo--> <li> unsupported li-hack with preceding comments
5302 <li><li>not a li-hack
5308 <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>
5309 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5312 <li></li><li>not a li-hack
5318 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5329 <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>
5332 # ------------------------------------------------------------------------
5333 # The next set of tests are about Parsoid's ability to handle badly nested
5334 # tags (parse, minimize scope of fixup, and roundtrip back)
5335 # ------------------------------------------------------------------------
5338 Unbalanced closing block tags break a list
5339 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5349 </li></ul></div><div>
5355 Unbalanced closing non-block tags don't break a list
5356 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5366 <ul><li>a<span></span>
5372 Unclosed formatting tags that straddle lists are closed and reopened
5373 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5381 </li><li> <s> b </s>
5386 List embedded in a non-block tag
5387 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5395 <p><small></small></p>
5401 <p><small></small></p>
5409 Magic Word: {{CURRENTDAY}}
5418 Magic Word: {{CURRENTDAY2}}
5427 Magic Word: {{CURRENTDAYNAME}}
5436 Magic Word: {{CURRENTDOW}}
5445 Magic Word: {{CURRENTMONTH}}
5454 Magic Word: {{CURRENTMONTHABBREV}}
5456 {{CURRENTMONTHABBREV}}
5463 Magic Word: {{CURRENTMONTHNAME}}
5465 {{CURRENTMONTHNAME}}
5472 Magic Word: {{CURRENTMONTHNAMEGEN}}
5474 {{CURRENTMONTHNAMEGEN}}
5481 Magic Word: {{CURRENTTIME}}
5490 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5499 Magic Word: {{CURRENTYEAR}}
5508 Magic Word: {{FULLPAGENAME}}
5510 title=[[User:Ævar Arnfjörð Bjarmason]]
5514 <p>User:Ævar Arnfjörð Bjarmason
5519 Magic Word: {{FULLPAGENAMEE}}
5521 title=[[User:Ævar Arnfjörð Bjarmason]]
5525 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5530 Magic Word: {{NAMESPACE}}
5532 title=[[User:Ævar Arnfjörð Bjarmason]]
5541 Magic Word: {{NAMESPACEE}}
5543 title=[[User:Ævar Arnfjörð Bjarmason]]
5552 Magic Word: {{NAMESPACENUMBER}}
5554 title=[[User:Ævar Arnfjörð Bjarmason]]
5563 Magic Word: {{NUMBEROFFILES}}
5572 Magic Word: {{PAGENAME}}
5574 title=[[User:Ævar Arnfjörð Bjarmason]]
5578 <p>Ævar Arnfjörð Bjarmason
5583 Magic Word: {{PAGENAME}} with metacharacters
5585 title=[['foo & bar = baz']]
5589 <p><i>'foo & bar = baz'</i>
5594 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5596 title=[[*RFC 1234 http://example.com/]]
5600 <p>*RFC 1234 http://example.com/
5605 Magic Word: {{PAGENAMEE}}
5607 title=[[User:Ævar Arnfjörð Bjarmason]]
5611 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5616 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5618 title=[[*RFC 1234 http://example.com/]]
5622 <p>*RFC_1234_http://example.com/
5627 Magic Word: {{REVISIONID}}
5636 Magic Word: {{SCRIPTPATH}}
5645 Magic Word: {{SERVER}}
5649 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5654 Magic Word: {{SERVERNAME}}
5663 Magic Word: {{SITENAME}}
5672 Case-sensitive magic words, when cased differently, should just be template transclusions
5679 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5680 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5681 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5682 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5687 Case-insensitive magic words should still work with weird casing.
5697 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5702 Namespace 1 {{ns:1}}
5711 Namespace 1 {{ns:01}}
5720 Namespace 0 {{ns:0}} (bug 4783)
5728 Namespace 0 {{ns:00}} (bug 4783)
5736 Namespace -1 {{ns:-1}}
5745 Namespace User {{ns:User}}
5754 Namespace User talk {{ns:User_talk}}
5763 Namespace User talk {{ns:uSeR tAlK}}
5772 Namespace File {{ns:File}}
5781 Namespace File {{ns:Image}}
5790 Namespace (lang=de) Benutzer {{ns:User}}
5801 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5807 <p>Benutzer Diskussion
5815 {{urlencode:hi world?!}}
5816 {{urlencode:hi world?!|WIKI}}
5817 {{urlencode:hi world?!|PATH}}
5818 {{urlencode:hi world?!|QUERY}}
5831 Magic links: internal link to RFC (bug 479)
5835 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5840 Magic links: RFC (bug 479)
5844 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5849 Magic links: ISBN (bug 1937)
5853 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5858 Magic links: PMID incorrectly converts space to underscore
5862 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5871 Nonexistent template
5873 {{thistemplatedoesnotexist}}
5875 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5880 Template with invalid target containing tags
5882 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5884 <p>{{a<b>b</b>|foo|a=b|a = b}}
5889 Template with invalid target containing unclosed tag
5891 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5893 <p>{{a<b>|foo|a=b|a = b}}</b>
5900 This is a test template
5908 <p>This is a test template
5913 Template with explicit namespace
5917 <p>This is a test template
5925 This is a test template with parameter {{{param}}}
5931 {{paramtest|param=foo}}
5933 <p>This is a test template with parameter foo
5938 Template:paramtestnum
5944 Template unnamed parameter
5946 {{paramtestnum|Main Page|the main page}}
5948 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5953 Template:templatesimple
5959 Template:templateredirect
5961 #redirect [[Template:templatesimple]]
5965 Template:templateasargtestnum
5971 Template:templateasargtest
5973 {{template{{{templ}}}}}
5977 Template:templateasargtest2
5983 Template with template name as unnamed argument
5985 {{templateasargtestnum|templatesimple}}
5992 Template with template name as argument
5994 {{templateasargtest|templ=simple}}
6001 Template with template name as argument (2)
6003 {{templateasargtest2|templ=templatesimple}}
6010 Template:templateasargtestdefault
6012 {{{{{templ|templatesimple}}}}}
6022 Template with default value
6024 {{templateasargtestdefault}}
6031 Template with default value (value set)
6033 {{templateasargtestdefault|templ=templa}}
6042 {{templateredirect}}
6049 Template with argument in separate line
6051 {{ templateasargtest |
6059 Template with complex template as argument
6062 param ={{ templateasargtest |
6065 <p>This is a test template with parameter (test)
6070 Template with thumb image (with link in description)
6073 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6075 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>
6080 Template:complextemplate
6082 {{{1}}} {{paramtest|
6083 param ={{{param}}}}}
6087 Template with complex arguments
6090 param ={{ templateasargtest |
6091 templ = simple }}|[[Template:complextemplate|link]]}}
6093 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6098 BUG 553: link with two variables in a piped link
6101 |[[{{{1}}}|{{{2}}}]]
6106 <td>[[{{{1}}}|{{{2}}}]]
6112 Magic variable as template parameter
6114 {{paramtest|param={{SITENAME}}}}
6116 <p>This is a test template with parameter MediaWiki
6123 [[{{{param}}}|link]]
6127 Template parameter as link source
6129 {{linktest|param=Main Page}}
6131 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6136 Template-generated attribute string (k='v')
6138 <span {{attr_str|id|v1}}>bar</span>
6140 <p><span id="v1">bar</span>
6147 including another template, {{paramtest|param={{{arg}}}}}
6151 Template passing argument to another template
6153 {{paramtest2|arg='hmm'}}
6155 <p>including another template, This is a test template with parameter 'hmm'
6166 Template as link source
6170 [[{{linktest2}}|Main Page]]
6172 [[{{linktest2}}]]Page
6174 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6175 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6176 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6194 Template infinite loop
6198 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6203 Template from main namespace
6222 BUG 529: Template with table, not included at beginning of line
6241 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6261 BUG 41: Template parameters shown as broken links
6270 Template with targets containing wikilinks
6274 {{[[{{echo|foo}}]]}}
6276 {{{{echo|[[foo}}]]}}
6278 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6279 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6287 ''None'' of '''this''' should be
6289 but rather passed unmodified
6293 # hmm, fix this or just deprecate msgnw and document its behavior?
6299 {{msgnw:MSGNW test}}
6301 <p>''None'' of '''this''' should be
6303 but rather passed unmodified
6311 {{int:youhavenewmessages|lots of money|not!}}
6313 <p>You have lots of money (not!).
6320 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6324 <includeonly> and <noinclude> being included
6335 <onlyinclude>Foo</onlyinclude>bar
6339 <onlyinclude> being included
6351 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6355 <onlyinclude> and <includeonly> being included
6364 <includeonly> and <noinclude> on a page
6366 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6373 Un-closed <noinclude>
6380 <onlyinclude> on a page
6382 <onlyinclude>Foo</onlyinclude>bar
6389 Un-closed <onlyinclude>
6396 Self-closed noinclude, includeonly, onlyinclude tags
6407 Unbalanced includeonly and noinclude tags
6411 |b</noinclude></noinclude>
6412 |c</noinclude></includeonly>
6413 |d</includeonly></includeonly>
6422 <td>c</includeonly>
6424 <td>d</includeonly></includeonly>
6430 Template:Includeonly section
6433 ==Includeonly section==
6439 Bug 6563: Edit link generation for section shown by <includeonly>
6441 {{includeonly section}}
6443 <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>
6444 <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>
6448 # Uses same input as the contents of [[Template:Includeonly section]]
6450 Bug 6563: Section extraction for section shown by <includeonly>
6455 ==Includeonly section==
6463 Bug 6563: Edit link generation for section suppressed by <includeonly>
6466 ==Includeonly section==
6470 <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>
6475 Bug 6563: Section extraction for section suppressed by <includeonly>
6480 ==Includeonly section==
6488 Un-closed <includeonly>
6495 ### <includeonly> and <noinclude> in attributes
6498 0. includeonly around the entire attribute
6500 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6502 <p><span id="v2">bar</span>
6507 1. includeonly in html attr key
6509 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6511 <p><span id="foo">bar</span>
6516 2. includeonly in html attr value
6518 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6519 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6521 <p><span id="v1">bar</span>
6522 <span id="v1">bar</span>
6527 3. includeonly in part of an attr value
6529 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6531 <p><span style="color:red;">bar</span>
6536 ### Testing parsing of templates where a template arg
6537 ### has the same name as the template itself.
6547 Templates: Template Name/Arg clash: 1. Use of positional param
6556 Templates: Template Name/Arg clash: 2. Use of named param
6565 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6574 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6578 Templates: 1. Simple use
6587 Templates: 2. Inside a block tag
6589 <div>{{echo|Foo}}</div>
6596 Templates: P-wrapping: 1a. Templates on consecutive lines
6607 Templates: P-wrapping: 1b. Templates on consecutive lines
6621 Templates: P-wrapping: 1c. Templates on consecutive lines
6624 {{echo|bar}} <div>baz</div>
6633 Templates: P-wrapping: 1d. Template preceded by comment-only line
6635 parsoid=wt2html,wt2wt
6641 <p typeof="mw:Transclusion">Bar
6646 Templates: Inline Text: 1. Multiple tmeplate uses
6648 {{echo|Foo}}bar{{echo|baz}}
6655 Templates: Inline Text: 2. Back-to-back template uses
6657 {{echo|Foo}}{{echo|bar}}
6664 Templates: Block Tags: 1. Multiple template uses
6666 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6668 <div>Foo</div><div>bar</div><div>baz</div>
6673 Templates: Block Tags: 2. Back-to-back template uses
6675 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6677 <div>Foo</div><div>bar</div>
6682 Templates: Links: 1. Simple example
6684 {{echo|[[Foo|bar]]}}
6686 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6691 Templates: Links: 2. Generation of link href
6693 [[{{echo|Foo}}|bar]]
6695 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6700 Templates: Links: 3. Generation of part of a link href
6702 [[Fo{{echo|o}}|bar]]
6706 [[Foo{{echo|bar}}baz]]
6708 [[Foo{{echo|bar}}|bar]]
6710 [[:Foo{{echo|bar}}]]
6712 [[:Foo{{echo|bar}}|bar]]
6714 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6715 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6716 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6717 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6718 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6719 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6724 Templates: Links: 4. Multiple templates generating link href
6726 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6728 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6733 Templates: Links: 5. Generation of link text
6735 [[Foo|{{echo|bar}}]]
6737 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6742 Templates: Links: 5. Nested templates (only outermost template should be marked)
6744 {{echo|[[{{echo|Foo}}|bar]]}}
6746 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6751 Templates: HTML Tag: 1. Generation of HTML attr. key
6753 <div {{echo|style}}="color:red;">foo</div>
6755 <div style="color:red;">foo</div>
6760 Templates: HTML Tag: 2. Generation of HTML attr. value
6762 <div style={{echo|'color:red;'}}>foo</div>
6764 <div style="color:red;">foo</div>
6769 Templates: HTML Tag: 3. Generation of HTML attr key and value
6771 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6773 <div style="color:red;">foo</div>
6778 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6780 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6782 <div title="This is a long title with just one piece templated">foo</div>
6787 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6789 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6791 <div title="This is a long title with just one piece templated">foo</div>
6796 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6798 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6800 <div title="This is a long title with just one piece templated">foo</div>
6805 Templates: HTML Tag: 7. Generation of partial attribute key string
6807 <div st{{echo|yle}}="color:red;">foo</div>
6809 <div style="color:red;">foo</div>
6814 Templates: HTML Tables: 1. Generating start of a HTML table
6816 {{echo|<table><tr><td>foo</td>}}</tr></table>
6818 <table><tr><td>foo</td></tr></table>
6823 Templates: HTML Tables: 2a. Generating middle of a HTML table
6825 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6827 <table><tr><td>foo</td></tr></table>
6832 Templates: HTML Tables: 2b. Generating middle of a HTML table
6834 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6836 <table><tr><td>foo</td></tr></table>
6841 Templates: HTML Tables: 3. Generating end of a HTML table
6843 <table><tr>{{echo|<td>foo</td></tr></table>}}
6845 <table><tr><td>foo</td></tr></table>
6850 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6852 {{echo|<table>}}<tr><td>foo</td></tr></table>
6854 <table><tr><td>foo</td></tr></table>
6859 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6861 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6863 <table><tr><td>foo</td></tr></table>
6868 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6870 <table><tr>{{echo|<td>}}foo</td></tr></table>
6872 <table><tr><td>foo</td></tr></table>
6877 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6879 <table><tr><td>foo{{echo|</td>}}</tr></table>
6881 <table><tr><td>foo</td></tr></table>
6886 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6888 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6890 <table><tr><td>foo</td></tr></table>
6895 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6897 <table><tr><td>foo</td></tr>{{echo|</table>}}
6899 <table><tr><td>foo</td></tr></table>
6904 Templates: HTML Tables: 5. Proper fostering of categories from inside
6906 parsoid=wt2html,wt2wt
6908 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6909 <!--Two categories (Bug 50330)-->
6910 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6912 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6913 <!--Two categories (Bug 50330)-->
6914 <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>
6918 Templates: Wiki Tables: 1a. Fostering of entire template content
6926 <tr><td></td></tr></table>
6931 Templates: Wiki Tables: 1b. Fostering of entire template content
6944 <tr><td></td></tr></table>
6949 Templates: Wiki Tables: 2. Fostering of partial template content
6959 <tr><td></td></tr></table>
6964 Templates: Wiki Tables: 3. td-content via multiple templates
6967 {{echo|{{pipe}}a}}{{echo|b}}
6978 Templates: Wiki Tables: 4. Templated tags, no content
6984 <tr><td></td></tr></table>
6989 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7003 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7017 Templates: Lists: Multi-line list-items via templates
7019 *{{echo|a {{nonexistent|
7021 *{{echo|b {{nonexistent|
7024 <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>
7025 </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>
7031 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7033 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7035 <p><i>ab</i>c<i>d</i>e
7040 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7041 (PHP parser generates misnested html)
7043 parsoid=wt2html,wt2wt
7045 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7047 <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>
7051 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7052 (PHP parser generates misnested html)
7054 parsoid=wt2html,wt2wt
7056 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7058 <div typeof="mw:Transclusion"><i>a</i></div>
7059 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7060 <div typeof="mw:Transclusion">e</div>
7064 Templates: Ugly nesting: 4. Divs opened/closed across templates
7066 a<div>b{{echo|c</div>d}}e
7073 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7079 |{{echo|foo</table>}}
7083 <table typeof="mw:Transclusion">
7086 <td>foo</td></tr></tbody></table><span>bar</span>
7090 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7100 <td>1. {{echo|foo </table>}}</td>
7102 <td>2. {{echo|baz </table>}}</td>
7115 <table about="#mwt1" typeof="mw:Transclusion">
7120 <td >1. foo </td></tr></tbody></table></td>
7122 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7123 </span><span about="#mwt1">
7125 abc</span><span about="#mwt1">
7126 </span><span about="#mwt1">
7127 </span><span about="#mwt1">
7128 </span><span about="#mwt1">
7129 </span><span about="#mwt1">
7131 xyz</span><span about="#mwt1">
7132 </span><span about="#mwt1">
7137 Templates: Ugly templates: 3. newline-only template parameter
7146 # This looks like a bug: a single newline triggers p/br for some reason.
7148 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7159 Parser Functions: 1. Simple example
7168 Parser Functions: 2. Nested use (only outermost should be marked up)
7177 ### Pre-save transform tests
7180 pre-save transform: subst:
7186 This is a test template
7190 pre-save transform: normal template
7200 pre-save transform: nonexistent template
7204 {{thistemplatedoesnotexist}}
7206 {{thistemplatedoesnotexist}}
7211 pre-save transform: subst magic variables
7220 # This is bug 89, which I fixed. -- wtm
7222 pre-save transform: subst: templates with parameters
7226 {{subst:paramtest|param="something else"}}
7228 This is a test template with parameter "something else"
7234 <nowiki>'''not wiki'''</nowiki>
7238 pre-save transform: nowiki in subst (bug 1188)
7242 {{subst:nowikitest}}
7244 <nowiki>'''not wiki'''</nowiki>
7249 Template:commenttest
7251 This template has <!-- a comment --> in it.
7255 pre-save transform: comment in subst (bug 1936)
7259 {{subst:commenttest}}
7261 This template has <!-- a comment --> in it.
7265 pre-save transform: unclosed tag
7269 <nowiki>'''not wiki'''
7271 <nowiki>'''not wiki'''
7275 pre-save transform: mixed tag case
7279 <NOwiki>'''not wiki'''</noWIKI>
7281 <NOwiki>'''not wiki'''</noWIKI>
7285 pre-save transform: unclosed comment in <nowiki>
7289 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7291 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7294 # Leading @ in this template definition works around a limitation
7295 # in parsoid's parserTests which otherwise strips the <span> from the
7296 # result (confusing it for a template wrapper)
7300 @<span onmouseover="alert('crap')">Oh no</span>
7304 (confirming safety of fix for subst bug 1936)
7306 {{Template:dangerous}}
7308 <p>@<span>Oh no</span>
7313 pre-save transform: comment containing gallery (bug 5024)
7317 <!-- <gallery>data</gallery> -->
7319 <!-- <gallery>data</gallery> -->
7323 pre-save transform: comment containing extension
7327 <!-- <tag>data</tag> -->
7329 <!-- <tag>data</tag> -->
7333 pre-save transform: comment containing nowiki
7337 <!-- <nowiki>data</nowiki> -->
7339 <!-- <nowiki>data</nowiki> -->
7343 pre-save transform: <noinclude> in subst (bug 3298)
7353 pre-save transform: <onlyinclude> in subst (bug 3298)
7365 {{<includeonly>subst:</includeonly>Includes}}
7369 Template:SafeSubstTest
7371 {{<includeonly>safesubst:</includeonly>Includes}}
7375 bug 22297: safesubst: works during PST
7379 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7385 bug 22297: safesubst: works during normal parse
7394 subst: does not work during normal parse
7398 <p>{{subst:Includes}}
7403 pre-save transform: context links ("pipe trick")
7407 [[Article (context)|]]
7410 [[Bar:Article (context)|]]
7411 [[:Bar:Article (context)|]]
7413 [[|Article (context)]]
7417 [[Article (context)|Article]]
7418 [[Bar:Article|Article]]
7419 [[:Bar:Article|Article]]
7420 [[Bar:Article (context)|Article]]
7421 [[:Bar:Article (context)|Article]]
7423 [[Article (context)]]
7424 [[Bar:X (Y) Z|X (Y) Z]]
7425 [[:Bar:X (Y) Z|X (Y) Z]]
7429 pre-save transform: context links ("pipe trick") with interwiki prefix
7433 [[interwiki:Article|]]
7434 [[:interwiki:Article|]]
7435 [[interwiki:Bar:Article|]]
7436 [[:interwiki:Bar:Article|]]
7438 [[interwiki:Article|Article]]
7439 [[:interwiki:Article|Article]]
7440 [[interwiki:Bar:Article|Bar:Article]]
7441 [[:interwiki:Bar:Article|Bar:Article]]
7445 pre-save transform: context links ("pipe trick") with parens in title
7447 pst title=[[Somearticle (context)]]
7451 [[Article (context)|Article]]
7455 pre-save transform: context links ("pipe trick") with comma in title
7457 pst title=[[Someplace, Somewhere]]
7460 [[Otherplace, Elsewhere|]]
7461 [[Otherplace, Elsewhere, Anywhere|]]
7463 [[Otherplace, Somewhere|Otherplace]]
7464 [[Otherplace, Elsewhere|Otherplace]]
7465 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7469 pre-save transform: context links ("pipe trick") with parens and comma
7471 pst title=[[Someplace (IGNORED), Somewhere]]
7474 [[Otherplace (place), Elsewhere|]]
7476 [[Otherplace, Somewhere|Otherplace]]
7477 [[Otherplace (place), Elsewhere|Otherplace]]
7481 pre-save transform: context links ("pipe trick") with comma and parens
7483 pst title=[[Who, me? (context)]]
7486 [[Me, Myself, and I (1937 song)|]]
7488 [[Yes, you. (context)|Yes, you.]]
7489 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7493 pre-save transform: context links ("pipe trick") with namespace
7495 pst title=[[Ns:Somearticle]]
7499 [[Ns:Article|Article]]
7503 pre-save transform: context links ("pipe trick") with namespace and parens
7505 pst title=[[Ns:Somearticle (context)]]
7509 [[Ns:Article (context)|Article]]
7513 pre-save transform: context links ("pipe trick") with namespace and comma
7515 pst title=[[Ns:Somearticle, Context, Whatever]]
7519 [[Ns:Article, Context, Whatever|Article]]
7523 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7525 pst title=[[Ns:Somearticle, Context (context)]]
7529 [[Ns:Article (context)|Article]]
7533 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7535 pst title=[[Ns:Somearticle (IGNORED), Context]]
7539 [[Ns:Article, Context|Article]]
7543 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7547 [[Article(context)|]]
7548 [[Bar:Article(context)|]]
7549 [[:Bar:Article(context)|]]
7550 [[|Article(context)]]
7554 [[Article(context)|Article]]
7555 [[Bar:Article(context)|Article]]
7556 [[:Bar:Article(context)|Article]]
7557 [[Article(context)]]
7559 [[:Bar:X(Y)Z|X(Y)Z]]
7563 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7567 [[Article (context)|]]
7568 [[Bar:Article (context)|]]
7569 [[:Bar:Article (context)|]]
7570 [[|Article (context)]]
7574 [[Article (context)|Article]]
7575 [[Bar:Article (context)|Article]]
7576 [[:Bar:Article (context)|Article]]
7577 [[Article (context)]]
7578 [[Bar:X (Y) Z|X (Y) Z]]
7579 [[:Bar:X (Y) Z|X (Y) Z]]
7583 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7587 [[Article(context)|]]
7588 [[Bar:Article(context)|]]
7589 [[:Bar:Article(context)|]]
7590 [[|Article(context)]]
7594 [[Article(context)|Article]]
7595 [[Bar:Article(context)|Article]]
7596 [[:Bar:Article(context)|Article]]
7597 [[Article(context)]]
7599 [[:Bar:X(Y)Z|X(Y)Z]]
7603 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7607 [[Article (context), context|]]
7608 [[Article (context),context|]]
7609 [[Bar:Article (context), context|]]
7610 [[Bar:Article (context),context|]]
7611 [[:Bar:Article (context), context|]]
7612 [[:Bar:Article (context),context|]]
7614 [[Article (context), context|Article]]
7615 [[Article (context),context|Article]]
7616 [[Bar:Article (context), context|Article]]
7617 [[Bar:Article (context),context|Article]]
7618 [[:Bar:Article (context), context|Article]]
7619 [[:Bar:Article (context),context|Article]]
7623 pre-save transform: trim trailing empty lines
7627 Empty lines are trimmed
7633 Empty lines are trimmed
7637 pre-save transform: Signature expansion
7642 * <noinclude>~~~</noinclude>
7643 * <includeonly>~~~</includeonly>
7644 * <onlyinclude>~~~</onlyinclude>
7646 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7647 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7648 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7649 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7654 pre-save transform: Signature expansion in nowiki tags (bug 93)
7660 <nowiki>~~~~</nowiki>
7662 <includeonly><nowiki>~~~~</nowiki></includeonly>
7664 <noinclude><nowiki>~~~~</nowiki></noinclude>
7666 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7668 {{subst:Foo}} shall be converted to FOO
7670 As well as inside noinclude/onlyinclude
7671 <noinclude>{{subst:Foo}}</noinclude>
7672 <onlyinclude>{{subst:Foo}}</onlyinclude>
7674 But not inside includeonly
7675 <includeonly>{{subst:Foo}}</includeonly>
7679 <nowiki>~~~~</nowiki>
7681 <includeonly><nowiki>~~~~</nowiki></includeonly>
7683 <noinclude><nowiki>~~~~</nowiki></noinclude>
7685 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7687 FOO shall be converted to FOO
7689 As well as inside noinclude/onlyinclude
7690 <noinclude>FOO</noinclude>
7691 <onlyinclude>FOO</onlyinclude>
7693 But not inside includeonly
7694 <includeonly>{{subst:Foo}}</includeonly>
7698 ### Message transform tests
7701 message transform: magic variables
7711 message transform: should not transform wiki markup
7721 message transform: <noinclude> in transcluded template (bug 4926)
7731 message transform: <onlyinclude> in transcluded template (bug 4926)
7741 {{#special:}} page name, known
7745 {{#special:Recentchanges}}
7747 Special:RecentChanges
7751 {{#special:}} page name with subpage, known
7755 {{#special:Recentchanges/param}}
7757 Special:RecentChanges/param
7761 {{#special:}} page name, unknown
7765 {{#special:foobar nonexistent}}
7767 Special:Foobar nonexistent
7771 {{#speciale:}} page name, known
7775 {{#speciale:Recentchanges}}
7777 Special:RecentChanges
7781 {{#speciale:}} page name with subpage, known
7785 {{#speciale:Recentchanges/param}}
7787 Special:RecentChanges/param
7791 {{#speciale:}} page name, unknown
7795 {{#speciale:foobar nonexistent}}
7797 Special:Foobar_nonexistent
7806 [[Image:foobar.jpg]]
7808 <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>
7815 [[Image:foobar.jpg|right]]
7817 <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>
7822 Simple image (using File: namespace, now canonical)
7826 <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>
7833 [[Image:foobar.jpg|right|Caption text]]
7835 <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>
7840 Image with empty attribute
7842 [[Image:foobar.jpg|right||Caption text]]
7844 <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>
7849 Image with link tails
7851 123[[Image:foobar.jpg]]456
7852 123[[Image:foobar.jpg|right]]456
7853 123[[Image:foobar.jpg|thumb]]456
7855 <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
7857 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
7858 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
7863 Image with multiple captions -- only last one is accepted
7865 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7867 <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>
7872 Image with width attribute at different positions
7874 [[Image:foobar.jpg|200px|right|Caption]]
7875 [[Image:foobar.jpg|right|200px|Caption]]
7876 [[Image:foobar.jpg|right|Caption|200px]]
7878 <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>
7879 <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>
7880 <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>
7885 Image with link parameter, wiki target
7887 [[Image:foobar.jpg|link=Target page]]
7889 <p><a href="/wiki/Target_page" title="Target page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7894 Image with link parameter, URL target
7896 [[Image:foobar.jpg|link=http://example.com/]]
7898 <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>
7903 Image with link parameter, wgExternalLinkTarget
7905 [[Image:foobar.jpg|link=http://example.com/]]
7907 wgExternalLinkTarget='foobar'
7909 <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>
7914 Image with link parameter, wgNoFollowLinks set to false
7916 [[Image:foobar.jpg|link=http://example.com/]]
7918 wgNoFollowLinks=false
7920 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7925 Image with link parameter, wgNoFollowDomainExceptions
7927 [[Image:foobar.jpg|link=http://example.com/]]
7929 wgNoFollowDomainExceptions='example.com'
7931 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7936 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7938 [[Image:foobar.jpg|link=http://example.com/|Title]]
7940 wgExternalLinkTarget='foobar'
7942 <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>
7947 Image with empty link parameter
7949 [[Image:foobar.jpg|link=]]
7951 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7956 Image with link parameter (wiki target) and unnamed parameter
7958 [[Image:foobar.jpg|link=Target page|Title]]
7960 <p><a href="/wiki/Target_page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7965 Image with link parameter (URL target) and unnamed parameter
7967 [[Image:foobar.jpg|link=http://example.com/|Title]]
7969 <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>
7974 Thumbnail image with link parameter
7978 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7980 <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>
7985 Manually-specified thumbnail image
7989 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7991 <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>
7996 Manually-specified thumbnail image with explicit link to wiki page
8000 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8002 <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>
8007 Manually-specified thumbnail image with explicit link to url
8011 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8013 <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>
8018 Manually-specified thumbnail image with explicit no link
8022 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8024 <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>
8029 Manually-specified thumbnail image with explicit link and alt text
8033 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8035 <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>
8040 Image with frame and link
8042 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8044 <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>
8049 Image with frame and link and explicit alt
8051 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8053 <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>
8058 Image with wiki markup in implicit alt
8060 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8062 <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>
8067 Image with wiki markup in explicit alt
8069 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8071 <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>
8076 Link to image page- image page normally doesn't exists, hence edit link
8077 Add test with existing image page
8078 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8082 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8087 bug 18784 Link to non-existent image page with caption should use caption as link text
8089 [[:Image:test|caption]]
8091 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8096 Frameless image caption with a free URL
8098 [[Image:foobar.jpg|http://example.com]]
8100 <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>
8105 Thumbnail image caption with a free URL
8107 [[Image:foobar.jpg|thumb|http://example.com]]
8109 <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>
8114 Thumbnail image caption with a free URL and explicit alt
8116 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8118 <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>
8123 SVG thumbnails with no language set
8126 [[File:Foobar.svg|thumb|width=200]]
8128 <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>
8133 SVG thumbnails with language de
8136 [[File:Foobar.svg|thumb|width=200|lang=de]]
8138 <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>
8143 SVG thumbnails with invalid language code
8146 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8148 <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>
8153 BUG 1887: A ISBN with a thumbnail
8155 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8157 <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>
8162 BUG 1887: A RFC with a thumbnail
8164 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8166 <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>
8171 BUG 1887: A mailto link with a thumbnail
8173 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8175 <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>
8179 # Pending resolution to bug 368
8181 BUG 648: Frameless image caption with a link
8183 [[Image:foobar.jpg|text with a [[link]] in it]]
8185 <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>
8190 BUG 648: Frameless image caption with a link (suffix)
8192 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8194 <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>
8199 BUG 648: Frameless image caption with an interwiki link
8201 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8203 <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>
8208 BUG 648: Frameless image caption with a piped interwiki link
8210 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8212 <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>
8217 Escape HTML special chars in image alt text
8219 [[Image:foobar.jpg|& < > "]]
8221 <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>
8226 BUG 499: Alt text should have Ӓ, not &1234;
8228 [[Image:foobar.jpg|♀]]
8230 <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>
8235 Broken image caption with link
8237 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8239 <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.
8244 Image caption containing another image
8246 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8248 <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>
8253 Image caption containing a newline
8255 [[Image:Foobar.jpg|This
8258 <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>
8263 Parsoid: Image caption containing leading space
8264 (The leading space should not trigger nowiki escaping in wt2wt mode)
8266 [[Image:Foobar.jpg|thumb| bar]]
8268 <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>
8273 Bug 3090: External links other than http: in image captions
8275 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8277 <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>
8284 [[Image:foobar.jpg|a|class=b]]
8286 <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>
8291 Localized image handling (1).
8295 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8297 <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>
8302 Localized image handling (2).
8306 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8308 <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>
8313 "border", "frameless" and "class" attributes on an image.
8315 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8317 <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>
8324 #REDIRECT [[File:Barfoo.jpg]]
8330 [[Image:Barfoo.jpg]]
8332 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8337 Missing image with uploads disabled
8341 [[Image:Foobaz.jpg]]
8343 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8347 # Parsoid-specific testing for images
8348 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8349 # Currently imperfect due to a flaw in the Parsoid testrunner
8353 Parsoid-specific image handling - simple image
8357 [[Image:Foobar.jpg]]
8360 <span class="mw-default-size" typeof="mw:Image">
8361 <a href="File:Foobar.jpg">
8362 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8369 Parsoid-specific image handling - simple image without link
8373 [[Image:Foobar.jpg|link=]]
8376 <span class="mw-default-size" typeof="mw:Image">
8378 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8385 Parsoid-specific image handling - simple image with specific link
8389 [[Image:Foobar.jpg|link=Main Page]]
8392 <span class="mw-default-size" typeof="mw:Image">
8393 <a href="Main_Page">
8394 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8401 Parsoid-specific image handling - simple image with size and middle alignment
8405 [[Image:Foobar.jpg|50px|middle]]
8408 <span class="mw-valign-middle" typeof="mw:Image">
8409 <a href="File:Foobar.jpg">
8410 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8417 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8421 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8424 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8425 <a href="File:Foobar.jpg">
8426 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8433 Parsoid-specific image handling - simple image with border and size spec
8437 [[Image:Foobar.jpg|50px|border|caption]]
8440 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8441 <a href="File:Foobar.jpg">
8442 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8449 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8453 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8455 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8456 <a href="File:Foobar.jpg">
8457 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8459 <figcaption>caption content</figcaption>
8464 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8468 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8470 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8471 <a href="File:Foobar.jpg">
8472 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8474 <figcaption>caption</figcaption>
8479 Parsoid-specific image handling - framed image with specific size and caption
8483 [[Image:Foobar.jpg|500x50px|frame|caption]]
8485 <figure typeof="mw:Image/Frame">
8486 <a href="File:Foobar.jpg">
8487 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8489 <figcaption>caption</figcaption>
8494 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8498 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8500 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8501 <a href="File:Foobar.jpg">
8502 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8504 <figcaption>caption</figcaption>
8509 Parsoid-specific image handling - frameless image with specific size, border, and caption
8513 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8516 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8517 <a href="File:Foobar.jpg">
8518 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8524 #Parsoid-specific image handling - simple image with a formatted caption
8528 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8531 #<span typeof="mw:Image">
8532 #<a class="mw-default-size" href="Image:Foobar.jpg">
8533 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8544 Subpage test/subpage
8552 subpage title=[[Subpage test]]
8556 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8561 Subpage noslash link
8563 subpage title=[[Subpage test]]
8567 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8571 # TODO: make this PHP-parser compatible!
8573 Relative subpage noslash link
8575 parsoid=wt2wt,wt2html,html2html
8576 subpage title=[[Subpage test/1/2/3/4]]
8582 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8583 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8586 # TODO: make this PHP-parser compatible!
8588 Parsoid: dot-slash prefixed wikilinks
8590 parsoid=wt2wt,wt2html,html2html
8598 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8599 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8600 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8608 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8613 BUG 561: {{/Subpage}}
8615 subpage title=[[Page]]
8619 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8627 Category:MediaWiki User's Guide
8635 [[:Category:MediaWiki User's Guide]]
8637 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8646 [[Category:MediaWiki User's Guide]]
8648 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8652 PAGESINCATEGORY invalid title fatal (r33546 fix)
8654 {{PAGESINCATEGORY:<bogus>}}
8661 Category with different sort key
8665 [[Category:MediaWiki User's Guide|Foo]]
8667 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8671 Category with identical sort key
8675 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8677 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8681 Category with empty sort key
8686 [[Category:MediaWiki User's Guide|]]
8688 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8692 Category with empty sort key and parentheses
8697 [[Category:Foo (bar)|]]
8699 [[Category:Foo (bar)|Foo]]
8703 Category with link tail
8708 123[[Category:Foo]]456
8710 123[[Category:Foo]]456
8714 Category with template
8719 [[Category:{{echo|Foo}}]]
8721 [[Category:{{echo|Foo}}]]
8725 Category with template in sort key
8730 [[Category:Foo|{{echo|Bar}}]]
8732 [[Category:Foo|{{echo|Bar}}]]
8736 Category with template in sort key and title
8741 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8743 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8747 Category / paragraph interactions
8749 Foo [[Category:Baz]] Bar
8751 Foo [[Category:Baz]]
8759 [[Category:Baz]] Bar
8772 {{echo|[[Category:Baz]]}}
8787 Parsoid: Serialize link to category page with colon escape
8793 [[:Category:Foo|Bar]]
8796 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8797 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8802 Parsoid: Link prefix/suffixes aren't applied to category links
8804 parsoid=wt2html,wt2wt,html2html
8809 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
8813 Parsoid: Serialize link to file page with colon escape
8819 [[:File:Foo.png|Bar]]
8822 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8823 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8828 Parsoid: Serialize a genuine category link without colon escape
8833 [[Category:Foo|Bar]]
8835 <link rel="mw:WikiLink/Category" href="Category:Foo">
8836 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8840 ### Inter-language links
8843 Inter-language links
8849 [[zh:食品]]
8851 es:Alimento fr:Nourriture zh:食品
8855 Duplicate interlanguage links (bug 24502)
8871 Basic section headings
8878 ===Smaller headline===
8881 <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>
8884 <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>
8887 <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>
8893 Section headings with TOC
8896 === Subheadline 1 ===
8897 ===== Skipping a level =====
8898 ====== Skipping a level ======
8902 ===Another headline===
8904 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8906 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8908 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8910 <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>
8912 <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>
8919 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8921 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8926 <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>
8927 <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>
8928 <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>
8929 <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>
8930 <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>
8933 <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>
8937 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8939 Handling of sections up to level 6 and beyond
8942 == Level 2 Heading==
8943 === Level 3 Heading===
8944 ==== Level 4 Heading====
8945 ===== Level 5 Heading=====
8946 ====== Level 6 Heading======
8947 ======= Level 7 Heading=======
8948 ======== Level 8 Heading========
8949 ========= Level 9 Heading=========
8950 ========== Level 10 Heading==========
8952 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8954 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8956 <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>
8958 <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>
8960 <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>
8962 <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>
8964 <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>
8965 <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>
8966 <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>
8967 <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>
8968 <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>
8981 <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>
8982 <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>
8983 <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>
8984 <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>
8985 <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>
8986 <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>
8987 <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>
8988 <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>
8989 <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>
8990 <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>
8995 TOC regression (bug 9764)
8999 ==== title 1.1.1 ====
9004 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9006 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9008 <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>
9010 <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>
9013 <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>
9016 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9018 <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>
9023 <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>
9024 <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>
9025 <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>
9026 <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>
9027 <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>
9028 <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>
9033 TOC with wgMaxTocLevel=3 (bug 6204)
9039 ==== title 1.1.1 ====
9044 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9046 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9048 <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>
9049 <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>
9052 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9054 <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>
9059 <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>
9060 <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>
9061 <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>
9062 <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>
9063 <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>
9064 <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>
9069 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9075 ====Section 1.1.1====
9076 ====Section 1.1.1.1====
9079 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9081 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9083 <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>
9086 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9089 <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>
9090 <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>
9091 <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>
9092 <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>
9093 <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>
9099 Resolving duplicate section names
9104 <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>
9105 <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>
9110 Resolving duplicate section names with differing case (bug 10721)
9115 <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>
9116 <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>
9128 Template with sections, __NOTOC__
9135 <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>
9136 <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>
9137 <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>
9138 <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>
9143 __NOEDITSECTION__ keyword
9149 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9150 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9155 Link inside a section heading
9157 ==Section with a [[Main Page|link]] in it==
9159 <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>
9164 TOC regression (bug 12077)
9171 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9173 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9175 <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>
9178 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9181 <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>
9182 <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>
9183 <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>
9188 BUG 1219 URL next to image (good)
9190 http://example.com [[Image:foobar.jpg]]
9192 <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>
9197 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9200 The line above must have a trailing space!
9203 But just in case it doesn't...
9205 <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>
9206 <p>The line above must have a trailing space!
9208 <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>
9209 <p>But just in case it doesn't...
9214 Header with special characters (bug 25462)
9216 The tooltips shall not show entities to the user (ie. be double escaped)
9233 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9235 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9237 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9238 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9239 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9240 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9241 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9244 <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>
9247 <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>
9250 <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>
9253 <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>
9256 <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>
9262 Headers with excess '=' characters
9263 (Are similar tests necessary beyond the 1st level?)
9267 =''italic'' heading==
9268 ==''italic'' heading=
9270 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9272 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9273 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9274 <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>
9275 <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>
9278 <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>
9279 <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>
9280 <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>
9281 <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>
9286 HTML headers vs TOC (bug 23393)
9287 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9299 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9301 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9303 <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>
9304 <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>
9307 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9309 <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>
9310 <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>
9315 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9316 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9317 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9318 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9319 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9320 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9325 BUG 1219 URL next to image (broken)
9327 http://example.com[[Image:foobar.jpg]]
9329 <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>
9334 Bug 1186 news: in the middle of text
9336 http://en.wikinews.org/wiki/Wikinews:Workplace
9338 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9344 Namespaced link must have a title
9353 Namespaced link must have a title (bad fragment version)
9355 [[Project:#fragment]]
9357 <p>[[Project:#fragment]]
9363 ### HTML tags and HTML attributes
9367 div with no attributes
9369 <div>HTML rocks</div>
9371 <div>HTML rocks</div>
9376 div with double-quoted attribute
9378 <div id="rock">HTML rocks</div>
9380 <div id="rock">HTML rocks</div>
9385 div with single-quoted attribute
9387 <div id='rock'>HTML rocks</div>
9389 <div id="rock">HTML rocks</div>
9394 div with unquoted attribute
9396 <div id=rock>HTML rocks</div>
9398 <div id="rock">HTML rocks</div>
9403 div with illegal double attributes
9405 <div id="a" id="b">HTML rocks</div>
9407 <div id="b">HTML rocks</div>
9411 # FIXME: produce empty string instead of "class" in the PHP parser, following
9414 div with empty attribute value, space before equals
9418 <div class =>HTML rocks</div>
9420 <div class="">HTML rocks</div>
9424 # The PHP parser escapes the opening brace to { for some reason, so
9425 # disabled this test for it.
9427 div with braces in attribute value
9431 <div title="{}">Foo</div>
9433 <div title="{}">Foo</div>
9436 # This it very inconsistent in the PHP parser: it returns
9437 # class="class" if there is a space between the name and the equal sign (see
9438 # 'div with empty attribute value, space before equals'), but strips the
9439 # attribute completely if the space is missing. We hope that not much content
9440 # depends on this, so are implementing the behavior below in Parsoid for
9441 # consistencies' sake. Disabled for the PHP parser.
9442 # FIXME: fix this behavior in the PHP parser?
9444 div with empty attribute value, no space before equals
9448 <div class=>HTML rocks</div>
9450 <div class="">HTML rocks</div>
9455 HTML multiple attributes correction
9457 <p class="error" class="awesome">Awesome!</p>
9459 <p class="awesome">Awesome!</p>
9464 Table multiple attributes correction
9467 !+ class="error" class="awesome"| status
9472 <th class="awesome"> status
9480 <DIV ID="x">HTML ROCKS</DIV>
9482 <div id="x">HTML ROCKS</div>
9487 Non-ASCII pseudo-tags are rendered as text
9496 Pseudo-tag with URL 'name' renders as url link
9498 <http://example.com/>
9500 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9505 text with amp in the middle of nowhere
9509 <p>Remember AT&T?
9514 text with character entity: eacute
9516 I always thought é was a cute letter.
9518 <p>I always thought é was a cute letter.
9523 text with entity-escaped character entity-like string: eacute
9525 I always thought &eacute; was a cute letter.
9527 <p>I always thought &eacute; was a cute letter.
9532 text with undefined character entity: xacute
9534 I always thought &xacute; was a cute letter.
9536 <p>I always thought &xacute; was a cute letter.
9542 ### Nesting tests (see bug 41545, 50604, 51081)
9545 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
9546 # Note that html2wt is considerably more difficult if we use <b> in
9547 # the test case, instead of <big>
9549 Ensure that HTML adoption agency algorithm is properly implemented.
9551 <big>X<big>Y</big>Z</big>
9553 <p><big>X<big>Y</big>Z</big>
9557 # This was bug 41545 in the PHP parser.
9561 <kbd>X<kbd>Y</kbd>Z</kbd>
9563 <p><kbd>X<kbd>Y</kbd>Z</kbd>
9567 # The following cases were bug 51081 in the PHP parser.
9568 # Note that there are some other nestable tags (b, i, etc) which are
9569 # not covered; see bug 51081 for discussion.
9573 <em>X<em>Y</em>Z</em>
9575 <p><em>X<em>Y</em>Z</em>
9582 <strong>X<strong>Y</strong>Z</strong>
9584 <p><strong>X<strong>Y</strong>Z</strong>
9593 <p><q>X<q>Y</q>Z</q>
9600 <ruby>X<ruby>Y</ruby>Z</ruby>
9602 <p><ruby>X<ruby>Y</ruby>Z</ruby>
9609 <bdo>X<bdo>Y</bdo>Z</bdo>
9611 <p><bdo>X<bdo>Y</bdo>Z</bdo>
9623 [[Media:Foobar.jpg]]
9625 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9630 Media link with text
9632 [[Media:Foobar.jpg|A neat file to look at]]
9634 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9638 # FIXME: this is still bad HTML tag nesting
9640 Media link with nasty text
9641 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9643 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9645 <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>
9650 Media link to nonexistent file (bug 1702)
9652 [[Media:No such.jpg]]
9654 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9659 Image link to nonexistent file (bug 1850 - good)
9661 [[Image:No such.jpg]]
9663 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9668 :Image link to nonexistent file (bug 1850 - bad)
9670 [[:Image:No such.jpg]]
9672 <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>
9679 Character reference normalization in link text (bug 1938)
9681 [[Main Page|this&that]]
9683 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9690 Test for unicode normalization
9692 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9696 (bug 19451) Links should refer to the normalized form.
9704 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9705 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9706 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9707 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9708 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9713 Empty attribute crash test (bug 2067)
9715 <font color="">foo</font>
9717 <p><font color="">foo</font>
9722 Empty attribute crash test single-quotes (bug 2067)
9724 <font color=''>foo</font>
9726 <p><font color="">foo</font>
9731 Attribute test: equals, then nothing
9733 <font color=>foo</font>
9740 Attribute test: unquoted value
9742 <font color=x>foo</font>
9744 <p><font color="x">foo</font>
9749 Attribute test: unquoted but illegal value (hash)
9751 <font color=#x>foo</font>
9753 <p><font color="#x">foo</font>
9758 Attribute test: no value
9760 <font color>foo</font>
9762 <p><font color="color">foo</font>
9767 Bug 2095: link with three closing brackets
9771 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9776 Bug 2095: link with pipe and three closing brackets
9780 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9785 Bug 2095: link with pipe and three closing brackets, version 2
9787 [[Main Page|[http://example.com/]]]
9789 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9799 Template:Dangerous attribute
9801 " onmouseover="alert(document.cookie)
9805 Template:Dangerous style attribute
9807 border-size: expression(alert(document.cookie))
9813 <div style="float: right; {{{1}}}">Magic div</div>
9817 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9819 <div title="{{test}}"></div>
9821 <div title="This is a test template"></div>
9826 Bug 2304: HTML attribute safety (dangerous template; 2309)
9828 <div title="{{dangerous attribute}}"></div>
9830 <div title=""></div>
9835 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9837 <div style="{{dangerous style attribute}}"></div>
9839 <div style="/* insecure input */"></div>
9844 Bug 2304: HTML attribute safety (safe parameter; 2309)
9846 {{div style|width: 200px}}
9848 <div style="float: right; width: 200px">Magic div</div>
9853 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9855 {{div style|width: expression(alert(document.cookie))}}
9857 <div style="/* insecure input */">Magic div</div>
9862 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9864 {{div style|"><script>alert(document.cookie)</script>}}
9866 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9871 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9873 {{div style|" ><script>alert(document.cookie)</script>}}
9875 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9880 Bug 2304: HTML attribute safety (link)
9882 <div title="[[Main Page]]"></div>
9884 <div title="[[Main Page]]"></div>
9889 Bug 2304: HTML attribute safety (italics)
9891 <div title="''foobar''"></div>
9893 <div title="''foobar''"></div>
9898 Bug 2304: HTML attribute safety (bold)
9900 <div title="'''foobar'''"></div>
9902 <div title="'''foobar'''"></div>
9908 Bug 2304: HTML attribute safety (ISBN)
9910 <div title="ISBN 1234567890"></div>
9912 <div title="ISBN 1234567890"></div>
9917 Bug 2304: HTML attribute safety (RFC)
9919 <div title="RFC 1234"></div>
9921 <div title="RFC 1234"></div>
9926 Bug 2304: HTML attribute safety (PMID)
9928 <div title="PMID 1234567890"></div>
9930 <div title="PMID 1234567890"></div>
9935 Bug 2304: HTML attribute safety (web link)
9937 <div title="http://example.com/"></div>
9939 <div title="http://example.com/"></div>
9944 Bug 2304: HTML attribute safety (named web link)
9946 <div title="[http://example.com/ link]"></div>
9948 <div title="[http://example.com/ link]"></div>
9953 Bug 3244: HTML attribute safety (extension; safe)
9955 <div style="<nowiki>background:blue</nowiki>"></div>
9957 <div style="background:blue"></div>
9962 Bug 3244: HTML attribute safety (extension; unsafe)
9964 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9966 <div style="/* insecure input */"></div>
9970 # More MSIE fun discovered by Tom Gilder
9973 MSIE CSS safety test: spurious slash
9975 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9977 <div style="/* insecure input */">evil</div>
9982 MSIE CSS safety test: hex code
9984 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9986 <div style="/* insecure input */">evil</div>
9991 MSIE CSS safety test: comment in url
9993 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9995 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10000 MSIE CSS safety test: comment in expression
10002 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10004 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10010 Table attribute legitimate extension
10013 !+ style="<nowiki>color:blue</nowiki>"| status
10018 <th style="color:blue"> status
10024 Table attribute safety
10027 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10032 <th style="/* insecure input */"> status
10038 CSS line continuation 1
10040 <div style="background-image: u\ rl(test.jpg);"></div>
10042 <div style="/* insecure input */"></div>
10047 CSS line continuation 2
10049 <div style="background-image: u\ rl(test.jpg); "></div>
10051 <div style="/* insecure input */"></div>
10062 Expansion of multi-line templates in attribute values (bug 6255)
10064 <div style="background: {{identity|#00FF00}}">-</div>
10066 <div style="background: #00FF00">-</div>
10072 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10074 <div style="background:
10077 <div style="background: #00FF00">-</div>
10082 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10084 <div style="background: #00FF00">-</div>
10086 <div style="background: #00FF00">-</div>
10091 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
10094 Parser hook: empty input
10107 Parser hook: empty input using terminated empty elements
10120 Parser hook: empty input using terminated empty elements (space before)
10133 Parser hook: basic input
10147 Parser hook: case insensitive
10161 Parser hook: case insensitive, redux
10174 Parser hook: nested tags
10178 <tag><tag></tag></tag>
10189 Parser hook: basic arguments
10191 <tag width=200 height = "100" depth = '50' square></tag>
10199 'square' => 'square',
10206 Parser hook: argument containing a forward slash (bug 5344)
10208 <tag filename='/tmp/bla'></tag>
10213 'filename' => '/tmp/bla',
10220 Parser hook: empty input using terminated empty elements (bug 2374)
10233 # </tag> should be output literally since there is no matching tag that begins it
10235 Parser hook: basic arguments using terminated empty elements (bug 2374)
10237 <tag width=200 height = "100" depth = '50' square/>
10247 'square' => 'square',
10256 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10260 Parser hook: static parser hook not inside a comment
10262 <statictag>hello, world</statictag>
10263 <statictag action=flush/>
10271 Parser hook: static parser hook inside a comment
10273 <!-- <statictag>hello, world</statictag> -->
10274 <statictag action=flush/>
10280 # Nested template calls; this case was broken by Parser.php rev 1.506,
10284 Template:One-parameter
10286 (My parameter is: {{{1}}})
10290 Template:Map-one-parameter
10292 {{{{{1}}}|{{{2}}}}}
10296 Nested template calls
10298 {{Map-one-parameter|One-parameter|param}}
10300 <p>(My parameter is: param)
10309 Sanitizer: Closing of open tags
10311 <s></s><table></table>
10313 <s></s><table></table>
10318 Sanitizer: Closing of open but not closed tags
10327 Sanitizer: Closing of closed but not open tags
10336 Sanitizer: Closing of closed but not open table tags
10338 Table not started</td></tr></table>
10340 <p>Table not started</td></tr></table>
10345 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10347 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10349 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10354 Sanitizer: Validating the contents of the id attribute (bug 4515)
10360 Something, but definitely not <br id="9" />...
10364 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10368 <br id="foo" /><br id="foo" />
10370 Something need to be done. foo-2 ?
10374 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10377 <meta itemprop="hello" content="world">
10378 <meta http-equiv="refresh" content="5">
10379 <meta itemprop="hello" http-equiv="refresh" content="5">
10380 <link itemprop="hello" href="{{SERVER}}">
10381 <link rel="stylesheet" href="{{SERVER}}">
10382 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10385 <div itemscope="itemscope">
10386 <p> <meta itemprop="hello" content="world" />
10387 <meta http-equiv="refresh" content="5">
10388 <meta itemprop="hello" content="5" />
10390 <link itemprop="hello" href="http://example.org" />
10391 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10392 <link itemprop="hello" href="http://example.org" />
10398 Language converter: output gets cut off unexpectedly (bug 5757)
10402 this bit is safe: }-
10404 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10406 then we get cut off here: }-
10408 all additional text is vanished
10410 <p>this bit is safe: }-
10411 </p><p>but if we add a conversion instance: xxx
10412 </p><p>then we get cut off here: }-
10413 </p><p>all additional text is vanished
10418 Self closed html pairs (bug 5487)
10421 <center><font id="bug" />Centered text</center>
10422 <div><font id="bug2" />In div text</div>
10424 <center><font id="bug" />Centered text</center>
10425 <div><font id="bug2" />In div text</div>
10434 Punctuation: nbsp before exclamation
10438 <p>C'est grave !
10443 Punctuation: CSS !important (bug 11874)
10445 <div style="width:50% !important">important</div>
10447 <div style="width:50% !important">important</div>
10452 Punctuation: CSS ! important (bug 11874; with space after)
10454 <div style="width:50% ! important">important</div>
10456 <div style="width:50% ! important">important</div>
10462 HTML bullet list, closed tags (bug 5497)
10477 HTML bullet list, unclosed tags (bug 5497)
10494 HTML ordered list, closed tags (bug 5497)
10509 HTML ordered list, unclosed tags (bug 5497)
10526 HTML nested bullet list, closed tags (bug 5497)
10551 HTML nested bullet list, open tags (bug 5497)
10576 HTML nested ordered list, closed tags (bug 5497)
10601 HTML nested ordered list, open tags (bug 5497)
10626 HTML ordered list item with parameters oddity
10628 <ol><li id="fragment">One</li></ol>
10630 <ol><li id="fragment">One</li></ol>
10635 bug 5918: autonumbering
10637 [http://first/] [http://second] [ftp://ftp]
10641 [mailto:enclosed@mail.tld With target]
10643 [mailto:enclosed@mail.tld]
10645 mailto:inline@mail.tld
10647 <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>
10648 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10649 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10650 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10651 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10657 # Security and HTML correctness
10658 # From Nick Jenkins' fuzz testing
10662 Fuzz testing: Parser13
10677 Fuzz testing: Parser14
10682 <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>
10683 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10685 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10692 Fuzz testing: Parser14-table
10697 <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>
10698 <table style="__TOC__">
10704 # Known to produce bogus xml (extra </td>)
10706 Fuzz testing: Parser16
10726 Fuzz testing: Parser21
10729 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10734 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10744 Fuzz testing: Parser22
10746 http://===r:::https://b
10750 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10758 # Known to produce bad XML for now
10760 Fuzz testing: Parser24
10767 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10768 <br style="onmouseover='alert(document.cookie);' " />
10770 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10775 <u class="|">}}}} >
10776 <br style="onmouseover='alert(document.cookie);'" />
10778 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10787 # Note: the current result listed for this is not what the original one was,
10788 # but the original bug was JavaScript injection, which is fixed in any case.
10789 # It's not clear that the original result listed was any more correct than the
10790 # current one. Original result:
10793 # <li class="||">
10794 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10796 Fuzz testing: Parser25 (bug 6055)
10802 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10804 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10809 Fuzz testing: URL adjacent extension (with space, clean)
10812 http://example.com <nowiki>junk</nowiki>
10814 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10819 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10822 http://example.com<nowiki>junk</nowiki>
10824 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10829 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10832 http://example.com<pre>junk</pre>
10834 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10839 Fuzz testing: image with bogus manual thumbnail
10841 [[Image:foobar.jpg|thumbnail= ]]
10843 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10848 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10850 <pre dir=" "></pre>
10852 <pre dir=" "></pre>
10857 Parsing optional HTML elements (Bug 6171)
10862 <td> Some tabular data</td>
10863 <td> More tabular data ...
10864 <td> And yet som tabular data</td>
10870 <td> Some tabular data</td>
10871 <td> More tabular data ...
10872 </td><td> And yet som tabular data</td>
10879 Correct handling of <td>, <tr> (Bug 6171)
10884 <td> Some tabular data</td>
10885 <td> More tabular data ...</td>
10886 <td> And yet som tabular data</td>
10892 <td> Some tabular data</td>
10893 <td> More tabular data ...</td>
10894 <td> And yet som tabular data</td>
10902 Parsing crashing regression (fr:JavaScript)
10906 <p></body></x>
10911 Inline wiki vs wiki block nesting
10917 <p><b>Bold paragraph</b>
10918 </p><p>New wiki paragraph
10923 Inline HTML vs wiki block nesting
10931 <p><b>Bold paragraph</b>
10932 </p><p>New wiki paragraph
10936 # Original result was this:
10937 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10939 # While that might be marginally more intuitive, maybe, the six-apostrophe
10940 # construct is clearly pathological and the result stated here (which is what
10941 # the parser actually does) is about as reasonable as anything.
10943 Mixing markup for italics and bold
10946 '''bold''''''bold''bolditalics'''''
10948 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10956 Article for special page transclusion test
10960 Special page transclusion
10963 {{Special:Prefixindex/Xyzzyx}}
10965 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10970 Special page transclusion twice (bug 5021)
10973 {{Special:Prefixindex/Xyzzyx}}
10974 {{Special:Prefixindex/Xyzzyx}}
10976 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10977 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10982 Transclusion of default MediaWiki message
10984 {{MediaWiki:Mainpage}}
10991 Transclusion of nonexistent MediaWiki message
10993 {{MediaWiki:Mainpagexxx}}
10995 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11000 Transclusion of MediaWiki message with underscore
11002 {{MediaWiki:history_short}}
11009 Transclusion of MediaWiki message with space
11011 {{MediaWiki:history short}}
11018 Invalid header with following text
11028 Section extraction test (section 0)
11048 Section extraction test (section 1)
11070 Section extraction test (section 2)
11091 Section extraction test (section 3)
11111 Section extraction test (section 4)
11135 Section extraction test (section 5)
11155 Section extraction test (section 6)
11176 Section extraction test (section 7)
11196 Section extraction test (section 8)
11216 Section extraction test (section 9)
11237 Section extraction test (section 10)
11257 Section extraction test (nonexistent section 11)
11276 Section extraction test with bogus heading (section 1)
11281 ==bogus== not a legal section
11285 ==bogus== not a legal section
11289 Section extraction test with bogus heading (section 2)
11294 ==bogus== not a legal section
11301 Section extraction test with comment after heading (section 1)
11313 Section extraction test with comment after heading (section 2)
11325 Section extraction test with bogus <nowiki> heading (section 1)
11330 ==bogus== <nowiki>not a legal section</nowiki>
11334 ==bogus== <nowiki>not a legal section</nowiki>
11338 Section extraction test with bogus <nowiki> heading (section 2)
11343 ==bogus== <nowiki>not a legal section</nowiki>
11350 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11351 # instead of respecting commented sections
11353 Section extraction prefixed by comment (section 1)
11364 Section extraction prefixed by comment (section 2)
11375 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11376 # instead of respecting HTML-style headings
11378 Section extraction, mixed wiki and html (section 1)
11394 Section extraction, mixed wiki and html (section 2)
11410 # Formerly testing for bug 3342
11412 Section extraction, heading surrounded by <noinclude>
11416 <noinclude>==unmarked==</noinclude>
11422 # Test behavior of bug 19910
11424 Sectiion with all-equals
11429 The line above must have a trailing space
11432 But just in case it doesn't...
11436 But just in case it doesn't...
11440 Section replacement test (section 0)
11471 Section replacement test (section 1)
11500 Section replacement test (section 2)
11530 Section replacement test (section 3)
11561 Section replacement test (section 4)
11588 Section replacement test (section 5)
11619 Section replacement test (section 6)
11649 Section replacement test (section 7)
11680 Section replacement test (section 8)
11711 Section replacement test (section 9)
11740 Section replacement test (section 10)
11770 Section replacement test with initial whitespace (bug 13728)
11774 Preformatted initial line
11778 Preformatted initial line
11785 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11797 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11810 Section extraction, <pre> around bogus header (bug 10309)
11827 Section replacement, <pre> around bogus header (bug 10309)
11829 noxml replace=2,"xxx"
11850 Handling of 
 in URLs
11854 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11861 5 quotes, code coverage +1 line (php)
11868 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11870 5 quotes, code coverage +1 line (parsoid)
11876 <p><i><b></b></i></p>
11880 Special:Search page linking.
11884 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11896 * {{ROOTPAGENAMEE}}
11898 * {{BASEPAGENAMEE}}
11900 * {{TALKPAGENAMEE}}
11901 * {{SUBJECTPAGENAME}}
11902 * {{SUBJECTPAGENAMEE}}
11908 * {{SUBJECTSPACEE}}
11909 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11911 <ul><li> Parser test
11912 </li><li> Parser test
11913 </li><li> Parser test
11914 </li><li> Parser_test
11915 </li><li> Parser test
11916 </li><li> Parser_test
11917 </li><li> Parser test
11918 </li><li> Parser_test
11919 </li><li> Talk:Parser test
11920 </li><li> Talk:Parser_test
11921 </li><li> Parser test
11922 </li><li> Parser_test
11929 </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>
11933 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11943 image4 |300px| centre
11944 image5.svg| http://///////
11949 <ul class="gallery">
11950 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11951 <div style="height: 150px;">Image1.png</div>
11952 <div class="gallerytext">
11955 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11956 <div style="height: 150px;">Image2.gif</div>
11957 <div class="gallerytext">
11962 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11963 <div style="height: 150px;">Image3</div>
11964 <div class="gallerytext">
11967 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11968 <div style="height: 150px;">Image4</div>
11969 <div class="gallerytext">
11974 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11975 <div style="height: 150px;">Image5.svg</div>
11976 <div class="gallerytext">
11977 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11981 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11982 <div style="height: 150px;">* image6</div>
11983 <div class="gallerytext">
11991 Gallery (with options)
11993 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11994 File:Nonexistant.jpg|caption
11995 File:Nonexistant.jpg
11996 image:foobar.jpg|some '''caption''' [[Main Page]]
11998 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12001 <ul class="gallery" style="max-width: 226px;_width: 226px;">
12002 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12003 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12004 <div style="height: 70px;">Nonexistant.jpg</div>
12005 <div class="gallerytext">
12010 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12011 <div style="height: 70px;">Nonexistant.jpg</div>
12012 <div class="gallerytext">
12015 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12016 <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>
12017 <div class="gallerytext">
12018 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12022 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12023 <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>
12024 <div class="gallerytext">
12027 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12028 <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>
12029 <div class="gallerytext">
12039 Gallery with wikitext inside caption
12042 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12043 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12046 <ul class="gallery">
12047 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12048 <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>
12049 <div class="gallerytext">
12050 <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>
12054 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12055 <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>
12056 <div class="gallerytext">
12057 <p>This is a test template
12066 gallery (with showfilename option)
12068 <gallery showfilename>
12069 File:Nonexistant.jpg|caption
12070 File:Nonexistant.jpg
12071 image:foobar.jpg|some '''caption''' [[Main Page]]
12075 <ul class="gallery">
12076 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12077 <div style="height: 150px;">Nonexistant.jpg</div>
12078 <div class="gallerytext">
12079 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12084 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12085 <div style="height: 150px;">Nonexistant.jpg</div>
12086 <div class="gallerytext">
12087 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12091 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12092 <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>
12093 <div class="gallerytext">
12094 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12095 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12099 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12100 <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>
12101 <div class="gallerytext">
12102 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12111 Gallery (with namespace-less filenames)
12114 File:Nonexistant.jpg
12120 <ul class="gallery">
12121 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12122 <div style="height: 150px;">Nonexistant.jpg</div>
12123 <div class="gallerytext">
12126 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12127 <div style="height: 150px;">Nonexistant.jpg</div>
12128 <div class="gallerytext">
12131 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12132 <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>
12133 <div class="gallerytext">
12136 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12137 <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>
12138 <div class="gallerytext">
12146 HTML Hex character encoding (spells the word "JavaScript")
12148 JavaScript
12150 <p>JavaScript
12155 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12159 <p>&#xsee;&#XSEE;
12164 HTML Hex character encoding mixed case
12173 __FORCETOC__ override
12185 ISBN 978-0-1234-56 789
12187 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12192 ISBN followed by 5 spaces
12203 ISBN ISBN 1234567890
12205 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12210 Bug 22905: <abbr> followed by ISBN followed by </a>
12212 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12214 <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>
12223 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12228 Double RFC with a wiki link
12232 <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>
12241 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12246 Centre-aligned image
12248 [[Image:foobar.jpg|centre]]
12250 <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>
12257 [[Image:foobar.jpg|none]]
12259 <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>
12264 Width + Height sized image (using px) (height is ignored)
12266 [[Image:foobar.jpg|640x480px]]
12268 <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>
12273 Width-sized image (using px, no following whitespace)
12275 [[Image:foobar.jpg|640px]]
12277 <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>
12282 Width-sized image (using px, with following whitespace - test regression from r39467)
12284 [[Image:foobar.jpg|640px ]]
12286 <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>
12291 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12293 [[Image:foobar.jpg| 640px]]
12295 <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>
12300 Another italics / bold test
12308 # Note the results may be incorrect, as parserTest output included this:
12309 # XML error: Mismatched tag at byte 6120:
12310 # ...<dd> </dt></dl> </dd...
12318 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12329 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12331 Images with the "|" character in the comment
12333 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12335 <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>
12340 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12342 <html><script>alert(1);</script></html>
12344 <p><html><script>alert(1);</script></html>
12349 HTML with raw HTML ($wgRawHtml==true)
12353 <html><script>alert(1);</script></html>
12355 <p><script>alert(1);</script>
12360 Parents of subpages, one level up
12362 subpage title=[[Subpage test/L1/L2/L3]]
12366 <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>
12372 Parents of subpages, one level up, not named
12374 subpage title=[[Subpage test/L1/L2/L3]]
12378 <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>
12385 Parents of subpages, two levels up
12387 subpage title=[[Subpage test/L1/L2/L3]]
12393 <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
12394 </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>
12399 Parents of subpages, two levels up, without trailing slash or name.
12401 subpage title=[[Subpage test/L1/L2/L3]]
12410 Parents of subpages, two levels up, with lots of extra trailing slashes.
12412 subpage title=[[Subpage test/L1/L2/L3]]
12416 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12421 Subpage test/L1/L2/L3Sibling
12427 Transclusion of a sibling page (one level up)
12429 subpage title=[[Subpage test/L1/L2/L3]]
12438 Transclusion of a child page
12440 subpage title=[[Subpage test/L1/L2]]
12449 Non-transclusion because of too many up levels
12451 subpage title=[[Subpage test/L1/L2/L3]]
12453 {{../../../../More than parent}}
12455 <p>{{../../../../More than parent}}
12460 Definition list code coverage
12466 <dl><dt> title  </dt><dd> def
12467 </dd><dt> title </dt><dd> def
12468 </dd><dt>title</dt><dd> def
12474 Don't fall for the self-closing div
12476 <div>hello world</div/>
12478 <div>hello world</div>
12487 <p>[[:Template:Msg]]
12496 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12500 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12502 Always escape literal '>' in output, not just after '<'
12516 <p>This is a test template
12517 This is a test template
12529 Inclusion of !userCanEdit() content
12533 <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>
12539 Out-of-order TOC heading levels
12548 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12550 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12552 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12553 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12556 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12558 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12559 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12564 <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>
12565 <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>
12566 <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>
12567 <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>
12568 <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>
12569 <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>
12575 ISBN with a dummy number
12585 ISBN with space-delimited number
12589 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12595 ISBN with multiple spaces, no number
12614 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12615 </p><p>ISBN 12345678901
12621 ISBN with trailing year (bug 8110)
12623 ISBN 1-234-56789-0 - 2006
12625 ISBN 1 234 56789 0 - 2006
12627 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12628 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12636 {{anchorencode:foo bar©#%n}}
12638 <p>foo_bar.C2.A9.23.25n
12643 anchorencode trims spaces
12645 {{anchorencode: __pretty__please__}}
12652 anchorencode deals with links
12654 {{anchorencode: [[hello|world]] [[hi]]}}
12661 anchorencode deals with templates
12663 {{anchorencode: {{Foo}} }}
12670 anchorencode encodes like the TOC generator: (bug 18431)
12672 === _ +:.3A%3A&&]] ===
12673 {{anchorencode: _ +:.3A%3A&&]] }}
12676 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12677 <p>.2B:.3A.253A.26.26.5D.5D
12681 # Expected output in the following test is not necessarily expected (there
12682 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12683 # only testing for well-formedness.
12685 Bug 6200: blockquotes and paragraph formatting
12705 Bug 8293: Use of center tag ruins paragraph formatting
12726 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12730 <span><s>x</span></s>
12732 <p><span><s>x</span></s></span>
12737 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12741 <span><s>x</span></s>
12743 <p><span><s>x</s></span><s></s>
12748 ### Language variants related tests
12751 Self-link in language variants
12753 title=[[Dunav]] language=sr
12755 Both [[Dunav]] and [[Дунав]] are names for this river.
12757 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12768 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12770 title=[[Duna]] language=sr
12772 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12774 <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.
12779 Link to pages in language variants
12783 Main Page can be written as [[Маин Паге]]
12785 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12791 Multiple links to pages in language variants
12795 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12797 <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>.
12803 Simple template in language variants
12809 <p>This is a test template
12815 Template with explicit namespace in language variants
12821 <p>This is a test template
12827 Basic test for template parameter in language variants
12831 {{парамтест|param=foo}}
12833 <p>This is a test template with parameter foo
12839 Simple category in language variants
12843 [[Category:МедиаWики Усер'с Гуиде]]
12845 <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>
12862 Don't convert blue categorylinks to another variant (bug 33210)
12866 [[A]][[Category:分类]]
12868 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12873 Stripping -{}- tags (language variants)
12877 Latin proverb: -{Ne nuntium necare}-
12879 <p>Latin proverb: Ne nuntium necare
12885 Prevent conversion with -{}- tags (language variants)
12887 language=sr variant=sr-ec
12889 Latinski: -{Ne nuntium necare}-
12891 <p>Латински: Ne nuntium necare
12897 Prevent conversion of text with -{}- tags (language variants)
12899 language=sr variant=sr-ec
12901 Latinski: -{Ne nuntium necare}-
12903 <p>Латински: Ne nuntium necare
12909 Prevent conversion of links with -{}- tags (language variants)
12911 language=sr variant=sr-ec
12915 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12921 -{}- tags within headlines (within html for parserConvert())
12923 language=sr variant=sr-ec
12927 <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>
12933 Explicit definition of language variant alternatives
12935 language=zh variant=zh-tw
12937 -{zh:China;zh-tw:Taiwan}-, not China
12939 <p>Taiwan, not China
12945 Conversion around HTML tags
12947 language=sr variant=sr-ec
12949 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12950 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12953 <span title="ЛаCтин">ски</span>
12959 Explicit session-wise language variant mapping (A flag and - flag)
12961 language=zh variant=zh-tw
12963 Taiwan is not China.
12964 But -{A|zh:China;zh-tw:Taiwan}- is China,
12965 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12966 and -{China}- is China.
12968 <p>Taiwan is not China.
12969 But Taiwan is Taiwan,
12970 (This should be stripped!)
12971 and China is China.
12976 Explicit session-wise language variant mapping (H flag for hide)
12978 language=zh variant=zh-tw
12980 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12983 <p>(This should be stripped!)
12989 Adding explicit conversion rule for title (T flag)
12991 language=zh variant=zh-tw showtitle
12993 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12996 <p>Should be stripped!
13001 Testing that changing the language variant here in the tests actually works
13003 language=zh variant=zh showtitle
13005 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13008 <p>Should be stripped!
13013 Recursive conversion of alt and title attrs shouldn't clear converter state
13015 language=zh variant=zh-cn showtitle
13017 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13018 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13022 Should be stripped<span title="Exclamation">!</span>
13027 Bug 24072: more test on conversion rule for title
13029 language=zh variant=zh-tw showtitle
13031 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13032 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13035 <p>This should be stripped!
13036 This won't take interferes with the title rule.
13041 Partly disable title conversion if variant == main language code
13043 language=zh variant=zh title=[[ZH]] showtitle
13045 -{T|zh-cn:CN;zh-tw:TW}-
13053 Partly disable title conversion if variant == main language code, more
13055 language=zh variant=zh title=[[ZH]] showtitle
13065 Raw output of variant escape tags (R flag)
13067 language=zh variant=zh-tw
13069 Raw: -{R|zh:China;zh-tw:Taiwan}-
13071 <p>Raw: zh:China;zh-tw:Taiwan
13076 Nested using of manual convert syntax
13078 language=zh variant=zh-hk
13080 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13082 <p>Nested: Hello Hong Kong!
13087 Proper conversion of text in external links
13089 language=sr variant=sr-ec
13091 http://www.google.com
13092 gopher://www.google.com
13093 [http://www.google.com http://www.google.com]
13094 [gopher://www.google.com gopher://www.google.com]
13095 [https://www.google.com irc://www.google.com]
13096 [ftp://www.google.com www.google.com/ftp://dir]
13097 [//www.google.com www.google.com]
13099 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13100 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13101 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13102 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13103 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13104 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13105 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13110 Do not convert roman numbers to language variants
13112 language=sr variant=sr-ec
13116 <p>Фридрих IV је цар.
13121 Unclosed language converter markup "-{"
13132 Don't convert raw rule "-{R|=>}-" to "=>"
13149 Bug 529: Uncovered bullet
13159 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13160 # Templates in Wikipedia rely on this behavior, as tidy has always been
13161 # enabled there. These tests are normally run *without* tidy, so specify the
13162 # full output here.
13163 # To test realistic parsing behavior, apply a tidy-like transformation to both
13164 # the expected output and your parser's output.
13166 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13168 ******* Foo {{bullet}}
13170 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13183 Bug 529: Uncovered table already at line-start
13206 Bug 529: Uncovered bullet in parser function result
13208 * Foo {{lc:{{bullet}} }}
13217 Bug 5678: Double-parsed template argument
13219 {{lc:{{{1}}}|hello}}
13226 Bug 5678: Double-parsed template invocation
13228 {{lc:{{paramtest {{!}} param = hello }} }}
13230 <p>{{paramtest | param = hello }}
13235 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13238 title=[[Main Page]]
13240 {{PRVNÍVELKÉ:ěščř}}
13241 {{prvnívelké:ěščř}}
13261 Morwen/13: Unclosed link followed by heading
13268 <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>
13273 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13280 <h1><span class="mw-headline" id="heading">heading</span></h1>
13285 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13292 <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>
13307 Paragraphs inside divs (no extra line breaks)
13319 Paragraphs inside divs (extra line break on open)
13334 Paragraphs inside divs (extra line break on close)
13349 Paragraphs inside divs (extra line break on open and close)
13366 Nesting tags, paragraphs on lines which begin with <div>
13370 <div></div><strong>A
13379 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13381 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13385 <blockquote>Line one
13387 Line two</blockquote>
13389 <blockquote>Line one
13390 Line two</blockquote>
13395 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13402 Line two</blockquote>
13407 Line two</blockquote>
13412 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13416 <blockquote>Line one
13421 <blockquote>Line one
13429 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13448 Paragraphs inside blockquotes/divs (no extra line breaks)
13450 <blockquote><div>Line one
13452 Line two</div></blockquote>
13454 <blockquote><div>Line one
13455 Line two</div></blockquote>
13460 Paragraphs inside blockquotes/divs (extra line break on open)
13465 Line two</div></blockquote>
13470 Line two</div></blockquote>
13475 Paragraphs inside blockquotes/divs (extra line break on close)
13477 <blockquote><div>Line one
13480 </div></blockquote>
13482 <blockquote><div>Line one
13485 </div></blockquote>
13490 Paragraphs inside blockquotes/divs (extra line break on open and close)
13496 </div></blockquote>
13502 </div></blockquote>
13507 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13509 wgLinkHolderBatchSize=0
13515 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13516 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13517 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13522 Free external link invading image caption
13524 [[Image:Foobar.jpg|thumb|http://x|hello]]
13526 <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>
13531 Bug 15196: localised external link numbers
13535 [http://en.wikipedia.org/]
13537 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13542 Multibyte character in padleft
13544 {{padleft:-Hello|7|Æ}}
13551 Multibyte character in padright
13553 {{padright:Hello-|7|Æ}}
13560 formatdate parser function
13562 {{#formatdate:2009-03-24}}
13564 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13569 formatdate parser function, with default format
13571 {{#formatdate:2009-03-24|mdy}}
13573 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13578 Spacing of numbers in formatted dates
13580 {{#formatdate:January 15}}
13582 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13587 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
13589 language=nl title=[[MediaWiki:Common.css]]
13591 {{#formatdate:2009-03-24|dmy}}
13593 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13606 Edit comment with link
13610 I like the [[Main Page]] a lot
13612 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13616 Edit comment with link and link text
13620 I like the [[Main Page|best pages]] a lot
13622 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13626 Edit comment with link and link text with suffix
13630 I like the [[Main Page|best page]]s a lot
13632 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13636 Edit comment with section link (non-local, eg in history list)
13638 comment title=[[Main Page]]
13640 /* External links */ removed bogus entries
13642 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13646 Edit comment with section link and text before it (non-local, eg in history list)
13648 comment title=[[Main Page]]
13650 pre-comment text /* External links */ removed bogus entries
13652 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>
13656 Edit comment with section link (local, eg in diff view)
13658 comment local title=[[Main Page]]
13660 /* External links */ removed bogus entries
13662 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13666 Edit comment with subpage link (bug 14080)
13670 title=[[Subpage test]]
13672 Poked at a [[/subpage]] here...
13674 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13678 Edit comment with subpage link and link text (bug 14080)
13682 title=[[Subpage test]]
13684 Poked at a [[/subpage|neat little page]] here...
13686 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13690 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13693 title=[[Subpage test]]
13695 Poked at a [[/subpage]] here...
13697 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13701 Edit comment with bare anchor link (local, as on diff)
13705 title=[[Main Page]]
13709 <a href="#section">#section</a>
13713 Edit comment with bare anchor link (non-local, as on history)
13716 title=[[Main Page]]
13720 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13724 Anchor starting with underscore
13728 <p><a href="#_ref">One</a>
13733 Id starting with underscore
13735 <div id="_ref"></div>
13737 <div id="_ref"></div>
13742 Space normalisation on autocomment (bug 22784)
13745 title=[[Main Page]]
13747 /* __hello__world__ */
13749 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13753 percent-encoding and + signs in comments (Bug 26410)
13757 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13759 <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>
13763 Bad images - basic functionality
13772 Bad images - bug 16039: text after bad image disappears
13786 Verify that displaytitle works (bug #22501) no displaytitle
13790 wgAllowDisplayTitle=true
13791 wgRestrictDisplayTitle=false
13793 this is not the the title
13796 <p>this is not the the title
13801 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13806 wgAllowDisplayTitle=true
13807 wgRestrictDisplayTitle=false
13809 this is not the the title
13810 {{DISPLAYTITLE:whatever}}
13813 <p>this is not the the title
13818 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13823 wgAllowDisplayTitle=true
13824 wgRestrictDisplayTitle=true
13826 this is not the the title
13827 {{DISPLAYTITLE:whatever}}
13830 <p>this is not the the title
13835 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13840 wgAllowDisplayTitle=true
13841 wgRestrictDisplayTitle=true
13843 this is not the the title
13844 {{DISPLAYTITLE:screen}}
13847 <p>this is not the the title
13852 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13857 wgAllowDisplayTitle=false
13859 this is not the the title
13860 {{DISPLAYTITLE:screen}}
13863 <p>this is not the the title
13864 <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>
13869 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13874 wgAllowDisplayTitle=false
13876 this is not the the title
13879 <p>this is not the the title
13884 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13889 wgAllowDisplayTitle=true
13890 wgRestrictDisplayTitle=true
13892 this is not the the title
13893 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13895 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13896 <p>this is not the the title
13901 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13906 wgAllowDisplayTitle=true
13907 wgRestrictDisplayTitle=true
13909 this is not the the title
13910 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13912 <span style="color: red;">s</span>creen
13913 <p>this is not the the title
13918 preload: check <noinclude> and <includeonly>
13922 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13928 preload: check <onlyinclude>
13932 Goodbye <onlyinclude>Hello world</onlyinclude>
13938 preload: can pass tags through if we want to
13942 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13944 <includeonly>Hello world</includeonly>
13948 preload: check that it doesn't try to do tricks
13952 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13954 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13958 Play a bit with r67090 and bug 3158
13962 <div style="width:50% !important"> </div>
13963 <div style="width:50% !important"> </div>
13964 <div style="width:50% !important"> </div>
13965 <div style="border : solid;"> </div>
13967 <div style="width:50% !important"> </div>
13968 <div style="width:50% !important"> </div>
13969 <div style="width:50% !important"> </div>
13970 <div style="border : solid;"> </div>
13975 HTML5 data attributes
13977 <span data-foo="bar">Baz</span>
13978 <p data-abc-def_hij="">Quuz</p>
13980 <p><span data-foo="bar">Baz</span>
13982 <p data-abc-def_hij="">Quuz</p>
13987 percent-encoding and + signs in internal links (Bug 26410)
13989 [[User:+%]] [[Page+title%]]
13990 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13991 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13992 [[%33%45]] [[%33%45+]]
13994 <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>
13995 <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>
13996 <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>
13997 <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>
14002 Special characters in embedded file links (bug 27679)
14004 [[File:Contains & ampersand.jpg]]
14005 [[File:Does not exist.jpg|Title with & ampersand]]
14007 <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>
14008 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14014 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14016 Text's been normalized?
14018 <p>Text's been normalized?
14023 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14025 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14027 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14032 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14034 [http://www.example.org/ ideograms]
14036 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14041 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14043 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14045 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14069 Bug 31098 Template which includes system messages which includes the template
14073 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14074 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14079 Bug31490 Turkish: ucfirst 'blah'
14090 Bug31490 Turkish: ucfirst 'ix'
14101 Bug31490 Turkish: lcfirst 'BLAH'
14112 Bug31490 Turkish: ucfırst (with a dotless i)
14118 <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>
14123 Bug31490 ucfırst (with a dotless i) with English language
14129 <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>
14134 Bug 26375: TOC with italics
14136 title=[[Main Page]]
14139 == ''Lost'' episodes ==
14141 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14143 <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>
14146 <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>
14151 Bug 26375: TOC with bold
14153 title=[[Main Page]]
14156 == '''should be bold''' then normal text ==
14158 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14160 <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>
14163 <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>
14168 Bug 33845: Headings become cursive in TOC when they contain an image
14170 title=[[Main Page]]
14173 == Image [[Image:foobar.jpg]] ==
14175 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14177 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14180 <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>
14185 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14187 title=[[Main Page]]
14190 == <blockquote>Quote</blockquote> ==
14192 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14194 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14197 <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>
14202 Unclosed tags in TOC
14204 title=[[Main Page]]
14208 <small>Hanc marginis exiguitas non caperet.</small>
14211 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14213 <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>
14216 <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>
14217 <p><small>Hanc marginis exiguitas non caperet.</small>
14223 Multiple tags in TOC
14226 == <i>Foo</i> <b>Bar</b> ==
14228 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14230 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14232 <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>
14233 <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>
14236 <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>
14237 <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>
14242 Tags with parameters in TOC
14245 == <sup class="in-h2">Hello</sup> ==
14247 == <sup class="a > b">Evilbye</sup> ==
14249 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14251 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14252 <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>
14255 <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>
14256 <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>
14261 span tags with directionality in TOC
14264 == <span dir="ltr">C++</span> ==
14266 == <span dir="rtl">זבנג!</span> ==
14268 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14270 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14272 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14274 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14276 <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>
14277 <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>
14278 <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>
14279 <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>
14280 <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>
14283 <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>
14284 <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>
14285 <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>
14286 <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>
14287 <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>
14294 == {{int:headline_sample}} ==
14298 Bug 32057: Title needed when expanding <h> nodes.
14300 title=[[Main Page]]
14304 <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>
14309 Strip marker in urlencode
14311 {{urlencode:x<nowiki/>y}}
14312 {{urlencode:x<nowiki/>y|wiki}}
14313 {{urlencode:x<nowiki/>y|path}}
14340 Strip marker in formatNum
14342 {{formatnum:1<nowiki/>2}}
14343 {{formatnum:1<nowiki/>2|R}}
14351 Check noCommafy in formatNum
14355 {{formatnum:123456.78}}
14356 {{formatnum:123456.78|NOSEP}}
14364 Strip marker in grammar
14368 {{grammar:elative|foo<nowiki/>bar}}
14375 Strip marker in padleft
14377 {{padleft:|2|x<nowiki/>y}}
14384 Strip marker in padright
14386 {{padright:|2|x<nowiki/>y}}
14393 Strip marker in anchorencode
14395 {{anchorencode:x<nowiki/>y}}
14402 nowiki inside link inside heading (bug 18295)
14404 ==[[foo|x<nowiki>y</nowiki>z]]==
14406 <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>
14411 new support for bdi element (bug 31817)
14413 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14415 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14420 Ignore pipe between table row attributes
14424 |- id=foo | style='color: red'
14432 <tr id="foo" style="color: red">
14439 Gallery override link with WikiLink (bug 34852)
14442 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14445 <ul class="gallery">
14446 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14447 <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>
14448 <div class="gallerytext">
14458 Gallery override link with absolute external link (bug 34852)
14461 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14464 <ul class="gallery">
14465 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14466 <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>
14467 <div class="gallerytext">
14477 Gallery override link with malicious javascript (bug 34852)
14480 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14483 <ul class="gallery">
14484 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14485 <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>
14486 <div class="gallerytext">
14496 Gallery with invalid title as link (bug 43964)
14499 File:foobar.jpg|link=<
14502 <ul class="gallery">
14503 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14504 <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>
14505 <div class="gallerytext">
14513 Language parser function
14522 Padleft and padright as substr
14524 {{padleft:|3|abcde}}
14525 {{padright:|3|abcde}}
14533 Special parser function
14535 {{#special:RandomPage}}
14536 {{#special:BaDtItLe}}
14537 {{#special:Foobar}}
14546 Bug 34939 - Case insensitive link parsing ([HttP://])
14548 [HttP://MediaWiki.Org/]
14550 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14555 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14557 [HttP://MediaWiki.Org/ MediaWiki]
14559 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14564 Bug 34939 - Case insensitive link parsing (HttP://)
14566 HttP://MediaWiki.Org/
14568 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14574 ### Parsoids-specific tests
14575 ### Parsoid-PHP parser incompatibilities
14578 1. SOL-sensitive wikitext tokens as template-args
14580 parsoid=wt2html,wt2wt
14586 <span about="#mwt1" typeof="mw:Transclusion">
14587 </span><ul about="#mwt1"><li>a</li></ul>
14588 <span about="#mwt2" typeof="mw:Transclusion">
14589 </span><ol about="#mwt2"><li>a</li></ol>
14590 <span about="#mwt3" typeof="mw:Transclusion">
14591 </span><dl about="#mwt3"><dd>a</dd></dl>
14594 #### ----------------------------------------------------------------
14595 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14596 #### tags. Parsoid's output for these tags differs from that of the
14598 #### ----------------------------------------------------------------
14601 Ref: 1. ref-location should be replaced with an index span
14606 B <ref name="x">foo</ref>
14609 <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>
14610 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>
14611 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>
14615 Ref: 2. ref-tags with identical names should all get the same index
14619 A <ref name="x">foo</ref>
14622 <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>
14623 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>
14627 Ref: 3. spaces in ref-names should be ignored
14631 A <ref name="x">foo</ref>
14632 B <ref name=" x " />
14635 <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>
14636 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>
14637 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>
14641 Ref: 4. 'constructor' should be accepted as a valid ref-name
14642 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14646 A <ref name="constructor">foo</ref>
14648 <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>
14652 Ref: 5. body should accept generic wikitext
14657 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14662 <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>
14664 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14665 <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>
14670 Ref: 6. indent-pres should not be output in ref-body
14682 <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>
14684 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14685 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14692 Ref: 6. No p-wrapping in ref-body
14711 <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>
14713 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14714 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14728 Ref: 8. transclusion wikitext has lower precedence
14732 A <ref> foo {{echo|</ref> B C}}
14736 <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>
14738 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14739 <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>
14743 Ref: 9. unclosed comments should not leak out of ref-body
14747 A <ref> foo <!--</ref> B C
14751 <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>
14753 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14754 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14758 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14762 A <ref> <b> foo </ref> B C
14766 <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>
14768 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14769 <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>
14773 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14780 <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
14781 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>
14785 Ref: 12. ref-tags act as trailing newline migration barrier
14789 <!--the newline at the end of this line moves out of the p-tag-->a
14791 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14796 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14799 <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>
14800 <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>
14807 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14815 <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
14816 <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>
14820 Ref: 14. A nested ref-tag should be emitted as plain text
14824 <ref>foo <ref>bar</ref> baz</ref>
14828 <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>
14830 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
14831 <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>
14835 Ref: 15. ref-tags with identical names should get identical indexes
14839 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14840 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14844 <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>
14845 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>
14847 <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>
14851 References: 1. references tag without any refs should be handled properly
14857 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14861 References: 2. references tag with group only outputs references from that group
14865 A <ref group="a">foo</ref>
14866 B <ref group="b">bar</ref>
14868 <references group='a' />
14870 <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>
14871 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>
14873 <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>
14877 References: 3. ref list should be cleared after processing references
14889 <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>
14891 <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>
14893 <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>
14895 <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>
14899 References: 4. only referenced group should be cleared after processing references
14903 A <ref group="a">afoo</ref>
14906 <references group="a"/>
14912 <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>
14913 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>
14915 <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>
14917 <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>
14919 <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>
14923 References: 5. ref tags in references should be processed while ignoring all other content
14928 B <ref name="b">bar</ref>
14931 <ref name="a">foo</ref>
14932 This should just get lost.
14935 <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>
14936 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>
14938 <ol about="#mwt7" class="references" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost."},"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">↑</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>
14942 References: 6. <references /> from a transclusion
14946 {{echo|<references />}}
14948 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
14951 #### ----------------------------------------------------------------
14952 #### The following section of tests are primarily to test
14953 #### wikitext escaping capabilities of Parsoid. Given that
14954 #### escaping can be done any number of ways, the wikitext (input)
14955 #### is always adjusted to reflect how Parsoid adds nowiki
14958 #### We are marking several tests as parsoid-only since the
14959 #### HTML in the result section is different from what the
14960 #### PHP parser generates for it.
14961 #### ----------------------------------------------------------------
14964 #### --------------- Headings ---------------
14966 #### 1. Nested inside html <h1>=foo=</h1>
14967 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14968 #### 3. Nested inside html with wikitext split by html tags
14969 #### 4. No escape needed
14970 #### 5. Empty headings <h1></h1>
14971 #### 6. Heading chars in SOL context
14972 #### ----------------------------------------
14974 Headings: 0. Unnested
14978 <nowiki>=foo=</nowiki>
14980 <nowiki> =foo= </nowiki>
14982 <nowiki>=foo=</nowiki>
14984 =foo''a''<nowiki>=</nowiki>
14986 <p><span typeof="mw:Nowiki">=foo=</span></p>
14988 <p><span typeof="mw:Nowiki"> =foo= </span>
14990 <span typeof="mw:Nowiki">=foo=</span></p>
14992 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14996 Headings: 1. Nested inside html
15000 =<nowiki>=foo=</nowiki>=
15002 ==<nowiki>=foo=</nowiki>==
15004 ===<nowiki>=foo=</nowiki>===
15006 ====<nowiki>=foo=</nowiki>====
15008 =====<nowiki>=foo=</nowiki>=====
15010 ======<nowiki>=foo=</nowiki>======
15012 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15013 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15014 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15015 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15016 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15017 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15021 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15026 <nowiki>*</nowiki>bar
15032 <nowiki>=bar=</nowiki>
15040 Headings: 3. Nested inside html with wikitext split by html tags
15044 =='''bold'''<nowiki>foo=</nowiki>=
15046 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15050 Headings: 4a. No escaping needed (testing just h1 and h2)
15068 =<nowiki>=</nowiki>=
15076 <h1><i>=</i>foo=</h1>
15077 <h1><span typeof="mw:Nowiki">=</span></h1>
15081 Headings: 4b. No escaping needed (inside p-tags)
15096 Headings: 5. Empty headings
15108 =====<nowiki/>=====
15110 ======<nowiki/>======
15121 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15125 <nowiki>=a=</nowiki>
15127 <nowiki>=a=</nowiki>
15129 <nowiki>=a=</nowiki>
15131 <nowiki>=a=</nowiki>
15140 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15168 Headings: 6c. Heading chars in SOL context (leading newline break)
15173 <nowiki>=b=</nowiki>
15180 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15184 <!--c0--><nowiki>=a=</nowiki>
15186 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
15188 <p><!--c0-->=a=</p>
15189 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15193 Headings: 6d. Heading chars in SOL context (No escaping needed)
15202 #### --------------- Lists ---------------
15203 #### 0. Outside nests (*foo, etc.)
15204 #### 1. Nested inside html <ul><li>*foo</li></ul>
15205 #### 2. Inside definition lists
15206 #### 3. Only bullets at start should be escaped
15207 #### 4. No escapes needed
15208 #### 5. No unnecessary escapes
15209 #### 6. Escape bullets in SOL position
15210 #### 7. Escape bullets in a multi-line context
15211 #### ----------------------------------------
15214 Lists: 0. Outside nests
15216 <nowiki>*</nowiki>foo
15218 <nowiki>#</nowiki>foo
15226 Lists: 1. Nested inside html
15228 *<nowiki>*foo</nowiki>
15230 *<nowiki>#foo</nowiki>
15232 *<nowiki>:foo</nowiki>
15234 *<nowiki>;foo</nowiki>
15236 #<nowiki>*foo</nowiki>
15238 #<nowiki>#foo</nowiki>
15240 #<nowiki>:foo</nowiki>
15242 #<nowiki>;foo</nowiki>
15264 Lists: 2. Inside definition lists
15266 ;<nowiki>;foo</nowiki>
15268 ;<nowiki>:foo</nowiki>
15270 ;<nowiki>:foo</nowiki>
15273 :<nowiki>:foo</nowiki>
15288 Lists: 3. Only bullets at start of text should be escaped
15290 *<nowiki>*foo*bar</nowiki>
15292 *<nowiki>*foo</nowiki>''it''*bar
15296 <ul><li>*foo<i>it</i>*bar
15302 Lists: 4. No escapes needed
15314 <ul><li><i>foo</i>*bar
15316 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15321 Lists: 5. No unnecessary escapes
15323 * bar <span><nowiki>[[foo]]</nowiki></span>
15325 *=bar <span><nowiki>[[foo]]</nowiki></span>
15327 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15329 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15331 *=bar <span>foo]]</span>=
15335 <ul><li> bar <span>[[foo]]</span>
15337 <ul><li>=bar <span>[[foo]]</span>
15339 <ul><li>[[bar <span>[[foo]]</span>
15341 <ul><li>]]bar <span>[[foo]]</span>
15343 <ul><li>=bar <span>foo]]</span>=
15345 <ul><li> <s></s>: a
15351 Lists: 6. Escape bullets in SOL position
15355 <!--cmt--><nowiki>*foo</nowiki>
15357 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15361 Lists: 7. Escape bullets in a multi-line context
15364 <nowiki>*</nowiki>b
15371 #### --------------- HRs ---------------
15372 #### 1. Single line
15373 #### -----------------------------------
15376 HRs: 1. Single line
15380 ----<nowiki>----</nowiki>
15384 <hr><span typeof="mw:Nowiki">----</span>
15389 #### --------------- Tables ---------------
15390 #### 1a. Simple example
15391 #### 1b. No escaping needed (!foo)
15392 #### 1c. No escaping needed (|foo)
15393 #### 1d. No escaping needed (|}foo)
15395 #### 2a. Nested in td (<td>foo|bar</td>)
15396 #### 2b. Nested in td (<td>foo||bar</td>)
15397 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15399 #### 3a. Nested in th (<th>foo!bar</th>)
15400 #### 3b. Nested in th (<th>foo!!bar</th>)
15401 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15405 #### 4c. No escaping needed
15406 #### --------------------------------------
15409 Tables: 1a. Simple example
15420 Tables: 1b. No escaping needed
15429 Tables: 1c. No escaping needed
15438 Tables: 1d. No escaping needed
15447 Tables: 2a. Nested in td
15452 |<nowiki>foo|bar</nowiki>
15456 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15460 Tables: 2b. Nested in td
15465 |<nowiki>foo||bar</nowiki>
15466 |''it''<nowiki>foo||bar</nowiki>
15470 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15471 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15475 Tables: 2c. Nested in td -- no escaping needed
15483 <table><tbody><tr><td>foo!!bar
15484 </td></tr></tbody></table>
15489 Tables: 3a. Nested in th
15497 <table><tbody><tr><th>foo!bar
15498 </th></tr></tbody></table>
15503 Tables: 3b. Nested in th
15508 !<nowiki>foo!!bar</nowiki>
15512 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15517 Tables: 3c. Nested in th -- no escaping needed
15522 !<nowiki>foo||bar</nowiki>
15526 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15530 Tables: 4a. Escape -
15538 |<nowiki>-bar</nowiki>
15542 <tr><th>-bar</th></tr>
15544 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15548 Tables: 4b. Escape +
15556 |<nowiki>+bar</nowiki>
15560 <tr><th>+bar</th></tr>
15562 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15566 Tables: 4c. No escaping needed
15580 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15581 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15585 ### SSS FIXME: Disabled right now because accurate html2wt
15586 ### on this snippet requires data-parsoid flags that we've
15587 ### stripped out of these tests. We should scheme how we
15588 ### we want to handle these kind of tests that require
15589 ### data-parsoid flags for accurate html2wt serialization
15592 Tables: 4d. No escaping needed
15610 #### --------------- Links ----------------
15611 #### 1. Quote marks in link text
15612 #### 2. Wikilinks: Escapes needed
15613 #### 3. Wikilinks: No escapes needed
15614 #### 4. Extlinks: Escapes needed
15615 #### 5. Extlinks: No escapes needed
15616 #### --------------------------------------
15618 Links 1. Quote marks in link text
15622 [[Foo|Foo<nowiki>''boo''</nowiki>]]
15624 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15628 Links 2. WikiLinks: Escapes needed
15632 [[Foo|<nowiki>[Foobar]</nowiki>]]
15633 [[Foo|<nowiki>Foobar]</nowiki>]]
15634 [[Foo|x [Foobar] x]]
15635 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15636 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15637 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15638 [[Foo|<nowiki>|Bar</nowiki>]]
15639 [[Foo|<nowiki>]]bar</nowiki>]]
15640 [[Foo|<nowiki>[[bar</nowiki>]]
15641 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15643 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15644 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15645 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15646 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15647 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15648 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15649 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15650 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15651 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15652 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15656 Links 3. WikiLinks: No escapes needed
15663 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15664 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15668 Links 4. ExtLinks: Escapes needed
15672 [http://google.com <nowiki>[google]</nowiki>]
15673 [http://google.com <nowiki>google]</nowiki>]
15675 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15676 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15680 Links 5. ExtLinks: No escapes needed
15684 [http://google.com [google]
15686 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15689 #### --------------- Quotes ---------------
15690 #### 1. Quotes inside <b> and <i>
15691 #### 2. Link fragments separated by <i> and <b> tags
15692 #### 3. Link fragments inside <i> and <b>
15693 #### --------------------------------------
15695 1. Quotes inside <b> and <i>
15697 ''<nowiki>'foo'</nowiki>''
15698 ''<nowiki>''foo''</nowiki>''
15699 ''<nowiki>'''foo'''</nowiki>''
15700 ''foo''<nowiki>'s</nowiki>
15701 '''<nowiki>'foo'</nowiki>'''
15702 '''<nowiki>''foo''</nowiki>'''
15703 '''<nowiki>'''foo'''</nowiki>'''
15704 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15705 '''foo'''<nowiki>'s</nowiki>
15714 <b>foo'<i>bar'</i>baz</b>
15720 2. Link fragments separated by <i> and <b> tags
15722 [[''foo''<nowiki>hello]]</nowiki>
15724 [['''foo'''<nowiki>hello]]</nowiki>
15726 <p>[[<i>foo</i>hello]]
15727 </p><p>[[<b>foo</b>hello]]
15732 2. Link fragments inside <i> and <b>
15733 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15734 this is one of the shortcomings of this format)
15736 ''[[foo''<nowiki>]]</nowiki>
15738 '''[[foo'''<nowiki>]]</nowiki>
15741 </p><p><b>[[foo</b>]]
15745 #### ----------- Paragraphs ---------------
15746 #### 1. No unnecessary escapes
15747 #### --------------------------------------
15750 1. No unnecessary escapes
15752 bar <span><nowiki>[[foo]]</nowiki></span>
15754 =bar <span><nowiki>[[foo]]</nowiki></span>
15756 [[bar <span><nowiki>[[foo]]</nowiki></span>
15758 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15760 =bar <span>foo]]</span><nowiki>=</nowiki>
15762 <p>bar <span>[[foo]]</span>
15763 </p><p>=bar <span>[[foo]]</span>
15764 </p><p>[[bar <span>[[foo]]</span>
15765 </p><p>]]bar <span>[[foo]]</span>
15766 </p><p>=bar <span>foo]]</span>=
15770 #### ----------------------- PRE --------------------------
15771 #### 1. Leading whitespace in SOL context should be escaped
15772 #### ------------------------------------------------------
15774 1. Leading whitespace in SOL context should be escaped
15778 <nowiki> </nowiki>a
15780 <nowiki> </nowiki> a
15782 <nowiki> </nowiki>a(tab)
15784 <nowiki> </nowiki> a
15786 <nowiki> </nowiki> a
15789 <nowiki> </nowiki>b
15792 <nowiki> </nowiki>b
15795 <nowiki> </nowiki> b
15801 <p><!--cmt--> a</p>
15810 #### --------------- HTML tags ---------------
15813 #### 3. multi-line html tag
15814 #### -----------------------------------------
15820 <a href="http://google.com">google</a>
15822 <a href="http://google.com">google</a>
15828 <nowiki><div>foo</div>
15829 <div style="color:red">foo</div></nowiki>
15831 <p><div>foo</div>
15832 <div style="color:red">foo</div>
15837 3. multi-line html tag
15852 <nowiki><ref>foo</ref></nowiki>
15854 <p><ref>foo</ref>
15858 #### --------------- Others ---------------
15862 <nowiki>foo</nowiki>
15864 <p><nowiki>foo</nowiki>
15869 Tag-like HTML structures are passed through as text
15891 </p><p>1<d e>f
15896 # This fails in the PHP parser (see bug 40670,
15897 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15899 Tag names followed by punctuation should not be recognized as tags
15905 <p><s.ome> text
15910 HTML tag with necessary entities in attributes
15912 <span title="&amp;">foo</span>
15914 <p><span title="&amp;">foo</span>
15919 HTML tag with 'unnecessary' entity encoding in attributes
15921 <span title="&">foo</span>
15923 <p><span title="&">foo</span>
15928 HTML tag with broken attribute value quoting
15930 <span title="Hello world>Foo</span>
15932 <p><span>Foo</span>
15937 Parsoid-only: HTML tag with broken attribute value quoting
15941 <span title="Hello world>Foo</span>
15943 <p><span title="Hello world">Foo</span>
15948 Table with broken attribute value quoting
15951 | title="Hello world|Foo
15962 Table with broken attribute value quoting on consecutive lines
15965 | title="Hello world|Foo
15966 | style="color:red|Bar
15979 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15984 | title="Hello world|Foo
15985 | style="color:red|Bar
15990 <td title="Hello world">Foo
15991 </td><td style="color: red">Bar
15992 </td></tr></tbody></table>
15997 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16007 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16017 Accept empty td cell attribute
16020 | align="center" | foo || |
16025 <td align="center"> foo </td>
16032 Non-empty attributes in th-cells
16035 ! Foo !! style="color: red" | Bar
16041 <th style="color: red"> Bar
16047 Accept empty attributes in th-cells
16062 Empty table rows go away
16083 ### Parsoid-centric tests for testing RTing of inter-element separators
16084 ### Edge cases not tested by existing parser tests and specific to
16085 ### Parsoid-specific serialization strategies.
16089 RT-ed inter-element separators should be valid separators
16102 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16103 (Parsoid-only since PHP parser relies on Tidy for correct output)
16119 Empty TD followed by TD with tpl-generated attribute
16124 |{{echo|style='color:red'}}|foo
16138 Indented table with an empty td
16157 Empty TR followed by a template-generated TR
16158 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16160 parsoid=wt2html,wt2wt
16164 {{echo|<tr><td>foo</td></tr>}}
16170 <tr typeof="mw:Transclusion">
16171 <td>foo</td></tr></tbody></table>
16174 ## PHP and parsoid output differ for this, and since this is primarily
16175 ## for testing Parsoid's serializer, marking this Parsoid only
16177 Empty TR followed by mixed-ws-comment line should RT correctly
16191 <td> <!--c--></td></tr>
16193 <td><!--c--> <!--d--></td></tr>
16199 Multi-line image caption generated by templates with/without trailing newlines
16203 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16204 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16206 <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>
16207 <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>
16211 ## PHP emits broken html for this, and since this is primarily
16212 ## a Parsoid serializer test, marking this Parsoid only
16214 Improperly nested inline or quotes tags with whitespace in between
16218 <span> <s>x</span> </s>
16221 <p><span> <s>x</s></span><s> </s>
16222 <b> <i>x</i></b><i> </i>
16226 # -----------------------------------------------------------------
16227 # The following section of tests are primarily to spec requirements
16228 # around serialization of new/edited content.
16230 # All these tests are marked Parsoid html2wt and html2html only
16231 # ----------------------------------------------------------------
16234 Image: Modifying size of an image
16238 [[Image:Wiki.png|230x230px]]
16240 <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>
16244 Image: New block level image should have \n before and after
16249 [[File:Wiki.png|right|thumb|150x150px]]
16252 <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>
16256 Lists: Add space after bullets
16263 * <span> baz</span>
16268 <li><span> baz</span></li>
16273 Parsoid: Serialize positional parameters with = in them as named parameter
16279 <p about="#mwt1" typeof="mw:Transclusion"
16280 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
16284 # -----------------------------------------------------------------
16285 # End of section for Parsoid-only html2wt tests for serialization
16287 # -----------------------------------------------------------------
16294 Try for 100% code coverage