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 # For testing purposes, temporary articles can created:
31 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
32 # where '/' denotes a newline.
34 # This is the standard article assumed to exist.
59 MediaWiki:bad image list
61 * [[File:Bad.jpg]] except [[Nasty page]]
95 Template:echo_with_span
101 Template:echo_with_div
113 Template:table_attribs
116 |</noinclude>style="color: red"| Foo
138 This is a simple paragraph.
140 <p>This is a simple paragraph.
145 Paragraphs with extra newline spacing
168 Paragraphs with newline spacing with comment lines in between
176 <!--foo--><!--More than 1 comment disables stripping of this line!-->
233 Paragraphs with newline spacing with non-empty white-space lines in between
260 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
268 <!--foo--><!--More than 1 comment disables stripping of this line!-->
307 Extra newlines: More paragraphs with indented comment
322 Extra newlines followed by heading
337 <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>
338 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
341 <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>
346 Extra newlines between heading and content are swallowed
354 <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>
355 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
362 http://fr.wikipedia.org/wiki/🍺
363 <!-- EasterEgg we love beer, better be able be able to link to it -->
365 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
385 * plain''italic''plain
386 * plain''italic''plain''italic''plain
387 * plain'''bold'''plain
388 * plain'''bold'''plain'''bold'''plain
389 * plain''italic''plain'''bold'''plain
390 * plain'''bold'''plain''italic''plain
391 * plain''italic'''bold-italic'''italic''plain
392 * plain'''bold''bold-italic''bold'''plain
393 * plain'''''bold-italic'''italic''plain
394 * plain'''''bold-italic''bold'''plain
395 * plain''italic'''bold-italic'''''plain
396 * plain'''bold''bold-italic'''''plain
397 * plain l'''italic''plain
398 * plain l''''bold''' plain
401 </li><li> plain<i>italic</i>plain
402 </li><li> plain<i>italic</i>plain<i>italic</i>plain
403 </li><li> plain<b>bold</b>plain
404 </li><li> plain<b>bold</b>plain<b>bold</b>plain
405 </li><li> plain<i>italic</i>plain<b>bold</b>plain
406 </li><li> plain<b>bold</b>plain<i>italic</i>plain
407 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
408 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
409 </li><li> plain<i><b>bold-italic</b>italic</i>plain
410 </li><li> plain<b><i>bold-italic</i>bold</b>plain
411 </li><li> plain<i>italic<b>bold-italic</b></i>plain
412 </li><li> plain<b>bold<i>bold-italic</i></b>plain
413 </li><li> plain l'<i>italic</i>plain
414 </li><li> plain l'<b>bold</b> plain
419 # this example taken from the simple/Moon article
421 Italics and possessives
423 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
425 <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
430 ### 2-quote opening sequence tests
433 Italics and bold: 2-quote opening sequence: (2,2)
443 Italics and bold: 2-quote opening sequence: (2,3)
453 Italics and bold: 2-quote opening sequence: (2,4)
463 Italics and bold: 2-quote opening sequence: (2,5) (php)
472 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
474 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
486 ### 3-quote opening sequence tests
490 Italics and bold: 3-quote opening sequence: (3,2)
500 Italics and bold: 3-quote opening sequence: (3,3)
510 Italics and bold: 3-quote opening sequence: (3,4)
520 Italics and bold: 3-quote opening sequence: (3,5) (php)
529 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
531 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
543 ### 4-quote opening sequence tests
547 Italics and bold: 4-quote opening sequence: (4,2)
557 Italics and bold: 4-quote opening sequence: (4,3)
567 Italics and bold: 4-quote opening sequence: (4,4)
577 Italics and bold: 4-quote opening sequence: (4,5) (php)
586 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
588 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
594 <p>'<b>foo<i></i></b>
600 ### 5-quote opening sequence tests
604 Italics and bold: 5-quote opening sequence: (5,2) (php)
613 # Parsoid reverses the nesting order, compared to the PHP parser
615 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
627 Italics and bold: 5-quote opening sequence: (5,3)
637 Italics and bold: 5-quote opening sequence: (5,4)
641 <p><i><b>foo'</b></i>
647 Italics and bold: 5-quote opening sequence: (5,5)
656 ### multiple quote sequences in a line
659 Italics and bold: multiple quote sequences: (2,4,2)
663 <p><i>foo'<b>bar</b></i>
669 Italics and bold: multiple quote sequences: (2,4,3)
673 <p><i>foo'<b>bar</b></i>
679 Italics and bold: multiple quote sequences: (2,4,4)
683 <p><i>foo'<b>bar'</b></i>
689 Italics and bold: multiple quote sequences: (3,4,2) (php)
698 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
700 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
706 <p><b>foo'</b>bar<i></i>
712 Italics and bold: multiple quote sequences: (3,4,3) (php)
721 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
723 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
729 <p><b>foo'</b>bar<b></b>
734 ### other quote tests
737 Italics and bold: other quote tests: (2,3,5)
739 ''this is about '''foo's family'''''
741 <p><i>this is about <b>foo's family</b></i>
747 Italics and bold: other quote tests: (2,(3,3),2)
749 ''this is about '''foo's''' family''
751 <p><i>this is about <b>foo's</b> family</i>
757 Italics and bold: other quote tests: (3,2,3,2)
759 '''this is about ''foo'''s family''
761 <p><b>this is about <i>foo</i></b><i>s family</i>
766 # The Parsoid team believes the PHP parser's output on this test is wrong.
767 # It only checks for convert-to-bold-on-single-character-word when the word
768 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
769 # This means that the bold token in position 2 (0-indexed) gets converted by
770 # parsoid, but doesn't get changed by the PHP parser.
772 Italics and bold: other quote tests: (3,2,3,3) (php)
776 '''this is about ''foo'''s family'''
778 <p>'<i>this is about </i>foo<b>s family</b>
781 # This is the output the Parsoid team believes to be correct.
783 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
787 '''this is about ''foo'''s family'''
789 <p><b>this is about <i>foo'</i>s family</b>
795 Italics and bold: other quote tests: (3,(2,2),3)
797 '''this is about ''foo's'' family'''
799 <p><b>this is about <i>foo's</i> family</b>
805 Italicized possessive
807 The ''[[Main Page]]'''s talk page.
809 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
814 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
815 (Requires tidy for PHP parser output to be fixed up)
817 parsoid=wt2html,wt2wt
825 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
826 <td><i>a</i></td><td><i>b</i></td></tr>
835 Non-html5 tags should be accepted
837 <center>''foo''</center>
840 <strike>''foo''</strike>
843 <center><i>foo</i></center>
844 <p><big><i>foo</i></big>
845 <font><i>foo</i></font>
846 <strike><i>foo</i></strike>
852 ### <nowiki> test cases
856 <nowiki> unordered list
858 <nowiki>* This is not an unordered list item.</nowiki>
860 <p>* This is not an unordered list item.
867 <nowiki>Lorem ipsum dolor
888 :There is not nowiki.
889 :There is <nowiki>nowiki</nowiki>.
891 #There is not nowiki.
892 #There is <nowiki>nowiki</nowiki>.
894 *There is not nowiki.
895 *There is <nowiki>nowiki</nowiki>.
897 <dl><dd>There is not nowiki.
898 </dd><dd>There is nowiki.
900 <ol><li>There is not nowiki.
901 </li><li>There is nowiki.
903 <ul><li>There is not nowiki.
904 </li><li>There is nowiki.
910 Entities inside <nowiki>
912 <nowiki><</nowiki>
919 Entities inside template parameters
925 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
933 Comments and Indent-Pre
935 <!-- comment 1 --> asdf
937 <!-- comment 1 --> asdf
940 <!-- comment 1 --> asdf
941 <!-- comment 2 -->xyz
943 <!-- comment 1 --> asdf
944 <!-- comment 2 --> xyz
1000 asdf<!-- comment 1 -->jkl
1010 <!-- foo --> b <!-- bar -->
1024 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1030 Comment semantics and delimiters
1032 <!-- --><!----><!-----><!------>
1038 Comment semantics and delimiters, redux
1040 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1041 -- foo -- funky huh? ... -->
1047 Comment semantics and delimiters: directors cut
1049 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1050 everything starting with < followed by !-- until the first -- and > we see,
1051 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1059 Comment semantics: nesting
1061 <!--<!-- no, we're not going to do anything fancy here -->-->
1068 Comment semantics: unclosed comment at end
1070 <!--This comment will run out to the end of the document
1076 Comment in template title
1085 Comment on its own line post-expand
1097 Comment on its own line post-expand with non-significant whitespace
1109 ### paragraph wraping tests
1123 Block tag on one line
1135 Block tag on both lines
1147 Multiple lines without block tags
1165 Empty lines between lines with block tags
1195 ### Preformatted text
1204 And a [[Main Page|link]]
1210 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1215 Ident preformatting with inline content
1226 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1243 Regression with preformatted in <center>
1256 # Expected output in the following test is not really expected (there should be
1257 # <pre> in the output) -- it's only testing for well-formedness.
1259 Bug 6200: Preformatted in <blockquote>
1272 <pre> with attributes (bug 3202)
1274 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1276 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1281 <pre> with width attribute (bug 3202)
1283 <pre width="8">Narrow screen goodies</pre>
1285 <pre width="8">Narrow screen goodies</pre>
1290 <pre> with forbidden attribute (bug 3202)
1292 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1294 <pre width="8">Narrow screen goodies</pre>
1299 Entities inside <pre>
1308 <pre> with forbidden attribute values (bug 3202)
1310 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1312 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1317 <nowiki> inside <pre> (bug 13238)
1325 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1333 <pre><nowiki>Foo</nowiki></pre>
1338 <nowiki> and <pre> preference (first one wins)
1369 </pre> inside nowiki
1371 <nowiki></pre></nowiki>
1378 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1386 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1396 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1408 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1429 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1433 {{echo| foo}}{{echo| bar}}
1438 {{echo|<!--cmt--> foo}}
1440 <!--cmt-->{{echo| foo}}
1442 {{echo|{{echo| }}bar}}
1460 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1497 Templates: Single-line variant of parameter whitespace stripping test
1503 {{echo|{{echo| a}}}}
1505 {{echo|1={{echo| a}}}}
1518 Templates: Strip whitespace from named parameters, but not positional ones
1546 Templates: Dont strip whitespace from whitespace/comment-only arguments
1550 {{echo| <!--cmt--> }}
1557 Templates: Parsoid parameter escaping test 1
1561 {{echo|[foo]|{{echo|[bar]}}}}
1563 <p about="#mwt1" typeof="mw:Transclusion"
1564 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1568 Parsoid: Pipes in external links in template parameter
1572 {{echo|[{{echo|http://example.com}} link]}}
1574 <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>
1578 Parsoid: pipe in transclusion parameter
1582 {{echo|http://foo.com/a|b}}
1584 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1585 typeof="mw:Transclusion"
1586 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>
1590 Parsoid: Pipe in external link target and content in template parameter
1592 parsoid=html2wt,wt2wt
1594 {{echo|[http://foo.com/a|b a|b]}}
1596 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1597 typeof="mw:Transclusion"
1598 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1599 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1603 Templates: Dont escape already nowiki-escaped text in template parameters
1605 parsoid=html2wt,wt2wt
1607 {{echo|foo<nowiki>|</nowiki>bar}}
1609 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<nowiki>|</nowiki>bar"}},"i":0}'>foo<span typeof="mw:Nowiki" data-parsoid="{}">|</span>bar</p>
1613 ### Parsoid-centric tests for testing RT edge cases for pre
1617 1a. Indent-Pre and Comments
1630 1b. Indent-Pre and Comments
1643 1c. Indent-Pre and Comments
1656 2a. Indent-Pre and tables
1677 2b. Indent-Pre and tables
1693 2c. Indent-Pre and tables (bug 42252)
1710 3a. Indent-Pre and block tags (single-line html)
1718 <pre><span> foo </span>
1723 3b. Indent-Pre and block tags (pre-content on separate line)
1775 4. Multiple spaces at start-of-line
1794 5. White-space in indent-pre
1795 NOTE: the white-space char on 2nd line is significant
1808 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1812 HTML-pre: 1. embedded newlines
1848 HTML-pre: 2: indented text
1861 HTML-pre: 3: other wikitext
1882 ### Definition lists
1889 <dl><dt> name </dt><dd> Definition
1895 Definition list for indentation only
1899 <dl><dd> Indented text
1905 Definition list with no space
1909 <dl><dt>name</dt><dd>Definition
1915 Definition list with URL link
1917 ; http://example.com/ : definition
1919 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1925 Definition list with bracketed URL link
1927 ;[http://www.example.com/ Example]:Something about it
1929 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1935 Definition list with wikilink containing colon
1937 ; [[Help:FAQ]]: The least-read page on Wikipedia
1939 <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
1944 # At Brion's and JeLuF's insistence... :)
1946 Definition list with news link containing colon
1948 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1950 <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!
1956 Malformed definition list with colon
1958 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1960 <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
1966 Definition lists: colon in external link text
1968 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1970 <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
1976 Definition lists: colon in HTML attribute
1978 ;<b style="display: inline">bold</b>
1980 <dl><dt><b style="display: inline">bold</b>
1986 Definition lists: self-closed tag
1988 ;one<br/>two : two-line fun
1990 <dl><dt>one<br />two </dt><dd> two-line fun
1996 Bug 11748: Literal closing tags
2000 <dd>test test test test test</dd>
2002 <dd>test test test test test</dd>
2007 <dd>test test test test test</dd>
2009 <dd>test test test test test</dd>
2015 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2018 ; term : description
2024 <dl><dt> term </dt><dd> description
2035 Definition list with empty definition and following paragraph
2040 <dl><dt> term</dt><dd>
2047 Nested definition lists using html syntax
2064 Definition Lists: No nesting: Multiple dd's
2078 Definition Lists: Indentation: Regular
2094 Definition Lists: Indentation: Missing 1st level
2108 Definition Lists: Indentation: Multi-level indent
2112 <dl><dd><dl><dd><dl><dd>i3
2120 Definition Lists: Hacky use to indent tables
2127 should be left alone
2129 <dl><dd><dl><dd><table>
2134 </td></tr></table></dd></dl></dd></dl>
2136 should be left alone
2139 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2140 ## as an empty dt item. It also ignores all but the last ";" when followed
2141 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2142 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2145 ## Ex: ";;t2 ::d2" is transformed into:
2157 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2158 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2169 ## All Parsoid only definition list tests have this difference.
2171 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2172 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2175 Table / list interaction: indented table with lists in table contents
2197 </td></tr></table></dd></dl>
2202 Table / list interaction: lists nested in tables nested in indented lists
2227 </td></tr></table></dd></dl>
2235 Definition Lists: Nesting: Multi-level (Parsoid only)
2265 Definition Lists: Nesting: Test 2 (Parsoid only)
2285 Definition Lists: Nesting: Test 3 (Parsoid only)
2313 Definition Lists: Nesting: Test 4
2318 <dl><dd><dl><dd><dl><dt>t3
2327 ## The Parsoid team believes the following three test exposes a
2328 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2329 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2331 Definition Lists: Mixed Lists: Test 1 (php)
2339 <dl><dd><dl><dt><ul><li> foo
2349 Definition Lists: Mixed Lists: Test 1 (parsoid)
2357 <dl><dd><dl><dt><ul><li> foo
2358 </li></ul></dt><dd><ul><li> bar
2359 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2363 Definition Lists: Mixed Lists: Test 2
2377 Definition Lists: Mixed Lists: Test 3
2382 <ul><li><dl><dd><dl><dd><dl><dd> d1
2393 Definition Lists: Mixed Lists: Test 4
2398 <ul><li><dl><dt>d1 </dt><dd>d2
2399 </dd><dt>d3 </dt><dd>d4
2407 Definition Lists: Mixed Lists: Test 5
2422 Definition Lists: Mixed Lists: Test 6
2427 <ol><li><ul><li><dl><dd>d1
2439 Definition Lists: Mixed Lists: Test 7
2453 Definition Lists: Mixed Lists: Test 8
2469 Definition Lists: Mixed Lists: Test 9
2473 <ul><li><dl><dt>foo </dt><dd>bar
2481 Definition Lists: Mixed Lists: Test 10
2485 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2492 # The Parsoid team disagrees with the PHP parser's seemingly-random
2493 # rules regarding dd/dt on the next two tests. Parsoid is more
2494 # consistent, and recognizes the shared nesting and keeps the
2495 # still-open tags around until the nesting is complete.
2498 Definition Lists: Mixed Lists: Test 11 (php)
2505 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2510 <dl><dt>boo </dt><dd>baz
2519 Definition Lists: Mixed Lists: Test 11 (parsoid)
2541 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2542 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2543 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2544 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2549 Definition Lists: Weird Ones: Test 1 (php)
2553 *#;*::;; foo : bar (who uses this?)
2555 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2567 Definition Lists: Weird Ones: Test 1 (parsoid)
2571 *#;*::;; foo : bar (who uses this?)
2588 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2589 <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>
2596 External links: non-bracketed
2598 Non-bracketed: http://example.com
2600 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2605 External links: numbered
2607 Numbered: [http://example.com]
2608 Numbered: [http://example.net]
2609 Numbered: [http://example.com]
2611 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2612 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2613 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2618 External links: specified text
2620 Specified text: [http://example.com link]
2622 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2627 External links: trail
2629 Linktrails should not work for external links: [http://example.com link]s
2631 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2636 External links: dollar sign in URL
2638 http://example.com/1$2345
2640 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2645 External links: dollar sign in URL (named)
2647 [http://example.com/1$2345]
2649 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2654 External links: open square bracket forbidden in URL (bug 4377)
2656 http://example.com/1[2345
2658 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2663 External links: open square bracket forbidden in URL (named) (bug 4377)
2665 [http://example.com/1[2345]
2667 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2672 External links: nowiki in URL link text (bug 6230)
2674 [http://example.com/ <nowiki>''example site''</nowiki>]
2676 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2681 External links: newline forbidden in text (bug 6230 regression check)
2683 [http://example.com/ first
2686 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2692 External links: Pipe char between url and text
2694 [http://example.com | link]
2696 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2701 External links: protocol-relative URL in brackets
2703 [//example.com/ Test]
2705 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2710 External links: protocol-relative URL in brackets without text
2714 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2719 External links: protocol-relative URL in free text is left alone
2723 <p>//example.com/Foo
2728 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2730 foo//example.com/Foo
2732 <p>foo//example.com/Foo
2739 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2741 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2746 External image from https
2748 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2750 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2755 Link to non-http image, no img tag
2757 Link to non-http image, no img tag: ftp://example.com/test.jpg
2759 <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>
2764 External links: terminating separator
2766 Terminating separator: http://example.com/thing,
2768 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2773 External links: intervening separator
2775 Intervening separator: http://example.com/1,2,3
2777 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2782 External links: old bug with URL in query
2784 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2786 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2791 External links: old URL-in-URL bug, mixed protocols
2793 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2795 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2800 External links: URL in text
2802 URL in text: [http://example.com http://example.com]
2804 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2809 External links: Clickable images
2811 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2813 <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>
2818 External links: raw ampersand
2820 Old & use: http://x&y
2822 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2827 External links: encoded ampersand
2829 Old & use: http://x&y
2831 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2836 External links: encoded equals (bug 6102)
2838 http://example.com/?foo=bar
2840 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2845 External links: [raw ampersand]
2847 Old & use: [http://x&y]
2849 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2854 External links: [encoded ampersand]
2856 Old & use: [http://x&y]
2858 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2863 External links: [encoded equals] (bug 6102)
2865 [http://example.com/?foo=bar]
2867 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2872 External links: [IDN ignored character reference in hostname; strip it right off]
2874 [http://e‌xample.com/]
2876 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2880 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2881 # Where an external link could easily circumvent the sanitization of the text of
2882 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2883 # test demands a higher standard. That's a bit strange.
2887 # http://example.com -> [http://example.com|http://example.com]
2888 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2890 # The first example is sanitized, but the second is not. Any security benefits
2891 # from this production are trivial to circumvent. Either remove this test and
2892 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2893 # the test accordingly.
2898 External links: IDN ignored character reference in hostname; strip it right off
2900 http://e‌xample.com/
2902 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2907 External links: www.jpeg.org (bug 554)
2911 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2916 External links: URL within URL (original bug 2)
2918 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2920 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2925 BUG 361: URL inside bracketed URL
2927 [http://www.example.com/foo http://www.example.com/bar]
2929 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2934 BUG 361: URL within URL, not bracketed
2936 http://www.example.com/foo?=http://www.example.com/bar
2938 <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>
2943 BUG 289: ">"-token in URL-tail
2945 http://www.example.com/<hello>
2947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2952 BUG 289: literal ">"-token in URL-tail
2954 http://www.example.com/<b>html</b>
2956 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2961 BUG 289: ">"-token in bracketed URL
2963 [http://www.example.com/<hello> stuff]
2965 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2970 BUG 289: literal ">"-token in bracketed URL
2972 [http://www.example.com/<b>html</b> stuff]
2974 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2979 BUG 289: literal double quote at end of URL
2981 http://www.example.com/"hello"
2983 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2988 BUG 289: literal double quote in bracketed URL
2990 [http://www.example.com/"hello" stuff]
2992 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2997 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2999 [http://www.example.com test]
3001 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3006 External links: link text with spaces
3008 [http://www.example.com a b c]
3009 [http://www.example.com ''a'' ''b'']
3011 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3012 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3017 External links: wiki links within external link (Bug 3695)
3019 [http://example.com [[wikilink]] embedded in ext link]
3021 <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>
3026 BUG 787: Links with one slash after the url protocol are invalid
3030 [http:/example.com title]
3032 <p>http:/example.com
3033 </p><p>[http:/example.com title]
3038 Bracketed external links with template-generated invalid target
3040 [{{echo|http:/example.com}} title]
3042 <p>[http:/example.com title]
3047 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3049 ''[http://example.com text'']
3050 [http://example.com '''text]'''
3051 ''Something [http://example.com in italic'']
3052 ''Something [http://example.com mixed''''', even bold]'''
3053 '''''Now [http://example.com both''''']
3055 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3056 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3057 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3058 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3059 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3065 Bug 4781: %26 in URL
3067 http://www.example.com/?title=AT%26T
3069 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3073 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3074 # % is actually legal in HTML5. Any change in output would need testing though.
3076 Bug 4781, 5267: %25 in URL
3078 http://www.example.com/?title=100%25_Bran
3080 <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>
3085 Bug 4781, 5267: %28, %29 in URL
3087 http://www.example.com/?title=Ben-Hur_%281959_film%29
3089 <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>
3095 Bug 4781: %26 in autonumber URL
3097 [http://www.example.com/?title=AT%26T]
3099 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3104 Bug 4781, 5267: %26 in autonumber URL
3106 [http://www.example.com/?title=100%25_Bran]
3108 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3113 Bug 4781, 5267: %28, %29 in autonumber URL
3115 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3117 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3123 Bug 4781: %26 in bracketed URL
3125 [http://www.example.com/?title=AT%26T link]
3127 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3132 Bug 4781, 5267: %26 in bracketed URL
3134 [http://www.example.com/?title=100%25_Bran link]
3136 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3141 Bug 4781, 5267: %28, %29 in bracketed URL
3143 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3145 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3150 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3152 Some [http://example.com/ pretty ''italics'' and stuff]!
3154 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3159 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3161 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3163 <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>
3168 External link containing double-single-quotes with no space separating the url from text in italics
3170 [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]].]
3172 <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>
3177 External link with comments in link text
3179 [http://www.google.com Google <!-- comment -->]
3181 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3186 URL-encoding in URL functions (single parameter)
3188 {{localurl:Some page|amp=&}}
3190 <p>/index.php?title=Some_page&amp=&
3195 URL-encoding in URL functions (multiple parameters)
3197 {{localurl:Some page|q=?&=&}}
3199 <p>/index.php?title=Some_page&q=?&amp=&
3206 http://example.com/index.php?foozoid%5B%5D=bar
3208 http://example.com/index.php?foozoid[]=bar
3210 <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>
3211 </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>
3216 IPv6 urls (bug 21261)
3220 http://[2404:130:0:1000::187:2]/index.php
3222 <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>
3227 Non-extlinks in brackets
3236 [{{echo|foo}} ''bar'']
3237 [{{echo|foo}}l's] errand
3238 [{{echo|foo}}l's errand]
3240 [url=http://example.com]
3253 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3258 Parsoid: Percent encoding in external links
3262 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3264 <p><a rel="mw:ExtLink"
3265 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3269 Parsoid: use url link syntax for links where the content is equal the link
3276 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3286 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3288 Normal text. '''''Bold italic text.''''' Normal text.
3290 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3291 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3297 Unclosed and unmatched quotes (php)
3301 '''''Bold italic text '''with bold deactivated''' in between.'''''
3303 '''''Bold italic text ''with italic deactivated'' in between.'''''
3307 ..spanning two paragraphs (should not work).'''
3309 '''Bold tag left open
3311 ''Italic tag left open
3315 <!-- Unmatching number of opening, closing tags: -->
3316 '''This year''''s election ''should'' beat '''last year''''s.
3318 ''Tom'''s car is bigger than ''Susan'''s.
3320 Plain ''italic'''s plain
3322 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3323 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3324 </p><p><b>Bold text..</b>
3325 </p><p>..spanning two paragraphs (should not work).
3326 </p><p><b>Bold tag left open</b>
3327 </p><p><i>Italic tag left open</i>
3329 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3330 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3331 </p><p>Plain <i>italic'</i>s plain
3334 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3335 # parser strips. The wikitext contains just the first half of the bold
3336 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3337 # differently than the PHP parser.)
3339 Unclosed and unmatched quotes (parsoid)
3343 '''''Bold italic text '''with bold deactivated''' in between.'''''
3345 '''''Bold italic text ''with italic deactivated'' in between.'''''
3349 ..spanning two paragraphs (should not work).'''
3351 '''Bold tag left open
3353 ''Italic tag left open
3357 <!-- Unmatching number of opening, closing tags: -->
3358 '''This year''''s election ''should'' beat '''last year''''s.
3360 ''Tom'''s car is bigger than ''Susan'''s.
3362 Plain ''italic'''s plain
3364 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3365 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3366 </p><p><b>Bold text..</b>
3367 </p><p>..spanning two paragraphs (should not work).<b></b>
3368 </p><p><b>Bold tag left open</b>
3369 </p><p><i>Italic tag left open</i>
3371 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3372 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3373 </p><p>Plain <i>italic'</i>s plain
3380 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3383 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3384 # is the bare minimum required by the spec, see:
3385 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3387 A table with no data. (php)
3394 # Parsoid team replies: empty table tags are legal in HTML5
3396 A table with no data. (parsoid)
3405 # A table with nothing but a caption is invalid XHTML, we might want to render
3406 # this as <p>caption</p>
3408 A table with nothing but a caption (php)
3418 </caption><tr><td></td></tr></table>
3421 # Parsoid team replies: table with only a caption is legal in HTML5
3423 A table with nothing but a caption (parsoid)
3431 <table><caption> caption</caption></table>
3435 A table with caption with default-spaced attributes and a table row
3438 |+ style="color: red;" | caption1
3444 <caption style="color: red;"> caption1
3453 A table with captions with non-default spaced attributes and a table row
3456 |+style="color: red;"|caption2
3457 |+ style="color: red;"| caption3
3463 <caption style="color: red;">caption2
3465 <caption style="color: red;"> caption3
3474 Table td-cell syntax variations
3478 | foo bar foo || baz
3479 | style='color:red;' | baz
3480 | style='color:red;' || baz
3487 <td> foo bar foo </td>
3490 <td style="color:red;"> baz
3492 <td> style='color:red;' </td>
3520 Simple table but with multiple dashes for row wikitext
3538 Multiplication table
3540 {| border="1" cellpadding="2"
3541 |+Multiplication table
3543 ! × !! 1 !! 2 !! 3
3561 <table border="1" cellpadding="2">
3562 <caption>Multiplication table
3609 Accept "||" in table headings
3624 Accept "||" in indented table headings
3634 </th></tr></table></dd></dl>
3639 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3656 Accept "| !" at start of line in tables (ignore !-attribute)
3660 | !style="color:red" | bar
3672 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 +/-
3676 |style='color:red;'|+1
3677 |style='color:blue;'|-1
3689 <td style="color:red;">+1
3691 <td style="color:blue;">-1
3715 |rowspan=2| Cell 2, row 1 (and 2)
3726 <td rowspan="2"> Cell 2, row 1 (and 2)
3744 {| bgcolor=#ABCDEF border=2
3749 |the original table again
3757 <table bgcolor="#ABCDEF" border="2">
3765 <td>the original table again
3771 Invalid attributes in table cell (bug 1830)
3786 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3789 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3793 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3794 <td>]" onmouseover="alert(document.cookie)">test
3803 Indented table markup mixed with indented pre content (proposed in bug 6200)
3808 Text that should be rendered preformatted
3816 <pre>Text that should be rendered preformatted
3825 Template-generated table cell attributes and cell content
3833 <td style="color: red"> Foo
3839 Table with row followed by newlines and table heading
3857 Table with empty line following the start tag
3874 # FIXME: Preserve the attribute properly (with an empty string as value) in
3875 # the PHP parser. Parsoid implements the behavior below.
3877 Table attributes with empty value
3889 </td></tr></tbody></table>
3894 Wikitext table with a lot of comments
3917 Wikitext table with double-line table cell
3934 Table cell with a single comment
3950 # The expected HTML structure in this test is debatable. The PHP parser does
3951 # not parse this kind of table at all. The main focus for Parsoid is on
3952 # round-tripping, so this output is ok for now. TODO: revisit!
3954 Wikitext table with html-syntax row (Parsoid)
3966 <td>foo</td></tr></tbody></table>
3970 Implicit <td> after a |-
3971 (PHP parser relies on Tidy to add the missing <td> tags)
3973 parsoid=wt2html,wt2wt
3986 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
3987 (PHP parser relies on Tidy to add the missing <td> tags)
3989 parsoid=wt2html,wt2wt
4001 <tr><td><pre>a</pre></td></tr>
4002 <tr><td> b</td></tr>
4008 Lists should be recognized in an implicit <td> context
4009 (PHP parser relies on Tidy to add the missing <td> tags)
4011 parsoid=wt2html,wt2wt
4020 <td><ul><li>a</li></ul></td>
4029 Plain link, capitalized
4033 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4038 Plain link, uncapitalized
4042 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4049 [[Main Page|The Main Page]]
4051 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4056 Piped link with comment in link text
4058 [[Main Page|The Main<!--front--> Page]]
4060 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4069 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4074 Broken link with fragment
4076 [[Zigzagzogzagzig#zug]]
4078 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4083 Special page link with fragment
4085 [[Special:Version#anchor]]
4087 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4092 Nonexistent special page link with fragment
4094 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4096 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4103 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4105 <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>
4112 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4114 <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>!!!
4125 Bug 43661: Piped links with identical prefixes
4127 [[prefixed article|prefixed articles with spaces]]
4129 [[prefixed article|prefixed articlesaoeu]]
4131 [[Main Page|Main Page test]]
4133 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4134 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4135 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4141 Link with HTML entity in suffix / tail
4143 [[Main Page]]", [[Main Page]]a
4145 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4150 Link with 3 brackets
4159 Piped link with 3 brackets
4161 [[[main page|the main page]]]
4163 <p>[[[main page|the main page]]]
4168 Link with multiple pipes
4170 [[Main Page|The|Main|Page]]
4172 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4179 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4181 <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>
4186 Piped link to namespace
4188 [[Meta:Disclaimers|The disclaimers]]
4190 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4197 [[Usually caused by a typo (oops}]]
4199 <p>[[Usually caused by a typo (oops}]]
4204 Link containing % (not as a hex sequence)
4208 <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>
4213 Link containing % as a single hex sequence interpreted to char
4217 <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>
4222 Link containing % as a double hex sequence interpreted to hex sequence
4226 <p>[[7%2525 Solution]]
4231 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4232 Example for such a section: == < ==
4234 [[%23%3c]][[%23%3e]]
4236 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4241 Link containing "<#" and ">#" as a hex sequences
4243 [[%3c%23]][[%3e%23]]
4245 <p>[[%3c%23]][[%3e%23]]
4250 Link containing an equals sign
4252 [[Special:BookSources/isbn=4-00-026157-6]]
4254 <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>
4261 Just a test of an article title containing a tilde.
4264 # note that links containing signatures, like [[Foo~~~~]], are
4265 # massaged by the pre-save transform (PST) and so the tildes are never
4266 # seen by the parser.
4268 Link containing a tilde
4272 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4277 Link containing double-single-quotes '' (bug 4598)
4279 [[Lista d''e paise d''o munno]]
4281 <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>
4286 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4288 Some [[Link|pretty ''italics'' and stuff]]!
4290 <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>!
4295 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4297 ''Some [[Link|pretty ''italics'' and stuff]]!
4299 <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>
4304 Link with double quotes in title part (literal) and alternate part (interpreted)
4306 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4310 [[''Pentecoste''|Pentecoste]]
4312 [[''Pentecoste''|''Pentecoste'']]
4314 <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>
4315 </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>
4316 </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>
4317 </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>
4322 Broken image links with HTML captions (bug 39700)
4324 [[File:Nonexistent|<script></script>]]
4325 [[File:Nonexistent|100px|<script></script>]]
4326 [[File:Nonexistent|<]]
4327 [[File:Nonexistent|a<i>b</i>c]]
4329 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4330 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4331 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4332 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4339 [[http://www.example.com]]
4341 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4346 Plain link to URL with link text
4348 [[http://www.example.com Link text]]
4350 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4355 Plain link to protocol-relative URL
4357 [[//www.example.com]]
4359 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4364 Plain link to protocol-relative URL with link text
4366 [[//www.example.com Link text]]
4368 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4373 Plain link to page with question mark in title
4379 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4380 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4385 # I'm fairly sure the expected result here is wrong.
4386 # We want these to be URL links, not pseudo-pages with URLs for titles....
4387 # However the current output is also pretty screwy.
4390 # I'm changing it to match the current output--it arguably makes more
4391 # sense in the light of the test above. Old expected result was:
4392 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4394 # But I think this test is bordering on "garbage in, garbage out" anyway.
4399 Piped link to URL: [[http://www.example.com|an example URL]]
4401 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4406 BUG 2: [[page|http://url/]] should link to page, not http://url/
4408 [[Main Page|http://url/]]
4410 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4415 BUG 337: Escaped self-links should be bold
4419 [[Bug462]] [[Bug462]]
4421 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4426 Self-link to section should not be bold
4430 [[Main Page#section]]
4432 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4443 Self-link to numeric title
4449 <p><strong class="selflink">0</strong>
4454 Link to numeric-equivalent title
4460 <p><a href="/wiki/00" title="00">00</a>
4465 <nowiki> inside a link
4467 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4469 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4474 Non-breaking spaces in title
4476 [[ Main Page ]]
4478 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4483 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4489 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4494 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4500 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4505 Internal link with en linktrail: no apostrophes (bug 27473)
4511 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4516 Internal link with ca linktrail with apostrophes (bug 27473)
4522 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4527 Internal link with kaa linktrail with apostrophes (bug 27473)
4533 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4544 Internal link with is link prefix
4548 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4550 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4561 Internal link with is link trail and link prefix
4565 [[mótmælendatrú|xxx]]ar
4567 mótmælenda[[söfnuður]]
4568 mótmælenda[[söfnuður|söfnuðir]]
4569 mótmælenda[[söfnuður|söfnuðir]]xxx
4571 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4572 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4573 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4574 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4575 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4580 Parsoid link trail escaping
4582 parsoid=html2wt,html2html
4586 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4590 Parsoid link prefix escaping
4593 parsoid=html2wt,html2html
4595 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4597 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4601 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4609 [http://wp.org ''foo'']
4611 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4612 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4613 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4614 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4619 ### Interwiki links (see maintenance/interwiki.sql)
4623 Inline interwiki link
4625 [[MeatBall:SoftSecurity]]
4627 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4632 Inline interwiki link with empty title (bug 2372)
4636 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4641 Interwiki link encoding conversion (bug 1636)
4643 *[[Wikipedia:ro:Olteniţa]]
4644 *[[Wikipedia:ro:Olteniţa]]
4646 <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>
4647 </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>
4653 Interwiki link with fragment (bug 2130)
4655 [[MeatBall:SoftSecurity#foo]]
4657 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4672 Double interlanguage link
4683 Interlanguage link, with prefix links
4695 Double interlanguage link, with prefix links (bug 8897)
4708 Parsoid-specific test: Wikilinks with should RT properly
4714 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4719 Parsoid: handle constructor well
4727 <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>
4730 <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>
4734 ## Redirects, Parsoid-only
4737 Simple redirect to page
4741 #REDIRECT [[Main Page]]
4743 <link rel="mw:PageProp/redirect" href="./Main_Page">
4747 Redirect to category
4751 #REDIRECT [[Category:Foo]]
4753 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4757 Redirect to category page
4759 parsoid=wt2html,html2html
4761 #REDIRECT [[:Category:Foo]]
4763 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4767 Redirect to image page
4771 #REDIRECT [[File:Wiki.png]]
4773 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4777 Redirect to language
4781 #REDIRECT [[en:File:Wiki.png]]
4783 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4787 Redirect to interwiki
4791 #REDIRECT [[meatball:File:Wiki.png]]
4793 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4810 Broken br tag sanitization
4820 # TODO: Fix html2html mode (bug 51055)!
4822 Parsoid: Broken br tag recognition
4832 Incorrecly removing closing slashes from correctly formed XHTML
4834 <br style="clear:both;" />
4836 <p><br style="clear:both;" />
4841 Failing to transform badly formed HTML into correct XHTML
4843 <br style="clear: left;">
4844 <br style="clear: right;">
4845 <br style="clear: both;">
4847 <p><br style="clear: left;" />
4848 <br style="clear: right;" />
4849 <br style="clear: both;" />
4854 Handling html with a div self-closing tag
4863 <p><div title />
4867 <p><div title=bar />
4868 <div title=bar/>
4870 <div title="bar/"></div>
4876 Handling html with a br self-closing tag
4885 <p><br title="title" />
4886 <br title="title" />
4895 Horizontal ruler (should it add that extra space?)
4909 Horizontal ruler -- 4+ dashes render hr
4918 Horizontal ruler -- eats additional dashes on the same line
4927 Horizontal ruler -- does not collapse dashes on consecutive lines
4938 Horizontal ruler -- <4 dashes render as plain text
4947 Horizontal ruler -- Supports content following dashes on same line
4956 ### Block-level elements
4979 <ol><li>Numbered list
4996 ***#Number on level 4
4998 **#Number on level 3
4999 **#Number on level 3
5003 #** Level 3, but ordered
5006 <ol><li> with numbers
5008 <ul><li> and bullets
5010 <ol><li> and numbers
5012 </li><li>bullets again
5013 <ul><li>bullet level 2
5014 <ul><li>bullet level 3
5015 <ol><li>Number on level 4
5018 </li><li>bullet level 2
5019 <ol><li>Number on level 3
5020 </li><li>Number on level 3
5023 <ol><li>number level 2
5026 <ul><li><ul><li> Level 3
5030 <ol><li><ul><li><ul><li> Level 3, but ordered
5064 Nested lists 3 (first element empty)
5077 Nested lists 4 (first element empty)
5090 Nested lists 5 (both elements empty)
5103 Nested lists 6 (both elements empty)
5116 Nested lists 7 (skip initial nesting levels)
5120 <ul><li><ul><li><ul><li> foo
5128 Nested lists 8 (multiple nesting transitions)
5136 <ul><li><ul><li> bar
5146 1. Lists with start-of-line-transparent tokens before bullets: Comments
5160 2. Lists with start-of-line-transparent tokens before bullets: Template close
5172 Unbalanced closing block tags break a list
5173 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5183 </li></ul></div><div>
5189 Unbalanced closing non-block tags don't break a list
5190 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5200 <ul><li>a<span></span>
5206 Unclosed formatting tags that straddle lists are closed and reopened
5207 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5215 </li><li> <s> b </s>
5220 List embedded in a non-block tag
5221 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5229 <p><small></small></p>
5235 <p><small></small></p>
5239 List items are not parsed correctly following a <pre> block (bug 785)
5245 <ul><li> <pre>foo</pre>
5246 </li><li> <pre>bar</pre>
5253 List items from template
5264 * notSOL{{inner list}}
5283 List interrupted by empty line or heading
5293 <ul><li><ul><li> bar
5296 <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>
5297 <ul><li> Another list item
5303 Multiple list tags generated by templates
5318 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5321 <!--This line will NOT split the list-->
5323 <!--This line will NOT split the list either-->
5325 <!--foo--> <!--This line with more than 1 comment will split the list-->
5339 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5341 parsoid=wt2html,wt2wt
5345 * {{echo|<li>templated li-hack}}
5346 * <!--foo--> <li> unsupported li-hack with preceding comments
5349 <li><li>not a li-hack
5355 <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>
5356 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5359 <li></li><li>not a li-hack
5365 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5376 <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>
5385 Magic Word: {{CURRENTDAY}}
5394 Magic Word: {{CURRENTDAY2}}
5403 Magic Word: {{CURRENTDAYNAME}}
5412 Magic Word: {{CURRENTDOW}}
5421 Magic Word: {{CURRENTMONTH}}
5430 Magic Word: {{CURRENTMONTHABBREV}}
5432 {{CURRENTMONTHABBREV}}
5439 Magic Word: {{CURRENTMONTHNAME}}
5441 {{CURRENTMONTHNAME}}
5448 Magic Word: {{CURRENTMONTHNAMEGEN}}
5450 {{CURRENTMONTHNAMEGEN}}
5457 Magic Word: {{CURRENTTIME}}
5466 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5475 Magic Word: {{CURRENTYEAR}}
5484 Magic Word: {{FULLPAGENAME}}
5486 title=[[User:Ævar Arnfjörð Bjarmason]]
5490 <p>User:Ævar Arnfjörð Bjarmason
5495 Magic Word: {{FULLPAGENAMEE}}
5497 title=[[User:Ævar Arnfjörð Bjarmason]]
5501 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5506 Magic Word: {{NAMESPACE}}
5508 title=[[User:Ævar Arnfjörð Bjarmason]]
5517 Magic Word: {{NAMESPACEE}}
5519 title=[[User:Ævar Arnfjörð Bjarmason]]
5528 Magic Word: {{NAMESPACENUMBER}}
5530 title=[[User:Ævar Arnfjörð Bjarmason]]
5539 Magic Word: {{NUMBEROFFILES}}
5548 Magic Word: {{PAGENAME}}
5550 title=[[User:Ævar Arnfjörð Bjarmason]]
5554 <p>Ævar Arnfjörð Bjarmason
5559 Magic Word: {{PAGENAME}} with metacharacters
5561 title=[['foo & bar = baz']]
5565 <p><i>'foo & bar = baz'</i>
5570 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5572 title=[[*RFC 1234 http://example.com/]]
5576 <p>*RFC 1234 http://example.com/
5581 Magic Word: {{PAGENAMEE}}
5583 title=[[User:Ævar Arnfjörð Bjarmason]]
5587 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5592 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5594 title=[[*RFC 1234 http://example.com/]]
5598 <p>*RFC_1234_http://example.com/
5603 Magic Word: {{REVISIONID}}
5612 Magic Word: {{SCRIPTPATH}}
5621 Magic Word: {{SERVER}}
5625 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5630 Magic Word: {{SERVERNAME}}
5639 Magic Word: {{SITENAME}}
5648 Case-sensitive magic words, when cased differently, should just be template transclusions
5655 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5656 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5657 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5658 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5663 Case-insensitive magic words should still work with weird casing.
5673 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5678 Namespace 1 {{ns:1}}
5687 Namespace 1 {{ns:01}}
5696 Namespace 0 {{ns:0}} (bug 4783)
5704 Namespace 0 {{ns:00}} (bug 4783)
5712 Namespace -1 {{ns:-1}}
5721 Namespace User {{ns:User}}
5730 Namespace User talk {{ns:User_talk}}
5739 Namespace User talk {{ns:uSeR tAlK}}
5748 Namespace File {{ns:File}}
5757 Namespace File {{ns:Image}}
5766 Namespace (lang=de) Benutzer {{ns:User}}
5777 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5783 <p>Benutzer Diskussion
5791 {{urlencode:hi world?!}}
5792 {{urlencode:hi world?!|WIKI}}
5793 {{urlencode:hi world?!|PATH}}
5794 {{urlencode:hi world?!|QUERY}}
5807 Magic links: internal link to RFC (bug 479)
5811 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5816 Magic links: RFC (bug 479)
5820 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5825 Magic links: ISBN (bug 1937)
5829 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5834 Magic links: PMID incorrectly converts space to underscore
5838 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5847 Nonexistent template
5849 {{thistemplatedoesnotexist}}
5851 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5856 Template with invalid target containing tags
5858 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5860 <p>{{a<b>b</b>|foo|a=b|a = b}}
5865 Template with invalid target containing unclosed tag
5867 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5869 <p>{{a<b>|foo|a=b|a = b}}</b>
5876 This is a test template
5884 <p>This is a test template
5889 Template with explicit namespace
5893 <p>This is a test template
5901 This is a test template with parameter {{{param}}}
5907 {{paramtest|param=foo}}
5909 <p>This is a test template with parameter foo
5914 Template:paramtestnum
5920 Template unnamed parameter
5922 {{paramtestnum|Main Page|the main page}}
5924 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5929 Template:templatesimple
5935 Template:templateredirect
5937 #redirect [[Template:templatesimple]]
5941 Template:templateasargtestnum
5947 Template:templateasargtest
5949 {{template{{{templ}}}}}
5953 Template:templateasargtest2
5959 Template with template name as unnamed argument
5961 {{templateasargtestnum|templatesimple}}
5968 Template with template name as argument
5970 {{templateasargtest|templ=simple}}
5977 Template with template name as argument (2)
5979 {{templateasargtest2|templ=templatesimple}}
5986 Template:templateasargtestdefault
5988 {{{{{templ|templatesimple}}}}}
5998 Template with default value
6000 {{templateasargtestdefault}}
6007 Template with default value (value set)
6009 {{templateasargtestdefault|templ=templa}}
6018 {{templateredirect}}
6025 Template with argument in separate line
6027 {{ templateasargtest |
6035 Template with complex template as argument
6038 param ={{ templateasargtest |
6041 <p>This is a test template with parameter (test)
6046 Template with thumb image (with link in description)
6049 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6051 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>
6056 Template:complextemplate
6058 {{{1}}} {{paramtest|
6059 param ={{{param}}}}}
6063 Template with complex arguments
6066 param ={{ templateasargtest |
6067 templ = simple }}|[[Template:complextemplate|link]]}}
6069 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6074 BUG 553: link with two variables in a piped link
6077 |[[{{{1}}}|{{{2}}}]]
6082 <td>[[{{{1}}}|{{{2}}}]]
6088 Magic variable as template parameter
6090 {{paramtest|param={{SITENAME}}}}
6092 <p>This is a test template with parameter MediaWiki
6099 [[{{{param}}}|link]]
6103 Template parameter as link source
6105 {{linktest|param=Main Page}}
6107 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6112 Template-generated attribute string (k='v')
6114 <span {{attr_str|id|v1}}>bar</span>
6116 <p><span id="v1">bar</span>
6123 including another template, {{paramtest|param={{{arg}}}}}
6127 Template passing argument to another template
6129 {{paramtest2|arg='hmm'}}
6131 <p>including another template, This is a test template with parameter 'hmm'
6142 Template as link source
6146 [[{{linktest2}}|Main Page]]
6148 [[{{linktest2}}]]Page
6150 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6151 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6152 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6170 Template infinite loop
6174 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6179 Template from main namespace
6198 BUG 529: Template with table, not included at beginning of line
6217 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6237 BUG 41: Template parameters shown as broken links
6246 Template with targets containing wikilinks
6250 {{[[{{echo|foo}}]]}}
6252 {{{{echo|[[foo}}]]}}
6254 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6255 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6263 ''None'' of '''this''' should be
6265 but rather passed unmodified
6269 # hmm, fix this or just deprecate msgnw and document its behavior?
6275 {{msgnw:MSGNW test}}
6277 <p>''None'' of '''this''' should be
6279 but rather passed unmodified
6287 {{int:youhavenewmessages|lots of money|not!}}
6289 <p>You have lots of money (not!).
6296 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6300 <includeonly> and <noinclude> being included
6311 <onlyinclude>Foo</onlyinclude>bar
6315 <onlyinclude> being included
6327 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6331 <onlyinclude> and <includeonly> being included
6340 <includeonly> and <noinclude> on a page
6342 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6349 Un-closed <noinclude>
6356 <onlyinclude> on a page
6358 <onlyinclude>Foo</onlyinclude>bar
6365 Un-closed <onlyinclude>
6372 Self-closed noinclude, includeonly, onlyinclude tags
6383 Unbalanced includeonly and noinclude tags
6387 |b</noinclude></noinclude>
6388 |c</noinclude></includeonly>
6389 |d</includeonly></includeonly>
6398 <td>c</includeonly>
6400 <td>d</includeonly></includeonly>
6406 Template:Includeonly section
6409 ==Includeonly section==
6415 Bug 6563: Edit link generation for section shown by <includeonly>
6417 {{includeonly section}}
6419 <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>
6420 <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>
6424 # Uses same input as the contents of [[Template:Includeonly section]]
6426 Bug 6563: Section extraction for section shown by <includeonly>
6431 ==Includeonly section==
6439 Bug 6563: Edit link generation for section suppressed by <includeonly>
6442 ==Includeonly section==
6446 <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>
6451 Bug 6563: Section extraction for section suppressed by <includeonly>
6456 ==Includeonly section==
6464 Un-closed <includeonly>
6471 ### <includeonly> and <noinclude> in attributes
6474 0. includeonly around the entire attribute
6476 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6478 <p><span id="v2">bar</span>
6483 1. includeonly in html attr key
6485 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6487 <p><span id="foo">bar</span>
6492 2. includeonly in html attr value
6494 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6495 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6497 <p><span id="v1">bar</span>
6498 <span id="v1">bar</span>
6503 3. includeonly in part of an attr value
6505 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6507 <p><span style="color:red;">bar</span>
6512 ### Testing parsing of templates where a template arg
6513 ### has the same name as the template itself.
6523 Templates: Template Name/Arg clash: 1. Use of positional param
6532 Templates: Template Name/Arg clash: 2. Use of named param
6541 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6550 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6554 Templates: 1. Simple use
6563 Templates: 2. Inside a block tag
6565 <div>{{echo|Foo}}</div>
6572 Templates: P-wrapping: 1a. Templates on consecutive lines
6583 Templates: P-wrapping: 1b. Templates on consecutive lines
6597 Templates: P-wrapping: 1c. Templates on consecutive lines
6600 {{echo|bar}} <div>baz</div>
6609 Templates: P-wrapping: 1d. Template preceded by comment-only line
6611 parsoid=wt2html,wt2wt
6617 <p typeof="mw:Transclusion">Bar
6622 Templates: Inline Text: 1. Multiple tmeplate uses
6624 {{echo|Foo}}bar{{echo|baz}}
6631 Templates: Inline Text: 2. Back-to-back template uses
6633 {{echo|Foo}}{{echo|bar}}
6640 Templates: Block Tags: 1. Multiple template uses
6642 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6644 <div>Foo</div><div>bar</div><div>baz</div>
6649 Templates: Block Tags: 2. Back-to-back template uses
6651 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6653 <div>Foo</div><div>bar</div>
6658 Templates: Links: 1. Simple example
6660 {{echo|[[Foo|bar]]}}
6662 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6667 Templates: Links: 2. Generation of link href
6669 [[{{echo|Foo}}|bar]]
6671 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6676 Templates: Links: 3. Generation of part of a link href
6678 [[Fo{{echo|o}}|bar]]
6682 [[Foo{{echo|bar}}baz]]
6684 [[Foo{{echo|bar}}|bar]]
6686 [[:Foo{{echo|bar}}]]
6688 [[:Foo{{echo|bar}}|bar]]
6690 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6691 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6692 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6693 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6694 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6695 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6700 Templates: Links: 4. Multiple templates generating link href
6702 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6704 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6709 Templates: Links: 5. Generation of link text
6711 [[Foo|{{echo|bar}}]]
6713 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6718 Templates: Links: 5. Nested templates (only outermost template should be marked)
6720 {{echo|[[{{echo|Foo}}|bar]]}}
6722 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6727 Templates: HTML Tag: 1. Generation of HTML attr. key
6729 <div {{echo|style}}="color:red;">foo</div>
6731 <div style="color:red;">foo</div>
6736 Templates: HTML Tag: 2. Generation of HTML attr. value
6738 <div style={{echo|'color:red;'}}>foo</div>
6740 <div style="color:red;">foo</div>
6745 Templates: HTML Tag: 3. Generation of HTML attr key and value
6747 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6749 <div style="color:red;">foo</div>
6754 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6756 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6758 <div title="This is a long title with just one piece templated">foo</div>
6763 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6765 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6767 <div title="This is a long title with just one piece templated">foo</div>
6772 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6774 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6776 <div title="This is a long title with just one piece templated">foo</div>
6781 Templates: HTML Tag: 7. Generation of partial attribute key string
6783 <div st{{echo|yle}}="color:red;">foo</div>
6785 <div style="color:red;">foo</div>
6790 Templates: HTML Tables: 1. Generating start of a HTML table
6792 {{echo|<table><tr><td>foo</td>}}</tr></table>
6794 <table><tr><td>foo</td></tr></table>
6799 Templates: HTML Tables: 2a. Generating middle of a HTML table
6801 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6803 <table><tr><td>foo</td></tr></table>
6808 Templates: HTML Tables: 2b. Generating middle of a HTML table
6810 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6812 <table><tr><td>foo</td></tr></table>
6817 Templates: HTML Tables: 3. Generating end of a HTML table
6819 <table><tr>{{echo|<td>foo</td></tr></table>}}
6821 <table><tr><td>foo</td></tr></table>
6826 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6828 {{echo|<table>}}<tr><td>foo</td></tr></table>
6830 <table><tr><td>foo</td></tr></table>
6835 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6837 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6839 <table><tr><td>foo</td></tr></table>
6844 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6846 <table><tr>{{echo|<td>}}foo</td></tr></table>
6848 <table><tr><td>foo</td></tr></table>
6853 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6855 <table><tr><td>foo{{echo|</td>}}</tr></table>
6857 <table><tr><td>foo</td></tr></table>
6862 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6864 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6866 <table><tr><td>foo</td></tr></table>
6871 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6873 <table><tr><td>foo</td></tr>{{echo|</table>}}
6875 <table><tr><td>foo</td></tr></table>
6880 Templates: HTML Tables: 5. Proper fostering of categories from inside
6882 parsoid=wt2html,wt2wt
6884 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6885 <!--Two categories (Bug 50330)-->
6886 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6888 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6889 <!--Two categories (Bug 50330)-->
6890 <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>
6894 Templates: Wiki Tables: 1a. Fostering of entire template content
6902 <tr><td></td></tr></table>
6907 Templates: Wiki Tables: 1b. Fostering of entire template content
6920 <tr><td></td></tr></table>
6925 Templates: Wiki Tables: 2. Fostering of partial template content
6935 <tr><td></td></tr></table>
6940 Templates: Wiki Tables: 3. td-content via multiple templates
6943 {{echo|{{pipe}}a}}{{echo|b}}
6954 Templates: Wiki Tables: 4. Templated tags, no content
6960 <tr><td></td></tr></table>
6965 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6979 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6993 Templates: Lists: Multi-line list-items via templates
6995 *{{echo|a {{nonexistent|
6997 *{{echo|b {{nonexistent|
7000 <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>
7001 </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>
7007 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7009 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7011 <p><i>ab</i>c<i>d</i>e
7016 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7017 (PHP parser generates misnested html)
7019 parsoid=wt2html,wt2wt
7021 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7023 <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>
7027 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7028 (PHP parser generates misnested html)
7030 parsoid=wt2html,wt2wt
7032 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7034 <div typeof="mw:Transclusion"><i>a</i></div>
7035 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7036 <div typeof="mw:Transclusion">e</div>
7040 Templates: Ugly nesting: 4. Divs opened/closed across templates
7042 a<div>b{{echo|c</div>d}}e
7049 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7055 |{{echo|foo</table>}}
7059 <table typeof="mw:Transclusion">
7062 <td>foo</td></tr></tbody></table><span>bar</span>
7066 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7076 <td>1. {{echo|foo </table>}}</td>
7078 <td>2. {{echo|baz </table>}}</td>
7091 <table about="#mwt1" typeof="mw:Transclusion">
7096 <td >1. foo </td></tr></tbody></table></td>
7098 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7099 </span><span about="#mwt1">
7101 abc</span><span about="#mwt1">
7102 </span><span about="#mwt1">
7103 </span><span about="#mwt1">
7104 </span><span about="#mwt1">
7105 </span><span about="#mwt1">
7107 xyz</span><span about="#mwt1">
7108 </span><span about="#mwt1">
7113 Templates: Ugly templates: 3. newline-only template parameter
7122 # This looks like a bug: a single newline triggers p/br for some reason.
7124 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7135 Parser Functions: 1. Simple example
7144 Parser Functions: 2. Nested use (only outermost should be marked up)
7153 ### Pre-save transform tests
7156 pre-save transform: subst:
7162 This is a test template
7166 pre-save transform: normal template
7176 pre-save transform: nonexistent template
7180 {{thistemplatedoesnotexist}}
7182 {{thistemplatedoesnotexist}}
7187 pre-save transform: subst magic variables
7196 # This is bug 89, which I fixed. -- wtm
7198 pre-save transform: subst: templates with parameters
7202 {{subst:paramtest|param="something else"}}
7204 This is a test template with parameter "something else"
7210 <nowiki>'''not wiki'''</nowiki>
7214 pre-save transform: nowiki in subst (bug 1188)
7218 {{subst:nowikitest}}
7220 <nowiki>'''not wiki'''</nowiki>
7225 Template:commenttest
7227 This template has <!-- a comment --> in it.
7231 pre-save transform: comment in subst (bug 1936)
7235 {{subst:commenttest}}
7237 This template has <!-- a comment --> in it.
7241 pre-save transform: unclosed tag
7245 <nowiki>'''not wiki'''
7247 <nowiki>'''not wiki'''
7251 pre-save transform: mixed tag case
7255 <NOwiki>'''not wiki'''</noWIKI>
7257 <NOwiki>'''not wiki'''</noWIKI>
7261 pre-save transform: unclosed comment in <nowiki>
7265 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7267 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7270 # Leading @ in this template definition works around a limitation
7271 # in parsoid's parserTests which otherwise strips the <span> from the
7272 # result (confusing it for a template wrapper)
7276 @<span onmouseover="alert('crap')">Oh no</span>
7280 (confirming safety of fix for subst bug 1936)
7282 {{Template:dangerous}}
7284 <p>@<span>Oh no</span>
7289 pre-save transform: comment containing gallery (bug 5024)
7293 <!-- <gallery>data</gallery> -->
7295 <!-- <gallery>data</gallery> -->
7299 pre-save transform: comment containing extension
7303 <!-- <tag>data</tag> -->
7305 <!-- <tag>data</tag> -->
7309 pre-save transform: comment containing nowiki
7313 <!-- <nowiki>data</nowiki> -->
7315 <!-- <nowiki>data</nowiki> -->
7319 pre-save transform: <noinclude> in subst (bug 3298)
7329 pre-save transform: <onlyinclude> in subst (bug 3298)
7341 {{<includeonly>subst:</includeonly>Includes}}
7345 Template:SafeSubstTest
7347 {{<includeonly>safesubst:</includeonly>Includes}}
7351 bug 22297: safesubst: works during PST
7355 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7361 bug 22297: safesubst: works during normal parse
7370 subst: does not work during normal parse
7374 <p>{{subst:Includes}}
7379 pre-save transform: context links ("pipe trick")
7383 [[Article (context)|]]
7386 [[Bar:Article (context)|]]
7387 [[:Bar:Article (context)|]]
7389 [[|Article (context)]]
7393 [[Article (context)|Article]]
7394 [[Bar:Article|Article]]
7395 [[:Bar:Article|Article]]
7396 [[Bar:Article (context)|Article]]
7397 [[:Bar:Article (context)|Article]]
7399 [[Article (context)]]
7400 [[Bar:X (Y) Z|X (Y) Z]]
7401 [[:Bar:X (Y) Z|X (Y) Z]]
7405 pre-save transform: context links ("pipe trick") with interwiki prefix
7409 [[interwiki:Article|]]
7410 [[:interwiki:Article|]]
7411 [[interwiki:Bar:Article|]]
7412 [[:interwiki:Bar:Article|]]
7414 [[interwiki:Article|Article]]
7415 [[:interwiki:Article|Article]]
7416 [[interwiki:Bar:Article|Bar:Article]]
7417 [[:interwiki:Bar:Article|Bar:Article]]
7421 pre-save transform: context links ("pipe trick") with parens in title
7423 pst title=[[Somearticle (context)]]
7427 [[Article (context)|Article]]
7431 pre-save transform: context links ("pipe trick") with comma in title
7433 pst title=[[Someplace, Somewhere]]
7436 [[Otherplace, Elsewhere|]]
7437 [[Otherplace, Elsewhere, Anywhere|]]
7439 [[Otherplace, Somewhere|Otherplace]]
7440 [[Otherplace, Elsewhere|Otherplace]]
7441 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7445 pre-save transform: context links ("pipe trick") with parens and comma
7447 pst title=[[Someplace (IGNORED), Somewhere]]
7450 [[Otherplace (place), Elsewhere|]]
7452 [[Otherplace, Somewhere|Otherplace]]
7453 [[Otherplace (place), Elsewhere|Otherplace]]
7457 pre-save transform: context links ("pipe trick") with comma and parens
7459 pst title=[[Who, me? (context)]]
7462 [[Me, Myself, and I (1937 song)|]]
7464 [[Yes, you. (context)|Yes, you.]]
7465 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7469 pre-save transform: context links ("pipe trick") with namespace
7471 pst title=[[Ns:Somearticle]]
7475 [[Ns:Article|Article]]
7479 pre-save transform: context links ("pipe trick") with namespace and parens
7481 pst title=[[Ns:Somearticle (context)]]
7485 [[Ns:Article (context)|Article]]
7489 pre-save transform: context links ("pipe trick") with namespace and comma
7491 pst title=[[Ns:Somearticle, Context, Whatever]]
7495 [[Ns:Article, Context, Whatever|Article]]
7499 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7501 pst title=[[Ns:Somearticle, Context (context)]]
7505 [[Ns:Article (context)|Article]]
7509 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7511 pst title=[[Ns:Somearticle (IGNORED), Context]]
7515 [[Ns:Article, Context|Article]]
7519 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7523 [[Article(context)|]]
7524 [[Bar:Article(context)|]]
7525 [[:Bar:Article(context)|]]
7526 [[|Article(context)]]
7530 [[Article(context)|Article]]
7531 [[Bar:Article(context)|Article]]
7532 [[:Bar:Article(context)|Article]]
7533 [[Article(context)]]
7535 [[:Bar:X(Y)Z|X(Y)Z]]
7539 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7543 [[Article (context)|]]
7544 [[Bar:Article (context)|]]
7545 [[:Bar:Article (context)|]]
7546 [[|Article (context)]]
7550 [[Article (context)|Article]]
7551 [[Bar:Article (context)|Article]]
7552 [[:Bar:Article (context)|Article]]
7553 [[Article (context)]]
7554 [[Bar:X (Y) Z|X (Y) Z]]
7555 [[:Bar:X (Y) Z|X (Y) Z]]
7559 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7563 [[Article(context)|]]
7564 [[Bar:Article(context)|]]
7565 [[:Bar:Article(context)|]]
7566 [[|Article(context)]]
7570 [[Article(context)|Article]]
7571 [[Bar:Article(context)|Article]]
7572 [[:Bar:Article(context)|Article]]
7573 [[Article(context)]]
7575 [[:Bar:X(Y)Z|X(Y)Z]]
7579 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7583 [[Article (context), context|]]
7584 [[Article (context),context|]]
7585 [[Bar:Article (context), context|]]
7586 [[Bar:Article (context),context|]]
7587 [[:Bar:Article (context), context|]]
7588 [[:Bar:Article (context),context|]]
7590 [[Article (context), context|Article]]
7591 [[Article (context),context|Article]]
7592 [[Bar:Article (context), context|Article]]
7593 [[Bar:Article (context),context|Article]]
7594 [[:Bar:Article (context), context|Article]]
7595 [[:Bar:Article (context),context|Article]]
7599 pre-save transform: trim trailing empty lines
7603 Empty lines are trimmed
7609 Empty lines are trimmed
7613 pre-save transform: Signature expansion
7618 * <noinclude>~~~</noinclude>
7619 * <includeonly>~~~</includeonly>
7620 * <onlyinclude>~~~</onlyinclude>
7622 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7623 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7624 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7625 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7630 pre-save transform: Signature expansion in nowiki tags (bug 93)
7636 <nowiki>~~~~</nowiki>
7638 <includeonly><nowiki>~~~~</nowiki></includeonly>
7640 <noinclude><nowiki>~~~~</nowiki></noinclude>
7642 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7644 {{subst:Foo}} shall be converted to FOO
7646 As well as inside noinclude/onlyinclude
7647 <noinclude>{{subst:Foo}}</noinclude>
7648 <onlyinclude>{{subst:Foo}}</onlyinclude>
7650 But not inside includeonly
7651 <includeonly>{{subst:Foo}}</includeonly>
7655 <nowiki>~~~~</nowiki>
7657 <includeonly><nowiki>~~~~</nowiki></includeonly>
7659 <noinclude><nowiki>~~~~</nowiki></noinclude>
7661 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7663 FOO shall be converted to FOO
7665 As well as inside noinclude/onlyinclude
7666 <noinclude>FOO</noinclude>
7667 <onlyinclude>FOO</onlyinclude>
7669 But not inside includeonly
7670 <includeonly>{{subst:Foo}}</includeonly>
7674 ### Message transform tests
7677 message transform: magic variables
7687 message transform: should not transform wiki markup
7697 message transform: <noinclude> in transcluded template (bug 4926)
7707 message transform: <onlyinclude> in transcluded template (bug 4926)
7717 {{#special:}} page name, known
7721 {{#special:Recentchanges}}
7723 Special:RecentChanges
7727 {{#special:}} page name with subpage, known
7731 {{#special:Recentchanges/param}}
7733 Special:RecentChanges/param
7737 {{#special:}} page name, unknown
7741 {{#special:foobar nonexistent}}
7743 Special:Foobar nonexistent
7747 {{#speciale:}} page name, known
7751 {{#speciale:Recentchanges}}
7753 Special:RecentChanges
7757 {{#speciale:}} page name with subpage, known
7761 {{#speciale:Recentchanges/param}}
7763 Special:RecentChanges/param
7767 {{#speciale:}} page name, unknown
7771 {{#speciale:foobar nonexistent}}
7773 Special:Foobar_nonexistent
7782 [[Image:foobar.jpg]]
7784 <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>
7791 [[Image:foobar.jpg|right]]
7793 <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>
7798 Simple image (using File: namespace, now canonical)
7802 <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>
7809 [[Image:foobar.jpg|right|Caption text]]
7811 <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>
7816 Image with empty attribute
7818 [[Image:foobar.jpg|right||Caption text]]
7820 <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>
7825 Image with link tails
7827 123[[Image:foobar.jpg]]456
7828 123[[Image:foobar.jpg|right]]456
7829 123[[Image:foobar.jpg|thumb]]456
7831 <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
7833 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
7834 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
7839 Image with multiple captions -- only last one is accepted
7841 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7843 <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>
7848 Image with width attribute at different positions
7850 [[Image:foobar.jpg|200px|right|Caption]]
7851 [[Image:foobar.jpg|right|200px|Caption]]
7852 [[Image:foobar.jpg|right|Caption|200px]]
7854 <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>
7855 <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>
7856 <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>
7861 Image with link parameter, wiki target
7863 [[Image:foobar.jpg|link=Target page]]
7865 <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>
7870 Image with link parameter, URL target
7872 [[Image:foobar.jpg|link=http://example.com/]]
7874 <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>
7879 Image with link parameter, wgExternalLinkTarget
7881 [[Image:foobar.jpg|link=http://example.com/]]
7883 wgExternalLinkTarget='foobar'
7885 <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>
7890 Image with link parameter, wgNoFollowLinks set to false
7892 [[Image:foobar.jpg|link=http://example.com/]]
7894 wgNoFollowLinks=false
7896 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7901 Image with link parameter, wgNoFollowDomainExceptions
7903 [[Image:foobar.jpg|link=http://example.com/]]
7905 wgNoFollowDomainExceptions='example.com'
7907 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7912 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7914 [[Image:foobar.jpg|link=http://example.com/|Title]]
7916 wgExternalLinkTarget='foobar'
7918 <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>
7923 Image with empty link parameter
7925 [[Image:foobar.jpg|link=]]
7927 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7932 Image with link parameter (wiki target) and unnamed parameter
7934 [[Image:foobar.jpg|link=Target page|Title]]
7936 <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>
7941 Image with link parameter (URL target) and unnamed parameter
7943 [[Image:foobar.jpg|link=http://example.com/|Title]]
7945 <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>
7950 Thumbnail image with link parameter
7954 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7956 <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>
7961 Manually-specified thumbnail image
7965 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7967 <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>
7972 Manually-specified thumbnail image with explicit link to wiki page
7976 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7978 <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>
7983 Manually-specified thumbnail image with explicit link to url
7987 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7989 <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>
7994 Manually-specified thumbnail image with explicit no link
7998 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8000 <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>
8005 Manually-specified thumbnail image with explicit link and alt text
8009 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8011 <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>
8016 Image with frame and link
8018 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8020 <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>
8025 Image with frame and link and explicit alt
8027 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8029 <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>
8034 Image with wiki markup in implicit alt
8036 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8038 <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>
8043 Image with wiki markup in explicit alt
8045 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8047 <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>
8052 Link to image page- image page normally doesn't exists, hence edit link
8053 Add test with existing image page
8054 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8058 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8063 bug 18784 Link to non-existent image page with caption should use caption as link text
8065 [[:Image:test|caption]]
8067 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8072 Frameless image caption with a free URL
8074 [[Image:foobar.jpg|http://example.com]]
8076 <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>
8081 Thumbnail image caption with a free URL
8083 [[Image:foobar.jpg|thumb|http://example.com]]
8085 <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>
8090 Thumbnail image caption with a free URL and explicit alt
8092 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8094 <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>
8099 SVG thumbnails with no language set
8102 [[File:Foobar.svg|thumb|width=200]]
8104 <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>
8109 SVG thumbnails with language de
8112 [[File:Foobar.svg|thumb|width=200|lang=de]]
8114 <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>
8119 SVG thumbnails with invalid language code
8122 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8124 <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>
8129 BUG 1887: A ISBN with a thumbnail
8131 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8133 <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>
8138 BUG 1887: A RFC with a thumbnail
8140 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8142 <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>
8147 BUG 1887: A mailto link with a thumbnail
8149 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8151 <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>
8155 # Pending resolution to bug 368
8157 BUG 648: Frameless image caption with a link
8159 [[Image:foobar.jpg|text with a [[link]] in it]]
8161 <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>
8166 BUG 648: Frameless image caption with a link (suffix)
8168 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8170 <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>
8175 BUG 648: Frameless image caption with an interwiki link
8177 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8179 <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>
8184 BUG 648: Frameless image caption with a piped interwiki link
8186 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8188 <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>
8193 Escape HTML special chars in image alt text
8195 [[Image:foobar.jpg|& < > "]]
8197 <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>
8202 BUG 499: Alt text should have Ӓ, not &1234;
8204 [[Image:foobar.jpg|♀]]
8206 <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>
8211 Broken image caption with link
8213 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8215 <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.
8220 Image caption containing another image
8222 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8224 <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>
8229 Image caption containing a newline
8231 [[Image:Foobar.jpg|This
8234 <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>
8239 Parsoid: Image caption containing leading space
8240 (The leading space should not trigger nowiki escaping in wt2wt mode)
8242 [[Image:Foobar.jpg|thumb| bar]]
8244 <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>
8249 Bug 3090: External links other than http: in image captions
8251 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8253 <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>
8260 [[Image:foobar.jpg|a|class=b]]
8262 <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>
8267 Localized image handling (1).
8271 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8273 <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>
8278 Localized image handling (2).
8282 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8284 <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>
8289 "border", "frameless" and "class" attributes on an image.
8291 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8293 <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>
8300 #REDIRECT [[File:Barfoo.jpg]]
8306 [[Image:Barfoo.jpg]]
8308 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8313 Missing image with uploads disabled
8317 [[Image:Foobaz.jpg]]
8319 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8323 # Parsoid-specific testing for images
8324 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8325 # Currently imperfect due to a flaw in the Parsoid testrunner
8329 Parsoid-specific image handling - simple image
8333 [[Image:Foobar.jpg]]
8336 <span class="mw-default-size" typeof="mw:Image">
8337 <a href="File:Foobar.jpg">
8338 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8345 Parsoid-specific image handling - simple image without link
8349 [[Image:Foobar.jpg|link=]]
8352 <span class="mw-default-size" typeof="mw:Image">
8354 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8361 Parsoid-specific image handling - simple image with specific link
8365 [[Image:Foobar.jpg|link=Main Page]]
8368 <span class="mw-default-size" typeof="mw:Image">
8369 <a href="Main_Page">
8370 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8377 Parsoid-specific image handling - simple image with size and middle alignment
8381 [[Image:Foobar.jpg|50px|middle]]
8384 <span class="mw-valign-middle" typeof="mw:Image">
8385 <a href="File:Foobar.jpg">
8386 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8393 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8397 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8400 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8401 <a href="File:Foobar.jpg">
8402 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8409 Parsoid-specific image handling - simple image with border and size spec
8413 [[Image:Foobar.jpg|50px|border|caption]]
8416 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8417 <a href="File:Foobar.jpg">
8418 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8425 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8429 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8431 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8432 <a href="File:Foobar.jpg">
8433 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8435 <figcaption>caption content</figcaption>
8440 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8444 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8446 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8447 <a href="File:Foobar.jpg">
8448 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8450 <figcaption>caption</figcaption>
8455 Parsoid-specific image handling - framed image with specific size and caption
8459 [[Image:Foobar.jpg|500x50px|frame|caption]]
8461 <figure typeof="mw:Image/Frame">
8462 <a href="File:Foobar.jpg">
8463 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8465 <figcaption>caption</figcaption>
8470 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8474 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8476 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8477 <a href="File:Foobar.jpg">
8478 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8480 <figcaption>caption</figcaption>
8485 Parsoid-specific image handling - frameless image with specific size, border, and caption
8489 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8492 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8493 <a href="File:Foobar.jpg">
8494 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8500 #Parsoid-specific image handling - simple image with a formatted caption
8504 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8507 #<span typeof="mw:Image">
8508 #<a class="mw-default-size" href="Image:Foobar.jpg">
8509 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8520 Subpage test/subpage
8528 subpage title=[[Subpage test]]
8532 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8537 Subpage noslash link
8539 subpage title=[[Subpage test]]
8543 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8547 # TODO: make this PHP-parser compatible!
8549 Relative subpage noslash link
8551 parsoid=wt2wt,wt2html,html2html
8552 subpage title=[[Subpage test/1/2/3/4]]
8558 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8559 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8562 # TODO: make this PHP-parser compatible!
8564 Parsoid: dot-slash prefixed wikilinks
8566 parsoid=wt2wt,wt2html,html2html
8574 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8575 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8576 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8584 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8589 BUG 561: {{/Subpage}}
8591 subpage title=[[Page]]
8595 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8603 Category:MediaWiki User's Guide
8611 [[:Category:MediaWiki User's Guide]]
8613 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8622 [[Category:MediaWiki User's Guide]]
8624 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8628 PAGESINCATEGORY invalid title fatal (r33546 fix)
8630 {{PAGESINCATEGORY:<bogus>}}
8637 Category with different sort key
8641 [[Category:MediaWiki User's Guide|Foo]]
8643 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8647 Category with identical sort key
8651 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8653 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8657 Category with empty sort key
8662 [[Category:MediaWiki User's Guide|]]
8664 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8668 Category with empty sort key and parentheses
8673 [[Category:Foo (bar)|]]
8675 [[Category:Foo (bar)|Foo]]
8679 Category with link tail
8684 123[[Category:Foo]]456
8686 123[[Category:Foo]]456
8690 Category with template
8695 [[Category:{{echo|Foo}}]]
8697 [[Category:{{echo|Foo}}]]
8701 Category with template in sort key
8706 [[Category:Foo|{{echo|Bar}}]]
8708 [[Category:Foo|{{echo|Bar}}]]
8712 Category with template in sort key and title
8717 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8719 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8723 Category / paragraph interactions
8725 Foo [[Category:Baz]] Bar
8727 Foo [[Category:Baz]]
8735 [[Category:Baz]] Bar
8748 {{echo|[[Category:Baz]]}}
8763 Parsoid: Serialize link to category page with colon escape
8769 [[:Category:Foo|Bar]]
8772 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8773 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8778 Parsoid: Serialize link to file page with colon escape
8784 [[:File:Foo.png|Bar]]
8787 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8788 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8793 Parsoid: Serialize a genuine category link without colon escape
8798 [[Category:Foo|Bar]]
8800 <link rel="mw:WikiLink/Category" href="Category:Foo">
8801 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8805 ### Inter-language links
8808 Inter-language links
8814 [[zh:食品]]
8816 es:Alimento fr:Nourriture zh:食品
8820 Duplicate interlanguage links (bug 24502)
8836 Basic section headings
8843 ===Smaller headline===
8846 <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>
8849 <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>
8852 <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>
8858 Section headings with TOC
8861 === Subheadline 1 ===
8862 ===== Skipping a level =====
8863 ====== Skipping a level ======
8867 ===Another headline===
8869 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8871 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8873 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8875 <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>
8877 <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>
8884 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8886 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8891 <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>
8892 <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>
8893 <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>
8894 <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>
8895 <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>
8898 <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>
8902 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8904 Handling of sections up to level 6 and beyond
8907 == Level 2 Heading==
8908 === Level 3 Heading===
8909 ==== Level 4 Heading====
8910 ===== Level 5 Heading=====
8911 ====== Level 6 Heading======
8912 ======= Level 7 Heading=======
8913 ======== Level 8 Heading========
8914 ========= Level 9 Heading=========
8915 ========== Level 10 Heading==========
8917 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8919 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8921 <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>
8923 <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>
8925 <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>
8927 <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>
8929 <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>
8930 <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>
8931 <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>
8932 <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>
8933 <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>
8946 <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>
8947 <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>
8948 <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>
8949 <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>
8950 <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>
8951 <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>
8952 <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>
8953 <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>
8954 <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>
8955 <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>
8960 TOC regression (bug 9764)
8964 ==== title 1.1.1 ====
8969 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8971 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8973 <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>
8975 <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>
8978 <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>
8981 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8983 <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>
8988 <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>
8989 <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>
8990 <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>
8991 <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>
8992 <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>
8993 <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>
8998 TOC with wgMaxTocLevel=3 (bug 6204)
9004 ==== title 1.1.1 ====
9009 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9011 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9013 <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>
9014 <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>
9017 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9019 <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>
9024 <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>
9025 <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>
9026 <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>
9027 <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>
9028 <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>
9029 <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>
9034 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9040 ====Section 1.1.1====
9041 ====Section 1.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="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9048 <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>
9051 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9054 <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>
9055 <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>
9056 <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>
9057 <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>
9058 <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>
9064 Resolving duplicate section names
9069 <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>
9070 <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>
9075 Resolving duplicate section names with differing case (bug 10721)
9080 <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>
9081 <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>
9093 Template with sections, __NOTOC__
9100 <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>
9101 <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>
9102 <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>
9103 <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>
9108 __NOEDITSECTION__ keyword
9114 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9115 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9120 Link inside a section heading
9122 ==Section with a [[Main Page|link]] in it==
9124 <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>
9129 TOC regression (bug 12077)
9136 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9138 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9140 <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>
9143 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9146 <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>
9147 <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>
9148 <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>
9153 BUG 1219 URL next to image (good)
9155 http://example.com [[Image:foobar.jpg]]
9157 <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>
9162 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9165 The line above must have a trailing space!
9168 But just in case it doesn't...
9170 <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>
9171 <p>The line above must have a trailing space!
9173 <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>
9174 <p>But just in case it doesn't...
9179 Header with special characters (bug 25462)
9181 The tooltips shall not show entities to the user (ie. be double escaped)
9198 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9200 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9202 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9203 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9204 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9205 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9206 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9209 <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>
9212 <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>
9215 <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>
9218 <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>
9221 <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>
9227 Headers with excess '=' characters
9228 (Are similar tests necessary beyond the 1st level?)
9232 =''italic'' heading==
9233 ==''italic'' heading=
9235 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9237 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9238 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9239 <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>
9240 <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>
9243 <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>
9244 <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>
9245 <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>
9246 <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>
9251 HTML headers vs TOC (bug 23393)
9252 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9264 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9266 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9268 <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>
9269 <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>
9272 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9274 <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>
9275 <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>
9280 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9281 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9282 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9283 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9284 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9285 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9290 BUG 1219 URL next to image (broken)
9292 http://example.com[[Image:foobar.jpg]]
9294 <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>
9299 Bug 1186 news: in the middle of text
9301 http://en.wikinews.org/wiki/Wikinews:Workplace
9303 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9309 Namespaced link must have a title
9318 Namespaced link must have a title (bad fragment version)
9320 [[Project:#fragment]]
9322 <p>[[Project:#fragment]]
9328 ### HTML tags and HTML attributes
9332 div with no attributes
9334 <div>HTML rocks</div>
9336 <div>HTML rocks</div>
9341 div with double-quoted attribute
9343 <div id="rock">HTML rocks</div>
9345 <div id="rock">HTML rocks</div>
9350 div with single-quoted attribute
9352 <div id='rock'>HTML rocks</div>
9354 <div id="rock">HTML rocks</div>
9359 div with unquoted attribute
9361 <div id=rock>HTML rocks</div>
9363 <div id="rock">HTML rocks</div>
9368 div with illegal double attributes
9370 <div id="a" id="b">HTML rocks</div>
9372 <div id="b">HTML rocks</div>
9376 # FIXME: produce empty string instead of "class" in the PHP parser, following
9379 div with empty attribute value, space before equals
9383 <div class =>HTML rocks</div>
9385 <div class="">HTML rocks</div>
9389 # The PHP parser escapes the opening brace to { for some reason, so
9390 # disabled this test for it.
9392 div with braces in attribute value
9396 <div title="{}">Foo</div>
9398 <div title="{}">Foo</div>
9401 # This it very inconsistent in the PHP parser: it returns
9402 # class="class" if there is a space between the name and the equal sign (see
9403 # 'div with empty attribute value, space before equals'), but strips the
9404 # attribute completely if the space is missing. We hope that not much content
9405 # depends on this, so are implementing the behavior below in Parsoid for
9406 # consistencies' sake. Disabled for the PHP parser.
9407 # FIXME: fix this behavior in the PHP parser?
9409 div with empty attribute value, no space before equals
9413 <div class=>HTML rocks</div>
9415 <div class="">HTML rocks</div>
9420 HTML multiple attributes correction
9422 <p class="error" class="awesome">Awesome!</p>
9424 <p class="awesome">Awesome!</p>
9429 Table multiple attributes correction
9432 !+ class="error" class="awesome"| status
9437 <th class="awesome"> status
9445 <DIV ID="x">HTML ROCKS</DIV>
9447 <div id="x">HTML ROCKS</div>
9452 Non-ASCII pseudo-tags are rendered as text
9461 Pseudo-tag with URL 'name' renders as url link
9463 <http://example.com/>
9465 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9470 text with amp in the middle of nowhere
9474 <p>Remember AT&T?
9479 text with character entity: eacute
9481 I always thought é was a cute letter.
9483 <p>I always thought é was a cute letter.
9488 text with entity-escaped character entity-like string: eacute
9490 I always thought &eacute; was a cute letter.
9492 <p>I always thought &eacute; was a cute letter.
9497 text with undefined character entity: xacute
9499 I always thought &xacute; was a cute letter.
9501 <p>I always thought &xacute; was a cute letter.
9513 [[Media:Foobar.jpg]]
9515 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9520 Media link with text
9522 [[Media:Foobar.jpg|A neat file to look at]]
9524 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9528 # FIXME: this is still bad HTML tag nesting
9530 Media link with nasty text
9531 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9533 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9535 <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>
9540 Media link to nonexistent file (bug 1702)
9542 [[Media:No such.jpg]]
9544 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9549 Image link to nonexistent file (bug 1850 - good)
9551 [[Image:No such.jpg]]
9553 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9558 :Image link to nonexistent file (bug 1850 - bad)
9560 [[:Image:No such.jpg]]
9562 <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>
9569 Character reference normalization in link text (bug 1938)
9571 [[Main Page|this&that]]
9573 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9580 Test for unicode normalization
9582 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9586 (bug 19451) Links should refer to the normalized form.
9594 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9595 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9596 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9597 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9598 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9603 Empty attribute crash test (bug 2067)
9605 <font color="">foo</font>
9607 <p><font color="">foo</font>
9612 Empty attribute crash test single-quotes (bug 2067)
9614 <font color=''>foo</font>
9616 <p><font color="">foo</font>
9621 Attribute test: equals, then nothing
9623 <font color=>foo</font>
9630 Attribute test: unquoted value
9632 <font color=x>foo</font>
9634 <p><font color="x">foo</font>
9639 Attribute test: unquoted but illegal value (hash)
9641 <font color=#x>foo</font>
9643 <p><font color="#x">foo</font>
9648 Attribute test: no value
9650 <font color>foo</font>
9652 <p><font color="color">foo</font>
9657 Bug 2095: link with three closing brackets
9661 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9666 Bug 2095: link with pipe and three closing brackets
9670 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9675 Bug 2095: link with pipe and three closing brackets, version 2
9677 [[Main Page|[http://example.com/]]]
9679 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9689 Template:Dangerous attribute
9691 " onmouseover="alert(document.cookie)
9695 Template:Dangerous style attribute
9697 border-size: expression(alert(document.cookie))
9703 <div style="float: right; {{{1}}}">Magic div</div>
9707 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9709 <div title="{{test}}"></div>
9711 <div title="This is a test template"></div>
9716 Bug 2304: HTML attribute safety (dangerous template; 2309)
9718 <div title="{{dangerous attribute}}"></div>
9720 <div title=""></div>
9725 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9727 <div style="{{dangerous style attribute}}"></div>
9729 <div style="/* insecure input */"></div>
9734 Bug 2304: HTML attribute safety (safe parameter; 2309)
9736 {{div style|width: 200px}}
9738 <div style="float: right; width: 200px">Magic div</div>
9743 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9745 {{div style|width: expression(alert(document.cookie))}}
9747 <div style="/* insecure input */">Magic div</div>
9752 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9754 {{div style|"><script>alert(document.cookie)</script>}}
9756 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9761 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9763 {{div style|" ><script>alert(document.cookie)</script>}}
9765 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9770 Bug 2304: HTML attribute safety (link)
9772 <div title="[[Main Page]]"></div>
9774 <div title="[[Main Page]]"></div>
9779 Bug 2304: HTML attribute safety (italics)
9781 <div title="''foobar''"></div>
9783 <div title="''foobar''"></div>
9788 Bug 2304: HTML attribute safety (bold)
9790 <div title="'''foobar'''"></div>
9792 <div title="'''foobar'''"></div>
9798 Bug 2304: HTML attribute safety (ISBN)
9800 <div title="ISBN 1234567890"></div>
9802 <div title="ISBN 1234567890"></div>
9807 Bug 2304: HTML attribute safety (RFC)
9809 <div title="RFC 1234"></div>
9811 <div title="RFC 1234"></div>
9816 Bug 2304: HTML attribute safety (PMID)
9818 <div title="PMID 1234567890"></div>
9820 <div title="PMID 1234567890"></div>
9825 Bug 2304: HTML attribute safety (web link)
9827 <div title="http://example.com/"></div>
9829 <div title="http://example.com/"></div>
9834 Bug 2304: HTML attribute safety (named web link)
9836 <div title="[http://example.com/ link]"></div>
9838 <div title="[http://example.com/ link]"></div>
9843 Bug 3244: HTML attribute safety (extension; safe)
9845 <div style="<nowiki>background:blue</nowiki>"></div>
9847 <div style="background:blue"></div>
9852 Bug 3244: HTML attribute safety (extension; unsafe)
9854 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9856 <div style="/* insecure input */"></div>
9860 # More MSIE fun discovered by Tom Gilder
9863 MSIE CSS safety test: spurious slash
9865 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9867 <div style="/* insecure input */">evil</div>
9872 MSIE CSS safety test: hex code
9874 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9876 <div style="/* insecure input */">evil</div>
9881 MSIE CSS safety test: comment in url
9883 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9885 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9890 MSIE CSS safety test: comment in expression
9892 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9894 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9900 Table attribute legitimate extension
9903 !+ style="<nowiki>color:blue</nowiki>"| status
9908 <th style="color:blue"> status
9914 Table attribute safety
9917 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9922 <th style="/* insecure input */"> status
9928 CSS line continuation 1
9930 <div style="background-image: u\ rl(test.jpg);"></div>
9932 <div style="/* insecure input */"></div>
9937 CSS line continuation 2
9939 <div style="background-image: u\ rl(test.jpg); "></div>
9941 <div style="/* insecure input */"></div>
9952 Expansion of multi-line templates in attribute values (bug 6255)
9954 <div style="background: {{identity|#00FF00}}">-</div>
9956 <div style="background: #00FF00">-</div>
9962 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9964 <div style="background:
9967 <div style="background: #00FF00">-</div>
9972 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9974 <div style="background: #00FF00">-</div>
9976 <div style="background: #00FF00">-</div>
9981 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9984 Parser hook: empty input
9997 Parser hook: empty input using terminated empty elements
10010 Parser hook: empty input using terminated empty elements (space before)
10023 Parser hook: basic input
10037 Parser hook: case insensitive
10051 Parser hook: case insensitive, redux
10064 Parser hook: nested tags
10068 <tag><tag></tag></tag>
10079 Parser hook: basic arguments
10081 <tag width=200 height = "100" depth = '50' square></tag>
10089 'square' => 'square',
10096 Parser hook: argument containing a forward slash (bug 5344)
10098 <tag filename='/tmp/bla'></tag>
10103 'filename' => '/tmp/bla',
10110 Parser hook: empty input using terminated empty elements (bug 2374)
10123 # </tag> should be output literally since there is no matching tag that begins it
10125 Parser hook: basic arguments using terminated empty elements (bug 2374)
10127 <tag width=200 height = "100" depth = '50' square/>
10137 'square' => 'square',
10146 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10150 Parser hook: static parser hook not inside a comment
10152 <statictag>hello, world</statictag>
10153 <statictag action=flush/>
10161 Parser hook: static parser hook inside a comment
10163 <!-- <statictag>hello, world</statictag> -->
10164 <statictag action=flush/>
10170 # Nested template calls; this case was broken by Parser.php rev 1.506,
10174 Template:One-parameter
10176 (My parameter is: {{{1}}})
10180 Template:Map-one-parameter
10182 {{{{{1}}}|{{{2}}}}}
10186 Nested template calls
10188 {{Map-one-parameter|One-parameter|param}}
10190 <p>(My parameter is: param)
10199 Sanitizer: Closing of open tags
10201 <s></s><table></table>
10203 <s></s><table></table>
10208 Sanitizer: Closing of open but not closed tags
10217 Sanitizer: Closing of closed but not open tags
10226 Sanitizer: Closing of closed but not open table tags
10228 Table not started</td></tr></table>
10230 <p>Table not started</td></tr></table>
10235 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10237 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10239 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10244 Sanitizer: Validating the contents of the id attribute (bug 4515)
10250 Something, but definitely not <br id="9" />...
10254 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10258 <br id="foo" /><br id="foo" />
10260 Something need to be done. foo-2 ?
10264 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10267 <meta itemprop="hello" content="world">
10268 <meta http-equiv="refresh" content="5">
10269 <meta itemprop="hello" http-equiv="refresh" content="5">
10270 <link itemprop="hello" href="{{SERVER}}">
10271 <link rel="stylesheet" href="{{SERVER}}">
10272 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10275 <div itemscope="itemscope">
10276 <p> <meta itemprop="hello" content="world" />
10277 <meta http-equiv="refresh" content="5">
10278 <meta itemprop="hello" content="5" />
10280 <link itemprop="hello" href="http://example.org" />
10281 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10282 <link itemprop="hello" href="http://example.org" />
10288 Language converter: output gets cut off unexpectedly (bug 5757)
10292 this bit is safe: }-
10294 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10296 then we get cut off here: }-
10298 all additional text is vanished
10300 <p>this bit is safe: }-
10301 </p><p>but if we add a conversion instance: xxx
10302 </p><p>then we get cut off here: }-
10303 </p><p>all additional text is vanished
10308 Self closed html pairs (bug 5487)
10311 <center><font id="bug" />Centered text</center>
10312 <div><font id="bug2" />In div text</div>
10314 <center><font id="bug" />Centered text</center>
10315 <div><font id="bug2" />In div text</div>
10324 Punctuation: nbsp before exclamation
10328 <p>C'est grave !
10333 Punctuation: CSS !important (bug 11874)
10335 <div style="width:50% !important">important</div>
10337 <div style="width:50% !important">important</div>
10342 Punctuation: CSS ! important (bug 11874; with space after)
10344 <div style="width:50% ! important">important</div>
10346 <div style="width:50% ! important">important</div>
10352 HTML bullet list, closed tags (bug 5497)
10367 HTML bullet list, unclosed tags (bug 5497)
10384 HTML ordered list, closed tags (bug 5497)
10399 HTML ordered list, unclosed tags (bug 5497)
10416 HTML nested bullet list, closed tags (bug 5497)
10441 HTML nested bullet list, open tags (bug 5497)
10466 HTML nested ordered list, closed tags (bug 5497)
10491 HTML nested ordered list, open tags (bug 5497)
10516 HTML ordered list item with parameters oddity
10518 <ol><li id="fragment">One</li></ol>
10520 <ol><li id="fragment">One</li></ol>
10525 bug 5918: autonumbering
10527 [http://first/] [http://second] [ftp://ftp]
10531 [mailto:enclosed@mail.tld With target]
10533 [mailto:enclosed@mail.tld]
10535 mailto:inline@mail.tld
10537 <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>
10538 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10539 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10540 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10541 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10547 # Security and HTML correctness
10548 # From Nick Jenkins' fuzz testing
10552 Fuzz testing: Parser13
10567 Fuzz testing: Parser14
10572 <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>
10573 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10575 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10582 Fuzz testing: Parser14-table
10587 <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>
10588 <table style="__TOC__">
10594 # Known to produce bogus xml (extra </td>)
10596 Fuzz testing: Parser16
10616 Fuzz testing: Parser21
10619 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10624 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10634 Fuzz testing: Parser22
10636 http://===r:::https://b
10640 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10648 # Known to produce bad XML for now
10650 Fuzz testing: Parser24
10657 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10658 <br style="onmouseover='alert(document.cookie);' " />
10660 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10665 <u class="|">}}}} >
10666 <br style="onmouseover='alert(document.cookie);'" />
10668 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10677 # Note: the current result listed for this is not what the original one was,
10678 # but the original bug was JavaScript injection, which is fixed in any case.
10679 # It's not clear that the original result listed was any more correct than the
10680 # current one. Original result:
10683 # <li class="||">
10684 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10686 Fuzz testing: Parser25 (bug 6055)
10692 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10694 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10699 Fuzz testing: URL adjacent extension (with space, clean)
10702 http://example.com <nowiki>junk</nowiki>
10704 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10709 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10712 http://example.com<nowiki>junk</nowiki>
10714 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10719 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10722 http://example.com<pre>junk</pre>
10724 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10729 Fuzz testing: image with bogus manual thumbnail
10731 [[Image:foobar.jpg|thumbnail= ]]
10733 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10738 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10740 <pre dir=" "></pre>
10742 <pre dir=" "></pre>
10747 Parsing optional HTML elements (Bug 6171)
10752 <td> Some tabular data</td>
10753 <td> More tabular data ...
10754 <td> And yet som tabular data</td>
10760 <td> Some tabular data</td>
10761 <td> More tabular data ...
10762 </td><td> And yet som tabular data</td>
10769 Correct handling of <td>, <tr> (Bug 6171)
10774 <td> Some tabular data</td>
10775 <td> More tabular data ...</td>
10776 <td> And yet som tabular data</td>
10782 <td> Some tabular data</td>
10783 <td> More tabular data ...</td>
10784 <td> And yet som tabular data</td>
10792 Parsing crashing regression (fr:JavaScript)
10796 <p></body></x>
10801 Inline wiki vs wiki block nesting
10807 <p><b>Bold paragraph</b>
10808 </p><p>New wiki paragraph
10813 Inline HTML vs wiki block nesting
10821 <p><b>Bold paragraph</b>
10822 </p><p>New wiki paragraph
10826 # Original result was this:
10827 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10829 # While that might be marginally more intuitive, maybe, the six-apostrophe
10830 # construct is clearly pathological and the result stated here (which is what
10831 # the parser actually does) is about as reasonable as anything.
10833 Mixing markup for italics and bold
10836 '''bold''''''bold''bolditalics'''''
10838 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10846 Article for special page transclusion test
10850 Special page transclusion
10853 {{Special:Prefixindex/Xyzzyx}}
10855 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10860 Special page transclusion twice (bug 5021)
10863 {{Special:Prefixindex/Xyzzyx}}
10864 {{Special:Prefixindex/Xyzzyx}}
10866 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10867 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10872 Transclusion of default MediaWiki message
10874 {{MediaWiki:Mainpage}}
10881 Transclusion of nonexistent MediaWiki message
10883 {{MediaWiki:Mainpagexxx}}
10885 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10890 Transclusion of MediaWiki message with underscore
10892 {{MediaWiki:history_short}}
10899 Transclusion of MediaWiki message with space
10901 {{MediaWiki:history short}}
10908 Invalid header with following text
10918 Section extraction test (section 0)
10938 Section extraction test (section 1)
10960 Section extraction test (section 2)
10981 Section extraction test (section 3)
11001 Section extraction test (section 4)
11025 Section extraction test (section 5)
11045 Section extraction test (section 6)
11066 Section extraction test (section 7)
11086 Section extraction test (section 8)
11106 Section extraction test (section 9)
11127 Section extraction test (section 10)
11147 Section extraction test (nonexistent section 11)
11166 Section extraction test with bogus heading (section 1)
11171 ==bogus== not a legal section
11175 ==bogus== not a legal section
11179 Section extraction test with bogus heading (section 2)
11184 ==bogus== not a legal section
11191 Section extraction test with comment after heading (section 1)
11203 Section extraction test with comment after heading (section 2)
11215 Section extraction test with bogus <nowiki> heading (section 1)
11220 ==bogus== <nowiki>not a legal section</nowiki>
11224 ==bogus== <nowiki>not a legal section</nowiki>
11228 Section extraction test with bogus <nowiki> heading (section 2)
11233 ==bogus== <nowiki>not a legal section</nowiki>
11240 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11241 # instead of respecting commented sections
11243 Section extraction prefixed by comment (section 1)
11254 Section extraction prefixed by comment (section 2)
11265 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11266 # instead of respecting HTML-style headings
11268 Section extraction, mixed wiki and html (section 1)
11284 Section extraction, mixed wiki and html (section 2)
11300 # Formerly testing for bug 3342
11302 Section extraction, heading surrounded by <noinclude>
11306 <noinclude>==unmarked==</noinclude>
11312 # Test behavior of bug 19910
11314 Sectiion with all-equals
11319 The line above must have a trailing space
11322 But just in case it doesn't...
11326 But just in case it doesn't...
11330 Section replacement test (section 0)
11361 Section replacement test (section 1)
11390 Section replacement test (section 2)
11420 Section replacement test (section 3)
11451 Section replacement test (section 4)
11478 Section replacement test (section 5)
11509 Section replacement test (section 6)
11539 Section replacement test (section 7)
11570 Section replacement test (section 8)
11601 Section replacement test (section 9)
11630 Section replacement test (section 10)
11660 Section replacement test with initial whitespace (bug 13728)
11664 Preformatted initial line
11668 Preformatted initial line
11675 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11687 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11700 Section extraction, <pre> around bogus header (bug 10309)
11717 Section replacement, <pre> around bogus header (bug 10309)
11719 noxml replace=2,"xxx"
11740 Handling of 
 in URLs
11744 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11751 5 quotes, code coverage +1 line (php)
11758 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11760 5 quotes, code coverage +1 line (parsoid)
11766 <p><i><b></b></i></p>
11770 Special:Search page linking.
11774 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11786 * {{ROOTPAGENAMEE}}
11788 * {{BASEPAGENAMEE}}
11790 * {{TALKPAGENAMEE}}
11791 * {{SUBJECTPAGENAME}}
11792 * {{SUBJECTPAGENAMEE}}
11798 * {{SUBJECTSPACEE}}
11799 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11801 <ul><li> Parser test
11802 </li><li> Parser test
11803 </li><li> Parser test
11804 </li><li> Parser_test
11805 </li><li> Parser test
11806 </li><li> Parser_test
11807 </li><li> Parser test
11808 </li><li> Parser_test
11809 </li><li> Talk:Parser test
11810 </li><li> Talk:Parser_test
11811 </li><li> Parser test
11812 </li><li> Parser_test
11819 </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>
11823 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11833 image4 |300px| centre
11834 image5.svg| http://///////
11839 <ul class="gallery">
11840 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11841 <div style="height: 150px;">Image1.png</div>
11842 <div class="gallerytext">
11845 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11846 <div style="height: 150px;">Image2.gif</div>
11847 <div class="gallerytext">
11852 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11853 <div style="height: 150px;">Image3</div>
11854 <div class="gallerytext">
11857 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11858 <div style="height: 150px;">Image4</div>
11859 <div class="gallerytext">
11864 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11865 <div style="height: 150px;">Image5.svg</div>
11866 <div class="gallerytext">
11867 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11871 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11872 <div style="height: 150px;">* image6</div>
11873 <div class="gallerytext">
11881 Gallery (with options)
11883 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11884 File:Nonexistant.jpg|caption
11885 File:Nonexistant.jpg
11886 image:foobar.jpg|some '''caption''' [[Main Page]]
11888 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11891 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11892 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11893 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11894 <div style="height: 70px;">Nonexistant.jpg</div>
11895 <div class="gallerytext">
11900 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11901 <div style="height: 70px;">Nonexistant.jpg</div>
11902 <div class="gallerytext">
11905 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11906 <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>
11907 <div class="gallerytext">
11908 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11912 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11913 <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>
11914 <div class="gallerytext">
11917 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11918 <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>
11919 <div class="gallerytext">
11929 Gallery with wikitext inside caption
11932 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11933 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11936 <ul class="gallery">
11937 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11938 <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>
11939 <div class="gallerytext">
11940 <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>
11944 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11945 <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>
11946 <div class="gallerytext">
11947 <p>This is a test template
11956 gallery (with showfilename option)
11958 <gallery showfilename>
11959 File:Nonexistant.jpg|caption
11960 File:Nonexistant.jpg
11961 image:foobar.jpg|some '''caption''' [[Main Page]]
11965 <ul class="gallery">
11966 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11967 <div style="height: 150px;">Nonexistant.jpg</div>
11968 <div class="gallerytext">
11969 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11974 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11975 <div style="height: 150px;">Nonexistant.jpg</div>
11976 <div class="gallerytext">
11977 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11981 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11982 <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>
11983 <div class="gallerytext">
11984 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11985 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11989 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11990 <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>
11991 <div class="gallerytext">
11992 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12001 Gallery (with namespace-less filenames)
12004 File:Nonexistant.jpg
12010 <ul class="gallery">
12011 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12012 <div style="height: 150px;">Nonexistant.jpg</div>
12013 <div class="gallerytext">
12016 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12017 <div style="height: 150px;">Nonexistant.jpg</div>
12018 <div class="gallerytext">
12021 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12022 <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>
12023 <div class="gallerytext">
12026 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12027 <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>
12028 <div class="gallerytext">
12036 HTML Hex character encoding (spells the word "JavaScript")
12038 JavaScript
12040 <p>JavaScript
12045 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12049 <p>&#xsee;&#XSEE;
12054 HTML Hex character encoding mixed case
12063 __FORCETOC__ override
12075 ISBN 978-0-1234-56 789
12077 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12082 ISBN followed by 5 spaces
12093 ISBN ISBN 1234567890
12095 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12100 Bug 22905: <abbr> followed by ISBN followed by </a>
12102 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12104 <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>
12113 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12118 Double RFC with a wiki link
12122 <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>
12131 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12136 Centre-aligned image
12138 [[Image:foobar.jpg|centre]]
12140 <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>
12147 [[Image:foobar.jpg|none]]
12149 <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>
12154 Width + Height sized image (using px) (height is ignored)
12156 [[Image:foobar.jpg|640x480px]]
12158 <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>
12163 Width-sized image (using px, no following whitespace)
12165 [[Image:foobar.jpg|640px]]
12167 <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>
12172 Width-sized image (using px, with following whitespace - test regression from r39467)
12174 [[Image:foobar.jpg|640px ]]
12176 <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>
12181 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12183 [[Image:foobar.jpg| 640px]]
12185 <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>
12190 Another italics / bold test
12198 # Note the results may be incorrect, as parserTest output included this:
12199 # XML error: Mismatched tag at byte 6120:
12200 # ...<dd> </dt></dl> </dd...
12208 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12219 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12221 Images with the "|" character in the comment
12223 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12225 <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>
12230 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12232 <html><script>alert(1);</script></html>
12234 <p><html><script>alert(1);</script></html>
12239 HTML with raw HTML ($wgRawHtml==true)
12243 <html><script>alert(1);</script></html>
12245 <p><script>alert(1);</script>
12250 Parents of subpages, one level up
12252 subpage title=[[Subpage test/L1/L2/L3]]
12256 <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>
12262 Parents of subpages, one level up, not named
12264 subpage title=[[Subpage test/L1/L2/L3]]
12268 <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>
12275 Parents of subpages, two levels up
12277 subpage title=[[Subpage test/L1/L2/L3]]
12283 <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
12284 </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>
12289 Parents of subpages, two levels up, without trailing slash or name.
12291 subpage title=[[Subpage test/L1/L2/L3]]
12300 Parents of subpages, two levels up, with lots of extra trailing slashes.
12302 subpage title=[[Subpage test/L1/L2/L3]]
12306 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12311 Subpage test/L1/L2/L3Sibling
12317 Transclusion of a sibling page (one level up)
12319 subpage title=[[Subpage test/L1/L2/L3]]
12328 Transclusion of a child page
12330 subpage title=[[Subpage test/L1/L2]]
12339 Non-transclusion because of too many up levels
12341 subpage title=[[Subpage test/L1/L2/L3]]
12343 {{../../../../More than parent}}
12345 <p>{{../../../../More than parent}}
12350 Definition list code coverage
12356 <dl><dt> title  </dt><dd> def
12357 </dd><dt> title </dt><dd> def
12358 </dd><dt>title</dt><dd> def
12364 Don't fall for the self-closing div
12366 <div>hello world</div/>
12368 <div>hello world</div>
12377 <p>[[:Template:Msg]]
12386 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12390 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12392 Always escape literal '>' in output, not just after '<'
12406 <p>This is a test template
12407 This is a test template
12419 Inclusion of !userCanEdit() content
12423 <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>
12429 Out-of-order TOC heading levels
12438 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12440 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12442 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12443 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12446 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12448 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12449 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12454 <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>
12455 <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>
12456 <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>
12457 <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>
12458 <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>
12459 <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>
12465 ISBN with a dummy number
12475 ISBN with space-delimited number
12479 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12485 ISBN with multiple spaces, no number
12504 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12505 </p><p>ISBN 12345678901
12511 ISBN with trailing year (bug 8110)
12513 ISBN 1-234-56789-0 - 2006
12515 ISBN 1 234 56789 0 - 2006
12517 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12518 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12526 {{anchorencode:foo bar©#%n}}
12528 <p>foo_bar.C2.A9.23.25n
12533 anchorencode trims spaces
12535 {{anchorencode: __pretty__please__}}
12542 anchorencode deals with links
12544 {{anchorencode: [[hello|world]] [[hi]]}}
12551 anchorencode deals with templates
12553 {{anchorencode: {{Foo}} }}
12560 anchorencode encodes like the TOC generator: (bug 18431)
12562 === _ +:.3A%3A&&]] ===
12563 {{anchorencode: _ +:.3A%3A&&]] }}
12566 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12567 <p>.2B:.3A.253A.26.26.5D.5D
12571 # Expected output in the following test is not necessarily expected (there
12572 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12573 # only testing for well-formedness.
12575 Bug 6200: blockquotes and paragraph formatting
12595 Bug 8293: Use of center tag ruins paragraph formatting
12616 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12620 <span><s>x</span></s>
12622 <p><span><s>x</span></s></span>
12627 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12631 <span><s>x</span></s>
12633 <p><span><s>x</s></span><s></s>
12638 ### Language variants related tests
12641 Self-link in language variants
12643 title=[[Dunav]] language=sr
12645 Both [[Dunav]] and [[Дунав]] are names for this river.
12647 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12658 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12660 title=[[Duna]] language=sr
12662 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12664 <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.
12669 Link to pages in language variants
12673 Main Page can be written as [[Маин Паге]]
12675 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12681 Multiple links to pages in language variants
12685 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12687 <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>.
12693 Simple template in language variants
12699 <p>This is a test template
12705 Template with explicit namespace in language variants
12711 <p>This is a test template
12717 Basic test for template parameter in language variants
12721 {{парамтест|param=foo}}
12723 <p>This is a test template with parameter foo
12729 Simple category in language variants
12733 [[Category:МедиаWики Усер'с Гуиде]]
12735 <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>
12752 Don't convert blue categorylinks to another variant (bug 33210)
12756 [[A]][[Category:分类]]
12758 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12763 Stripping -{}- tags (language variants)
12767 Latin proverb: -{Ne nuntium necare}-
12769 <p>Latin proverb: Ne nuntium necare
12775 Prevent conversion with -{}- tags (language variants)
12777 language=sr variant=sr-ec
12779 Latinski: -{Ne nuntium necare}-
12781 <p>Латински: Ne nuntium necare
12787 Prevent conversion of text with -{}- tags (language variants)
12789 language=sr variant=sr-ec
12791 Latinski: -{Ne nuntium necare}-
12793 <p>Латински: Ne nuntium necare
12799 Prevent conversion of links with -{}- tags (language variants)
12801 language=sr variant=sr-ec
12805 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12811 -{}- tags within headlines (within html for parserConvert())
12813 language=sr variant=sr-ec
12817 <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>
12823 Explicit definition of language variant alternatives
12825 language=zh variant=zh-tw
12827 -{zh:China;zh-tw:Taiwan}-, not China
12829 <p>Taiwan, not China
12835 Conversion around HTML tags
12837 language=sr variant=sr-ec
12839 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12840 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12843 <span title="ЛаCтин">ски</span>
12849 Explicit session-wise language variant mapping (A flag and - flag)
12851 language=zh variant=zh-tw
12853 Taiwan is not China.
12854 But -{A|zh:China;zh-tw:Taiwan}- is China,
12855 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12856 and -{China}- is China.
12858 <p>Taiwan is not China.
12859 But Taiwan is Taiwan,
12860 (This should be stripped!)
12861 and China is China.
12866 Explicit session-wise language variant mapping (H flag for hide)
12868 language=zh variant=zh-tw
12870 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12873 <p>(This should be stripped!)
12879 Adding explicit conversion rule for title (T flag)
12881 language=zh variant=zh-tw showtitle
12883 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12886 <p>Should be stripped!
12891 Testing that changing the language variant here in the tests actually works
12893 language=zh variant=zh showtitle
12895 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12898 <p>Should be stripped!
12903 Recursive conversion of alt and title attrs shouldn't clear converter state
12905 language=zh variant=zh-cn showtitle
12907 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12908 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12912 Should be stripped<span title="Exclamation">!</span>
12917 Bug 24072: more test on conversion rule for title
12919 language=zh variant=zh-tw showtitle
12921 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12922 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12925 <p>This should be stripped!
12926 This won't take interferes with the title rule.
12931 Partly disable title conversion if variant == main language code
12933 language=zh variant=zh title=[[ZH]] showtitle
12935 -{T|zh-cn:CN;zh-tw:TW}-
12943 Partly disable title conversion if variant == main language code, more
12945 language=zh variant=zh title=[[ZH]] showtitle
12955 Raw output of variant escape tags (R flag)
12957 language=zh variant=zh-tw
12959 Raw: -{R|zh:China;zh-tw:Taiwan}-
12961 <p>Raw: zh:China;zh-tw:Taiwan
12966 Nested using of manual convert syntax
12968 language=zh variant=zh-hk
12970 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12972 <p>Nested: Hello Hong Kong!
12977 Proper conversion of text in external links
12979 language=sr variant=sr-ec
12981 http://www.google.com
12982 gopher://www.google.com
12983 [http://www.google.com http://www.google.com]
12984 [gopher://www.google.com gopher://www.google.com]
12985 [https://www.google.com irc://www.google.com]
12986 [ftp://www.google.com www.google.com/ftp://dir]
12987 [//www.google.com www.google.com]
12989 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12990 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12991 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12992 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12993 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12994 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12995 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13000 Do not convert roman numbers to language variants
13002 language=sr variant=sr-ec
13006 <p>Фридрих IV је цар.
13011 Unclosed language converter markup "-{"
13022 Don't convert raw rule "-{R|=>}-" to "=>"
13039 Bug 529: Uncovered bullet
13049 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13050 # Templates in Wikipedia rely on this behavior, as tidy has always been
13051 # enabled there. These tests are normally run *without* tidy, so specify the
13052 # full output here.
13053 # To test realistic parsing behavior, apply a tidy-like transformation to both
13054 # the expected output and your parser's output.
13056 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13058 ******* Foo {{bullet}}
13060 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13073 Bug 529: Uncovered table already at line-start
13096 Bug 529: Uncovered bullet in parser function result
13098 * Foo {{lc:{{bullet}} }}
13107 Bug 5678: Double-parsed template argument
13109 {{lc:{{{1}}}|hello}}
13116 Bug 5678: Double-parsed template invocation
13118 {{lc:{{paramtest {{!}} param = hello }} }}
13120 <p>{{paramtest | param = hello }}
13125 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13128 title=[[Main Page]]
13130 {{PRVNÍVELKÉ:ěščř}}
13131 {{prvnívelké:ěščř}}
13151 Morwen/13: Unclosed link followed by heading
13158 <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>
13163 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13170 <h1><span class="mw-headline" id="heading">heading</span></h1>
13175 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13182 <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>
13197 Paragraphs inside divs (no extra line breaks)
13209 Paragraphs inside divs (extra line break on open)
13224 Paragraphs inside divs (extra line break on close)
13239 Paragraphs inside divs (extra line break on open and close)
13256 Nesting tags, paragraphs on lines which begin with <div>
13260 <div></div><strong>A
13269 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13271 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13275 <blockquote>Line one
13277 Line two</blockquote>
13279 <blockquote>Line one
13280 Line two</blockquote>
13285 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13292 Line two</blockquote>
13297 Line two</blockquote>
13302 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13306 <blockquote>Line one
13311 <blockquote>Line one
13319 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13338 Paragraphs inside blockquotes/divs (no extra line breaks)
13340 <blockquote><div>Line one
13342 Line two</div></blockquote>
13344 <blockquote><div>Line one
13345 Line two</div></blockquote>
13350 Paragraphs inside blockquotes/divs (extra line break on open)
13355 Line two</div></blockquote>
13360 Line two</div></blockquote>
13365 Paragraphs inside blockquotes/divs (extra line break on close)
13367 <blockquote><div>Line one
13370 </div></blockquote>
13372 <blockquote><div>Line one
13375 </div></blockquote>
13380 Paragraphs inside blockquotes/divs (extra line break on open and close)
13386 </div></blockquote>
13392 </div></blockquote>
13397 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13399 wgLinkHolderBatchSize=0
13405 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13406 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13407 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13412 Free external link invading image caption
13414 [[Image:Foobar.jpg|thumb|http://x|hello]]
13416 <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>
13421 Bug 15196: localised external link numbers
13425 [http://en.wikipedia.org/]
13427 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13432 Multibyte character in padleft
13434 {{padleft:-Hello|7|Æ}}
13441 Multibyte character in padright
13443 {{padright:Hello-|7|Æ}}
13450 formatdate parser function
13452 {{#formatdate:2009-03-24}}
13454 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13459 formatdate parser function, with default format
13461 {{#formatdate:2009-03-24|mdy}}
13463 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13468 Spacing of numbers in formatted dates
13470 {{#formatdate:January 15}}
13472 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13477 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
13479 language=nl title=[[MediaWiki:Common.css]]
13481 {{#formatdate:2009-03-24|dmy}}
13483 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13496 Edit comment with link
13500 I like the [[Main Page]] a lot
13502 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13506 Edit comment with link and link text
13510 I like the [[Main Page|best pages]] a lot
13512 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13516 Edit comment with link and link text with suffix
13520 I like the [[Main Page|best page]]s a lot
13522 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13526 Edit comment with section link (non-local, eg in history list)
13528 comment title=[[Main Page]]
13530 /* External links */ removed bogus entries
13532 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13536 Edit comment with section link and text before it (non-local, eg in history list)
13538 comment title=[[Main Page]]
13540 pre-comment text /* External links */ removed bogus entries
13542 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>
13546 Edit comment with section link (local, eg in diff view)
13548 comment local title=[[Main Page]]
13550 /* External links */ removed bogus entries
13552 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13556 Edit comment with subpage link (bug 14080)
13560 title=[[Subpage test]]
13562 Poked at a [[/subpage]] here...
13564 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13568 Edit comment with subpage link and link text (bug 14080)
13572 title=[[Subpage test]]
13574 Poked at a [[/subpage|neat little page]] here...
13576 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13580 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13583 title=[[Subpage test]]
13585 Poked at a [[/subpage]] here...
13587 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13591 Edit comment with bare anchor link (local, as on diff)
13595 title=[[Main Page]]
13599 <a href="#section">#section</a>
13603 Edit comment with bare anchor link (non-local, as on history)
13606 title=[[Main Page]]
13610 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13614 Anchor starting with underscore
13618 <p><a href="#_ref">One</a>
13623 Id starting with underscore
13625 <div id="_ref"></div>
13627 <div id="_ref"></div>
13632 Space normalisation on autocomment (bug 22784)
13635 title=[[Main Page]]
13637 /* __hello__world__ */
13639 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13643 percent-encoding and + signs in comments (Bug 26410)
13647 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13649 <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>
13653 Bad images - basic functionality
13662 Bad images - bug 16039: text after bad image disappears
13676 Verify that displaytitle works (bug #22501) no displaytitle
13680 wgAllowDisplayTitle=true
13681 wgRestrictDisplayTitle=false
13683 this is not the the title
13686 <p>this is not the the title
13691 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13696 wgAllowDisplayTitle=true
13697 wgRestrictDisplayTitle=false
13699 this is not the the title
13700 {{DISPLAYTITLE:whatever}}
13703 <p>this is not the the title
13708 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13713 wgAllowDisplayTitle=true
13714 wgRestrictDisplayTitle=true
13716 this is not the the title
13717 {{DISPLAYTITLE:whatever}}
13720 <p>this is not the the title
13725 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13730 wgAllowDisplayTitle=true
13731 wgRestrictDisplayTitle=true
13733 this is not the the title
13734 {{DISPLAYTITLE:screen}}
13737 <p>this is not the the title
13742 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13747 wgAllowDisplayTitle=false
13749 this is not the the title
13750 {{DISPLAYTITLE:screen}}
13753 <p>this is not the the title
13754 <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>
13759 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13764 wgAllowDisplayTitle=false
13766 this is not the the title
13769 <p>this is not the the title
13774 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13779 wgAllowDisplayTitle=true
13780 wgRestrictDisplayTitle=true
13782 this is not the the title
13783 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13785 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13786 <p>this is not the the title
13791 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13796 wgAllowDisplayTitle=true
13797 wgRestrictDisplayTitle=true
13799 this is not the the title
13800 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13802 <span style="color: red;">s</span>creen
13803 <p>this is not the the title
13808 preload: check <noinclude> and <includeonly>
13812 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13818 preload: check <onlyinclude>
13822 Goodbye <onlyinclude>Hello world</onlyinclude>
13828 preload: can pass tags through if we want to
13832 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13834 <includeonly>Hello world</includeonly>
13838 preload: check that it doesn't try to do tricks
13842 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13844 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13848 Play a bit with r67090 and bug 3158
13852 <div style="width:50% !important"> </div>
13853 <div style="width:50% !important"> </div>
13854 <div style="width:50% !important"> </div>
13855 <div style="border : solid;"> </div>
13857 <div style="width:50% !important"> </div>
13858 <div style="width:50% !important"> </div>
13859 <div style="width:50% !important"> </div>
13860 <div style="border : solid;"> </div>
13865 HTML5 data attributes
13867 <span data-foo="bar">Baz</span>
13868 <p data-abc-def_hij="">Quuz</p>
13870 <p><span data-foo="bar">Baz</span>
13872 <p data-abc-def_hij="">Quuz</p>
13877 percent-encoding and + signs in internal links (Bug 26410)
13879 [[User:+%]] [[Page+title%]]
13880 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13881 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13882 [[%33%45]] [[%33%45+]]
13884 <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>
13885 <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>
13886 <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>
13887 <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>
13892 Special characters in embedded file links (bug 27679)
13894 [[File:Contains & ampersand.jpg]]
13895 [[File:Does not exist.jpg|Title with & ampersand]]
13897 <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>
13898 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13904 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13906 Text's been normalized?
13908 <p>Text's been normalized?
13913 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13915 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13917 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13922 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13924 [http://www.example.org/ ideograms]
13926 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13931 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13933 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13935 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13959 Bug 31098 Template which includes system messages which includes the template
13963 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13964 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13969 Bug31490 Turkish: ucfirst 'blah'
13980 Bug31490 Turkish: ucfirst 'ix'
13991 Bug31490 Turkish: lcfirst 'BLAH'
14002 Bug31490 Turkish: ucfırst (with a dotless i)
14008 <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>
14013 Bug31490 ucfırst (with a dotless i) with English language
14019 <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>
14024 Bug 26375: TOC with italics
14026 title=[[Main Page]]
14029 == ''Lost'' episodes ==
14031 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14033 <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>
14036 <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>
14041 Bug 26375: TOC with bold
14043 title=[[Main Page]]
14046 == '''should be bold''' then normal text ==
14048 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14050 <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>
14053 <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>
14058 Bug 33845: Headings become cursive in TOC when they contain an image
14060 title=[[Main Page]]
14063 == Image [[Image:foobar.jpg]] ==
14065 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14067 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14070 <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>
14075 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14077 title=[[Main Page]]
14080 == <blockquote>Quote</blockquote> ==
14082 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14084 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14087 <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>
14092 Unclosed tags in TOC
14094 title=[[Main Page]]
14098 <small>Hanc marginis exiguitas non caperet.</small>
14101 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14103 <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>
14106 <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>
14107 <p><small>Hanc marginis exiguitas non caperet.</small>
14113 Multiple tags in TOC
14116 == <i>Foo</i> <b>Bar</b> ==
14118 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14120 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14122 <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>
14123 <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>
14126 <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>
14127 <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>
14132 Tags with parameters in TOC
14135 == <sup class="in-h2">Hello</sup> ==
14137 == <sup class="a > b">Evilbye</sup> ==
14139 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14141 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14142 <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>
14145 <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>
14146 <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>
14151 span tags with directionality in TOC
14154 == <span dir="ltr">C++</span> ==
14156 == <span dir="rtl">זבנג!</span> ==
14158 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14160 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14162 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14164 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14166 <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>
14167 <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>
14168 <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>
14169 <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>
14170 <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>
14173 <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>
14174 <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>
14175 <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>
14176 <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>
14177 <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>
14184 == {{int:headline_sample}} ==
14188 Bug 32057: Title needed when expanding <h> nodes.
14190 title=[[Main Page]]
14194 <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>
14199 Strip marker in urlencode
14201 {{urlencode:x<nowiki/>y}}
14202 {{urlencode:x<nowiki/>y|wiki}}
14203 {{urlencode:x<nowiki/>y|path}}
14230 Strip marker in formatNum
14232 {{formatnum:1<nowiki/>2}}
14233 {{formatnum:1<nowiki/>2|R}}
14241 Check noCommafy in formatNum
14245 {{formatnum:123456.78}}
14246 {{formatnum:123456.78|NOSEP}}
14254 Strip marker in grammar
14258 {{grammar:elative|foo<nowiki/>bar}}
14265 Strip marker in padleft
14267 {{padleft:|2|x<nowiki/>y}}
14274 Strip marker in padright
14276 {{padright:|2|x<nowiki/>y}}
14283 Strip marker in anchorencode
14285 {{anchorencode:x<nowiki/>y}}
14292 nowiki inside link inside heading (bug 18295)
14294 ==[[foo|x<nowiki>y</nowiki>z]]==
14296 <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>
14301 new support for bdi element (bug 31817)
14303 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14305 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14310 Ignore pipe between table row attributes
14314 |- id=foo | style='color: red'
14322 <tr id="foo" style="color: red">
14329 Gallery override link with WikiLink (bug 34852)
14332 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14335 <ul class="gallery">
14336 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14337 <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>
14338 <div class="gallerytext">
14348 Gallery override link with absolute external link (bug 34852)
14351 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14354 <ul class="gallery">
14355 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14356 <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>
14357 <div class="gallerytext">
14367 Gallery override link with malicious javascript (bug 34852)
14370 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14373 <ul class="gallery">
14374 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14375 <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>
14376 <div class="gallerytext">
14386 Gallery with invalid title as link (bug 43964)
14389 File:foobar.jpg|link=<
14392 <ul class="gallery">
14393 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14394 <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>
14395 <div class="gallerytext">
14403 Language parser function
14412 Padleft and padright as substr
14414 {{padleft:|3|abcde}}
14415 {{padright:|3|abcde}}
14423 Special parser function
14425 {{#special:RandomPage}}
14426 {{#special:BaDtItLe}}
14427 {{#special:Foobar}}
14436 Bug 34939 - Case insensitive link parsing ([HttP://])
14438 [HttP://MediaWiki.Org/]
14440 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14445 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14447 [HttP://MediaWiki.Org/ MediaWiki]
14449 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14454 Bug 34939 - Case insensitive link parsing (HttP://)
14456 HttP://MediaWiki.Org/
14458 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14464 ### Parsoids-specific tests
14465 ### Parsoid-PHP parser incompatibilities
14468 1. SOL-sensitive wikitext tokens as template-args
14470 parsoid=wt2html,wt2wt
14476 <span about="#mwt1" typeof="mw:Transclusion">
14477 </span><ul about="#mwt1"><li>a</li></ul>
14478 <span about="#mwt2" typeof="mw:Transclusion">
14479 </span><ol about="#mwt2"><li>a</li></ol>
14480 <span about="#mwt3" typeof="mw:Transclusion">
14481 </span><dl about="#mwt3"><dd>a</dd></dl>
14484 #### ----------------------------------------------------------------
14485 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14486 #### tags. Parsoid's output for these tags differs from that of the
14488 #### ----------------------------------------------------------------
14491 Ref: 1. ref-location should be replaced with an index span
14496 B <ref name="x">foo</ref>
14499 <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>
14500 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>
14501 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>
14505 Ref: 2. ref-tags with identical names should all get the same index
14509 A <ref name="x">foo</ref>
14512 <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>
14513 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>
14517 Ref: 3. spaces in ref-names should be ignored
14521 A <ref name="x">foo</ref>
14522 B <ref name=" x " />
14525 <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>
14526 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>
14527 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>
14531 Ref: 4. 'constructor' should be accepted as a valid ref-name
14532 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14536 A <ref name="constructor">foo</ref>
14538 <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>
14542 Ref: 5. body should accept generic wikitext
14547 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14552 <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>
14554 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14555 <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>
14560 Ref: 6. indent-pres should not be output in ref-body
14572 <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>
14574 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14575 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14582 Ref: 6. No p-wrapping in ref-body
14601 <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>
14603 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14604 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14618 Ref: 8. transclusion wikitext has lower precedence
14622 A <ref> foo {{echo|</ref> B C}}
14626 <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>
14628 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14629 <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>
14633 Ref: 9. unclosed comments should not leak out of ref-body
14637 A <ref> foo <!--</ref> B C
14641 <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>
14643 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14644 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14648 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14652 A <ref> <b> foo </ref> B C
14656 <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>
14658 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14659 <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>
14663 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14670 <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
14671 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>
14675 Ref: 12. ref-tags act as trailing newline migration barrier
14679 <!--the newline at the end of this line moves out of the p-tag-->a
14681 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14686 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14689 <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>
14690 <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>
14697 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14705 <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
14706 <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>
14710 Ref: 14. A nested ref-tag should be emitted as plain text
14714 <ref>foo <ref>bar</ref> baz</ref>
14718 <p><span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo &lt;ref&gt;bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> baz</ref></p>
14720 <ol about="#mwt2" 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 <ref>bar</li></ol>
14724 Ref: 15. ref-tags with identical names should get identical indexes
14728 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14729 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14733 <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>
14734 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>
14736 <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>
14740 References: 1. references tag without any refs should be handled properly
14746 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14750 References: 2. references tag with group only outputs references from that group
14754 A <ref group="a">foo</ref>
14755 B <ref group="b">bar</ref>
14757 <references group='a' />
14759 <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>
14760 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>
14762 <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>
14766 References: 3. ref list should be cleared after processing references
14778 <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>
14780 <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>
14782 <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>
14784 <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>
14788 References: 4. only referenced group should be cleared after processing references
14792 A <ref group="a">afoo</ref>
14795 <references group="a"/>
14801 <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>
14802 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>
14804 <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>
14806 <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>
14808 <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>
14812 References: 5. ref tags in references should be processed while ignoring all other content
14817 B <ref name="b">bar</ref>
14820 <ref name="a">foo</ref>
14821 This should just get lost.
14824 <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>
14825 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>
14827 <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>
14831 References: 6. <references /> from a transclusion
14835 {{echo|<references />}}
14837 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
14840 #### ----------------------------------------------------------------
14841 #### The following section of tests are primarily to test
14842 #### wikitext escaping capabilities of Parsoid. Given that
14843 #### escaping can be done any number of ways, the wikitext (input)
14844 #### is always adjusted to reflect how Parsoid adds nowiki
14847 #### We are marking several tests as parsoid-only since the
14848 #### HTML in the result section is different from what the
14849 #### PHP parser generates for it.
14850 #### ----------------------------------------------------------------
14853 #### --------------- Headings ---------------
14855 #### 1. Nested inside html <h1>=foo=</h1>
14856 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14857 #### 3. Nested inside html with wikitext split by html tags
14858 #### 4. No escape needed
14859 #### 5. Empty headings <h1></h1>
14860 #### 6. Heading chars in SOL context
14861 #### ----------------------------------------
14863 Headings: 0. Unnested
14867 <nowiki>=foo=</nowiki>
14869 <nowiki> =foo= </nowiki>
14871 <nowiki>=foo=</nowiki>
14873 =foo''a''<nowiki>=</nowiki>
14875 <p><span typeof="mw:Nowiki">=foo=</span></p>
14877 <p><span typeof="mw:Nowiki"> =foo= </span>
14879 <span typeof="mw:Nowiki">=foo=</span></p>
14881 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14885 Headings: 1. Nested inside html
14889 =<nowiki>=foo=</nowiki>=
14891 ==<nowiki>=foo=</nowiki>==
14893 ===<nowiki>=foo=</nowiki>===
14895 ====<nowiki>=foo=</nowiki>====
14897 =====<nowiki>=foo=</nowiki>=====
14899 ======<nowiki>=foo=</nowiki>======
14901 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14902 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14903 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14904 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14905 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14906 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
14910 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
14915 <nowiki>*bar</nowiki>
14921 <nowiki>=bar=</nowiki>
14929 Headings: 3. Nested inside html with wikitext split by html tags
14933 =='''bold'''<nowiki>foo=</nowiki>=
14935 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
14939 Headings: 4a. No escaping needed (testing just h1 and h2)
14957 =<nowiki>=</nowiki>=
14965 <h1><i>=</i>foo=</h1>
14966 <h1><span typeof="mw:Nowiki">=</span></h1>
14970 Headings: 4b. No escaping needed (inside p-tags)
14985 Headings: 5. Empty headings
14997 =====<nowiki/>=====
14999 ======<nowiki/>======
15010 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15014 <nowiki>=a=</nowiki>
15016 <nowiki>=a= </nowiki>
15018 <nowiki>=a= </nowiki>
15020 <nowiki>=a= </nowiki>
15029 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15057 Headings: 6c. Heading chars in SOL context (leading newline break)
15069 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15073 <!--c0--><nowiki>=a=</nowiki>
15075 <nowiki>=a= </nowiki><!--c2--> <!--c3-->
15077 <p><!--c0-->=a=</p>
15078 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15082 Headings: 6d. Heading chars in SOL context (No escaping needed)
15091 #### --------------- Lists ---------------
15092 #### 0. Outside nests (*foo, etc.)
15093 #### 1. Nested inside html <ul><li>*foo</li></ul>
15094 #### 2. Inside definition lists
15095 #### 3. Only bullets at start should be escaped
15096 #### 4. No escapes needed
15097 #### 5. No unnecessary escapes
15098 #### 6. Escape bullets in SOL position
15099 #### 7. Escape bullets in a multi-line context
15100 #### ----------------------------------------
15103 Lists: 0. Outside nests
15105 <nowiki>*foo</nowiki>
15107 <nowiki>#foo</nowiki>
15115 Lists: 1. Nested inside html
15117 *<nowiki>*foo</nowiki>
15119 *<nowiki>#foo</nowiki>
15121 *<nowiki>:foo</nowiki>
15123 *<nowiki>;foo</nowiki>
15125 #<nowiki>*foo</nowiki>
15127 #<nowiki>#foo</nowiki>
15129 #<nowiki>:foo</nowiki>
15131 #<nowiki>;foo</nowiki>
15153 Lists: 2. Inside definition lists
15155 ;<nowiki>;foo</nowiki>
15157 ;<nowiki>:foo</nowiki>
15159 ;<nowiki>:foo</nowiki>
15162 :<nowiki>:foo</nowiki>
15177 Lists: 3. Only bullets at start of text should be escaped
15179 *<nowiki>*foo*bar</nowiki>
15181 *<nowiki>*foo</nowiki>''it''*bar
15185 <ul><li>*foo<i>it</i>*bar
15191 Lists: 4. No escapes needed
15203 <ul><li><i>foo</i>*bar
15205 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15210 Lists: 5. No unnecessary escapes
15212 * bar <span><nowiki>[[foo]]</nowiki></span>
15214 *=bar <span><nowiki>[[foo]]</nowiki></span>
15216 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15218 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15220 *=bar <span>foo]]</span>=
15224 <ul><li> bar <span>[[foo]]</span>
15226 <ul><li>=bar <span>[[foo]]</span>
15228 <ul><li>[[bar <span>[[foo]]</span>
15230 <ul><li>]]bar <span>[[foo]]</span>
15232 <ul><li>=bar <span>foo]]</span>=
15234 <ul><li> <s></s>: a
15240 Lists: 6. Escape bullets in SOL position
15244 <!--cmt--><nowiki>*foo</nowiki>
15246 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15250 Lists: 7. Escape bullets in a multi-line context
15260 #### --------------- HRs ---------------
15261 #### 1. Single line
15262 #### -----------------------------------
15265 HRs: 1. Single line
15269 ----<nowiki>----</nowiki>
15273 <hr><span typeof="mw:Nowiki">----</span>
15278 #### --------------- Tables ---------------
15279 #### 1a. Simple example
15280 #### 1b. No escaping needed (!foo)
15281 #### 1c. No escaping needed (|foo)
15282 #### 1d. No escaping needed (|}foo)
15284 #### 2a. Nested in td (<td>foo|bar</td>)
15285 #### 2b. Nested in td (<td>foo||bar</td>)
15286 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15288 #### 3a. Nested in th (<th>foo!bar</th>)
15289 #### 3b. Nested in th (<th>foo!!bar</th>)
15290 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15294 #### 4c. No escaping needed
15295 #### --------------------------------------
15298 Tables: 1a. Simple example
15309 Tables: 1b. No escaping needed
15318 Tables: 1c. No escaping needed
15327 Tables: 1d. No escaping needed
15336 Tables: 2a. Nested in td
15341 |<nowiki>foo|bar</nowiki>
15345 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15349 Tables: 2b. Nested in td
15354 |<nowiki>foo||bar</nowiki>
15355 |''it''<nowiki>foo||bar</nowiki>
15359 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15360 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15364 Tables: 2c. Nested in td -- no escaping needed
15372 <table><tbody><tr><td>foo!!bar
15373 </td></tr></tbody></table>
15378 Tables: 3a. Nested in th
15386 <table><tbody><tr><th>foo!bar
15387 </th></tr></tbody></table>
15392 Tables: 3b. Nested in th
15397 !<nowiki>foo!!bar</nowiki>
15401 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15406 Tables: 3c. Nested in th -- no escaping needed
15411 !<nowiki>foo||bar</nowiki>
15415 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15419 Tables: 4a. Escape -
15427 |<nowiki>-bar</nowiki>
15431 <tr><th>-bar</th></tr>
15433 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15437 Tables: 4b. Escape +
15445 |<nowiki>+bar</nowiki>
15449 <tr><th>+bar</th></tr>
15451 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15455 Tables: 4c. No escaping needed
15469 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15470 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15474 ### SSS FIXME: Disabled right now because accurate html2wt
15475 ### on this snippet requires data-parsoid flags that we've
15476 ### stripped out of these tests. We should scheme how we
15477 ### we want to handle these kind of tests that require
15478 ### data-parsoid flags for accurate html2wt serialization
15481 Tables: 4d. No escaping needed
15499 #### --------------- Links ----------------
15500 #### 1. Quote marks in link text
15501 #### 2. Wikilinks: Escapes needed
15502 #### 3. Wikilinks: No escapes needed
15503 #### 4. Extlinks: Escapes needed
15504 #### 5. Extlinks: No escapes needed
15505 #### --------------------------------------
15507 Links 1. Quote marks in link text
15511 [[Foo|<nowiki>Foo''boo''</nowiki>]]
15513 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15517 Links 2. WikiLinks: Escapes needed
15521 [[Foo|<nowiki>[Foobar]</nowiki>]]
15522 [[Foo|<nowiki>Foobar]</nowiki>]]
15523 [[Foo|x [Foobar] x]]
15524 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15525 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15526 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15527 [[Foo|<nowiki>|Bar</nowiki>]]
15528 [[Foo|<nowiki>]]bar</nowiki>]]
15529 [[Foo|<nowiki>[[bar</nowiki>]]
15530 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15532 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15533 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15534 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15535 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15536 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15537 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15538 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15539 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15540 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15541 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15545 Links 3. WikiLinks: No escapes needed
15552 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15553 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15557 Links 4. ExtLinks: Escapes needed
15561 [http://google.com <nowiki>[google]</nowiki>]
15562 [http://google.com <nowiki>google]</nowiki>]
15564 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15565 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15569 Links 5. ExtLinks: No escapes needed
15573 [http://google.com [google]
15575 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15578 #### --------------- Quotes ---------------
15579 #### 1. Quotes inside <b> and <i>
15580 #### 2. Link fragments separated by <i> and <b> tags
15581 #### 3. Link fragments inside <i> and <b>
15582 #### --------------------------------------
15584 1. Quotes inside <b> and <i>
15586 ''<nowiki>'foo'</nowiki>''
15587 ''<nowiki>''foo''</nowiki>''
15588 ''<nowiki>'''foo'''</nowiki>''
15589 ''foo''<nowiki>'s</nowiki>
15590 '''<nowiki>'foo'</nowiki>'''
15591 '''<nowiki>''foo''</nowiki>'''
15592 '''<nowiki>'''foo'''</nowiki>'''
15593 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15594 '''foo'''<nowiki>'s</nowiki>
15603 <b>foo'<i>bar'</i>baz</b>
15609 2. Link fragments separated by <i> and <b> tags
15611 [[''foo''<nowiki>hello]]</nowiki>
15613 [['''foo'''<nowiki>hello]]</nowiki>
15615 <p>[[<i>foo</i>hello]]
15616 </p><p>[[<b>foo</b>hello]]
15621 2. Link fragments inside <i> and <b>
15622 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15623 this is one of the shortcomings of this format)
15625 ''[[foo''<nowiki>]]</nowiki>
15627 '''[[foo'''<nowiki>]]</nowiki>
15630 </p><p><b>[[foo</b>]]
15634 #### ----------- Paragraphs ---------------
15635 #### 1. No unnecessary escapes
15636 #### --------------------------------------
15639 1. No unnecessary escapes
15641 bar <span><nowiki>[[foo]]</nowiki></span>
15643 =bar <span><nowiki>[[foo]]</nowiki></span>
15645 [[bar <span><nowiki>[[foo]]</nowiki></span>
15647 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15649 =bar <span>foo]]</span><nowiki>=</nowiki>
15651 <p>bar <span>[[foo]]</span>
15652 </p><p>=bar <span>[[foo]]</span>
15653 </p><p>[[bar <span>[[foo]]</span>
15654 </p><p>]]bar <span>[[foo]]</span>
15655 </p><p>=bar <span>foo]]</span>=
15659 #### ----------------------- PRE --------------------------
15660 #### 1. Leading whitespace in SOL context should be escaped
15661 #### ------------------------------------------------------
15663 1. Leading whitespace in SOL context should be escaped
15667 <nowiki> a</nowiki>
15669 <nowiki> a</nowiki>
15671 <nowiki> a(tab)</nowiki>
15673 <nowiki> a</nowiki>
15675 <nowiki> a</nowiki>
15690 <p><!--cmt--> a</p>
15699 #### --------------- HTML tags ---------------
15702 #### 3. multi-line html tag
15703 #### -----------------------------------------
15709 <a href="http://google.com">google</a>
15711 <a href="http://google.com">google</a>
15717 <nowiki><div>foo</div>
15718 <div style="color:red">foo</div></nowiki>
15720 <p><div>foo</div>
15721 <div style="color:red">foo</div>
15726 3. multi-line html tag
15741 <nowiki><ref>foo</ref></nowiki>
15743 <p><ref>foo</ref>
15747 #### --------------- Others ---------------
15751 <nowiki>foo</nowiki>
15753 <p><nowiki>foo</nowiki>
15758 Tag-like HTML structures are passed through as text
15780 </p><p>1<d e>f
15785 # This fails in the PHP parser (see bug 40670,
15786 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15788 Tag names followed by punctuation should not be recognized as tags
15794 <p><s.ome> text
15799 HTML tag with necessary entities in attributes
15801 <span title="&amp;">foo</span>
15803 <p><span title="&amp;">foo</span>
15808 HTML tag with 'unnecessary' entity encoding in attributes
15810 <span title="&">foo</span>
15812 <p><span title="&">foo</span>
15817 HTML tag with broken attribute value quoting
15819 <span title="Hello world>Foo</span>
15821 <p><span>Foo</span>
15826 Parsoid-only: HTML tag with broken attribute value quoting
15830 <span title="Hello world>Foo</span>
15832 <p><span title="Hello world">Foo</span>
15837 Table with broken attribute value quoting
15840 | title="Hello world|Foo
15851 Table with broken attribute value quoting on consecutive lines
15854 | title="Hello world|Foo
15855 | style="color:red|Bar
15868 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15873 | title="Hello world|Foo
15874 | style="color:red|Bar
15879 <td title="Hello world">Foo
15880 </td><td style="color: red">Bar
15881 </td></tr></tbody></table>
15886 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15896 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15906 Accept empty td cell attribute
15909 | align="center" | foo || |
15914 <td align="center"> foo </td>
15921 Non-empty attributes in th-cells
15924 ! Foo !! style="color: red" | Bar
15930 <th style="color: red"> Bar
15936 Accept empty attributes in th-cells
15951 Empty table rows go away
15972 ### Parsoid-centric tests for testing RTing of inter-element separators
15973 ### Edge cases not tested by existing parser tests and specific to
15974 ### Parsoid-specific serialization strategies.
15978 RT-ed inter-element separators should be valid separators
15991 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
15992 (Parsoid-only since PHP parser relies on Tidy for correct output)
16008 Empty TD followed by TD with tpl-generated attribute
16013 |{{echo|style='color:red'}}|foo
16027 Indented table with an empty td
16046 Empty TR followed by a template-generated TR
16047 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16049 parsoid=wt2html,wt2wt
16053 {{echo|<tr><td>foo</td></tr>}}
16059 <tr typeof="mw:Transclusion">
16060 <td>foo</td></tr></tbody></table>
16063 ## PHP and parsoid output differ for this, and since this is primarily
16064 ## for testing Parsoid's serializer, marking this Parsoid only
16066 Empty TR followed by mixed-ws-comment line should RT correctly
16080 <td> <!--c--></td></tr>
16082 <td><!--c--> <!--d--></td></tr>
16088 Multi-line image caption generated by templates with/without trailing newlines
16092 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16093 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16095 <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>
16096 <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>
16100 ## PHP emits broken html for this, and since this is primarily
16101 ## a Parsoid serializer test, marking this Parsoid only
16103 Improperly nested inline or quotes tags with whitespace in between
16107 <span> <s>x</span> </s>
16110 <p><span> <s>x</s></span><s> </s>
16111 <b> <i>x</i></b><i> </i>
16115 # -----------------------------------------------------------------
16116 # The following section of tests are primarily to spec requirements
16117 # around serialization of new/edited content.
16119 # All these tests are marked Parsoid html2wt and html2html only
16120 # ----------------------------------------------------------------
16123 Image: Modifying size of an image
16127 [[Image:Wiki.png|230x230px]]
16129 <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>
16133 Image: New block level image should have \n before and after
16138 [[File:Wiki.png|right|thumb|150x150px]]
16141 <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>
16145 Lists: Add space after bullets
16152 * <span> baz</span>
16157 <li><span> baz</span></li>
16161 # This test case is fixed by domino 1.0.12.
16162 # Note that html2wt is considerably more difficult if we use <b> in
16163 # the test case, instead of <big>
16165 Ensure that HTML adoption agency algorithm is properly implemented.
16168 <big>X<big>Y</big>Z</big>
16170 <p><big>X<big>Y</big>Z</big>
16174 # The parsoid team believes the below behavior of the PHP parser to be
16177 Document PHP parser behavior for HTML adoption agency test case.
16181 <em>X<em>Y</em>Z</em>
16183 <p><em>X<em>Y</em>Z</em>
16192 Try for 100% code coverage