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 wrapping tests
1123 Block tag on one line
1135 Block tag on both lines
1147 Multiple lines without block tags
1165 Empty lines between lines with block tags
1195 ### Preformatted text
1204 And a [[Main Page|link]]
1210 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1215 Ident preformatting with inline content
1226 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1243 Regression with preformatted in <center>
1256 # Expected output in the following test is not really expected (there should be
1257 # <pre> in the output) -- it's only testing for well-formedness.
1259 Bug 6200: Preformatted in <blockquote>
1272 <pre> with attributes (bug 3202)
1274 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1276 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1281 <pre> with width attribute (bug 3202)
1283 <pre width="8">Narrow screen goodies</pre>
1285 <pre width="8">Narrow screen goodies</pre>
1290 <pre> with forbidden attribute (bug 3202)
1292 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1294 <pre width="8">Narrow screen goodies</pre>
1299 Entities inside <pre>
1308 <pre> with forbidden attribute values (bug 3202)
1310 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1312 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1317 <nowiki> inside <pre> (bug 13238)
1325 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1333 <pre><nowiki>Foo</nowiki></pre>
1338 <nowiki> and <pre> preference (first one wins)
1369 </pre> inside nowiki
1371 <nowiki></pre></nowiki>
1378 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1386 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1396 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1408 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1429 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1433 {{echo| foo}}{{echo| bar}}
1438 {{echo|<!--cmt--> foo}}
1440 <!--cmt-->{{echo| foo}}
1442 {{echo|{{echo| }}bar}}
1460 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1497 Templates: Single-line variant of parameter whitespace stripping test
1503 {{echo|{{echo| a}}}}
1505 {{echo|1={{echo| a}}}}
1518 Templates: Strip whitespace from named parameters, but not positional ones
1546 Templates: Dont strip whitespace from whitespace/comment-only arguments
1550 {{echo| <!--cmt--> }}
1557 Templates: Parsoid parameter escaping test 1
1561 {{echo|[foo]|{{echo|[bar]}}}}
1563 <p about="#mwt1" typeof="mw:Transclusion"
1564 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1568 Parsoid: Pipes in external links in template parameter
1572 {{echo|[{{echo|http://example.com}} link]}}
1574 <p><a rel="mw:ExtLink" href="http://example.com" about="#mwt31" typeof="mw:Transclusion" data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{echo|http://example.com}} link]"}},"i":0}">link</a></p>
1578 Parsoid: pipe in transclusion parameter
1582 {{echo|http://foo.com/a|b}}
1584 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1585 typeof="mw:Transclusion"
1586 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a|b"}},"i":0}'>http://foo.com/a|b</a></p>
1590 Parsoid: Pipe in external link target and content in template parameter
1592 parsoid=html2wt,wt2wt
1594 {{echo|[http://foo.com/a|b a|b]}}
1596 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1597 typeof="mw:Transclusion"
1598 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1599 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1603 Templates: Dont escape already nowiki-escaped text in template parameters
1605 parsoid=html2wt,wt2wt
1607 {{echo|foo<nowiki>|</nowiki>bar}}
1609 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<nowiki>|</nowiki>bar"}},"i":0}'>foo<span typeof="mw:Nowiki" data-parsoid="{}">|</span>bar</p>
1613 ### Parsoid-centric tests for testing RT edge cases for pre
1617 1a. Indent-Pre and Comments
1630 1b. Indent-Pre and Comments
1643 1c. Indent-Pre and Comments
1656 2a. Indent-Pre and tables
1677 2b. Indent-Pre and tables
1693 2c. Indent-Pre and tables (bug 42252)
1710 3a. Indent-Pre and block tags (single-line html)
1718 <pre><span> foo </span>
1723 3b. Indent-Pre and block tags (pre-content on separate line)
1775 4. Multiple spaces at start-of-line
1794 5. White-space in indent-pre
1795 NOTE: the white-space char on 2nd line is significant
1808 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1812 HTML-pre: 1. embedded newlines
1848 HTML-pre: 2: indented text
1861 HTML-pre: 3: other wikitext
1882 ### Definition lists
1889 <dl><dt> name </dt><dd> Definition
1895 Definition list for indentation only
1899 <dl><dd> Indented text
1905 Definition list with no space
1909 <dl><dt>name</dt><dd>Definition
1915 Definition list with URL link
1917 ; http://example.com/ : definition
1919 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1925 Definition list with bracketed URL link
1927 ;[http://www.example.com/ Example]:Something about it
1929 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1935 Definition list with wikilink containing colon
1937 ; [[Help:FAQ]]: The least-read page on Wikipedia
1939 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1944 # At Brion's and JeLuF's insistence... :)
1946 Definition list with news link containing colon
1948 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1950 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1956 Malformed definition list with colon
1958 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1960 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1966 Definition lists: colon in external link text
1968 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1970 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1976 Definition lists: colon in HTML attribute
1978 ;<b style="display: inline">bold</b>
1980 <dl><dt><b style="display: inline">bold</b>
1986 Definition lists: self-closed tag
1988 ;one<br/>two : two-line fun
1990 <dl><dt>one<br />two </dt><dd> two-line fun
1996 Bug 11748: Literal closing tags
2000 <dd>test test test test test</dd>
2002 <dd>test test test test test</dd>
2007 <dd>test test test test test</dd>
2009 <dd>test test test test test</dd>
2015 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2018 ; term : description
2024 <dl><dt> term </dt><dd> description
2035 Definition list with empty definition and following paragraph
2040 <dl><dt> term</dt><dd>
2047 Nested definition lists using html syntax
2064 Definition Lists: No nesting: Multiple dd's
2078 Definition Lists: Indentation: Regular
2094 Definition Lists: Indentation: Missing 1st level
2108 Definition Lists: Indentation: Multi-level indent
2112 <dl><dd><dl><dd><dl><dd>i3
2120 Definition Lists: Hacky use to indent tables
2127 should be left alone
2129 <dl><dd><dl><dd><table>
2134 </td></tr></table></dd></dl></dd></dl>
2136 should be left alone
2139 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2140 ## as an empty dt item. It also ignores all but the last ";" when followed
2141 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2142 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2145 ## Ex: ";;t2 ::d2" is transformed into:
2157 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2158 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2169 ## All Parsoid only definition list tests have this difference.
2171 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2172 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2175 Table / list interaction: indented table with lists in table contents
2197 </td></tr></table></dd></dl>
2202 Table / list interaction: lists nested in tables nested in indented lists
2227 </td></tr></table></dd></dl>
2235 Definition Lists: Nesting: Multi-level (Parsoid only)
2265 Definition Lists: Nesting: Test 2 (Parsoid only)
2285 Definition Lists: Nesting: Test 3 (Parsoid only)
2313 Definition Lists: Nesting: Test 4
2318 <dl><dd><dl><dd><dl><dt>t3
2327 ## The Parsoid team believes the following three test exposes a
2328 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2329 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2331 Definition Lists: Mixed Lists: Test 1 (php)
2339 <dl><dd><dl><dt><ul><li> foo
2349 Definition Lists: Mixed Lists: Test 1 (parsoid)
2357 <dl><dd><dl><dt><ul><li> foo
2358 </li></ul></dt><dd><ul><li> bar
2359 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2363 Definition Lists: Mixed Lists: Test 2
2377 Definition Lists: Mixed Lists: Test 3
2382 <ul><li><dl><dd><dl><dd><dl><dd> d1
2393 Definition Lists: Mixed Lists: Test 4
2398 <ul><li><dl><dt>d1 </dt><dd>d2
2399 </dd><dt>d3 </dt><dd>d4
2407 Definition Lists: Mixed Lists: Test 5
2422 Definition Lists: Mixed Lists: Test 6
2427 <ol><li><ul><li><dl><dd>d1
2439 Definition Lists: Mixed Lists: Test 7
2453 Definition Lists: Mixed Lists: Test 8
2469 Definition Lists: Mixed Lists: Test 9
2473 <ul><li><dl><dt>foo </dt><dd>bar
2481 Definition Lists: Mixed Lists: Test 10
2485 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2492 # The Parsoid team disagrees with the PHP parser's seemingly-random
2493 # rules regarding dd/dt on the next two tests. Parsoid is more
2494 # consistent, and recognizes the shared nesting and keeps the
2495 # still-open tags around until the nesting is complete.
2498 Definition Lists: Mixed Lists: Test 11 (php)
2505 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2510 <dl><dt>boo </dt><dd>baz
2519 Definition Lists: Mixed Lists: Test 11 (parsoid)
2541 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2542 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2543 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2544 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2549 Definition Lists: Weird Ones: Test 1 (php)
2553 *#;*::;; foo : bar (who uses this?)
2555 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2567 Definition Lists: Weird Ones: Test 1 (parsoid)
2571 *#;*::;; foo : bar (who uses this?)
2588 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2589 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2596 External links: non-bracketed
2598 Non-bracketed: http://example.com
2600 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2605 External links: numbered
2607 Numbered: [http://example.com]
2608 Numbered: [http://example.net]
2609 Numbered: [http://example.com]
2611 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2612 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2613 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2618 External links: specified text
2620 Specified text: [http://example.com link]
2622 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2627 External links: trail
2629 Linktrails should not work for external links: [http://example.com link]s
2631 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2636 External links: dollar sign in URL
2638 http://example.com/1$2345
2640 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2645 External links: dollar sign in URL (named)
2647 [http://example.com/1$2345]
2649 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2654 External links: open square bracket forbidden in URL (bug 4377)
2656 http://example.com/1[2345
2658 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2663 External links: open square bracket forbidden in URL (named) (bug 4377)
2665 [http://example.com/1[2345]
2667 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2672 External links: nowiki in URL link text (bug 6230)
2674 [http://example.com/ <nowiki>''example site''</nowiki>]
2676 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2681 External links: newline forbidden in text (bug 6230 regression check)
2683 [http://example.com/ first
2686 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2692 External links: Pipe char between url and text
2694 [http://example.com | link]
2696 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2701 External links: protocol-relative URL in brackets
2703 [//example.com/ Test]
2705 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2710 External links: protocol-relative URL in brackets without text
2714 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2719 External links: protocol-relative URL in free text is left alone
2723 <p>//example.com/Foo
2728 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2730 foo//example.com/Foo
2732 <p>foo//example.com/Foo
2739 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2741 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2746 External image from https
2748 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2750 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2755 Link to non-http image, no img tag
2757 Link to non-http image, no img tag: ftp://example.com/test.jpg
2759 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2764 External links: terminating separator
2766 Terminating separator: http://example.com/thing,
2768 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2773 External links: intervening separator
2775 Intervening separator: http://example.com/1,2,3
2777 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2782 External links: old bug with URL in query
2784 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2786 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2791 External links: old URL-in-URL bug, mixed protocols
2793 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2795 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2800 External links: URL in text
2802 URL in text: [http://example.com http://example.com]
2804 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2809 External links: Clickable images
2811 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2813 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
2818 External links: raw ampersand
2820 Old & use: http://x&y
2822 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2827 External links: encoded ampersand
2829 Old & use: http://x&y
2831 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2836 External links: encoded equals (bug 6102)
2838 http://example.com/?foo=bar
2840 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2845 External links: [raw ampersand]
2847 Old & use: [http://x&y]
2849 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2854 External links: [encoded ampersand]
2856 Old & use: [http://x&y]
2858 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2863 External links: [encoded equals] (bug 6102)
2865 [http://example.com/?foo=bar]
2867 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2872 External links: [IDN ignored character reference in hostname; strip it right off]
2874 [http://e‌xample.com/]
2876 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2880 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2881 # Where an external link could easily circumvent the sanitization of the text of
2882 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2883 # test demands a higher standard. That's a bit strange.
2887 # http://example.com -> [http://example.com|http://example.com]
2888 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2890 # The first example is sanitized, but the second is not. Any security benefits
2891 # from this production are trivial to circumvent. Either remove this test and
2892 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2893 # the test accordingly.
2898 External links: IDN ignored character reference in hostname; strip it right off
2900 http://e‌xample.com/
2902 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2907 External links: www.jpeg.org (bug 554)
2911 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2916 External links: URL within URL (original bug 2)
2918 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2920 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2925 BUG 361: URL inside bracketed URL
2927 [http://www.example.com/foo http://www.example.com/bar]
2929 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2934 BUG 361: URL within URL, not bracketed
2936 http://www.example.com/foo?=http://www.example.com/bar
2938 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2943 BUG 289: ">"-token in URL-tail
2945 http://www.example.com/<hello>
2947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2952 BUG 289: literal ">"-token in URL-tail
2954 http://www.example.com/<b>html</b>
2956 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2961 BUG 289: ">"-token in bracketed URL
2963 [http://www.example.com/<hello> stuff]
2965 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2970 BUG 289: literal ">"-token in bracketed URL
2972 [http://www.example.com/<b>html</b> stuff]
2974 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2979 BUG 289: literal double quote at end of URL
2981 http://www.example.com/"hello"
2983 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2988 BUG 289: literal double quote in bracketed URL
2990 [http://www.example.com/"hello" stuff]
2992 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2997 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2999 [http://www.example.com test]
3001 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3006 External links: link text with spaces
3008 [http://www.example.com a b c]
3009 [http://www.example.com ''a'' ''b'']
3011 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3012 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3017 External links: wiki links within external link (Bug 3695)
3019 [http://example.com [[wikilink]] embedded in ext link]
3021 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
3026 BUG 787: Links with one slash after the url protocol are invalid
3030 [http:/example.com title]
3032 <p>http:/example.com
3033 </p><p>[http:/example.com title]
3038 Bracketed external links with template-generated invalid target
3040 [{{echo|http:/example.com}} title]
3042 <p>[http:/example.com title]
3047 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3049 ''[http://example.com text'']
3050 [http://example.com '''text]'''
3051 ''Something [http://example.com in italic'']
3052 ''Something [http://example.com mixed''''', even bold]'''
3053 '''''Now [http://example.com both''''']
3055 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3056 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3057 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3058 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3059 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3065 Bug 4781: %26 in URL
3067 http://www.example.com/?title=AT%26T
3069 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3073 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3074 # % is actually legal in HTML5. Any change in output would need testing though.
3076 Bug 4781, 5267: %25 in URL
3078 http://www.example.com/?title=100%25_Bran
3080 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
3085 Bug 4781, 5267: %28, %29 in URL
3087 http://www.example.com/?title=Ben-Hur_%281959_film%29
3089 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
3095 Bug 4781: %26 in autonumber URL
3097 [http://www.example.com/?title=AT%26T]
3099 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3104 Bug 4781, 5267: %26 in autonumber URL
3106 [http://www.example.com/?title=100%25_Bran]
3108 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3113 Bug 4781, 5267: %28, %29 in autonumber URL
3115 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3117 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3123 Bug 4781: %26 in bracketed URL
3125 [http://www.example.com/?title=AT%26T link]
3127 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3132 Bug 4781, 5267: %26 in bracketed URL
3134 [http://www.example.com/?title=100%25_Bran link]
3136 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3141 Bug 4781, 5267: %28, %29 in bracketed URL
3143 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3145 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3150 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3152 Some [http://example.com/ pretty ''italics'' and stuff]!
3154 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3159 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3161 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3163 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
3168 External link containing double-single-quotes with no space separating the url from text in italics
3170 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
3172 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
3177 External link with comments in link text
3179 [http://www.google.com Google <!-- comment -->]
3181 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3186 URL-encoding in URL functions (single parameter)
3188 {{localurl:Some page|amp=&}}
3190 <p>/index.php?title=Some_page&amp=&
3195 URL-encoding in URL functions (multiple parameters)
3197 {{localurl:Some page|q=?&=&}}
3199 <p>/index.php?title=Some_page&q=?&amp=&
3206 http://example.com/index.php?foozoid%5B%5D=bar
3208 http://example.com/index.php?foozoid[]=bar
3210 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
3211 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
3216 IPv6 urls (bug 21261)
3220 http://[2404:130:0:1000::187:2]/index.php
3222 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
3227 Non-extlinks in brackets
3236 [{{echo|foo}} ''bar'']
3237 [{{echo|foo}}l's] errand
3238 [{{echo|foo}}l's errand]
3240 [url=http://example.com]
3253 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3258 Parsoid: Percent encoding in external links
3262 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3264 <p><a rel="mw:ExtLink"
3265 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3269 Parsoid: use url link syntax for links where the content is equal the link
3276 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3286 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3288 Normal text. '''''Bold italic text.''''' Normal text.
3290 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3291 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3297 Unclosed and unmatched quotes (php)
3301 '''''Bold italic text '''with bold deactivated''' in between.'''''
3303 '''''Bold italic text ''with italic deactivated'' in between.'''''
3307 ..spanning two paragraphs (should not work).'''
3309 '''Bold tag left open
3311 ''Italic tag left open
3315 <!-- Unmatching number of opening, closing tags: -->
3316 '''This year''''s election ''should'' beat '''last year''''s.
3318 ''Tom'''s car is bigger than ''Susan'''s.
3320 Plain ''italic'''s plain
3322 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3323 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3324 </p><p><b>Bold text..</b>
3325 </p><p>..spanning two paragraphs (should not work).
3326 </p><p><b>Bold tag left open</b>
3327 </p><p><i>Italic tag left open</i>
3329 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3330 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3331 </p><p>Plain <i>italic'</i>s plain
3334 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3335 # parser strips. The wikitext contains just the first half of the bold
3336 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3337 # differently than the PHP parser.)
3339 Unclosed and unmatched quotes (parsoid)
3343 '''''Bold italic text '''with bold deactivated''' in between.'''''
3345 '''''Bold italic text ''with italic deactivated'' in between.'''''
3349 ..spanning two paragraphs (should not work).'''
3351 '''Bold tag left open
3353 ''Italic tag left open
3357 <!-- Unmatching number of opening, closing tags: -->
3358 '''This year''''s election ''should'' beat '''last year''''s.
3360 ''Tom'''s car is bigger than ''Susan'''s.
3362 Plain ''italic'''s plain
3364 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3365 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3366 </p><p><b>Bold text..</b>
3367 </p><p>..spanning two paragraphs (should not work).<b></b>
3368 </p><p><b>Bold tag left open</b>
3369 </p><p><i>Italic tag left open</i>
3371 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3372 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3373 </p><p>Plain <i>italic'</i>s plain
3380 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3383 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3384 # is the bare minimum required by the spec, see:
3385 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3387 A table with no data. (php)
3394 # Parsoid team replies: empty table tags are legal in HTML5
3396 A table with no data. (parsoid)
3405 # A table with nothing but a caption is invalid XHTML, we might want to render
3406 # this as <p>caption</p>
3408 A table with nothing but a caption (php)
3418 </caption><tr><td></td></tr></table>
3421 # Parsoid team replies: table with only a caption is legal in HTML5
3423 A table with nothing but a caption (parsoid)
3431 <table><caption> caption</caption></table>
3435 A table with caption with default-spaced attributes and a table row
3438 |+ style="color: red;" | caption1
3444 <caption style="color: red;"> caption1
3453 A table with captions with non-default spaced attributes and a table row
3456 |+style="color: red;"|caption2
3457 |+ style="color: red;"| caption3
3463 <caption style="color: red;">caption2
3465 <caption style="color: red;"> caption3
3474 Table td-cell syntax variations
3478 | foo bar foo || baz
3479 | style='color:red;' | baz
3480 | style='color:red;' || baz
3487 <td> foo bar foo </td>
3490 <td style="color:red;"> baz
3492 <td> style='color:red;' </td>
3520 Simple table but with multiple dashes for row wikitext
3538 Multiplication table
3540 {| border="1" cellpadding="2"
3541 |+Multiplication table
3543 ! × !! 1 !! 2 !! 3
3561 <table border="1" cellpadding="2">
3562 <caption>Multiplication table
3609 Accept "||" in table headings
3624 Accept "||" in indented table headings
3634 </th></tr></table></dd></dl>
3639 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3656 Accept "| !" at start of line in tables (ignore !-attribute)
3660 | !style="color:red" | bar
3672 Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/-
3676 |style='color:red;'|+1
3677 |style='color:blue;'|-1
3689 <td style="color:red;">+1
3691 <td style="color:blue;">-1
3715 |rowspan=2| Cell 2, row 1 (and 2)
3726 <td rowspan="2"> Cell 2, row 1 (and 2)
3744 {| bgcolor=#ABCDEF border=2
3749 |the original table again
3757 <table bgcolor="#ABCDEF" border="2">
3765 <td>the original table again
3771 Invalid attributes in table cell (bug 1830)
3786 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3789 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3793 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3794 <td>]" onmouseover="alert(document.cookie)">test
3803 Indented table markup mixed with indented pre content (proposed in bug 6200)
3808 Text that should be rendered preformatted
3816 <pre>Text that should be rendered preformatted
3825 Template-generated table cell attributes and cell content
3833 <td style="color: red"> Foo
3839 Table with row followed by newlines and table heading
3857 Table with empty line following the start tag
3874 # FIXME: Preserve the attribute properly (with an empty string as value) in
3875 # the PHP parser. Parsoid implements the behavior below.
3877 Table attributes with empty value
3889 </td></tr></tbody></table>
3894 Wikitext table with a lot of comments
3917 Wikitext table with double-line table cell
3934 Table cell with a single comment
3950 # The expected HTML structure in this test is debatable. The PHP parser does
3951 # not parse this kind of table at all. The main focus for Parsoid is on
3952 # round-tripping, so this output is ok for now. TODO: revisit!
3954 Wikitext table with html-syntax row (Parsoid)
3966 <td>foo</td></tr></tbody></table>
3970 Implicit <td> after a |-
3971 (PHP parser relies on Tidy to add the missing <td> tags)
3973 parsoid=wt2html,wt2wt
3986 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
3987 (PHP parser relies on Tidy to add the missing <td> tags)
3989 parsoid=wt2html,wt2wt
4001 <tr><td><pre>a</pre></td></tr>
4002 <tr><td> b</td></tr>
4008 Lists should be recognized in an implicit <td> context
4009 (PHP parser relies on Tidy to add the missing <td> tags)
4011 parsoid=wt2html,wt2wt
4020 <td><ul><li>a</li></ul></td>
4029 Plain link, capitalized
4033 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4038 Plain link, uncapitalized
4042 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4049 [[Main Page|The Main Page]]
4051 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4056 Piped link with comment in link text
4058 [[Main Page|The Main<!--front--> Page]]
4060 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4069 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4074 Broken link with fragment
4076 [[Zigzagzogzagzig#zug]]
4078 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4083 Special page link with fragment
4085 [[Special:Version#anchor]]
4087 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4092 Nonexistent special page link with fragment
4094 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4096 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4103 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4105 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4112 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4114 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
4125 Bug 43661: Piped links with identical prefixes
4127 [[prefixed article|prefixed articles with spaces]]
4129 [[prefixed article|prefixed articlesaoeu]]
4131 [[Main Page|Main Page test]]
4133 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4134 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4135 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4141 Link with HTML entity in suffix / tail
4143 [[Main Page]]", [[Main Page]]a
4145 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4150 Link with 3 brackets
4159 Piped link with 3 brackets
4161 [[[main page|the main page]]]
4163 <p>[[[main page|the main page]]]
4168 Link with multiple pipes
4170 [[Main Page|The|Main|Page]]
4172 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4179 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4181 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
4186 Piped link to namespace
4188 [[Meta:Disclaimers|The disclaimers]]
4190 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4197 [[Usually caused by a typo (oops}]]
4199 <p>[[Usually caused by a typo (oops}]]
4204 Link containing % (not as a hex sequence)
4208 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
4213 Link containing % as a single hex sequence interpreted to char
4217 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
4222 Link containing % as a double hex sequence interpreted to hex sequence
4226 <p>[[7%2525 Solution]]
4231 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4232 Example for such a section: == < ==
4234 [[%23%3c]][[%23%3e]]
4236 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4241 Link containing "<#" and ">#" as a hex sequences
4243 [[%3c%23]][[%3e%23]]
4245 <p>[[%3c%23]][[%3e%23]]
4250 Link containing an equals sign
4252 [[Special:BookSources/isbn=4-00-026157-6]]
4254 <p><a href="/wiki/Special:BookSources/isbn%3D4-00-026157-6" title="Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a>
4261 Just a test of an article title containing a tilde.
4264 # note that links containing signatures, like [[Foo~~~~]], are
4265 # massaged by the pre-save transform (PST) and so the tildes are never
4266 # seen by the parser.
4268 Link containing a tilde
4272 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4277 Link containing double-single-quotes '' (bug 4598)
4279 [[Lista d''e paise d''o munno]]
4281 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
4286 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4288 Some [[Link|pretty ''italics'' and stuff]]!
4290 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
4295 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4297 ''Some [[Link|pretty ''italics'' and stuff]]!
4299 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
4304 Link with double quotes in title part (literal) and alternate part (interpreted)
4306 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4310 [[''Pentecoste''|Pentecoste]]
4312 [[''Pentecoste''|''Pentecoste'']]
4314 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
4315 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
4316 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
4317 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
4322 Broken image links with HTML captions (bug 39700)
4324 [[File:Nonexistent|<script></script>]]
4325 [[File:Nonexistent|100px|<script></script>]]
4326 [[File:Nonexistent|<]]
4327 [[File:Nonexistent|a<i>b</i>c]]
4329 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4330 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4331 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4332 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4339 [[http://www.example.com]]
4341 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4346 Plain link to URL with link text
4348 [[http://www.example.com Link text]]
4350 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4355 Plain link to protocol-relative URL
4357 [[//www.example.com]]
4359 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4364 Plain link to protocol-relative URL with link text
4366 [[//www.example.com Link text]]
4368 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4373 Plain link to page with question mark in title
4379 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4380 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4385 # I'm fairly sure the expected result here is wrong.
4386 # We want these to be URL links, not pseudo-pages with URLs for titles....
4387 # However the current output is also pretty screwy.
4390 # I'm changing it to match the current output--it arguably makes more
4391 # sense in the light of the test above. Old expected result was:
4392 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4394 # But I think this test is bordering on "garbage in, garbage out" anyway.
4399 Piped link to URL: [[http://www.example.com|an example URL]]
4401 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4406 BUG 2: [[page|http://url/]] should link to page, not http://url/
4408 [[Main Page|http://url/]]
4410 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4415 BUG 337: Escaped self-links should be bold
4419 [[Bug462]] [[Bug462]]
4421 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4426 Self-link to section should not be bold
4430 [[Main Page#section]]
4432 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4443 Self-link to numeric title
4449 <p><strong class="selflink">0</strong>
4454 Link to numeric-equivalent title
4460 <p><a href="/wiki/00" title="00">00</a>
4465 <nowiki> inside a link
4467 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4469 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4474 Non-breaking spaces in title
4476 [[ Main Page ]]
4478 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4483 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4489 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4494 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4500 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4505 Internal link with en linktrail: no apostrophes (bug 27473)
4511 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4516 Internal link with ca linktrail with apostrophes (bug 27473)
4522 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4527 Internal link with kaa linktrail with apostrophes (bug 27473)
4533 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4544 Internal link with is link prefix
4548 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4550 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4561 Internal link with is link trail and link prefix
4565 [[mótmælendatrú|xxx]]ar
4567 mótmælenda[[söfnuður]]
4568 mótmælenda[[söfnuður|söfnuðir]]
4569 mótmælenda[[söfnuður|söfnuðir]]xxx
4571 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4572 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4573 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4574 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4575 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4580 Parsoid link trail escaping
4582 parsoid=html2wt,html2html
4586 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4590 Parsoid link prefix escaping
4593 parsoid=html2wt,html2html
4595 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4597 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4601 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4609 [http://wp.org ''foo'']
4611 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4612 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4613 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4614 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4619 ### Interwiki links (see maintenance/interwiki.sql)
4623 Inline interwiki link
4625 [[MeatBall:SoftSecurity]]
4627 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4632 Inline interwiki link with empty title (bug 2372)
4636 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4641 Interwiki link encoding conversion (bug 1636)
4643 *[[Wikipedia:ro:Olteniţa]]
4644 *[[Wikipedia:ro:Olteniţa]]
4646 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4647 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4653 Interwiki link with fragment (bug 2130)
4655 [[MeatBall:SoftSecurity#foo]]
4657 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4672 Double interlanguage link
4683 Interlanguage link, with prefix links
4695 Double interlanguage link, with prefix links (bug 8897)
4708 Parsoid-specific test: Wikilinks with should RT properly
4714 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4719 Parsoid: handle constructor well
4727 <p data-parsoid="{"dsr":[0,15,0,0]}"><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"},"dsr":[0,15,2,2]}">constructor</a></p>
4730 <p data-parsoid="{"dsr":[17,36,0,0]}"><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"},"dsr":[17,36,2,2]}">constructor:foo</a></p>
4734 ## Redirects, Parsoid-only
4737 Simple redirect to page
4741 #REDIRECT [[Main Page]]
4743 <link rel="mw:PageProp/redirect" href="./Main_Page">
4747 Redirect to category
4751 #REDIRECT [[Category:Foo]]
4753 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4757 Redirect to category page
4759 parsoid=wt2html,html2html
4761 #REDIRECT [[:Category:Foo]]
4763 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4767 Redirect to image page
4771 #REDIRECT [[File:Wiki.png]]
4773 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4777 Redirect to language
4781 #REDIRECT [[en:File:Wiki.png]]
4783 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4787 Redirect to interwiki
4791 #REDIRECT [[meatball:File:Wiki.png]]
4793 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4810 Broken br tag sanitization
4820 # TODO: Fix html2html mode (bug 51055)!
4822 Parsoid: Broken br tag recognition
4832 Incorrecly removing closing slashes from correctly formed XHTML
4834 <br style="clear:both;" />
4836 <p><br style="clear:both;" />
4841 Failing to transform badly formed HTML into correct XHTML
4843 <br style="clear: left;">
4844 <br style="clear: right;">
4845 <br style="clear: both;">
4847 <p><br style="clear: left;" />
4848 <br style="clear: right;" />
4849 <br style="clear: both;" />
4854 Handling html with a div self-closing tag
4863 <p><div title />
4867 <p><div title=bar />
4868 <div title=bar/>
4870 <div title="bar/"></div>
4876 Handling html with a br self-closing tag
4885 <p><br title="title" />
4886 <br title="title" />
4895 Horizontal ruler (should it add that extra space?)
4909 Horizontal ruler -- 4+ dashes render hr
4918 Horizontal ruler -- eats additional dashes on the same line
4927 Horizontal ruler -- does not collapse dashes on consecutive lines
4938 Horizontal ruler -- <4 dashes render as plain text
4947 Horizontal ruler -- Supports content following dashes on same line
4956 ### Block-level elements
4979 <ol><li>Numbered list
4996 ***#Number on level 4
4998 **#Number on level 3
4999 **#Number on level 3
5003 #** Level 3, but ordered
5006 <ol><li> with numbers
5008 <ul><li> and bullets
5010 <ol><li> and numbers
5012 </li><li>bullets again
5013 <ul><li>bullet level 2
5014 <ul><li>bullet level 3
5015 <ol><li>Number on level 4
5018 </li><li>bullet level 2
5019 <ol><li>Number on level 3
5020 </li><li>Number on level 3
5023 <ol><li>number level 2
5026 <ul><li><ul><li> Level 3
5030 <ol><li><ul><li><ul><li> Level 3, but ordered
5064 Nested lists 3 (first element empty)
5077 Nested lists 4 (first element empty)
5090 Nested lists 5 (both elements empty)
5103 Nested lists 6 (both elements empty)
5116 Nested lists 7 (skip initial nesting levels)
5120 <ul><li><ul><li><ul><li> foo
5128 Nested lists 8 (multiple nesting transitions)
5136 <ul><li><ul><li> bar
5146 1. Lists with start-of-line-transparent tokens before bullets: Comments
5160 2. Lists with start-of-line-transparent tokens before bullets: Template close
5172 Unbalanced closing block tags break a list
5173 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5183 </li></ul></div><div>
5189 Unbalanced closing non-block tags don't break a list
5190 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5200 <ul><li>a<span></span>
5206 Unclosed formatting tags that straddle lists are closed and reopened
5207 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5215 </li><li> <s> b </s>
5220 List embedded in a non-block tag
5221 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5229 <p><small></small></p>
5235 <p><small></small></p>
5239 List items are not parsed correctly following a <pre> block (bug 785)
5245 <ul><li> <pre>foo</pre>
5246 </li><li> <pre>bar</pre>
5253 List items from template
5264 * notSOL{{inner list}}
5283 List interrupted by empty line or heading
5293 <ul><li><ul><li> bar
5296 <h2><span class="mw-headline" id="A_heading">A heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
5297 <ul><li> Another list item
5303 Multiple list tags generated by templates
5318 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5321 <!--This line will NOT split the list-->
5323 <!--This line will NOT split the list either-->
5325 <!--foo--> <!--This line with more than 1 comment will split the list-->
5339 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5341 parsoid=wt2html,wt2wt
5345 * {{echo|<li>templated li-hack}}
5346 * <!--foo--> <li> unsupported li-hack with preceding comments
5349 <li><li>not a li-hack
5355 <li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<li>templated li-hack"}}}'>templated li-hack</li>
5356 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5359 <li></li><li>not a li-hack
5365 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5376 <ol><li> foo<ol><li> bar</li></ol></li></ol><ul><li> foo<ul><li> bar</li></ul></li></ul><dl><dd> foo<dl><dd> bar</dd></dl></dd></dl>
5385 Magic Word: {{CURRENTDAY}}
5394 Magic Word: {{CURRENTDAY2}}
5403 Magic Word: {{CURRENTDAYNAME}}
5412 Magic Word: {{CURRENTDOW}}
5421 Magic Word: {{CURRENTMONTH}}
5430 Magic Word: {{CURRENTMONTHABBREV}}
5432 {{CURRENTMONTHABBREV}}
5439 Magic Word: {{CURRENTMONTHNAME}}
5441 {{CURRENTMONTHNAME}}
5448 Magic Word: {{CURRENTMONTHNAMEGEN}}
5450 {{CURRENTMONTHNAMEGEN}}
5457 Magic Word: {{CURRENTTIME}}
5466 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5475 Magic Word: {{CURRENTYEAR}}
5484 Magic Word: {{FULLPAGENAME}}
5486 title=[[User:Ævar Arnfjörð Bjarmason]]
5490 <p>User:Ævar Arnfjörð Bjarmason
5495 Magic Word: {{FULLPAGENAMEE}}
5497 title=[[User:Ævar Arnfjörð Bjarmason]]
5501 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5506 Magic Word: {{NAMESPACE}}
5508 title=[[User:Ævar Arnfjörð Bjarmason]]
5517 Magic Word: {{NAMESPACEE}}
5519 title=[[User:Ævar Arnfjörð Bjarmason]]
5528 Magic Word: {{NAMESPACENUMBER}}
5530 title=[[User:Ævar Arnfjörð Bjarmason]]
5539 Magic Word: {{NUMBEROFFILES}}
5548 Magic Word: {{PAGENAME}}
5550 title=[[User:Ævar Arnfjörð Bjarmason]]
5554 <p>Ævar Arnfjörð Bjarmason
5559 Magic Word: {{PAGENAME}} with metacharacters
5561 title=[['foo & bar = baz']]
5565 <p><i>'foo & bar = baz'</i>
5570 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5572 title=[[*RFC 1234 http://example.com/]]
5576 <p>*RFC 1234 http://example.com/
5581 Magic Word: {{PAGENAMEE}}
5583 title=[[User:Ævar Arnfjörð Bjarmason]]
5587 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5592 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5594 title=[[*RFC 1234 http://example.com/]]
5598 <p>*RFC_1234_http://example.com/
5603 Magic Word: {{REVISIONID}}
5612 Magic Word: {{SCRIPTPATH}}
5621 Magic Word: {{SERVER}}
5625 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5630 Magic Word: {{SERVERNAME}}
5639 Magic Word: {{SITENAME}}
5648 Case-sensitive magic words, when cased differently, should just be template transclusions
5655 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5656 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5657 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5658 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5663 Case-insensitive magic words should still work with weird casing.
5673 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5678 Namespace 1 {{ns:1}}
5687 Namespace 1 {{ns:01}}
5696 Namespace 0 {{ns:0}} (bug 4783)
5704 Namespace 0 {{ns:00}} (bug 4783)
5712 Namespace -1 {{ns:-1}}
5721 Namespace User {{ns:User}}
5730 Namespace User talk {{ns:User_talk}}
5739 Namespace User talk {{ns:uSeR tAlK}}
5748 Namespace File {{ns:File}}
5757 Namespace File {{ns:Image}}
5766 Namespace (lang=de) Benutzer {{ns:User}}
5777 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5783 <p>Benutzer Diskussion
5791 {{urlencode:hi world?!}}
5792 {{urlencode:hi world?!|WIKI}}
5793 {{urlencode:hi world?!|PATH}}
5794 {{urlencode:hi world?!|QUERY}}
5807 Magic links: internal link to RFC (bug 479)
5811 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5816 Magic links: RFC (bug 479)
5820 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5825 Magic links: ISBN (bug 1937)
5829 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5834 Magic links: PMID incorrectly converts space to underscore
5838 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5847 Nonexistent template
5849 {{thistemplatedoesnotexist}}
5851 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5856 Template with invalid target containing tags
5858 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5860 <p>{{a<b>b</b>|foo|a=b|a = b}}
5865 Template with invalid target containing unclosed tag
5867 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5869 <p>{{a<b>|foo|a=b|a = b}}</b>
5876 This is a test template
5884 <p>This is a test template
5889 Template with explicit namespace
5893 <p>This is a test template
5901 This is a test template with parameter {{{param}}}
5907 {{paramtest|param=foo}}
5909 <p>This is a test template with parameter foo
5914 Template:paramtestnum
5920 Template unnamed parameter
5922 {{paramtestnum|Main Page|the main page}}
5924 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5929 Template:templatesimple
5935 Template:templateredirect
5937 #redirect [[Template:templatesimple]]
5941 Template:templateasargtestnum
5947 Template:templateasargtest
5949 {{template{{{templ}}}}}
5953 Template:templateasargtest2
5959 Template with template name as unnamed argument
5961 {{templateasargtestnum|templatesimple}}
5968 Template with template name as argument
5970 {{templateasargtest|templ=simple}}
5977 Template with template name as argument (2)
5979 {{templateasargtest2|templ=templatesimple}}
5986 Template:templateasargtestdefault
5988 {{{{{templ|templatesimple}}}}}
5998 Template with default value
6000 {{templateasargtestdefault}}
6007 Template with default value (value set)
6009 {{templateasargtestdefault|templ=templa}}
6018 {{templateredirect}}
6025 Template with argument in separate line
6027 {{ templateasargtest |
6035 Template with complex template as argument
6038 param ={{ templateasargtest |
6041 <p>This is a test template with parameter (test)
6046 Template with thumb image (with link in description)
6049 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6051 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
6056 Template:complextemplate
6058 {{{1}}} {{paramtest|
6059 param ={{{param}}}}}
6063 Template with complex arguments
6066 param ={{ templateasargtest |
6067 templ = simple }}|[[Template:complextemplate|link]]}}
6069 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6074 BUG 553: link with two variables in a piped link
6077 |[[{{{1}}}|{{{2}}}]]
6082 <td>[[{{{1}}}|{{{2}}}]]
6088 Magic variable as template parameter
6090 {{paramtest|param={{SITENAME}}}}
6092 <p>This is a test template with parameter MediaWiki
6099 [[{{{param}}}|link]]
6103 Template parameter as link source
6105 {{linktest|param=Main Page}}
6107 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6112 Template-generated attribute string (k='v')
6114 <span {{attr_str|id|v1}}>bar</span>
6116 <p><span id="v1">bar</span>
6123 including another template, {{paramtest|param={{{arg}}}}}
6127 Template passing argument to another template
6129 {{paramtest2|arg='hmm'}}
6131 <p>including another template, This is a test template with parameter 'hmm'
6142 Template as link source
6146 [[{{linktest2}}|Main Page]]
6148 [[{{linktest2}}]]Page
6150 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6151 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6152 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6170 Template infinite loop
6174 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6179 Template from main namespace
6198 BUG 529: Template with table, not included at beginning of line
6217 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6237 BUG 41: Template parameters shown as broken links
6246 Template with targets containing wikilinks
6250 {{[[{{echo|foo}}]]}}
6252 {{{{echo|[[foo}}]]}}
6254 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6255 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6263 ''None'' of '''this''' should be
6265 but rather passed unmodified
6269 # hmm, fix this or just deprecate msgnw and document its behavior?
6275 {{msgnw:MSGNW test}}
6277 <p>''None'' of '''this''' should be
6279 but rather passed unmodified
6287 {{int:youhavenewmessages|lots of money|not!}}
6289 <p>You have lots of money (not!).
6296 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6300 <includeonly> and <noinclude> being included
6311 <onlyinclude>Foo</onlyinclude>bar
6315 <onlyinclude> being included
6327 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6331 <onlyinclude> and <includeonly> being included
6340 <includeonly> and <noinclude> on a page
6342 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6349 Un-closed <noinclude>
6356 <onlyinclude> on a page
6358 <onlyinclude>Foo</onlyinclude>bar
6365 Un-closed <onlyinclude>
6372 Self-closed noinclude, includeonly, onlyinclude tags
6383 Unbalanced includeonly and noinclude tags
6387 |b</noinclude></noinclude>
6388 |c</noinclude></includeonly>
6389 |d</includeonly></includeonly>
6398 <td>c</includeonly>
6400 <td>d</includeonly></includeonly>
6406 Template:Includeonly section
6409 ==Includeonly section==
6415 Bug 6563: Edit link generation for section shown by <includeonly>
6417 {{includeonly section}}
6419 <h2><span class="mw-headline" id="Includeonly_section">Includeonly section</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
6420 <h2><span class="mw-headline" id="Section_T-1">Section T-1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
6424 # Uses same input as the contents of [[Template:Includeonly section]]
6426 Bug 6563: Section extraction for section shown by <includeonly>
6431 ==Includeonly section==
6439 Bug 6563: Edit link generation for section suppressed by <includeonly>
6442 ==Includeonly section==
6446 <h2><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
6451 Bug 6563: Section extraction for section suppressed by <includeonly>
6456 ==Includeonly section==
6464 Un-closed <includeonly>
6471 ### <includeonly> and <noinclude> in attributes
6474 0. includeonly around the entire attribute
6476 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6478 <p><span id="v2">bar</span>
6483 1. includeonly in html attr key
6485 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6487 <p><span id="foo">bar</span>
6492 2. includeonly in html attr value
6494 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6495 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6497 <p><span id="v1">bar</span>
6498 <span id="v1">bar</span>
6503 3. includeonly in part of an attr value
6505 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6507 <p><span style="color:red;">bar</span>
6512 ### Testing parsing of templates where a template arg
6513 ### has the same name as the template itself.
6523 Templates: Template Name/Arg clash: 1. Use of positional param
6532 Templates: Template Name/Arg clash: 2. Use of named param
6541 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6550 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6554 Templates: 1. Simple use
6563 Templates: 2. Inside a block tag
6565 <div>{{echo|Foo}}</div>
6572 Templates: P-wrapping: 1a. Templates on consecutive lines
6583 Templates: P-wrapping: 1b. Templates on consecutive lines
6597 Templates: P-wrapping: 1c. Templates on consecutive lines
6600 {{echo|bar}} <div>baz</div>
6609 Templates: P-wrapping: 1d. Template preceded by comment-only line
6611 parsoid=wt2html,wt2wt
6617 <p typeof="mw:Transclusion">Bar
6622 Templates: Inline Text: 1. Multiple tmeplate uses
6624 {{echo|Foo}}bar{{echo|baz}}
6631 Templates: Inline Text: 2. Back-to-back template uses
6633 {{echo|Foo}}{{echo|bar}}
6640 Templates: Block Tags: 1. Multiple template uses
6642 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6644 <div>Foo</div><div>bar</div><div>baz</div>
6649 Templates: Block Tags: 2. Back-to-back template uses
6651 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6653 <div>Foo</div><div>bar</div>
6658 Templates: Links: 1. Simple example
6660 {{echo|[[Foo|bar]]}}
6662 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6667 Templates: Links: 2. Generation of link href
6669 [[{{echo|Foo}}|bar]]
6671 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6676 Templates: Links: 3. Generation of part of a link href
6678 [[Fo{{echo|o}}|bar]]
6682 [[Foo{{echo|bar}}baz]]
6684 [[Foo{{echo|bar}}|bar]]
6686 [[:Foo{{echo|bar}}]]
6688 [[:Foo{{echo|bar}}|bar]]
6690 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6691 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6692 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6693 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6694 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6695 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6700 Templates: Links: 4. Multiple templates generating link href
6702 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6704 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6709 Templates: Links: 5. Generation of link text
6711 [[Foo|{{echo|bar}}]]
6713 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6718 Templates: Links: 5. Nested templates (only outermost template should be marked)
6720 {{echo|[[{{echo|Foo}}|bar]]}}
6722 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6727 Templates: HTML Tag: 1. Generation of HTML attr. key
6729 <div {{echo|style}}="color:red;">foo</div>
6731 <div style="color:red;">foo</div>
6736 Templates: HTML Tag: 2. Generation of HTML attr. value
6738 <div style={{echo|'color:red;'}}>foo</div>
6740 <div style="color:red;">foo</div>
6745 Templates: HTML Tag: 3. Generation of HTML attr key and value
6747 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6749 <div style="color:red;">foo</div>
6754 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6756 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6758 <div title="This is a long title with just one piece templated">foo</div>
6763 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6765 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6767 <div title="This is a long title with just one piece templated">foo</div>
6772 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6774 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6776 <div title="This is a long title with just one piece templated">foo</div>
6781 Templates: HTML Tag: 7. Generation of partial attribute key string
6783 <div st{{echo|yle}}="color:red;">foo</div>
6785 <div style="color:red;">foo</div>
6790 Templates: HTML Tables: 1. Generating start of a HTML table
6792 {{echo|<table><tr><td>foo</td>}}</tr></table>
6794 <table><tr><td>foo</td></tr></table>
6799 Templates: HTML Tables: 2a. Generating middle of a HTML table
6801 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6803 <table><tr><td>foo</td></tr></table>
6808 Templates: HTML Tables: 2b. Generating middle of a HTML table
6810 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6812 <table><tr><td>foo</td></tr></table>
6817 Templates: HTML Tables: 3. Generating end of a HTML table
6819 <table><tr>{{echo|<td>foo</td></tr></table>}}
6821 <table><tr><td>foo</td></tr></table>
6826 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6828 {{echo|<table>}}<tr><td>foo</td></tr></table>
6830 <table><tr><td>foo</td></tr></table>
6835 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6837 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6839 <table><tr><td>foo</td></tr></table>
6844 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6846 <table><tr>{{echo|<td>}}foo</td></tr></table>
6848 <table><tr><td>foo</td></tr></table>
6853 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6855 <table><tr><td>foo{{echo|</td>}}</tr></table>
6857 <table><tr><td>foo</td></tr></table>
6862 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6864 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6866 <table><tr><td>foo</td></tr></table>
6871 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6873 <table><tr><td>foo</td></tr>{{echo|</table>}}
6875 <table><tr><td>foo</td></tr></table>
6880 Templates: HTML Tables: 5. Proper fostering of categories from inside
6882 parsoid=wt2html,wt2wt
6884 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6885 <!--Two categories (Bug 50330)-->
6886 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6888 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6889 <!--Two categories (Bug 50330)-->
6890 <link rel="mw:WikiLink/Category" href="./Category:Bar1"><link rel="mw:WikiLink/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
6894 Templates: Wiki Tables: 1a. Fostering of entire template content
6902 <tr><td></td></tr></table>
6907 Templates: Wiki Tables: 1b. Fostering of entire template content
6920 <tr><td></td></tr></table>
6925 Templates: Wiki Tables: 2. Fostering of partial template content
6935 <tr><td></td></tr></table>
6940 Templates: Wiki Tables: 3. td-content via multiple templates
6943 {{echo|{{pipe}}a}}{{echo|b}}
6954 Templates: Wiki Tables: 4. Templated tags, no content
6960 <tr><td></td></tr></table>
6965 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6979 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6993 Templates: Lists: Multi-line list-items via templates
6995 *{{echo|a {{nonexistent|
6997 *{{echo|b {{nonexistent|
7000 <ul><li>a <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
7001 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
7007 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7009 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7011 <p><i>ab</i>c<i>d</i>e
7016 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7017 (PHP parser generates misnested html)
7019 parsoid=wt2html,wt2wt
7021 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7023 <p><span typeof="mw:Transclusion"><i>a</i></span><i typeof="mw:Transclusion"><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
7027 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7028 (PHP parser generates misnested html)
7030 parsoid=wt2html,wt2wt
7032 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7034 <div typeof="mw:Transclusion"><i>a</i></div>
7035 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7036 <div typeof="mw:Transclusion">e</div>
7040 Templates: Ugly nesting: 4. Divs opened/closed across templates
7042 a<div>b{{echo|c</div>d}}e
7049 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7055 |{{echo|foo</table>}}
7059 <table typeof="mw:Transclusion">
7062 <td>foo</td></tr></tbody></table><span>bar</span>
7066 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7076 <td>1. {{echo|foo </table>}}</td>
7078 <td>2. {{echo|baz </table>}}</td>
7091 <table about="#mwt1" typeof="mw:Transclusion">
7096 <td >1. foo </td></tr></tbody></table></td>
7098 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7099 </span><span about="#mwt1">
7101 abc</span><span about="#mwt1">
7102 </span><span about="#mwt1">
7103 </span><span about="#mwt1">
7104 </span><span about="#mwt1">
7105 </span><span about="#mwt1">
7107 xyz</span><span about="#mwt1">
7108 </span><span about="#mwt1">
7113 Templates: Ugly templates: 3. newline-only template parameter
7122 # This looks like a bug: a single newline triggers p/br for some reason.
7124 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7135 Parser Functions: 1. Simple example
7144 Parser Functions: 2. Nested use (only outermost should be marked up)
7153 ### Pre-save transform tests
7156 pre-save transform: subst:
7162 This is a test template
7166 pre-save transform: normal template
7176 pre-save transform: nonexistent template
7180 {{thistemplatedoesnotexist}}
7182 {{thistemplatedoesnotexist}}
7187 pre-save transform: subst magic variables
7196 # This is bug 89, which I fixed. -- wtm
7198 pre-save transform: subst: templates with parameters
7202 {{subst:paramtest|param="something else"}}
7204 This is a test template with parameter "something else"
7210 <nowiki>'''not wiki'''</nowiki>
7214 pre-save transform: nowiki in subst (bug 1188)
7218 {{subst:nowikitest}}
7220 <nowiki>'''not wiki'''</nowiki>
7225 Template:commenttest
7227 This template has <!-- a comment --> in it.
7231 pre-save transform: comment in subst (bug 1936)
7235 {{subst:commenttest}}
7237 This template has <!-- a comment --> in it.
7241 pre-save transform: unclosed tag
7245 <nowiki>'''not wiki'''
7247 <nowiki>'''not wiki'''
7251 pre-save transform: mixed tag case
7255 <NOwiki>'''not wiki'''</noWIKI>
7257 <NOwiki>'''not wiki'''</noWIKI>
7261 pre-save transform: unclosed comment in <nowiki>
7265 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7267 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7270 # Leading @ in this template definition works around a limitation
7271 # in parsoid's parserTests which otherwise strips the <span> from the
7272 # result (confusing it for a template wrapper)
7276 @<span onmouseover="alert('crap')">Oh no</span>
7280 (confirming safety of fix for subst bug 1936)
7282 {{Template:dangerous}}
7284 <p>@<span>Oh no</span>
7289 pre-save transform: comment containing gallery (bug 5024)
7293 <!-- <gallery>data</gallery> -->
7295 <!-- <gallery>data</gallery> -->
7299 pre-save transform: comment containing extension
7303 <!-- <tag>data</tag> -->
7305 <!-- <tag>data</tag> -->
7309 pre-save transform: comment containing nowiki
7313 <!-- <nowiki>data</nowiki> -->
7315 <!-- <nowiki>data</nowiki> -->
7319 pre-save transform: <noinclude> in subst (bug 3298)
7329 pre-save transform: <onlyinclude> in subst (bug 3298)
7341 {{<includeonly>subst:</includeonly>Includes}}
7345 Template:SafeSubstTest
7347 {{<includeonly>safesubst:</includeonly>Includes}}
7351 bug 22297: safesubst: works during PST
7355 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7361 bug 22297: safesubst: works during normal parse
7370 subst: does not work during normal parse
7374 <p>{{subst:Includes}}
7379 pre-save transform: context links ("pipe trick")
7383 [[Article (context)|]]
7386 [[Bar:Article (context)|]]
7387 [[:Bar:Article (context)|]]
7389 [[|Article (context)]]
7393 [[Article (context)|Article]]
7394 [[Bar:Article|Article]]
7395 [[:Bar:Article|Article]]
7396 [[Bar:Article (context)|Article]]
7397 [[:Bar:Article (context)|Article]]
7399 [[Article (context)]]
7400 [[Bar:X (Y) Z|X (Y) Z]]
7401 [[:Bar:X (Y) Z|X (Y) Z]]
7405 pre-save transform: context links ("pipe trick") with interwiki prefix
7409 [[interwiki:Article|]]
7410 [[:interwiki:Article|]]
7411 [[interwiki:Bar:Article|]]
7412 [[:interwiki:Bar:Article|]]
7414 [[interwiki:Article|Article]]
7415 [[:interwiki:Article|Article]]
7416 [[interwiki:Bar:Article|Bar:Article]]
7417 [[:interwiki:Bar:Article|Bar:Article]]
7421 pre-save transform: context links ("pipe trick") with parens in title
7423 pst title=[[Somearticle (context)]]
7427 [[Article (context)|Article]]
7431 pre-save transform: context links ("pipe trick") with comma in title
7433 pst title=[[Someplace, Somewhere]]
7436 [[Otherplace, Elsewhere|]]
7437 [[Otherplace, Elsewhere, Anywhere|]]
7439 [[Otherplace, Somewhere|Otherplace]]
7440 [[Otherplace, Elsewhere|Otherplace]]
7441 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7445 pre-save transform: context links ("pipe trick") with parens and comma
7447 pst title=[[Someplace (IGNORED), Somewhere]]
7450 [[Otherplace (place), Elsewhere|]]
7452 [[Otherplace, Somewhere|Otherplace]]
7453 [[Otherplace (place), Elsewhere|Otherplace]]
7457 pre-save transform: context links ("pipe trick") with comma and parens
7459 pst title=[[Who, me? (context)]]
7462 [[Me, Myself, and I (1937 song)|]]
7464 [[Yes, you. (context)|Yes, you.]]
7465 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7469 pre-save transform: context links ("pipe trick") with namespace
7471 pst title=[[Ns:Somearticle]]
7475 [[Ns:Article|Article]]
7479 pre-save transform: context links ("pipe trick") with namespace and parens
7481 pst title=[[Ns:Somearticle (context)]]
7485 [[Ns:Article (context)|Article]]
7489 pre-save transform: context links ("pipe trick") with namespace and comma
7491 pst title=[[Ns:Somearticle, Context, Whatever]]
7495 [[Ns:Article, Context, Whatever|Article]]
7499 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7501 pst title=[[Ns:Somearticle, Context (context)]]
7505 [[Ns:Article (context)|Article]]
7509 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7511 pst title=[[Ns:Somearticle (IGNORED), Context]]
7515 [[Ns:Article, Context|Article]]
7519 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7523 [[Article(context)|]]
7524 [[Bar:Article(context)|]]
7525 [[:Bar:Article(context)|]]
7526 [[|Article(context)]]
7530 [[Article(context)|Article]]
7531 [[Bar:Article(context)|Article]]
7532 [[:Bar:Article(context)|Article]]
7533 [[Article(context)]]
7535 [[:Bar:X(Y)Z|X(Y)Z]]
7539 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7543 [[Article (context)|]]
7544 [[Bar:Article (context)|]]
7545 [[:Bar:Article (context)|]]
7546 [[|Article (context)]]
7550 [[Article (context)|Article]]
7551 [[Bar:Article (context)|Article]]
7552 [[:Bar:Article (context)|Article]]
7553 [[Article (context)]]
7554 [[Bar:X (Y) Z|X (Y) Z]]
7555 [[:Bar:X (Y) Z|X (Y) Z]]
7559 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7563 [[Article(context)|]]
7564 [[Bar:Article(context)|]]
7565 [[:Bar:Article(context)|]]
7566 [[|Article(context)]]
7570 [[Article(context)|Article]]
7571 [[Bar:Article(context)|Article]]
7572 [[:Bar:Article(context)|Article]]
7573 [[Article(context)]]
7575 [[:Bar:X(Y)Z|X(Y)Z]]
7579 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7583 [[Article (context), context|]]
7584 [[Article (context),context|]]
7585 [[Bar:Article (context), context|]]
7586 [[Bar:Article (context),context|]]
7587 [[:Bar:Article (context), context|]]
7588 [[:Bar:Article (context),context|]]
7590 [[Article (context), context|Article]]
7591 [[Article (context),context|Article]]
7592 [[Bar:Article (context), context|Article]]
7593 [[Bar:Article (context),context|Article]]
7594 [[:Bar:Article (context), context|Article]]
7595 [[:Bar:Article (context),context|Article]]
7599 pre-save transform: trim trailing empty lines
7603 Empty lines are trimmed
7609 Empty lines are trimmed
7613 pre-save transform: Signature expansion
7618 * <noinclude>~~~</noinclude>
7619 * <includeonly>~~~</includeonly>
7620 * <onlyinclude>~~~</onlyinclude>
7622 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7623 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7624 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7625 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7630 pre-save transform: Signature expansion in nowiki tags (bug 93)
7636 <nowiki>~~~~</nowiki>
7638 <includeonly><nowiki>~~~~</nowiki></includeonly>
7640 <noinclude><nowiki>~~~~</nowiki></noinclude>
7642 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7644 {{subst:Foo}} shall be converted to FOO
7646 As well as inside noinclude/onlyinclude
7647 <noinclude>{{subst:Foo}}</noinclude>
7648 <onlyinclude>{{subst:Foo}}</onlyinclude>
7650 But not inside includeonly
7651 <includeonly>{{subst:Foo}}</includeonly>
7655 <nowiki>~~~~</nowiki>
7657 <includeonly><nowiki>~~~~</nowiki></includeonly>
7659 <noinclude><nowiki>~~~~</nowiki></noinclude>
7661 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7663 FOO shall be converted to FOO
7665 As well as inside noinclude/onlyinclude
7666 <noinclude>FOO</noinclude>
7667 <onlyinclude>FOO</onlyinclude>
7669 But not inside includeonly
7670 <includeonly>{{subst:Foo}}</includeonly>
7674 ### Message transform tests
7677 message transform: magic variables
7687 message transform: should not transform wiki markup
7697 message transform: <noinclude> in transcluded template (bug 4926)
7707 message transform: <onlyinclude> in transcluded template (bug 4926)
7717 {{#special:}} page name, known
7721 {{#special:Recentchanges}}
7723 Special:RecentChanges
7727 {{#special:}} page name with subpage, known
7731 {{#special:Recentchanges/param}}
7733 Special:RecentChanges/param
7737 {{#special:}} page name, unknown
7741 {{#special:foobar nonexistent}}
7743 Special:Foobar nonexistent
7747 {{#speciale:}} page name, known
7751 {{#speciale:Recentchanges}}
7753 Special:RecentChanges
7757 {{#speciale:}} page name with subpage, known
7761 {{#speciale:Recentchanges/param}}
7763 Special:RecentChanges/param
7767 {{#speciale:}} page name, unknown
7771 {{#speciale:foobar nonexistent}}
7773 Special:Foobar_nonexistent
7782 [[Image:foobar.jpg]]
7784 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7791 [[Image:foobar.jpg|right]]
7793 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7798 Simple image (using File: namespace, now canonical)
7802 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7809 [[Image:foobar.jpg|right|Caption text]]
7811 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7816 Image with empty attribute
7818 [[Image:foobar.jpg|right||Caption text]]
7820 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7825 Image with link tails
7827 123[[Image:foobar.jpg]]456
7828 123[[Image:foobar.jpg|right]]456
7829 123[[Image:foobar.jpg|thumb]]456
7831 <p>123<a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>456
7833 123<div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>456
7834 123<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
7839 Image with multiple captions -- only last one is accepted
7841 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7843 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption3 - accepted"><img alt="Caption3 - accepted" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7848 Image with width attribute at different positions
7850 [[Image:foobar.jpg|200px|right|Caption]]
7851 [[Image:foobar.jpg|right|200px|Caption]]
7852 [[Image:foobar.jpg|right|Caption|200px]]
7854 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7855 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7856 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7861 Image with link parameter, wiki target
7863 [[Image:foobar.jpg|link=Target page]]
7865 <p><a href="/wiki/Target_page" title="Target page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7870 Image with link parameter, URL target
7872 [[Image:foobar.jpg|link=http://example.com/]]
7874 <p><a href="http://example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7879 Image with link parameter, wgExternalLinkTarget
7881 [[Image:foobar.jpg|link=http://example.com/]]
7883 wgExternalLinkTarget='foobar'
7885 <p><a href="http://example.com/" target="foobar" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7890 Image with link parameter, wgNoFollowLinks set to false
7892 [[Image:foobar.jpg|link=http://example.com/]]
7894 wgNoFollowLinks=false
7896 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7901 Image with link parameter, wgNoFollowDomainExceptions
7903 [[Image:foobar.jpg|link=http://example.com/]]
7905 wgNoFollowDomainExceptions='example.com'
7907 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7912 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7914 [[Image:foobar.jpg|link=http://example.com/|Title]]
7916 wgExternalLinkTarget='foobar'
7918 <p><a href="http://example.com/" title="Title" target="foobar" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7923 Image with empty link parameter
7925 [[Image:foobar.jpg|link=]]
7927 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7932 Image with link parameter (wiki target) and unnamed parameter
7934 [[Image:foobar.jpg|link=Target page|Title]]
7936 <p><a href="/wiki/Target_page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7941 Image with link parameter (URL target) and unnamed parameter
7943 [[Image:foobar.jpg|link=http://example.com/|Title]]
7945 <p><a href="http://example.com/" title="Title" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7950 Thumbnail image with link parameter
7954 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7956 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7961 Manually-specified thumbnail image
7965 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7967 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/File:Foobar.jpg"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7972 Manually-specified thumbnail image with explicit link to wiki page
7976 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7978 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7983 Manually-specified thumbnail image with explicit link to url
7987 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7989 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="http://example.com"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7994 Manually-specified thumbnail image with explicit no link
7998 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8000 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8005 Manually-specified thumbnail image with explicit link and alt text
8009 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8011 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="alttext" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8016 Image with frame and link
8018 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8020 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
8025 Image with frame and link and explicit alt
8027 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8029 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
8034 Image with wiki markup in implicit alt
8036 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8038 <p><a href="/wiki/File:Foobar.jpg" class="image" title="testing bold in alt"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8043 Image with wiki markup in explicit alt
8045 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8047 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8052 Link to image page- image page normally doesn't exists, hence edit link
8053 Add test with existing image page
8054 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8058 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8063 bug 18784 Link to non-existent image page with caption should use caption as link text
8065 [[:Image:test|caption]]
8067 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8072 Frameless image caption with a free URL
8074 [[Image:foobar.jpg|http://example.com]]
8076 <p><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8081 Thumbnail image caption with a free URL
8083 [[Image:foobar.jpg|thumb|http://example.com]]
8085 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
8090 Thumbnail image caption with a free URL and explicit alt
8092 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8094 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
8099 SVG thumbnails with no language set
8102 [[File:Foobar.svg|thumb|width=200]]
8104 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
8109 SVG thumbnails with language de
8112 [[File:Foobar.svg|thumb|width=200|lang=de]]
8114 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=File:Foobar.svg&lang=de" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/langde-180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/langde-270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/langde-360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
8119 SVG thumbnails with invalid language code
8122 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8124 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>lang=invalid.language.code</div></div></div>
8129 BUG 1887: A ISBN with a thumbnail
8131 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8133 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
8138 BUG 1887: A RFC with a thumbnail
8140 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8142 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
8147 BUG 1887: A mailto link with a thumbnail
8149 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8151 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
8155 # Pending resolution to bug 368
8157 BUG 648: Frameless image caption with a link
8159 [[Image:foobar.jpg|text with a [[link]] in it]]
8161 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8166 BUG 648: Frameless image caption with a link (suffix)
8168 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8170 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8175 BUG 648: Frameless image caption with an interwiki link
8177 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8179 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8184 BUG 648: Frameless image caption with a piped interwiki link
8186 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8188 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8193 Escape HTML special chars in image alt text
8195 [[Image:foobar.jpg|& < > "]]
8197 <p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8202 BUG 499: Alt text should have Ӓ, not &1234;
8204 [[Image:foobar.jpg|♀]]
8206 <p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8211 Broken image caption with link
8213 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8215 <p>[[Image:Foobar.jpg|thumb|This is a broken caption. But <a href="/wiki/Main_Page" title="Main Page">this</a> is just an ordinary link.
8220 Image caption containing another image
8222 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8224 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
8229 Image caption containing a newline
8231 [[Image:Foobar.jpg|This
8234 <p><a href="/wiki/File:Foobar.jpg" class="image" title="This *is some text"><img alt="This *is some text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8239 Parsoid: Image caption containing leading space
8240 (The leading space should not trigger nowiki escaping in wt2wt mode)
8242 [[Image:Foobar.jpg|thumb| bar]]
8244 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>bar</div></div></div>
8249 Bug 3090: External links other than http: in image captions
8251 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8253 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
8260 [[Image:foobar.jpg|a|class=b]]
8262 <p><a href="/wiki/File:Foobar.jpg" class="image" title="a"><img alt="a" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="b" /></a>
8267 Localized image handling (1).
8271 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8273 <div class="floatleft"><a href="/wiki/Foo" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
8278 Localized image handling (2).
8282 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8284 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
8289 "border", "frameless" and "class" attributes on an image.
8291 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8293 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a>
8300 #REDIRECT [[File:Barfoo.jpg]]
8306 [[Image:Barfoo.jpg]]
8308 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8313 Missing image with uploads disabled
8317 [[Image:Foobaz.jpg]]
8319 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8323 # Parsoid-specific testing for images
8324 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8325 # Currently imperfect due to a flaw in the Parsoid testrunner
8329 Parsoid-specific image handling - simple image
8333 [[Image:Foobar.jpg]]
8336 <span class="mw-default-size" typeof="mw:Image">
8337 <a href="File:Foobar.jpg">
8338 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8345 Parsoid-specific image handling - simple image without link
8349 [[Image:Foobar.jpg|link=]]
8352 <span class="mw-default-size" typeof="mw:Image">
8354 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8361 Parsoid-specific image handling - simple image with specific link
8365 [[Image:Foobar.jpg|link=Main Page]]
8368 <span class="mw-default-size" typeof="mw:Image">
8369 <a href="Main_Page">
8370 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8377 Parsoid-specific image handling - simple image with size and middle alignment
8381 [[Image:Foobar.jpg|50px|middle]]
8384 <span class="mw-valign-middle" typeof="mw:Image">
8385 <a href="File:Foobar.jpg">
8386 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8393 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8397 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8400 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8401 <a href="File:Foobar.jpg">
8402 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8409 Parsoid-specific image handling - simple image with border and size spec
8413 [[Image:Foobar.jpg|50px|border|caption]]
8416 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8417 <a href="File:Foobar.jpg">
8418 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8425 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8429 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8431 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8432 <a href="File:Foobar.jpg">
8433 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8435 <figcaption>caption content</figcaption>
8440 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8444 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8446 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8447 <a href="File:Foobar.jpg">
8448 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8450 <figcaption>caption</figcaption>
8455 Parsoid-specific image handling - framed image with specific size and caption
8459 [[Image:Foobar.jpg|500x50px|frame|caption]]
8461 <figure typeof="mw:Image/Frame">
8462 <a href="File:Foobar.jpg">
8463 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8465 <figcaption>caption</figcaption>
8470 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8474 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8476 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8477 <a href="File:Foobar.jpg">
8478 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8480 <figcaption>caption</figcaption>
8485 Parsoid-specific image handling - frameless image with specific size, border, and caption
8489 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8492 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8493 <a href="File:Foobar.jpg">
8494 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8500 #Parsoid-specific image handling - simple image with a formatted caption
8504 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8507 #<span typeof="mw:Image">
8508 #<a class="mw-default-size" href="Image:Foobar.jpg">
8509 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8520 Subpage test/subpage
8528 subpage title=[[Subpage test]]
8532 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8537 Subpage noslash link
8539 subpage title=[[Subpage test]]
8543 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8547 # TODO: make this PHP-parser compatible!
8549 Relative subpage noslash link
8551 parsoid=wt2wt,wt2html,html2html
8552 subpage title=[[Subpage test/1/2/3/4]]
8558 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8559 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8562 # TODO: make this PHP-parser compatible!
8564 Parsoid: dot-slash prefixed wikilinks
8566 parsoid=wt2wt,wt2html,html2html
8574 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8575 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8576 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8584 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8589 BUG 561: {{/Subpage}}
8591 subpage title=[[Page]]
8595 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8603 Category:MediaWiki User's Guide
8611 [[:Category:MediaWiki User's Guide]]
8613 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8622 [[Category:MediaWiki User's Guide]]
8624 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8628 PAGESINCATEGORY invalid title fatal (r33546 fix)
8630 {{PAGESINCATEGORY:<bogus>}}
8637 Category with different sort key
8641 [[Category:MediaWiki User's Guide|Foo]]
8643 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8647 Category with identical sort key
8651 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8653 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8657 Category with empty sort key
8662 [[Category:MediaWiki User's Guide|]]
8664 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8668 Category with empty sort key and parentheses
8673 [[Category:Foo (bar)|]]
8675 [[Category:Foo (bar)|Foo]]
8679 Category with link tail
8684 123[[Category:Foo]]456
8686 123[[Category:Foo]]456
8690 Category with template
8695 [[Category:{{echo|Foo}}]]
8697 [[Category:{{echo|Foo}}]]
8701 Category with template in sort key
8706 [[Category:Foo|{{echo|Bar}}]]
8708 [[Category:Foo|{{echo|Bar}}]]
8712 Category with template in sort key and title
8717 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8719 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8723 Category / paragraph interactions
8725 Foo [[Category:Baz]] Bar
8727 Foo [[Category:Baz]]
8735 [[Category:Baz]] Bar
8748 {{echo|[[Category:Baz]]}}
8763 Parsoid: Serialize link to category page with colon escape
8769 [[:Category:Foo|Bar]]
8772 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8773 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8778 Parsoid: Serialize link to file page with colon escape
8784 [[:File:Foo.png|Bar]]
8787 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8788 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8793 Parsoid: Serialize a genuine category link without colon escape
8798 [[Category:Foo|Bar]]
8800 <link rel="mw:WikiLink/Category" href="Category:Foo">
8801 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8805 ### Inter-language links
8808 Inter-language links
8814 [[zh:食品]]
8816 es:Alimento fr:Nourriture zh:食品
8820 Duplicate interlanguage links (bug 24502)
8836 Basic section headings
8843 ===Smaller headline===
8846 <h2><span class="mw-headline" id="Headline_1">Headline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
8849 <h2><span class="mw-headline" id="Headline_2">Headline 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
8852 <h3><span class="mw-headline" id="Smaller_headline">Smaller headline</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
8858 Section headings with TOC
8861 === Subheadline 1 ===
8862 ===== Skipping a level =====
8863 ====== Skipping a level ======
8867 ===Another headline===
8869 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8871 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8873 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8875 <li class="toclevel-3 tocsection-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
8877 <li class="toclevel-4 tocsection-4"><a href="#Skipping_a_level_2"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Skipping a level</span></a></li>
8884 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8886 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8891 <h2><span class="mw-headline" id="Headline_1">Headline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
8892 <h3><span class="mw-headline" id="Subheadline_1">Subheadline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
8893 <h5><span class="mw-headline" id="Skipping_a_level">Skipping a level</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a><span class="mw-editsection-bracket">]</span></span></h5>
8894 <h6><span class="mw-headline" id="Skipping_a_level_2">Skipping a level</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
8895 <h2><span class="mw-headline" id="Headline_2">Headline 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
8898 <h3><span class="mw-headline" id="Another_headline">Another headline</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
8902 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8904 Handling of sections up to level 6 and beyond
8907 == Level 2 Heading==
8908 === Level 3 Heading===
8909 ==== Level 4 Heading====
8910 ===== Level 5 Heading=====
8911 ====== Level 6 Heading======
8912 ======= Level 7 Heading=======
8913 ======== Level 8 Heading========
8914 ========= Level 9 Heading=========
8915 ========== Level 10 Heading==========
8917 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8919 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8921 <li class="toclevel-2 tocsection-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
8923 <li class="toclevel-3 tocsection-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
8925 <li class="toclevel-4 tocsection-4"><a href="#Level_4_Heading"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Level 4 Heading</span></a>
8927 <li class="toclevel-5 tocsection-5"><a href="#Level_5_Heading"><span class="tocnumber">1.1.1.1.1</span> <span class="toctext">Level 5 Heading</span></a>
8929 <li class="toclevel-6 tocsection-6"><a href="#Level_6_Heading"><span class="tocnumber">1.1.1.1.1.1</span> <span class="toctext">Level 6 Heading</span></a></li>
8930 <li class="toclevel-6 tocsection-7"><a href="#.3D_Level_7_Heading.3D"><span class="tocnumber">1.1.1.1.1.2</span> <span class="toctext">= Level 7 Heading=</span></a></li>
8931 <li class="toclevel-6 tocsection-8"><a href="#.3D.3D_Level_8_Heading.3D.3D"><span class="tocnumber">1.1.1.1.1.3</span> <span class="toctext">== Level 8 Heading==</span></a></li>
8932 <li class="toclevel-6 tocsection-9"><a href="#.3D.3D.3D_Level_9_Heading.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.4</span> <span class="toctext">=== Level 9 Heading===</span></a></li>
8933 <li class="toclevel-6 tocsection-10"><a href="#.3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.5</span> <span class="toctext">==== Level 10 Heading====</span></a></li>
8946 <h1><span class="mw-headline" id="Level_1_Heading">Level 1 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
8947 <h2><span class="mw-headline" id="Level_2_Heading">Level 2 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
8948 <h3><span class="mw-headline" id="Level_3_Heading">Level 3 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
8949 <h4><span class="mw-headline" id="Level_4_Heading">Level 4 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
8950 <h5><span class="mw-headline" id="Level_5_Heading">Level 5 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h5>
8951 <h6><span class="mw-headline" id="Level_6_Heading">Level 6 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
8952 <h6><span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
8953 <h6><span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
8954 <h6><span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
8955 <h6><span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
8960 TOC regression (bug 9764)
8964 ==== title 1.1.1 ====
8969 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8971 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8973 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
8975 <li class="toclevel-3 tocsection-3"><a href="#title_1.1.1"><span class="tocnumber">1.1.1</span> <span class="toctext">title 1.1.1</span></a></li>
8978 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
8981 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8983 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
8988 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
8989 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
8990 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
8991 <h3><span class="mw-headline" id="title_1.2">title 1.2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
8992 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
8993 <h3><span class="mw-headline" id="title_2.1">title 2.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
8998 TOC with wgMaxTocLevel=3 (bug 6204)
9004 ==== title 1.1.1 ====
9009 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9011 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9013 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
9014 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
9017 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9019 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
9024 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9025 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9026 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
9027 <h3><span class="mw-headline" id="title_1.2">title 1.2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9028 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9029 <h3><span class="mw-headline" id="title_2.1">title 2.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9034 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9040 ====Section 1.1.1====
9041 ====Section 1.1.1.1====
9044 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9046 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9048 <li class="toclevel-2 tocsection-2"><a href="#Section_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Section 1.1</span></a></li>
9051 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9054 <h2><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9055 <h3><span class="mw-headline" id="Section_1.1">Section 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9056 <h4><span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
9057 <h4><span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
9058 <h2><span class="mw-headline" id="Section_2">Section 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9064 Resolving duplicate section names
9069 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9070 <h2><span class="mw-headline" id="Foo_bar_2">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9075 Resolving duplicate section names with differing case (bug 10721)
9080 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9081 <h2><span class="mw-headline" id="Foo_Bar_2">Foo Bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9093 Template with sections, __NOTOC__
9100 <h2><span class="mw-headline" id="Section_0">Section 0</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9101 <h3><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9102 <h2><span class="mw-headline" id="Section_2">Section 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9103 <h2><span class="mw-headline" id="Section_4">Section 4</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9108 __NOEDITSECTION__ keyword
9114 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9115 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9120 Link inside a section heading
9122 ==Section with a [[Main Page|link]] in it==
9124 <h2><span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9129 TOC regression (bug 12077)
9136 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9138 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9140 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
9143 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9146 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9147 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9148 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9153 BUG 1219 URL next to image (good)
9155 http://example.com [[Image:foobar.jpg]]
9157 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9162 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9165 The line above must have a trailing space!
9168 But just in case it doesn't...
9170 <h1><span class="mw-headline" id=".3D">=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
9171 <p>The line above must have a trailing space!
9173 <h1><span class="mw-headline" id=".3D_2">=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
9174 <p>But just in case it doesn't...
9179 Header with special characters (bug 25462)
9181 The tooltips shall not show entities to the user (ie. be double escaped)
9198 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9200 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9202 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9203 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9204 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9205 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9206 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9209 <h2><span class="mw-headline" id="text_.3E_text">text > text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9212 <h2><span class="mw-headline" id="text_.3C_text">text < text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9215 <h2><span class="mw-headline" id="text_.26_text">text & text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9218 <h2><span class="mw-headline" id="text_.27_text">text ' text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9221 <h2><span class="mw-headline" id="text_.22_text">text " text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9227 Headers with excess '=' characters
9228 (Are similar tests necessary beyond the 1st level?)
9232 =''italic'' heading==
9233 ==''italic'' heading=
9235 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9237 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9238 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9239 <li class="toclevel-1 tocsection-3"><a href="#italic_heading.3D"><span class="tocnumber">3</span> <span class="toctext"><i>italic</i> heading=</span></a></li>
9240 <li class="toclevel-1 tocsection-4"><a href="#.3Ditalic_heading"><span class="tocnumber">4</span> <span class="toctext">=<i>italic</i> heading</span></a></li>
9243 <h1><span class="mw-headline" id="foo.3D">foo=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
9244 <h1><span class="mw-headline" id=".3Dfoo">=foo</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
9245 <h1><span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
9246 <h1><span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
9251 HTML headers vs TOC (bug 23393)
9252 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9264 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9266 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9268 <li class="toclevel-2 tocsection-1"><a href="#Header_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Header 1.1</span></a></li>
9269 <li class="toclevel-2 tocsection-2"><a href="#Header_1.2"><span class="tocnumber">1.2</span> <span class="toctext">Header 1.2</span></a></li>
9272 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9274 <li class="toclevel-2 tocsection-3"><a href="#Header_2.1"><span class="tocnumber">2.1</span> <span class="toctext">Header 2.1</span></a></li>
9275 <li class="toclevel-2 tocsection-4"><a href="#Header_2.2"><span class="tocnumber">2.2</span> <span class="toctext">Header 2.2</span></a></li>
9280 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9281 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9282 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9283 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9284 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9285 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9290 BUG 1219 URL next to image (broken)
9292 http://example.com[[Image:foobar.jpg]]
9294 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9299 Bug 1186 news: in the middle of text
9301 http://en.wikinews.org/wiki/Wikinews:Workplace
9303 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9309 Namespaced link must have a title
9318 Namespaced link must have a title (bad fragment version)
9320 [[Project:#fragment]]
9322 <p>[[Project:#fragment]]
9328 ### HTML tags and HTML attributes
9332 div with no attributes
9334 <div>HTML rocks</div>
9336 <div>HTML rocks</div>
9341 div with double-quoted attribute
9343 <div id="rock">HTML rocks</div>
9345 <div id="rock">HTML rocks</div>
9350 div with single-quoted attribute
9352 <div id='rock'>HTML rocks</div>
9354 <div id="rock">HTML rocks</div>
9359 div with unquoted attribute
9361 <div id=rock>HTML rocks</div>
9363 <div id="rock">HTML rocks</div>
9368 div with illegal double attributes
9370 <div id="a" id="b">HTML rocks</div>
9372 <div id="b">HTML rocks</div>
9376 # FIXME: produce empty string instead of "class" in the PHP parser, following
9379 div with empty attribute value, space before equals
9383 <div class =>HTML rocks</div>
9385 <div class="">HTML rocks</div>
9389 # The PHP parser escapes the opening brace to { for some reason, so
9390 # disabled this test for it.
9392 div with braces in attribute value
9396 <div title="{}">Foo</div>
9398 <div title="{}">Foo</div>
9401 # This it very inconsistent in the PHP parser: it returns
9402 # class="class" if there is a space between the name and the equal sign (see
9403 # 'div with empty attribute value, space before equals'), but strips the
9404 # attribute completely if the space is missing. We hope that not much content
9405 # depends on this, so are implementing the behavior below in Parsoid for
9406 # consistencies' sake. Disabled for the PHP parser.
9407 # FIXME: fix this behavior in the PHP parser?
9409 div with empty attribute value, no space before equals
9413 <div class=>HTML rocks</div>
9415 <div class="">HTML rocks</div>
9420 HTML multiple attributes correction
9422 <p class="error" class="awesome">Awesome!</p>
9424 <p class="awesome">Awesome!</p>
9429 Table multiple attributes correction
9432 !+ class="error" class="awesome"| status
9437 <th class="awesome"> status
9445 <DIV ID="x">HTML ROCKS</DIV>
9447 <div id="x">HTML ROCKS</div>
9452 Non-ASCII pseudo-tags are rendered as text
9461 Pseudo-tag with URL 'name' renders as url link
9463 <http://example.com/>
9465 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9470 text with amp in the middle of nowhere
9474 <p>Remember AT&T?
9479 text with character entity: eacute
9481 I always thought é was a cute letter.
9483 <p>I always thought é was a cute letter.
9488 text with entity-escaped character entity-like string: eacute
9490 I always thought &eacute; was a cute letter.
9492 <p>I always thought &eacute; was a cute letter.
9497 text with undefined character entity: xacute
9499 I always thought &xacute; was a cute letter.
9501 <p>I always thought &xacute; was a cute letter.
9507 ### Nesting tests (see bug 41545, 50604, 51081)
9510 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
9511 # Note that html2wt is considerably more difficult if we use <b> in
9512 # the test case, instead of <big>
9514 Ensure that HTML adoption agency algorithm is properly implemented.
9516 <big>X<big>Y</big>Z</big>
9518 <p><big>X<big>Y</big>Z</big>
9522 # This was bug 41545 in the PHP parser.
9526 <kbd>X<kbd>Y</kbd>Z</kbd>
9528 <p><kbd>X<kbd>Y</kbd>Z</kbd>
9532 # The following cases were bug 51081 in the PHP parser.
9533 # Note that there are some other nestable tags (b, i, etc) which are
9534 # not covered; see bug 51081 for discussion.
9538 <em>X<em>Y</em>Z</em>
9540 <p><em>X<em>Y</em>Z</em>
9547 <strong>X<strong>Y</strong>Z</strong>
9549 <p><strong>X<strong>Y</strong>Z</strong>
9558 <p><q>X<q>Y</q>Z</q>
9565 <ruby>X<ruby>Y</ruby>Z</ruby>
9567 <p><ruby>X<ruby>Y</ruby>Z</ruby>
9574 <bdo>X<bdo>Y</bdo>Z</bdo>
9576 <p><bdo>X<bdo>Y</bdo>Z</bdo>
9588 [[Media:Foobar.jpg]]
9590 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9595 Media link with text
9597 [[Media:Foobar.jpg|A neat file to look at]]
9599 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9603 # FIXME: this is still bad HTML tag nesting
9605 Media link with nasty text
9606 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9608 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9610 <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>
9615 Media link to nonexistent file (bug 1702)
9617 [[Media:No such.jpg]]
9619 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9624 Image link to nonexistent file (bug 1850 - good)
9626 [[Image:No such.jpg]]
9628 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9633 :Image link to nonexistent file (bug 1850 - bad)
9635 [[:Image:No such.jpg]]
9637 <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>
9644 Character reference normalization in link text (bug 1938)
9646 [[Main Page|this&that]]
9648 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9655 Test for unicode normalization
9657 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9661 (bug 19451) Links should refer to the normalized form.
9669 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9670 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9671 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9672 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9673 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9678 Empty attribute crash test (bug 2067)
9680 <font color="">foo</font>
9682 <p><font color="">foo</font>
9687 Empty attribute crash test single-quotes (bug 2067)
9689 <font color=''>foo</font>
9691 <p><font color="">foo</font>
9696 Attribute test: equals, then nothing
9698 <font color=>foo</font>
9705 Attribute test: unquoted value
9707 <font color=x>foo</font>
9709 <p><font color="x">foo</font>
9714 Attribute test: unquoted but illegal value (hash)
9716 <font color=#x>foo</font>
9718 <p><font color="#x">foo</font>
9723 Attribute test: no value
9725 <font color>foo</font>
9727 <p><font color="color">foo</font>
9732 Bug 2095: link with three closing brackets
9736 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9741 Bug 2095: link with pipe and three closing brackets
9745 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9750 Bug 2095: link with pipe and three closing brackets, version 2
9752 [[Main Page|[http://example.com/]]]
9754 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9764 Template:Dangerous attribute
9766 " onmouseover="alert(document.cookie)
9770 Template:Dangerous style attribute
9772 border-size: expression(alert(document.cookie))
9778 <div style="float: right; {{{1}}}">Magic div</div>
9782 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9784 <div title="{{test}}"></div>
9786 <div title="This is a test template"></div>
9791 Bug 2304: HTML attribute safety (dangerous template; 2309)
9793 <div title="{{dangerous attribute}}"></div>
9795 <div title=""></div>
9800 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9802 <div style="{{dangerous style attribute}}"></div>
9804 <div style="/* insecure input */"></div>
9809 Bug 2304: HTML attribute safety (safe parameter; 2309)
9811 {{div style|width: 200px}}
9813 <div style="float: right; width: 200px">Magic div</div>
9818 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9820 {{div style|width: expression(alert(document.cookie))}}
9822 <div style="/* insecure input */">Magic div</div>
9827 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9829 {{div style|"><script>alert(document.cookie)</script>}}
9831 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9836 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9838 {{div style|" ><script>alert(document.cookie)</script>}}
9840 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9845 Bug 2304: HTML attribute safety (link)
9847 <div title="[[Main Page]]"></div>
9849 <div title="[[Main Page]]"></div>
9854 Bug 2304: HTML attribute safety (italics)
9856 <div title="''foobar''"></div>
9858 <div title="''foobar''"></div>
9863 Bug 2304: HTML attribute safety (bold)
9865 <div title="'''foobar'''"></div>
9867 <div title="'''foobar'''"></div>
9873 Bug 2304: HTML attribute safety (ISBN)
9875 <div title="ISBN 1234567890"></div>
9877 <div title="ISBN 1234567890"></div>
9882 Bug 2304: HTML attribute safety (RFC)
9884 <div title="RFC 1234"></div>
9886 <div title="RFC 1234"></div>
9891 Bug 2304: HTML attribute safety (PMID)
9893 <div title="PMID 1234567890"></div>
9895 <div title="PMID 1234567890"></div>
9900 Bug 2304: HTML attribute safety (web link)
9902 <div title="http://example.com/"></div>
9904 <div title="http://example.com/"></div>
9909 Bug 2304: HTML attribute safety (named web link)
9911 <div title="[http://example.com/ link]"></div>
9913 <div title="[http://example.com/ link]"></div>
9918 Bug 3244: HTML attribute safety (extension; safe)
9920 <div style="<nowiki>background:blue</nowiki>"></div>
9922 <div style="background:blue"></div>
9927 Bug 3244: HTML attribute safety (extension; unsafe)
9929 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9931 <div style="/* insecure input */"></div>
9935 # More MSIE fun discovered by Tom Gilder
9938 MSIE CSS safety test: spurious slash
9940 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9942 <div style="/* insecure input */">evil</div>
9947 MSIE CSS safety test: hex code
9949 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9951 <div style="/* insecure input */">evil</div>
9956 MSIE CSS safety test: comment in url
9958 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9960 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9965 MSIE CSS safety test: comment in expression
9967 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9969 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9975 Table attribute legitimate extension
9978 !+ style="<nowiki>color:blue</nowiki>"| status
9983 <th style="color:blue"> status
9989 Table attribute safety
9992 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9997 <th style="/* insecure input */"> status
10003 CSS line continuation 1
10005 <div style="background-image: u\ rl(test.jpg);"></div>
10007 <div style="/* insecure input */"></div>
10012 CSS line continuation 2
10014 <div style="background-image: u\ rl(test.jpg); "></div>
10016 <div style="/* insecure input */"></div>
10027 Expansion of multi-line templates in attribute values (bug 6255)
10029 <div style="background: {{identity|#00FF00}}">-</div>
10031 <div style="background: #00FF00">-</div>
10037 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10039 <div style="background:
10042 <div style="background: #00FF00">-</div>
10047 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10049 <div style="background: #00FF00">-</div>
10051 <div style="background: #00FF00">-</div>
10056 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
10059 Parser hook: empty input
10072 Parser hook: empty input using terminated empty elements
10085 Parser hook: empty input using terminated empty elements (space before)
10098 Parser hook: basic input
10112 Parser hook: case insensitive
10126 Parser hook: case insensitive, redux
10139 Parser hook: nested tags
10143 <tag><tag></tag></tag>
10154 Parser hook: basic arguments
10156 <tag width=200 height = "100" depth = '50' square></tag>
10164 'square' => 'square',
10171 Parser hook: argument containing a forward slash (bug 5344)
10173 <tag filename='/tmp/bla'></tag>
10178 'filename' => '/tmp/bla',
10185 Parser hook: empty input using terminated empty elements (bug 2374)
10198 # </tag> should be output literally since there is no matching tag that begins it
10200 Parser hook: basic arguments using terminated empty elements (bug 2374)
10202 <tag width=200 height = "100" depth = '50' square/>
10212 'square' => 'square',
10221 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10225 Parser hook: static parser hook not inside a comment
10227 <statictag>hello, world</statictag>
10228 <statictag action=flush/>
10236 Parser hook: static parser hook inside a comment
10238 <!-- <statictag>hello, world</statictag> -->
10239 <statictag action=flush/>
10245 # Nested template calls; this case was broken by Parser.php rev 1.506,
10249 Template:One-parameter
10251 (My parameter is: {{{1}}})
10255 Template:Map-one-parameter
10257 {{{{{1}}}|{{{2}}}}}
10261 Nested template calls
10263 {{Map-one-parameter|One-parameter|param}}
10265 <p>(My parameter is: param)
10274 Sanitizer: Closing of open tags
10276 <s></s><table></table>
10278 <s></s><table></table>
10283 Sanitizer: Closing of open but not closed tags
10292 Sanitizer: Closing of closed but not open tags
10301 Sanitizer: Closing of closed but not open table tags
10303 Table not started</td></tr></table>
10305 <p>Table not started</td></tr></table>
10310 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10312 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10314 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10319 Sanitizer: Validating the contents of the id attribute (bug 4515)
10325 Something, but definitely not <br id="9" />...
10329 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10333 <br id="foo" /><br id="foo" />
10335 Something need to be done. foo-2 ?
10339 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10342 <meta itemprop="hello" content="world">
10343 <meta http-equiv="refresh" content="5">
10344 <meta itemprop="hello" http-equiv="refresh" content="5">
10345 <link itemprop="hello" href="{{SERVER}}">
10346 <link rel="stylesheet" href="{{SERVER}}">
10347 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10350 <div itemscope="itemscope">
10351 <p> <meta itemprop="hello" content="world" />
10352 <meta http-equiv="refresh" content="5">
10353 <meta itemprop="hello" content="5" />
10355 <link itemprop="hello" href="http://example.org" />
10356 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10357 <link itemprop="hello" href="http://example.org" />
10363 Language converter: output gets cut off unexpectedly (bug 5757)
10367 this bit is safe: }-
10369 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10371 then we get cut off here: }-
10373 all additional text is vanished
10375 <p>this bit is safe: }-
10376 </p><p>but if we add a conversion instance: xxx
10377 </p><p>then we get cut off here: }-
10378 </p><p>all additional text is vanished
10383 Self closed html pairs (bug 5487)
10386 <center><font id="bug" />Centered text</center>
10387 <div><font id="bug2" />In div text</div>
10389 <center><font id="bug" />Centered text</center>
10390 <div><font id="bug2" />In div text</div>
10399 Punctuation: nbsp before exclamation
10403 <p>C'est grave !
10408 Punctuation: CSS !important (bug 11874)
10410 <div style="width:50% !important">important</div>
10412 <div style="width:50% !important">important</div>
10417 Punctuation: CSS ! important (bug 11874; with space after)
10419 <div style="width:50% ! important">important</div>
10421 <div style="width:50% ! important">important</div>
10427 HTML bullet list, closed tags (bug 5497)
10442 HTML bullet list, unclosed tags (bug 5497)
10459 HTML ordered list, closed tags (bug 5497)
10474 HTML ordered list, unclosed tags (bug 5497)
10491 HTML nested bullet list, closed tags (bug 5497)
10516 HTML nested bullet list, open tags (bug 5497)
10541 HTML nested ordered list, closed tags (bug 5497)
10566 HTML nested ordered list, open tags (bug 5497)
10591 HTML ordered list item with parameters oddity
10593 <ol><li id="fragment">One</li></ol>
10595 <ol><li id="fragment">One</li></ol>
10600 bug 5918: autonumbering
10602 [http://first/] [http://second] [ftp://ftp]
10606 [mailto:enclosed@mail.tld With target]
10608 [mailto:enclosed@mail.tld]
10610 mailto:inline@mail.tld
10612 <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>
10613 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10614 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10615 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10616 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10622 # Security and HTML correctness
10623 # From Nick Jenkins' fuzz testing
10627 Fuzz testing: Parser13
10642 Fuzz testing: Parser14
10647 <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>
10648 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10650 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10657 Fuzz testing: Parser14-table
10662 <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>
10663 <table style="__TOC__">
10669 # Known to produce bogus xml (extra </td>)
10671 Fuzz testing: Parser16
10691 Fuzz testing: Parser21
10694 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10699 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10709 Fuzz testing: Parser22
10711 http://===r:::https://b
10715 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10723 # Known to produce bad XML for now
10725 Fuzz testing: Parser24
10732 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10733 <br style="onmouseover='alert(document.cookie);' " />
10735 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10740 <u class="|">}}}} >
10741 <br style="onmouseover='alert(document.cookie);'" />
10743 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10752 # Note: the current result listed for this is not what the original one was,
10753 # but the original bug was JavaScript injection, which is fixed in any case.
10754 # It's not clear that the original result listed was any more correct than the
10755 # current one. Original result:
10758 # <li class="||">
10759 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10761 Fuzz testing: Parser25 (bug 6055)
10767 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10769 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10774 Fuzz testing: URL adjacent extension (with space, clean)
10777 http://example.com <nowiki>junk</nowiki>
10779 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10784 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10787 http://example.com<nowiki>junk</nowiki>
10789 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10794 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10797 http://example.com<pre>junk</pre>
10799 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10804 Fuzz testing: image with bogus manual thumbnail
10806 [[Image:foobar.jpg|thumbnail= ]]
10808 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10813 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10815 <pre dir=" "></pre>
10817 <pre dir=" "></pre>
10822 Parsing optional HTML elements (Bug 6171)
10827 <td> Some tabular data</td>
10828 <td> More tabular data ...
10829 <td> And yet som tabular data</td>
10835 <td> Some tabular data</td>
10836 <td> More tabular data ...
10837 </td><td> And yet som tabular data</td>
10844 Correct handling of <td>, <tr> (Bug 6171)
10849 <td> Some tabular data</td>
10850 <td> More tabular data ...</td>
10851 <td> And yet som tabular data</td>
10857 <td> Some tabular data</td>
10858 <td> More tabular data ...</td>
10859 <td> And yet som tabular data</td>
10867 Parsing crashing regression (fr:JavaScript)
10871 <p></body></x>
10876 Inline wiki vs wiki block nesting
10882 <p><b>Bold paragraph</b>
10883 </p><p>New wiki paragraph
10888 Inline HTML vs wiki block nesting
10896 <p><b>Bold paragraph</b>
10897 </p><p>New wiki paragraph
10901 # Original result was this:
10902 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10904 # While that might be marginally more intuitive, maybe, the six-apostrophe
10905 # construct is clearly pathological and the result stated here (which is what
10906 # the parser actually does) is about as reasonable as anything.
10908 Mixing markup for italics and bold
10911 '''bold''''''bold''bolditalics'''''
10913 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10921 Article for special page transclusion test
10925 Special page transclusion
10928 {{Special:Prefixindex/Xyzzyx}}
10930 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10935 Special page transclusion twice (bug 5021)
10938 {{Special:Prefixindex/Xyzzyx}}
10939 {{Special:Prefixindex/Xyzzyx}}
10941 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10942 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10947 Transclusion of default MediaWiki message
10949 {{MediaWiki:Mainpage}}
10956 Transclusion of nonexistent MediaWiki message
10958 {{MediaWiki:Mainpagexxx}}
10960 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10965 Transclusion of MediaWiki message with underscore
10967 {{MediaWiki:history_short}}
10974 Transclusion of MediaWiki message with space
10976 {{MediaWiki:history short}}
10983 Invalid header with following text
10993 Section extraction test (section 0)
11013 Section extraction test (section 1)
11035 Section extraction test (section 2)
11056 Section extraction test (section 3)
11076 Section extraction test (section 4)
11100 Section extraction test (section 5)
11120 Section extraction test (section 6)
11141 Section extraction test (section 7)
11161 Section extraction test (section 8)
11181 Section extraction test (section 9)
11202 Section extraction test (section 10)
11222 Section extraction test (nonexistent section 11)
11241 Section extraction test with bogus heading (section 1)
11246 ==bogus== not a legal section
11250 ==bogus== not a legal section
11254 Section extraction test with bogus heading (section 2)
11259 ==bogus== not a legal section
11266 Section extraction test with comment after heading (section 1)
11278 Section extraction test with comment after heading (section 2)
11290 Section extraction test with bogus <nowiki> heading (section 1)
11295 ==bogus== <nowiki>not a legal section</nowiki>
11299 ==bogus== <nowiki>not a legal section</nowiki>
11303 Section extraction test with bogus <nowiki> heading (section 2)
11308 ==bogus== <nowiki>not a legal section</nowiki>
11315 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11316 # instead of respecting commented sections
11318 Section extraction prefixed by comment (section 1)
11329 Section extraction prefixed by comment (section 2)
11340 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11341 # instead of respecting HTML-style headings
11343 Section extraction, mixed wiki and html (section 1)
11359 Section extraction, mixed wiki and html (section 2)
11375 # Formerly testing for bug 3342
11377 Section extraction, heading surrounded by <noinclude>
11381 <noinclude>==unmarked==</noinclude>
11387 # Test behavior of bug 19910
11389 Sectiion with all-equals
11394 The line above must have a trailing space
11397 But just in case it doesn't...
11401 But just in case it doesn't...
11405 Section replacement test (section 0)
11436 Section replacement test (section 1)
11465 Section replacement test (section 2)
11495 Section replacement test (section 3)
11526 Section replacement test (section 4)
11553 Section replacement test (section 5)
11584 Section replacement test (section 6)
11614 Section replacement test (section 7)
11645 Section replacement test (section 8)
11676 Section replacement test (section 9)
11705 Section replacement test (section 10)
11735 Section replacement test with initial whitespace (bug 13728)
11739 Preformatted initial line
11743 Preformatted initial line
11750 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11762 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11775 Section extraction, <pre> around bogus header (bug 10309)
11792 Section replacement, <pre> around bogus header (bug 10309)
11794 noxml replace=2,"xxx"
11815 Handling of 
 in URLs
11819 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11826 5 quotes, code coverage +1 line (php)
11833 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11835 5 quotes, code coverage +1 line (parsoid)
11841 <p><i><b></b></i></p>
11845 Special:Search page linking.
11849 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11861 * {{ROOTPAGENAMEE}}
11863 * {{BASEPAGENAMEE}}
11865 * {{TALKPAGENAMEE}}
11866 * {{SUBJECTPAGENAME}}
11867 * {{SUBJECTPAGENAMEE}}
11873 * {{SUBJECTSPACEE}}
11874 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11876 <ul><li> Parser test
11877 </li><li> Parser test
11878 </li><li> Parser test
11879 </li><li> Parser_test
11880 </li><li> Parser test
11881 </li><li> Parser_test
11882 </li><li> Parser test
11883 </li><li> Parser_test
11884 </li><li> Talk:Parser test
11885 </li><li> Talk:Parser_test
11886 </li><li> Parser test
11887 </li><li> Parser_test
11894 </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>
11898 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11908 image4 |300px| centre
11909 image5.svg| http://///////
11914 <ul class="gallery">
11915 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11916 <div style="height: 150px;">Image1.png</div>
11917 <div class="gallerytext">
11920 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11921 <div style="height: 150px;">Image2.gif</div>
11922 <div class="gallerytext">
11927 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11928 <div style="height: 150px;">Image3</div>
11929 <div class="gallerytext">
11932 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11933 <div style="height: 150px;">Image4</div>
11934 <div class="gallerytext">
11939 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11940 <div style="height: 150px;">Image5.svg</div>
11941 <div class="gallerytext">
11942 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11946 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11947 <div style="height: 150px;">* image6</div>
11948 <div class="gallerytext">
11956 Gallery (with options)
11958 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11959 File:Nonexistant.jpg|caption
11960 File:Nonexistant.jpg
11961 image:foobar.jpg|some '''caption''' [[Main Page]]
11963 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11966 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11967 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11968 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11969 <div style="height: 70px;">Nonexistant.jpg</div>
11970 <div class="gallerytext">
11975 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11976 <div style="height: 70px;">Nonexistant.jpg</div>
11977 <div class="gallerytext">
11980 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11981 <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>
11982 <div class="gallerytext">
11983 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11987 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11988 <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>
11989 <div class="gallerytext">
11992 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11993 <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>
11994 <div class="gallerytext">
12004 Gallery with wikitext inside caption
12007 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12008 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12011 <ul class="gallery">
12012 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12013 <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>
12014 <div class="gallerytext">
12015 <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>
12019 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12020 <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>
12021 <div class="gallerytext">
12022 <p>This is a test template
12031 gallery (with showfilename option)
12033 <gallery showfilename>
12034 File:Nonexistant.jpg|caption
12035 File:Nonexistant.jpg
12036 image:foobar.jpg|some '''caption''' [[Main Page]]
12040 <ul class="gallery">
12041 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12042 <div style="height: 150px;">Nonexistant.jpg</div>
12043 <div class="gallerytext">
12044 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12049 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12050 <div style="height: 150px;">Nonexistant.jpg</div>
12051 <div class="gallerytext">
12052 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12056 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12057 <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>
12058 <div class="gallerytext">
12059 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12060 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12064 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12065 <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>
12066 <div class="gallerytext">
12067 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12076 Gallery (with namespace-less filenames)
12079 File:Nonexistant.jpg
12085 <ul class="gallery">
12086 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12087 <div style="height: 150px;">Nonexistant.jpg</div>
12088 <div class="gallerytext">
12091 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12092 <div style="height: 150px;">Nonexistant.jpg</div>
12093 <div class="gallerytext">
12096 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12097 <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>
12098 <div class="gallerytext">
12101 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12102 <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>
12103 <div class="gallerytext">
12111 HTML Hex character encoding (spells the word "JavaScript")
12113 JavaScript
12115 <p>JavaScript
12120 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12124 <p>&#xsee;&#XSEE;
12129 HTML Hex character encoding mixed case
12138 __FORCETOC__ override
12150 ISBN 978-0-1234-56 789
12152 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12157 ISBN followed by 5 spaces
12168 ISBN ISBN 1234567890
12170 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12175 Bug 22905: <abbr> followed by ISBN followed by </a>
12177 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12179 <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>
12188 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12193 Double RFC with a wiki link
12197 <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>
12206 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12211 Centre-aligned image
12213 [[Image:foobar.jpg|centre]]
12215 <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>
12222 [[Image:foobar.jpg|none]]
12224 <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>
12229 Width + Height sized image (using px) (height is ignored)
12231 [[Image:foobar.jpg|640x480px]]
12233 <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>
12238 Width-sized image (using px, no following whitespace)
12240 [[Image:foobar.jpg|640px]]
12242 <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>
12247 Width-sized image (using px, with following whitespace - test regression from r39467)
12249 [[Image:foobar.jpg|640px ]]
12251 <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>
12256 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12258 [[Image:foobar.jpg| 640px]]
12260 <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>
12265 Another italics / bold test
12273 # Note the results may be incorrect, as parserTest output included this:
12274 # XML error: Mismatched tag at byte 6120:
12275 # ...<dd> </dt></dl> </dd...
12283 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12294 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12296 Images with the "|" character in the comment
12298 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12300 <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>
12305 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12307 <html><script>alert(1);</script></html>
12309 <p><html><script>alert(1);</script></html>
12314 HTML with raw HTML ($wgRawHtml==true)
12318 <html><script>alert(1);</script></html>
12320 <p><script>alert(1);</script>
12325 Parents of subpages, one level up
12327 subpage title=[[Subpage test/L1/L2/L3]]
12331 <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>
12337 Parents of subpages, one level up, not named
12339 subpage title=[[Subpage test/L1/L2/L3]]
12343 <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>
12350 Parents of subpages, two levels up
12352 subpage title=[[Subpage test/L1/L2/L3]]
12358 <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
12359 </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>
12364 Parents of subpages, two levels up, without trailing slash or name.
12366 subpage title=[[Subpage test/L1/L2/L3]]
12375 Parents of subpages, two levels up, with lots of extra trailing slashes.
12377 subpage title=[[Subpage test/L1/L2/L3]]
12381 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12386 Subpage test/L1/L2/L3Sibling
12392 Transclusion of a sibling page (one level up)
12394 subpage title=[[Subpage test/L1/L2/L3]]
12403 Transclusion of a child page
12405 subpage title=[[Subpage test/L1/L2]]
12414 Non-transclusion because of too many up levels
12416 subpage title=[[Subpage test/L1/L2/L3]]
12418 {{../../../../More than parent}}
12420 <p>{{../../../../More than parent}}
12425 Definition list code coverage
12431 <dl><dt> title  </dt><dd> def
12432 </dd><dt> title </dt><dd> def
12433 </dd><dt>title</dt><dd> def
12439 Don't fall for the self-closing div
12441 <div>hello world</div/>
12443 <div>hello world</div>
12452 <p>[[:Template:Msg]]
12461 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12465 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12467 Always escape literal '>' in output, not just after '<'
12481 <p>This is a test template
12482 This is a test template
12494 Inclusion of !userCanEdit() content
12498 <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>
12504 Out-of-order TOC heading levels
12513 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12515 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12517 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12518 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12521 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12523 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12524 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12529 <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>
12530 <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>
12531 <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>
12532 <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>
12533 <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>
12534 <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>
12540 ISBN with a dummy number
12550 ISBN with space-delimited number
12554 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12560 ISBN with multiple spaces, no number
12579 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12580 </p><p>ISBN 12345678901
12586 ISBN with trailing year (bug 8110)
12588 ISBN 1-234-56789-0 - 2006
12590 ISBN 1 234 56789 0 - 2006
12592 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12593 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12601 {{anchorencode:foo bar©#%n}}
12603 <p>foo_bar.C2.A9.23.25n
12608 anchorencode trims spaces
12610 {{anchorencode: __pretty__please__}}
12617 anchorencode deals with links
12619 {{anchorencode: [[hello|world]] [[hi]]}}
12626 anchorencode deals with templates
12628 {{anchorencode: {{Foo}} }}
12635 anchorencode encodes like the TOC generator: (bug 18431)
12637 === _ +:.3A%3A&&]] ===
12638 {{anchorencode: _ +:.3A%3A&&]] }}
12641 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12642 <p>.2B:.3A.253A.26.26.5D.5D
12646 # Expected output in the following test is not necessarily expected (there
12647 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12648 # only testing for well-formedness.
12650 Bug 6200: blockquotes and paragraph formatting
12670 Bug 8293: Use of center tag ruins paragraph formatting
12691 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12695 <span><s>x</span></s>
12697 <p><span><s>x</span></s></span>
12702 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12706 <span><s>x</span></s>
12708 <p><span><s>x</s></span><s></s>
12713 ### Language variants related tests
12716 Self-link in language variants
12718 title=[[Dunav]] language=sr
12720 Both [[Dunav]] and [[Дунав]] are names for this river.
12722 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12733 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12735 title=[[Duna]] language=sr
12737 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12739 <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.
12744 Link to pages in language variants
12748 Main Page can be written as [[Маин Паге]]
12750 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12756 Multiple links to pages in language variants
12760 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12762 <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>.
12768 Simple template in language variants
12774 <p>This is a test template
12780 Template with explicit namespace in language variants
12786 <p>This is a test template
12792 Basic test for template parameter in language variants
12796 {{парамтест|param=foo}}
12798 <p>This is a test template with parameter foo
12804 Simple category in language variants
12808 [[Category:МедиаWики Усер'с Гуиде]]
12810 <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>
12827 Don't convert blue categorylinks to another variant (bug 33210)
12831 [[A]][[Category:分类]]
12833 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12838 Stripping -{}- tags (language variants)
12842 Latin proverb: -{Ne nuntium necare}-
12844 <p>Latin proverb: Ne nuntium necare
12850 Prevent conversion with -{}- tags (language variants)
12852 language=sr variant=sr-ec
12854 Latinski: -{Ne nuntium necare}-
12856 <p>Латински: Ne nuntium necare
12862 Prevent conversion of text with -{}- tags (language variants)
12864 language=sr variant=sr-ec
12866 Latinski: -{Ne nuntium necare}-
12868 <p>Латински: Ne nuntium necare
12874 Prevent conversion of links with -{}- tags (language variants)
12876 language=sr variant=sr-ec
12880 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12886 -{}- tags within headlines (within html for parserConvert())
12888 language=sr variant=sr-ec
12892 <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>
12898 Explicit definition of language variant alternatives
12900 language=zh variant=zh-tw
12902 -{zh:China;zh-tw:Taiwan}-, not China
12904 <p>Taiwan, not China
12910 Conversion around HTML tags
12912 language=sr variant=sr-ec
12914 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12915 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12918 <span title="ЛаCтин">ски</span>
12924 Explicit session-wise language variant mapping (A flag and - flag)
12926 language=zh variant=zh-tw
12928 Taiwan is not China.
12929 But -{A|zh:China;zh-tw:Taiwan}- is China,
12930 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12931 and -{China}- is China.
12933 <p>Taiwan is not China.
12934 But Taiwan is Taiwan,
12935 (This should be stripped!)
12936 and China is China.
12941 Explicit session-wise language variant mapping (H flag for hide)
12943 language=zh variant=zh-tw
12945 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12948 <p>(This should be stripped!)
12954 Adding explicit conversion rule for title (T flag)
12956 language=zh variant=zh-tw showtitle
12958 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12961 <p>Should be stripped!
12966 Testing that changing the language variant here in the tests actually works
12968 language=zh variant=zh showtitle
12970 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12973 <p>Should be stripped!
12978 Recursive conversion of alt and title attrs shouldn't clear converter state
12980 language=zh variant=zh-cn showtitle
12982 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12983 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12987 Should be stripped<span title="Exclamation">!</span>
12992 Bug 24072: more test on conversion rule for title
12994 language=zh variant=zh-tw showtitle
12996 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12997 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13000 <p>This should be stripped!
13001 This won't take interferes with the title rule.
13006 Partly disable title conversion if variant == main language code
13008 language=zh variant=zh title=[[ZH]] showtitle
13010 -{T|zh-cn:CN;zh-tw:TW}-
13018 Partly disable title conversion if variant == main language code, more
13020 language=zh variant=zh title=[[ZH]] showtitle
13030 Raw output of variant escape tags (R flag)
13032 language=zh variant=zh-tw
13034 Raw: -{R|zh:China;zh-tw:Taiwan}-
13036 <p>Raw: zh:China;zh-tw:Taiwan
13041 Nested using of manual convert syntax
13043 language=zh variant=zh-hk
13045 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13047 <p>Nested: Hello Hong Kong!
13052 Proper conversion of text in external links
13054 language=sr variant=sr-ec
13056 http://www.google.com
13057 gopher://www.google.com
13058 [http://www.google.com http://www.google.com]
13059 [gopher://www.google.com gopher://www.google.com]
13060 [https://www.google.com irc://www.google.com]
13061 [ftp://www.google.com www.google.com/ftp://dir]
13062 [//www.google.com www.google.com]
13064 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13065 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13066 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13067 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13068 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13069 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13070 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13075 Do not convert roman numbers to language variants
13077 language=sr variant=sr-ec
13081 <p>Фридрих IV је цар.
13086 Unclosed language converter markup "-{"
13097 Don't convert raw rule "-{R|=>}-" to "=>"
13114 Bug 529: Uncovered bullet
13124 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13125 # Templates in Wikipedia rely on this behavior, as tidy has always been
13126 # enabled there. These tests are normally run *without* tidy, so specify the
13127 # full output here.
13128 # To test realistic parsing behavior, apply a tidy-like transformation to both
13129 # the expected output and your parser's output.
13131 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13133 ******* Foo {{bullet}}
13135 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13148 Bug 529: Uncovered table already at line-start
13171 Bug 529: Uncovered bullet in parser function result
13173 * Foo {{lc:{{bullet}} }}
13182 Bug 5678: Double-parsed template argument
13184 {{lc:{{{1}}}|hello}}
13191 Bug 5678: Double-parsed template invocation
13193 {{lc:{{paramtest {{!}} param = hello }} }}
13195 <p>{{paramtest | param = hello }}
13200 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13203 title=[[Main Page]]
13205 {{PRVNÍVELKÉ:ěščř}}
13206 {{prvnívelké:ěščř}}
13226 Morwen/13: Unclosed link followed by heading
13233 <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>
13238 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13245 <h1><span class="mw-headline" id="heading">heading</span></h1>
13250 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13257 <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>
13272 Paragraphs inside divs (no extra line breaks)
13284 Paragraphs inside divs (extra line break on open)
13299 Paragraphs inside divs (extra line break on close)
13314 Paragraphs inside divs (extra line break on open and close)
13331 Nesting tags, paragraphs on lines which begin with <div>
13335 <div></div><strong>A
13344 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13346 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13350 <blockquote>Line one
13352 Line two</blockquote>
13354 <blockquote>Line one
13355 Line two</blockquote>
13360 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13367 Line two</blockquote>
13372 Line two</blockquote>
13377 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13381 <blockquote>Line one
13386 <blockquote>Line one
13394 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13413 Paragraphs inside blockquotes/divs (no extra line breaks)
13415 <blockquote><div>Line one
13417 Line two</div></blockquote>
13419 <blockquote><div>Line one
13420 Line two</div></blockquote>
13425 Paragraphs inside blockquotes/divs (extra line break on open)
13430 Line two</div></blockquote>
13435 Line two</div></blockquote>
13440 Paragraphs inside blockquotes/divs (extra line break on close)
13442 <blockquote><div>Line one
13445 </div></blockquote>
13447 <blockquote><div>Line one
13450 </div></blockquote>
13455 Paragraphs inside blockquotes/divs (extra line break on open and close)
13461 </div></blockquote>
13467 </div></blockquote>
13472 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13474 wgLinkHolderBatchSize=0
13480 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13481 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13482 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13487 Free external link invading image caption
13489 [[Image:Foobar.jpg|thumb|http://x|hello]]
13491 <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>
13496 Bug 15196: localised external link numbers
13500 [http://en.wikipedia.org/]
13502 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13507 Multibyte character in padleft
13509 {{padleft:-Hello|7|Æ}}
13516 Multibyte character in padright
13518 {{padright:Hello-|7|Æ}}
13525 formatdate parser function
13527 {{#formatdate:2009-03-24}}
13529 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13534 formatdate parser function, with default format
13536 {{#formatdate:2009-03-24|mdy}}
13538 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13543 Spacing of numbers in formatted dates
13545 {{#formatdate:January 15}}
13547 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13552 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
13554 language=nl title=[[MediaWiki:Common.css]]
13556 {{#formatdate:2009-03-24|dmy}}
13558 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13571 Edit comment with link
13575 I like the [[Main Page]] a lot
13577 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13581 Edit comment with link and link text
13585 I like the [[Main Page|best pages]] a lot
13587 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13591 Edit comment with link and link text with suffix
13595 I like the [[Main Page|best page]]s a lot
13597 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13601 Edit comment with section link (non-local, eg in history list)
13603 comment title=[[Main Page]]
13605 /* External links */ removed bogus entries
13607 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13611 Edit comment with section link and text before it (non-local, eg in history list)
13613 comment title=[[Main Page]]
13615 pre-comment text /* External links */ removed bogus entries
13617 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>
13621 Edit comment with section link (local, eg in diff view)
13623 comment local title=[[Main Page]]
13625 /* External links */ removed bogus entries
13627 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13631 Edit comment with subpage link (bug 14080)
13635 title=[[Subpage test]]
13637 Poked at a [[/subpage]] here...
13639 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13643 Edit comment with subpage link and link text (bug 14080)
13647 title=[[Subpage test]]
13649 Poked at a [[/subpage|neat little page]] here...
13651 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13655 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13658 title=[[Subpage test]]
13660 Poked at a [[/subpage]] here...
13662 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13666 Edit comment with bare anchor link (local, as on diff)
13670 title=[[Main Page]]
13674 <a href="#section">#section</a>
13678 Edit comment with bare anchor link (non-local, as on history)
13681 title=[[Main Page]]
13685 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13689 Anchor starting with underscore
13693 <p><a href="#_ref">One</a>
13698 Id starting with underscore
13700 <div id="_ref"></div>
13702 <div id="_ref"></div>
13707 Space normalisation on autocomment (bug 22784)
13710 title=[[Main Page]]
13712 /* __hello__world__ */
13714 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13718 percent-encoding and + signs in comments (Bug 26410)
13722 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13724 <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>
13728 Bad images - basic functionality
13737 Bad images - bug 16039: text after bad image disappears
13751 Verify that displaytitle works (bug #22501) no displaytitle
13755 wgAllowDisplayTitle=true
13756 wgRestrictDisplayTitle=false
13758 this is not the the title
13761 <p>this is not the the title
13766 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13771 wgAllowDisplayTitle=true
13772 wgRestrictDisplayTitle=false
13774 this is not the the title
13775 {{DISPLAYTITLE:whatever}}
13778 <p>this is not the the title
13783 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13788 wgAllowDisplayTitle=true
13789 wgRestrictDisplayTitle=true
13791 this is not the the title
13792 {{DISPLAYTITLE:whatever}}
13795 <p>this is not the the title
13800 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13805 wgAllowDisplayTitle=true
13806 wgRestrictDisplayTitle=true
13808 this is not the the title
13809 {{DISPLAYTITLE:screen}}
13812 <p>this is not the the title
13817 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13822 wgAllowDisplayTitle=false
13824 this is not the the title
13825 {{DISPLAYTITLE:screen}}
13828 <p>this is not the the title
13829 <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>
13834 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13839 wgAllowDisplayTitle=false
13841 this is not the the title
13844 <p>this is not the the title
13849 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13854 wgAllowDisplayTitle=true
13855 wgRestrictDisplayTitle=true
13857 this is not the the title
13858 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13860 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13861 <p>this is not the the title
13866 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13871 wgAllowDisplayTitle=true
13872 wgRestrictDisplayTitle=true
13874 this is not the the title
13875 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13877 <span style="color: red;">s</span>creen
13878 <p>this is not the the title
13883 preload: check <noinclude> and <includeonly>
13887 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13893 preload: check <onlyinclude>
13897 Goodbye <onlyinclude>Hello world</onlyinclude>
13903 preload: can pass tags through if we want to
13907 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13909 <includeonly>Hello world</includeonly>
13913 preload: check that it doesn't try to do tricks
13917 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13919 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13923 Play a bit with r67090 and bug 3158
13927 <div style="width:50% !important"> </div>
13928 <div style="width:50% !important"> </div>
13929 <div style="width:50% !important"> </div>
13930 <div style="border : solid;"> </div>
13932 <div style="width:50% !important"> </div>
13933 <div style="width:50% !important"> </div>
13934 <div style="width:50% !important"> </div>
13935 <div style="border : solid;"> </div>
13940 HTML5 data attributes
13942 <span data-foo="bar">Baz</span>
13943 <p data-abc-def_hij="">Quuz</p>
13945 <p><span data-foo="bar">Baz</span>
13947 <p data-abc-def_hij="">Quuz</p>
13952 percent-encoding and + signs in internal links (Bug 26410)
13954 [[User:+%]] [[Page+title%]]
13955 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13956 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13957 [[%33%45]] [[%33%45+]]
13959 <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>
13960 <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>
13961 <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>
13962 <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>
13967 Special characters in embedded file links (bug 27679)
13969 [[File:Contains & ampersand.jpg]]
13970 [[File:Does not exist.jpg|Title with & ampersand]]
13972 <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>
13973 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13979 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13981 Text's been normalized?
13983 <p>Text's been normalized?
13988 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13990 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13992 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13997 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13999 [http://www.example.org/ ideograms]
14001 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14006 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14008 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14010 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14034 Bug 31098 Template which includes system messages which includes the template
14038 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14039 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14044 Bug31490 Turkish: ucfirst 'blah'
14055 Bug31490 Turkish: ucfirst 'ix'
14066 Bug31490 Turkish: lcfirst 'BLAH'
14077 Bug31490 Turkish: ucfırst (with a dotless i)
14083 <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>
14088 Bug31490 ucfırst (with a dotless i) with English language
14094 <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>
14099 Bug 26375: TOC with italics
14101 title=[[Main Page]]
14104 == ''Lost'' episodes ==
14106 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14108 <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>
14111 <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>
14116 Bug 26375: TOC with bold
14118 title=[[Main Page]]
14121 == '''should be bold''' then normal text ==
14123 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14125 <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>
14128 <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>
14133 Bug 33845: Headings become cursive in TOC when they contain an image
14135 title=[[Main Page]]
14138 == Image [[Image:foobar.jpg]] ==
14140 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14142 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14145 <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>
14150 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14152 title=[[Main Page]]
14155 == <blockquote>Quote</blockquote> ==
14157 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14159 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14162 <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>
14167 Unclosed tags in TOC
14169 title=[[Main Page]]
14173 <small>Hanc marginis exiguitas non caperet.</small>
14176 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14178 <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>
14181 <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>
14182 <p><small>Hanc marginis exiguitas non caperet.</small>
14188 Multiple tags in TOC
14191 == <i>Foo</i> <b>Bar</b> ==
14193 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14195 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14197 <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>
14198 <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>
14201 <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>
14202 <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>
14207 Tags with parameters in TOC
14210 == <sup class="in-h2">Hello</sup> ==
14212 == <sup class="a > b">Evilbye</sup> ==
14214 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14216 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14217 <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>
14220 <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>
14221 <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>
14226 span tags with directionality in TOC
14229 == <span dir="ltr">C++</span> ==
14231 == <span dir="rtl">זבנג!</span> ==
14233 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14235 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14237 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14239 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14241 <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>
14242 <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>
14243 <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>
14244 <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>
14245 <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>
14248 <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>
14249 <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>
14250 <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>
14251 <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>
14252 <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>
14259 == {{int:headline_sample}} ==
14263 Bug 32057: Title needed when expanding <h> nodes.
14265 title=[[Main Page]]
14269 <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>
14274 Strip marker in urlencode
14276 {{urlencode:x<nowiki/>y}}
14277 {{urlencode:x<nowiki/>y|wiki}}
14278 {{urlencode:x<nowiki/>y|path}}
14305 Strip marker in formatNum
14307 {{formatnum:1<nowiki/>2}}
14308 {{formatnum:1<nowiki/>2|R}}
14316 Check noCommafy in formatNum
14320 {{formatnum:123456.78}}
14321 {{formatnum:123456.78|NOSEP}}
14329 Strip marker in grammar
14333 {{grammar:elative|foo<nowiki/>bar}}
14340 Strip marker in padleft
14342 {{padleft:|2|x<nowiki/>y}}
14349 Strip marker in padright
14351 {{padright:|2|x<nowiki/>y}}
14358 Strip marker in anchorencode
14360 {{anchorencode:x<nowiki/>y}}
14367 nowiki inside link inside heading (bug 18295)
14369 ==[[foo|x<nowiki>y</nowiki>z]]==
14371 <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>
14376 new support for bdi element (bug 31817)
14378 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14380 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14385 Ignore pipe between table row attributes
14389 |- id=foo | style='color: red'
14397 <tr id="foo" style="color: red">
14404 Gallery override link with WikiLink (bug 34852)
14407 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14410 <ul class="gallery">
14411 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14412 <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>
14413 <div class="gallerytext">
14423 Gallery override link with absolute external link (bug 34852)
14426 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14429 <ul class="gallery">
14430 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14431 <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>
14432 <div class="gallerytext">
14442 Gallery override link with malicious javascript (bug 34852)
14445 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14448 <ul class="gallery">
14449 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14450 <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>
14451 <div class="gallerytext">
14461 Gallery with invalid title as link (bug 43964)
14464 File:foobar.jpg|link=<
14467 <ul class="gallery">
14468 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14469 <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>
14470 <div class="gallerytext">
14478 Language parser function
14487 Padleft and padright as substr
14489 {{padleft:|3|abcde}}
14490 {{padright:|3|abcde}}
14498 Special parser function
14500 {{#special:RandomPage}}
14501 {{#special:BaDtItLe}}
14502 {{#special:Foobar}}
14511 Bug 34939 - Case insensitive link parsing ([HttP://])
14513 [HttP://MediaWiki.Org/]
14515 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14520 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14522 [HttP://MediaWiki.Org/ MediaWiki]
14524 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14529 Bug 34939 - Case insensitive link parsing (HttP://)
14531 HttP://MediaWiki.Org/
14533 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14539 ### Parsoids-specific tests
14540 ### Parsoid-PHP parser incompatibilities
14543 1. SOL-sensitive wikitext tokens as template-args
14545 parsoid=wt2html,wt2wt
14551 <span about="#mwt1" typeof="mw:Transclusion">
14552 </span><ul about="#mwt1"><li>a</li></ul>
14553 <span about="#mwt2" typeof="mw:Transclusion">
14554 </span><ol about="#mwt2"><li>a</li></ol>
14555 <span about="#mwt3" typeof="mw:Transclusion">
14556 </span><dl about="#mwt3"><dd>a</dd></dl>
14559 #### ----------------------------------------------------------------
14560 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14561 #### tags. Parsoid's output for these tags differs from that of the
14563 #### ----------------------------------------------------------------
14566 Ref: 1. ref-location should be replaced with an index span
14571 B <ref name="x">foo</ref>
14574 <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>
14575 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>
14576 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>
14580 Ref: 2. ref-tags with identical names should all get the same index
14584 A <ref name="x">foo</ref>
14587 <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>
14588 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>
14592 Ref: 3. spaces in ref-names should be ignored
14596 A <ref name="x">foo</ref>
14597 B <ref name=" x " />
14600 <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>
14601 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>
14602 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>
14606 Ref: 4. 'constructor' should be accepted as a valid ref-name
14607 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14611 A <ref name="constructor">foo</ref>
14613 <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>
14617 Ref: 5. body should accept generic wikitext
14622 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14627 <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>
14629 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14630 <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>
14635 Ref: 6. indent-pres should not be output in ref-body
14647 <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>
14649 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14650 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14657 Ref: 6. No p-wrapping in ref-body
14676 <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>
14678 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14679 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14693 Ref: 8. transclusion wikitext has lower precedence
14697 A <ref> foo {{echo|</ref> B C}}
14701 <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>
14703 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14704 <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>
14708 Ref: 9. unclosed comments should not leak out of ref-body
14712 A <ref> foo <!--</ref> B C
14716 <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>
14718 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14719 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14723 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14727 A <ref> <b> foo </ref> B C
14731 <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>
14733 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14734 <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>
14738 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14745 <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
14746 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>
14750 Ref: 12. ref-tags act as trailing newline migration barrier
14754 <!--the newline at the end of this line moves out of the p-tag-->a
14756 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14761 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14764 <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>
14765 <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>
14772 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14780 <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
14781 <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>
14785 Ref: 14. A nested ref-tag should be emitted as plain text
14789 <ref>foo <ref>bar</ref> baz</ref>
14793 <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>
14795 <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>
14799 Ref: 15. ref-tags with identical names should get identical indexes
14803 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14804 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14808 <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>
14809 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>
14811 <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>
14815 References: 1. references tag without any refs should be handled properly
14821 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14825 References: 2. references tag with group only outputs references from that group
14829 A <ref group="a">foo</ref>
14830 B <ref group="b">bar</ref>
14832 <references group='a' />
14834 <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>
14835 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>
14837 <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>
14841 References: 3. ref list should be cleared after processing references
14853 <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>
14855 <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>
14857 <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>
14859 <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>
14863 References: 4. only referenced group should be cleared after processing references
14867 A <ref group="a">afoo</ref>
14870 <references group="a"/>
14876 <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>
14877 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>
14879 <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>
14881 <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>
14883 <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>
14887 References: 5. ref tags in references should be processed while ignoring all other content
14892 B <ref name="b">bar</ref>
14895 <ref name="a">foo</ref>
14896 This should just get lost.
14899 <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>
14900 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>
14902 <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>
14906 References: 6. <references /> from a transclusion
14910 {{echo|<references />}}
14912 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
14915 #### ----------------------------------------------------------------
14916 #### The following section of tests are primarily to test
14917 #### wikitext escaping capabilities of Parsoid. Given that
14918 #### escaping can be done any number of ways, the wikitext (input)
14919 #### is always adjusted to reflect how Parsoid adds nowiki
14922 #### We are marking several tests as parsoid-only since the
14923 #### HTML in the result section is different from what the
14924 #### PHP parser generates for it.
14925 #### ----------------------------------------------------------------
14928 #### --------------- Headings ---------------
14930 #### 1. Nested inside html <h1>=foo=</h1>
14931 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14932 #### 3. Nested inside html with wikitext split by html tags
14933 #### 4. No escape needed
14934 #### 5. Empty headings <h1></h1>
14935 #### 6. Heading chars in SOL context
14936 #### ----------------------------------------
14938 Headings: 0. Unnested
14942 <nowiki>=foo=</nowiki>
14944 <nowiki> =foo= </nowiki>
14946 <nowiki>=foo=</nowiki>
14948 =foo''a''<nowiki>=</nowiki>
14950 <p><span typeof="mw:Nowiki">=foo=</span></p>
14952 <p><span typeof="mw:Nowiki"> =foo= </span>
14954 <span typeof="mw:Nowiki">=foo=</span></p>
14956 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14960 Headings: 1. Nested inside html
14964 =<nowiki>=foo=</nowiki>=
14966 ==<nowiki>=foo=</nowiki>==
14968 ===<nowiki>=foo=</nowiki>===
14970 ====<nowiki>=foo=</nowiki>====
14972 =====<nowiki>=foo=</nowiki>=====
14974 ======<nowiki>=foo=</nowiki>======
14976 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14977 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14978 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14979 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14980 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14981 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
14985 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
14990 <nowiki>*bar</nowiki>
14996 <nowiki>=bar=</nowiki>
15004 Headings: 3. Nested inside html with wikitext split by html tags
15008 =='''bold'''<nowiki>foo=</nowiki>=
15010 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15014 Headings: 4a. No escaping needed (testing just h1 and h2)
15032 =<nowiki>=</nowiki>=
15040 <h1><i>=</i>foo=</h1>
15041 <h1><span typeof="mw:Nowiki">=</span></h1>
15045 Headings: 4b. No escaping needed (inside p-tags)
15060 Headings: 5. Empty headings
15072 =====<nowiki/>=====
15074 ======<nowiki/>======
15085 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15089 <nowiki>=a=</nowiki>
15091 <nowiki>=a= </nowiki>
15093 <nowiki>=a= </nowiki>
15095 <nowiki>=a= </nowiki>
15104 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15132 Headings: 6c. Heading chars in SOL context (leading newline break)
15144 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15148 <!--c0--><nowiki>=a=</nowiki>
15150 <nowiki>=a= </nowiki><!--c2--> <!--c3-->
15152 <p><!--c0-->=a=</p>
15153 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15157 Headings: 6d. Heading chars in SOL context (No escaping needed)
15166 #### --------------- Lists ---------------
15167 #### 0. Outside nests (*foo, etc.)
15168 #### 1. Nested inside html <ul><li>*foo</li></ul>
15169 #### 2. Inside definition lists
15170 #### 3. Only bullets at start should be escaped
15171 #### 4. No escapes needed
15172 #### 5. No unnecessary escapes
15173 #### 6. Escape bullets in SOL position
15174 #### 7. Escape bullets in a multi-line context
15175 #### ----------------------------------------
15178 Lists: 0. Outside nests
15180 <nowiki>*foo</nowiki>
15182 <nowiki>#foo</nowiki>
15190 Lists: 1. Nested inside html
15192 *<nowiki>*foo</nowiki>
15194 *<nowiki>#foo</nowiki>
15196 *<nowiki>:foo</nowiki>
15198 *<nowiki>;foo</nowiki>
15200 #<nowiki>*foo</nowiki>
15202 #<nowiki>#foo</nowiki>
15204 #<nowiki>:foo</nowiki>
15206 #<nowiki>;foo</nowiki>
15228 Lists: 2. Inside definition lists
15230 ;<nowiki>;foo</nowiki>
15232 ;<nowiki>:foo</nowiki>
15234 ;<nowiki>:foo</nowiki>
15237 :<nowiki>:foo</nowiki>
15252 Lists: 3. Only bullets at start of text should be escaped
15254 *<nowiki>*foo*bar</nowiki>
15256 *<nowiki>*foo</nowiki>''it''*bar
15260 <ul><li>*foo<i>it</i>*bar
15266 Lists: 4. No escapes needed
15278 <ul><li><i>foo</i>*bar
15280 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15285 Lists: 5. No unnecessary escapes
15287 * bar <span><nowiki>[[foo]]</nowiki></span>
15289 *=bar <span><nowiki>[[foo]]</nowiki></span>
15291 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15293 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15295 *=bar <span>foo]]</span>=
15299 <ul><li> bar <span>[[foo]]</span>
15301 <ul><li>=bar <span>[[foo]]</span>
15303 <ul><li>[[bar <span>[[foo]]</span>
15305 <ul><li>]]bar <span>[[foo]]</span>
15307 <ul><li>=bar <span>foo]]</span>=
15309 <ul><li> <s></s>: a
15315 Lists: 6. Escape bullets in SOL position
15319 <!--cmt--><nowiki>*foo</nowiki>
15321 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15325 Lists: 7. Escape bullets in a multi-line context
15335 #### --------------- HRs ---------------
15336 #### 1. Single line
15337 #### -----------------------------------
15340 HRs: 1. Single line
15344 ----<nowiki>----</nowiki>
15348 <hr><span typeof="mw:Nowiki">----</span>
15353 #### --------------- Tables ---------------
15354 #### 1a. Simple example
15355 #### 1b. No escaping needed (!foo)
15356 #### 1c. No escaping needed (|foo)
15357 #### 1d. No escaping needed (|}foo)
15359 #### 2a. Nested in td (<td>foo|bar</td>)
15360 #### 2b. Nested in td (<td>foo||bar</td>)
15361 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15363 #### 3a. Nested in th (<th>foo!bar</th>)
15364 #### 3b. Nested in th (<th>foo!!bar</th>)
15365 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15369 #### 4c. No escaping needed
15370 #### --------------------------------------
15373 Tables: 1a. Simple example
15384 Tables: 1b. No escaping needed
15393 Tables: 1c. No escaping needed
15402 Tables: 1d. No escaping needed
15411 Tables: 2a. Nested in td
15416 |<nowiki>foo|bar</nowiki>
15420 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15424 Tables: 2b. Nested in td
15429 |<nowiki>foo||bar</nowiki>
15430 |''it''<nowiki>foo||bar</nowiki>
15434 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15435 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15439 Tables: 2c. Nested in td -- no escaping needed
15447 <table><tbody><tr><td>foo!!bar
15448 </td></tr></tbody></table>
15453 Tables: 3a. Nested in th
15461 <table><tbody><tr><th>foo!bar
15462 </th></tr></tbody></table>
15467 Tables: 3b. Nested in th
15472 !<nowiki>foo!!bar</nowiki>
15476 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15481 Tables: 3c. Nested in th -- no escaping needed
15486 !<nowiki>foo||bar</nowiki>
15490 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15494 Tables: 4a. Escape -
15502 |<nowiki>-bar</nowiki>
15506 <tr><th>-bar</th></tr>
15508 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15512 Tables: 4b. Escape +
15520 |<nowiki>+bar</nowiki>
15524 <tr><th>+bar</th></tr>
15526 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15530 Tables: 4c. No escaping needed
15544 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15545 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15549 ### SSS FIXME: Disabled right now because accurate html2wt
15550 ### on this snippet requires data-parsoid flags that we've
15551 ### stripped out of these tests. We should scheme how we
15552 ### we want to handle these kind of tests that require
15553 ### data-parsoid flags for accurate html2wt serialization
15556 Tables: 4d. No escaping needed
15574 #### --------------- Links ----------------
15575 #### 1. Quote marks in link text
15576 #### 2. Wikilinks: Escapes needed
15577 #### 3. Wikilinks: No escapes needed
15578 #### 4. Extlinks: Escapes needed
15579 #### 5. Extlinks: No escapes needed
15580 #### --------------------------------------
15582 Links 1. Quote marks in link text
15586 [[Foo|<nowiki>Foo''boo''</nowiki>]]
15588 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15592 Links 2. WikiLinks: Escapes needed
15596 [[Foo|<nowiki>[Foobar]</nowiki>]]
15597 [[Foo|<nowiki>Foobar]</nowiki>]]
15598 [[Foo|x [Foobar] x]]
15599 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15600 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15601 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15602 [[Foo|<nowiki>|Bar</nowiki>]]
15603 [[Foo|<nowiki>]]bar</nowiki>]]
15604 [[Foo|<nowiki>[[bar</nowiki>]]
15605 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15607 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15608 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15609 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15610 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15611 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15612 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15613 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15614 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15615 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15616 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15620 Links 3. WikiLinks: No escapes needed
15627 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15628 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15632 Links 4. ExtLinks: Escapes needed
15636 [http://google.com <nowiki>[google]</nowiki>]
15637 [http://google.com <nowiki>google]</nowiki>]
15639 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15640 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15644 Links 5. ExtLinks: No escapes needed
15648 [http://google.com [google]
15650 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15653 #### --------------- Quotes ---------------
15654 #### 1. Quotes inside <b> and <i>
15655 #### 2. Link fragments separated by <i> and <b> tags
15656 #### 3. Link fragments inside <i> and <b>
15657 #### --------------------------------------
15659 1. Quotes inside <b> and <i>
15661 ''<nowiki>'foo'</nowiki>''
15662 ''<nowiki>''foo''</nowiki>''
15663 ''<nowiki>'''foo'''</nowiki>''
15664 ''foo''<nowiki>'s</nowiki>
15665 '''<nowiki>'foo'</nowiki>'''
15666 '''<nowiki>''foo''</nowiki>'''
15667 '''<nowiki>'''foo'''</nowiki>'''
15668 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15669 '''foo'''<nowiki>'s</nowiki>
15678 <b>foo'<i>bar'</i>baz</b>
15684 2. Link fragments separated by <i> and <b> tags
15686 [[''foo''<nowiki>hello]]</nowiki>
15688 [['''foo'''<nowiki>hello]]</nowiki>
15690 <p>[[<i>foo</i>hello]]
15691 </p><p>[[<b>foo</b>hello]]
15696 2. Link fragments inside <i> and <b>
15697 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15698 this is one of the shortcomings of this format)
15700 ''[[foo''<nowiki>]]</nowiki>
15702 '''[[foo'''<nowiki>]]</nowiki>
15705 </p><p><b>[[foo</b>]]
15709 #### ----------- Paragraphs ---------------
15710 #### 1. No unnecessary escapes
15711 #### --------------------------------------
15714 1. No unnecessary escapes
15716 bar <span><nowiki>[[foo]]</nowiki></span>
15718 =bar <span><nowiki>[[foo]]</nowiki></span>
15720 [[bar <span><nowiki>[[foo]]</nowiki></span>
15722 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15724 =bar <span>foo]]</span><nowiki>=</nowiki>
15726 <p>bar <span>[[foo]]</span>
15727 </p><p>=bar <span>[[foo]]</span>
15728 </p><p>[[bar <span>[[foo]]</span>
15729 </p><p>]]bar <span>[[foo]]</span>
15730 </p><p>=bar <span>foo]]</span>=
15734 #### ----------------------- PRE --------------------------
15735 #### 1. Leading whitespace in SOL context should be escaped
15736 #### ------------------------------------------------------
15738 1. Leading whitespace in SOL context should be escaped
15742 <nowiki> a</nowiki>
15744 <nowiki> a</nowiki>
15746 <nowiki> a(tab)</nowiki>
15748 <nowiki> a</nowiki>
15750 <nowiki> a</nowiki>
15765 <p><!--cmt--> a</p>
15774 #### --------------- HTML tags ---------------
15777 #### 3. multi-line html tag
15778 #### -----------------------------------------
15784 <a href="http://google.com">google</a>
15786 <a href="http://google.com">google</a>
15792 <nowiki><div>foo</div>
15793 <div style="color:red">foo</div></nowiki>
15795 <p><div>foo</div>
15796 <div style="color:red">foo</div>
15801 3. multi-line html tag
15816 <nowiki><ref>foo</ref></nowiki>
15818 <p><ref>foo</ref>
15822 #### --------------- Others ---------------
15826 <nowiki>foo</nowiki>
15828 <p><nowiki>foo</nowiki>
15833 Tag-like HTML structures are passed through as text
15855 </p><p>1<d e>f
15860 # This fails in the PHP parser (see bug 40670,
15861 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15863 Tag names followed by punctuation should not be recognized as tags
15869 <p><s.ome> text
15874 HTML tag with necessary entities in attributes
15876 <span title="&amp;">foo</span>
15878 <p><span title="&amp;">foo</span>
15883 HTML tag with 'unnecessary' entity encoding in attributes
15885 <span title="&">foo</span>
15887 <p><span title="&">foo</span>
15892 HTML tag with broken attribute value quoting
15894 <span title="Hello world>Foo</span>
15896 <p><span>Foo</span>
15901 Parsoid-only: HTML tag with broken attribute value quoting
15905 <span title="Hello world>Foo</span>
15907 <p><span title="Hello world">Foo</span>
15912 Table with broken attribute value quoting
15915 | title="Hello world|Foo
15926 Table with broken attribute value quoting on consecutive lines
15929 | title="Hello world|Foo
15930 | style="color:red|Bar
15943 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15948 | title="Hello world|Foo
15949 | style="color:red|Bar
15954 <td title="Hello world">Foo
15955 </td><td style="color: red">Bar
15956 </td></tr></tbody></table>
15961 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15971 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15981 Accept empty td cell attribute
15984 | align="center" | foo || |
15989 <td align="center"> foo </td>
15996 Non-empty attributes in th-cells
15999 ! Foo !! style="color: red" | Bar
16005 <th style="color: red"> Bar
16011 Accept empty attributes in th-cells
16026 Empty table rows go away
16047 ### Parsoid-centric tests for testing RTing of inter-element separators
16048 ### Edge cases not tested by existing parser tests and specific to
16049 ### Parsoid-specific serialization strategies.
16053 RT-ed inter-element separators should be valid separators
16066 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16067 (Parsoid-only since PHP parser relies on Tidy for correct output)
16083 Empty TD followed by TD with tpl-generated attribute
16088 |{{echo|style='color:red'}}|foo
16102 Indented table with an empty td
16121 Empty TR followed by a template-generated TR
16122 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16124 parsoid=wt2html,wt2wt
16128 {{echo|<tr><td>foo</td></tr>}}
16134 <tr typeof="mw:Transclusion">
16135 <td>foo</td></tr></tbody></table>
16138 ## PHP and parsoid output differ for this, and since this is primarily
16139 ## for testing Parsoid's serializer, marking this Parsoid only
16141 Empty TR followed by mixed-ws-comment line should RT correctly
16155 <td> <!--c--></td></tr>
16157 <td><!--c--> <!--d--></td></tr>
16163 Multi-line image caption generated by templates with/without trailing newlines
16167 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16168 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16170 <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>
16171 <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>
16175 ## PHP emits broken html for this, and since this is primarily
16176 ## a Parsoid serializer test, marking this Parsoid only
16178 Improperly nested inline or quotes tags with whitespace in between
16182 <span> <s>x</span> </s>
16185 <p><span> <s>x</s></span><s> </s>
16186 <b> <i>x</i></b><i> </i>
16190 # -----------------------------------------------------------------
16191 # The following section of tests are primarily to spec requirements
16192 # around serialization of new/edited content.
16194 # All these tests are marked Parsoid html2wt and html2html only
16195 # ----------------------------------------------------------------
16198 Image: Modifying size of an image
16202 [[Image:Wiki.png|230x230px]]
16204 <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>
16208 Image: New block level image should have \n before and after
16213 [[File:Wiki.png|right|thumb|150x150px]]
16216 <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>
16220 Lists: Add space after bullets
16227 * <span> baz</span>
16232 <li><span> baz</span></li>
16242 Try for 100% code coverage