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">
4809 Broken br tag sanitization
4818 Incorrecly removing closing slashes from correctly formed XHTML
4820 <br style="clear:both;" />
4822 <p><br style="clear:both;" />
4827 Failing to transform badly formed HTML into correct XHTML
4829 <br style="clear: left;">
4830 <br style="clear: right;">
4831 <br style="clear: both;">
4833 <p><br style="clear: left;" />
4834 <br style="clear: right;" />
4835 <br style="clear: both;" />
4840 Handling html with a div self-closing tag
4849 <p><div title />
4853 <p><div title=bar />
4854 <div title=bar/>
4856 <div title="bar/"></div>
4862 Handling html with a br self-closing tag
4871 <p><br title="title" />
4872 <br title="title" />
4881 Horizontal ruler (should it add that extra space?)
4895 Horizontal ruler -- 4+ dashes render hr
4904 Horizontal ruler -- eats additional dashes on the same line
4913 Horizontal ruler -- does not collapse dashes on consecutive lines
4924 Horizontal ruler -- <4 dashes render as plain text
4933 Horizontal ruler -- Supports content following dashes on same line
4942 ### Block-level elements
4965 <ol><li>Numbered list
4982 ***#Number on level 4
4984 **#Number on level 3
4985 **#Number on level 3
4989 #** Level 3, but ordered
4992 <ol><li> with numbers
4994 <ul><li> and bullets
4996 <ol><li> and numbers
4998 </li><li>bullets again
4999 <ul><li>bullet level 2
5000 <ul><li>bullet level 3
5001 <ol><li>Number on level 4
5004 </li><li>bullet level 2
5005 <ol><li>Number on level 3
5006 </li><li>Number on level 3
5009 <ol><li>number level 2
5012 <ul><li><ul><li> Level 3
5016 <ol><li><ul><li><ul><li> Level 3, but ordered
5050 Nested lists 3 (first element empty)
5063 Nested lists 4 (first element empty)
5076 Nested lists 5 (both elements empty)
5089 Nested lists 6 (both elements empty)
5102 Nested lists 7 (skip initial nesting levels)
5106 <ul><li><ul><li><ul><li> foo
5114 Nested lists 8 (multiple nesting transitions)
5122 <ul><li><ul><li> bar
5132 1. Lists with start-of-line-transparent tokens before bullets: Comments
5146 2. Lists with start-of-line-transparent tokens before bullets: Template close
5158 Unbalanced closing block tags break a list
5159 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5169 </li></ul></div><div>
5175 Unbalanced closing non-block tags don't break a list
5176 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5186 <ul><li>a<span></span>
5192 Unclosed formatting tags that straddle lists are closed and reopened
5193 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5201 </li><li> <s> b </s>
5206 List embedded in a non-block tag
5207 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5215 <p><small></small></p>
5221 <p><small></small></p>
5225 List items are not parsed correctly following a <pre> block (bug 785)
5231 <ul><li> <pre>foo</pre>
5232 </li><li> <pre>bar</pre>
5239 List items from template
5250 * notSOL{{inner list}}
5269 List interrupted by empty line or heading
5279 <ul><li><ul><li> bar
5282 <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>
5283 <ul><li> Another list item
5289 Multiple list tags generated by templates
5304 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5307 <!--This line will NOT split the list-->
5309 <!--This line will NOT split the list either-->
5311 <!--foo--> <!--This line with more than 1 comment will split the list-->
5325 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5327 parsoid=wt2html,wt2wt
5331 * {{echo|<li>templated li-hack}}
5332 * <!--foo--> <li> unsupported li-hack with preceding comments
5335 <li><li>not a li-hack
5341 <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>
5342 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5345 <li></li><li>not a li-hack
5351 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5362 <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>
5371 Magic Word: {{CURRENTDAY}}
5380 Magic Word: {{CURRENTDAY2}}
5389 Magic Word: {{CURRENTDAYNAME}}
5398 Magic Word: {{CURRENTDOW}}
5407 Magic Word: {{CURRENTMONTH}}
5416 Magic Word: {{CURRENTMONTHABBREV}}
5418 {{CURRENTMONTHABBREV}}
5425 Magic Word: {{CURRENTMONTHNAME}}
5427 {{CURRENTMONTHNAME}}
5434 Magic Word: {{CURRENTMONTHNAMEGEN}}
5436 {{CURRENTMONTHNAMEGEN}}
5443 Magic Word: {{CURRENTTIME}}
5452 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5461 Magic Word: {{CURRENTYEAR}}
5470 Magic Word: {{FULLPAGENAME}}
5472 title=[[User:Ævar Arnfjörð Bjarmason]]
5476 <p>User:Ævar Arnfjörð Bjarmason
5481 Magic Word: {{FULLPAGENAMEE}}
5483 title=[[User:Ævar Arnfjörð Bjarmason]]
5487 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5492 Magic Word: {{NAMESPACE}}
5494 title=[[User:Ævar Arnfjörð Bjarmason]]
5503 Magic Word: {{NAMESPACEE}}
5505 title=[[User:Ævar Arnfjörð Bjarmason]]
5514 Magic Word: {{NAMESPACENUMBER}}
5516 title=[[User:Ævar Arnfjörð Bjarmason]]
5525 Magic Word: {{NUMBEROFFILES}}
5534 Magic Word: {{PAGENAME}}
5536 title=[[User:Ævar Arnfjörð Bjarmason]]
5540 <p>Ævar Arnfjörð Bjarmason
5545 Magic Word: {{PAGENAME}} with metacharacters
5547 title=[['foo & bar = baz']]
5551 <p><i>'foo & bar = baz'</i>
5556 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5558 title=[[*RFC 1234 http://example.com/]]
5562 <p>*RFC 1234 http://example.com/
5567 Magic Word: {{PAGENAMEE}}
5569 title=[[User:Ævar Arnfjörð Bjarmason]]
5573 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5578 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5580 title=[[*RFC 1234 http://example.com/]]
5584 <p>*RFC_1234_http://example.com/
5589 Magic Word: {{REVISIONID}}
5598 Magic Word: {{SCRIPTPATH}}
5607 Magic Word: {{SERVER}}
5611 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5616 Magic Word: {{SERVERNAME}}
5625 Magic Word: {{SITENAME}}
5634 Case-sensitive magic words, when cased differently, should just be template transclusions
5641 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5642 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5643 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5644 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5649 Case-insensitive magic words should still work with weird casing.
5659 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5664 Namespace 1 {{ns:1}}
5673 Namespace 1 {{ns:01}}
5682 Namespace 0 {{ns:0}} (bug 4783)
5690 Namespace 0 {{ns:00}} (bug 4783)
5698 Namespace -1 {{ns:-1}}
5707 Namespace User {{ns:User}}
5716 Namespace User talk {{ns:User_talk}}
5725 Namespace User talk {{ns:uSeR tAlK}}
5734 Namespace File {{ns:File}}
5743 Namespace File {{ns:Image}}
5752 Namespace (lang=de) Benutzer {{ns:User}}
5763 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5769 <p>Benutzer Diskussion
5777 {{urlencode:hi world?!}}
5778 {{urlencode:hi world?!|WIKI}}
5779 {{urlencode:hi world?!|PATH}}
5780 {{urlencode:hi world?!|QUERY}}
5793 Magic links: internal link to RFC (bug 479)
5797 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5802 Magic links: RFC (bug 479)
5806 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5811 Magic links: ISBN (bug 1937)
5815 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5820 Magic links: PMID incorrectly converts space to underscore
5824 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5833 Nonexistent template
5835 {{thistemplatedoesnotexist}}
5837 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5842 Template with invalid target containing tags
5844 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5846 <p>{{a<b>b</b>|foo|a=b|a = b}}
5851 Template with invalid target containing unclosed tag
5853 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5855 <p>{{a<b>|foo|a=b|a = b}}</b>
5862 This is a test template
5870 <p>This is a test template
5875 Template with explicit namespace
5879 <p>This is a test template
5887 This is a test template with parameter {{{param}}}
5893 {{paramtest|param=foo}}
5895 <p>This is a test template with parameter foo
5900 Template:paramtestnum
5906 Template unnamed parameter
5908 {{paramtestnum|Main Page|the main page}}
5910 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5915 Template:templatesimple
5921 Template:templateredirect
5923 #redirect [[Template:templatesimple]]
5927 Template:templateasargtestnum
5933 Template:templateasargtest
5935 {{template{{{templ}}}}}
5939 Template:templateasargtest2
5945 Template with template name as unnamed argument
5947 {{templateasargtestnum|templatesimple}}
5954 Template with template name as argument
5956 {{templateasargtest|templ=simple}}
5963 Template with template name as argument (2)
5965 {{templateasargtest2|templ=templatesimple}}
5972 Template:templateasargtestdefault
5974 {{{{{templ|templatesimple}}}}}
5984 Template with default value
5986 {{templateasargtestdefault}}
5993 Template with default value (value set)
5995 {{templateasargtestdefault|templ=templa}}
6004 {{templateredirect}}
6011 Template with argument in separate line
6013 {{ templateasargtest |
6021 Template with complex template as argument
6024 param ={{ templateasargtest |
6027 <p>This is a test template with parameter (test)
6032 Template with thumb image (with link in description)
6035 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6037 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>
6042 Template:complextemplate
6044 {{{1}}} {{paramtest|
6045 param ={{{param}}}}}
6049 Template with complex arguments
6052 param ={{ templateasargtest |
6053 templ = simple }}|[[Template:complextemplate|link]]}}
6055 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6060 BUG 553: link with two variables in a piped link
6063 |[[{{{1}}}|{{{2}}}]]
6068 <td>[[{{{1}}}|{{{2}}}]]
6074 Magic variable as template parameter
6076 {{paramtest|param={{SITENAME}}}}
6078 <p>This is a test template with parameter MediaWiki
6085 [[{{{param}}}|link]]
6089 Template parameter as link source
6091 {{linktest|param=Main Page}}
6093 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6098 Template-generated attribute string (k='v')
6100 <span {{attr_str|id|v1}}>bar</span>
6102 <p><span id="v1">bar</span>
6109 including another template, {{paramtest|param={{{arg}}}}}
6113 Template passing argument to another template
6115 {{paramtest2|arg='hmm'}}
6117 <p>including another template, This is a test template with parameter 'hmm'
6128 Template as link source
6132 [[{{linktest2}}|Main Page]]
6134 [[{{linktest2}}]]Page
6136 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6137 </p><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>Page
6156 Template infinite loop
6160 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6165 Template from main namespace
6184 BUG 529: Template with table, not included at beginning of line
6203 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6223 BUG 41: Template parameters shown as broken links
6232 Template with targets containing wikilinks
6236 {{[[{{echo|foo}}]]}}
6238 {{{{echo|[[foo}}]]}}
6240 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6241 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6249 ''None'' of '''this''' should be
6251 but rather passed unmodified
6255 # hmm, fix this or just deprecate msgnw and document its behavior?
6261 {{msgnw:MSGNW test}}
6263 <p>''None'' of '''this''' should be
6265 but rather passed unmodified
6273 {{int:youhavenewmessages|lots of money|not!}}
6275 <p>You have lots of money (not!).
6282 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6286 <includeonly> and <noinclude> being included
6297 <onlyinclude>Foo</onlyinclude>bar
6301 <onlyinclude> being included
6313 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6317 <onlyinclude> and <includeonly> being included
6326 <includeonly> and <noinclude> on a page
6328 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6335 Un-closed <noinclude>
6342 <onlyinclude> on a page
6344 <onlyinclude>Foo</onlyinclude>bar
6351 Un-closed <onlyinclude>
6358 Self-closed noinclude, includeonly, onlyinclude tags
6369 Unbalanced includeonly and noinclude tags
6373 |b</noinclude></noinclude>
6374 |c</noinclude></includeonly>
6375 |d</includeonly></includeonly>
6384 <td>c</includeonly>
6386 <td>d</includeonly></includeonly>
6392 Template:Includeonly section
6395 ==Includeonly section==
6401 Bug 6563: Edit link generation for section shown by <includeonly>
6403 {{includeonly section}}
6405 <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>
6406 <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>
6410 # Uses same input as the contents of [[Template:Includeonly section]]
6412 Bug 6563: Section extraction for section shown by <includeonly>
6417 ==Includeonly section==
6425 Bug 6563: Edit link generation for section suppressed by <includeonly>
6428 ==Includeonly section==
6432 <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>
6437 Bug 6563: Section extraction for section suppressed by <includeonly>
6442 ==Includeonly section==
6450 Un-closed <includeonly>
6457 ### <includeonly> and <noinclude> in attributes
6460 0. includeonly around the entire attribute
6462 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6464 <p><span id="v2">bar</span>
6469 1. includeonly in html attr key
6471 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6473 <p><span id="foo">bar</span>
6478 2. includeonly in html attr value
6480 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6481 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6483 <p><span id="v1">bar</span>
6484 <span id="v1">bar</span>
6489 3. includeonly in part of an attr value
6491 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6493 <p><span style="color:red;">bar</span>
6498 ### Testing parsing of templates where a template arg
6499 ### has the same name as the template itself.
6509 Templates: Template Name/Arg clash: 1. Use of positional param
6518 Templates: Template Name/Arg clash: 2. Use of named param
6527 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6536 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6540 Templates: 1. Simple use
6549 Templates: 2. Inside a block tag
6551 <div>{{echo|Foo}}</div>
6558 Templates: P-wrapping: 1a. Templates on consecutive lines
6569 Templates: P-wrapping: 1b. Templates on consecutive lines
6583 Templates: P-wrapping: 1c. Templates on consecutive lines
6586 {{echo|bar}} <div>baz</div>
6595 Templates: P-wrapping: 1d. Template preceded by comment-only line
6597 parsoid=wt2html,wt2wt
6603 <p typeof="mw:Transclusion">Bar
6608 Templates: Inline Text: 1. Multiple tmeplate uses
6610 {{echo|Foo}}bar{{echo|baz}}
6617 Templates: Inline Text: 2. Back-to-back template uses
6619 {{echo|Foo}}{{echo|bar}}
6626 Templates: Block Tags: 1. Multiple template uses
6628 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6630 <div>Foo</div><div>bar</div><div>baz</div>
6635 Templates: Block Tags: 2. Back-to-back template uses
6637 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6639 <div>Foo</div><div>bar</div>
6644 Templates: Links: 1. Simple example
6646 {{echo|[[Foo|bar]]}}
6648 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6653 Templates: Links: 2. Generation of link href
6655 [[{{echo|Foo}}|bar]]
6657 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6662 Templates: Links: 3. Generation of part of a link href
6664 [[Fo{{echo|o}}|bar]]
6668 [[Foo{{echo|bar}}baz]]
6670 [[Foo{{echo|bar}}|bar]]
6672 [[:Foo{{echo|bar}}]]
6674 [[:Foo{{echo|bar}}|bar]]
6676 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6677 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6678 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6679 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6680 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6681 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6686 Templates: Links: 4. Multiple templates generating link href
6688 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6690 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6695 Templates: Links: 5. Generation of link text
6697 [[Foo|{{echo|bar}}]]
6699 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6704 Templates: Links: 5. Nested templates (only outermost template should be marked)
6706 {{echo|[[{{echo|Foo}}|bar]]}}
6708 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6713 Templates: HTML Tag: 1. Generation of HTML attr. key
6715 <div {{echo|style}}="color:red;">foo</div>
6717 <div style="color:red;">foo</div>
6722 Templates: HTML Tag: 2. Generation of HTML attr. value
6724 <div style={{echo|'color:red;'}}>foo</div>
6726 <div style="color:red;">foo</div>
6731 Templates: HTML Tag: 3. Generation of HTML attr key and value
6733 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6735 <div style="color:red;">foo</div>
6740 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6742 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6744 <div title="This is a long title with just one piece templated">foo</div>
6749 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6751 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6753 <div title="This is a long title with just one piece templated">foo</div>
6758 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6760 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6762 <div title="This is a long title with just one piece templated">foo</div>
6767 Templates: HTML Tag: 7. Generation of partial attribute key string
6769 <div st{{echo|yle}}="color:red;">foo</div>
6771 <div style="color:red;">foo</div>
6776 Templates: HTML Tables: 1. Generating start of a HTML table
6778 {{echo|<table><tr><td>foo</td>}}</tr></table>
6780 <table><tr><td>foo</td></tr></table>
6785 Templates: HTML Tables: 2a. Generating middle of a HTML table
6787 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6789 <table><tr><td>foo</td></tr></table>
6794 Templates: HTML Tables: 2b. Generating middle of a HTML table
6796 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6798 <table><tr><td>foo</td></tr></table>
6803 Templates: HTML Tables: 3. Generating end of a HTML table
6805 <table><tr>{{echo|<td>foo</td></tr></table>}}
6807 <table><tr><td>foo</td></tr></table>
6812 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6814 {{echo|<table>}}<tr><td>foo</td></tr></table>
6816 <table><tr><td>foo</td></tr></table>
6821 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6823 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6825 <table><tr><td>foo</td></tr></table>
6830 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6832 <table><tr>{{echo|<td>}}foo</td></tr></table>
6834 <table><tr><td>foo</td></tr></table>
6839 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6841 <table><tr><td>foo{{echo|</td>}}</tr></table>
6843 <table><tr><td>foo</td></tr></table>
6848 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6850 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6852 <table><tr><td>foo</td></tr></table>
6857 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6859 <table><tr><td>foo</td></tr>{{echo|</table>}}
6861 <table><tr><td>foo</td></tr></table>
6866 Templates: HTML Tables: 5. Proper fostering of categories from inside
6868 parsoid=wt2html,wt2wt
6870 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6871 <!--Two categories (Bug 50330)-->
6872 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6874 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6875 <!--Two categories (Bug 50330)-->
6876 <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>
6880 Templates: Wiki Tables: 1a. Fostering of entire template content
6888 <tr><td></td></tr></table>
6893 Templates: Wiki Tables: 1b. Fostering of entire template content
6906 <tr><td></td></tr></table>
6911 Templates: Wiki Tables: 2. Fostering of partial template content
6921 <tr><td></td></tr></table>
6926 Templates: Wiki Tables: 3. td-content via multiple templates
6929 {{echo|{{pipe}}a}}{{echo|b}}
6940 Templates: Wiki Tables: 4. Templated tags, no content
6946 <tr><td></td></tr></table>
6951 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6965 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6979 Templates: Lists: Multi-line list-items via templates
6981 *{{echo|a {{nonexistent|
6983 *{{echo|b {{nonexistent|
6986 <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>
6987 </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>
6993 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6995 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6997 <p><i>ab</i>c<i>d</i>e
7002 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7003 (PHP parser generates misnested html)
7005 parsoid=wt2html,wt2wt
7007 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7009 <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>
7013 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7014 (PHP parser generates misnested html)
7016 parsoid=wt2html,wt2wt
7018 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7020 <div typeof="mw:Transclusion"><i>a</i></div>
7021 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7022 <div typeof="mw:Transclusion">e</div>
7026 Templates: Ugly nesting: 4. Divs opened/closed across templates
7028 a<div>b{{echo|c</div>d}}e
7035 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7041 |{{echo|foo</table>}}
7045 <table typeof="mw:Transclusion">
7048 <td>foo</td></tr></tbody></table><span>bar</span>
7052 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7062 <td>1. {{echo|foo </table>}}</td>
7064 <td>2. {{echo|baz </table>}}</td>
7077 <table about="#mwt1" typeof="mw:Transclusion">
7082 <td >1. foo </td></tr></tbody></table></td>
7084 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7085 </span><span about="#mwt1">
7087 abc</span><span about="#mwt1">
7088 </span><span about="#mwt1">
7089 </span><span about="#mwt1">
7090 </span><span about="#mwt1">
7091 </span><span about="#mwt1">
7093 xyz</span><span about="#mwt1">
7094 </span><span about="#mwt1">
7099 Templates: Ugly templates: 3. newline-only template parameter
7108 # This looks like a bug: a single newline triggers p/br for some reason.
7110 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7121 Parser Functions: 1. Simple example
7130 Parser Functions: 2. Nested use (only outermost should be marked up)
7139 ### Pre-save transform tests
7142 pre-save transform: subst:
7148 This is a test template
7152 pre-save transform: normal template
7162 pre-save transform: nonexistent template
7166 {{thistemplatedoesnotexist}}
7168 {{thistemplatedoesnotexist}}
7173 pre-save transform: subst magic variables
7182 # This is bug 89, which I fixed. -- wtm
7184 pre-save transform: subst: templates with parameters
7188 {{subst:paramtest|param="something else"}}
7190 This is a test template with parameter "something else"
7196 <nowiki>'''not wiki'''</nowiki>
7200 pre-save transform: nowiki in subst (bug 1188)
7204 {{subst:nowikitest}}
7206 <nowiki>'''not wiki'''</nowiki>
7211 Template:commenttest
7213 This template has <!-- a comment --> in it.
7217 pre-save transform: comment in subst (bug 1936)
7221 {{subst:commenttest}}
7223 This template has <!-- a comment --> in it.
7227 pre-save transform: unclosed tag
7231 <nowiki>'''not wiki'''
7233 <nowiki>'''not wiki'''
7237 pre-save transform: mixed tag case
7241 <NOwiki>'''not wiki'''</noWIKI>
7243 <NOwiki>'''not wiki'''</noWIKI>
7247 pre-save transform: unclosed comment in <nowiki>
7251 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7253 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7256 # Leading @ in this template definition works around a limitation
7257 # in parsoid's parserTests which otherwise strips the <span> from the
7258 # result (confusing it for a template wrapper)
7262 @<span onmouseover="alert('crap')">Oh no</span>
7266 (confirming safety of fix for subst bug 1936)
7268 {{Template:dangerous}}
7270 <p>@<span>Oh no</span>
7275 pre-save transform: comment containing gallery (bug 5024)
7279 <!-- <gallery>data</gallery> -->
7281 <!-- <gallery>data</gallery> -->
7285 pre-save transform: comment containing extension
7289 <!-- <tag>data</tag> -->
7291 <!-- <tag>data</tag> -->
7295 pre-save transform: comment containing nowiki
7299 <!-- <nowiki>data</nowiki> -->
7301 <!-- <nowiki>data</nowiki> -->
7305 pre-save transform: <noinclude> in subst (bug 3298)
7315 pre-save transform: <onlyinclude> in subst (bug 3298)
7327 {{<includeonly>subst:</includeonly>Includes}}
7331 Template:SafeSubstTest
7333 {{<includeonly>safesubst:</includeonly>Includes}}
7337 bug 22297: safesubst: works during PST
7341 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7347 bug 22297: safesubst: works during normal parse
7356 subst: does not work during normal parse
7360 <p>{{subst:Includes}}
7365 pre-save transform: context links ("pipe trick")
7369 [[Article (context)|]]
7372 [[Bar:Article (context)|]]
7373 [[:Bar:Article (context)|]]
7375 [[|Article (context)]]
7379 [[Article (context)|Article]]
7380 [[Bar:Article|Article]]
7381 [[:Bar:Article|Article]]
7382 [[Bar:Article (context)|Article]]
7383 [[:Bar:Article (context)|Article]]
7385 [[Article (context)]]
7386 [[Bar:X (Y) Z|X (Y) Z]]
7387 [[:Bar:X (Y) Z|X (Y) Z]]
7391 pre-save transform: context links ("pipe trick") with interwiki prefix
7395 [[interwiki:Article|]]
7396 [[:interwiki:Article|]]
7397 [[interwiki:Bar:Article|]]
7398 [[:interwiki:Bar:Article|]]
7400 [[interwiki:Article|Article]]
7401 [[:interwiki:Article|Article]]
7402 [[interwiki:Bar:Article|Bar:Article]]
7403 [[:interwiki:Bar:Article|Bar:Article]]
7407 pre-save transform: context links ("pipe trick") with parens in title
7409 pst title=[[Somearticle (context)]]
7413 [[Article (context)|Article]]
7417 pre-save transform: context links ("pipe trick") with comma in title
7419 pst title=[[Someplace, Somewhere]]
7422 [[Otherplace, Elsewhere|]]
7423 [[Otherplace, Elsewhere, Anywhere|]]
7425 [[Otherplace, Somewhere|Otherplace]]
7426 [[Otherplace, Elsewhere|Otherplace]]
7427 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7431 pre-save transform: context links ("pipe trick") with parens and comma
7433 pst title=[[Someplace (IGNORED), Somewhere]]
7436 [[Otherplace (place), Elsewhere|]]
7438 [[Otherplace, Somewhere|Otherplace]]
7439 [[Otherplace (place), Elsewhere|Otherplace]]
7443 pre-save transform: context links ("pipe trick") with comma and parens
7445 pst title=[[Who, me? (context)]]
7448 [[Me, Myself, and I (1937 song)|]]
7450 [[Yes, you. (context)|Yes, you.]]
7451 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7455 pre-save transform: context links ("pipe trick") with namespace
7457 pst title=[[Ns:Somearticle]]
7461 [[Ns:Article|Article]]
7465 pre-save transform: context links ("pipe trick") with namespace and parens
7467 pst title=[[Ns:Somearticle (context)]]
7471 [[Ns:Article (context)|Article]]
7475 pre-save transform: context links ("pipe trick") with namespace and comma
7477 pst title=[[Ns:Somearticle, Context, Whatever]]
7481 [[Ns:Article, Context, Whatever|Article]]
7485 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7487 pst title=[[Ns:Somearticle, Context (context)]]
7491 [[Ns:Article (context)|Article]]
7495 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7497 pst title=[[Ns:Somearticle (IGNORED), Context]]
7501 [[Ns:Article, Context|Article]]
7505 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7509 [[Article(context)|]]
7510 [[Bar:Article(context)|]]
7511 [[:Bar:Article(context)|]]
7512 [[|Article(context)]]
7516 [[Article(context)|Article]]
7517 [[Bar:Article(context)|Article]]
7518 [[:Bar:Article(context)|Article]]
7519 [[Article(context)]]
7521 [[:Bar:X(Y)Z|X(Y)Z]]
7525 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7529 [[Article (context)|]]
7530 [[Bar:Article (context)|]]
7531 [[:Bar:Article (context)|]]
7532 [[|Article (context)]]
7536 [[Article (context)|Article]]
7537 [[Bar:Article (context)|Article]]
7538 [[:Bar:Article (context)|Article]]
7539 [[Article (context)]]
7540 [[Bar:X (Y) Z|X (Y) Z]]
7541 [[:Bar:X (Y) Z|X (Y) Z]]
7545 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7549 [[Article(context)|]]
7550 [[Bar:Article(context)|]]
7551 [[:Bar:Article(context)|]]
7552 [[|Article(context)]]
7556 [[Article(context)|Article]]
7557 [[Bar:Article(context)|Article]]
7558 [[:Bar:Article(context)|Article]]
7559 [[Article(context)]]
7561 [[:Bar:X(Y)Z|X(Y)Z]]
7565 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7569 [[Article (context), context|]]
7570 [[Article (context),context|]]
7571 [[Bar:Article (context), context|]]
7572 [[Bar:Article (context),context|]]
7573 [[:Bar:Article (context), context|]]
7574 [[:Bar:Article (context),context|]]
7576 [[Article (context), context|Article]]
7577 [[Article (context),context|Article]]
7578 [[Bar:Article (context), context|Article]]
7579 [[Bar:Article (context),context|Article]]
7580 [[:Bar:Article (context), context|Article]]
7581 [[:Bar:Article (context),context|Article]]
7585 pre-save transform: trim trailing empty lines
7589 Empty lines are trimmed
7595 Empty lines are trimmed
7599 pre-save transform: Signature expansion
7604 * <noinclude>~~~</noinclude>
7605 * <includeonly>~~~</includeonly>
7606 * <onlyinclude>~~~</onlyinclude>
7608 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7609 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7610 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7611 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7616 pre-save transform: Signature expansion in nowiki tags (bug 93)
7622 <nowiki>~~~~</nowiki>
7624 <includeonly><nowiki>~~~~</nowiki></includeonly>
7626 <noinclude><nowiki>~~~~</nowiki></noinclude>
7628 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7630 {{subst:Foo}} shall be converted to FOO
7632 As well as inside noinclude/onlyinclude
7633 <noinclude>{{subst:Foo}}</noinclude>
7634 <onlyinclude>{{subst:Foo}}</onlyinclude>
7636 But not inside includeonly
7637 <includeonly>{{subst:Foo}}</includeonly>
7641 <nowiki>~~~~</nowiki>
7643 <includeonly><nowiki>~~~~</nowiki></includeonly>
7645 <noinclude><nowiki>~~~~</nowiki></noinclude>
7647 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7649 FOO shall be converted to FOO
7651 As well as inside noinclude/onlyinclude
7652 <noinclude>FOO</noinclude>
7653 <onlyinclude>FOO</onlyinclude>
7655 But not inside includeonly
7656 <includeonly>{{subst:Foo}}</includeonly>
7660 ### Message transform tests
7663 message transform: magic variables
7673 message transform: should not transform wiki markup
7683 message transform: <noinclude> in transcluded template (bug 4926)
7693 message transform: <onlyinclude> in transcluded template (bug 4926)
7703 {{#special:}} page name, known
7707 {{#special:Recentchanges}}
7709 Special:RecentChanges
7713 {{#special:}} page name with subpage, known
7717 {{#special:Recentchanges/param}}
7719 Special:RecentChanges/param
7723 {{#special:}} page name, unknown
7727 {{#special:foobar nonexistent}}
7729 Special:Foobar nonexistent
7733 {{#speciale:}} page name, known
7737 {{#speciale:Recentchanges}}
7739 Special:RecentChanges
7743 {{#speciale:}} page name with subpage, known
7747 {{#speciale:Recentchanges/param}}
7749 Special:RecentChanges/param
7753 {{#speciale:}} page name, unknown
7757 {{#speciale:foobar nonexistent}}
7759 Special:Foobar_nonexistent
7768 [[Image:foobar.jpg]]
7770 <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>
7777 [[Image:foobar.jpg|right]]
7779 <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>
7784 Simple image (using File: namespace, now canonical)
7788 <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>
7795 [[Image:foobar.jpg|right|Caption text]]
7797 <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>
7802 Image with empty attribute
7804 [[Image:foobar.jpg|right||Caption text]]
7806 <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>
7811 Image with link tails
7813 123[[Image:foobar.jpg]]456
7814 123[[Image:foobar.jpg|right]]456
7815 123[[Image:foobar.jpg|thumb]]456
7817 <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
7819 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
7820 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
7825 Image with multiple captions -- only last one is accepted
7827 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7829 <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>
7834 Image with width attribute at different positions
7836 [[Image:foobar.jpg|200px|right|Caption]]
7837 [[Image:foobar.jpg|right|200px|Caption]]
7838 [[Image:foobar.jpg|right|Caption|200px]]
7840 <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>
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>
7847 Image with link parameter, wiki target
7849 [[Image:foobar.jpg|link=Target page]]
7851 <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>
7856 Image with link parameter, URL target
7858 [[Image:foobar.jpg|link=http://example.com/]]
7860 <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>
7865 Image with link parameter, wgExternalLinkTarget
7867 [[Image:foobar.jpg|link=http://example.com/]]
7869 wgExternalLinkTarget='foobar'
7871 <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>
7876 Image with link parameter, wgNoFollowLinks set to false
7878 [[Image:foobar.jpg|link=http://example.com/]]
7880 wgNoFollowLinks=false
7882 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7887 Image with link parameter, wgNoFollowDomainExceptions
7889 [[Image:foobar.jpg|link=http://example.com/]]
7891 wgNoFollowDomainExceptions='example.com'
7893 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7898 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7900 [[Image:foobar.jpg|link=http://example.com/|Title]]
7902 wgExternalLinkTarget='foobar'
7904 <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>
7909 Image with empty link parameter
7911 [[Image:foobar.jpg|link=]]
7913 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7918 Image with link parameter (wiki target) and unnamed parameter
7920 [[Image:foobar.jpg|link=Target page|Title]]
7922 <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>
7927 Image with link parameter (URL target) and unnamed parameter
7929 [[Image:foobar.jpg|link=http://example.com/|Title]]
7931 <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>
7936 Thumbnail image with link parameter
7940 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7942 <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>
7947 Manually-specified thumbnail image
7951 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7953 <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>
7958 Manually-specified thumbnail image with explicit link to wiki page
7962 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7964 <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>
7969 Manually-specified thumbnail image with explicit link to url
7973 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7975 <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>
7980 Manually-specified thumbnail image with explicit no link
7984 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7986 <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>
7991 Manually-specified thumbnail image with explicit link and alt text
7995 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7997 <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>
8002 Image with frame and link
8004 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8006 <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>
8011 Image with frame and link and explicit alt
8013 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8015 <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>
8020 Image with wiki markup in implicit alt
8022 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8024 <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>
8029 Image with wiki markup in explicit alt
8031 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8033 <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>
8038 Link to image page- image page normally doesn't exists, hence edit link
8039 Add test with existing image page
8040 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8044 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8049 bug 18784 Link to non-existent image page with caption should use caption as link text
8051 [[:Image:test|caption]]
8053 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8058 Frameless image caption with a free URL
8060 [[Image:foobar.jpg|http://example.com]]
8062 <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>
8067 Thumbnail image caption with a free URL
8069 [[Image:foobar.jpg|thumb|http://example.com]]
8071 <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>
8076 Thumbnail image caption with a free URL and explicit alt
8078 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8080 <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>
8085 SVG thumbnails with no language set
8088 [[File:Foobar.svg|thumb|width=200]]
8090 <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>
8095 SVG thumbnails with language de
8098 [[File:Foobar.svg|thumb|width=200|lang=de]]
8100 <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>
8105 SVG thumbnails with invalid language code
8108 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8110 <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>
8114 BUG 1887: A ISBN with a thumbnail
8116 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8118 <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>
8123 BUG 1887: A RFC with a thumbnail
8125 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8127 <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>
8132 BUG 1887: A mailto link with a thumbnail
8134 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8136 <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>
8140 # Pending resolution to bug 368
8142 BUG 648: Frameless image caption with a link
8144 [[Image:foobar.jpg|text with a [[link]] in it]]
8146 <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>
8151 BUG 648: Frameless image caption with a link (suffix)
8153 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8155 <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>
8160 BUG 648: Frameless image caption with an interwiki link
8162 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8164 <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>
8169 BUG 648: Frameless image caption with a piped interwiki link
8171 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8173 <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>
8178 Escape HTML special chars in image alt text
8180 [[Image:foobar.jpg|& < > "]]
8182 <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>
8187 BUG 499: Alt text should have Ӓ, not &1234;
8189 [[Image:foobar.jpg|♀]]
8191 <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>
8196 Broken image caption with link
8198 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8200 <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.
8205 Image caption containing another image
8207 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8209 <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>
8214 Image caption containing a newline
8216 [[Image:Foobar.jpg|This
8219 <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>
8224 Parsoid: Image caption containing leading space
8225 (The leading space should not trigger nowiki escaping in wt2wt mode)
8227 [[Image:Foobar.jpg|thumb| bar]]
8229 <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>
8234 Bug 3090: External links other than http: in image captions
8236 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8238 <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>
8245 [[Image:foobar.jpg|a|class=b]]
8247 <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>
8252 Localized image handling (1).
8256 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8258 <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>
8263 Localized image handling (2).
8267 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8269 <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>
8274 "border", "frameless" and "class" attributes on an image.
8276 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8278 <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>
8285 #REDIRECT [[File:Barfoo.jpg]]
8291 [[Image:Barfoo.jpg]]
8293 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8298 Missing image with uploads disabled
8302 [[Image:Foobaz.jpg]]
8304 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8308 # Parsoid-specific testing for images
8309 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8310 # Currently imperfect due to a flaw in the Parsoid testrunner
8314 Parsoid-specific image handling - simple image
8318 [[Image:Foobar.jpg]]
8321 <span class="mw-default-size" typeof="mw:Image">
8322 <a href="File:Foobar.jpg">
8323 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8330 Parsoid-specific image handling - simple image without link
8334 [[Image:Foobar.jpg|link=]]
8337 <span class="mw-default-size" typeof="mw:Image">
8339 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8346 Parsoid-specific image handling - simple image with specific link
8350 [[Image:Foobar.jpg|link=Main Page]]
8353 <span class="mw-default-size" typeof="mw:Image">
8354 <a href="Main_Page">
8355 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8362 Parsoid-specific image handling - simple image with size and middle alignment
8366 [[Image:Foobar.jpg|50px|middle]]
8369 <span class="mw-valign-middle" typeof="mw:Image">
8370 <a href="File:Foobar.jpg">
8371 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8378 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8382 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8385 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8386 <a href="File:Foobar.jpg">
8387 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8394 Parsoid-specific image handling - simple image with border and size spec
8398 [[Image:Foobar.jpg|50px|border|caption]]
8401 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8402 <a href="File:Foobar.jpg">
8403 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8410 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8414 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8416 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8417 <a href="File:Foobar.jpg">
8418 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8420 <figcaption>caption content</figcaption>
8425 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8429 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8431 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8432 <a href="File:Foobar.jpg">
8433 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8435 <figcaption>caption</figcaption>
8440 Parsoid-specific image handling - framed image with specific size and caption
8444 [[Image:Foobar.jpg|500x50px|frame|caption]]
8446 <figure typeof="mw:Image/Frame">
8447 <a href="File:Foobar.jpg">
8448 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8450 <figcaption>caption</figcaption>
8455 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8459 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8461 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8462 <a href="File:Foobar.jpg">
8463 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8465 <figcaption>caption</figcaption>
8470 Parsoid-specific image handling - frameless image with specific size, border, and caption
8474 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8477 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8478 <a href="File:Foobar.jpg">
8479 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8485 #Parsoid-specific image handling - simple image with a formatted caption
8489 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8492 #<span typeof="mw:Image">
8493 #<a class="mw-default-size" href="Image:Foobar.jpg">
8494 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8504 Subpage test/subpage
8512 subpage title=[[Subpage test]]
8516 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8521 Subpage noslash link
8523 subpage title=[[Subpage test]]
8527 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8531 # TODO: make this PHP-parser compatible!
8533 Relative subpage noslash link
8535 parsoid=wt2wt,wt2html,html2html
8536 subpage title=[[Subpage test/1/2/3/4]]
8542 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8543 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8546 # TODO: make this PHP-parser compatible!
8548 Parsoid: dot-slash prefixed wikilinks
8550 parsoid=wt2wt,wt2html,html2html
8558 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8559 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8560 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8568 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8573 BUG 561: {{/Subpage}}
8575 subpage title=[[Page]]
8579 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8587 Category:MediaWiki User's Guide
8595 [[:Category:MediaWiki User's Guide]]
8597 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8606 [[Category:MediaWiki User's Guide]]
8608 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8612 PAGESINCATEGORY invalid title fatal (r33546 fix)
8614 {{PAGESINCATEGORY:<bogus>}}
8621 Category with different sort key
8625 [[Category:MediaWiki User's Guide|Foo]]
8627 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8631 Category with identical sort key
8635 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8637 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8641 Category with empty sort key
8646 [[Category:MediaWiki User's Guide|]]
8648 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8652 Category with empty sort key and parentheses
8657 [[Category:Foo (bar)|]]
8659 [[Category:Foo (bar)|Foo]]
8663 Category with link tail
8668 123[[Category:Foo]]456
8670 123[[Category:Foo]]456
8674 Category with template
8679 [[Category:{{echo|Foo}}]]
8681 [[Category:{{echo|Foo}}]]
8685 Category with template in sort key
8690 [[Category:Foo|{{echo|Bar}}]]
8692 [[Category:Foo|{{echo|Bar}}]]
8696 Category with template in sort key and title
8701 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8703 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8707 Category / paragraph interactions
8709 Foo [[Category:Baz]] Bar
8711 Foo [[Category:Baz]]
8719 [[Category:Baz]] Bar
8732 {{echo|[[Category:Baz]]}}
8747 Parsoid: Serialize link to category page with colon escape
8753 [[:Category:Foo|Bar]]
8756 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8757 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8762 Parsoid: Serialize link to file page with colon escape
8768 [[:File:Foo.png|Bar]]
8771 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8772 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8777 Parsoid: Serialize a genuine category link without colon escape
8782 [[Category:Foo|Bar]]
8784 <link rel="mw:WikiLink/Category" href="Category:Foo">
8785 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8788 ### Inter-language links
8791 Inter-language links
8797 [[zh:食品]]
8799 es:Alimento fr:Nourriture zh:食品
8803 Duplicate interlanguage links (bug 24502)
8819 Basic section headings
8826 ===Smaller headline===
8829 <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>
8832 <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>
8835 <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>
8841 Section headings with TOC
8844 === Subheadline 1 ===
8845 ===== Skipping a level =====
8846 ====== Skipping a level ======
8850 ===Another headline===
8852 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8854 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8856 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8858 <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>
8860 <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>
8867 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8869 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8874 <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>
8875 <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>
8876 <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>
8877 <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>
8878 <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>
8881 <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>
8885 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8887 Handling of sections up to level 6 and beyond
8890 == Level 2 Heading==
8891 === Level 3 Heading===
8892 ==== Level 4 Heading====
8893 ===== Level 5 Heading=====
8894 ====== Level 6 Heading======
8895 ======= Level 7 Heading=======
8896 ======== Level 8 Heading========
8897 ========= Level 9 Heading=========
8898 ========== Level 10 Heading==========
8900 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8902 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8904 <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>
8906 <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>
8908 <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>
8910 <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>
8912 <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>
8913 <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>
8914 <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>
8915 <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>
8916 <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>
8929 <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>
8930 <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>
8931 <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>
8932 <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>
8933 <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>
8934 <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>
8935 <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>
8936 <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>
8937 <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>
8938 <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>
8943 TOC regression (bug 9764)
8947 ==== title 1.1.1 ====
8952 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8954 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8956 <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>
8958 <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>
8961 <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>
8964 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8966 <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>
8971 <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>
8972 <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>
8973 <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>
8974 <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>
8975 <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>
8976 <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>
8981 TOC with wgMaxTocLevel=3 (bug 6204)
8987 ==== title 1.1.1 ====
8992 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8994 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8996 <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>
8997 <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>
9000 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9002 <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>
9007 <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>
9008 <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>
9009 <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>
9010 <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>
9011 <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>
9012 <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>
9017 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9023 ====Section 1.1.1====
9024 ====Section 1.1.1.1====
9027 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9029 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9031 <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>
9034 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9037 <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>
9038 <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>
9039 <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>
9040 <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>
9041 <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>
9047 Resolving duplicate section names
9052 <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>
9053 <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>
9058 Resolving duplicate section names with differing case (bug 10721)
9063 <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>
9064 <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>
9076 Template with sections, __NOTOC__
9083 <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>
9084 <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>
9085 <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>
9086 <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>
9091 __NOEDITSECTION__ keyword
9097 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9098 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9103 Link inside a section heading
9105 ==Section with a [[Main Page|link]] in it==
9107 <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>
9112 TOC regression (bug 12077)
9119 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9121 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9123 <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>
9126 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9129 <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>
9130 <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>
9131 <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>
9136 BUG 1219 URL next to image (good)
9138 http://example.com [[Image:foobar.jpg]]
9140 <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>
9145 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9148 The line above must have a trailing space!
9151 But just in case it doesn't...
9153 <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>
9154 <p>The line above must have a trailing space!
9156 <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>
9157 <p>But just in case it doesn't...
9162 Header with special characters (bug 25462)
9164 The tooltips shall not show entities to the user (ie. be double escaped)
9181 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9183 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9185 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9186 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9187 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9188 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9189 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9192 <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>
9195 <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>
9198 <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>
9201 <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>
9204 <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>
9210 Headers with excess '=' characters
9211 (Are similar tests necessary beyond the 1st level?)
9215 =''italic'' heading==
9216 ==''italic'' heading=
9218 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9220 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9221 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9222 <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>
9223 <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>
9226 <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>
9227 <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>
9228 <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>
9229 <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>
9234 HTML headers vs TOC (bug 23393)
9235 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9247 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9249 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9251 <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>
9252 <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>
9255 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9257 <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>
9258 <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>
9263 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9264 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9265 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9266 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9267 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9268 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9273 BUG 1219 URL next to image (broken)
9275 http://example.com[[Image:foobar.jpg]]
9277 <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>
9282 Bug 1186 news: in the middle of text
9284 http://en.wikinews.org/wiki/Wikinews:Workplace
9286 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9292 Namespaced link must have a title
9301 Namespaced link must have a title (bad fragment version)
9303 [[Project:#fragment]]
9305 <p>[[Project:#fragment]]
9311 ### HTML tags and HTML attributes
9315 div with no attributes
9317 <div>HTML rocks</div>
9319 <div>HTML rocks</div>
9324 div with double-quoted attribute
9326 <div id="rock">HTML rocks</div>
9328 <div id="rock">HTML rocks</div>
9333 div with single-quoted attribute
9335 <div id='rock'>HTML rocks</div>
9337 <div id="rock">HTML rocks</div>
9342 div with unquoted attribute
9344 <div id=rock>HTML rocks</div>
9346 <div id="rock">HTML rocks</div>
9351 div with illegal double attributes
9353 <div id="a" id="b">HTML rocks</div>
9355 <div id="b">HTML rocks</div>
9359 # FIXME: produce empty string instead of "class" in the PHP parser, following
9362 div with empty attribute value, space before equals
9366 <div class =>HTML rocks</div>
9368 <div class="">HTML rocks</div>
9372 # The PHP parser escapes the opening brace to { for some reason, so
9373 # disabled this test for it.
9375 div with braces in attribute value
9379 <div title="{}">Foo</div>
9381 <div title="{}">Foo</div>
9384 # This it very inconsistent in the PHP parser: it returns
9385 # class="class" if there is a space between the name and the equal sign (see
9386 # 'div with empty attribute value, space before equals'), but strips the
9387 # attribute completely if the space is missing. We hope that not much content
9388 # depends on this, so are implementing the behavior below in Parsoid for
9389 # consistencies' sake. Disabled for the PHP parser.
9390 # FIXME: fix this behavior in the PHP parser?
9392 div with empty attribute value, no space before equals
9396 <div class=>HTML rocks</div>
9398 <div class="">HTML rocks</div>
9403 HTML multiple attributes correction
9405 <p class="error" class="awesome">Awesome!</p>
9407 <p class="awesome">Awesome!</p>
9412 Table multiple attributes correction
9415 !+ class="error" class="awesome"| status
9420 <th class="awesome"> status
9428 <DIV ID="x">HTML ROCKS</DIV>
9430 <div id="x">HTML ROCKS</div>
9435 Non-ASCII pseudo-tags are rendered as text
9444 Pseudo-tag with URL 'name' renders as url link
9446 <http://example.com/>
9448 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9453 text with amp in the middle of nowhere
9457 <p>Remember AT&T?
9462 text with character entity: eacute
9464 I always thought é was a cute letter.
9466 <p>I always thought é was a cute letter.
9471 text with entity-escaped character entity-like string: eacute
9473 I always thought &eacute; was a cute letter.
9475 <p>I always thought &eacute; was a cute letter.
9480 text with undefined character entity: xacute
9482 I always thought &xacute; was a cute letter.
9484 <p>I always thought &xacute; was a cute letter.
9496 [[Media:Foobar.jpg]]
9498 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9503 Media link with text
9505 [[Media:Foobar.jpg|A neat file to look at]]
9507 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9511 # FIXME: this is still bad HTML tag nesting
9513 Media link with nasty text
9514 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9516 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9518 <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>
9523 Media link to nonexistent file (bug 1702)
9525 [[Media:No such.jpg]]
9527 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9532 Image link to nonexistent file (bug 1850 - good)
9534 [[Image:No such.jpg]]
9536 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9541 :Image link to nonexistent file (bug 1850 - bad)
9543 [[:Image:No such.jpg]]
9545 <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>
9552 Character reference normalization in link text (bug 1938)
9554 [[Main Page|this&that]]
9556 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9563 Test for unicode normalization
9565 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9569 (bug 19451) Links should refer to the normalized form.
9577 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9578 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9579 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9580 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9581 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9586 Empty attribute crash test (bug 2067)
9588 <font color="">foo</font>
9590 <p><font color="">foo</font>
9595 Empty attribute crash test single-quotes (bug 2067)
9597 <font color=''>foo</font>
9599 <p><font color="">foo</font>
9604 Attribute test: equals, then nothing
9606 <font color=>foo</font>
9613 Attribute test: unquoted value
9615 <font color=x>foo</font>
9617 <p><font color="x">foo</font>
9622 Attribute test: unquoted but illegal value (hash)
9624 <font color=#x>foo</font>
9626 <p><font color="#x">foo</font>
9631 Attribute test: no value
9633 <font color>foo</font>
9635 <p><font color="color">foo</font>
9640 Bug 2095: link with three closing brackets
9644 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9649 Bug 2095: link with pipe and three closing brackets
9653 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9658 Bug 2095: link with pipe and three closing brackets, version 2
9660 [[Main Page|[http://example.com/]]]
9662 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9672 Template:Dangerous attribute
9674 " onmouseover="alert(document.cookie)
9678 Template:Dangerous style attribute
9680 border-size: expression(alert(document.cookie))
9686 <div style="float: right; {{{1}}}">Magic div</div>
9690 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9692 <div title="{{test}}"></div>
9694 <div title="This is a test template"></div>
9699 Bug 2304: HTML attribute safety (dangerous template; 2309)
9701 <div title="{{dangerous attribute}}"></div>
9703 <div title=""></div>
9708 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9710 <div style="{{dangerous style attribute}}"></div>
9712 <div style="/* insecure input */"></div>
9717 Bug 2304: HTML attribute safety (safe parameter; 2309)
9719 {{div style|width: 200px}}
9721 <div style="float: right; width: 200px">Magic div</div>
9726 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9728 {{div style|width: expression(alert(document.cookie))}}
9730 <div style="/* insecure input */">Magic div</div>
9735 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9737 {{div style|"><script>alert(document.cookie)</script>}}
9739 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9744 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9746 {{div style|" ><script>alert(document.cookie)</script>}}
9748 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9753 Bug 2304: HTML attribute safety (link)
9755 <div title="[[Main Page]]"></div>
9757 <div title="[[Main Page]]"></div>
9762 Bug 2304: HTML attribute safety (italics)
9764 <div title="''foobar''"></div>
9766 <div title="''foobar''"></div>
9771 Bug 2304: HTML attribute safety (bold)
9773 <div title="'''foobar'''"></div>
9775 <div title="'''foobar'''"></div>
9781 Bug 2304: HTML attribute safety (ISBN)
9783 <div title="ISBN 1234567890"></div>
9785 <div title="ISBN 1234567890"></div>
9790 Bug 2304: HTML attribute safety (RFC)
9792 <div title="RFC 1234"></div>
9794 <div title="RFC 1234"></div>
9799 Bug 2304: HTML attribute safety (PMID)
9801 <div title="PMID 1234567890"></div>
9803 <div title="PMID 1234567890"></div>
9808 Bug 2304: HTML attribute safety (web link)
9810 <div title="http://example.com/"></div>
9812 <div title="http://example.com/"></div>
9817 Bug 2304: HTML attribute safety (named web link)
9819 <div title="[http://example.com/ link]"></div>
9821 <div title="[http://example.com/ link]"></div>
9826 Bug 3244: HTML attribute safety (extension; safe)
9828 <div style="<nowiki>background:blue</nowiki>"></div>
9830 <div style="background:blue"></div>
9835 Bug 3244: HTML attribute safety (extension; unsafe)
9837 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9839 <div style="/* insecure input */"></div>
9843 # More MSIE fun discovered by Tom Gilder
9846 MSIE CSS safety test: spurious slash
9848 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9850 <div style="/* insecure input */">evil</div>
9855 MSIE CSS safety test: hex code
9857 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9859 <div style="/* insecure input */">evil</div>
9864 MSIE CSS safety test: comment in url
9866 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9868 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9873 MSIE CSS safety test: comment in expression
9875 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9877 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9883 Table attribute legitimate extension
9886 !+ style="<nowiki>color:blue</nowiki>"| status
9891 <th style="color:blue"> status
9897 Table attribute safety
9900 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9905 <th style="/* insecure input */"> status
9911 CSS line continuation 1
9913 <div style="background-image: u\ rl(test.jpg);"></div>
9915 <div style="/* insecure input */"></div>
9920 CSS line continuation 2
9922 <div style="background-image: u\ rl(test.jpg); "></div>
9924 <div style="/* insecure input */"></div>
9935 Expansion of multi-line templates in attribute values (bug 6255)
9937 <div style="background: {{identity|#00FF00}}">-</div>
9939 <div style="background: #00FF00">-</div>
9945 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9947 <div style="background:
9950 <div style="background: #00FF00">-</div>
9955 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9957 <div style="background: #00FF00">-</div>
9959 <div style="background: #00FF00">-</div>
9964 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9967 Parser hook: empty input
9980 Parser hook: empty input using terminated empty elements
9993 Parser hook: empty input using terminated empty elements (space before)
10006 Parser hook: basic input
10020 Parser hook: case insensitive
10034 Parser hook: case insensitive, redux
10047 Parser hook: nested tags
10051 <tag><tag></tag></tag>
10062 Parser hook: basic arguments
10064 <tag width=200 height = "100" depth = '50' square></tag>
10072 'square' => 'square',
10079 Parser hook: argument containing a forward slash (bug 5344)
10081 <tag filename='/tmp/bla'></tag>
10086 'filename' => '/tmp/bla',
10093 Parser hook: empty input using terminated empty elements (bug 2374)
10106 # </tag> should be output literally since there is no matching tag that begins it
10108 Parser hook: basic arguments using terminated empty elements (bug 2374)
10110 <tag width=200 height = "100" depth = '50' square/>
10120 'square' => 'square',
10129 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10133 Parser hook: static parser hook not inside a comment
10135 <statictag>hello, world</statictag>
10136 <statictag action=flush/>
10144 Parser hook: static parser hook inside a comment
10146 <!-- <statictag>hello, world</statictag> -->
10147 <statictag action=flush/>
10153 # Nested template calls; this case was broken by Parser.php rev 1.506,
10157 Template:One-parameter
10159 (My parameter is: {{{1}}})
10163 Template:Map-one-parameter
10165 {{{{{1}}}|{{{2}}}}}
10169 Nested template calls
10171 {{Map-one-parameter|One-parameter|param}}
10173 <p>(My parameter is: param)
10182 Sanitizer: Closing of open tags
10184 <s></s><table></table>
10186 <s></s><table></table>
10191 Sanitizer: Closing of open but not closed tags
10200 Sanitizer: Closing of closed but not open tags
10209 Sanitizer: Closing of closed but not open table tags
10211 Table not started</td></tr></table>
10213 <p>Table not started</td></tr></table>
10218 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10220 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10222 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10227 Sanitizer: Validating the contents of the id attribute (bug 4515)
10233 Something, but definitely not <br id="9" />...
10237 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10241 <br id="foo" /><br id="foo" />
10243 Something need to be done. foo-2 ?
10247 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10250 <meta itemprop="hello" content="world">
10251 <meta http-equiv="refresh" content="5">
10252 <meta itemprop="hello" http-equiv="refresh" content="5">
10253 <link itemprop="hello" href="{{SERVER}}">
10254 <link rel="stylesheet" href="{{SERVER}}">
10255 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10258 <div itemscope="itemscope">
10259 <p> <meta itemprop="hello" content="world" />
10260 <meta http-equiv="refresh" content="5">
10261 <meta itemprop="hello" content="5" />
10263 <link itemprop="hello" href="http://example.org" />
10264 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10265 <link itemprop="hello" href="http://example.org" />
10271 Language converter: output gets cut off unexpectedly (bug 5757)
10275 this bit is safe: }-
10277 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10279 then we get cut off here: }-
10281 all additional text is vanished
10283 <p>this bit is safe: }-
10284 </p><p>but if we add a conversion instance: xxx
10285 </p><p>then we get cut off here: }-
10286 </p><p>all additional text is vanished
10291 Self closed html pairs (bug 5487)
10294 <center><font id="bug" />Centered text</center>
10295 <div><font id="bug2" />In div text</div>
10297 <center><font id="bug" />Centered text</center>
10298 <div><font id="bug2" />In div text</div>
10307 Punctuation: nbsp before exclamation
10311 <p>C'est grave !
10316 Punctuation: CSS !important (bug 11874)
10318 <div style="width:50% !important">important</div>
10320 <div style="width:50% !important">important</div>
10325 Punctuation: CSS ! important (bug 11874; with space after)
10327 <div style="width:50% ! important">important</div>
10329 <div style="width:50% ! important">important</div>
10335 HTML bullet list, closed tags (bug 5497)
10350 HTML bullet list, unclosed tags (bug 5497)
10367 HTML ordered list, closed tags (bug 5497)
10382 HTML ordered list, unclosed tags (bug 5497)
10399 HTML nested bullet list, closed tags (bug 5497)
10424 HTML nested bullet list, open tags (bug 5497)
10449 HTML nested ordered list, closed tags (bug 5497)
10474 HTML nested ordered list, open tags (bug 5497)
10499 HTML ordered list item with parameters oddity
10501 <ol><li id="fragment">One</li></ol>
10503 <ol><li id="fragment">One</li></ol>
10508 bug 5918: autonumbering
10510 [http://first/] [http://second] [ftp://ftp]
10514 [mailto:enclosed@mail.tld With target]
10516 [mailto:enclosed@mail.tld]
10518 mailto:inline@mail.tld
10520 <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>
10521 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10522 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10523 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10524 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10530 # Security and HTML correctness
10531 # From Nick Jenkins' fuzz testing
10535 Fuzz testing: Parser13
10550 Fuzz testing: Parser14
10555 <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>
10556 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10558 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10565 Fuzz testing: Parser14-table
10570 <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>
10571 <table style="__TOC__">
10577 # Known to produce bogus xml (extra </td>)
10579 Fuzz testing: Parser16
10599 Fuzz testing: Parser21
10602 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10607 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10617 Fuzz testing: Parser22
10619 http://===r:::https://b
10623 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10631 # Known to produce bad XML for now
10633 Fuzz testing: Parser24
10640 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10641 <br style="onmouseover='alert(document.cookie);' " />
10643 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10648 <u class="|">}}}} >
10649 <br style="onmouseover='alert(document.cookie);'" />
10651 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10660 # Note: the current result listed for this is not what the original one was,
10661 # but the original bug was JavaScript injection, which is fixed in any case.
10662 # It's not clear that the original result listed was any more correct than the
10663 # current one. Original result:
10666 # <li class="||">
10667 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10669 Fuzz testing: Parser25 (bug 6055)
10675 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10677 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10682 Fuzz testing: URL adjacent extension (with space, clean)
10685 http://example.com <nowiki>junk</nowiki>
10687 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10692 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10695 http://example.com<nowiki>junk</nowiki>
10697 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10702 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10705 http://example.com<pre>junk</pre>
10707 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10712 Fuzz testing: image with bogus manual thumbnail
10714 [[Image:foobar.jpg|thumbnail= ]]
10716 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10721 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10723 <pre dir=" "></pre>
10725 <pre dir=" "></pre>
10730 Parsing optional HTML elements (Bug 6171)
10735 <td> Some tabular data</td>
10736 <td> More tabular data ...
10737 <td> And yet som tabular data</td>
10743 <td> Some tabular data</td>
10744 <td> More tabular data ...
10745 </td><td> And yet som tabular data</td>
10752 Correct handling of <td>, <tr> (Bug 6171)
10757 <td> Some tabular data</td>
10758 <td> More tabular data ...</td>
10759 <td> And yet som tabular data</td>
10765 <td> Some tabular data</td>
10766 <td> More tabular data ...</td>
10767 <td> And yet som tabular data</td>
10775 Parsing crashing regression (fr:JavaScript)
10779 <p></body></x>
10784 Inline wiki vs wiki block nesting
10790 <p><b>Bold paragraph</b>
10791 </p><p>New wiki paragraph
10796 Inline HTML vs wiki block nesting
10804 <p><b>Bold paragraph</b>
10805 </p><p>New wiki paragraph
10809 # Original result was this:
10810 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10812 # While that might be marginally more intuitive, maybe, the six-apostrophe
10813 # construct is clearly pathological and the result stated here (which is what
10814 # the parser actually does) is about as reasonable as anything.
10816 Mixing markup for italics and bold
10819 '''bold''''''bold''bolditalics'''''
10821 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10829 Article for special page transclusion test
10833 Special page transclusion
10836 {{Special:Prefixindex/Xyzzyx}}
10838 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10843 Special page transclusion twice (bug 5021)
10846 {{Special:Prefixindex/Xyzzyx}}
10847 {{Special:Prefixindex/Xyzzyx}}
10849 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10850 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10855 Transclusion of default MediaWiki message
10857 {{MediaWiki:Mainpage}}
10864 Transclusion of nonexistent MediaWiki message
10866 {{MediaWiki:Mainpagexxx}}
10868 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10873 Transclusion of MediaWiki message with underscore
10875 {{MediaWiki:history_short}}
10882 Transclusion of MediaWiki message with space
10884 {{MediaWiki:history short}}
10891 Invalid header with following text
10901 Section extraction test (section 0)
10921 Section extraction test (section 1)
10943 Section extraction test (section 2)
10964 Section extraction test (section 3)
10984 Section extraction test (section 4)
11008 Section extraction test (section 5)
11028 Section extraction test (section 6)
11049 Section extraction test (section 7)
11069 Section extraction test (section 8)
11089 Section extraction test (section 9)
11110 Section extraction test (section 10)
11130 Section extraction test (nonexistent section 11)
11149 Section extraction test with bogus heading (section 1)
11154 ==bogus== not a legal section
11158 ==bogus== not a legal section
11162 Section extraction test with bogus heading (section 2)
11167 ==bogus== not a legal section
11174 Section extraction test with comment after heading (section 1)
11186 Section extraction test with comment after heading (section 2)
11198 Section extraction test with bogus <nowiki> heading (section 1)
11203 ==bogus== <nowiki>not a legal section</nowiki>
11207 ==bogus== <nowiki>not a legal section</nowiki>
11211 Section extraction test with bogus <nowiki> heading (section 2)
11216 ==bogus== <nowiki>not a legal section</nowiki>
11223 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11224 # instead of respecting commented sections
11226 Section extraction prefixed by comment (section 1)
11237 Section extraction prefixed by comment (section 2)
11248 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11249 # instead of respecting HTML-style headings
11251 Section extraction, mixed wiki and html (section 1)
11267 Section extraction, mixed wiki and html (section 2)
11283 # Formerly testing for bug 3342
11285 Section extraction, heading surrounded by <noinclude>
11289 <noinclude>==unmarked==</noinclude>
11295 # Test behavior of bug 19910
11297 Sectiion with all-equals
11302 The line above must have a trailing space
11305 But just in case it doesn't...
11309 But just in case it doesn't...
11313 Section replacement test (section 0)
11344 Section replacement test (section 1)
11373 Section replacement test (section 2)
11403 Section replacement test (section 3)
11434 Section replacement test (section 4)
11461 Section replacement test (section 5)
11492 Section replacement test (section 6)
11522 Section replacement test (section 7)
11553 Section replacement test (section 8)
11584 Section replacement test (section 9)
11613 Section replacement test (section 10)
11643 Section replacement test with initial whitespace (bug 13728)
11647 Preformatted initial line
11651 Preformatted initial line
11658 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11670 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11683 Section extraction, <pre> around bogus header (bug 10309)
11700 Section replacement, <pre> around bogus header (bug 10309)
11702 noxml replace=2,"xxx"
11723 Handling of 
 in URLs
11727 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11734 5 quotes, code coverage +1 line (php)
11741 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11743 5 quotes, code coverage +1 line (parsoid)
11749 <p><i><b></b></i></p>
11753 Special:Search page linking.
11757 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11769 * {{ROOTPAGENAMEE}}
11771 * {{BASEPAGENAMEE}}
11773 * {{TALKPAGENAMEE}}
11774 * {{SUBJECTPAGENAME}}
11775 * {{SUBJECTPAGENAMEE}}
11781 * {{SUBJECTSPACEE}}
11782 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11784 <ul><li> Parser test
11785 </li><li> Parser test
11786 </li><li> Parser test
11787 </li><li> Parser_test
11788 </li><li> Parser test
11789 </li><li> Parser_test
11790 </li><li> Parser test
11791 </li><li> Parser_test
11792 </li><li> Talk:Parser test
11793 </li><li> Talk:Parser_test
11794 </li><li> Parser test
11795 </li><li> Parser_test
11802 </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>
11806 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11816 image4 |300px| centre
11817 image5.svg| http://///////
11822 <ul class="gallery">
11823 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11824 <div style="height: 150px;">Image1.png</div>
11825 <div class="gallerytext">
11828 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11829 <div style="height: 150px;">Image2.gif</div>
11830 <div class="gallerytext">
11835 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11836 <div style="height: 150px;">Image3</div>
11837 <div class="gallerytext">
11840 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11841 <div style="height: 150px;">Image4</div>
11842 <div class="gallerytext">
11847 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11848 <div style="height: 150px;">Image5.svg</div>
11849 <div class="gallerytext">
11850 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11854 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11855 <div style="height: 150px;">* image6</div>
11856 <div class="gallerytext">
11864 Gallery (with options)
11866 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11867 File:Nonexistant.jpg|caption
11868 File:Nonexistant.jpg
11869 image:foobar.jpg|some '''caption''' [[Main Page]]
11871 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11874 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11875 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11876 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11877 <div style="height: 70px;">Nonexistant.jpg</div>
11878 <div class="gallerytext">
11883 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11884 <div style="height: 70px;">Nonexistant.jpg</div>
11885 <div class="gallerytext">
11888 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11889 <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>
11890 <div class="gallerytext">
11891 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11895 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11896 <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>
11897 <div class="gallerytext">
11900 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11901 <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>
11902 <div class="gallerytext">
11912 Gallery with wikitext inside caption
11915 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11916 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11919 <ul class="gallery">
11920 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11921 <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>
11922 <div class="gallerytext">
11923 <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>
11927 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11928 <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>
11929 <div class="gallerytext">
11930 <p>This is a test template
11939 gallery (with showfilename option)
11941 <gallery showfilename>
11942 File:Nonexistant.jpg|caption
11943 File:Nonexistant.jpg
11944 image:foobar.jpg|some '''caption''' [[Main Page]]
11948 <ul class="gallery">
11949 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11950 <div style="height: 150px;">Nonexistant.jpg</div>
11951 <div class="gallerytext">
11952 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11957 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11958 <div style="height: 150px;">Nonexistant.jpg</div>
11959 <div class="gallerytext">
11960 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11964 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11965 <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>
11966 <div class="gallerytext">
11967 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11968 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11972 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11973 <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>
11974 <div class="gallerytext">
11975 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11984 Gallery (with namespace-less filenames)
11987 File:Nonexistant.jpg
11993 <ul class="gallery">
11994 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11995 <div style="height: 150px;">Nonexistant.jpg</div>
11996 <div class="gallerytext">
11999 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12000 <div style="height: 150px;">Nonexistant.jpg</div>
12001 <div class="gallerytext">
12004 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12005 <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>
12006 <div class="gallerytext">
12009 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12010 <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>
12011 <div class="gallerytext">
12019 HTML Hex character encoding (spells the word "JavaScript")
12021 JavaScript
12023 <p>JavaScript
12028 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12032 <p>&#xsee;&#XSEE;
12037 HTML Hex character encoding mixed case
12046 __FORCETOC__ override
12058 ISBN 978-0-1234-56 789
12060 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12065 ISBN followed by 5 spaces
12076 ISBN ISBN 1234567890
12078 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12083 Bug 22905: <abbr> followed by ISBN followed by </a>
12085 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12087 <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>
12096 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12101 Double RFC with a wiki link
12105 <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>
12114 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12119 Centre-aligned image
12121 [[Image:foobar.jpg|centre]]
12123 <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>
12130 [[Image:foobar.jpg|none]]
12132 <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>
12137 Width + Height sized image (using px) (height is ignored)
12139 [[Image:foobar.jpg|640x480px]]
12141 <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>
12146 Width-sized image (using px, no following whitespace)
12148 [[Image:foobar.jpg|640px]]
12150 <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>
12155 Width-sized image (using px, with following whitespace - test regression from r39467)
12157 [[Image:foobar.jpg|640px ]]
12159 <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>
12164 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12166 [[Image:foobar.jpg| 640px]]
12168 <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>
12173 Another italics / bold test
12181 # Note the results may be incorrect, as parserTest output included this:
12182 # XML error: Mismatched tag at byte 6120:
12183 # ...<dd> </dt></dl> </dd...
12191 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12202 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12204 Images with the "|" character in the comment
12206 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12208 <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>
12213 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12215 <html><script>alert(1);</script></html>
12217 <p><html><script>alert(1);</script></html>
12222 HTML with raw HTML ($wgRawHtml==true)
12226 <html><script>alert(1);</script></html>
12228 <p><script>alert(1);</script>
12233 Parents of subpages, one level up
12235 subpage title=[[Subpage test/L1/L2/L3]]
12239 <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>
12245 Parents of subpages, one level up, not named
12247 subpage title=[[Subpage test/L1/L2/L3]]
12251 <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>
12258 Parents of subpages, two levels up
12260 subpage title=[[Subpage test/L1/L2/L3]]
12266 <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
12267 </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>
12272 Parents of subpages, two levels up, without trailing slash or name.
12274 subpage title=[[Subpage test/L1/L2/L3]]
12283 Parents of subpages, two levels up, with lots of extra trailing slashes.
12285 subpage title=[[Subpage test/L1/L2/L3]]
12289 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12294 Subpage test/L1/L2/L3Sibling
12300 Transclusion of a sibling page (one level up)
12302 subpage title=[[Subpage test/L1/L2/L3]]
12311 Transclusion of a child page
12313 subpage title=[[Subpage test/L1/L2]]
12322 Non-transclusion because of too many up levels
12324 subpage title=[[Subpage test/L1/L2/L3]]
12326 {{../../../../More than parent}}
12328 <p>{{../../../../More than parent}}
12333 Definition list code coverage
12339 <dl><dt> title  </dt><dd> def
12340 </dd><dt> title </dt><dd> def
12341 </dd><dt>title</dt><dd> def
12347 Don't fall for the self-closing div
12349 <div>hello world</div/>
12351 <div>hello world</div>
12360 <p>[[:Template:Msg]]
12369 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12373 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12375 Always escape literal '>' in output, not just after '<'
12389 <p>This is a test template
12390 This is a test template
12402 Inclusion of !userCanEdit() content
12406 <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>
12412 Out-of-order TOC heading levels
12421 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12423 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12425 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12426 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12429 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12431 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12432 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12437 <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>
12438 <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>
12439 <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>
12440 <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>
12441 <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>
12442 <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>
12448 ISBN with a dummy number
12458 ISBN with space-delimited number
12462 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12468 ISBN with multiple spaces, no number
12487 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12488 </p><p>ISBN 12345678901
12494 ISBN with trailing year (bug 8110)
12496 ISBN 1-234-56789-0 - 2006
12498 ISBN 1 234 56789 0 - 2006
12500 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12501 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12509 {{anchorencode:foo bar©#%n}}
12511 <p>foo_bar.C2.A9.23.25n
12516 anchorencode trims spaces
12518 {{anchorencode: __pretty__please__}}
12525 anchorencode deals with links
12527 {{anchorencode: [[hello|world]] [[hi]]}}
12534 anchorencode deals with templates
12536 {{anchorencode: {{Foo}} }}
12543 anchorencode encodes like the TOC generator: (bug 18431)
12545 === _ +:.3A%3A&&]] ===
12546 {{anchorencode: _ +:.3A%3A&&]] }}
12549 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12550 <p>.2B:.3A.253A.26.26.5D.5D
12554 # Expected output in the following test is not necessarily expected (there
12555 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12556 # only testing for well-formedness.
12558 Bug 6200: blockquotes and paragraph formatting
12578 Bug 8293: Use of center tag ruins paragraph formatting
12599 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12603 <span><s>x</span></s>
12605 <p><span><s>x</span></s></span>
12610 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12614 <span><s>x</span></s>
12616 <p><span><s>x</s></span><s></s>
12621 ### Language variants related tests
12624 Self-link in language variants
12626 title=[[Dunav]] language=sr
12628 Both [[Dunav]] and [[Дунав]] are names for this river.
12630 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12641 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12643 title=[[Duna]] language=sr
12645 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12647 <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.
12652 Link to pages in language variants
12656 Main Page can be written as [[Маин Паге]]
12658 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12664 Multiple links to pages in language variants
12668 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12670 <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>.
12676 Simple template in language variants
12682 <p>This is a test template
12688 Template with explicit namespace in language variants
12694 <p>This is a test template
12700 Basic test for template parameter in language variants
12704 {{парамтест|param=foo}}
12706 <p>This is a test template with parameter foo
12712 Simple category in language variants
12716 [[Category:МедиаWики Усер'с Гуиде]]
12718 <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>
12735 Don't convert blue categorylinks to another variant (bug 33210)
12739 [[A]][[Category:分类]]
12741 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12746 Stripping -{}- tags (language variants)
12750 Latin proverb: -{Ne nuntium necare}-
12752 <p>Latin proverb: Ne nuntium necare
12758 Prevent conversion with -{}- tags (language variants)
12760 language=sr variant=sr-ec
12762 Latinski: -{Ne nuntium necare}-
12764 <p>Латински: Ne nuntium necare
12770 Prevent conversion of text with -{}- tags (language variants)
12772 language=sr variant=sr-ec
12774 Latinski: -{Ne nuntium necare}-
12776 <p>Латински: Ne nuntium necare
12782 Prevent conversion of links with -{}- tags (language variants)
12784 language=sr variant=sr-ec
12788 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12794 -{}- tags within headlines (within html for parserConvert())
12796 language=sr variant=sr-ec
12800 <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>
12806 Explicit definition of language variant alternatives
12808 language=zh variant=zh-tw
12810 -{zh:China;zh-tw:Taiwan}-, not China
12812 <p>Taiwan, not China
12818 Conversion around HTML tags
12820 language=sr variant=sr-ec
12822 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12823 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12826 <span title="ЛаCтин">ски</span>
12832 Explicit session-wise language variant mapping (A flag and - flag)
12834 language=zh variant=zh-tw
12836 Taiwan is not China.
12837 But -{A|zh:China;zh-tw:Taiwan}- is China,
12838 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12839 and -{China}- is China.
12841 <p>Taiwan is not China.
12842 But Taiwan is Taiwan,
12843 (This should be stripped!)
12844 and China is China.
12849 Explicit session-wise language variant mapping (H flag for hide)
12851 language=zh variant=zh-tw
12853 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12856 <p>(This should be stripped!)
12862 Adding explicit conversion rule for title (T flag)
12864 language=zh variant=zh-tw showtitle
12866 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12869 <p>Should be stripped!
12874 Testing that changing the language variant here in the tests actually works
12876 language=zh variant=zh showtitle
12878 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12881 <p>Should be stripped!
12886 Recursive conversion of alt and title attrs shouldn't clear converter state
12888 language=zh variant=zh-cn showtitle
12890 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12891 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12895 Should be stripped<span title="Exclamation">!</span>
12900 Bug 24072: more test on conversion rule for title
12902 language=zh variant=zh-tw showtitle
12904 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12905 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12908 <p>This should be stripped!
12909 This won't take interferes with the title rule.
12914 Partly disable title conversion if variant == main language code
12916 language=zh variant=zh title=[[ZH]] showtitle
12918 -{T|zh-cn:CN;zh-tw:TW}-
12926 Partly disable title conversion if variant == main language code, more
12928 language=zh variant=zh title=[[ZH]] showtitle
12938 Raw output of variant escape tags (R flag)
12940 language=zh variant=zh-tw
12942 Raw: -{R|zh:China;zh-tw:Taiwan}-
12944 <p>Raw: zh:China;zh-tw:Taiwan
12949 Nested using of manual convert syntax
12951 language=zh variant=zh-hk
12953 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12955 <p>Nested: Hello Hong Kong!
12960 Proper conversion of text in external links
12962 language=sr variant=sr-ec
12964 http://www.google.com
12965 gopher://www.google.com
12966 [http://www.google.com http://www.google.com]
12967 [gopher://www.google.com gopher://www.google.com]
12968 [https://www.google.com irc://www.google.com]
12969 [ftp://www.google.com www.google.com/ftp://dir]
12970 [//www.google.com www.google.com]
12972 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12973 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12974 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12975 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12976 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12977 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12978 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12983 Do not convert roman numbers to language variants
12985 language=sr variant=sr-ec
12989 <p>Фридрих IV је цар.
12994 Unclosed language converter markup "-{"
13005 Don't convert raw rule "-{R|=>}-" to "=>"
13022 Bug 529: Uncovered bullet
13032 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13033 # Templates in Wikipedia rely on this behavior, as tidy has always been
13034 # enabled there. These tests are normally run *without* tidy, so specify the
13035 # full output here.
13036 # To test realistic parsing behavior, apply a tidy-like transformation to both
13037 # the expected output and your parser's output.
13039 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13041 ******* Foo {{bullet}}
13043 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13056 Bug 529: Uncovered table already at line-start
13079 Bug 529: Uncovered bullet in parser function result
13081 * Foo {{lc:{{bullet}} }}
13090 Bug 5678: Double-parsed template argument
13092 {{lc:{{{1}}}|hello}}
13099 Bug 5678: Double-parsed template invocation
13101 {{lc:{{paramtest {{!}} param = hello }} }}
13103 <p>{{paramtest | param = hello }}
13108 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13111 title=[[Main Page]]
13113 {{PRVNÍVELKÉ:ěščř}}
13114 {{prvnívelké:ěščř}}
13134 Morwen/13: Unclosed link followed by heading
13141 <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>
13146 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13153 <h1><span class="mw-headline" id="heading">heading</span></h1>
13158 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13165 <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>
13180 Paragraphs inside divs (no extra line breaks)
13192 Paragraphs inside divs (extra line break on open)
13207 Paragraphs inside divs (extra line break on close)
13222 Paragraphs inside divs (extra line break on open and close)
13239 Nesting tags, paragraphs on lines which begin with <div>
13243 <div></div><strong>A
13252 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13254 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13258 <blockquote>Line one
13260 Line two</blockquote>
13262 <blockquote>Line one
13263 Line two</blockquote>
13268 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13275 Line two</blockquote>
13280 Line two</blockquote>
13285 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13289 <blockquote>Line one
13294 <blockquote>Line one
13302 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13321 Paragraphs inside blockquotes/divs (no extra line breaks)
13323 <blockquote><div>Line one
13325 Line two</div></blockquote>
13327 <blockquote><div>Line one
13328 Line two</div></blockquote>
13333 Paragraphs inside blockquotes/divs (extra line break on open)
13338 Line two</div></blockquote>
13343 Line two</div></blockquote>
13348 Paragraphs inside blockquotes/divs (extra line break on close)
13350 <blockquote><div>Line one
13353 </div></blockquote>
13355 <blockquote><div>Line one
13358 </div></blockquote>
13363 Paragraphs inside blockquotes/divs (extra line break on open and close)
13369 </div></blockquote>
13375 </div></blockquote>
13380 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13382 wgLinkHolderBatchSize=0
13388 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13389 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13390 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13395 Free external link invading image caption
13397 [[Image:Foobar.jpg|thumb|http://x|hello]]
13399 <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>
13404 Bug 15196: localised external link numbers
13408 [http://en.wikipedia.org/]
13410 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13415 Multibyte character in padleft
13417 {{padleft:-Hello|7|Æ}}
13424 Multibyte character in padright
13426 {{padright:Hello-|7|Æ}}
13433 formatdate parser function
13435 {{#formatdate:2009-03-24}}
13437 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13442 formatdate parser function, with default format
13444 {{#formatdate:2009-03-24|mdy}}
13446 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13451 Spacing of numbers in formatted dates
13453 {{#formatdate:January 15}}
13455 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13460 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
13462 language=nl title=[[MediaWiki:Common.css]]
13464 {{#formatdate:2009-03-24|dmy}}
13466 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13479 Edit comment with link
13483 I like the [[Main Page]] a lot
13485 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13489 Edit comment with link and link text
13493 I like the [[Main Page|best pages]] a lot
13495 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13499 Edit comment with link and link text with suffix
13503 I like the [[Main Page|best page]]s a lot
13505 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13509 Edit comment with section link (non-local, eg in history list)
13511 comment title=[[Main Page]]
13513 /* External links */ removed bogus entries
13515 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13519 Edit comment with section link and text before it (non-local, eg in history list)
13521 comment title=[[Main Page]]
13523 pre-comment text /* External links */ removed bogus entries
13525 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>
13529 Edit comment with section link (local, eg in diff view)
13531 comment local title=[[Main Page]]
13533 /* External links */ removed bogus entries
13535 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13539 Edit comment with subpage link (bug 14080)
13543 title=[[Subpage test]]
13545 Poked at a [[/subpage]] here...
13547 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13551 Edit comment with subpage link and link text (bug 14080)
13555 title=[[Subpage test]]
13557 Poked at a [[/subpage|neat little page]] here...
13559 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13563 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13566 title=[[Subpage test]]
13568 Poked at a [[/subpage]] here...
13570 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13574 Edit comment with bare anchor link (local, as on diff)
13578 title=[[Main Page]]
13582 <a href="#section">#section</a>
13586 Edit comment with bare anchor link (non-local, as on history)
13589 title=[[Main Page]]
13593 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13597 Anchor starting with underscore
13601 <p><a href="#_ref">One</a>
13606 Id starting with underscore
13608 <div id="_ref"></div>
13610 <div id="_ref"></div>
13615 Space normalisation on autocomment (bug 22784)
13618 title=[[Main Page]]
13620 /* __hello__world__ */
13622 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13626 percent-encoding and + signs in comments (Bug 26410)
13630 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13632 <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>
13636 Bad images - basic functionality
13645 Bad images - bug 16039: text after bad image disappears
13659 Verify that displaytitle works (bug #22501) no displaytitle
13663 wgAllowDisplayTitle=true
13664 wgRestrictDisplayTitle=false
13666 this is not the the title
13669 <p>this is not the the title
13674 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13679 wgAllowDisplayTitle=true
13680 wgRestrictDisplayTitle=false
13682 this is not the the title
13683 {{DISPLAYTITLE:whatever}}
13686 <p>this is not the the title
13691 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13696 wgAllowDisplayTitle=true
13697 wgRestrictDisplayTitle=true
13699 this is not the the title
13700 {{DISPLAYTITLE:whatever}}
13703 <p>this is not the the title
13708 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13713 wgAllowDisplayTitle=true
13714 wgRestrictDisplayTitle=true
13716 this is not the the title
13717 {{DISPLAYTITLE:screen}}
13720 <p>this is not the the title
13725 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13730 wgAllowDisplayTitle=false
13732 this is not the the title
13733 {{DISPLAYTITLE:screen}}
13736 <p>this is not the the title
13737 <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>
13742 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13747 wgAllowDisplayTitle=false
13749 this is not the the title
13752 <p>this is not the the title
13757 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13762 wgAllowDisplayTitle=true
13763 wgRestrictDisplayTitle=true
13765 this is not the the title
13766 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13768 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13769 <p>this is not the the title
13774 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13779 wgAllowDisplayTitle=true
13780 wgRestrictDisplayTitle=true
13782 this is not the the title
13783 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13785 <span style="color: red;">s</span>creen
13786 <p>this is not the the title
13791 preload: check <noinclude> and <includeonly>
13795 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13801 preload: check <onlyinclude>
13805 Goodbye <onlyinclude>Hello world</onlyinclude>
13811 preload: can pass tags through if we want to
13815 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13817 <includeonly>Hello world</includeonly>
13821 preload: check that it doesn't try to do tricks
13825 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13827 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13831 Play a bit with r67090 and bug 3158
13835 <div style="width:50% !important"> </div>
13836 <div style="width:50% !important"> </div>
13837 <div style="width:50% !important"> </div>
13838 <div style="border : solid;"> </div>
13840 <div style="width:50% !important"> </div>
13841 <div style="width:50% !important"> </div>
13842 <div style="width:50% !important"> </div>
13843 <div style="border : solid;"> </div>
13848 HTML5 data attributes
13850 <span data-foo="bar">Baz</span>
13851 <p data-abc-def_hij="">Quuz</p>
13853 <p><span data-foo="bar">Baz</span>
13855 <p data-abc-def_hij="">Quuz</p>
13860 percent-encoding and + signs in internal links (Bug 26410)
13862 [[User:+%]] [[Page+title%]]
13863 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13864 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13865 [[%33%45]] [[%33%45+]]
13867 <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>
13868 <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>
13869 <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>
13870 <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>
13875 Special characters in embedded file links (bug 27679)
13877 [[File:Contains & ampersand.jpg]]
13878 [[File:Does not exist.jpg|Title with & ampersand]]
13880 <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>
13881 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13887 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13889 Text's been normalized?
13891 <p>Text's been normalized?
13896 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13898 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13900 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13905 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13907 [http://www.example.org/ ideograms]
13909 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13914 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13916 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13918 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13942 Bug 31098 Template which includes system messages which includes the template
13946 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13947 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13952 Bug31490 Turkish: ucfirst 'blah'
13963 Bug31490 Turkish: ucfirst 'ix'
13974 Bug31490 Turkish: lcfirst 'BLAH'
13985 Bug31490 Turkish: ucfırst (with a dotless i)
13991 <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>
13996 Bug31490 ucfırst (with a dotless i) with English language
14002 <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>
14007 Bug 26375: TOC with italics
14009 title=[[Main Page]]
14012 == ''Lost'' episodes ==
14014 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14016 <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>
14019 <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>
14024 Bug 26375: TOC with bold
14026 title=[[Main Page]]
14029 == '''should be bold''' then normal text ==
14031 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14033 <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>
14036 <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>
14041 Bug 33845: Headings become cursive in TOC when they contain an image
14043 title=[[Main Page]]
14046 == Image [[Image:foobar.jpg]] ==
14048 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14050 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14053 <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>
14058 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14060 title=[[Main Page]]
14063 == <blockquote>Quote</blockquote> ==
14065 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14067 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14070 <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>
14075 Unclosed tags in TOC
14077 title=[[Main Page]]
14081 <small>Hanc marginis exiguitas non caperet.</small>
14084 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14086 <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>
14089 <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>
14090 <p><small>Hanc marginis exiguitas non caperet.</small>
14096 Multiple tags in TOC
14099 == <i>Foo</i> <b>Bar</b> ==
14101 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14103 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14105 <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>
14106 <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>
14109 <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>
14110 <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>
14115 Tags with parameters in TOC
14118 == <sup class="in-h2">Hello</sup> ==
14120 == <sup class="a > b">Evilbye</sup> ==
14122 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14124 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14125 <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>
14128 <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>
14129 <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>
14134 span tags with directionality in TOC
14137 == <span dir="ltr">C++</span> ==
14139 == <span dir="rtl">זבנג!</span> ==
14141 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14143 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14145 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14147 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14149 <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>
14150 <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>
14151 <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>
14152 <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>
14153 <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>
14156 <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>
14157 <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>
14158 <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>
14159 <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>
14160 <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>
14167 == {{int:headline_sample}} ==
14171 Bug 32057: Title needed when expanding <h> nodes.
14173 title=[[Main Page]]
14177 <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>
14182 Strip marker in urlencode
14184 {{urlencode:x<nowiki/>y}}
14185 {{urlencode:x<nowiki/>y|wiki}}
14186 {{urlencode:x<nowiki/>y|path}}
14213 Strip marker in formatNum
14215 {{formatnum:1<nowiki/>2}}
14216 {{formatnum:1<nowiki/>2|R}}
14224 Check noCommafy in formatNum
14228 {{formatnum:123456.78}}
14229 {{formatnum:123456.78|NOSEP}}
14237 Strip marker in grammar
14241 {{grammar:elative|foo<nowiki/>bar}}
14248 Strip marker in padleft
14250 {{padleft:|2|x<nowiki/>y}}
14257 Strip marker in padright
14259 {{padright:|2|x<nowiki/>y}}
14266 Strip marker in anchorencode
14268 {{anchorencode:x<nowiki/>y}}
14275 nowiki inside link inside heading (bug 18295)
14277 ==[[foo|x<nowiki>y</nowiki>z]]==
14279 <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>
14284 new support for bdi element (bug 31817)
14286 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14288 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14293 Ignore pipe between table row attributes
14297 |- id=foo | style='color: red'
14305 <tr id="foo" style="color: red">
14312 Gallery override link with WikiLink (bug 34852)
14315 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14318 <ul class="gallery">
14319 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14320 <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>
14321 <div class="gallerytext">
14331 Gallery override link with absolute external link (bug 34852)
14334 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14337 <ul class="gallery">
14338 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14339 <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>
14340 <div class="gallerytext">
14350 Gallery override link with malicious javascript (bug 34852)
14353 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14356 <ul class="gallery">
14357 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14358 <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>
14359 <div class="gallerytext">
14369 Gallery with invalid title as link (bug 43964)
14372 File:foobar.jpg|link=<
14375 <ul class="gallery">
14376 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14377 <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>
14378 <div class="gallerytext">
14386 Language parser function
14395 Padleft and padright as substr
14397 {{padleft:|3|abcde}}
14398 {{padright:|3|abcde}}
14406 Special parser function
14408 {{#special:RandomPage}}
14409 {{#special:BaDtItLe}}
14410 {{#special:Foobar}}
14419 Bug 34939 - Case insensitive link parsing ([HttP://])
14421 [HttP://MediaWiki.Org/]
14423 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14428 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14430 [HttP://MediaWiki.Org/ MediaWiki]
14432 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14437 Bug 34939 - Case insensitive link parsing (HttP://)
14439 HttP://MediaWiki.Org/
14441 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14446 ### Parsoids-specific tests
14447 ### Parsoid-PHP parser incompatibilities
14450 1. SOL-sensitive wikitext tokens as template-args
14452 parsoid=wt2html,wt2wt
14458 <span about="#mwt1" typeof="mw:Transclusion">
14459 </span><ul about="#mwt1"><li>a</li></ul>
14460 <span about="#mwt2" typeof="mw:Transclusion">
14461 </span><ol about="#mwt2"><li>a</li></ol>
14462 <span about="#mwt3" typeof="mw:Transclusion">
14463 </span><dl about="#mwt3"><dd>a</dd></dl>
14466 #### ----------------------------------------------------------------
14467 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14468 #### tags. Parsoid's output for these tags differs from that of the
14470 #### ----------------------------------------------------------------
14473 Ref: 1. ref-location should be replaced with an index span
14478 B <ref name="x">foo</ref>
14481 <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>
14482 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>
14483 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>
14487 Ref: 2. ref-tags with identical names should all get the same index
14491 A <ref name="x">foo</ref>
14494 <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>
14495 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>
14499 Ref: 3. spaces in ref-names should be ignored
14503 A <ref name="x">foo</ref>
14504 B <ref name=" x " />
14507 <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>
14508 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>
14509 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>
14513 Ref: 4. 'constructor' should be accepted as a valid ref-name
14514 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14518 A <ref name="constructor">foo</ref>
14520 <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>
14524 Ref: 5. body should accept generic wikitext
14529 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14534 <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>
14536 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14537 <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>
14542 Ref: 6. indent-pres should not be output in ref-body
14554 <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>
14556 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14557 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14564 Ref: 6. No p-wrapping in ref-body
14583 <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>
14585 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14586 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14600 Ref: 8. transclusion wikitext has lower precedence
14604 A <ref> foo {{echo|</ref> B C}}
14608 <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>
14610 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14611 <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>
14615 Ref: 9. unclosed comments should not leak out of ref-body
14619 A <ref> foo <!--</ref> B C
14623 <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>
14625 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14626 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14630 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14634 A <ref> <b> foo </ref> B C
14638 <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>
14640 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14641 <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>
14645 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14652 <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
14653 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>
14657 Ref: 12. ref-tags act as trailing newline migration barrier
14661 <!--the newline at the end of this line moves out of the p-tag-->a
14663 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14668 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14671 <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>
14672 <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>
14679 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14687 <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
14688 <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>
14692 Ref: 14. A nested ref-tag should be emitted as plain text
14696 <ref>foo <ref>bar</ref> baz</ref>
14700 <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>
14702 <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>
14706 Ref: 15. ref-tags with identical names should get identical indexes
14710 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14711 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14715 <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>
14716 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>
14718 <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>
14722 References: 1. references tag without any refs should be handled properly
14728 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14732 References: 2. references tag with group only outputs references from that group
14736 A <ref group="a">foo</ref>
14737 B <ref group="b">bar</ref>
14739 <references group='a' />
14741 <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>
14742 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>
14744 <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>
14748 References: 3. ref list should be cleared after processing references
14760 <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>
14762 <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>
14764 <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>
14766 <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>
14770 References: 4. only referenced group should be cleared after processing references
14774 A <ref group="a">afoo</ref>
14777 <references group="a"/>
14783 <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>
14784 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>
14786 <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>
14788 <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>
14790 <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>
14794 References: 5. ref tags in references should be processed while ignoring all other content
14799 B <ref name="b">bar</ref>
14802 <ref name="a">foo</ref>
14803 This should just get lost.
14806 <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>
14807 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>
14809 <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>
14813 References: 6. <references /> from a transclusion
14817 {{echo|<references />}}
14819 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
14822 #### ----------------------------------------------------------------
14823 #### The following section of tests are primarily to test
14824 #### wikitext escaping capabilities of Parsoid. Given that
14825 #### escaping can be done any number of ways, the wikitext (input)
14826 #### is always adjusted to reflect how Parsoid adds nowiki
14829 #### We are marking several tests as parsoid-only since the
14830 #### HTML in the result section is different from what the
14831 #### PHP parser generates for it.
14832 #### ----------------------------------------------------------------
14835 #### --------------- Headings ---------------
14837 #### 1. Nested inside html <h1>=foo=</h1>
14838 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14839 #### 3. Nested inside html with wikitext split by html tags
14840 #### 4. No escape needed
14841 #### 5. Empty headings <h1></h1>
14842 #### 6. Heading chars in SOL context
14843 #### ----------------------------------------
14845 Headings: 0. Unnested
14849 <nowiki>=foo=</nowiki>
14851 <nowiki> =foo= </nowiki>
14853 <nowiki>=foo=</nowiki>
14855 =foo''a''<nowiki>=</nowiki>
14857 <p><span typeof="mw:Nowiki">=foo=</span></p>
14859 <p><span typeof="mw:Nowiki"> =foo= </span>
14861 <span typeof="mw:Nowiki">=foo=</span></p>
14863 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14867 Headings: 1. Nested inside html
14871 =<nowiki>=foo=</nowiki>=
14872 ==<nowiki>=foo=</nowiki>==
14873 ===<nowiki>=foo=</nowiki>===
14874 ====<nowiki>=foo=</nowiki>====
14875 =====<nowiki>=foo=</nowiki>=====
14876 ======<nowiki>=foo=</nowiki>======
14878 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14879 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14880 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14881 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14882 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14883 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
14887 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
14892 <nowiki>*bar</nowiki>
14896 <nowiki>=bar=</nowiki>
14904 Headings: 3. Nested inside html with wikitext split by html tags
14908 =='''bold'''<nowiki>foo=</nowiki>=
14910 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
14914 Headings: 4a. No escaping needed (testing just h1 and h2)
14925 =<nowiki>=</nowiki>=
14933 <h1><i>=</i>foo=</h1>
14934 <h1><span typeof="mw:Nowiki">=</span></h1>
14938 Headings: 4b. No escaping needed (inside p-tags)
14953 Headings: 5. Empty headings
14961 =====<nowiki/>=====
14962 ======<nowiki/>======
14973 Headings: 6a. Heading chars in SOL context (with trailing spaces)
14977 <nowiki>=a=</nowiki>
14979 <nowiki>=a= </nowiki>
14981 <nowiki>=a= </nowiki>
14983 <nowiki>=a= </nowiki>
14992 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15020 Headings: 6c. Heading chars in SOL context (leading newline break)
15032 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15036 <!--c0--><nowiki>=a=</nowiki>
15038 <nowiki>=a= </nowiki><!--c2--> <!--c3-->
15040 <p><!--c0-->=a=</p>
15041 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15045 Headings: 6d. Heading chars in SOL context (No escaping needed)
15054 #### --------------- Lists ---------------
15055 #### 0. Outside nests (*foo, etc.)
15056 #### 1. Nested inside html <ul><li>*foo</li></ul>
15057 #### 2. Inside definition lists
15058 #### 3. Only bullets at start should be escaped
15059 #### 4. No escapes needed
15060 #### 5. No unnecessary escapes
15061 #### 6. Escape bullets in SOL position
15062 #### 7. Escape bullets in a multi-line context
15063 #### ----------------------------------------
15066 Lists: 0. Outside nests
15068 <nowiki>*foo</nowiki>
15070 <nowiki>#foo</nowiki>
15078 Lists: 1. Nested inside html
15080 *<nowiki>*foo</nowiki>
15082 *<nowiki>#foo</nowiki>
15084 *<nowiki>:foo</nowiki>
15086 *<nowiki>;foo</nowiki>
15088 #<nowiki>*foo</nowiki>
15090 #<nowiki>#foo</nowiki>
15092 #<nowiki>:foo</nowiki>
15094 #<nowiki>;foo</nowiki>
15116 Lists: 2. Inside definition lists
15118 ;<nowiki>;foo</nowiki>
15120 ;<nowiki>:foo</nowiki>
15122 ;<nowiki>:foo</nowiki>
15125 :<nowiki>:foo</nowiki>
15140 Lists: 3. Only bullets at start of text should be escaped
15142 *<nowiki>*foo*bar</nowiki>
15144 *<nowiki>*foo</nowiki>''it''*bar
15148 <ul><li>*foo<i>it</i>*bar
15154 Lists: 4. No escapes needed
15166 <ul><li><i>foo</i>*bar
15168 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15173 Lists: 5. No unnecessary escapes
15175 * bar <span><nowiki>[[foo]]</nowiki></span>
15177 *=bar <span><nowiki>[[foo]]</nowiki></span>
15179 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15181 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15183 *=bar <span>foo]]</span>=
15187 <ul><li> bar <span>[[foo]]</span>
15189 <ul><li>=bar <span>[[foo]]</span>
15191 <ul><li>[[bar <span>[[foo]]</span>
15193 <ul><li>]]bar <span>[[foo]]</span>
15195 <ul><li>=bar <span>foo]]</span>=
15197 <ul><li> <s></s>: a
15203 Lists: 6. Escape bullets in SOL position
15207 <!--cmt--><nowiki>*foo</nowiki>
15209 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15213 Lists: 7. Escape bullets in a multi-line context
15223 #### --------------- HRs ---------------
15224 #### 1. Single line
15225 #### -----------------------------------
15228 HRs: 1. Single line
15232 ----<nowiki>----</nowiki>
15236 <hr><span typeof="mw:Nowiki">----</span>
15241 #### --------------- Tables ---------------
15242 #### 1a. Simple example
15243 #### 1b. No escaping needed (!foo)
15244 #### 1c. No escaping needed (|foo)
15245 #### 1d. No escaping needed (|}foo)
15247 #### 2a. Nested in td (<td>foo|bar</td>)
15248 #### 2b. Nested in td (<td>foo||bar</td>)
15249 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15251 #### 3a. Nested in th (<th>foo!bar</th>)
15252 #### 3b. Nested in th (<th>foo!!bar</th>)
15253 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15257 #### 4c. No escaping needed
15258 #### --------------------------------------
15261 Tables: 1a. Simple example
15272 Tables: 1b. No escaping needed
15281 Tables: 1c. No escaping needed
15290 Tables: 1d. No escaping needed
15299 Tables: 2a. Nested in td
15304 |<nowiki>foo|bar</nowiki>
15308 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15312 Tables: 2b. Nested in td
15317 |<nowiki>foo||bar</nowiki>
15318 |''it''<nowiki>foo||bar</nowiki>
15322 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15323 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15327 Tables: 2c. Nested in td -- no escaping needed
15335 <table><tbody><tr><td>foo!!bar
15336 </td></tr></tbody></table>
15341 Tables: 3a. Nested in th
15349 <table><tbody><tr><th>foo!bar
15350 </th></tr></tbody></table>
15355 Tables: 3b. Nested in th
15360 !<nowiki>foo!!bar</nowiki>
15364 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15369 Tables: 3c. Nested in th -- no escaping needed
15374 !<nowiki>foo||bar</nowiki>
15378 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15382 Tables: 4a. Escape -
15390 |<nowiki>-bar</nowiki>
15394 <tr><th>-bar</th></tr>
15396 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15400 Tables: 4b. Escape +
15408 |<nowiki>+bar</nowiki>
15412 <tr><th>+bar</th></tr>
15414 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15418 Tables: 4c. No escaping needed
15432 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15433 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15437 ### SSS FIXME: Disabled right now because accurate html2wt
15438 ### on this snippet requires data-parsoid flags that we've
15439 ### stripped out of these tests. We should scheme how we
15440 ### we want to handle these kind of tests that require
15441 ### data-parsoid flags for accurate html2wt serialization
15444 Tables: 4d. No escaping needed
15462 #### --------------- Links ----------------
15463 #### 1. Quote marks in link text
15464 #### 2. Wikilinks: Escapes needed
15465 #### 3. Wikilinks: No escapes needed
15466 #### 4. Extlinks: Escapes needed
15467 #### 5. Extlinks: No escapes needed
15468 #### --------------------------------------
15470 Links 1. Quote marks in link text
15474 [[Foo|<nowiki>Foo''boo''</nowiki>]]
15476 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15480 Links 2. WikiLinks: Escapes needed
15484 [[Foo|<nowiki>[Foobar]</nowiki>]]
15485 [[Foo|<nowiki>Foobar]</nowiki>]]
15486 [[Foo|x [Foobar] x]]
15487 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15488 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15489 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15490 [[Foo|<nowiki>|Bar</nowiki>]]
15491 [[Foo|<nowiki>]]bar</nowiki>]]
15492 [[Foo|<nowiki>[[bar</nowiki>]]
15493 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15495 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15496 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15497 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15498 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15499 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15500 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15501 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15502 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15503 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15504 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15508 Links 3. WikiLinks: No escapes needed
15515 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15516 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15520 Links 4. ExtLinks: Escapes needed
15524 [http://google.com <nowiki>[google]</nowiki>]
15525 [http://google.com <nowiki>google]</nowiki>]
15527 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15528 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15532 Links 5. ExtLinks: No escapes needed
15536 [http://google.com [google]
15538 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15541 #### --------------- Quotes ---------------
15542 #### 1. Quotes inside <b> and <i>
15543 #### 2. Link fragments separated by <i> and <b> tags
15544 #### 3. Link fragments inside <i> and <b>
15545 #### --------------------------------------
15547 1. Quotes inside <b> and <i>
15549 ''<nowiki>'foo'</nowiki>''
15550 ''<nowiki>''foo''</nowiki>''
15551 ''<nowiki>'''foo'''</nowiki>''
15552 ''foo''<nowiki>'s</nowiki>
15553 '''<nowiki>'foo'</nowiki>'''
15554 '''<nowiki>''foo''</nowiki>'''
15555 '''<nowiki>'''foo'''</nowiki>'''
15556 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15557 '''foo'''<nowiki>'s</nowiki>
15566 <b>foo'<i>bar'</i>baz</b>
15572 2. Link fragments separated by <i> and <b> tags
15574 [[''foo''<nowiki>hello]]</nowiki>
15576 [['''foo'''<nowiki>hello]]</nowiki>
15578 <p>[[<i>foo</i>hello]]
15579 </p><p>[[<b>foo</b>hello]]
15584 2. Link fragments inside <i> and <b>
15585 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15586 this is one of the shortcomings of this format)
15588 ''[[foo''<nowiki>]]</nowiki>
15590 '''[[foo'''<nowiki>]]</nowiki>
15593 </p><p><b>[[foo</b>]]
15597 #### ----------- Paragraphs ---------------
15598 #### 1. No unnecessary escapes
15599 #### --------------------------------------
15602 1. No unnecessary escapes
15604 bar <span><nowiki>[[foo]]</nowiki></span>
15606 =bar <span><nowiki>[[foo]]</nowiki></span>
15608 [[bar <span><nowiki>[[foo]]</nowiki></span>
15610 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15612 =bar <span>foo]]</span><nowiki>=</nowiki>
15614 <p>bar <span>[[foo]]</span>
15615 </p><p>=bar <span>[[foo]]</span>
15616 </p><p>[[bar <span>[[foo]]</span>
15617 </p><p>]]bar <span>[[foo]]</span>
15618 </p><p>=bar <span>foo]]</span>=
15622 #### ----------------------- PRE --------------------------
15623 #### 1. Leading whitespace in SOL context should be escaped
15624 #### ------------------------------------------------------
15626 1. Leading whitespace in SOL context should be escaped
15630 <nowiki> a</nowiki>
15632 <nowiki> a</nowiki>
15634 <nowiki> a(tab)</nowiki>
15636 <nowiki> a</nowiki>
15638 <nowiki> a</nowiki>
15653 <p><!--cmt--> a</p>
15662 #### --------------- HTML tags ---------------
15665 #### 3. multi-line html tag
15666 #### -----------------------------------------
15672 <a href="http://google.com">google</a>
15674 <a href="http://google.com">google</a>
15680 <nowiki><div>foo</div>
15681 <div style="color:red">foo</div></nowiki>
15683 <p><div>foo</div>
15684 <div style="color:red">foo</div>
15689 3. multi-line html tag
15704 <nowiki><ref>foo</ref></nowiki>
15706 <p><ref>foo</ref>
15710 #### --------------- Others ---------------
15714 <nowiki>foo</nowiki>
15716 <p><nowiki>foo</nowiki>
15721 Tag-like HTML structures are passed through as text
15743 </p><p>1<d e>f
15748 # This fails in the PHP parser (see bug 40670,
15749 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15751 Tag names followed by punctuation should not be recognized as tags
15757 <p><s.ome> text
15762 HTML tag with necessary entities in attributes
15764 <span title="&amp;">foo</span>
15766 <p><span title="&amp;">foo</span>
15771 HTML tag with 'unnecessary' entity encoding in attributes
15773 <span title="&">foo</span>
15775 <p><span title="&">foo</span>
15780 HTML tag with broken attribute value quoting
15782 <span title="Hello world>Foo</span>
15784 <p><span>Foo</span>
15789 Parsoid-only: HTML tag with broken attribute value quoting
15793 <span title="Hello world>Foo</span>
15795 <p><span title="Hello world">Foo</span>
15800 Table with broken attribute value quoting
15803 | title="Hello world|Foo
15814 Table with broken attribute value quoting on consecutive lines
15817 | title="Hello world|Foo
15818 | style="color:red|Bar
15831 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15836 | title="Hello world|Foo
15837 | style="color:red|Bar
15842 <td title="Hello world">Foo
15843 </td><td style="color: red">Bar
15844 </td></tr></tbody></table>
15849 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15859 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15869 Accept empty td cell attribute
15872 | align="center" | foo || |
15877 <td align="center"> foo </td>
15884 Non-empty attributes in th-cells
15887 ! Foo !! style="color: red" | Bar
15893 <th style="color: red"> Bar
15899 Accept empty attributes in th-cells
15914 Empty table rows go away
15935 ### Parsoid-centric tests for testing RTing of inter-element separators
15936 ### Edge cases not tested by existing parser tests and specific to
15937 ### Parsoid-specific serialization strategies.
15941 RT-ed inter-element separators should be valid separators
15954 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
15955 (Parsoid-only since PHP parser relies on Tidy for correct output)
15971 Empty TD followed by TD with tpl-generated attribute
15976 |{{echo|style='color:red'}}|foo
15990 Indented table with an empty td
16009 Empty TR followed by a template-generated TR
16010 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16012 parsoid=wt2html,wt2wt
16016 {{echo|<tr><td>foo</td></tr>}}
16022 <tr typeof="mw:Transclusion">
16023 <td>foo</td></tr></tbody></table>
16026 ## PHP and parsoid output differ for this, and since this is primarily
16027 ## for testing Parsoid's serializer, marking this Parsoid only
16029 Empty TR followed by mixed-ws-comment line should RT correctly
16043 <td> <!--c--></td></tr>
16045 <td><!--c--> <!--d--></td></tr>
16051 Multi-line image caption generated by templates with/without trailing newlines
16055 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16056 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16058 <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>
16059 <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>
16063 ## PHP emits broken html for this, and since this is primarily
16064 ## a Parsoid serializer test, marking this Parsoid only
16066 Improperly nested inline or quotes tags with whitespace in between
16070 <span> <s>x</span> </s>
16073 <p><span> <s>x</s></span><s> </s>
16074 <b> <i>x</i></b><i> </i>
16078 # -----------------------------------------------------------------
16079 # The following section of tests are primarily to spec requirements
16080 # around serialization of new/edited content.
16082 # All these tests are marked Parsoid html2wt and html2html only
16083 # ----------------------------------------------------------------
16086 Image: Modifying size of an image
16090 [[Image:Wiki.png|230x230px]]
16092 <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>
16096 Image: New block level image should have \n before and after
16101 [[File:Wiki.png|right|thumb|150x150px]]
16104 <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>
16108 Lists: Add space after bullets
16115 * <span> baz</span>
16120 <li><span> baz</span></li>
16129 Try for 100% code coverage