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
4819 Incorrecly removing closing slashes from correctly formed XHTML
4821 <br style="clear:both;" />
4823 <p><br style="clear:both;" />
4828 Failing to transform badly formed HTML into correct XHTML
4830 <br style="clear: left;">
4831 <br style="clear: right;">
4832 <br style="clear: both;">
4834 <p><br style="clear: left;" />
4835 <br style="clear: right;" />
4836 <br style="clear: both;" />
4841 Handling html with a div self-closing tag
4850 <p><div title />
4854 <p><div title=bar />
4855 <div title=bar/>
4857 <div title="bar/"></div>
4863 Handling html with a br self-closing tag
4872 <p><br title="title" />
4873 <br title="title" />
4882 Horizontal ruler (should it add that extra space?)
4896 Horizontal ruler -- 4+ dashes render hr
4905 Horizontal ruler -- eats additional dashes on the same line
4914 Horizontal ruler -- does not collapse dashes on consecutive lines
4925 Horizontal ruler -- <4 dashes render as plain text
4934 Horizontal ruler -- Supports content following dashes on same line
4943 ### Block-level elements
4966 <ol><li>Numbered list
4983 ***#Number on level 4
4985 **#Number on level 3
4986 **#Number on level 3
4990 #** Level 3, but ordered
4993 <ol><li> with numbers
4995 <ul><li> and bullets
4997 <ol><li> and numbers
4999 </li><li>bullets again
5000 <ul><li>bullet level 2
5001 <ul><li>bullet level 3
5002 <ol><li>Number on level 4
5005 </li><li>bullet level 2
5006 <ol><li>Number on level 3
5007 </li><li>Number on level 3
5010 <ol><li>number level 2
5013 <ul><li><ul><li> Level 3
5017 <ol><li><ul><li><ul><li> Level 3, but ordered
5051 Nested lists 3 (first element empty)
5064 Nested lists 4 (first element empty)
5077 Nested lists 5 (both elements empty)
5090 Nested lists 6 (both elements empty)
5103 Nested lists 7 (skip initial nesting levels)
5107 <ul><li><ul><li><ul><li> foo
5115 Nested lists 8 (multiple nesting transitions)
5123 <ul><li><ul><li> bar
5133 1. Lists with start-of-line-transparent tokens before bullets: Comments
5147 2. Lists with start-of-line-transparent tokens before bullets: Template close
5159 Unbalanced closing block tags break a list
5160 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5170 </li></ul></div><div>
5176 Unbalanced closing non-block tags don't break a list
5177 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5187 <ul><li>a<span></span>
5193 Unclosed formatting tags that straddle lists are closed and reopened
5194 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5202 </li><li> <s> b </s>
5207 List embedded in a non-block tag
5208 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5216 <p><small></small></p>
5222 <p><small></small></p>
5226 List items are not parsed correctly following a <pre> block (bug 785)
5232 <ul><li> <pre>foo</pre>
5233 </li><li> <pre>bar</pre>
5240 List items from template
5251 * notSOL{{inner list}}
5270 List interrupted by empty line or heading
5280 <ul><li><ul><li> bar
5283 <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>
5284 <ul><li> Another list item
5290 Multiple list tags generated by templates
5305 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5308 <!--This line will NOT split the list-->
5310 <!--This line will NOT split the list either-->
5312 <!--foo--> <!--This line with more than 1 comment will split the list-->
5326 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5328 parsoid=wt2html,wt2wt
5332 * {{echo|<li>templated li-hack}}
5333 * <!--foo--> <li> unsupported li-hack with preceding comments
5336 <li><li>not a li-hack
5342 <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>
5343 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5346 <li></li><li>not a li-hack
5352 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5363 <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>
5372 Magic Word: {{CURRENTDAY}}
5381 Magic Word: {{CURRENTDAY2}}
5390 Magic Word: {{CURRENTDAYNAME}}
5399 Magic Word: {{CURRENTDOW}}
5408 Magic Word: {{CURRENTMONTH}}
5417 Magic Word: {{CURRENTMONTHABBREV}}
5419 {{CURRENTMONTHABBREV}}
5426 Magic Word: {{CURRENTMONTHNAME}}
5428 {{CURRENTMONTHNAME}}
5435 Magic Word: {{CURRENTMONTHNAMEGEN}}
5437 {{CURRENTMONTHNAMEGEN}}
5444 Magic Word: {{CURRENTTIME}}
5453 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5462 Magic Word: {{CURRENTYEAR}}
5471 Magic Word: {{FULLPAGENAME}}
5473 title=[[User:Ævar Arnfjörð Bjarmason]]
5477 <p>User:Ævar Arnfjörð Bjarmason
5482 Magic Word: {{FULLPAGENAMEE}}
5484 title=[[User:Ævar Arnfjörð Bjarmason]]
5488 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5493 Magic Word: {{NAMESPACE}}
5495 title=[[User:Ævar Arnfjörð Bjarmason]]
5504 Magic Word: {{NAMESPACEE}}
5506 title=[[User:Ævar Arnfjörð Bjarmason]]
5515 Magic Word: {{NAMESPACENUMBER}}
5517 title=[[User:Ævar Arnfjörð Bjarmason]]
5526 Magic Word: {{NUMBEROFFILES}}
5535 Magic Word: {{PAGENAME}}
5537 title=[[User:Ævar Arnfjörð Bjarmason]]
5541 <p>Ævar Arnfjörð Bjarmason
5546 Magic Word: {{PAGENAME}} with metacharacters
5548 title=[['foo & bar = baz']]
5552 <p><i>'foo & bar = baz'</i>
5557 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5559 title=[[*RFC 1234 http://example.com/]]
5563 <p>*RFC 1234 http://example.com/
5568 Magic Word: {{PAGENAMEE}}
5570 title=[[User:Ævar Arnfjörð Bjarmason]]
5574 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5579 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5581 title=[[*RFC 1234 http://example.com/]]
5585 <p>*RFC_1234_http://example.com/
5590 Magic Word: {{REVISIONID}}
5599 Magic Word: {{SCRIPTPATH}}
5608 Magic Word: {{SERVER}}
5612 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5617 Magic Word: {{SERVERNAME}}
5626 Magic Word: {{SITENAME}}
5635 Case-sensitive magic words, when cased differently, should just be template transclusions
5642 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5643 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5644 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5645 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5650 Case-insensitive magic words should still work with weird casing.
5660 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5665 Namespace 1 {{ns:1}}
5674 Namespace 1 {{ns:01}}
5683 Namespace 0 {{ns:0}} (bug 4783)
5691 Namespace 0 {{ns:00}} (bug 4783)
5699 Namespace -1 {{ns:-1}}
5708 Namespace User {{ns:User}}
5717 Namespace User talk {{ns:User_talk}}
5726 Namespace User talk {{ns:uSeR tAlK}}
5735 Namespace File {{ns:File}}
5744 Namespace File {{ns:Image}}
5753 Namespace (lang=de) Benutzer {{ns:User}}
5764 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5770 <p>Benutzer Diskussion
5778 {{urlencode:hi world?!}}
5779 {{urlencode:hi world?!|WIKI}}
5780 {{urlencode:hi world?!|PATH}}
5781 {{urlencode:hi world?!|QUERY}}
5794 Magic links: internal link to RFC (bug 479)
5798 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5803 Magic links: RFC (bug 479)
5807 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5812 Magic links: ISBN (bug 1937)
5816 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5821 Magic links: PMID incorrectly converts space to underscore
5825 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5834 Nonexistent template
5836 {{thistemplatedoesnotexist}}
5838 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5843 Template with invalid target containing tags
5845 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5847 <p>{{a<b>b</b>|foo|a=b|a = b}}
5852 Template with invalid target containing unclosed tag
5854 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5856 <p>{{a<b>|foo|a=b|a = b}}</b>
5863 This is a test template
5871 <p>This is a test template
5876 Template with explicit namespace
5880 <p>This is a test template
5888 This is a test template with parameter {{{param}}}
5894 {{paramtest|param=foo}}
5896 <p>This is a test template with parameter foo
5901 Template:paramtestnum
5907 Template unnamed parameter
5909 {{paramtestnum|Main Page|the main page}}
5911 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5916 Template:templatesimple
5922 Template:templateredirect
5924 #redirect [[Template:templatesimple]]
5928 Template:templateasargtestnum
5934 Template:templateasargtest
5936 {{template{{{templ}}}}}
5940 Template:templateasargtest2
5946 Template with template name as unnamed argument
5948 {{templateasargtestnum|templatesimple}}
5955 Template with template name as argument
5957 {{templateasargtest|templ=simple}}
5964 Template with template name as argument (2)
5966 {{templateasargtest2|templ=templatesimple}}
5973 Template:templateasargtestdefault
5975 {{{{{templ|templatesimple}}}}}
5985 Template with default value
5987 {{templateasargtestdefault}}
5994 Template with default value (value set)
5996 {{templateasargtestdefault|templ=templa}}
6005 {{templateredirect}}
6012 Template with argument in separate line
6014 {{ templateasargtest |
6022 Template with complex template as argument
6025 param ={{ templateasargtest |
6028 <p>This is a test template with parameter (test)
6033 Template with thumb image (with link in description)
6036 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6038 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>
6043 Template:complextemplate
6045 {{{1}}} {{paramtest|
6046 param ={{{param}}}}}
6050 Template with complex arguments
6053 param ={{ templateasargtest |
6054 templ = simple }}|[[Template:complextemplate|link]]}}
6056 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6061 BUG 553: link with two variables in a piped link
6064 |[[{{{1}}}|{{{2}}}]]
6069 <td>[[{{{1}}}|{{{2}}}]]
6075 Magic variable as template parameter
6077 {{paramtest|param={{SITENAME}}}}
6079 <p>This is a test template with parameter MediaWiki
6086 [[{{{param}}}|link]]
6090 Template parameter as link source
6092 {{linktest|param=Main Page}}
6094 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6099 Template-generated attribute string (k='v')
6101 <span {{attr_str|id|v1}}>bar</span>
6103 <p><span id="v1">bar</span>
6110 including another template, {{paramtest|param={{{arg}}}}}
6114 Template passing argument to another template
6116 {{paramtest2|arg='hmm'}}
6118 <p>including another template, This is a test template with parameter 'hmm'
6129 Template as link source
6133 [[{{linktest2}}|Main Page]]
6135 [[{{linktest2}}]]Page
6137 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6138 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6139 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6157 Template infinite loop
6161 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6166 Template from main namespace
6185 BUG 529: Template with table, not included at beginning of line
6204 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6224 BUG 41: Template parameters shown as broken links
6233 Template with targets containing wikilinks
6237 {{[[{{echo|foo}}]]}}
6239 {{{{echo|[[foo}}]]}}
6241 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6242 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6250 ''None'' of '''this''' should be
6252 but rather passed unmodified
6256 # hmm, fix this or just deprecate msgnw and document its behavior?
6262 {{msgnw:MSGNW test}}
6264 <p>''None'' of '''this''' should be
6266 but rather passed unmodified
6274 {{int:youhavenewmessages|lots of money|not!}}
6276 <p>You have lots of money (not!).
6283 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6287 <includeonly> and <noinclude> being included
6298 <onlyinclude>Foo</onlyinclude>bar
6302 <onlyinclude> being included
6314 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6318 <onlyinclude> and <includeonly> being included
6327 <includeonly> and <noinclude> on a page
6329 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6336 Un-closed <noinclude>
6343 <onlyinclude> on a page
6345 <onlyinclude>Foo</onlyinclude>bar
6352 Un-closed <onlyinclude>
6359 Self-closed noinclude, includeonly, onlyinclude tags
6370 Unbalanced includeonly and noinclude tags
6374 |b</noinclude></noinclude>
6375 |c</noinclude></includeonly>
6376 |d</includeonly></includeonly>
6385 <td>c</includeonly>
6387 <td>d</includeonly></includeonly>
6393 Template:Includeonly section
6396 ==Includeonly section==
6402 Bug 6563: Edit link generation for section shown by <includeonly>
6404 {{includeonly section}}
6406 <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>
6407 <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>
6411 # Uses same input as the contents of [[Template:Includeonly section]]
6413 Bug 6563: Section extraction for section shown by <includeonly>
6418 ==Includeonly section==
6426 Bug 6563: Edit link generation for section suppressed by <includeonly>
6429 ==Includeonly section==
6433 <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>
6438 Bug 6563: Section extraction for section suppressed by <includeonly>
6443 ==Includeonly section==
6451 Un-closed <includeonly>
6458 ### <includeonly> and <noinclude> in attributes
6461 0. includeonly around the entire attribute
6463 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6465 <p><span id="v2">bar</span>
6470 1. includeonly in html attr key
6472 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6474 <p><span id="foo">bar</span>
6479 2. includeonly in html attr value
6481 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6482 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6484 <p><span id="v1">bar</span>
6485 <span id="v1">bar</span>
6490 3. includeonly in part of an attr value
6492 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6494 <p><span style="color:red;">bar</span>
6499 ### Testing parsing of templates where a template arg
6500 ### has the same name as the template itself.
6510 Templates: Template Name/Arg clash: 1. Use of positional param
6519 Templates: Template Name/Arg clash: 2. Use of named param
6528 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6537 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6541 Templates: 1. Simple use
6550 Templates: 2. Inside a block tag
6552 <div>{{echo|Foo}}</div>
6559 Templates: P-wrapping: 1a. Templates on consecutive lines
6570 Templates: P-wrapping: 1b. Templates on consecutive lines
6584 Templates: P-wrapping: 1c. Templates on consecutive lines
6587 {{echo|bar}} <div>baz</div>
6596 Templates: P-wrapping: 1d. Template preceded by comment-only line
6598 parsoid=wt2html,wt2wt
6604 <p typeof="mw:Transclusion">Bar
6609 Templates: Inline Text: 1. Multiple tmeplate uses
6611 {{echo|Foo}}bar{{echo|baz}}
6618 Templates: Inline Text: 2. Back-to-back template uses
6620 {{echo|Foo}}{{echo|bar}}
6627 Templates: Block Tags: 1. Multiple template uses
6629 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6631 <div>Foo</div><div>bar</div><div>baz</div>
6636 Templates: Block Tags: 2. Back-to-back template uses
6638 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6640 <div>Foo</div><div>bar</div>
6645 Templates: Links: 1. Simple example
6647 {{echo|[[Foo|bar]]}}
6649 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6654 Templates: Links: 2. Generation of link href
6656 [[{{echo|Foo}}|bar]]
6658 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6663 Templates: Links: 3. Generation of part of a link href
6665 [[Fo{{echo|o}}|bar]]
6669 [[Foo{{echo|bar}}baz]]
6671 [[Foo{{echo|bar}}|bar]]
6673 [[:Foo{{echo|bar}}]]
6675 [[:Foo{{echo|bar}}|bar]]
6677 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6678 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6679 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6680 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6681 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6682 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6687 Templates: Links: 4. Multiple templates generating link href
6689 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6691 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6696 Templates: Links: 5. Generation of link text
6698 [[Foo|{{echo|bar}}]]
6700 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6705 Templates: Links: 5. Nested templates (only outermost template should be marked)
6707 {{echo|[[{{echo|Foo}}|bar]]}}
6709 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6714 Templates: HTML Tag: 1. Generation of HTML attr. key
6716 <div {{echo|style}}="color:red;">foo</div>
6718 <div style="color:red;">foo</div>
6723 Templates: HTML Tag: 2. Generation of HTML attr. value
6725 <div style={{echo|'color:red;'}}>foo</div>
6727 <div style="color:red;">foo</div>
6732 Templates: HTML Tag: 3. Generation of HTML attr key and value
6734 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6736 <div style="color:red;">foo</div>
6741 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6743 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6745 <div title="This is a long title with just one piece templated">foo</div>
6750 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6752 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6754 <div title="This is a long title with just one piece templated">foo</div>
6759 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6761 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6763 <div title="This is a long title with just one piece templated">foo</div>
6768 Templates: HTML Tag: 7. Generation of partial attribute key string
6770 <div st{{echo|yle}}="color:red;">foo</div>
6772 <div style="color:red;">foo</div>
6777 Templates: HTML Tables: 1. Generating start of a HTML table
6779 {{echo|<table><tr><td>foo</td>}}</tr></table>
6781 <table><tr><td>foo</td></tr></table>
6786 Templates: HTML Tables: 2a. Generating middle of a HTML table
6788 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6790 <table><tr><td>foo</td></tr></table>
6795 Templates: HTML Tables: 2b. Generating middle of a HTML table
6797 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6799 <table><tr><td>foo</td></tr></table>
6804 Templates: HTML Tables: 3. Generating end of a HTML table
6806 <table><tr>{{echo|<td>foo</td></tr></table>}}
6808 <table><tr><td>foo</td></tr></table>
6813 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6815 {{echo|<table>}}<tr><td>foo</td></tr></table>
6817 <table><tr><td>foo</td></tr></table>
6822 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6824 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6826 <table><tr><td>foo</td></tr></table>
6831 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6833 <table><tr>{{echo|<td>}}foo</td></tr></table>
6835 <table><tr><td>foo</td></tr></table>
6840 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6842 <table><tr><td>foo{{echo|</td>}}</tr></table>
6844 <table><tr><td>foo</td></tr></table>
6849 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6851 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6853 <table><tr><td>foo</td></tr></table>
6858 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6860 <table><tr><td>foo</td></tr>{{echo|</table>}}
6862 <table><tr><td>foo</td></tr></table>
6867 Templates: HTML Tables: 5. Proper fostering of categories from inside
6869 parsoid=wt2html,wt2wt
6871 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6872 <!--Two categories (Bug 50330)-->
6873 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6875 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6876 <!--Two categories (Bug 50330)-->
6877 <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>
6881 Templates: Wiki Tables: 1a. Fostering of entire template content
6889 <tr><td></td></tr></table>
6894 Templates: Wiki Tables: 1b. Fostering of entire template content
6907 <tr><td></td></tr></table>
6912 Templates: Wiki Tables: 2. Fostering of partial template content
6922 <tr><td></td></tr></table>
6927 Templates: Wiki Tables: 3. td-content via multiple templates
6930 {{echo|{{pipe}}a}}{{echo|b}}
6941 Templates: Wiki Tables: 4. Templated tags, no content
6947 <tr><td></td></tr></table>
6952 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6966 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6980 Templates: Lists: Multi-line list-items via templates
6982 *{{echo|a {{nonexistent|
6984 *{{echo|b {{nonexistent|
6987 <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>
6988 </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>
6994 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6996 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6998 <p><i>ab</i>c<i>d</i>e
7003 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7004 (PHP parser generates misnested html)
7006 parsoid=wt2html,wt2wt
7008 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7010 <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>
7014 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7015 (PHP parser generates misnested html)
7017 parsoid=wt2html,wt2wt
7019 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7021 <div typeof="mw:Transclusion"><i>a</i></div>
7022 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7023 <div typeof="mw:Transclusion">e</div>
7027 Templates: Ugly nesting: 4. Divs opened/closed across templates
7029 a<div>b{{echo|c</div>d}}e
7036 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7042 |{{echo|foo</table>}}
7046 <table typeof="mw:Transclusion">
7049 <td>foo</td></tr></tbody></table><span>bar</span>
7053 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7063 <td>1. {{echo|foo </table>}}</td>
7065 <td>2. {{echo|baz </table>}}</td>
7078 <table about="#mwt1" typeof="mw:Transclusion">
7083 <td >1. foo </td></tr></tbody></table></td>
7085 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7086 </span><span about="#mwt1">
7088 abc</span><span about="#mwt1">
7089 </span><span about="#mwt1">
7090 </span><span about="#mwt1">
7091 </span><span about="#mwt1">
7092 </span><span about="#mwt1">
7094 xyz</span><span about="#mwt1">
7095 </span><span about="#mwt1">
7100 Templates: Ugly templates: 3. newline-only template parameter
7109 # This looks like a bug: a single newline triggers p/br for some reason.
7111 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7122 Parser Functions: 1. Simple example
7131 Parser Functions: 2. Nested use (only outermost should be marked up)
7140 ### Pre-save transform tests
7143 pre-save transform: subst:
7149 This is a test template
7153 pre-save transform: normal template
7163 pre-save transform: nonexistent template
7167 {{thistemplatedoesnotexist}}
7169 {{thistemplatedoesnotexist}}
7174 pre-save transform: subst magic variables
7183 # This is bug 89, which I fixed. -- wtm
7185 pre-save transform: subst: templates with parameters
7189 {{subst:paramtest|param="something else"}}
7191 This is a test template with parameter "something else"
7197 <nowiki>'''not wiki'''</nowiki>
7201 pre-save transform: nowiki in subst (bug 1188)
7205 {{subst:nowikitest}}
7207 <nowiki>'''not wiki'''</nowiki>
7212 Template:commenttest
7214 This template has <!-- a comment --> in it.
7218 pre-save transform: comment in subst (bug 1936)
7222 {{subst:commenttest}}
7224 This template has <!-- a comment --> in it.
7228 pre-save transform: unclosed tag
7232 <nowiki>'''not wiki'''
7234 <nowiki>'''not wiki'''
7238 pre-save transform: mixed tag case
7242 <NOwiki>'''not wiki'''</noWIKI>
7244 <NOwiki>'''not wiki'''</noWIKI>
7248 pre-save transform: unclosed comment in <nowiki>
7252 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7254 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7257 # Leading @ in this template definition works around a limitation
7258 # in parsoid's parserTests which otherwise strips the <span> from the
7259 # result (confusing it for a template wrapper)
7263 @<span onmouseover="alert('crap')">Oh no</span>
7267 (confirming safety of fix for subst bug 1936)
7269 {{Template:dangerous}}
7271 <p>@<span>Oh no</span>
7276 pre-save transform: comment containing gallery (bug 5024)
7280 <!-- <gallery>data</gallery> -->
7282 <!-- <gallery>data</gallery> -->
7286 pre-save transform: comment containing extension
7290 <!-- <tag>data</tag> -->
7292 <!-- <tag>data</tag> -->
7296 pre-save transform: comment containing nowiki
7300 <!-- <nowiki>data</nowiki> -->
7302 <!-- <nowiki>data</nowiki> -->
7306 pre-save transform: <noinclude> in subst (bug 3298)
7316 pre-save transform: <onlyinclude> in subst (bug 3298)
7328 {{<includeonly>subst:</includeonly>Includes}}
7332 Template:SafeSubstTest
7334 {{<includeonly>safesubst:</includeonly>Includes}}
7338 bug 22297: safesubst: works during PST
7342 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7348 bug 22297: safesubst: works during normal parse
7357 subst: does not work during normal parse
7361 <p>{{subst:Includes}}
7366 pre-save transform: context links ("pipe trick")
7370 [[Article (context)|]]
7373 [[Bar:Article (context)|]]
7374 [[:Bar:Article (context)|]]
7376 [[|Article (context)]]
7380 [[Article (context)|Article]]
7381 [[Bar:Article|Article]]
7382 [[:Bar:Article|Article]]
7383 [[Bar:Article (context)|Article]]
7384 [[:Bar:Article (context)|Article]]
7386 [[Article (context)]]
7387 [[Bar:X (Y) Z|X (Y) Z]]
7388 [[:Bar:X (Y) Z|X (Y) Z]]
7392 pre-save transform: context links ("pipe trick") with interwiki prefix
7396 [[interwiki:Article|]]
7397 [[:interwiki:Article|]]
7398 [[interwiki:Bar:Article|]]
7399 [[:interwiki:Bar:Article|]]
7401 [[interwiki:Article|Article]]
7402 [[:interwiki:Article|Article]]
7403 [[interwiki:Bar:Article|Bar:Article]]
7404 [[:interwiki:Bar:Article|Bar:Article]]
7408 pre-save transform: context links ("pipe trick") with parens in title
7410 pst title=[[Somearticle (context)]]
7414 [[Article (context)|Article]]
7418 pre-save transform: context links ("pipe trick") with comma in title
7420 pst title=[[Someplace, Somewhere]]
7423 [[Otherplace, Elsewhere|]]
7424 [[Otherplace, Elsewhere, Anywhere|]]
7426 [[Otherplace, Somewhere|Otherplace]]
7427 [[Otherplace, Elsewhere|Otherplace]]
7428 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7432 pre-save transform: context links ("pipe trick") with parens and comma
7434 pst title=[[Someplace (IGNORED), Somewhere]]
7437 [[Otherplace (place), Elsewhere|]]
7439 [[Otherplace, Somewhere|Otherplace]]
7440 [[Otherplace (place), Elsewhere|Otherplace]]
7444 pre-save transform: context links ("pipe trick") with comma and parens
7446 pst title=[[Who, me? (context)]]
7449 [[Me, Myself, and I (1937 song)|]]
7451 [[Yes, you. (context)|Yes, you.]]
7452 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7456 pre-save transform: context links ("pipe trick") with namespace
7458 pst title=[[Ns:Somearticle]]
7462 [[Ns:Article|Article]]
7466 pre-save transform: context links ("pipe trick") with namespace and parens
7468 pst title=[[Ns:Somearticle (context)]]
7472 [[Ns:Article (context)|Article]]
7476 pre-save transform: context links ("pipe trick") with namespace and comma
7478 pst title=[[Ns:Somearticle, Context, Whatever]]
7482 [[Ns:Article, Context, Whatever|Article]]
7486 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7488 pst title=[[Ns:Somearticle, Context (context)]]
7492 [[Ns:Article (context)|Article]]
7496 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7498 pst title=[[Ns:Somearticle (IGNORED), Context]]
7502 [[Ns:Article, Context|Article]]
7506 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7510 [[Article(context)|]]
7511 [[Bar:Article(context)|]]
7512 [[:Bar:Article(context)|]]
7513 [[|Article(context)]]
7517 [[Article(context)|Article]]
7518 [[Bar:Article(context)|Article]]
7519 [[:Bar:Article(context)|Article]]
7520 [[Article(context)]]
7522 [[:Bar:X(Y)Z|X(Y)Z]]
7526 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7530 [[Article (context)|]]
7531 [[Bar:Article (context)|]]
7532 [[:Bar:Article (context)|]]
7533 [[|Article (context)]]
7537 [[Article (context)|Article]]
7538 [[Bar:Article (context)|Article]]
7539 [[:Bar:Article (context)|Article]]
7540 [[Article (context)]]
7541 [[Bar:X (Y) Z|X (Y) Z]]
7542 [[:Bar:X (Y) Z|X (Y) Z]]
7546 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7550 [[Article(context)|]]
7551 [[Bar:Article(context)|]]
7552 [[:Bar:Article(context)|]]
7553 [[|Article(context)]]
7557 [[Article(context)|Article]]
7558 [[Bar:Article(context)|Article]]
7559 [[:Bar:Article(context)|Article]]
7560 [[Article(context)]]
7562 [[:Bar:X(Y)Z|X(Y)Z]]
7566 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7570 [[Article (context), context|]]
7571 [[Article (context),context|]]
7572 [[Bar:Article (context), context|]]
7573 [[Bar:Article (context),context|]]
7574 [[:Bar:Article (context), context|]]
7575 [[:Bar:Article (context),context|]]
7577 [[Article (context), context|Article]]
7578 [[Article (context),context|Article]]
7579 [[Bar:Article (context), context|Article]]
7580 [[Bar:Article (context),context|Article]]
7581 [[:Bar:Article (context), context|Article]]
7582 [[:Bar:Article (context),context|Article]]
7586 pre-save transform: trim trailing empty lines
7590 Empty lines are trimmed
7596 Empty lines are trimmed
7600 pre-save transform: Signature expansion
7605 * <noinclude>~~~</noinclude>
7606 * <includeonly>~~~</includeonly>
7607 * <onlyinclude>~~~</onlyinclude>
7609 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7610 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7611 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7612 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7617 pre-save transform: Signature expansion in nowiki tags (bug 93)
7623 <nowiki>~~~~</nowiki>
7625 <includeonly><nowiki>~~~~</nowiki></includeonly>
7627 <noinclude><nowiki>~~~~</nowiki></noinclude>
7629 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7631 {{subst:Foo}} shall be converted to FOO
7633 As well as inside noinclude/onlyinclude
7634 <noinclude>{{subst:Foo}}</noinclude>
7635 <onlyinclude>{{subst:Foo}}</onlyinclude>
7637 But not inside includeonly
7638 <includeonly>{{subst:Foo}}</includeonly>
7642 <nowiki>~~~~</nowiki>
7644 <includeonly><nowiki>~~~~</nowiki></includeonly>
7646 <noinclude><nowiki>~~~~</nowiki></noinclude>
7648 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7650 FOO shall be converted to FOO
7652 As well as inside noinclude/onlyinclude
7653 <noinclude>FOO</noinclude>
7654 <onlyinclude>FOO</onlyinclude>
7656 But not inside includeonly
7657 <includeonly>{{subst:Foo}}</includeonly>
7661 ### Message transform tests
7664 message transform: magic variables
7674 message transform: should not transform wiki markup
7684 message transform: <noinclude> in transcluded template (bug 4926)
7694 message transform: <onlyinclude> in transcluded template (bug 4926)
7704 {{#special:}} page name, known
7708 {{#special:Recentchanges}}
7710 Special:RecentChanges
7714 {{#special:}} page name with subpage, known
7718 {{#special:Recentchanges/param}}
7720 Special:RecentChanges/param
7724 {{#special:}} page name, unknown
7728 {{#special:foobar nonexistent}}
7730 Special:Foobar nonexistent
7734 {{#speciale:}} page name, known
7738 {{#speciale:Recentchanges}}
7740 Special:RecentChanges
7744 {{#speciale:}} page name with subpage, known
7748 {{#speciale:Recentchanges/param}}
7750 Special:RecentChanges/param
7754 {{#speciale:}} page name, unknown
7758 {{#speciale:foobar nonexistent}}
7760 Special:Foobar_nonexistent
7769 [[Image:foobar.jpg]]
7771 <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>
7778 [[Image:foobar.jpg|right]]
7780 <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>
7785 Simple image (using File: namespace, now canonical)
7789 <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>
7796 [[Image:foobar.jpg|right|Caption text]]
7798 <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>
7803 Image with empty attribute
7805 [[Image:foobar.jpg|right||Caption text]]
7807 <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>
7812 Image with link tails
7814 123[[Image:foobar.jpg]]456
7815 123[[Image:foobar.jpg|right]]456
7816 123[[Image:foobar.jpg|thumb]]456
7818 <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
7820 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
7821 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
7826 Image with multiple captions -- only last one is accepted
7828 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7830 <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>
7835 Image with width attribute at different positions
7837 [[Image:foobar.jpg|200px|right|Caption]]
7838 [[Image:foobar.jpg|right|200px|Caption]]
7839 [[Image:foobar.jpg|right|Caption|200px]]
7841 <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>
7842 <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>
7843 <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>
7848 Image with link parameter, wiki target
7850 [[Image:foobar.jpg|link=Target page]]
7852 <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>
7857 Image with link parameter, URL target
7859 [[Image:foobar.jpg|link=http://example.com/]]
7861 <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>
7866 Image with link parameter, wgExternalLinkTarget
7868 [[Image:foobar.jpg|link=http://example.com/]]
7870 wgExternalLinkTarget='foobar'
7872 <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>
7877 Image with link parameter, wgNoFollowLinks set to false
7879 [[Image:foobar.jpg|link=http://example.com/]]
7881 wgNoFollowLinks=false
7883 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7888 Image with link parameter, wgNoFollowDomainExceptions
7890 [[Image:foobar.jpg|link=http://example.com/]]
7892 wgNoFollowDomainExceptions='example.com'
7894 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7899 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7901 [[Image:foobar.jpg|link=http://example.com/|Title]]
7903 wgExternalLinkTarget='foobar'
7905 <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>
7910 Image with empty link parameter
7912 [[Image:foobar.jpg|link=]]
7914 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7919 Image with link parameter (wiki target) and unnamed parameter
7921 [[Image:foobar.jpg|link=Target page|Title]]
7923 <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>
7928 Image with link parameter (URL target) and unnamed parameter
7930 [[Image:foobar.jpg|link=http://example.com/|Title]]
7932 <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>
7937 Thumbnail image with link parameter
7941 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7943 <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>
7948 Manually-specified thumbnail image
7952 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7954 <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>
7959 Manually-specified thumbnail image with explicit link to wiki page
7963 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7965 <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>
7970 Manually-specified thumbnail image with explicit link to url
7974 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7976 <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>
7981 Manually-specified thumbnail image with explicit no link
7985 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7987 <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>
7992 Manually-specified thumbnail image with explicit link and alt text
7996 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7998 <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>
8003 Image with frame and link
8005 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8007 <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>
8012 Image with frame and link and explicit alt
8014 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8016 <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>
8021 Image with wiki markup in implicit alt
8023 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8025 <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>
8030 Image with wiki markup in explicit alt
8032 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8034 <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>
8039 Link to image page- image page normally doesn't exists, hence edit link
8040 Add test with existing image page
8041 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8045 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8050 bug 18784 Link to non-existent image page with caption should use caption as link text
8052 [[:Image:test|caption]]
8054 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8059 Frameless image caption with a free URL
8061 [[Image:foobar.jpg|http://example.com]]
8063 <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>
8068 Thumbnail image caption with a free URL
8070 [[Image:foobar.jpg|thumb|http://example.com]]
8072 <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>
8077 Thumbnail image caption with a free URL and explicit alt
8079 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8081 <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>
8086 SVG thumbnails with no language set
8089 [[File:Foobar.svg|thumb|width=200]]
8091 <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>
8096 SVG thumbnails with language de
8099 [[File:Foobar.svg|thumb|width=200|lang=de]]
8101 <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>
8106 SVG thumbnails with invalid language code
8109 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8111 <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>
8116 BUG 1887: A ISBN with a thumbnail
8118 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8120 <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>
8125 BUG 1887: A RFC with a thumbnail
8127 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8129 <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>
8134 BUG 1887: A mailto link with a thumbnail
8136 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8138 <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>
8142 # Pending resolution to bug 368
8144 BUG 648: Frameless image caption with a link
8146 [[Image:foobar.jpg|text with a [[link]] in it]]
8148 <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>
8153 BUG 648: Frameless image caption with a link (suffix)
8155 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8157 <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>
8162 BUG 648: Frameless image caption with an interwiki link
8164 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8166 <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>
8171 BUG 648: Frameless image caption with a piped interwiki link
8173 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8175 <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>
8180 Escape HTML special chars in image alt text
8182 [[Image:foobar.jpg|& < > "]]
8184 <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>
8189 BUG 499: Alt text should have Ӓ, not &1234;
8191 [[Image:foobar.jpg|♀]]
8193 <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>
8198 Broken image caption with link
8200 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8202 <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.
8207 Image caption containing another image
8209 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8211 <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>
8216 Image caption containing a newline
8218 [[Image:Foobar.jpg|This
8221 <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>
8226 Parsoid: Image caption containing leading space
8227 (The leading space should not trigger nowiki escaping in wt2wt mode)
8229 [[Image:Foobar.jpg|thumb| bar]]
8231 <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>
8236 Bug 3090: External links other than http: in image captions
8238 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8240 <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>
8247 [[Image:foobar.jpg|a|class=b]]
8249 <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>
8254 Localized image handling (1).
8258 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8260 <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>
8265 Localized image handling (2).
8269 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8271 <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>
8276 "border", "frameless" and "class" attributes on an image.
8278 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8280 <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>
8287 #REDIRECT [[File:Barfoo.jpg]]
8293 [[Image:Barfoo.jpg]]
8295 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8300 Missing image with uploads disabled
8304 [[Image:Foobaz.jpg]]
8306 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8310 # Parsoid-specific testing for images
8311 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8312 # Currently imperfect due to a flaw in the Parsoid testrunner
8316 Parsoid-specific image handling - simple image
8320 [[Image:Foobar.jpg]]
8323 <span class="mw-default-size" typeof="mw:Image">
8324 <a href="File:Foobar.jpg">
8325 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8332 Parsoid-specific image handling - simple image without link
8336 [[Image:Foobar.jpg|link=]]
8339 <span class="mw-default-size" typeof="mw:Image">
8341 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8348 Parsoid-specific image handling - simple image with specific link
8352 [[Image:Foobar.jpg|link=Main Page]]
8355 <span class="mw-default-size" typeof="mw:Image">
8356 <a href="Main_Page">
8357 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8364 Parsoid-specific image handling - simple image with size and middle alignment
8368 [[Image:Foobar.jpg|50px|middle]]
8371 <span class="mw-valign-middle" typeof="mw:Image">
8372 <a href="File:Foobar.jpg">
8373 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8380 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8384 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8387 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8388 <a href="File:Foobar.jpg">
8389 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8396 Parsoid-specific image handling - simple image with border and size spec
8400 [[Image:Foobar.jpg|50px|border|caption]]
8403 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8404 <a href="File:Foobar.jpg">
8405 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8412 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8416 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8418 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8419 <a href="File:Foobar.jpg">
8420 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8422 <figcaption>caption content</figcaption>
8427 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8431 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8433 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8434 <a href="File:Foobar.jpg">
8435 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8437 <figcaption>caption</figcaption>
8442 Parsoid-specific image handling - framed image with specific size and caption
8446 [[Image:Foobar.jpg|500x50px|frame|caption]]
8448 <figure typeof="mw:Image/Frame">
8449 <a href="File:Foobar.jpg">
8450 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8452 <figcaption>caption</figcaption>
8457 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8461 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8463 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8464 <a href="File:Foobar.jpg">
8465 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8467 <figcaption>caption</figcaption>
8472 Parsoid-specific image handling - frameless image with specific size, border, and caption
8476 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8479 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8480 <a href="File:Foobar.jpg">
8481 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8487 #Parsoid-specific image handling - simple image with a formatted caption
8491 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8494 #<span typeof="mw:Image">
8495 #<a class="mw-default-size" href="Image:Foobar.jpg">
8496 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8507 Subpage test/subpage
8515 subpage title=[[Subpage test]]
8519 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8524 Subpage noslash link
8526 subpage title=[[Subpage test]]
8530 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8534 # TODO: make this PHP-parser compatible!
8536 Relative subpage noslash link
8538 parsoid=wt2wt,wt2html,html2html
8539 subpage title=[[Subpage test/1/2/3/4]]
8545 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8546 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8549 # TODO: make this PHP-parser compatible!
8551 Parsoid: dot-slash prefixed wikilinks
8553 parsoid=wt2wt,wt2html,html2html
8561 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8562 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8563 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8571 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8576 BUG 561: {{/Subpage}}
8578 subpage title=[[Page]]
8582 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8590 Category:MediaWiki User's Guide
8598 [[:Category:MediaWiki User's Guide]]
8600 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8609 [[Category:MediaWiki User's Guide]]
8611 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8615 PAGESINCATEGORY invalid title fatal (r33546 fix)
8617 {{PAGESINCATEGORY:<bogus>}}
8624 Category with different sort key
8628 [[Category:MediaWiki User's Guide|Foo]]
8630 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8634 Category with identical sort key
8638 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8640 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8644 Category with empty sort key
8649 [[Category:MediaWiki User's Guide|]]
8651 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8655 Category with empty sort key and parentheses
8660 [[Category:Foo (bar)|]]
8662 [[Category:Foo (bar)|Foo]]
8666 Category with link tail
8671 123[[Category:Foo]]456
8673 123[[Category:Foo]]456
8677 Category with template
8682 [[Category:{{echo|Foo}}]]
8684 [[Category:{{echo|Foo}}]]
8688 Category with template in sort key
8693 [[Category:Foo|{{echo|Bar}}]]
8695 [[Category:Foo|{{echo|Bar}}]]
8699 Category with template in sort key and title
8704 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8706 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8710 Category / paragraph interactions
8712 Foo [[Category:Baz]] Bar
8714 Foo [[Category:Baz]]
8722 [[Category:Baz]] Bar
8735 {{echo|[[Category:Baz]]}}
8750 Parsoid: Serialize link to category page with colon escape
8756 [[:Category:Foo|Bar]]
8759 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8760 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8765 Parsoid: Serialize link to file page with colon escape
8771 [[:File:Foo.png|Bar]]
8774 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8775 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8780 Parsoid: Serialize a genuine category link without colon escape
8785 [[Category:Foo|Bar]]
8787 <link rel="mw:WikiLink/Category" href="Category:Foo">
8788 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8792 ### Inter-language links
8795 Inter-language links
8801 [[zh:食品]]
8803 es:Alimento fr:Nourriture zh:食品
8807 Duplicate interlanguage links (bug 24502)
8823 Basic section headings
8830 ===Smaller headline===
8833 <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>
8836 <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>
8839 <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>
8845 Section headings with TOC
8848 === Subheadline 1 ===
8849 ===== Skipping a level =====
8850 ====== Skipping a level ======
8854 ===Another headline===
8856 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8858 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8860 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8862 <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>
8864 <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>
8871 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8873 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8878 <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>
8879 <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>
8880 <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>
8881 <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>
8882 <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>
8885 <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>
8889 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8891 Handling of sections up to level 6 and beyond
8894 == Level 2 Heading==
8895 === Level 3 Heading===
8896 ==== Level 4 Heading====
8897 ===== Level 5 Heading=====
8898 ====== Level 6 Heading======
8899 ======= Level 7 Heading=======
8900 ======== Level 8 Heading========
8901 ========= Level 9 Heading=========
8902 ========== Level 10 Heading==========
8904 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8906 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8908 <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>
8910 <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>
8912 <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>
8914 <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>
8916 <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>
8917 <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>
8918 <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>
8919 <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>
8920 <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>
8933 <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>
8934 <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>
8935 <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>
8936 <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>
8937 <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>
8938 <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>
8939 <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>
8940 <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>
8941 <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>
8942 <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>
8947 TOC regression (bug 9764)
8951 ==== title 1.1.1 ====
8956 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8958 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8960 <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>
8962 <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>
8965 <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>
8968 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8970 <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>
8975 <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>
8976 <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>
8977 <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>
8978 <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>
8979 <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>
8980 <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>
8985 TOC with wgMaxTocLevel=3 (bug 6204)
8991 ==== title 1.1.1 ====
8996 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8998 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9000 <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>
9001 <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>
9004 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9006 <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>
9011 <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>
9012 <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>
9013 <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>
9014 <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>
9015 <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>
9016 <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>
9021 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9027 ====Section 1.1.1====
9028 ====Section 1.1.1.1====
9031 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9033 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9035 <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>
9038 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9041 <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>
9042 <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>
9043 <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>
9044 <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>
9045 <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>
9051 Resolving duplicate section names
9056 <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>
9057 <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>
9062 Resolving duplicate section names with differing case (bug 10721)
9067 <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>
9068 <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>
9080 Template with sections, __NOTOC__
9087 <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>
9088 <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>
9089 <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>
9090 <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>
9095 __NOEDITSECTION__ keyword
9101 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9102 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9107 Link inside a section heading
9109 ==Section with a [[Main Page|link]] in it==
9111 <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>
9116 TOC regression (bug 12077)
9123 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9125 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9127 <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>
9130 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9133 <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>
9134 <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>
9135 <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>
9140 BUG 1219 URL next to image (good)
9142 http://example.com [[Image:foobar.jpg]]
9144 <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>
9149 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9152 The line above must have a trailing space!
9155 But just in case it doesn't...
9157 <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>
9158 <p>The line above must have a trailing space!
9160 <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>
9161 <p>But just in case it doesn't...
9166 Header with special characters (bug 25462)
9168 The tooltips shall not show entities to the user (ie. be double escaped)
9185 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9187 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9189 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9190 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9191 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9192 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9193 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9196 <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>
9199 <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>
9202 <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>
9205 <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>
9208 <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>
9214 Headers with excess '=' characters
9215 (Are similar tests necessary beyond the 1st level?)
9219 =''italic'' heading==
9220 ==''italic'' heading=
9222 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9224 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9225 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9226 <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>
9227 <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>
9230 <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>
9231 <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>
9232 <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>
9233 <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>
9238 HTML headers vs TOC (bug 23393)
9239 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9251 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9253 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9255 <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>
9256 <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>
9259 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9261 <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>
9262 <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>
9267 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9268 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9269 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9270 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9271 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9272 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9277 BUG 1219 URL next to image (broken)
9279 http://example.com[[Image:foobar.jpg]]
9281 <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>
9286 Bug 1186 news: in the middle of text
9288 http://en.wikinews.org/wiki/Wikinews:Workplace
9290 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9296 Namespaced link must have a title
9305 Namespaced link must have a title (bad fragment version)
9307 [[Project:#fragment]]
9309 <p>[[Project:#fragment]]
9315 ### HTML tags and HTML attributes
9319 div with no attributes
9321 <div>HTML rocks</div>
9323 <div>HTML rocks</div>
9328 div with double-quoted attribute
9330 <div id="rock">HTML rocks</div>
9332 <div id="rock">HTML rocks</div>
9337 div with single-quoted attribute
9339 <div id='rock'>HTML rocks</div>
9341 <div id="rock">HTML rocks</div>
9346 div with unquoted attribute
9348 <div id=rock>HTML rocks</div>
9350 <div id="rock">HTML rocks</div>
9355 div with illegal double attributes
9357 <div id="a" id="b">HTML rocks</div>
9359 <div id="b">HTML rocks</div>
9363 # FIXME: produce empty string instead of "class" in the PHP parser, following
9366 div with empty attribute value, space before equals
9370 <div class =>HTML rocks</div>
9372 <div class="">HTML rocks</div>
9376 # The PHP parser escapes the opening brace to { for some reason, so
9377 # disabled this test for it.
9379 div with braces in attribute value
9383 <div title="{}">Foo</div>
9385 <div title="{}">Foo</div>
9388 # This it very inconsistent in the PHP parser: it returns
9389 # class="class" if there is a space between the name and the equal sign (see
9390 # 'div with empty attribute value, space before equals'), but strips the
9391 # attribute completely if the space is missing. We hope that not much content
9392 # depends on this, so are implementing the behavior below in Parsoid for
9393 # consistencies' sake. Disabled for the PHP parser.
9394 # FIXME: fix this behavior in the PHP parser?
9396 div with empty attribute value, no space before equals
9400 <div class=>HTML rocks</div>
9402 <div class="">HTML rocks</div>
9407 HTML multiple attributes correction
9409 <p class="error" class="awesome">Awesome!</p>
9411 <p class="awesome">Awesome!</p>
9416 Table multiple attributes correction
9419 !+ class="error" class="awesome"| status
9424 <th class="awesome"> status
9432 <DIV ID="x">HTML ROCKS</DIV>
9434 <div id="x">HTML ROCKS</div>
9439 Non-ASCII pseudo-tags are rendered as text
9448 Pseudo-tag with URL 'name' renders as url link
9450 <http://example.com/>
9452 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9457 text with amp in the middle of nowhere
9461 <p>Remember AT&T?
9466 text with character entity: eacute
9468 I always thought é was a cute letter.
9470 <p>I always thought é was a cute letter.
9475 text with entity-escaped character entity-like string: eacute
9477 I always thought &eacute; was a cute letter.
9479 <p>I always thought &eacute; was a cute letter.
9484 text with undefined character entity: xacute
9486 I always thought &xacute; was a cute letter.
9488 <p>I always thought &xacute; was a cute letter.
9500 [[Media:Foobar.jpg]]
9502 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9507 Media link with text
9509 [[Media:Foobar.jpg|A neat file to look at]]
9511 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9515 # FIXME: this is still bad HTML tag nesting
9517 Media link with nasty text
9518 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9520 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9522 <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>
9527 Media link to nonexistent file (bug 1702)
9529 [[Media:No such.jpg]]
9531 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9536 Image link to nonexistent file (bug 1850 - good)
9538 [[Image:No such.jpg]]
9540 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9545 :Image link to nonexistent file (bug 1850 - bad)
9547 [[:Image:No such.jpg]]
9549 <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>
9556 Character reference normalization in link text (bug 1938)
9558 [[Main Page|this&that]]
9560 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9567 Test for unicode normalization
9569 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9573 (bug 19451) Links should refer to the normalized form.
9581 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9582 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9583 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9584 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9585 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9590 Empty attribute crash test (bug 2067)
9592 <font color="">foo</font>
9594 <p><font color="">foo</font>
9599 Empty attribute crash test single-quotes (bug 2067)
9601 <font color=''>foo</font>
9603 <p><font color="">foo</font>
9608 Attribute test: equals, then nothing
9610 <font color=>foo</font>
9617 Attribute test: unquoted value
9619 <font color=x>foo</font>
9621 <p><font color="x">foo</font>
9626 Attribute test: unquoted but illegal value (hash)
9628 <font color=#x>foo</font>
9630 <p><font color="#x">foo</font>
9635 Attribute test: no value
9637 <font color>foo</font>
9639 <p><font color="color">foo</font>
9644 Bug 2095: link with three closing brackets
9648 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9653 Bug 2095: link with pipe and three closing brackets
9657 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9662 Bug 2095: link with pipe and three closing brackets, version 2
9664 [[Main Page|[http://example.com/]]]
9666 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9676 Template:Dangerous attribute
9678 " onmouseover="alert(document.cookie)
9682 Template:Dangerous style attribute
9684 border-size: expression(alert(document.cookie))
9690 <div style="float: right; {{{1}}}">Magic div</div>
9694 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9696 <div title="{{test}}"></div>
9698 <div title="This is a test template"></div>
9703 Bug 2304: HTML attribute safety (dangerous template; 2309)
9705 <div title="{{dangerous attribute}}"></div>
9707 <div title=""></div>
9712 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9714 <div style="{{dangerous style attribute}}"></div>
9716 <div style="/* insecure input */"></div>
9721 Bug 2304: HTML attribute safety (safe parameter; 2309)
9723 {{div style|width: 200px}}
9725 <div style="float: right; width: 200px">Magic div</div>
9730 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9732 {{div style|width: expression(alert(document.cookie))}}
9734 <div style="/* insecure input */">Magic div</div>
9739 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9741 {{div style|"><script>alert(document.cookie)</script>}}
9743 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9748 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9750 {{div style|" ><script>alert(document.cookie)</script>}}
9752 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9757 Bug 2304: HTML attribute safety (link)
9759 <div title="[[Main Page]]"></div>
9761 <div title="[[Main Page]]"></div>
9766 Bug 2304: HTML attribute safety (italics)
9768 <div title="''foobar''"></div>
9770 <div title="''foobar''"></div>
9775 Bug 2304: HTML attribute safety (bold)
9777 <div title="'''foobar'''"></div>
9779 <div title="'''foobar'''"></div>
9785 Bug 2304: HTML attribute safety (ISBN)
9787 <div title="ISBN 1234567890"></div>
9789 <div title="ISBN 1234567890"></div>
9794 Bug 2304: HTML attribute safety (RFC)
9796 <div title="RFC 1234"></div>
9798 <div title="RFC 1234"></div>
9803 Bug 2304: HTML attribute safety (PMID)
9805 <div title="PMID 1234567890"></div>
9807 <div title="PMID 1234567890"></div>
9812 Bug 2304: HTML attribute safety (web link)
9814 <div title="http://example.com/"></div>
9816 <div title="http://example.com/"></div>
9821 Bug 2304: HTML attribute safety (named web link)
9823 <div title="[http://example.com/ link]"></div>
9825 <div title="[http://example.com/ link]"></div>
9830 Bug 3244: HTML attribute safety (extension; safe)
9832 <div style="<nowiki>background:blue</nowiki>"></div>
9834 <div style="background:blue"></div>
9839 Bug 3244: HTML attribute safety (extension; unsafe)
9841 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9843 <div style="/* insecure input */"></div>
9847 # More MSIE fun discovered by Tom Gilder
9850 MSIE CSS safety test: spurious slash
9852 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9854 <div style="/* insecure input */">evil</div>
9859 MSIE CSS safety test: hex code
9861 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9863 <div style="/* insecure input */">evil</div>
9868 MSIE CSS safety test: comment in url
9870 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9872 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9877 MSIE CSS safety test: comment in expression
9879 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9881 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9887 Table attribute legitimate extension
9890 !+ style="<nowiki>color:blue</nowiki>"| status
9895 <th style="color:blue"> status
9901 Table attribute safety
9904 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9909 <th style="/* insecure input */"> status
9915 CSS line continuation 1
9917 <div style="background-image: u\ rl(test.jpg);"></div>
9919 <div style="/* insecure input */"></div>
9924 CSS line continuation 2
9926 <div style="background-image: u\ rl(test.jpg); "></div>
9928 <div style="/* insecure input */"></div>
9939 Expansion of multi-line templates in attribute values (bug 6255)
9941 <div style="background: {{identity|#00FF00}}">-</div>
9943 <div style="background: #00FF00">-</div>
9949 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9951 <div style="background:
9954 <div style="background: #00FF00">-</div>
9959 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9961 <div style="background: #00FF00">-</div>
9963 <div style="background: #00FF00">-</div>
9968 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9971 Parser hook: empty input
9984 Parser hook: empty input using terminated empty elements
9997 Parser hook: empty input using terminated empty elements (space before)
10010 Parser hook: basic input
10024 Parser hook: case insensitive
10038 Parser hook: case insensitive, redux
10051 Parser hook: nested tags
10055 <tag><tag></tag></tag>
10066 Parser hook: basic arguments
10068 <tag width=200 height = "100" depth = '50' square></tag>
10076 'square' => 'square',
10083 Parser hook: argument containing a forward slash (bug 5344)
10085 <tag filename='/tmp/bla'></tag>
10090 'filename' => '/tmp/bla',
10097 Parser hook: empty input using terminated empty elements (bug 2374)
10110 # </tag> should be output literally since there is no matching tag that begins it
10112 Parser hook: basic arguments using terminated empty elements (bug 2374)
10114 <tag width=200 height = "100" depth = '50' square/>
10124 'square' => 'square',
10133 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10137 Parser hook: static parser hook not inside a comment
10139 <statictag>hello, world</statictag>
10140 <statictag action=flush/>
10148 Parser hook: static parser hook inside a comment
10150 <!-- <statictag>hello, world</statictag> -->
10151 <statictag action=flush/>
10157 # Nested template calls; this case was broken by Parser.php rev 1.506,
10161 Template:One-parameter
10163 (My parameter is: {{{1}}})
10167 Template:Map-one-parameter
10169 {{{{{1}}}|{{{2}}}}}
10173 Nested template calls
10175 {{Map-one-parameter|One-parameter|param}}
10177 <p>(My parameter is: param)
10186 Sanitizer: Closing of open tags
10188 <s></s><table></table>
10190 <s></s><table></table>
10195 Sanitizer: Closing of open but not closed tags
10204 Sanitizer: Closing of closed but not open tags
10213 Sanitizer: Closing of closed but not open table tags
10215 Table not started</td></tr></table>
10217 <p>Table not started</td></tr></table>
10222 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10224 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10226 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10231 Sanitizer: Validating the contents of the id attribute (bug 4515)
10237 Something, but definitely not <br id="9" />...
10241 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10245 <br id="foo" /><br id="foo" />
10247 Something need to be done. foo-2 ?
10251 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10254 <meta itemprop="hello" content="world">
10255 <meta http-equiv="refresh" content="5">
10256 <meta itemprop="hello" http-equiv="refresh" content="5">
10257 <link itemprop="hello" href="{{SERVER}}">
10258 <link rel="stylesheet" href="{{SERVER}}">
10259 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10262 <div itemscope="itemscope">
10263 <p> <meta itemprop="hello" content="world" />
10264 <meta http-equiv="refresh" content="5">
10265 <meta itemprop="hello" content="5" />
10267 <link itemprop="hello" href="http://example.org" />
10268 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10269 <link itemprop="hello" href="http://example.org" />
10275 Language converter: output gets cut off unexpectedly (bug 5757)
10279 this bit is safe: }-
10281 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10283 then we get cut off here: }-
10285 all additional text is vanished
10287 <p>this bit is safe: }-
10288 </p><p>but if we add a conversion instance: xxx
10289 </p><p>then we get cut off here: }-
10290 </p><p>all additional text is vanished
10295 Self closed html pairs (bug 5487)
10298 <center><font id="bug" />Centered text</center>
10299 <div><font id="bug2" />In div text</div>
10301 <center><font id="bug" />Centered text</center>
10302 <div><font id="bug2" />In div text</div>
10311 Punctuation: nbsp before exclamation
10315 <p>C'est grave !
10320 Punctuation: CSS !important (bug 11874)
10322 <div style="width:50% !important">important</div>
10324 <div style="width:50% !important">important</div>
10329 Punctuation: CSS ! important (bug 11874; with space after)
10331 <div style="width:50% ! important">important</div>
10333 <div style="width:50% ! important">important</div>
10339 HTML bullet list, closed tags (bug 5497)
10354 HTML bullet list, unclosed tags (bug 5497)
10371 HTML ordered list, closed tags (bug 5497)
10386 HTML ordered list, unclosed tags (bug 5497)
10403 HTML nested bullet list, closed tags (bug 5497)
10428 HTML nested bullet list, open tags (bug 5497)
10453 HTML nested ordered list, closed tags (bug 5497)
10478 HTML nested ordered list, open tags (bug 5497)
10503 HTML ordered list item with parameters oddity
10505 <ol><li id="fragment">One</li></ol>
10507 <ol><li id="fragment">One</li></ol>
10512 bug 5918: autonumbering
10514 [http://first/] [http://second] [ftp://ftp]
10518 [mailto:enclosed@mail.tld With target]
10520 [mailto:enclosed@mail.tld]
10522 mailto:inline@mail.tld
10524 <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>
10525 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10526 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10527 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10528 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10534 # Security and HTML correctness
10535 # From Nick Jenkins' fuzz testing
10539 Fuzz testing: Parser13
10554 Fuzz testing: Parser14
10559 <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>
10560 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10562 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10569 Fuzz testing: Parser14-table
10574 <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>
10575 <table style="__TOC__">
10581 # Known to produce bogus xml (extra </td>)
10583 Fuzz testing: Parser16
10603 Fuzz testing: Parser21
10606 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10611 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10621 Fuzz testing: Parser22
10623 http://===r:::https://b
10627 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10635 # Known to produce bad XML for now
10637 Fuzz testing: Parser24
10644 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10645 <br style="onmouseover='alert(document.cookie);' " />
10647 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10652 <u class="|">}}}} >
10653 <br style="onmouseover='alert(document.cookie);'" />
10655 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10664 # Note: the current result listed for this is not what the original one was,
10665 # but the original bug was JavaScript injection, which is fixed in any case.
10666 # It's not clear that the original result listed was any more correct than the
10667 # current one. Original result:
10670 # <li class="||">
10671 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10673 Fuzz testing: Parser25 (bug 6055)
10679 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10681 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10686 Fuzz testing: URL adjacent extension (with space, clean)
10689 http://example.com <nowiki>junk</nowiki>
10691 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10696 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10699 http://example.com<nowiki>junk</nowiki>
10701 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10706 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10709 http://example.com<pre>junk</pre>
10711 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10716 Fuzz testing: image with bogus manual thumbnail
10718 [[Image:foobar.jpg|thumbnail= ]]
10720 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10725 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10727 <pre dir=" "></pre>
10729 <pre dir=" "></pre>
10734 Parsing optional HTML elements (Bug 6171)
10739 <td> Some tabular data</td>
10740 <td> More tabular data ...
10741 <td> And yet som tabular data</td>
10747 <td> Some tabular data</td>
10748 <td> More tabular data ...
10749 </td><td> And yet som tabular data</td>
10756 Correct handling of <td>, <tr> (Bug 6171)
10761 <td> Some tabular data</td>
10762 <td> More tabular data ...</td>
10763 <td> And yet som tabular data</td>
10769 <td> Some tabular data</td>
10770 <td> More tabular data ...</td>
10771 <td> And yet som tabular data</td>
10779 Parsing crashing regression (fr:JavaScript)
10783 <p></body></x>
10788 Inline wiki vs wiki block nesting
10794 <p><b>Bold paragraph</b>
10795 </p><p>New wiki paragraph
10800 Inline HTML vs wiki block nesting
10808 <p><b>Bold paragraph</b>
10809 </p><p>New wiki paragraph
10813 # Original result was this:
10814 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10816 # While that might be marginally more intuitive, maybe, the six-apostrophe
10817 # construct is clearly pathological and the result stated here (which is what
10818 # the parser actually does) is about as reasonable as anything.
10820 Mixing markup for italics and bold
10823 '''bold''''''bold''bolditalics'''''
10825 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10833 Article for special page transclusion test
10837 Special page transclusion
10840 {{Special:Prefixindex/Xyzzyx}}
10842 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10847 Special page transclusion twice (bug 5021)
10850 {{Special:Prefixindex/Xyzzyx}}
10851 {{Special:Prefixindex/Xyzzyx}}
10853 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10854 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10859 Transclusion of default MediaWiki message
10861 {{MediaWiki:Mainpage}}
10868 Transclusion of nonexistent MediaWiki message
10870 {{MediaWiki:Mainpagexxx}}
10872 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10877 Transclusion of MediaWiki message with underscore
10879 {{MediaWiki:history_short}}
10886 Transclusion of MediaWiki message with space
10888 {{MediaWiki:history short}}
10895 Invalid header with following text
10905 Section extraction test (section 0)
10925 Section extraction test (section 1)
10947 Section extraction test (section 2)
10968 Section extraction test (section 3)
10988 Section extraction test (section 4)
11012 Section extraction test (section 5)
11032 Section extraction test (section 6)
11053 Section extraction test (section 7)
11073 Section extraction test (section 8)
11093 Section extraction test (section 9)
11114 Section extraction test (section 10)
11134 Section extraction test (nonexistent section 11)
11153 Section extraction test with bogus heading (section 1)
11158 ==bogus== not a legal section
11162 ==bogus== not a legal section
11166 Section extraction test with bogus heading (section 2)
11171 ==bogus== not a legal section
11178 Section extraction test with comment after heading (section 1)
11190 Section extraction test with comment after heading (section 2)
11202 Section extraction test with bogus <nowiki> heading (section 1)
11207 ==bogus== <nowiki>not a legal section</nowiki>
11211 ==bogus== <nowiki>not a legal section</nowiki>
11215 Section extraction test with bogus <nowiki> heading (section 2)
11220 ==bogus== <nowiki>not a legal section</nowiki>
11227 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11228 # instead of respecting commented sections
11230 Section extraction prefixed by comment (section 1)
11241 Section extraction prefixed by comment (section 2)
11252 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11253 # instead of respecting HTML-style headings
11255 Section extraction, mixed wiki and html (section 1)
11271 Section extraction, mixed wiki and html (section 2)
11287 # Formerly testing for bug 3342
11289 Section extraction, heading surrounded by <noinclude>
11293 <noinclude>==unmarked==</noinclude>
11299 # Test behavior of bug 19910
11301 Sectiion with all-equals
11306 The line above must have a trailing space
11309 But just in case it doesn't...
11313 But just in case it doesn't...
11317 Section replacement test (section 0)
11348 Section replacement test (section 1)
11377 Section replacement test (section 2)
11407 Section replacement test (section 3)
11438 Section replacement test (section 4)
11465 Section replacement test (section 5)
11496 Section replacement test (section 6)
11526 Section replacement test (section 7)
11557 Section replacement test (section 8)
11588 Section replacement test (section 9)
11617 Section replacement test (section 10)
11647 Section replacement test with initial whitespace (bug 13728)
11651 Preformatted initial line
11655 Preformatted initial line
11662 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11674 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11687 Section extraction, <pre> around bogus header (bug 10309)
11704 Section replacement, <pre> around bogus header (bug 10309)
11706 noxml replace=2,"xxx"
11727 Handling of 
 in URLs
11731 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11738 5 quotes, code coverage +1 line (php)
11745 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11747 5 quotes, code coverage +1 line (parsoid)
11753 <p><i><b></b></i></p>
11757 Special:Search page linking.
11761 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11773 * {{ROOTPAGENAMEE}}
11775 * {{BASEPAGENAMEE}}
11777 * {{TALKPAGENAMEE}}
11778 * {{SUBJECTPAGENAME}}
11779 * {{SUBJECTPAGENAMEE}}
11785 * {{SUBJECTSPACEE}}
11786 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11788 <ul><li> Parser test
11789 </li><li> Parser test
11790 </li><li> Parser test
11791 </li><li> Parser_test
11792 </li><li> Parser test
11793 </li><li> Parser_test
11794 </li><li> Parser test
11795 </li><li> Parser_test
11796 </li><li> Talk:Parser test
11797 </li><li> Talk:Parser_test
11798 </li><li> Parser test
11799 </li><li> Parser_test
11806 </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>
11810 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11820 image4 |300px| centre
11821 image5.svg| http://///////
11826 <ul class="gallery">
11827 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11828 <div style="height: 150px;">Image1.png</div>
11829 <div class="gallerytext">
11832 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11833 <div style="height: 150px;">Image2.gif</div>
11834 <div class="gallerytext">
11839 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11840 <div style="height: 150px;">Image3</div>
11841 <div class="gallerytext">
11844 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11845 <div style="height: 150px;">Image4</div>
11846 <div class="gallerytext">
11851 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11852 <div style="height: 150px;">Image5.svg</div>
11853 <div class="gallerytext">
11854 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11858 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11859 <div style="height: 150px;">* image6</div>
11860 <div class="gallerytext">
11868 Gallery (with options)
11870 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11871 File:Nonexistant.jpg|caption
11872 File:Nonexistant.jpg
11873 image:foobar.jpg|some '''caption''' [[Main Page]]
11875 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11878 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11879 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11880 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11881 <div style="height: 70px;">Nonexistant.jpg</div>
11882 <div class="gallerytext">
11887 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11888 <div style="height: 70px;">Nonexistant.jpg</div>
11889 <div class="gallerytext">
11892 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11893 <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>
11894 <div class="gallerytext">
11895 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11899 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11900 <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>
11901 <div class="gallerytext">
11904 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11905 <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>
11906 <div class="gallerytext">
11916 Gallery with wikitext inside caption
11919 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11920 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11923 <ul class="gallery">
11924 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11925 <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>
11926 <div class="gallerytext">
11927 <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>
11931 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11932 <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>
11933 <div class="gallerytext">
11934 <p>This is a test template
11943 gallery (with showfilename option)
11945 <gallery showfilename>
11946 File:Nonexistant.jpg|caption
11947 File:Nonexistant.jpg
11948 image:foobar.jpg|some '''caption''' [[Main Page]]
11952 <ul class="gallery">
11953 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11954 <div style="height: 150px;">Nonexistant.jpg</div>
11955 <div class="gallerytext">
11956 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11961 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11962 <div style="height: 150px;">Nonexistant.jpg</div>
11963 <div class="gallerytext">
11964 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11968 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11969 <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>
11970 <div class="gallerytext">
11971 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11972 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11976 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11977 <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>
11978 <div class="gallerytext">
11979 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11988 Gallery (with namespace-less filenames)
11991 File:Nonexistant.jpg
11997 <ul class="gallery">
11998 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11999 <div style="height: 150px;">Nonexistant.jpg</div>
12000 <div class="gallerytext">
12003 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12004 <div style="height: 150px;">Nonexistant.jpg</div>
12005 <div class="gallerytext">
12008 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12009 <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>
12010 <div class="gallerytext">
12013 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12014 <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>
12015 <div class="gallerytext">
12023 HTML Hex character encoding (spells the word "JavaScript")
12025 JavaScript
12027 <p>JavaScript
12032 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12036 <p>&#xsee;&#XSEE;
12041 HTML Hex character encoding mixed case
12050 __FORCETOC__ override
12062 ISBN 978-0-1234-56 789
12064 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12069 ISBN followed by 5 spaces
12080 ISBN ISBN 1234567890
12082 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12087 Bug 22905: <abbr> followed by ISBN followed by </a>
12089 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12091 <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>
12100 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12105 Double RFC with a wiki link
12109 <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>
12118 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12123 Centre-aligned image
12125 [[Image:foobar.jpg|centre]]
12127 <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>
12134 [[Image:foobar.jpg|none]]
12136 <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>
12141 Width + Height sized image (using px) (height is ignored)
12143 [[Image:foobar.jpg|640x480px]]
12145 <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>
12150 Width-sized image (using px, no following whitespace)
12152 [[Image:foobar.jpg|640px]]
12154 <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>
12159 Width-sized image (using px, with following whitespace - test regression from r39467)
12161 [[Image:foobar.jpg|640px ]]
12163 <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>
12168 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12170 [[Image:foobar.jpg| 640px]]
12172 <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>
12177 Another italics / bold test
12185 # Note the results may be incorrect, as parserTest output included this:
12186 # XML error: Mismatched tag at byte 6120:
12187 # ...<dd> </dt></dl> </dd...
12195 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12206 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12208 Images with the "|" character in the comment
12210 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12212 <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>
12217 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12219 <html><script>alert(1);</script></html>
12221 <p><html><script>alert(1);</script></html>
12226 HTML with raw HTML ($wgRawHtml==true)
12230 <html><script>alert(1);</script></html>
12232 <p><script>alert(1);</script>
12237 Parents of subpages, one level up
12239 subpage title=[[Subpage test/L1/L2/L3]]
12243 <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>
12249 Parents of subpages, one level up, not named
12251 subpage title=[[Subpage test/L1/L2/L3]]
12255 <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>
12262 Parents of subpages, two levels up
12264 subpage title=[[Subpage test/L1/L2/L3]]
12270 <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
12271 </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>
12276 Parents of subpages, two levels up, without trailing slash or name.
12278 subpage title=[[Subpage test/L1/L2/L3]]
12287 Parents of subpages, two levels up, with lots of extra trailing slashes.
12289 subpage title=[[Subpage test/L1/L2/L3]]
12293 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12298 Subpage test/L1/L2/L3Sibling
12304 Transclusion of a sibling page (one level up)
12306 subpage title=[[Subpage test/L1/L2/L3]]
12315 Transclusion of a child page
12317 subpage title=[[Subpage test/L1/L2]]
12326 Non-transclusion because of too many up levels
12328 subpage title=[[Subpage test/L1/L2/L3]]
12330 {{../../../../More than parent}}
12332 <p>{{../../../../More than parent}}
12337 Definition list code coverage
12343 <dl><dt> title  </dt><dd> def
12344 </dd><dt> title </dt><dd> def
12345 </dd><dt>title</dt><dd> def
12351 Don't fall for the self-closing div
12353 <div>hello world</div/>
12355 <div>hello world</div>
12364 <p>[[:Template:Msg]]
12373 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12377 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12379 Always escape literal '>' in output, not just after '<'
12393 <p>This is a test template
12394 This is a test template
12406 Inclusion of !userCanEdit() content
12410 <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>
12416 Out-of-order TOC heading levels
12425 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12427 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12429 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12430 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12433 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12435 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12436 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12441 <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>
12442 <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>
12443 <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>
12444 <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>
12445 <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>
12446 <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>
12452 ISBN with a dummy number
12462 ISBN with space-delimited number
12466 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12472 ISBN with multiple spaces, no number
12491 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12492 </p><p>ISBN 12345678901
12498 ISBN with trailing year (bug 8110)
12500 ISBN 1-234-56789-0 - 2006
12502 ISBN 1 234 56789 0 - 2006
12504 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12505 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12513 {{anchorencode:foo bar©#%n}}
12515 <p>foo_bar.C2.A9.23.25n
12520 anchorencode trims spaces
12522 {{anchorencode: __pretty__please__}}
12529 anchorencode deals with links
12531 {{anchorencode: [[hello|world]] [[hi]]}}
12538 anchorencode deals with templates
12540 {{anchorencode: {{Foo}} }}
12547 anchorencode encodes like the TOC generator: (bug 18431)
12549 === _ +:.3A%3A&&]] ===
12550 {{anchorencode: _ +:.3A%3A&&]] }}
12553 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12554 <p>.2B:.3A.253A.26.26.5D.5D
12558 # Expected output in the following test is not necessarily expected (there
12559 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12560 # only testing for well-formedness.
12562 Bug 6200: blockquotes and paragraph formatting
12582 Bug 8293: Use of center tag ruins paragraph formatting
12603 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12607 <span><s>x</span></s>
12609 <p><span><s>x</span></s></span>
12614 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12618 <span><s>x</span></s>
12620 <p><span><s>x</s></span><s></s>
12625 ### Language variants related tests
12628 Self-link in language variants
12630 title=[[Dunav]] language=sr
12632 Both [[Dunav]] and [[Дунав]] are names for this river.
12634 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12645 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12647 title=[[Duna]] language=sr
12649 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12651 <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.
12656 Link to pages in language variants
12660 Main Page can be written as [[Маин Паге]]
12662 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12668 Multiple links to pages in language variants
12672 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12674 <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>.
12680 Simple template in language variants
12686 <p>This is a test template
12692 Template with explicit namespace in language variants
12698 <p>This is a test template
12704 Basic test for template parameter in language variants
12708 {{парамтест|param=foo}}
12710 <p>This is a test template with parameter foo
12716 Simple category in language variants
12720 [[Category:МедиаWики Усер'с Гуиде]]
12722 <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>
12739 Don't convert blue categorylinks to another variant (bug 33210)
12743 [[A]][[Category:分类]]
12745 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12750 Stripping -{}- tags (language variants)
12754 Latin proverb: -{Ne nuntium necare}-
12756 <p>Latin proverb: Ne nuntium necare
12762 Prevent conversion with -{}- tags (language variants)
12764 language=sr variant=sr-ec
12766 Latinski: -{Ne nuntium necare}-
12768 <p>Латински: Ne nuntium necare
12774 Prevent conversion of text with -{}- tags (language variants)
12776 language=sr variant=sr-ec
12778 Latinski: -{Ne nuntium necare}-
12780 <p>Латински: Ne nuntium necare
12786 Prevent conversion of links with -{}- tags (language variants)
12788 language=sr variant=sr-ec
12792 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12798 -{}- tags within headlines (within html for parserConvert())
12800 language=sr variant=sr-ec
12804 <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>
12810 Explicit definition of language variant alternatives
12812 language=zh variant=zh-tw
12814 -{zh:China;zh-tw:Taiwan}-, not China
12816 <p>Taiwan, not China
12822 Conversion around HTML tags
12824 language=sr variant=sr-ec
12826 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12827 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12830 <span title="ЛаCтин">ски</span>
12836 Explicit session-wise language variant mapping (A flag and - flag)
12838 language=zh variant=zh-tw
12840 Taiwan is not China.
12841 But -{A|zh:China;zh-tw:Taiwan}- is China,
12842 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12843 and -{China}- is China.
12845 <p>Taiwan is not China.
12846 But Taiwan is Taiwan,
12847 (This should be stripped!)
12848 and China is China.
12853 Explicit session-wise language variant mapping (H flag for hide)
12855 language=zh variant=zh-tw
12857 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12860 <p>(This should be stripped!)
12866 Adding explicit conversion rule for title (T flag)
12868 language=zh variant=zh-tw showtitle
12870 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12873 <p>Should be stripped!
12878 Testing that changing the language variant here in the tests actually works
12880 language=zh variant=zh showtitle
12882 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12885 <p>Should be stripped!
12890 Recursive conversion of alt and title attrs shouldn't clear converter state
12892 language=zh variant=zh-cn showtitle
12894 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12895 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12899 Should be stripped<span title="Exclamation">!</span>
12904 Bug 24072: more test on conversion rule for title
12906 language=zh variant=zh-tw showtitle
12908 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12909 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12912 <p>This should be stripped!
12913 This won't take interferes with the title rule.
12918 Partly disable title conversion if variant == main language code
12920 language=zh variant=zh title=[[ZH]] showtitle
12922 -{T|zh-cn:CN;zh-tw:TW}-
12930 Partly disable title conversion if variant == main language code, more
12932 language=zh variant=zh title=[[ZH]] showtitle
12942 Raw output of variant escape tags (R flag)
12944 language=zh variant=zh-tw
12946 Raw: -{R|zh:China;zh-tw:Taiwan}-
12948 <p>Raw: zh:China;zh-tw:Taiwan
12953 Nested using of manual convert syntax
12955 language=zh variant=zh-hk
12957 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12959 <p>Nested: Hello Hong Kong!
12964 Proper conversion of text in external links
12966 language=sr variant=sr-ec
12968 http://www.google.com
12969 gopher://www.google.com
12970 [http://www.google.com http://www.google.com]
12971 [gopher://www.google.com gopher://www.google.com]
12972 [https://www.google.com irc://www.google.com]
12973 [ftp://www.google.com www.google.com/ftp://dir]
12974 [//www.google.com www.google.com]
12976 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12977 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12978 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12979 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12980 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12981 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12982 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12987 Do not convert roman numbers to language variants
12989 language=sr variant=sr-ec
12993 <p>Фридрих IV је цар.
12998 Unclosed language converter markup "-{"
13009 Don't convert raw rule "-{R|=>}-" to "=>"
13026 Bug 529: Uncovered bullet
13036 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13037 # Templates in Wikipedia rely on this behavior, as tidy has always been
13038 # enabled there. These tests are normally run *without* tidy, so specify the
13039 # full output here.
13040 # To test realistic parsing behavior, apply a tidy-like transformation to both
13041 # the expected output and your parser's output.
13043 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13045 ******* Foo {{bullet}}
13047 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13060 Bug 529: Uncovered table already at line-start
13083 Bug 529: Uncovered bullet in parser function result
13085 * Foo {{lc:{{bullet}} }}
13094 Bug 5678: Double-parsed template argument
13096 {{lc:{{{1}}}|hello}}
13103 Bug 5678: Double-parsed template invocation
13105 {{lc:{{paramtest {{!}} param = hello }} }}
13107 <p>{{paramtest | param = hello }}
13112 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13115 title=[[Main Page]]
13117 {{PRVNÍVELKÉ:ěščř}}
13118 {{prvnívelké:ěščř}}
13138 Morwen/13: Unclosed link followed by heading
13145 <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>
13150 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13157 <h1><span class="mw-headline" id="heading">heading</span></h1>
13162 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13169 <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>
13184 Paragraphs inside divs (no extra line breaks)
13196 Paragraphs inside divs (extra line break on open)
13211 Paragraphs inside divs (extra line break on close)
13226 Paragraphs inside divs (extra line break on open and close)
13243 Nesting tags, paragraphs on lines which begin with <div>
13247 <div></div><strong>A
13256 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13258 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13262 <blockquote>Line one
13264 Line two</blockquote>
13266 <blockquote>Line one
13267 Line two</blockquote>
13272 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13279 Line two</blockquote>
13284 Line two</blockquote>
13289 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13293 <blockquote>Line one
13298 <blockquote>Line one
13306 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13325 Paragraphs inside blockquotes/divs (no extra line breaks)
13327 <blockquote><div>Line one
13329 Line two</div></blockquote>
13331 <blockquote><div>Line one
13332 Line two</div></blockquote>
13337 Paragraphs inside blockquotes/divs (extra line break on open)
13342 Line two</div></blockquote>
13347 Line two</div></blockquote>
13352 Paragraphs inside blockquotes/divs (extra line break on close)
13354 <blockquote><div>Line one
13357 </div></blockquote>
13359 <blockquote><div>Line one
13362 </div></blockquote>
13367 Paragraphs inside blockquotes/divs (extra line break on open and close)
13373 </div></blockquote>
13379 </div></blockquote>
13384 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13386 wgLinkHolderBatchSize=0
13392 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13393 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13394 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13399 Free external link invading image caption
13401 [[Image:Foobar.jpg|thumb|http://x|hello]]
13403 <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>
13408 Bug 15196: localised external link numbers
13412 [http://en.wikipedia.org/]
13414 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13419 Multibyte character in padleft
13421 {{padleft:-Hello|7|Æ}}
13428 Multibyte character in padright
13430 {{padright:Hello-|7|Æ}}
13437 formatdate parser function
13439 {{#formatdate:2009-03-24}}
13441 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13446 formatdate parser function, with default format
13448 {{#formatdate:2009-03-24|mdy}}
13450 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13455 Spacing of numbers in formatted dates
13457 {{#formatdate:January 15}}
13459 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13464 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
13466 language=nl title=[[MediaWiki:Common.css]]
13468 {{#formatdate:2009-03-24|dmy}}
13470 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13483 Edit comment with link
13487 I like the [[Main Page]] a lot
13489 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13493 Edit comment with link and link text
13497 I like the [[Main Page|best pages]] a lot
13499 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13503 Edit comment with link and link text with suffix
13507 I like the [[Main Page|best page]]s a lot
13509 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13513 Edit comment with section link (non-local, eg in history list)
13515 comment title=[[Main Page]]
13517 /* External links */ removed bogus entries
13519 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13523 Edit comment with section link and text before it (non-local, eg in history list)
13525 comment title=[[Main Page]]
13527 pre-comment text /* External links */ removed bogus entries
13529 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>
13533 Edit comment with section link (local, eg in diff view)
13535 comment local title=[[Main Page]]
13537 /* External links */ removed bogus entries
13539 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13543 Edit comment with subpage link (bug 14080)
13547 title=[[Subpage test]]
13549 Poked at a [[/subpage]] here...
13551 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13555 Edit comment with subpage link and link text (bug 14080)
13559 title=[[Subpage test]]
13561 Poked at a [[/subpage|neat little page]] here...
13563 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13567 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13570 title=[[Subpage test]]
13572 Poked at a [[/subpage]] here...
13574 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13578 Edit comment with bare anchor link (local, as on diff)
13582 title=[[Main Page]]
13586 <a href="#section">#section</a>
13590 Edit comment with bare anchor link (non-local, as on history)
13593 title=[[Main Page]]
13597 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13601 Anchor starting with underscore
13605 <p><a href="#_ref">One</a>
13610 Id starting with underscore
13612 <div id="_ref"></div>
13614 <div id="_ref"></div>
13619 Space normalisation on autocomment (bug 22784)
13622 title=[[Main Page]]
13624 /* __hello__world__ */
13626 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13630 percent-encoding and + signs in comments (Bug 26410)
13634 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13636 <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>
13640 Bad images - basic functionality
13649 Bad images - bug 16039: text after bad image disappears
13663 Verify that displaytitle works (bug #22501) no displaytitle
13667 wgAllowDisplayTitle=true
13668 wgRestrictDisplayTitle=false
13670 this is not the the title
13673 <p>this is not the the title
13678 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13683 wgAllowDisplayTitle=true
13684 wgRestrictDisplayTitle=false
13686 this is not the the title
13687 {{DISPLAYTITLE:whatever}}
13690 <p>this is not the the title
13695 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13700 wgAllowDisplayTitle=true
13701 wgRestrictDisplayTitle=true
13703 this is not the the title
13704 {{DISPLAYTITLE:whatever}}
13707 <p>this is not the the title
13712 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13717 wgAllowDisplayTitle=true
13718 wgRestrictDisplayTitle=true
13720 this is not the the title
13721 {{DISPLAYTITLE:screen}}
13724 <p>this is not the the title
13729 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13734 wgAllowDisplayTitle=false
13736 this is not the the title
13737 {{DISPLAYTITLE:screen}}
13740 <p>this is not the the title
13741 <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>
13746 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13751 wgAllowDisplayTitle=false
13753 this is not the the title
13756 <p>this is not the the title
13761 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13766 wgAllowDisplayTitle=true
13767 wgRestrictDisplayTitle=true
13769 this is not the the title
13770 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13772 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13773 <p>this is not the the title
13778 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13783 wgAllowDisplayTitle=true
13784 wgRestrictDisplayTitle=true
13786 this is not the the title
13787 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13789 <span style="color: red;">s</span>creen
13790 <p>this is not the the title
13795 preload: check <noinclude> and <includeonly>
13799 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13805 preload: check <onlyinclude>
13809 Goodbye <onlyinclude>Hello world</onlyinclude>
13815 preload: can pass tags through if we want to
13819 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13821 <includeonly>Hello world</includeonly>
13825 preload: check that it doesn't try to do tricks
13829 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13831 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13835 Play a bit with r67090 and bug 3158
13839 <div style="width:50% !important"> </div>
13840 <div style="width:50% !important"> </div>
13841 <div style="width:50% !important"> </div>
13842 <div style="border : solid;"> </div>
13844 <div style="width:50% !important"> </div>
13845 <div style="width:50% !important"> </div>
13846 <div style="width:50% !important"> </div>
13847 <div style="border : solid;"> </div>
13852 HTML5 data attributes
13854 <span data-foo="bar">Baz</span>
13855 <p data-abc-def_hij="">Quuz</p>
13857 <p><span data-foo="bar">Baz</span>
13859 <p data-abc-def_hij="">Quuz</p>
13864 percent-encoding and + signs in internal links (Bug 26410)
13866 [[User:+%]] [[Page+title%]]
13867 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13868 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13869 [[%33%45]] [[%33%45+]]
13871 <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>
13872 <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>
13873 <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>
13874 <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>
13879 Special characters in embedded file links (bug 27679)
13881 [[File:Contains & ampersand.jpg]]
13882 [[File:Does not exist.jpg|Title with & ampersand]]
13884 <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>
13885 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13891 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13893 Text's been normalized?
13895 <p>Text's been normalized?
13900 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13902 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13904 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13909 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13911 [http://www.example.org/ ideograms]
13913 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13918 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13920 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13922 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13946 Bug 31098 Template which includes system messages which includes the template
13950 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13951 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13956 Bug31490 Turkish: ucfirst 'blah'
13967 Bug31490 Turkish: ucfirst 'ix'
13978 Bug31490 Turkish: lcfirst 'BLAH'
13989 Bug31490 Turkish: ucfırst (with a dotless i)
13995 <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>
14000 Bug31490 ucfırst (with a dotless i) with English language
14006 <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>
14011 Bug 26375: TOC with italics
14013 title=[[Main Page]]
14016 == ''Lost'' episodes ==
14018 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14020 <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>
14023 <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>
14028 Bug 26375: TOC with bold
14030 title=[[Main Page]]
14033 == '''should be bold''' then normal text ==
14035 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14037 <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>
14040 <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>
14045 Bug 33845: Headings become cursive in TOC when they contain an image
14047 title=[[Main Page]]
14050 == Image [[Image:foobar.jpg]] ==
14052 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14054 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14057 <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>
14062 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14064 title=[[Main Page]]
14067 == <blockquote>Quote</blockquote> ==
14069 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14071 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14074 <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>
14079 Unclosed tags in TOC
14081 title=[[Main Page]]
14085 <small>Hanc marginis exiguitas non caperet.</small>
14088 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14090 <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>
14093 <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>
14094 <p><small>Hanc marginis exiguitas non caperet.</small>
14100 Multiple tags in TOC
14103 == <i>Foo</i> <b>Bar</b> ==
14105 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14107 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14109 <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>
14110 <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>
14113 <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>
14114 <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>
14119 Tags with parameters in TOC
14122 == <sup class="in-h2">Hello</sup> ==
14124 == <sup class="a > b">Evilbye</sup> ==
14126 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14128 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14129 <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>
14132 <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>
14133 <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>
14138 span tags with directionality in TOC
14141 == <span dir="ltr">C++</span> ==
14143 == <span dir="rtl">זבנג!</span> ==
14145 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14147 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14149 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14151 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14153 <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>
14154 <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>
14155 <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>
14156 <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>
14157 <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>
14160 <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>
14161 <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>
14162 <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>
14163 <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>
14164 <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>
14171 == {{int:headline_sample}} ==
14175 Bug 32057: Title needed when expanding <h> nodes.
14177 title=[[Main Page]]
14181 <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>
14186 Strip marker in urlencode
14188 {{urlencode:x<nowiki/>y}}
14189 {{urlencode:x<nowiki/>y|wiki}}
14190 {{urlencode:x<nowiki/>y|path}}
14217 Strip marker in formatNum
14219 {{formatnum:1<nowiki/>2}}
14220 {{formatnum:1<nowiki/>2|R}}
14228 Check noCommafy in formatNum
14232 {{formatnum:123456.78}}
14233 {{formatnum:123456.78|NOSEP}}
14241 Strip marker in grammar
14245 {{grammar:elative|foo<nowiki/>bar}}
14252 Strip marker in padleft
14254 {{padleft:|2|x<nowiki/>y}}
14261 Strip marker in padright
14263 {{padright:|2|x<nowiki/>y}}
14270 Strip marker in anchorencode
14272 {{anchorencode:x<nowiki/>y}}
14279 nowiki inside link inside heading (bug 18295)
14281 ==[[foo|x<nowiki>y</nowiki>z]]==
14283 <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>
14288 new support for bdi element (bug 31817)
14290 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14292 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14297 Ignore pipe between table row attributes
14301 |- id=foo | style='color: red'
14309 <tr id="foo" style="color: red">
14316 Gallery override link with WikiLink (bug 34852)
14319 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14322 <ul class="gallery">
14323 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14324 <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>
14325 <div class="gallerytext">
14335 Gallery override link with absolute external link (bug 34852)
14338 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14341 <ul class="gallery">
14342 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14343 <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>
14344 <div class="gallerytext">
14354 Gallery override link with malicious javascript (bug 34852)
14357 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14360 <ul class="gallery">
14361 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14362 <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>
14363 <div class="gallerytext">
14373 Gallery with invalid title as link (bug 43964)
14376 File:foobar.jpg|link=<
14379 <ul class="gallery">
14380 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14381 <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>
14382 <div class="gallerytext">
14390 Language parser function
14399 Padleft and padright as substr
14401 {{padleft:|3|abcde}}
14402 {{padright:|3|abcde}}
14410 Special parser function
14412 {{#special:RandomPage}}
14413 {{#special:BaDtItLe}}
14414 {{#special:Foobar}}
14423 Bug 34939 - Case insensitive link parsing ([HttP://])
14425 [HttP://MediaWiki.Org/]
14427 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14432 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14434 [HttP://MediaWiki.Org/ MediaWiki]
14436 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14441 Bug 34939 - Case insensitive link parsing (HttP://)
14443 HttP://MediaWiki.Org/
14445 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14451 ### Parsoids-specific tests
14452 ### Parsoid-PHP parser incompatibilities
14455 1. SOL-sensitive wikitext tokens as template-args
14457 parsoid=wt2html,wt2wt
14463 <span about="#mwt1" typeof="mw:Transclusion">
14464 </span><ul about="#mwt1"><li>a</li></ul>
14465 <span about="#mwt2" typeof="mw:Transclusion">
14466 </span><ol about="#mwt2"><li>a</li></ol>
14467 <span about="#mwt3" typeof="mw:Transclusion">
14468 </span><dl about="#mwt3"><dd>a</dd></dl>
14471 #### ----------------------------------------------------------------
14472 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14473 #### tags. Parsoid's output for these tags differs from that of the
14475 #### ----------------------------------------------------------------
14478 Ref: 1. ref-location should be replaced with an index span
14483 B <ref name="x">foo</ref>
14486 <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>
14487 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>
14488 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>
14492 Ref: 2. ref-tags with identical names should all get the same index
14496 A <ref name="x">foo</ref>
14499 <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>
14500 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>
14504 Ref: 3. spaces in ref-names should be ignored
14508 A <ref name="x">foo</ref>
14509 B <ref name=" x " />
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>
14514 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>
14518 Ref: 4. 'constructor' should be accepted as a valid ref-name
14519 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14523 A <ref name="constructor">foo</ref>
14525 <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>
14529 Ref: 5. body should accept generic wikitext
14534 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14539 <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>
14541 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14542 <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>
14547 Ref: 6. indent-pres should not be output in ref-body
14559 <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>
14561 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14562 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14569 Ref: 6. No p-wrapping in ref-body
14588 <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>
14590 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14591 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14605 Ref: 8. transclusion wikitext has lower precedence
14609 A <ref> foo {{echo|</ref> B C}}
14613 <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>
14615 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14616 <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>
14620 Ref: 9. unclosed comments should not leak out of ref-body
14624 A <ref> foo <!--</ref> B C
14628 <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>
14630 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14631 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14635 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14639 A <ref> <b> foo </ref> B C
14643 <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>
14645 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14646 <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>
14650 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14657 <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
14658 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>
14662 Ref: 12. ref-tags act as trailing newline migration barrier
14666 <!--the newline at the end of this line moves out of the p-tag-->a
14668 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14673 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14676 <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>
14677 <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>
14684 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14692 <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
14693 <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>
14697 Ref: 14. A nested ref-tag should be emitted as plain text
14701 <ref>foo <ref>bar</ref> baz</ref>
14705 <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>
14707 <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>
14711 Ref: 15. ref-tags with identical names should get identical indexes
14715 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14716 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14720 <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>
14721 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>
14723 <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>
14727 References: 1. references tag without any refs should be handled properly
14733 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14737 References: 2. references tag with group only outputs references from that group
14741 A <ref group="a">foo</ref>
14742 B <ref group="b">bar</ref>
14744 <references group='a' />
14746 <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>
14747 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>
14749 <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>
14753 References: 3. ref list should be cleared after processing references
14765 <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>
14767 <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>
14769 <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>
14771 <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>
14775 References: 4. only referenced group should be cleared after processing references
14779 A <ref group="a">afoo</ref>
14782 <references group="a"/>
14788 <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>
14789 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>
14791 <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>
14793 <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>
14795 <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>
14799 References: 5. ref tags in references should be processed while ignoring all other content
14804 B <ref name="b">bar</ref>
14807 <ref name="a">foo</ref>
14808 This should just get lost.
14811 <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>
14812 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>
14814 <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>
14818 References: 6. <references /> from a transclusion
14822 {{echo|<references />}}
14824 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
14827 #### ----------------------------------------------------------------
14828 #### The following section of tests are primarily to test
14829 #### wikitext escaping capabilities of Parsoid. Given that
14830 #### escaping can be done any number of ways, the wikitext (input)
14831 #### is always adjusted to reflect how Parsoid adds nowiki
14834 #### We are marking several tests as parsoid-only since the
14835 #### HTML in the result section is different from what the
14836 #### PHP parser generates for it.
14837 #### ----------------------------------------------------------------
14840 #### --------------- Headings ---------------
14842 #### 1. Nested inside html <h1>=foo=</h1>
14843 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14844 #### 3. Nested inside html with wikitext split by html tags
14845 #### 4. No escape needed
14846 #### 5. Empty headings <h1></h1>
14847 #### 6. Heading chars in SOL context
14848 #### ----------------------------------------
14850 Headings: 0. Unnested
14854 <nowiki>=foo=</nowiki>
14856 <nowiki> =foo= </nowiki>
14858 <nowiki>=foo=</nowiki>
14860 =foo''a''<nowiki>=</nowiki>
14862 <p><span typeof="mw:Nowiki">=foo=</span></p>
14864 <p><span typeof="mw:Nowiki"> =foo= </span>
14866 <span typeof="mw:Nowiki">=foo=</span></p>
14868 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14872 Headings: 1. Nested inside html
14876 =<nowiki>=foo=</nowiki>=
14878 ==<nowiki>=foo=</nowiki>==
14880 ===<nowiki>=foo=</nowiki>===
14882 ====<nowiki>=foo=</nowiki>====
14884 =====<nowiki>=foo=</nowiki>=====
14886 ======<nowiki>=foo=</nowiki>======
14888 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14889 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14890 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14891 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14892 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14893 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
14897 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
14902 <nowiki>*bar</nowiki>
14908 <nowiki>=bar=</nowiki>
14916 Headings: 3. Nested inside html with wikitext split by html tags
14920 =='''bold'''<nowiki>foo=</nowiki>=
14922 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
14926 Headings: 4a. No escaping needed (testing just h1 and h2)
14944 =<nowiki>=</nowiki>=
14952 <h1><i>=</i>foo=</h1>
14953 <h1><span typeof="mw:Nowiki">=</span></h1>
14957 Headings: 4b. No escaping needed (inside p-tags)
14972 Headings: 5. Empty headings
14984 =====<nowiki/>=====
14986 ======<nowiki/>======
14997 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15001 <nowiki>=a=</nowiki>
15003 <nowiki>=a= </nowiki>
15005 <nowiki>=a= </nowiki>
15007 <nowiki>=a= </nowiki>
15016 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15044 Headings: 6c. Heading chars in SOL context (leading newline break)
15056 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15060 <!--c0--><nowiki>=a=</nowiki>
15062 <nowiki>=a= </nowiki><!--c2--> <!--c3-->
15064 <p><!--c0-->=a=</p>
15065 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15069 Headings: 6d. Heading chars in SOL context (No escaping needed)
15078 #### --------------- Lists ---------------
15079 #### 0. Outside nests (*foo, etc.)
15080 #### 1. Nested inside html <ul><li>*foo</li></ul>
15081 #### 2. Inside definition lists
15082 #### 3. Only bullets at start should be escaped
15083 #### 4. No escapes needed
15084 #### 5. No unnecessary escapes
15085 #### 6. Escape bullets in SOL position
15086 #### 7. Escape bullets in a multi-line context
15087 #### ----------------------------------------
15090 Lists: 0. Outside nests
15092 <nowiki>*foo</nowiki>
15094 <nowiki>#foo</nowiki>
15102 Lists: 1. Nested inside html
15104 *<nowiki>*foo</nowiki>
15106 *<nowiki>#foo</nowiki>
15108 *<nowiki>:foo</nowiki>
15110 *<nowiki>;foo</nowiki>
15112 #<nowiki>*foo</nowiki>
15114 #<nowiki>#foo</nowiki>
15116 #<nowiki>:foo</nowiki>
15118 #<nowiki>;foo</nowiki>
15140 Lists: 2. Inside definition lists
15142 ;<nowiki>;foo</nowiki>
15144 ;<nowiki>:foo</nowiki>
15146 ;<nowiki>:foo</nowiki>
15149 :<nowiki>:foo</nowiki>
15164 Lists: 3. Only bullets at start of text should be escaped
15166 *<nowiki>*foo*bar</nowiki>
15168 *<nowiki>*foo</nowiki>''it''*bar
15172 <ul><li>*foo<i>it</i>*bar
15178 Lists: 4. No escapes needed
15190 <ul><li><i>foo</i>*bar
15192 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15197 Lists: 5. No unnecessary escapes
15199 * bar <span><nowiki>[[foo]]</nowiki></span>
15201 *=bar <span><nowiki>[[foo]]</nowiki></span>
15203 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15205 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15207 *=bar <span>foo]]</span>=
15211 <ul><li> bar <span>[[foo]]</span>
15213 <ul><li>=bar <span>[[foo]]</span>
15215 <ul><li>[[bar <span>[[foo]]</span>
15217 <ul><li>]]bar <span>[[foo]]</span>
15219 <ul><li>=bar <span>foo]]</span>=
15221 <ul><li> <s></s>: a
15227 Lists: 6. Escape bullets in SOL position
15231 <!--cmt--><nowiki>*foo</nowiki>
15233 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15237 Lists: 7. Escape bullets in a multi-line context
15247 #### --------------- HRs ---------------
15248 #### 1. Single line
15249 #### -----------------------------------
15252 HRs: 1. Single line
15256 ----<nowiki>----</nowiki>
15260 <hr><span typeof="mw:Nowiki">----</span>
15265 #### --------------- Tables ---------------
15266 #### 1a. Simple example
15267 #### 1b. No escaping needed (!foo)
15268 #### 1c. No escaping needed (|foo)
15269 #### 1d. No escaping needed (|}foo)
15271 #### 2a. Nested in td (<td>foo|bar</td>)
15272 #### 2b. Nested in td (<td>foo||bar</td>)
15273 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15275 #### 3a. Nested in th (<th>foo!bar</th>)
15276 #### 3b. Nested in th (<th>foo!!bar</th>)
15277 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15281 #### 4c. No escaping needed
15282 #### --------------------------------------
15285 Tables: 1a. Simple example
15296 Tables: 1b. No escaping needed
15305 Tables: 1c. No escaping needed
15314 Tables: 1d. No escaping needed
15323 Tables: 2a. Nested in td
15328 |<nowiki>foo|bar</nowiki>
15332 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15336 Tables: 2b. Nested in td
15341 |<nowiki>foo||bar</nowiki>
15342 |''it''<nowiki>foo||bar</nowiki>
15346 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15347 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15351 Tables: 2c. Nested in td -- no escaping needed
15359 <table><tbody><tr><td>foo!!bar
15360 </td></tr></tbody></table>
15365 Tables: 3a. Nested in th
15373 <table><tbody><tr><th>foo!bar
15374 </th></tr></tbody></table>
15379 Tables: 3b. Nested in th
15384 !<nowiki>foo!!bar</nowiki>
15388 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15393 Tables: 3c. Nested in th -- no escaping needed
15398 !<nowiki>foo||bar</nowiki>
15402 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15406 Tables: 4a. Escape -
15414 |<nowiki>-bar</nowiki>
15418 <tr><th>-bar</th></tr>
15420 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15424 Tables: 4b. Escape +
15432 |<nowiki>+bar</nowiki>
15436 <tr><th>+bar</th></tr>
15438 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15442 Tables: 4c. No escaping needed
15456 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15457 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15461 ### SSS FIXME: Disabled right now because accurate html2wt
15462 ### on this snippet requires data-parsoid flags that we've
15463 ### stripped out of these tests. We should scheme how we
15464 ### we want to handle these kind of tests that require
15465 ### data-parsoid flags for accurate html2wt serialization
15468 Tables: 4d. No escaping needed
15486 #### --------------- Links ----------------
15487 #### 1. Quote marks in link text
15488 #### 2. Wikilinks: Escapes needed
15489 #### 3. Wikilinks: No escapes needed
15490 #### 4. Extlinks: Escapes needed
15491 #### 5. Extlinks: No escapes needed
15492 #### --------------------------------------
15494 Links 1. Quote marks in link text
15498 [[Foo|<nowiki>Foo''boo''</nowiki>]]
15500 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15504 Links 2. WikiLinks: Escapes needed
15508 [[Foo|<nowiki>[Foobar]</nowiki>]]
15509 [[Foo|<nowiki>Foobar]</nowiki>]]
15510 [[Foo|x [Foobar] x]]
15511 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15512 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15513 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15514 [[Foo|<nowiki>|Bar</nowiki>]]
15515 [[Foo|<nowiki>]]bar</nowiki>]]
15516 [[Foo|<nowiki>[[bar</nowiki>]]
15517 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15519 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15520 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15521 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15522 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15523 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15524 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15525 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15526 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15527 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15528 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15532 Links 3. WikiLinks: No escapes needed
15539 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15540 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15544 Links 4. ExtLinks: Escapes needed
15548 [http://google.com <nowiki>[google]</nowiki>]
15549 [http://google.com <nowiki>google]</nowiki>]
15551 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15552 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15556 Links 5. ExtLinks: No escapes needed
15560 [http://google.com [google]
15562 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15565 #### --------------- Quotes ---------------
15566 #### 1. Quotes inside <b> and <i>
15567 #### 2. Link fragments separated by <i> and <b> tags
15568 #### 3. Link fragments inside <i> and <b>
15569 #### --------------------------------------
15571 1. Quotes inside <b> and <i>
15573 ''<nowiki>'foo'</nowiki>''
15574 ''<nowiki>''foo''</nowiki>''
15575 ''<nowiki>'''foo'''</nowiki>''
15576 ''foo''<nowiki>'s</nowiki>
15577 '''<nowiki>'foo'</nowiki>'''
15578 '''<nowiki>''foo''</nowiki>'''
15579 '''<nowiki>'''foo'''</nowiki>'''
15580 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15581 '''foo'''<nowiki>'s</nowiki>
15590 <b>foo'<i>bar'</i>baz</b>
15596 2. Link fragments separated by <i> and <b> tags
15598 [[''foo''<nowiki>hello]]</nowiki>
15600 [['''foo'''<nowiki>hello]]</nowiki>
15602 <p>[[<i>foo</i>hello]]
15603 </p><p>[[<b>foo</b>hello]]
15608 2. Link fragments inside <i> and <b>
15609 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15610 this is one of the shortcomings of this format)
15612 ''[[foo''<nowiki>]]</nowiki>
15614 '''[[foo'''<nowiki>]]</nowiki>
15617 </p><p><b>[[foo</b>]]
15621 #### ----------- Paragraphs ---------------
15622 #### 1. No unnecessary escapes
15623 #### --------------------------------------
15626 1. No unnecessary escapes
15628 bar <span><nowiki>[[foo]]</nowiki></span>
15630 =bar <span><nowiki>[[foo]]</nowiki></span>
15632 [[bar <span><nowiki>[[foo]]</nowiki></span>
15634 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15636 =bar <span>foo]]</span><nowiki>=</nowiki>
15638 <p>bar <span>[[foo]]</span>
15639 </p><p>=bar <span>[[foo]]</span>
15640 </p><p>[[bar <span>[[foo]]</span>
15641 </p><p>]]bar <span>[[foo]]</span>
15642 </p><p>=bar <span>foo]]</span>=
15646 #### ----------------------- PRE --------------------------
15647 #### 1. Leading whitespace in SOL context should be escaped
15648 #### ------------------------------------------------------
15650 1. Leading whitespace in SOL context should be escaped
15654 <nowiki> a</nowiki>
15656 <nowiki> a</nowiki>
15658 <nowiki> a(tab)</nowiki>
15660 <nowiki> a</nowiki>
15662 <nowiki> a</nowiki>
15677 <p><!--cmt--> a</p>
15686 #### --------------- HTML tags ---------------
15689 #### 3. multi-line html tag
15690 #### -----------------------------------------
15696 <a href="http://google.com">google</a>
15698 <a href="http://google.com">google</a>
15704 <nowiki><div>foo</div>
15705 <div style="color:red">foo</div></nowiki>
15707 <p><div>foo</div>
15708 <div style="color:red">foo</div>
15713 3. multi-line html tag
15728 <nowiki><ref>foo</ref></nowiki>
15730 <p><ref>foo</ref>
15734 #### --------------- Others ---------------
15738 <nowiki>foo</nowiki>
15740 <p><nowiki>foo</nowiki>
15745 Tag-like HTML structures are passed through as text
15767 </p><p>1<d e>f
15772 # This fails in the PHP parser (see bug 40670,
15773 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15775 Tag names followed by punctuation should not be recognized as tags
15781 <p><s.ome> text
15786 HTML tag with necessary entities in attributes
15788 <span title="&amp;">foo</span>
15790 <p><span title="&amp;">foo</span>
15795 HTML tag with 'unnecessary' entity encoding in attributes
15797 <span title="&">foo</span>
15799 <p><span title="&">foo</span>
15804 HTML tag with broken attribute value quoting
15806 <span title="Hello world>Foo</span>
15808 <p><span>Foo</span>
15813 Parsoid-only: HTML tag with broken attribute value quoting
15817 <span title="Hello world>Foo</span>
15819 <p><span title="Hello world">Foo</span>
15824 Table with broken attribute value quoting
15827 | title="Hello world|Foo
15838 Table with broken attribute value quoting on consecutive lines
15841 | title="Hello world|Foo
15842 | style="color:red|Bar
15855 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15860 | title="Hello world|Foo
15861 | style="color:red|Bar
15866 <td title="Hello world">Foo
15867 </td><td style="color: red">Bar
15868 </td></tr></tbody></table>
15873 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15883 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15893 Accept empty td cell attribute
15896 | align="center" | foo || |
15901 <td align="center"> foo </td>
15908 Non-empty attributes in th-cells
15911 ! Foo !! style="color: red" | Bar
15917 <th style="color: red"> Bar
15923 Accept empty attributes in th-cells
15938 Empty table rows go away
15959 ### Parsoid-centric tests for testing RTing of inter-element separators
15960 ### Edge cases not tested by existing parser tests and specific to
15961 ### Parsoid-specific serialization strategies.
15965 RT-ed inter-element separators should be valid separators
15978 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
15979 (Parsoid-only since PHP parser relies on Tidy for correct output)
15995 Empty TD followed by TD with tpl-generated attribute
16000 |{{echo|style='color:red'}}|foo
16014 Indented table with an empty td
16033 Empty TR followed by a template-generated TR
16034 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16036 parsoid=wt2html,wt2wt
16040 {{echo|<tr><td>foo</td></tr>}}
16046 <tr typeof="mw:Transclusion">
16047 <td>foo</td></tr></tbody></table>
16050 ## PHP and parsoid output differ for this, and since this is primarily
16051 ## for testing Parsoid's serializer, marking this Parsoid only
16053 Empty TR followed by mixed-ws-comment line should RT correctly
16067 <td> <!--c--></td></tr>
16069 <td><!--c--> <!--d--></td></tr>
16075 Multi-line image caption generated by templates with/without trailing newlines
16079 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16080 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16082 <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>
16083 <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>
16087 ## PHP emits broken html for this, and since this is primarily
16088 ## a Parsoid serializer test, marking this Parsoid only
16090 Improperly nested inline or quotes tags with whitespace in between
16094 <span> <s>x</span> </s>
16097 <p><span> <s>x</s></span><s> </s>
16098 <b> <i>x</i></b><i> </i>
16102 # -----------------------------------------------------------------
16103 # The following section of tests are primarily to spec requirements
16104 # around serialization of new/edited content.
16106 # All these tests are marked Parsoid html2wt and html2html only
16107 # ----------------------------------------------------------------
16110 Image: Modifying size of an image
16114 [[Image:Wiki.png|230x230px]]
16116 <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>
16120 Image: New block level image should have \n before and after
16125 [[File:Wiki.png|right|thumb|150x150px]]
16128 <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>
16132 Lists: Add space after bullets
16139 * <span> baz</span>
16144 <li><span> baz</span></li>
16153 Try for 100% code coverage