1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # You can also set the following parser properties via test options:
31 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
32 # wgLinkHolderBatchSize, wgRawHtml
34 # For testing purposes, temporary articles can created:
35 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
36 # where '/' denotes a newline.
38 # This is the standard article assumed to exist.
63 MediaWiki:bad image list
65 * [[File:Bad.jpg]] except [[Nasty page]]
99 Template:echo_with_span
105 Template:echo_with_div
117 Template:table_attribs
120 |</noinclude>style="color: red"| Foo
126 {{table_attribs}} || Bar || Baz
148 This is a simple paragraph.
150 <p>This is a simple paragraph.
155 Paragraphs with extra newline spacing
178 Paragraphs with newline spacing with comment lines in between
186 <!--foo--><!--More than 1 comment disables stripping of this line!-->
243 Paragraphs with newline spacing with non-empty white-space lines in between
270 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
278 <!--foo--><!--More than 1 comment disables stripping of this line!-->
317 Extra newlines: More paragraphs with indented comment
332 Extra newlines followed by heading
347 <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>
348 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
351 <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>
356 Extra newlines between heading and content are swallowed
364 <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>
365 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
372 http://fr.wikipedia.org/wiki/🍺
373 <!-- EasterEgg we love beer, better be able be able to link to it -->
375 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
395 * plain''italic''plain
396 * plain''italic''plain''italic''plain
397 * plain'''bold'''plain
398 * plain'''bold'''plain'''bold'''plain
399 * plain''italic''plain'''bold'''plain
400 * plain'''bold'''plain''italic''plain
401 * plain''italic'''bold-italic'''italic''plain
402 * plain'''bold''bold-italic''bold'''plain
403 * plain'''''bold-italic'''italic''plain
404 * plain'''''bold-italic''bold'''plain
405 * plain''italic'''bold-italic'''''plain
406 * plain'''bold''bold-italic'''''plain
407 * plain l'''italic''plain
408 * plain l''''bold''' plain
411 </li><li> plain<i>italic</i>plain
412 </li><li> plain<i>italic</i>plain<i>italic</i>plain
413 </li><li> plain<b>bold</b>plain
414 </li><li> plain<b>bold</b>plain<b>bold</b>plain
415 </li><li> plain<i>italic</i>plain<b>bold</b>plain
416 </li><li> plain<b>bold</b>plain<i>italic</i>plain
417 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
418 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
419 </li><li> plain<i><b>bold-italic</b>italic</i>plain
420 </li><li> plain<b><i>bold-italic</i>bold</b>plain
421 </li><li> plain<i>italic<b>bold-italic</b></i>plain
422 </li><li> plain<b>bold<i>bold-italic</i></b>plain
423 </li><li> plain l'<i>italic</i>plain
424 </li><li> plain l'<b>bold</b> plain
429 # this example taken from the simple/Moon article
431 Italics and possessives
433 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
435 <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
440 ### 2-quote opening sequence tests
443 Italics and bold: 2-quote opening sequence: (2,2)
453 Italics and bold: 2-quote opening sequence: (2,3)
463 Italics and bold: 2-quote opening sequence: (2,4)
473 Italics and bold: 2-quote opening sequence: (2,5) (php)
482 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
484 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
496 ### 3-quote opening sequence tests
500 Italics and bold: 3-quote opening sequence: (3,2)
510 Italics and bold: 3-quote opening sequence: (3,3)
520 Italics and bold: 3-quote opening sequence: (3,4)
530 Italics and bold: 3-quote opening sequence: (3,5) (php)
539 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
541 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
553 ### 4-quote opening sequence tests
557 Italics and bold: 4-quote opening sequence: (4,2)
567 Italics and bold: 4-quote opening sequence: (4,3)
577 Italics and bold: 4-quote opening sequence: (4,4)
587 Italics and bold: 4-quote opening sequence: (4,5) (php)
596 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
598 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
604 <p>'<b>foo<i></i></b>
610 ### 5-quote opening sequence tests
614 Italics and bold: 5-quote opening sequence: (5,2) (php)
623 # Parsoid reverses the nesting order, compared to the PHP parser
625 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
637 Italics and bold: 5-quote opening sequence: (5,3)
647 Italics and bold: 5-quote opening sequence: (5,4)
651 <p><i><b>foo'</b></i>
657 Italics and bold: 5-quote opening sequence: (5,5)
666 ### multiple quote sequences in a line
669 Italics and bold: multiple quote sequences: (2,4,2)
673 <p><i>foo'<b>bar</b></i>
679 Italics and bold: multiple quote sequences: (2,4,3)
683 <p><i>foo'<b>bar</b></i>
689 Italics and bold: multiple quote sequences: (2,4,4)
693 <p><i>foo'<b>bar'</b></i>
699 Italics and bold: multiple quote sequences: (3,4,2) (php)
708 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
710 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
716 <p><b>foo'</b>bar<i></i>
722 Italics and bold: multiple quote sequences: (3,4,3) (php)
731 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
733 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
739 <p><b>foo'</b>bar<b></b>
744 ### other quote tests
747 Italics and bold: other quote tests: (2,3,5)
749 ''this is about '''foo's family'''''
751 <p><i>this is about <b>foo's family</b></i>
757 Italics and bold: other quote tests: (2,(3,3),2)
759 ''this is about '''foo's''' family''
761 <p><i>this is about <b>foo's</b> family</i>
767 Italics and bold: other quote tests: (3,2,3,2)
769 '''this is about ''foo'''s family''
771 <p><b>this is about <i>foo</i></b><i>s family</i>
776 # The Parsoid team believes the PHP parser's output on this test is wrong.
777 # It only checks for convert-to-bold-on-single-character-word when the word
778 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
779 # This means that the bold token in position 2 (0-indexed) gets converted by
780 # parsoid, but doesn't get changed by the PHP parser.
782 Italics and bold: other quote tests: (3,2,3,3) (php)
786 '''this is about ''foo'''s family'''
788 <p>'<i>this is about </i>foo<b>s family</b>
791 # This is the output the Parsoid team believes to be correct.
793 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
797 '''this is about ''foo'''s family'''
799 <p><b>this is about <i>foo'</i>s family</b>
805 Italics and bold: other quote tests: (3,(2,2),3)
807 '''this is about ''foo's'' family'''
809 <p><b>this is about <i>foo's</i> family</b>
815 Italicized possessive
817 The ''[[Main Page]]'''s talk page.
819 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
824 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
825 (Requires tidy for PHP parser output to be fixed up)
827 parsoid=wt2html,wt2wt
835 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
836 <td><i>a</i></td><td><i>b</i></td></tr>
845 Non-html5 tags should be accepted
847 <center>''foo''</center>
850 <strike>''foo''</strike>
853 <center><i>foo</i></center>
854 <p><big><i>foo</i></big>
855 <font><i>foo</i></font>
856 <strike><i>foo</i></strike>
862 ### <nowiki> test cases
866 <nowiki> unordered list
868 <nowiki>* This is not an unordered list item.</nowiki>
870 <p>* This is not an unordered list item.
877 <nowiki>Lorem ipsum dolor
898 :There is not nowiki.
899 :There is <nowiki>nowiki</nowiki>.
901 #There is not nowiki.
902 #There is <nowiki>nowiki</nowiki>.
904 *There is not nowiki.
905 *There is <nowiki>nowiki</nowiki>.
907 <dl><dd>There is not nowiki.
908 </dd><dd>There is nowiki.
910 <ol><li>There is not nowiki.
911 </li><li>There is nowiki.
913 <ul><li>There is not nowiki.
914 </li><li>There is nowiki.
920 Entities inside <nowiki>
922 <nowiki><</nowiki>
929 Entities inside template parameters
935 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
943 Comments and Indent-Pre
945 <!-- comment 1 --> asdf
947 <!-- comment 1 --> asdf
950 <!-- comment 1 --> asdf
951 <!-- comment 2 -->xyz
953 <!-- comment 1 --> asdf
954 <!-- comment 2 --> xyz
1010 asdf<!-- comment 1 -->jkl
1020 <!-- foo --> b <!-- bar -->
1034 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1040 Comment semantics and delimiters
1042 <!-- --><!----><!-----><!------>
1048 Comment semantics and delimiters, redux
1050 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1051 -- foo -- funky huh? ... -->
1057 Comment semantics and delimiters: directors cut
1059 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1060 everything starting with < followed by !-- until the first -- and > we see,
1061 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1069 Comment semantics: nesting
1071 <!--<!-- no, we're not going to do anything fancy here -->-->
1078 Comment semantics: unclosed comment at end
1080 <!--This comment will run out to the end of the document
1086 Comment in template title
1095 Comment on its own line post-expand
1107 Comment on its own line post-expand with non-significant whitespace
1119 ### paragraph wrapping tests
1133 Block tag on one line
1145 Block tag on both lines
1157 Multiple lines without block tags
1175 Empty lines between lines with block tags
1205 ### Preformatted text
1214 And a [[Main Page|link]]
1220 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1225 Ident preformatting with inline content
1236 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1253 Regression with preformatted in <center>
1266 # Expected output in the following test is not really expected (there should be
1267 # <pre> in the output) -- it's only testing for well-formedness.
1269 Bug 6200: Preformatted in <blockquote>
1282 <pre> with attributes (bug 3202)
1284 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1286 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1291 <pre> with width attribute (bug 3202)
1293 <pre width="8">Narrow screen goodies</pre>
1295 <pre width="8">Narrow screen goodies</pre>
1300 <pre> with forbidden attribute (bug 3202)
1302 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1304 <pre width="8">Narrow screen goodies</pre>
1309 Entities inside <pre>
1318 <pre> with forbidden attribute values (bug 3202)
1320 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1322 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1327 <nowiki> inside <pre> (bug 13238)
1335 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1343 <pre><nowiki>Foo</nowiki></pre>
1348 <nowiki> and <pre> preference (first one wins)
1379 </pre> inside nowiki
1381 <nowiki></pre></nowiki>
1388 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1396 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1406 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1418 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1439 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1443 {{echo| foo}}{{echo| bar}}
1448 {{echo|<!--cmt--> foo}}
1450 <!--cmt-->{{echo| foo}}
1452 {{echo|{{echo| }}bar}}
1470 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1507 Templates: Single-line variant of parameter whitespace stripping test
1513 {{echo|{{echo| a}}}}
1515 {{echo|1={{echo| a}}}}
1528 Templates: Strip whitespace from named parameters, but not positional ones
1556 Templates: Dont strip whitespace from whitespace/comment-only arguments
1560 {{echo| <!--cmt--> }}
1567 Templates: Parsoid parameter escaping test 1
1571 {{echo|[foo]|{{echo|[bar]}}}}
1573 <p about="#mwt1" typeof="mw:Transclusion"
1574 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1578 Parsoid: Pipes in external links in template parameter
1582 {{echo|[{{echo|http://example.com}} link]}}
1584 <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>
1588 Parsoid: pipe in transclusion parameter
1592 {{echo|http://foo.com/a|b}}
1594 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1595 typeof="mw:Transclusion"
1596 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>
1600 Parsoid: Pipe in external link target and content in template parameter
1602 parsoid=html2wt,wt2wt
1604 {{echo|[http://foo.com/a|b a|b]}}
1606 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1607 typeof="mw:Transclusion"
1608 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1609 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1613 Templates: Dont escape already nowiki-escaped text in template parameters
1615 parsoid=html2wt,wt2wt
1617 {{echo|foo<nowiki>|</nowiki>bar}}
1619 <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>
1623 ### Parsoid-centric tests for testing RT edge cases for pre
1627 1a. Indent-Pre and Comments
1640 1b. Indent-Pre and Comments
1653 1c. Indent-Pre and Comments
1666 2a. Indent-Pre and tables
1687 2b. Indent-Pre and tables
1703 2c. Indent-Pre and tables (bug 42252)
1720 3a. Indent-Pre and block tags (single-line html)
1728 <pre><span> foo </span>
1733 3b. Indent-Pre and block tags (pre-content on separate line)
1785 4. Multiple spaces at start-of-line
1804 5. White-space in indent-pre
1805 NOTE: the white-space char on 2nd line is significant
1818 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1822 HTML-pre: 1. embedded newlines
1858 HTML-pre: 2: indented text
1871 HTML-pre: 3: other wikitext
1892 ### Definition lists
1899 <dl><dt> name </dt><dd> Definition
1905 Definition list for indentation only
1909 <dl><dd> Indented text
1915 Definition list with no space
1919 <dl><dt>name</dt><dd>Definition
1925 Definition list with URL link
1927 ; http://example.com/ : definition
1929 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1935 Definition list with bracketed URL link
1937 ;[http://www.example.com/ Example]:Something about it
1939 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1945 Definition list with wikilink containing colon
1947 ; [[Help:FAQ]]: The least-read page on Wikipedia
1949 <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
1954 # At Brion's and JeLuF's insistence... :)
1956 Definition list with news link containing colon
1958 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1960 <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!
1966 Malformed definition list with colon
1968 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1970 <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
1976 Definition lists: colon in external link text
1978 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1980 <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
1986 Definition lists: colon in HTML attribute
1988 ;<b style="display: inline">bold</b>
1990 <dl><dt><b style="display: inline">bold</b>
1996 Definition lists: self-closed tag
1998 ;one<br/>two : two-line fun
2000 <dl><dt>one<br />two </dt><dd> two-line fun
2006 Bug 11748: Literal closing tags
2010 <dd>test test test test test</dd>
2012 <dd>test test test test test</dd>
2017 <dd>test test test test test</dd>
2019 <dd>test test test test test</dd>
2025 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2028 ; term : description
2034 <dl><dt> term </dt><dd> description
2045 Definition list with empty definition and following paragraph
2050 <dl><dt> term</dt><dd>
2057 Nested definition lists using html syntax
2074 Definition Lists: No nesting: Multiple dd's
2088 Definition Lists: Indentation: Regular
2104 Definition Lists: Indentation: Missing 1st level
2118 Definition Lists: Indentation: Multi-level indent
2122 <dl><dd><dl><dd><dl><dd>i3
2130 Definition Lists: Hacky use to indent tables
2137 should be left alone
2139 <dl><dd><dl><dd><table>
2144 </td></tr></table></dd></dl></dd></dl>
2146 should be left alone
2149 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2150 ## as an empty dt item. It also ignores all but the last ";" when followed
2151 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2152 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2155 ## Ex: ";;t2 ::d2" is transformed into:
2167 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2168 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2179 ## All Parsoid only definition list tests have this difference.
2181 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2182 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2185 Table / list interaction: indented table with lists in table contents
2207 </td></tr></table></dd></dl>
2212 Table / list interaction: lists nested in tables nested in indented lists
2237 </td></tr></table></dd></dl>
2245 Definition Lists: Nesting: Multi-level (Parsoid only)
2275 Definition Lists: Nesting: Test 2 (Parsoid only)
2295 Definition Lists: Nesting: Test 3 (Parsoid only)
2323 Definition Lists: Nesting: Test 4
2328 <dl><dd><dl><dd><dl><dt>t3
2337 ## The Parsoid team believes the following three test exposes a
2338 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2339 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2341 Definition Lists: Mixed Lists: Test 1 (php)
2349 <dl><dd><dl><dt><ul><li> foo
2359 Definition Lists: Mixed Lists: Test 1 (parsoid)
2367 <dl><dd><dl><dt><ul><li> foo
2368 </li></ul></dt><dd><ul><li> bar
2369 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2373 Definition Lists: Mixed Lists: Test 2
2387 Definition Lists: Mixed Lists: Test 3
2392 <ul><li><dl><dd><dl><dd><dl><dd> d1
2403 Definition Lists: Mixed Lists: Test 4
2408 <ul><li><dl><dt>d1 </dt><dd>d2
2409 </dd><dt>d3 </dt><dd>d4
2417 Definition Lists: Mixed Lists: Test 5
2432 Definition Lists: Mixed Lists: Test 6
2437 <ol><li><ul><li><dl><dd>d1
2449 Definition Lists: Mixed Lists: Test 7
2463 Definition Lists: Mixed Lists: Test 8
2479 Definition Lists: Mixed Lists: Test 9
2483 <ul><li><dl><dt>foo </dt><dd>bar
2491 Definition Lists: Mixed Lists: Test 10
2495 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2502 # The Parsoid team disagrees with the PHP parser's seemingly-random
2503 # rules regarding dd/dt on the next two tests. Parsoid is more
2504 # consistent, and recognizes the shared nesting and keeps the
2505 # still-open tags around until the nesting is complete.
2508 Definition Lists: Mixed Lists: Test 11 (php)
2515 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2520 <dl><dt>boo </dt><dd>baz
2529 Definition Lists: Mixed Lists: Test 11 (parsoid)
2551 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2552 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2553 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2554 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2559 Definition Lists: Weird Ones: Test 1 (php)
2563 *#;*::;; foo : bar (who uses this?)
2565 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2577 Definition Lists: Weird Ones: Test 1 (parsoid)
2581 *#;*::;; foo : bar (who uses this?)
2598 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2599 <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>
2606 External links: non-bracketed
2608 Non-bracketed: http://example.com
2610 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2615 External links: numbered
2617 Numbered: [http://example.com]
2618 Numbered: [http://example.net]
2619 Numbered: [http://example.com]
2621 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2622 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2623 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2628 External links: specified text
2630 Specified text: [http://example.com link]
2632 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2637 External links: trail
2639 Linktrails should not work for external links: [http://example.com link]s
2641 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2646 External links: dollar sign in URL
2648 http://example.com/1$2345
2650 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2655 External links: dollar sign in URL (named)
2657 [http://example.com/1$2345]
2659 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2664 External links: open square bracket forbidden in URL (bug 4377)
2666 http://example.com/1[2345
2668 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2673 External links: open square bracket forbidden in URL (named) (bug 4377)
2675 [http://example.com/1[2345]
2677 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2682 External links: nowiki in URL link text (bug 6230)
2684 [http://example.com/ <nowiki>''example site''</nowiki>]
2686 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2691 External links: newline forbidden in text (bug 6230 regression check)
2693 [http://example.com/ first
2696 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2702 External links: Pipe char between url and text
2704 [http://example.com | link]
2706 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2711 External links: protocol-relative URL in brackets
2713 [//example.com/ Test]
2715 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2720 External links: protocol-relative URL in brackets without text
2724 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2729 External links: protocol-relative URL in free text is left alone
2733 <p>//example.com/Foo
2738 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2740 foo//example.com/Foo
2742 <p>foo//example.com/Foo
2749 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2751 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2756 External image from https
2758 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2760 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2765 External image (when not allowed)
2767 wgAllowExternalImages=0
2769 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2771 <p>External image: <a rel="nofollow" class="external free" href="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png">http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png</a>
2776 Link to non-http image, no img tag
2778 Link to non-http image, no img tag: ftp://example.com/test.jpg
2780 <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>
2785 External links: terminating separator
2787 Terminating separator: http://example.com/thing,
2789 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2794 External links: intervening separator
2796 Intervening separator: http://example.com/1,2,3
2798 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2803 External links: old bug with URL in query
2805 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2807 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2812 External links: old URL-in-URL bug, mixed protocols
2814 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2816 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2821 External links: URL in text
2823 URL in text: [http://example.com http://example.com]
2825 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2830 External links: Clickable images
2832 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2834 <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>
2839 External links: raw ampersand
2841 Old & use: http://x&y
2843 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2848 External links: encoded ampersand
2850 Old & use: http://x&y
2852 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2857 External links: encoded equals (bug 6102)
2859 http://example.com/?foo=bar
2861 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2866 External links: [raw ampersand]
2868 Old & use: [http://x&y]
2870 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2875 External links: [encoded ampersand]
2877 Old & use: [http://x&y]
2879 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2884 External links: [encoded equals] (bug 6102)
2886 [http://example.com/?foo=bar]
2888 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2893 External links: [IDN ignored character reference in hostname; strip it right off]
2895 [http://e‌xample.com/]
2897 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2901 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2902 # Where an external link could easily circumvent the sanitization of the text of
2903 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2904 # test demands a higher standard. That's a bit strange.
2908 # http://example.com -> [http://example.com|http://example.com]
2909 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2911 # The first example is sanitized, but the second is not. Any security benefits
2912 # from this production are trivial to circumvent. Either remove this test and
2913 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2914 # the test accordingly.
2919 External links: IDN ignored character reference in hostname; strip it right off
2921 http://e‌xample.com/
2923 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2928 External links: www.jpeg.org (bug 554)
2932 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2937 External links: URL within URL (original bug 2)
2939 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2941 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2946 BUG 361: URL inside bracketed URL
2948 [http://www.example.com/foo http://www.example.com/bar]
2950 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2955 BUG 361: URL within URL, not bracketed
2957 http://www.example.com/foo?=http://www.example.com/bar
2959 <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>
2964 BUG 289: ">"-token in URL-tail
2966 http://www.example.com/<hello>
2968 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2973 BUG 289: literal ">"-token in URL-tail
2975 http://www.example.com/<b>html</b>
2977 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2982 BUG 289: ">"-token in bracketed URL
2984 [http://www.example.com/<hello> stuff]
2986 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2991 BUG 289: literal ">"-token in bracketed URL
2993 [http://www.example.com/<b>html</b> stuff]
2995 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3000 BUG 289: literal double quote at end of URL
3002 http://www.example.com/"hello"
3004 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3009 BUG 289: literal double quote in bracketed URL
3011 [http://www.example.com/"hello" stuff]
3013 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3018 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3020 [http://www.example.com test]
3022 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3027 External links: link text with spaces
3029 [http://www.example.com a b c]
3030 [http://www.example.com ''a'' ''b'']
3032 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3033 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3038 External links: wiki links within external link (Bug 3695)
3040 [http://example.com [[wikilink]] embedded in ext link]
3042 <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>
3047 BUG 787: Links with one slash after the url protocol are invalid
3051 [http:/example.com title]
3053 <p>http:/example.com
3054 </p><p>[http:/example.com title]
3059 Bracketed external links with template-generated invalid target
3061 [{{echo|http:/example.com}} title]
3063 <p>[http:/example.com title]
3068 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3070 ''[http://example.com text'']
3071 [http://example.com '''text]'''
3072 ''Something [http://example.com in italic'']
3073 ''Something [http://example.com mixed''''', even bold]'''
3074 '''''Now [http://example.com both''''']
3076 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3077 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3078 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3079 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3080 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3086 Bug 4781: %26 in URL
3088 http://www.example.com/?title=AT%26T
3090 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3094 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3095 # % is actually legal in HTML5. Any change in output would need testing though.
3097 Bug 4781, 5267: %25 in URL
3099 http://www.example.com/?title=100%25_Bran
3101 <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>
3106 Bug 4781, 5267: %28, %29 in URL
3108 http://www.example.com/?title=Ben-Hur_%281959_film%29
3110 <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>
3116 Bug 4781: %26 in autonumber URL
3118 [http://www.example.com/?title=AT%26T]
3120 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3125 Bug 4781, 5267: %26 in autonumber URL
3127 [http://www.example.com/?title=100%25_Bran]
3129 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3134 Bug 4781, 5267: %28, %29 in autonumber URL
3136 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3138 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3144 Bug 4781: %26 in bracketed URL
3146 [http://www.example.com/?title=AT%26T link]
3148 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3153 Bug 4781, 5267: %26 in bracketed URL
3155 [http://www.example.com/?title=100%25_Bran link]
3157 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3162 Bug 4781, 5267: %28, %29 in bracketed URL
3164 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3166 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3171 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3173 Some [http://example.com/ pretty ''italics'' and stuff]!
3175 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3180 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3182 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3184 <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>
3189 External link containing double-single-quotes with no space separating the url from text in italics
3191 [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]].]
3193 <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>
3198 External link with comments in link text
3200 [http://www.google.com Google <!-- comment -->]
3202 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3207 URL-encoding in URL functions (single parameter)
3209 {{localurl:Some page|amp=&}}
3211 <p>/index.php?title=Some_page&amp=&
3216 URL-encoding in URL functions (multiple parameters)
3218 {{localurl:Some page|q=?&=&}}
3220 <p>/index.php?title=Some_page&q=?&amp=&
3227 http://example.com/index.php?foozoid%5B%5D=bar
3229 http://example.com/index.php?foozoid[]=bar
3231 <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>
3232 </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>
3237 IPv6 urls (bug 21261)
3241 http://[2404:130:0:1000::187:2]/index.php
3243 <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>
3248 Non-extlinks in brackets
3257 [{{echo|foo}} ''bar'']
3258 [{{echo|foo}}l's] errand
3259 [{{echo|foo}}l's errand]
3261 [url=http://example.com]
3274 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3279 Parsoid: Percent encoding in external links
3283 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3285 <p><a rel="mw:ExtLink"
3286 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3290 Parsoid: use url link syntax for links where the content is equal the link
3297 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3307 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3309 Normal text. '''''Bold italic text.''''' Normal text.
3311 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3312 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3318 Unclosed and unmatched quotes (php)
3322 '''''Bold italic text '''with bold deactivated''' in between.'''''
3324 '''''Bold italic text ''with italic deactivated'' in between.'''''
3328 ..spanning two paragraphs (should not work).'''
3330 '''Bold tag left open
3332 ''Italic tag left open
3336 <!-- Unmatching number of opening, closing tags: -->
3337 '''This year''''s election ''should'' beat '''last year''''s.
3339 ''Tom'''s car is bigger than ''Susan'''s.
3341 Plain ''italic'''s plain
3343 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3344 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3345 </p><p><b>Bold text..</b>
3346 </p><p>..spanning two paragraphs (should not work).
3347 </p><p><b>Bold tag left open</b>
3348 </p><p><i>Italic tag left open</i>
3350 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3351 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3352 </p><p>Plain <i>italic'</i>s plain
3355 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3356 # parser strips. The wikitext contains just the first half of the bold
3357 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3358 # differently than the PHP parser.)
3360 Unclosed and unmatched quotes (parsoid)
3364 '''''Bold italic text '''with bold deactivated''' in between.'''''
3366 '''''Bold italic text ''with italic deactivated'' in between.'''''
3370 ..spanning two paragraphs (should not work).'''
3372 '''Bold tag left open
3374 ''Italic tag left open
3378 <!-- Unmatching number of opening, closing tags: -->
3379 '''This year''''s election ''should'' beat '''last year''''s.
3381 ''Tom'''s car is bigger than ''Susan'''s.
3383 Plain ''italic'''s plain
3385 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3386 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3387 </p><p><b>Bold text..</b>
3388 </p><p>..spanning two paragraphs (should not work).<b></b>
3389 </p><p><b>Bold tag left open</b>
3390 </p><p><i>Italic tag left open</i>
3392 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3393 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3394 </p><p>Plain <i>italic'</i>s plain
3401 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3404 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3405 # is the bare minimum required by the spec, see:
3406 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3408 A table with no data. (php)
3415 # Parsoid team replies: empty table tags are legal in HTML5
3417 A table with no data. (parsoid)
3426 # A table with nothing but a caption is invalid XHTML, we might want to render
3427 # this as <p>caption</p>
3429 A table with nothing but a caption (php)
3439 </caption><tr><td></td></tr></table>
3442 # Parsoid team replies: table with only a caption is legal in HTML5
3444 A table with nothing but a caption (parsoid)
3452 <table><caption> caption</caption></table>
3456 A table with caption with default-spaced attributes and a table row
3459 |+ style="color: red;" | caption1
3465 <caption style="color: red;"> caption1
3474 A table with captions with non-default spaced attributes and a table row
3477 |+style="color: red;"|caption2
3478 |+ style="color: red;"| caption3
3484 <caption style="color: red;">caption2
3486 <caption style="color: red;"> caption3
3495 Table td-cell syntax variations
3499 | foo bar foo || baz
3500 | style='color:red;' | baz
3501 | style='color:red;' || baz
3508 <td> foo bar foo </td>
3511 <td style="color:red;"> baz
3513 <td> style='color:red;' </td>
3541 Simple table but with multiple dashes for row wikitext
3559 Multiplication table
3561 {| border="1" cellpadding="2"
3562 |+Multiplication table
3564 ! × !! 1 !! 2 !! 3
3582 <table border="1" cellpadding="2">
3583 <caption>Multiplication table
3630 Accept "||" in table headings
3645 Accept "||" in indented table headings
3655 </th></tr></table></dd></dl>
3660 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3677 Accept "| !" at start of line in tables (ignore !-attribute)
3681 | !style="color:red" | bar
3693 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 +/-
3697 |style='color:red;'|+1
3698 |style='color:blue;'|-1
3710 <td style="color:red;">+1
3712 <td style="color:blue;">-1
3736 |rowspan=2| Cell 2, row 1 (and 2)
3747 <td rowspan="2"> Cell 2, row 1 (and 2)
3765 {| bgcolor=#ABCDEF border=2
3770 |the original table again
3778 <table bgcolor="#ABCDEF" border="2">
3786 <td>the original table again
3792 Invalid attributes in table cell (bug 1830)
3807 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3810 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3814 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3815 <td>]" onmouseover="alert(document.cookie)">test
3824 Indented table markup mixed with indented pre content (proposed in bug 6200)
3829 Text that should be rendered preformatted
3837 <pre>Text that should be rendered preformatted
3846 Template-generated table cell attributes and cell content
3854 <td style="color: red"> Foo
3860 Template-generated table cell attributes and cell content (2)
3863 |align=center {{table_attribs}}
3868 <td align="center" style="color: red"> Foo
3874 Template-generated table cell attributes and cell content (3)
3877 |align=center {{table_cells}}
3882 <td align="center" style="color: red"> Foo </td>
3890 Table with row followed by newlines and table heading
3908 Table with empty line following the start tag
3925 # FIXME: Preserve the attribute properly (with an empty string as value) in
3926 # the PHP parser. Parsoid implements the behavior below.
3928 Table attributes with empty value
3940 </td></tr></tbody></table>
3945 Wikitext table with a lot of comments
3968 Wikitext table with double-line table cell
3985 Table cell with a single comment
4001 # The expected HTML structure in this test is debatable. The PHP parser does
4002 # not parse this kind of table at all. The main focus for Parsoid is on
4003 # round-tripping, so this output is ok for now. TODO: revisit!
4005 Wikitext table with html-syntax row (Parsoid)
4017 <td>foo</td></tr></tbody></table>
4021 Implicit <td> after a |-
4022 (PHP parser relies on Tidy to add the missing <td> tags)
4024 parsoid=wt2html,wt2wt
4037 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4038 (PHP parser relies on Tidy to add the missing <td> tags)
4040 parsoid=wt2html,wt2wt
4052 <tr><td><pre>a</pre></td></tr>
4053 <tr><td> b</td></tr>
4059 Lists should be recognized in an implicit <td> context
4060 (PHP parser relies on Tidy to add the missing <td> tags)
4062 parsoid=wt2html,wt2wt
4071 <td><ul><li>a</li></ul></td>
4080 Plain link, capitalized
4084 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4089 Plain link, uncapitalized
4093 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4100 [[Main Page|The Main Page]]
4102 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4107 Piped link with comment in link text
4109 [[Main Page|The Main<!--front--> Page]]
4111 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4120 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4125 Broken link with fragment
4127 [[Zigzagzogzagzig#zug]]
4129 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4134 Special page link with fragment
4136 [[Special:Version#anchor]]
4138 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4143 Nonexistent special page link with fragment
4145 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4147 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4154 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4156 <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>
4163 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4165 <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>!!!
4176 Bug 43661: Piped links with identical prefixes
4178 [[prefixed article|prefixed articles with spaces]]
4180 [[prefixed article|prefixed articlesaoeu]]
4182 [[Main Page|Main Page test]]
4184 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4185 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4186 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4192 Link with HTML entity in suffix / tail
4194 [[Main Page]]", [[Main Page]]a
4196 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4201 Link with 3 brackets
4210 Piped link with 3 brackets
4212 [[[main page|the main page]]]
4214 <p>[[[main page|the main page]]]
4219 Link with multiple pipes
4221 [[Main Page|The|Main|Page]]
4223 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4230 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4232 <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>
4237 Piped link to namespace
4239 [[Meta:Disclaimers|The disclaimers]]
4241 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4248 [[Usually caused by a typo (oops}]]
4250 <p>[[Usually caused by a typo (oops}]]
4255 Link containing % (not as a hex sequence)
4259 <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>
4264 Link containing % as a single hex sequence interpreted to char
4268 <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>
4273 Link containing % as a double hex sequence interpreted to hex sequence
4277 <p>[[7%2525 Solution]]
4282 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4283 Example for such a section: == < ==
4285 [[%23%3c]][[%23%3e]]
4287 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4292 Link containing "<#" and ">#" as a hex sequences
4294 [[%3c%23]][[%3e%23]]
4296 <p>[[%3c%23]][[%3e%23]]
4301 Link containing an equals sign
4303 [[Special:BookSources/isbn=4-00-026157-6]]
4305 <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>
4312 Just a test of an article title containing a tilde.
4315 # note that links containing signatures, like [[Foo~~~~]], are
4316 # massaged by the pre-save transform (PST) and so the tildes are never
4317 # seen by the parser.
4319 Link containing a tilde
4323 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4328 Link containing double-single-quotes '' (bug 4598)
4330 [[Lista d''e paise d''o munno]]
4332 <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>
4337 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4339 Some [[Link|pretty ''italics'' and stuff]]!
4341 <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>!
4346 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4348 ''Some [[Link|pretty ''italics'' and stuff]]!
4350 <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>
4355 Link with double quotes in title part (literal) and alternate part (interpreted)
4357 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4361 [[''Pentecoste''|Pentecoste]]
4363 [[''Pentecoste''|''Pentecoste'']]
4365 <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>
4366 </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>
4367 </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>
4368 </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>
4373 Broken image links with HTML captions (bug 39700)
4375 [[File:Nonexistent|<script></script>]]
4376 [[File:Nonexistent|100px|<script></script>]]
4377 [[File:Nonexistent|<]]
4378 [[File:Nonexistent|a<i>b</i>c]]
4380 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4381 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4382 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4383 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4390 [[http://www.example.com]]
4392 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4397 Plain link to URL with link text
4399 [[http://www.example.com Link text]]
4401 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4406 Plain link to protocol-relative URL
4408 [[//www.example.com]]
4410 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4415 Plain link to protocol-relative URL with link text
4417 [[//www.example.com Link text]]
4419 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4424 Plain link to page with question mark in title
4430 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4431 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4436 # I'm fairly sure the expected result here is wrong.
4437 # We want these to be URL links, not pseudo-pages with URLs for titles....
4438 # However the current output is also pretty screwy.
4441 # I'm changing it to match the current output--it arguably makes more
4442 # sense in the light of the test above. Old expected result was:
4443 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4445 # But I think this test is bordering on "garbage in, garbage out" anyway.
4450 Piped link to URL: [[http://www.example.com|an example URL]]
4452 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4457 BUG 2: [[page|http://url/]] should link to page, not http://url/
4459 [[Main Page|http://url/]]
4461 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4466 BUG 337: Escaped self-links should be bold
4470 [[Bug462]] [[Bug462]]
4472 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4477 Self-link to section should not be bold
4481 [[Main Page#section]]
4483 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4494 Self-link to numeric title
4500 <p><strong class="selflink">0</strong>
4505 Link to numeric-equivalent title
4511 <p><a href="/wiki/00" title="00">00</a>
4516 <nowiki> inside a link
4518 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4520 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4525 Non-breaking spaces in title
4527 [[ Main Page ]]
4529 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4534 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4540 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4545 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4551 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4556 Internal link with en linktrail: no apostrophes (bug 27473)
4562 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4567 Internal link with ca linktrail with apostrophes (bug 27473)
4573 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4578 Internal link with kaa linktrail with apostrophes (bug 27473)
4584 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4595 Internal link with is link prefix
4599 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4601 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4612 Internal link with is link trail and link prefix
4616 [[mótmælendatrú|xxx]]ar
4618 mótmælenda[[söfnuður]]
4619 mótmælenda[[söfnuður|söfnuðir]]
4620 mótmælenda[[söfnuður|söfnuðir]]xxx
4622 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4623 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4624 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4625 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4626 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4631 Parsoid link trail escaping
4633 parsoid=html2wt,html2html
4637 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4641 Parsoid link prefix escaping
4644 parsoid=html2wt,html2html
4646 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4648 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4652 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4660 [http://wp.org ''foo'']
4662 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4663 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4664 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4665 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4670 ### Interwiki links (see maintenance/interwiki.sql)
4674 Inline interwiki link
4676 [[MeatBall:SoftSecurity]]
4678 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4683 Inline interwiki link with empty title (bug 2372)
4687 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4692 Interwiki link encoding conversion (bug 1636)
4694 *[[Wikipedia:ro:Olteniţa]]
4695 *[[Wikipedia:ro:Olteniţa]]
4697 <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>
4698 </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>
4704 Interwiki link with fragment (bug 2130)
4706 [[MeatBall:SoftSecurity#foo]]
4708 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4723 Double interlanguage link
4734 Interlanguage link, with prefix links
4746 Double interlanguage link, with prefix links (bug 8897)
4759 Parsoid-specific test: Wikilinks with should RT properly
4765 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4770 Parsoid: handle constructor well
4778 <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>
4781 <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>
4785 ## Redirects, Parsoid-only
4788 Simple redirect to page
4792 #REDIRECT [[Main Page]]
4794 <link rel="mw:PageProp/redirect" href="./Main_Page">
4798 Redirect to category
4802 #REDIRECT [[Category:Foo]]
4804 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4808 Redirect to category page
4810 parsoid=wt2html,html2html
4812 #REDIRECT [[:Category:Foo]]
4814 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4818 Redirect to image page
4822 #REDIRECT [[File:Wiki.png]]
4824 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4828 Redirect to language
4832 #REDIRECT [[en:File:Wiki.png]]
4834 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4838 Redirect to interwiki
4842 #REDIRECT [[meatball:File:Wiki.png]]
4844 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4861 Broken br tag sanitization
4871 # TODO: Fix html2html mode (bug 51055)!
4873 Parsoid: Broken br tag recognition
4883 Incorrecly removing closing slashes from correctly formed XHTML
4885 <br style="clear:both;" />
4887 <p><br style="clear:both;" />
4892 Failing to transform badly formed HTML into correct XHTML
4894 <br style="clear: left;">
4895 <br style="clear: right;">
4896 <br style="clear: both;">
4898 <p><br style="clear: left;" />
4899 <br style="clear: right;" />
4900 <br style="clear: both;" />
4905 Handling html with a div self-closing tag
4914 <p><div title />
4918 <p><div title=bar />
4919 <div title=bar/>
4921 <div title="bar/"></div>
4927 Handling html with a br self-closing tag
4936 <p><br title="title" />
4937 <br title="title" />
4946 Horizontal ruler (should it add that extra space?)
4960 Horizontal ruler -- 4+ dashes render hr
4969 Horizontal ruler -- eats additional dashes on the same line
4978 Horizontal ruler -- does not collapse dashes on consecutive lines
4989 Horizontal ruler -- <4 dashes render as plain text
4998 Horizontal ruler -- Supports content following dashes on same line
5007 ### Block-level elements
5030 <ol><li>Numbered list
5047 ***#Number on level 4
5049 **#Number on level 3
5050 **#Number on level 3
5054 #** Level 3, but ordered
5057 <ol><li> with numbers
5059 <ul><li> and bullets
5061 <ol><li> and numbers
5063 </li><li>bullets again
5064 <ul><li>bullet level 2
5065 <ul><li>bullet level 3
5066 <ol><li>Number on level 4
5069 </li><li>bullet level 2
5070 <ol><li>Number on level 3
5071 </li><li>Number on level 3
5074 <ol><li>number level 2
5077 <ul><li><ul><li> Level 3
5081 <ol><li><ul><li><ul><li> Level 3, but ordered
5115 Nested lists 3 (first element empty)
5128 Nested lists 4 (first element empty)
5141 Nested lists 5 (both elements empty)
5154 Nested lists 6 (both elements empty)
5167 Nested lists 7 (skip initial nesting levels)
5171 <ul><li><ul><li><ul><li> foo
5179 Nested lists 8 (multiple nesting transitions)
5187 <ul><li><ul><li> bar
5197 1. Lists with start-of-line-transparent tokens before bullets: Comments
5211 2. Lists with start-of-line-transparent tokens before bullets: Template close
5223 Unbalanced closing block tags break a list
5224 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5234 </li></ul></div><div>
5240 Unbalanced closing non-block tags don't break a list
5241 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5251 <ul><li>a<span></span>
5257 Unclosed formatting tags that straddle lists are closed and reopened
5258 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5266 </li><li> <s> b </s>
5271 List embedded in a non-block tag
5272 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5280 <p><small></small></p>
5286 <p><small></small></p>
5290 List items are not parsed correctly following a <pre> block (bug 785)
5296 <ul><li> <pre>foo</pre>
5297 </li><li> <pre>bar</pre>
5304 List items from template
5315 * notSOL{{inner list}}
5334 List interrupted by empty line or heading
5344 <ul><li><ul><li> bar
5347 <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>
5348 <ul><li> Another list item
5354 Multiple list tags generated by templates
5369 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5372 <!--This line will NOT split the list-->
5374 <!--This line will NOT split the list either-->
5376 <!--foo--> <!--This line with more than 1 comment will split the list-->
5390 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5392 parsoid=wt2html,wt2wt
5396 * {{echo|<li>templated li-hack}}
5397 * <!--foo--> <li> unsupported li-hack with preceding comments
5400 <li><li>not a li-hack
5406 <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>
5407 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5410 <li></li><li>not a li-hack
5416 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5427 <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>
5436 Magic Word: {{CURRENTDAY}}
5445 Magic Word: {{CURRENTDAY2}}
5454 Magic Word: {{CURRENTDAYNAME}}
5463 Magic Word: {{CURRENTDOW}}
5472 Magic Word: {{CURRENTMONTH}}
5481 Magic Word: {{CURRENTMONTHABBREV}}
5483 {{CURRENTMONTHABBREV}}
5490 Magic Word: {{CURRENTMONTHNAME}}
5492 {{CURRENTMONTHNAME}}
5499 Magic Word: {{CURRENTMONTHNAMEGEN}}
5501 {{CURRENTMONTHNAMEGEN}}
5508 Magic Word: {{CURRENTTIME}}
5517 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5526 Magic Word: {{CURRENTYEAR}}
5535 Magic Word: {{FULLPAGENAME}}
5537 title=[[User:Ævar Arnfjörð Bjarmason]]
5541 <p>User:Ævar Arnfjörð Bjarmason
5546 Magic Word: {{FULLPAGENAMEE}}
5548 title=[[User:Ævar Arnfjörð Bjarmason]]
5552 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5557 Magic Word: {{NAMESPACE}}
5559 title=[[User:Ævar Arnfjörð Bjarmason]]
5568 Magic Word: {{NAMESPACEE}}
5570 title=[[User:Ævar Arnfjörð Bjarmason]]
5579 Magic Word: {{NAMESPACENUMBER}}
5581 title=[[User:Ævar Arnfjörð Bjarmason]]
5590 Magic Word: {{NUMBEROFFILES}}
5599 Magic Word: {{PAGENAME}}
5601 title=[[User:Ævar Arnfjörð Bjarmason]]
5605 <p>Ævar Arnfjörð Bjarmason
5610 Magic Word: {{PAGENAME}} with metacharacters
5612 title=[['foo & bar = baz']]
5616 <p><i>'foo & bar = baz'</i>
5621 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5623 title=[[*RFC 1234 http://example.com/]]
5627 <p>*RFC 1234 http://example.com/
5632 Magic Word: {{PAGENAMEE}}
5634 title=[[User:Ævar Arnfjörð Bjarmason]]
5638 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5643 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5645 title=[[*RFC 1234 http://example.com/]]
5649 <p>*RFC_1234_http://example.com/
5654 Magic Word: {{REVISIONID}}
5663 Magic Word: {{SCRIPTPATH}}
5672 Magic Word: {{SERVER}}
5676 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5681 Magic Word: {{SERVERNAME}}
5690 Magic Word: {{SITENAME}}
5699 Case-sensitive magic words, when cased differently, should just be template transclusions
5706 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5707 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5708 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5709 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5714 Case-insensitive magic words should still work with weird casing.
5724 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5729 Namespace 1 {{ns:1}}
5738 Namespace 1 {{ns:01}}
5747 Namespace 0 {{ns:0}} (bug 4783)
5755 Namespace 0 {{ns:00}} (bug 4783)
5763 Namespace -1 {{ns:-1}}
5772 Namespace User {{ns:User}}
5781 Namespace User talk {{ns:User_talk}}
5790 Namespace User talk {{ns:uSeR tAlK}}
5799 Namespace File {{ns:File}}
5808 Namespace File {{ns:Image}}
5817 Namespace (lang=de) Benutzer {{ns:User}}
5828 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5834 <p>Benutzer Diskussion
5842 {{urlencode:hi world?!}}
5843 {{urlencode:hi world?!|WIKI}}
5844 {{urlencode:hi world?!|PATH}}
5845 {{urlencode:hi world?!|QUERY}}
5858 Magic links: internal link to RFC (bug 479)
5862 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5867 Magic links: RFC (bug 479)
5871 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5876 Magic links: ISBN (bug 1937)
5880 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5885 Magic links: PMID incorrectly converts space to underscore
5889 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5898 Nonexistent template
5900 {{thistemplatedoesnotexist}}
5902 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5907 Template with invalid target containing tags
5909 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5911 <p>{{a<b>b</b>|foo|a=b|a = b}}
5916 Template with invalid target containing unclosed tag
5918 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5920 <p>{{a<b>|foo|a=b|a = b}}</b>
5927 This is a test template
5935 <p>This is a test template
5940 Template with explicit namespace
5944 <p>This is a test template
5952 This is a test template with parameter {{{param}}}
5958 {{paramtest|param=foo}}
5960 <p>This is a test template with parameter foo
5965 Template:paramtestnum
5971 Template unnamed parameter
5973 {{paramtestnum|Main Page|the main page}}
5975 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5980 Template:templatesimple
5986 Template:templateredirect
5988 #redirect [[Template:templatesimple]]
5992 Template:templateasargtestnum
5998 Template:templateasargtest
6000 {{template{{{templ}}}}}
6004 Template:templateasargtest2
6010 Template with template name as unnamed argument
6012 {{templateasargtestnum|templatesimple}}
6019 Template with template name as argument
6021 {{templateasargtest|templ=simple}}
6028 Template with template name as argument (2)
6030 {{templateasargtest2|templ=templatesimple}}
6037 Template:templateasargtestdefault
6039 {{{{{templ|templatesimple}}}}}
6049 Template with default value
6051 {{templateasargtestdefault}}
6058 Template with default value (value set)
6060 {{templateasargtestdefault|templ=templa}}
6069 {{templateredirect}}
6076 Template with argument in separate line
6078 {{ templateasargtest |
6086 Template with complex template as argument
6089 param ={{ templateasargtest |
6092 <p>This is a test template with parameter (test)
6097 Template with thumb image (with link in description)
6100 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6102 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>
6107 Template:complextemplate
6109 {{{1}}} {{paramtest|
6110 param ={{{param}}}}}
6114 Template with complex arguments
6117 param ={{ templateasargtest |
6118 templ = simple }}|[[Template:complextemplate|link]]}}
6120 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6125 BUG 553: link with two variables in a piped link
6128 |[[{{{1}}}|{{{2}}}]]
6133 <td>[[{{{1}}}|{{{2}}}]]
6139 Magic variable as template parameter
6141 {{paramtest|param={{SITENAME}}}}
6143 <p>This is a test template with parameter MediaWiki
6150 [[{{{param}}}|link]]
6154 Template parameter as link source
6156 {{linktest|param=Main Page}}
6158 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6163 Template-generated attribute string (k='v')
6165 <span {{attr_str|id|v1}}>bar</span>
6167 <p><span id="v1">bar</span>
6174 including another template, {{paramtest|param={{{arg}}}}}
6178 Template passing argument to another template
6180 {{paramtest2|arg='hmm'}}
6182 <p>including another template, This is a test template with parameter 'hmm'
6193 Template as link source
6197 [[{{linktest2}}|Main Page]]
6199 [[{{linktest2}}]]Page
6201 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6202 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6203 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6221 Template infinite loop
6225 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6230 Template from main namespace
6249 BUG 529: Template with table, not included at beginning of line
6268 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6288 BUG 41: Template parameters shown as broken links
6297 Template with targets containing wikilinks
6301 {{[[{{echo|foo}}]]}}
6303 {{{{echo|[[foo}}]]}}
6305 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6306 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6314 ''None'' of '''this''' should be
6316 but rather passed unmodified
6320 # hmm, fix this or just deprecate msgnw and document its behavior?
6326 {{msgnw:MSGNW test}}
6328 <p>''None'' of '''this''' should be
6330 but rather passed unmodified
6338 {{int:youhavenewmessages|lots of money|not!}}
6340 <p>You have lots of money (not!).
6347 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6351 <includeonly> and <noinclude> being included
6362 <onlyinclude>Foo</onlyinclude>bar
6366 <onlyinclude> being included
6378 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6382 <onlyinclude> and <includeonly> being included
6391 <includeonly> and <noinclude> on a page
6393 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6400 Un-closed <noinclude>
6407 <onlyinclude> on a page
6409 <onlyinclude>Foo</onlyinclude>bar
6416 Un-closed <onlyinclude>
6423 Self-closed noinclude, includeonly, onlyinclude tags
6434 Unbalanced includeonly and noinclude tags
6438 |b</noinclude></noinclude>
6439 |c</noinclude></includeonly>
6440 |d</includeonly></includeonly>
6449 <td>c</includeonly>
6451 <td>d</includeonly></includeonly>
6457 Template:Includeonly section
6460 ==Includeonly section==
6466 Bug 6563: Edit link generation for section shown by <includeonly>
6468 {{includeonly section}}
6470 <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>
6471 <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>
6475 # Uses same input as the contents of [[Template:Includeonly section]]
6477 Bug 6563: Section extraction for section shown by <includeonly>
6482 ==Includeonly section==
6490 Bug 6563: Edit link generation for section suppressed by <includeonly>
6493 ==Includeonly section==
6497 <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>
6502 Bug 6563: Section extraction for section suppressed by <includeonly>
6507 ==Includeonly section==
6515 Un-closed <includeonly>
6522 ### <includeonly> and <noinclude> in attributes
6525 0. includeonly around the entire attribute
6527 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6529 <p><span id="v2">bar</span>
6534 1. includeonly in html attr key
6536 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6538 <p><span id="foo">bar</span>
6543 2. includeonly in html attr value
6545 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6546 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6548 <p><span id="v1">bar</span>
6549 <span id="v1">bar</span>
6554 3. includeonly in part of an attr value
6556 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6558 <p><span style="color:red;">bar</span>
6563 ### Testing parsing of templates where a template arg
6564 ### has the same name as the template itself.
6574 Templates: Template Name/Arg clash: 1. Use of positional param
6583 Templates: Template Name/Arg clash: 2. Use of named param
6592 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6601 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6605 Templates: 1. Simple use
6614 Templates: 2. Inside a block tag
6616 <div>{{echo|Foo}}</div>
6623 Templates: P-wrapping: 1a. Templates on consecutive lines
6634 Templates: P-wrapping: 1b. Templates on consecutive lines
6648 Templates: P-wrapping: 1c. Templates on consecutive lines
6651 {{echo|bar}} <div>baz</div>
6660 Templates: P-wrapping: 1d. Template preceded by comment-only line
6662 parsoid=wt2html,wt2wt
6668 <p typeof="mw:Transclusion">Bar
6673 Templates: Inline Text: 1. Multiple tmeplate uses
6675 {{echo|Foo}}bar{{echo|baz}}
6682 Templates: Inline Text: 2. Back-to-back template uses
6684 {{echo|Foo}}{{echo|bar}}
6691 Templates: Block Tags: 1. Multiple template uses
6693 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6695 <div>Foo</div><div>bar</div><div>baz</div>
6700 Templates: Block Tags: 2. Back-to-back template uses
6702 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6704 <div>Foo</div><div>bar</div>
6709 Templates: Links: 1. Simple example
6711 {{echo|[[Foo|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: 2. Generation of link href
6720 [[{{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: Links: 3. Generation of part of a link href
6729 [[Fo{{echo|o}}|bar]]
6733 [[Foo{{echo|bar}}baz]]
6735 [[Foo{{echo|bar}}|bar]]
6737 [[:Foo{{echo|bar}}]]
6739 [[:Foo{{echo|bar}}|bar]]
6741 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6742 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6743 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6744 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6745 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6746 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6751 Templates: Links: 4. Multiple templates generating link href
6753 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6755 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6760 Templates: Links: 5. Generation of link text
6762 [[Foo|{{echo|bar}}]]
6764 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6769 Templates: Links: 5. Nested templates (only outermost template should be marked)
6771 {{echo|[[{{echo|Foo}}|bar]]}}
6773 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6778 Templates: HTML Tag: 1. Generation of HTML attr. key
6780 <div {{echo|style}}="color:red;">foo</div>
6782 <div style="color:red;">foo</div>
6787 Templates: HTML Tag: 2. Generation of HTML attr. value
6789 <div style={{echo|'color:red;'}}>foo</div>
6791 <div style="color:red;">foo</div>
6796 Templates: HTML Tag: 3. Generation of HTML attr key and value
6798 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6800 <div style="color:red;">foo</div>
6805 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6807 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6809 <div title="This is a long title with just one piece templated">foo</div>
6814 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6816 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6818 <div title="This is a long title with just one piece templated">foo</div>
6823 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6825 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6827 <div title="This is a long title with just one piece templated">foo</div>
6832 Templates: HTML Tag: 7. Generation of partial attribute key string
6834 <div st{{echo|yle}}="color:red;">foo</div>
6836 <div style="color:red;">foo</div>
6841 Templates: HTML Tables: 1. Generating start of a HTML table
6843 {{echo|<table><tr><td>foo</td>}}</tr></table>
6845 <table><tr><td>foo</td></tr></table>
6850 Templates: HTML Tables: 2a. Generating middle of a HTML table
6852 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6854 <table><tr><td>foo</td></tr></table>
6859 Templates: HTML Tables: 2b. Generating middle of a HTML table
6861 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6863 <table><tr><td>foo</td></tr></table>
6868 Templates: HTML Tables: 3. Generating end of a HTML table
6870 <table><tr>{{echo|<td>foo</td></tr></table>}}
6872 <table><tr><td>foo</td></tr></table>
6877 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6879 {{echo|<table>}}<tr><td>foo</td></tr></table>
6881 <table><tr><td>foo</td></tr></table>
6886 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6888 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6890 <table><tr><td>foo</td></tr></table>
6895 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6897 <table><tr>{{echo|<td>}}foo</td></tr></table>
6899 <table><tr><td>foo</td></tr></table>
6904 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6906 <table><tr><td>foo{{echo|</td>}}</tr></table>
6908 <table><tr><td>foo</td></tr></table>
6913 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6915 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6917 <table><tr><td>foo</td></tr></table>
6922 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6924 <table><tr><td>foo</td></tr>{{echo|</table>}}
6926 <table><tr><td>foo</td></tr></table>
6931 Templates: HTML Tables: 5. Proper fostering of categories from inside
6933 parsoid=wt2html,wt2wt
6935 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6936 <!--Two categories (Bug 50330)-->
6937 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6939 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6940 <!--Two categories (Bug 50330)-->
6941 <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>
6945 Templates: Wiki Tables: 1a. Fostering of entire template content
6953 <tr><td></td></tr></table>
6958 Templates: Wiki Tables: 1b. Fostering of entire template content
6971 <tr><td></td></tr></table>
6976 Templates: Wiki Tables: 2. Fostering of partial template content
6986 <tr><td></td></tr></table>
6991 Templates: Wiki Tables: 3. td-content via multiple templates
6994 {{echo|{{pipe}}a}}{{echo|b}}
7005 Templates: Wiki Tables: 4. Templated tags, no content
7011 <tr><td></td></tr></table>
7016 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7030 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7044 Templates: Lists: Multi-line list-items via templates
7046 *{{echo|a {{nonexistent|
7048 *{{echo|b {{nonexistent|
7051 <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>
7052 </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>
7058 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7060 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7062 <p><i>ab</i>c<i>d</i>e
7067 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7068 (PHP parser generates misnested html)
7070 parsoid=wt2html,wt2wt
7072 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7074 <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>
7078 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7079 (PHP parser generates misnested html)
7081 parsoid=wt2html,wt2wt
7083 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7085 <div typeof="mw:Transclusion"><i>a</i></div>
7086 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7087 <div typeof="mw:Transclusion">e</div>
7091 Templates: Ugly nesting: 4. Divs opened/closed across templates
7093 a<div>b{{echo|c</div>d}}e
7100 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7106 |{{echo|foo</table>}}
7110 <table typeof="mw:Transclusion">
7113 <td>foo</td></tr></tbody></table><span>bar</span>
7117 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7127 <td>1. {{echo|foo </table>}}</td>
7129 <td>2. {{echo|baz </table>}}</td>
7142 <table about="#mwt1" typeof="mw:Transclusion">
7147 <td >1. foo </td></tr></tbody></table></td>
7149 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7150 </span><span about="#mwt1">
7152 abc</span><span about="#mwt1">
7153 </span><span about="#mwt1">
7154 </span><span about="#mwt1">
7155 </span><span about="#mwt1">
7156 </span><span about="#mwt1">
7158 xyz</span><span about="#mwt1">
7159 </span><span about="#mwt1">
7164 Templates: Ugly templates: 3. newline-only template parameter
7173 # This looks like a bug: a single newline triggers p/br for some reason.
7175 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7186 Parser Functions: 1. Simple example
7195 Parser Functions: 2. Nested use (only outermost should be marked up)
7204 ### Pre-save transform tests
7207 pre-save transform: subst:
7213 This is a test template
7217 pre-save transform: normal template
7227 pre-save transform: nonexistent template
7231 {{thistemplatedoesnotexist}}
7233 {{thistemplatedoesnotexist}}
7238 pre-save transform: subst magic variables
7247 # This is bug 89, which I fixed. -- wtm
7249 pre-save transform: subst: templates with parameters
7253 {{subst:paramtest|param="something else"}}
7255 This is a test template with parameter "something else"
7261 <nowiki>'''not wiki'''</nowiki>
7265 pre-save transform: nowiki in subst (bug 1188)
7269 {{subst:nowikitest}}
7271 <nowiki>'''not wiki'''</nowiki>
7276 Template:commenttest
7278 This template has <!-- a comment --> in it.
7282 pre-save transform: comment in subst (bug 1936)
7286 {{subst:commenttest}}
7288 This template has <!-- a comment --> in it.
7292 pre-save transform: unclosed tag
7296 <nowiki>'''not wiki'''
7298 <nowiki>'''not wiki'''
7302 pre-save transform: mixed tag case
7306 <NOwiki>'''not wiki'''</noWIKI>
7308 <NOwiki>'''not wiki'''</noWIKI>
7312 pre-save transform: unclosed comment in <nowiki>
7316 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7318 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7321 # Leading @ in this template definition works around a limitation
7322 # in parsoid's parserTests which otherwise strips the <span> from the
7323 # result (confusing it for a template wrapper)
7327 @<span onmouseover="alert('crap')">Oh no</span>
7331 (confirming safety of fix for subst bug 1936)
7333 {{Template:dangerous}}
7335 <p>@<span>Oh no</span>
7340 pre-save transform: comment containing gallery (bug 5024)
7344 <!-- <gallery>data</gallery> -->
7346 <!-- <gallery>data</gallery> -->
7350 pre-save transform: comment containing extension
7354 <!-- <tag>data</tag> -->
7356 <!-- <tag>data</tag> -->
7360 pre-save transform: comment containing nowiki
7364 <!-- <nowiki>data</nowiki> -->
7366 <!-- <nowiki>data</nowiki> -->
7370 pre-save transform: <noinclude> in subst (bug 3298)
7380 pre-save transform: <onlyinclude> in subst (bug 3298)
7392 {{<includeonly>subst:</includeonly>Includes}}
7396 Template:SafeSubstTest
7398 {{<includeonly>safesubst:</includeonly>Includes}}
7402 bug 22297: safesubst: works during PST
7406 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7412 bug 22297: safesubst: works during normal parse
7421 subst: does not work during normal parse
7425 <p>{{subst:Includes}}
7430 pre-save transform: context links ("pipe trick")
7434 [[Article (context)|]]
7437 [[Bar:Article (context)|]]
7438 [[:Bar:Article (context)|]]
7440 [[|Article (context)]]
7444 [[Article (context)|Article]]
7445 [[Bar:Article|Article]]
7446 [[:Bar:Article|Article]]
7447 [[Bar:Article (context)|Article]]
7448 [[:Bar:Article (context)|Article]]
7450 [[Article (context)]]
7451 [[Bar:X (Y) Z|X (Y) Z]]
7452 [[:Bar:X (Y) Z|X (Y) Z]]
7456 pre-save transform: context links ("pipe trick") with interwiki prefix
7460 [[interwiki:Article|]]
7461 [[:interwiki:Article|]]
7462 [[interwiki:Bar:Article|]]
7463 [[:interwiki:Bar:Article|]]
7465 [[interwiki:Article|Article]]
7466 [[:interwiki:Article|Article]]
7467 [[interwiki:Bar:Article|Bar:Article]]
7468 [[:interwiki:Bar:Article|Bar:Article]]
7472 pre-save transform: context links ("pipe trick") with parens in title
7474 pst title=[[Somearticle (context)]]
7478 [[Article (context)|Article]]
7482 pre-save transform: context links ("pipe trick") with comma in title
7484 pst title=[[Someplace, Somewhere]]
7487 [[Otherplace, Elsewhere|]]
7488 [[Otherplace, Elsewhere, Anywhere|]]
7490 [[Otherplace, Somewhere|Otherplace]]
7491 [[Otherplace, Elsewhere|Otherplace]]
7492 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7496 pre-save transform: context links ("pipe trick") with parens and comma
7498 pst title=[[Someplace (IGNORED), Somewhere]]
7501 [[Otherplace (place), Elsewhere|]]
7503 [[Otherplace, Somewhere|Otherplace]]
7504 [[Otherplace (place), Elsewhere|Otherplace]]
7508 pre-save transform: context links ("pipe trick") with comma and parens
7510 pst title=[[Who, me? (context)]]
7513 [[Me, Myself, and I (1937 song)|]]
7515 [[Yes, you. (context)|Yes, you.]]
7516 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7520 pre-save transform: context links ("pipe trick") with namespace
7522 pst title=[[Ns:Somearticle]]
7526 [[Ns:Article|Article]]
7530 pre-save transform: context links ("pipe trick") with namespace and parens
7532 pst title=[[Ns:Somearticle (context)]]
7536 [[Ns:Article (context)|Article]]
7540 pre-save transform: context links ("pipe trick") with namespace and comma
7542 pst title=[[Ns:Somearticle, Context, Whatever]]
7546 [[Ns:Article, Context, Whatever|Article]]
7550 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7552 pst title=[[Ns:Somearticle, Context (context)]]
7556 [[Ns:Article (context)|Article]]
7560 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7562 pst title=[[Ns:Somearticle (IGNORED), Context]]
7566 [[Ns:Article, Context|Article]]
7570 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7574 [[Article(context)|]]
7575 [[Bar:Article(context)|]]
7576 [[:Bar:Article(context)|]]
7577 [[|Article(context)]]
7581 [[Article(context)|Article]]
7582 [[Bar:Article(context)|Article]]
7583 [[:Bar:Article(context)|Article]]
7584 [[Article(context)]]
7586 [[:Bar:X(Y)Z|X(Y)Z]]
7590 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7594 [[Article (context)|]]
7595 [[Bar:Article (context)|]]
7596 [[:Bar:Article (context)|]]
7597 [[|Article (context)]]
7601 [[Article (context)|Article]]
7602 [[Bar:Article (context)|Article]]
7603 [[:Bar:Article (context)|Article]]
7604 [[Article (context)]]
7605 [[Bar:X (Y) Z|X (Y) Z]]
7606 [[:Bar:X (Y) Z|X (Y) Z]]
7610 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7614 [[Article(context)|]]
7615 [[Bar:Article(context)|]]
7616 [[:Bar:Article(context)|]]
7617 [[|Article(context)]]
7621 [[Article(context)|Article]]
7622 [[Bar:Article(context)|Article]]
7623 [[:Bar:Article(context)|Article]]
7624 [[Article(context)]]
7626 [[:Bar:X(Y)Z|X(Y)Z]]
7630 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7634 [[Article (context), context|]]
7635 [[Article (context),context|]]
7636 [[Bar:Article (context), context|]]
7637 [[Bar:Article (context),context|]]
7638 [[:Bar:Article (context), context|]]
7639 [[:Bar:Article (context),context|]]
7641 [[Article (context), context|Article]]
7642 [[Article (context),context|Article]]
7643 [[Bar:Article (context), context|Article]]
7644 [[Bar:Article (context),context|Article]]
7645 [[:Bar:Article (context), context|Article]]
7646 [[:Bar:Article (context),context|Article]]
7650 pre-save transform: trim trailing empty lines
7654 Empty lines are trimmed
7660 Empty lines are trimmed
7664 pre-save transform: Signature expansion
7669 * <noinclude>~~~</noinclude>
7670 * <includeonly>~~~</includeonly>
7671 * <onlyinclude>~~~</onlyinclude>
7673 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7674 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7675 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7676 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7681 pre-save transform: Signature expansion in nowiki tags (bug 93)
7687 <nowiki>~~~~</nowiki>
7689 <includeonly><nowiki>~~~~</nowiki></includeonly>
7691 <noinclude><nowiki>~~~~</nowiki></noinclude>
7693 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7695 {{subst:Foo}} shall be converted to FOO
7697 As well as inside noinclude/onlyinclude
7698 <noinclude>{{subst:Foo}}</noinclude>
7699 <onlyinclude>{{subst:Foo}}</onlyinclude>
7701 But not inside includeonly
7702 <includeonly>{{subst:Foo}}</includeonly>
7706 <nowiki>~~~~</nowiki>
7708 <includeonly><nowiki>~~~~</nowiki></includeonly>
7710 <noinclude><nowiki>~~~~</nowiki></noinclude>
7712 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7714 FOO shall be converted to FOO
7716 As well as inside noinclude/onlyinclude
7717 <noinclude>FOO</noinclude>
7718 <onlyinclude>FOO</onlyinclude>
7720 But not inside includeonly
7721 <includeonly>{{subst:Foo}}</includeonly>
7725 ### Message transform tests
7728 message transform: magic variables
7738 message transform: should not transform wiki markup
7748 message transform: <noinclude> in transcluded template (bug 4926)
7758 message transform: <onlyinclude> in transcluded template (bug 4926)
7768 {{#special:}} page name, known
7772 {{#special:Recentchanges}}
7774 Special:RecentChanges
7778 {{#special:}} page name with subpage, known
7782 {{#special:Recentchanges/param}}
7784 Special:RecentChanges/param
7788 {{#special:}} page name, unknown
7792 {{#special:foobar nonexistent}}
7794 Special:Foobar nonexistent
7798 {{#speciale:}} page name, known
7802 {{#speciale:Recentchanges}}
7804 Special:RecentChanges
7808 {{#speciale:}} page name with subpage, known
7812 {{#speciale:Recentchanges/param}}
7814 Special:RecentChanges/param
7818 {{#speciale:}} page name, unknown
7822 {{#speciale:foobar nonexistent}}
7824 Special:Foobar_nonexistent
7833 [[Image:foobar.jpg]]
7835 <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>
7842 [[Image:foobar.jpg|right]]
7844 <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>
7849 Simple image (using File: namespace, now canonical)
7853 <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>
7860 [[Image:foobar.jpg|right|Caption text]]
7862 <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>
7867 Image with empty attribute
7869 [[Image:foobar.jpg|right||Caption text]]
7871 <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>
7876 Image with link tails
7878 123[[Image:foobar.jpg]]456
7879 123[[Image:foobar.jpg|right]]456
7880 123[[Image:foobar.jpg|thumb]]456
7882 <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
7884 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
7885 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
7890 Image with multiple captions -- only last one is accepted
7892 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7894 <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>
7899 Image with width attribute at different positions
7901 [[Image:foobar.jpg|200px|right|Caption]]
7902 [[Image:foobar.jpg|right|200px|Caption]]
7903 [[Image:foobar.jpg|right|Caption|200px]]
7905 <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>
7906 <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>
7907 <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>
7912 Image with link parameter, wiki target
7914 [[Image:foobar.jpg|link=Target page]]
7916 <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>
7921 Image with link parameter, URL target
7923 [[Image:foobar.jpg|link=http://example.com/]]
7925 <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>
7930 Image with link parameter, wgExternalLinkTarget
7932 [[Image:foobar.jpg|link=http://example.com/]]
7934 wgExternalLinkTarget='foobar'
7936 <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>
7941 Image with link parameter, wgNoFollowLinks set to false
7943 [[Image:foobar.jpg|link=http://example.com/]]
7945 wgNoFollowLinks=false
7947 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7952 Image with link parameter, wgNoFollowDomainExceptions
7954 [[Image:foobar.jpg|link=http://example.com/]]
7956 wgNoFollowDomainExceptions='example.com'
7958 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7963 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7965 [[Image:foobar.jpg|link=http://example.com/|Title]]
7967 wgExternalLinkTarget='foobar'
7969 <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>
7974 Image with empty link parameter
7976 [[Image:foobar.jpg|link=]]
7978 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7983 Image with link parameter (wiki target) and unnamed parameter
7985 [[Image:foobar.jpg|link=Target page|Title]]
7987 <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>
7992 Image with link parameter (URL target) and unnamed parameter
7994 [[Image:foobar.jpg|link=http://example.com/|Title]]
7996 <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>
8001 Thumbnail image with link parameter
8005 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8007 <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>
8012 Manually-specified thumbnail image
8016 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8018 <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>
8023 Manually-specified thumbnail image with explicit link to wiki page
8027 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8029 <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>
8034 Manually-specified thumbnail image with explicit link to url
8038 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8040 <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>
8045 Manually-specified thumbnail image with explicit no link
8049 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8051 <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>
8056 Manually-specified thumbnail image with explicit link and alt text
8060 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8062 <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>
8067 Image with frame and link
8069 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8071 <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>
8076 Image with frame and link and explicit alt
8078 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8080 <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>
8085 Image with wiki markup in implicit alt
8087 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8089 <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>
8094 Image with wiki markup in explicit alt
8096 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8098 <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>
8103 Link to image page- image page normally doesn't exists, hence edit link
8104 Add test with existing image page
8105 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8109 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8114 bug 18784 Link to non-existent image page with caption should use caption as link text
8116 [[:Image:test|caption]]
8118 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8123 Frameless image caption with a free URL
8125 [[Image:foobar.jpg|http://example.com]]
8127 <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>
8132 Thumbnail image caption with a free URL
8134 [[Image:foobar.jpg|thumb|http://example.com]]
8136 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
8141 Thumbnail image caption with a free URL and explicit alt
8143 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8145 <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>
8150 SVG thumbnails with no language set
8153 [[File:Foobar.svg|thumb|width=200]]
8155 <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>
8160 SVG thumbnails with language de
8163 [[File:Foobar.svg|thumb|width=200|lang=de]]
8165 <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>
8170 SVG thumbnails with invalid language code
8173 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8175 <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>
8180 BUG 1887: A ISBN with a thumbnail
8182 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8184 <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>
8189 BUG 1887: A RFC with a thumbnail
8191 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8193 <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>
8198 BUG 1887: A mailto link with a thumbnail
8200 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8202 <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>
8206 # Pending resolution to bug 368
8208 BUG 648: Frameless image caption with a link
8210 [[Image:foobar.jpg|text with a [[link]] in it]]
8212 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8217 BUG 648: Frameless image caption with a link (suffix)
8219 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8221 <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>
8226 BUG 648: Frameless image caption with an interwiki link
8228 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8230 <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>
8235 BUG 648: Frameless image caption with a piped interwiki link
8237 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8239 <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>
8244 Escape HTML special chars in image alt text
8246 [[Image:foobar.jpg|& < > "]]
8248 <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>
8253 BUG 499: Alt text should have Ӓ, not &1234;
8255 [[Image:foobar.jpg|♀]]
8257 <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>
8262 Broken image caption with link
8264 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8266 <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.
8271 Image caption containing another image
8273 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8275 <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>
8280 Image caption containing a newline
8282 [[Image:Foobar.jpg|This
8285 <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>
8290 Parsoid: Image caption containing leading space
8291 (The leading space should not trigger nowiki escaping in wt2wt mode)
8293 [[Image:Foobar.jpg|thumb| bar]]
8295 <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>
8300 Bug 3090: External links other than http: in image captions
8302 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8304 <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>
8311 [[Image:foobar.jpg|a|class=b]]
8313 <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>
8318 Localized image handling (1).
8322 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8324 <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>
8329 Localized image handling (2).
8333 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8335 <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>
8340 "border", "frameless" and "class" attributes on an image.
8342 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8344 <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>
8351 #REDIRECT [[File:Barfoo.jpg]]
8357 [[Image:Barfoo.jpg]]
8359 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8364 Missing image with uploads disabled
8368 [[Image:Foobaz.jpg]]
8370 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8374 # Parsoid-specific testing for images
8375 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8376 # Currently imperfect due to a flaw in the Parsoid testrunner
8380 Parsoid-specific image handling - simple image
8384 [[Image:Foobar.jpg]]
8387 <span class="mw-default-size" typeof="mw:Image">
8388 <a href="File:Foobar.jpg">
8389 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8396 Parsoid-specific image handling - simple image without link
8400 [[Image:Foobar.jpg|link=]]
8403 <span class="mw-default-size" typeof="mw:Image">
8405 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8412 Parsoid-specific image handling - simple image with specific link
8416 [[Image:Foobar.jpg|link=Main Page]]
8419 <span class="mw-default-size" typeof="mw:Image">
8420 <a href="Main_Page">
8421 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8428 Parsoid-specific image handling - simple image with size and middle alignment
8432 [[Image:Foobar.jpg|50px|middle]]
8435 <span class="mw-valign-middle" typeof="mw:Image">
8436 <a href="File:Foobar.jpg">
8437 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8444 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8448 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8451 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8452 <a href="File:Foobar.jpg">
8453 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8460 Parsoid-specific image handling - simple image with border and size spec
8464 [[Image:Foobar.jpg|50px|border|caption]]
8467 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8468 <a href="File:Foobar.jpg">
8469 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8476 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8480 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8482 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8483 <a href="File:Foobar.jpg">
8484 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8486 <figcaption>caption content</figcaption>
8491 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8495 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8497 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8498 <a href="File:Foobar.jpg">
8499 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8501 <figcaption>caption</figcaption>
8506 Parsoid-specific image handling - framed image with specific size and caption
8510 [[Image:Foobar.jpg|500x50px|frame|caption]]
8512 <figure typeof="mw:Image/Frame">
8513 <a href="File:Foobar.jpg">
8514 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8516 <figcaption>caption</figcaption>
8521 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8525 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8527 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8528 <a href="File:Foobar.jpg">
8529 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8531 <figcaption>caption</figcaption>
8536 Parsoid-specific image handling - frameless image with specific size, border, and caption
8540 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8543 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8544 <a href="File:Foobar.jpg">
8545 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8551 #Parsoid-specific image handling - simple image with a formatted caption
8555 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8558 #<span typeof="mw:Image">
8559 #<a class="mw-default-size" href="Image:Foobar.jpg">
8560 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8571 Subpage test/subpage
8579 subpage title=[[Subpage test]]
8583 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8588 Subpage noslash link
8590 subpage title=[[Subpage test]]
8594 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8598 # TODO: make this PHP-parser compatible!
8600 Relative subpage noslash link
8602 parsoid=wt2wt,wt2html,html2html
8603 subpage title=[[Subpage test/1/2/3/4]]
8609 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8610 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8613 # TODO: make this PHP-parser compatible!
8615 Parsoid: dot-slash prefixed wikilinks
8617 parsoid=wt2wt,wt2html,html2html
8625 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8626 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8627 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8635 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8640 BUG 561: {{/Subpage}}
8642 subpage title=[[Page]]
8646 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8654 Category:MediaWiki User's Guide
8662 [[:Category:MediaWiki User's Guide]]
8664 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8673 [[Category:MediaWiki User's Guide]]
8675 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8679 PAGESINCATEGORY invalid title fatal (r33546 fix)
8681 {{PAGESINCATEGORY:<bogus>}}
8688 Category with different sort key
8692 [[Category:MediaWiki User's Guide|Foo]]
8694 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8698 Category with identical sort key
8702 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8704 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8708 Category with empty sort key
8713 [[Category:MediaWiki User's Guide|]]
8715 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8719 Category with empty sort key and parentheses
8724 [[Category:Foo (bar)|]]
8726 [[Category:Foo (bar)|Foo]]
8730 Category with link tail
8735 123[[Category:Foo]]456
8737 123[[Category:Foo]]456
8741 Category with template
8746 [[Category:{{echo|Foo}}]]
8748 [[Category:{{echo|Foo}}]]
8752 Category with template in sort key
8757 [[Category:Foo|{{echo|Bar}}]]
8759 [[Category:Foo|{{echo|Bar}}]]
8763 Category with template in sort key and title
8768 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8770 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8774 Category / paragraph interactions
8776 Foo [[Category:Baz]] Bar
8778 Foo [[Category:Baz]]
8786 [[Category:Baz]] Bar
8799 {{echo|[[Category:Baz]]}}
8814 Parsoid: Serialize link to category page with colon escape
8820 [[:Category:Foo|Bar]]
8823 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8824 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8829 Parsoid: Serialize link to file page with colon escape
8835 [[:File:Foo.png|Bar]]
8838 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8839 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8844 Parsoid: Serialize a genuine category link without colon escape
8849 [[Category:Foo|Bar]]
8851 <link rel="mw:WikiLink/Category" href="Category:Foo">
8852 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8856 ### Inter-language links
8859 Inter-language links
8865 [[zh:食品]]
8867 es:Alimento fr:Nourriture zh:食品
8871 Duplicate interlanguage links (bug 24502)
8887 Basic section headings
8894 ===Smaller headline===
8897 <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>
8900 <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>
8903 <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>
8909 Section headings with TOC
8912 === Subheadline 1 ===
8913 ===== Skipping a level =====
8914 ====== Skipping a level ======
8918 ===Another headline===
8920 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8922 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8924 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8926 <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>
8928 <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>
8935 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8937 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8942 <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>
8943 <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>
8944 <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>
8945 <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>
8946 <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>
8949 <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>
8953 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8955 Handling of sections up to level 6 and beyond
8958 == Level 2 Heading==
8959 === Level 3 Heading===
8960 ==== Level 4 Heading====
8961 ===== Level 5 Heading=====
8962 ====== Level 6 Heading======
8963 ======= Level 7 Heading=======
8964 ======== Level 8 Heading========
8965 ========= Level 9 Heading=========
8966 ========== Level 10 Heading==========
8968 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8970 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8972 <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>
8974 <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>
8976 <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>
8978 <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>
8980 <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>
8981 <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>
8982 <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>
8983 <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>
8984 <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>
8997 <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>
8998 <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>
8999 <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>
9000 <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>
9001 <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>
9002 <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>
9003 <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>
9004 <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>
9005 <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>
9006 <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>
9011 TOC regression (bug 9764)
9015 ==== title 1.1.1 ====
9020 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9022 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9024 <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>
9026 <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>
9029 <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>
9032 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9034 <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>
9039 <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>
9040 <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>
9041 <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>
9042 <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>
9043 <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>
9044 <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>
9049 TOC with wgMaxTocLevel=3 (bug 6204)
9055 ==== title 1.1.1 ====
9060 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9062 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9064 <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>
9065 <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>
9068 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9070 <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>
9075 <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>
9076 <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>
9077 <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>
9078 <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>
9079 <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>
9080 <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>
9085 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9091 ====Section 1.1.1====
9092 ====Section 1.1.1.1====
9095 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9097 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9099 <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>
9102 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9105 <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>
9106 <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>
9107 <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>
9108 <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>
9109 <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>
9115 Resolving duplicate section names
9120 <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>
9121 <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>
9126 Resolving duplicate section names with differing case (bug 10721)
9131 <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>
9132 <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>
9144 Template with sections, __NOTOC__
9151 <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>
9152 <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>
9153 <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>
9154 <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>
9159 __NOEDITSECTION__ keyword
9165 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9166 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9171 Link inside a section heading
9173 ==Section with a [[Main Page|link]] in it==
9175 <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>
9180 TOC regression (bug 12077)
9187 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9189 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9191 <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>
9194 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9197 <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>
9198 <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>
9199 <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>
9204 BUG 1219 URL next to image (good)
9206 http://example.com [[Image:foobar.jpg]]
9208 <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>
9213 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9216 The line above must have a trailing space!
9219 But just in case it doesn't...
9221 <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>
9222 <p>The line above must have a trailing space!
9224 <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>
9225 <p>But just in case it doesn't...
9230 Header with special characters (bug 25462)
9232 The tooltips shall not show entities to the user (ie. be double escaped)
9249 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9251 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9253 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9254 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9255 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9256 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9257 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9260 <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>
9263 <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>
9266 <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>
9269 <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>
9272 <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>
9278 Headers with excess '=' characters
9279 (Are similar tests necessary beyond the 1st level?)
9283 =''italic'' heading==
9284 ==''italic'' heading=
9286 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9288 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9289 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9290 <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>
9291 <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>
9294 <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>
9295 <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>
9296 <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>
9297 <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>
9302 HTML headers vs TOC (bug 23393)
9303 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9315 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9317 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9319 <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>
9320 <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>
9323 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9325 <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>
9326 <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>
9331 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9332 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9333 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9334 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9335 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9336 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9341 BUG 1219 URL next to image (broken)
9343 http://example.com[[Image:foobar.jpg]]
9345 <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>
9350 Bug 1186 news: in the middle of text
9352 http://en.wikinews.org/wiki/Wikinews:Workplace
9354 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9360 Namespaced link must have a title
9369 Namespaced link must have a title (bad fragment version)
9371 [[Project:#fragment]]
9373 <p>[[Project:#fragment]]
9379 ### HTML tags and HTML attributes
9383 div with no attributes
9385 <div>HTML rocks</div>
9387 <div>HTML rocks</div>
9392 div with double-quoted attribute
9394 <div id="rock">HTML rocks</div>
9396 <div id="rock">HTML rocks</div>
9401 div with single-quoted attribute
9403 <div id='rock'>HTML rocks</div>
9405 <div id="rock">HTML rocks</div>
9410 div with unquoted attribute
9412 <div id=rock>HTML rocks</div>
9414 <div id="rock">HTML rocks</div>
9419 div with illegal double attributes
9421 <div id="a" id="b">HTML rocks</div>
9423 <div id="b">HTML rocks</div>
9427 # FIXME: produce empty string instead of "class" in the PHP parser, following
9430 div with empty attribute value, space before equals
9434 <div class =>HTML rocks</div>
9436 <div class="">HTML rocks</div>
9440 # The PHP parser escapes the opening brace to { for some reason, so
9441 # disabled this test for it.
9443 div with braces in attribute value
9447 <div title="{}">Foo</div>
9449 <div title="{}">Foo</div>
9452 # This it very inconsistent in the PHP parser: it returns
9453 # class="class" if there is a space between the name and the equal sign (see
9454 # 'div with empty attribute value, space before equals'), but strips the
9455 # attribute completely if the space is missing. We hope that not much content
9456 # depends on this, so are implementing the behavior below in Parsoid for
9457 # consistencies' sake. Disabled for the PHP parser.
9458 # FIXME: fix this behavior in the PHP parser?
9460 div with empty attribute value, no space before equals
9464 <div class=>HTML rocks</div>
9466 <div class="">HTML rocks</div>
9471 HTML multiple attributes correction
9473 <p class="error" class="awesome">Awesome!</p>
9475 <p class="awesome">Awesome!</p>
9480 Table multiple attributes correction
9483 !+ class="error" class="awesome"| status
9488 <th class="awesome"> status
9496 <DIV ID="x">HTML ROCKS</DIV>
9498 <div id="x">HTML ROCKS</div>
9503 Non-ASCII pseudo-tags are rendered as text
9512 Pseudo-tag with URL 'name' renders as url link
9514 <http://example.com/>
9516 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9521 text with amp in the middle of nowhere
9525 <p>Remember AT&T?
9530 text with character entity: eacute
9532 I always thought é was a cute letter.
9534 <p>I always thought é was a cute letter.
9539 text with entity-escaped character entity-like string: eacute
9541 I always thought &eacute; was a cute letter.
9543 <p>I always thought &eacute; was a cute letter.
9548 text with undefined character entity: xacute
9550 I always thought &xacute; was a cute letter.
9552 <p>I always thought &xacute; was a cute letter.
9558 ### Nesting tests (see bug 41545, 50604, 51081)
9561 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
9562 # Note that html2wt is considerably more difficult if we use <b> in
9563 # the test case, instead of <big>
9565 Ensure that HTML adoption agency algorithm is properly implemented.
9567 <big>X<big>Y</big>Z</big>
9569 <p><big>X<big>Y</big>Z</big>
9573 # This was bug 41545 in the PHP parser.
9577 <kbd>X<kbd>Y</kbd>Z</kbd>
9579 <p><kbd>X<kbd>Y</kbd>Z</kbd>
9583 # The following cases were bug 51081 in the PHP parser.
9584 # Note that there are some other nestable tags (b, i, etc) which are
9585 # not covered; see bug 51081 for discussion.
9589 <em>X<em>Y</em>Z</em>
9591 <p><em>X<em>Y</em>Z</em>
9598 <strong>X<strong>Y</strong>Z</strong>
9600 <p><strong>X<strong>Y</strong>Z</strong>
9609 <p><q>X<q>Y</q>Z</q>
9616 <ruby>X<ruby>Y</ruby>Z</ruby>
9618 <p><ruby>X<ruby>Y</ruby>Z</ruby>
9625 <bdo>X<bdo>Y</bdo>Z</bdo>
9627 <p><bdo>X<bdo>Y</bdo>Z</bdo>
9639 [[Media:Foobar.jpg]]
9641 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9646 Media link with text
9648 [[Media:Foobar.jpg|A neat file to look at]]
9650 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9654 # FIXME: this is still bad HTML tag nesting
9656 Media link with nasty text
9657 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9659 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9661 <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>
9666 Media link to nonexistent file (bug 1702)
9668 [[Media:No such.jpg]]
9670 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9675 Image link to nonexistent file (bug 1850 - good)
9677 [[Image:No such.jpg]]
9679 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9684 :Image link to nonexistent file (bug 1850 - bad)
9686 [[:Image:No such.jpg]]
9688 <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>
9695 Character reference normalization in link text (bug 1938)
9697 [[Main Page|this&that]]
9699 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9706 Test for unicode normalization
9708 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9712 (bug 19451) Links should refer to the normalized form.
9720 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9721 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9722 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9723 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9724 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9729 Empty attribute crash test (bug 2067)
9731 <font color="">foo</font>
9733 <p><font color="">foo</font>
9738 Empty attribute crash test single-quotes (bug 2067)
9740 <font color=''>foo</font>
9742 <p><font color="">foo</font>
9747 Attribute test: equals, then nothing
9749 <font color=>foo</font>
9756 Attribute test: unquoted value
9758 <font color=x>foo</font>
9760 <p><font color="x">foo</font>
9765 Attribute test: unquoted but illegal value (hash)
9767 <font color=#x>foo</font>
9769 <p><font color="#x">foo</font>
9774 Attribute test: no value
9776 <font color>foo</font>
9778 <p><font color="color">foo</font>
9783 Bug 2095: link with three closing brackets
9787 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9792 Bug 2095: link with pipe and three closing brackets
9796 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9801 Bug 2095: link with pipe and three closing brackets, version 2
9803 [[Main Page|[http://example.com/]]]
9805 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9815 Template:Dangerous attribute
9817 " onmouseover="alert(document.cookie)
9821 Template:Dangerous style attribute
9823 border-size: expression(alert(document.cookie))
9829 <div style="float: right; {{{1}}}">Magic div</div>
9833 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9835 <div title="{{test}}"></div>
9837 <div title="This is a test template"></div>
9842 Bug 2304: HTML attribute safety (dangerous template; 2309)
9844 <div title="{{dangerous attribute}}"></div>
9846 <div title=""></div>
9851 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9853 <div style="{{dangerous style attribute}}"></div>
9855 <div style="/* insecure input */"></div>
9860 Bug 2304: HTML attribute safety (safe parameter; 2309)
9862 {{div style|width: 200px}}
9864 <div style="float: right; width: 200px">Magic div</div>
9869 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9871 {{div style|width: expression(alert(document.cookie))}}
9873 <div style="/* insecure input */">Magic div</div>
9878 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9880 {{div style|"><script>alert(document.cookie)</script>}}
9882 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9887 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9889 {{div style|" ><script>alert(document.cookie)</script>}}
9891 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9896 Bug 2304: HTML attribute safety (link)
9898 <div title="[[Main Page]]"></div>
9900 <div title="[[Main Page]]"></div>
9905 Bug 2304: HTML attribute safety (italics)
9907 <div title="''foobar''"></div>
9909 <div title="''foobar''"></div>
9914 Bug 2304: HTML attribute safety (bold)
9916 <div title="'''foobar'''"></div>
9918 <div title="'''foobar'''"></div>
9924 Bug 2304: HTML attribute safety (ISBN)
9926 <div title="ISBN 1234567890"></div>
9928 <div title="ISBN 1234567890"></div>
9933 Bug 2304: HTML attribute safety (RFC)
9935 <div title="RFC 1234"></div>
9937 <div title="RFC 1234"></div>
9942 Bug 2304: HTML attribute safety (PMID)
9944 <div title="PMID 1234567890"></div>
9946 <div title="PMID 1234567890"></div>
9951 Bug 2304: HTML attribute safety (web link)
9953 <div title="http://example.com/"></div>
9955 <div title="http://example.com/"></div>
9960 Bug 2304: HTML attribute safety (named web link)
9962 <div title="[http://example.com/ link]"></div>
9964 <div title="[http://example.com/ link]"></div>
9969 Bug 3244: HTML attribute safety (extension; safe)
9971 <div style="<nowiki>background:blue</nowiki>"></div>
9973 <div style="background:blue"></div>
9978 Bug 3244: HTML attribute safety (extension; unsafe)
9980 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9982 <div style="/* insecure input */"></div>
9986 # More MSIE fun discovered by Tom Gilder
9989 MSIE CSS safety test: spurious slash
9991 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9993 <div style="/* insecure input */">evil</div>
9998 MSIE CSS safety test: hex code
10000 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10002 <div style="/* insecure input */">evil</div>
10007 MSIE CSS safety test: comment in url
10009 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10011 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10016 MSIE CSS safety test: comment in expression
10018 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10020 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10026 Table attribute legitimate extension
10029 !+ style="<nowiki>color:blue</nowiki>"| status
10034 <th style="color:blue"> status
10040 Table attribute safety
10043 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10048 <th style="/* insecure input */"> status
10054 CSS line continuation 1
10056 <div style="background-image: u\ rl(test.jpg);"></div>
10058 <div style="/* insecure input */"></div>
10063 CSS line continuation 2
10065 <div style="background-image: u\ rl(test.jpg); "></div>
10067 <div style="/* insecure input */"></div>
10078 Expansion of multi-line templates in attribute values (bug 6255)
10080 <div style="background: {{identity|#00FF00}}">-</div>
10082 <div style="background: #00FF00">-</div>
10088 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10090 <div style="background:
10093 <div style="background: #00FF00">-</div>
10098 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10100 <div style="background: #00FF00">-</div>
10102 <div style="background: #00FF00">-</div>
10107 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
10110 Parser hook: empty input
10123 Parser hook: empty input using terminated empty elements
10136 Parser hook: empty input using terminated empty elements (space before)
10149 Parser hook: basic input
10163 Parser hook: case insensitive
10177 Parser hook: case insensitive, redux
10190 Parser hook: nested tags
10194 <tag><tag></tag></tag>
10205 Parser hook: basic arguments
10207 <tag width=200 height = "100" depth = '50' square></tag>
10215 'square' => 'square',
10222 Parser hook: argument containing a forward slash (bug 5344)
10224 <tag filename='/tmp/bla'></tag>
10229 'filename' => '/tmp/bla',
10236 Parser hook: empty input using terminated empty elements (bug 2374)
10249 # </tag> should be output literally since there is no matching tag that begins it
10251 Parser hook: basic arguments using terminated empty elements (bug 2374)
10253 <tag width=200 height = "100" depth = '50' square/>
10263 'square' => 'square',
10272 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10276 Parser hook: static parser hook not inside a comment
10278 <statictag>hello, world</statictag>
10279 <statictag action=flush/>
10287 Parser hook: static parser hook inside a comment
10289 <!-- <statictag>hello, world</statictag> -->
10290 <statictag action=flush/>
10296 # Nested template calls; this case was broken by Parser.php rev 1.506,
10300 Template:One-parameter
10302 (My parameter is: {{{1}}})
10306 Template:Map-one-parameter
10308 {{{{{1}}}|{{{2}}}}}
10312 Nested template calls
10314 {{Map-one-parameter|One-parameter|param}}
10316 <p>(My parameter is: param)
10325 Sanitizer: Closing of open tags
10327 <s></s><table></table>
10329 <s></s><table></table>
10334 Sanitizer: Closing of open but not closed tags
10343 Sanitizer: Closing of closed but not open tags
10352 Sanitizer: Closing of closed but not open table tags
10354 Table not started</td></tr></table>
10356 <p>Table not started</td></tr></table>
10361 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10363 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10365 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10370 Sanitizer: Validating the contents of the id attribute (bug 4515)
10376 Something, but definitely not <br id="9" />...
10380 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10384 <br id="foo" /><br id="foo" />
10386 Something need to be done. foo-2 ?
10390 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10393 <meta itemprop="hello" content="world">
10394 <meta http-equiv="refresh" content="5">
10395 <meta itemprop="hello" http-equiv="refresh" content="5">
10396 <link itemprop="hello" href="{{SERVER}}">
10397 <link rel="stylesheet" href="{{SERVER}}">
10398 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10401 <div itemscope="itemscope">
10402 <p> <meta itemprop="hello" content="world" />
10403 <meta http-equiv="refresh" content="5">
10404 <meta itemprop="hello" content="5" />
10406 <link itemprop="hello" href="http://example.org" />
10407 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10408 <link itemprop="hello" href="http://example.org" />
10414 Language converter: output gets cut off unexpectedly (bug 5757)
10418 this bit is safe: }-
10420 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10422 then we get cut off here: }-
10424 all additional text is vanished
10426 <p>this bit is safe: }-
10427 </p><p>but if we add a conversion instance: xxx
10428 </p><p>then we get cut off here: }-
10429 </p><p>all additional text is vanished
10434 Self closed html pairs (bug 5487)
10437 <center><font id="bug" />Centered text</center>
10438 <div><font id="bug2" />In div text</div>
10440 <center><font id="bug" />Centered text</center>
10441 <div><font id="bug2" />In div text</div>
10450 Punctuation: nbsp before exclamation
10454 <p>C'est grave !
10459 Punctuation: CSS !important (bug 11874)
10461 <div style="width:50% !important">important</div>
10463 <div style="width:50% !important">important</div>
10468 Punctuation: CSS ! important (bug 11874; with space after)
10470 <div style="width:50% ! important">important</div>
10472 <div style="width:50% ! important">important</div>
10478 HTML bullet list, closed tags (bug 5497)
10493 HTML bullet list, unclosed tags (bug 5497)
10510 HTML ordered list, closed tags (bug 5497)
10525 HTML ordered list, unclosed tags (bug 5497)
10542 HTML nested bullet list, closed tags (bug 5497)
10567 HTML nested bullet list, open tags (bug 5497)
10592 HTML nested ordered list, closed tags (bug 5497)
10617 HTML nested ordered list, open tags (bug 5497)
10642 HTML ordered list item with parameters oddity
10644 <ol><li id="fragment">One</li></ol>
10646 <ol><li id="fragment">One</li></ol>
10651 bug 5918: autonumbering
10653 [http://first/] [http://second] [ftp://ftp]
10657 [mailto:enclosed@mail.tld With target]
10659 [mailto:enclosed@mail.tld]
10661 mailto:inline@mail.tld
10663 <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>
10664 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10665 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10666 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10667 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10673 # Security and HTML correctness
10674 # From Nick Jenkins' fuzz testing
10678 Fuzz testing: Parser13
10693 Fuzz testing: Parser14
10698 <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>
10699 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10701 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10708 Fuzz testing: Parser14-table
10713 <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>
10714 <table style="__TOC__">
10720 # Known to produce bogus xml (extra </td>)
10722 Fuzz testing: Parser16
10742 Fuzz testing: Parser21
10745 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10750 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10760 Fuzz testing: Parser22
10762 http://===r:::https://b
10766 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10774 # Known to produce bad XML for now
10776 Fuzz testing: Parser24
10783 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10784 <br style="onmouseover='alert(document.cookie);' " />
10786 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10791 <u class="|">}}}} >
10792 <br style="onmouseover='alert(document.cookie);'" />
10794 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10803 # Note: the current result listed for this is not what the original one was,
10804 # but the original bug was JavaScript injection, which is fixed in any case.
10805 # It's not clear that the original result listed was any more correct than the
10806 # current one. Original result:
10809 # <li class="||">
10810 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10812 Fuzz testing: Parser25 (bug 6055)
10818 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10820 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10825 Fuzz testing: URL adjacent extension (with space, clean)
10828 http://example.com <nowiki>junk</nowiki>
10830 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10835 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10838 http://example.com<nowiki>junk</nowiki>
10840 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10845 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10848 http://example.com<pre>junk</pre>
10850 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10855 Fuzz testing: image with bogus manual thumbnail
10857 [[Image:foobar.jpg|thumbnail= ]]
10859 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10864 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10866 <pre dir=" "></pre>
10868 <pre dir=" "></pre>
10873 Parsing optional HTML elements (Bug 6171)
10878 <td> Some tabular data</td>
10879 <td> More tabular data ...
10880 <td> And yet som tabular data</td>
10886 <td> Some tabular data</td>
10887 <td> More tabular data ...
10888 </td><td> And yet som tabular data</td>
10895 Correct handling of <td>, <tr> (Bug 6171)
10900 <td> Some tabular data</td>
10901 <td> More tabular data ...</td>
10902 <td> And yet som tabular data</td>
10908 <td> Some tabular data</td>
10909 <td> More tabular data ...</td>
10910 <td> And yet som tabular data</td>
10918 Parsing crashing regression (fr:JavaScript)
10922 <p></body></x>
10927 Inline wiki vs wiki block nesting
10933 <p><b>Bold paragraph</b>
10934 </p><p>New wiki paragraph
10939 Inline HTML vs wiki block nesting
10947 <p><b>Bold paragraph</b>
10948 </p><p>New wiki paragraph
10952 # Original result was this:
10953 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10955 # While that might be marginally more intuitive, maybe, the six-apostrophe
10956 # construct is clearly pathological and the result stated here (which is what
10957 # the parser actually does) is about as reasonable as anything.
10959 Mixing markup for italics and bold
10962 '''bold''''''bold''bolditalics'''''
10964 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10972 Article for special page transclusion test
10976 Special page transclusion
10979 {{Special:Prefixindex/Xyzzyx}}
10981 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10986 Special page transclusion twice (bug 5021)
10989 {{Special:Prefixindex/Xyzzyx}}
10990 {{Special:Prefixindex/Xyzzyx}}
10992 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10993 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10998 Transclusion of default MediaWiki message
11000 {{MediaWiki:Mainpage}}
11007 Transclusion of nonexistent MediaWiki message
11009 {{MediaWiki:Mainpagexxx}}
11011 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11016 Transclusion of MediaWiki message with underscore
11018 {{MediaWiki:history_short}}
11025 Transclusion of MediaWiki message with space
11027 {{MediaWiki:history short}}
11034 Invalid header with following text
11044 Section extraction test (section 0)
11064 Section extraction test (section 1)
11086 Section extraction test (section 2)
11107 Section extraction test (section 3)
11127 Section extraction test (section 4)
11151 Section extraction test (section 5)
11171 Section extraction test (section 6)
11192 Section extraction test (section 7)
11212 Section extraction test (section 8)
11232 Section extraction test (section 9)
11253 Section extraction test (section 10)
11273 Section extraction test (nonexistent section 11)
11292 Section extraction test with bogus heading (section 1)
11297 ==bogus== not a legal section
11301 ==bogus== not a legal section
11305 Section extraction test with bogus heading (section 2)
11310 ==bogus== not a legal section
11317 Section extraction test with comment after heading (section 1)
11329 Section extraction test with comment after heading (section 2)
11341 Section extraction test with bogus <nowiki> heading (section 1)
11346 ==bogus== <nowiki>not a legal section</nowiki>
11350 ==bogus== <nowiki>not a legal section</nowiki>
11354 Section extraction test with bogus <nowiki> heading (section 2)
11359 ==bogus== <nowiki>not a legal section</nowiki>
11366 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11367 # instead of respecting commented sections
11369 Section extraction prefixed by comment (section 1)
11380 Section extraction prefixed by comment (section 2)
11391 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11392 # instead of respecting HTML-style headings
11394 Section extraction, mixed wiki and html (section 1)
11410 Section extraction, mixed wiki and html (section 2)
11426 # Formerly testing for bug 3342
11428 Section extraction, heading surrounded by <noinclude>
11432 <noinclude>==unmarked==</noinclude>
11438 # Test behavior of bug 19910
11440 Sectiion with all-equals
11445 The line above must have a trailing space
11448 But just in case it doesn't...
11452 But just in case it doesn't...
11456 Section replacement test (section 0)
11487 Section replacement test (section 1)
11516 Section replacement test (section 2)
11546 Section replacement test (section 3)
11577 Section replacement test (section 4)
11604 Section replacement test (section 5)
11635 Section replacement test (section 6)
11665 Section replacement test (section 7)
11696 Section replacement test (section 8)
11727 Section replacement test (section 9)
11756 Section replacement test (section 10)
11786 Section replacement test with initial whitespace (bug 13728)
11790 Preformatted initial line
11794 Preformatted initial line
11801 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11813 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11826 Section extraction, <pre> around bogus header (bug 10309)
11843 Section replacement, <pre> around bogus header (bug 10309)
11845 noxml replace=2,"xxx"
11866 Handling of 
 in URLs
11870 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11877 5 quotes, code coverage +1 line (php)
11884 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11886 5 quotes, code coverage +1 line (parsoid)
11892 <p><i><b></b></i></p>
11896 Special:Search page linking.
11900 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11912 * {{ROOTPAGENAMEE}}
11914 * {{BASEPAGENAMEE}}
11916 * {{TALKPAGENAMEE}}
11917 * {{SUBJECTPAGENAME}}
11918 * {{SUBJECTPAGENAMEE}}
11924 * {{SUBJECTSPACEE}}
11925 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11927 <ul><li> Parser test
11928 </li><li> Parser test
11929 </li><li> Parser test
11930 </li><li> Parser_test
11931 </li><li> Parser test
11932 </li><li> Parser_test
11933 </li><li> Parser test
11934 </li><li> Parser_test
11935 </li><li> Talk:Parser test
11936 </li><li> Talk:Parser_test
11937 </li><li> Parser test
11938 </li><li> Parser_test
11945 </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>
11949 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11959 image4 |300px| centre
11960 image5.svg| http://///////
11965 <ul class="gallery">
11966 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11967 <div style="height: 150px;">Image1.png</div>
11968 <div class="gallerytext">
11971 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11972 <div style="height: 150px;">Image2.gif</div>
11973 <div class="gallerytext">
11978 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11979 <div style="height: 150px;">Image3</div>
11980 <div class="gallerytext">
11983 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11984 <div style="height: 150px;">Image4</div>
11985 <div class="gallerytext">
11990 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11991 <div style="height: 150px;">Image5.svg</div>
11992 <div class="gallerytext">
11993 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11997 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11998 <div style="height: 150px;">* image6</div>
11999 <div class="gallerytext">
12007 Gallery (with options)
12009 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12010 File:Nonexistant.jpg|caption
12011 File:Nonexistant.jpg
12012 image:foobar.jpg|some '''caption''' [[Main Page]]
12014 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12017 <ul class="gallery" style="max-width: 226px;_width: 226px;">
12018 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12019 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12020 <div style="height: 70px;">Nonexistant.jpg</div>
12021 <div class="gallerytext">
12026 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12027 <div style="height: 70px;">Nonexistant.jpg</div>
12028 <div class="gallerytext">
12031 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12032 <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>
12033 <div class="gallerytext">
12034 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12038 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12039 <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>
12040 <div class="gallerytext">
12043 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12044 <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>
12045 <div class="gallerytext">
12055 Gallery with wikitext inside caption
12058 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12059 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12062 <ul class="gallery">
12063 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12064 <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>
12065 <div class="gallerytext">
12066 <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>
12070 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12071 <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>
12072 <div class="gallerytext">
12073 <p>This is a test template
12082 gallery (with showfilename option)
12084 <gallery showfilename>
12085 File:Nonexistant.jpg|caption
12086 File:Nonexistant.jpg
12087 image:foobar.jpg|some '''caption''' [[Main Page]]
12091 <ul class="gallery">
12092 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12093 <div style="height: 150px;">Nonexistant.jpg</div>
12094 <div class="gallerytext">
12095 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12100 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12101 <div style="height: 150px;">Nonexistant.jpg</div>
12102 <div class="gallerytext">
12103 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12107 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12108 <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>
12109 <div class="gallerytext">
12110 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12111 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12115 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12116 <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>
12117 <div class="gallerytext">
12118 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12127 Gallery (with namespace-less filenames)
12130 File:Nonexistant.jpg
12136 <ul class="gallery">
12137 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12138 <div style="height: 150px;">Nonexistant.jpg</div>
12139 <div class="gallerytext">
12142 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12143 <div style="height: 150px;">Nonexistant.jpg</div>
12144 <div class="gallerytext">
12147 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12148 <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>
12149 <div class="gallerytext">
12152 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12153 <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>
12154 <div class="gallerytext">
12162 HTML Hex character encoding (spells the word "JavaScript")
12164 JavaScript
12166 <p>JavaScript
12171 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12175 <p>&#xsee;&#XSEE;
12180 HTML Hex character encoding mixed case
12189 __FORCETOC__ override
12201 ISBN 978-0-1234-56 789
12203 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12208 ISBN followed by 5 spaces
12219 ISBN ISBN 1234567890
12221 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12226 Bug 22905: <abbr> followed by ISBN followed by </a>
12228 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12230 <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>
12239 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12244 Double RFC with a wiki link
12248 <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>
12257 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12262 Centre-aligned image
12264 [[Image:foobar.jpg|centre]]
12266 <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>
12273 [[Image:foobar.jpg|none]]
12275 <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>
12280 Width + Height sized image (using px) (height is ignored)
12282 [[Image:foobar.jpg|640x480px]]
12284 <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>
12289 Width-sized image (using px, no following whitespace)
12291 [[Image:foobar.jpg|640px]]
12293 <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>
12298 Width-sized image (using px, with following whitespace - test regression from r39467)
12300 [[Image:foobar.jpg|640px ]]
12302 <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>
12307 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12309 [[Image:foobar.jpg| 640px]]
12311 <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>
12316 Another italics / bold test
12324 # Note the results may be incorrect, as parserTest output included this:
12325 # XML error: Mismatched tag at byte 6120:
12326 # ...<dd> </dt></dl> </dd...
12334 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12345 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12347 Images with the "|" character in the comment
12349 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12351 <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>
12356 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12358 <html><script>alert(1);</script></html>
12360 <p><html><script>alert(1);</script></html>
12365 HTML with raw HTML ($wgRawHtml==true)
12369 <html><script>alert(1);</script></html>
12371 <p><script>alert(1);</script>
12376 Parents of subpages, one level up
12378 subpage title=[[Subpage test/L1/L2/L3]]
12382 <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>
12388 Parents of subpages, one level up, not named
12390 subpage title=[[Subpage test/L1/L2/L3]]
12394 <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>
12401 Parents of subpages, two levels up
12403 subpage title=[[Subpage test/L1/L2/L3]]
12409 <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
12410 </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>
12415 Parents of subpages, two levels up, without trailing slash or name.
12417 subpage title=[[Subpage test/L1/L2/L3]]
12426 Parents of subpages, two levels up, with lots of extra trailing slashes.
12428 subpage title=[[Subpage test/L1/L2/L3]]
12432 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12437 Subpage test/L1/L2/L3Sibling
12443 Transclusion of a sibling page (one level up)
12445 subpage title=[[Subpage test/L1/L2/L3]]
12454 Transclusion of a child page
12456 subpage title=[[Subpage test/L1/L2]]
12465 Non-transclusion because of too many up levels
12467 subpage title=[[Subpage test/L1/L2/L3]]
12469 {{../../../../More than parent}}
12471 <p>{{../../../../More than parent}}
12476 Definition list code coverage
12482 <dl><dt> title  </dt><dd> def
12483 </dd><dt> title </dt><dd> def
12484 </dd><dt>title</dt><dd> def
12490 Don't fall for the self-closing div
12492 <div>hello world</div/>
12494 <div>hello world</div>
12503 <p>[[:Template:Msg]]
12512 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12516 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12518 Always escape literal '>' in output, not just after '<'
12532 <p>This is a test template
12533 This is a test template
12545 Inclusion of !userCanEdit() content
12549 <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>
12555 Out-of-order TOC heading levels
12564 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12566 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12568 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12569 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12572 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12574 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12575 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12580 <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>
12581 <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>
12582 <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>
12583 <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>
12584 <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>
12585 <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>
12591 ISBN with a dummy number
12601 ISBN with space-delimited number
12605 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12611 ISBN with multiple spaces, no number
12630 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12631 </p><p>ISBN 12345678901
12637 ISBN with trailing year (bug 8110)
12639 ISBN 1-234-56789-0 - 2006
12641 ISBN 1 234 56789 0 - 2006
12643 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12644 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12652 {{anchorencode:foo bar©#%n}}
12654 <p>foo_bar.C2.A9.23.25n
12659 anchorencode trims spaces
12661 {{anchorencode: __pretty__please__}}
12668 anchorencode deals with links
12670 {{anchorencode: [[hello|world]] [[hi]]}}
12677 anchorencode deals with templates
12679 {{anchorencode: {{Foo}} }}
12686 anchorencode encodes like the TOC generator: (bug 18431)
12688 === _ +:.3A%3A&&]] ===
12689 {{anchorencode: _ +:.3A%3A&&]] }}
12692 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12693 <p>.2B:.3A.253A.26.26.5D.5D
12697 # Expected output in the following test is not necessarily expected (there
12698 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12699 # only testing for well-formedness.
12701 Bug 6200: blockquotes and paragraph formatting
12721 Bug 8293: Use of center tag ruins paragraph formatting
12742 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12746 <span><s>x</span></s>
12748 <p><span><s>x</span></s></span>
12753 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12757 <span><s>x</span></s>
12759 <p><span><s>x</s></span><s></s>
12764 ### Language variants related tests
12767 Self-link in language variants
12769 title=[[Dunav]] language=sr
12771 Both [[Dunav]] and [[Дунав]] are names for this river.
12773 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12784 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12786 title=[[Duna]] language=sr
12788 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12790 <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.
12795 Link to pages in language variants
12799 Main Page can be written as [[Маин Паге]]
12801 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12807 Multiple links to pages in language variants
12811 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12813 <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>.
12819 Simple template in language variants
12825 <p>This is a test template
12831 Template with explicit namespace in language variants
12837 <p>This is a test template
12843 Basic test for template parameter in language variants
12847 {{парамтест|param=foo}}
12849 <p>This is a test template with parameter foo
12855 Simple category in language variants
12859 [[Category:МедиаWики Усер'с Гуиде]]
12861 <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>
12878 Don't convert blue categorylinks to another variant (bug 33210)
12882 [[A]][[Category:分类]]
12884 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12889 Stripping -{}- tags (language variants)
12893 Latin proverb: -{Ne nuntium necare}-
12895 <p>Latin proverb: Ne nuntium necare
12901 Prevent conversion with -{}- tags (language variants)
12903 language=sr variant=sr-ec
12905 Latinski: -{Ne nuntium necare}-
12907 <p>Латински: Ne nuntium necare
12913 Prevent conversion of text with -{}- tags (language variants)
12915 language=sr variant=sr-ec
12917 Latinski: -{Ne nuntium necare}-
12919 <p>Латински: Ne nuntium necare
12925 Prevent conversion of links with -{}- tags (language variants)
12927 language=sr variant=sr-ec
12931 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12937 -{}- tags within headlines (within html for parserConvert())
12939 language=sr variant=sr-ec
12943 <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>
12949 Explicit definition of language variant alternatives
12951 language=zh variant=zh-tw
12953 -{zh:China;zh-tw:Taiwan}-, not China
12955 <p>Taiwan, not China
12961 Conversion around HTML tags
12963 language=sr variant=sr-ec
12965 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12966 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12969 <span title="ЛаCтин">ски</span>
12975 Explicit session-wise language variant mapping (A flag and - flag)
12977 language=zh variant=zh-tw
12979 Taiwan is not China.
12980 But -{A|zh:China;zh-tw:Taiwan}- is China,
12981 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12982 and -{China}- is China.
12984 <p>Taiwan is not China.
12985 But Taiwan is Taiwan,
12986 (This should be stripped!)
12987 and China is China.
12992 Explicit session-wise language variant mapping (H flag for hide)
12994 language=zh variant=zh-tw
12996 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12999 <p>(This should be stripped!)
13005 Adding explicit conversion rule for title (T flag)
13007 language=zh variant=zh-tw showtitle
13009 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13012 <p>Should be stripped!
13017 Testing that changing the language variant here in the tests actually works
13019 language=zh variant=zh showtitle
13021 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13024 <p>Should be stripped!
13029 Recursive conversion of alt and title attrs shouldn't clear converter state
13031 language=zh variant=zh-cn showtitle
13033 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13034 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13038 Should be stripped<span title="Exclamation">!</span>
13043 Bug 24072: more test on conversion rule for title
13045 language=zh variant=zh-tw showtitle
13047 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13048 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13051 <p>This should be stripped!
13052 This won't take interferes with the title rule.
13057 Partly disable title conversion if variant == main language code
13059 language=zh variant=zh title=[[ZH]] showtitle
13061 -{T|zh-cn:CN;zh-tw:TW}-
13069 Partly disable title conversion if variant == main language code, more
13071 language=zh variant=zh title=[[ZH]] showtitle
13081 Raw output of variant escape tags (R flag)
13083 language=zh variant=zh-tw
13085 Raw: -{R|zh:China;zh-tw:Taiwan}-
13087 <p>Raw: zh:China;zh-tw:Taiwan
13092 Nested using of manual convert syntax
13094 language=zh variant=zh-hk
13096 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13098 <p>Nested: Hello Hong Kong!
13103 Proper conversion of text in external links
13105 language=sr variant=sr-ec
13107 http://www.google.com
13108 gopher://www.google.com
13109 [http://www.google.com http://www.google.com]
13110 [gopher://www.google.com gopher://www.google.com]
13111 [https://www.google.com irc://www.google.com]
13112 [ftp://www.google.com www.google.com/ftp://dir]
13113 [//www.google.com www.google.com]
13115 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13116 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13117 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13118 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13119 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13120 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13121 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13126 Do not convert roman numbers to language variants
13128 language=sr variant=sr-ec
13132 <p>Фридрих IV је цар.
13137 Unclosed language converter markup "-{"
13148 Don't convert raw rule "-{R|=>}-" to "=>"
13165 Bug 529: Uncovered bullet
13175 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13176 # Templates in Wikipedia rely on this behavior, as tidy has always been
13177 # enabled there. These tests are normally run *without* tidy, so specify the
13178 # full output here.
13179 # To test realistic parsing behavior, apply a tidy-like transformation to both
13180 # the expected output and your parser's output.
13182 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13184 ******* Foo {{bullet}}
13186 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13199 Bug 529: Uncovered table already at line-start
13222 Bug 529: Uncovered bullet in parser function result
13224 * Foo {{lc:{{bullet}} }}
13233 Bug 5678: Double-parsed template argument
13235 {{lc:{{{1}}}|hello}}
13242 Bug 5678: Double-parsed template invocation
13244 {{lc:{{paramtest {{!}} param = hello }} }}
13246 <p>{{paramtest | param = hello }}
13251 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13254 title=[[Main Page]]
13256 {{PRVNÍVELKÉ:ěščř}}
13257 {{prvnívelké:ěščř}}
13277 Morwen/13: Unclosed link followed by heading
13284 <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>
13289 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13296 <h1><span class="mw-headline" id="heading">heading</span></h1>
13301 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13308 <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>
13323 Paragraphs inside divs (no extra line breaks)
13335 Paragraphs inside divs (extra line break on open)
13350 Paragraphs inside divs (extra line break on close)
13365 Paragraphs inside divs (extra line break on open and close)
13382 Nesting tags, paragraphs on lines which begin with <div>
13386 <div></div><strong>A
13395 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13397 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13401 <blockquote>Line one
13403 Line two</blockquote>
13405 <blockquote>Line one
13406 Line two</blockquote>
13411 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13418 Line two</blockquote>
13423 Line two</blockquote>
13428 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13432 <blockquote>Line one
13437 <blockquote>Line one
13445 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13464 Paragraphs inside blockquotes/divs (no extra line breaks)
13466 <blockquote><div>Line one
13468 Line two</div></blockquote>
13470 <blockquote><div>Line one
13471 Line two</div></blockquote>
13476 Paragraphs inside blockquotes/divs (extra line break on open)
13481 Line two</div></blockquote>
13486 Line two</div></blockquote>
13491 Paragraphs inside blockquotes/divs (extra line break on close)
13493 <blockquote><div>Line one
13496 </div></blockquote>
13498 <blockquote><div>Line one
13501 </div></blockquote>
13506 Paragraphs inside blockquotes/divs (extra line break on open and close)
13512 </div></blockquote>
13518 </div></blockquote>
13523 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13525 wgLinkHolderBatchSize=0
13531 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13532 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13533 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13538 Free external link invading image caption
13540 [[Image:Foobar.jpg|thumb|http://x|hello]]
13542 <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>
13547 Bug 15196: localised external link numbers
13551 [http://en.wikipedia.org/]
13553 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13558 Multibyte character in padleft
13560 {{padleft:-Hello|7|Æ}}
13567 Multibyte character in padright
13569 {{padright:Hello-|7|Æ}}
13576 formatdate parser function
13578 {{#formatdate:2009-03-24}}
13580 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13585 formatdate parser function, with default format
13587 {{#formatdate:2009-03-24|mdy}}
13589 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13594 Spacing of numbers in formatted dates
13596 {{#formatdate:January 15}}
13598 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13603 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
13605 language=nl title=[[MediaWiki:Common.css]]
13607 {{#formatdate:2009-03-24|dmy}}
13609 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13622 Edit comment with link
13626 I like the [[Main Page]] a lot
13628 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13632 Edit comment with link and link text
13636 I like the [[Main Page|best pages]] a lot
13638 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13642 Edit comment with link and link text with suffix
13646 I like the [[Main Page|best page]]s a lot
13648 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13652 Edit comment with section link (non-local, eg in history list)
13654 comment title=[[Main Page]]
13656 /* External links */ removed bogus entries
13658 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13662 Edit comment with section link and text before it (non-local, eg in history list)
13664 comment title=[[Main Page]]
13666 pre-comment text /* External links */ removed bogus entries
13668 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>
13672 Edit comment with section link (local, eg in diff view)
13674 comment local title=[[Main Page]]
13676 /* External links */ removed bogus entries
13678 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13682 Edit comment with subpage link (bug 14080)
13686 title=[[Subpage test]]
13688 Poked at a [[/subpage]] here...
13690 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13694 Edit comment with subpage link and link text (bug 14080)
13698 title=[[Subpage test]]
13700 Poked at a [[/subpage|neat little page]] here...
13702 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13706 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13709 title=[[Subpage test]]
13711 Poked at a [[/subpage]] here...
13713 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13717 Edit comment with bare anchor link (local, as on diff)
13721 title=[[Main Page]]
13725 <a href="#section">#section</a>
13729 Edit comment with bare anchor link (non-local, as on history)
13732 title=[[Main Page]]
13736 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13740 Anchor starting with underscore
13744 <p><a href="#_ref">One</a>
13749 Id starting with underscore
13751 <div id="_ref"></div>
13753 <div id="_ref"></div>
13758 Space normalisation on autocomment (bug 22784)
13761 title=[[Main Page]]
13763 /* __hello__world__ */
13765 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13769 percent-encoding and + signs in comments (Bug 26410)
13773 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13775 <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>
13779 Bad images - basic functionality
13788 Bad images - bug 16039: text after bad image disappears
13802 Verify that displaytitle works (bug #22501) no displaytitle
13806 wgAllowDisplayTitle=true
13807 wgRestrictDisplayTitle=false
13809 this is not the the title
13812 <p>this is not the the title
13817 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13822 wgAllowDisplayTitle=true
13823 wgRestrictDisplayTitle=false
13825 this is not the the title
13826 {{DISPLAYTITLE:whatever}}
13829 <p>this is not the the title
13834 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13839 wgAllowDisplayTitle=true
13840 wgRestrictDisplayTitle=true
13842 this is not the the title
13843 {{DISPLAYTITLE:whatever}}
13846 <p>this is not the the title
13851 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13856 wgAllowDisplayTitle=true
13857 wgRestrictDisplayTitle=true
13859 this is not the the title
13860 {{DISPLAYTITLE:screen}}
13863 <p>this is not the the title
13868 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13873 wgAllowDisplayTitle=false
13875 this is not the the title
13876 {{DISPLAYTITLE:screen}}
13879 <p>this is not the the title
13880 <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>
13885 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13890 wgAllowDisplayTitle=false
13892 this is not the the title
13895 <p>this is not the the title
13900 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13905 wgAllowDisplayTitle=true
13906 wgRestrictDisplayTitle=true
13908 this is not the the title
13909 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13911 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13912 <p>this is not the the title
13917 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13922 wgAllowDisplayTitle=true
13923 wgRestrictDisplayTitle=true
13925 this is not the the title
13926 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13928 <span style="color: red;">s</span>creen
13929 <p>this is not the the title
13934 preload: check <noinclude> and <includeonly>
13938 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13944 preload: check <onlyinclude>
13948 Goodbye <onlyinclude>Hello world</onlyinclude>
13954 preload: can pass tags through if we want to
13958 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13960 <includeonly>Hello world</includeonly>
13964 preload: check that it doesn't try to do tricks
13968 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13970 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13974 Play a bit with r67090 and bug 3158
13978 <div style="width:50% !important"> </div>
13979 <div style="width:50% !important"> </div>
13980 <div style="width:50% !important"> </div>
13981 <div style="border : solid;"> </div>
13983 <div style="width:50% !important"> </div>
13984 <div style="width:50% !important"> </div>
13985 <div style="width:50% !important"> </div>
13986 <div style="border : solid;"> </div>
13991 HTML5 data attributes
13993 <span data-foo="bar">Baz</span>
13994 <p data-abc-def_hij="">Quuz</p>
13996 <p><span data-foo="bar">Baz</span>
13998 <p data-abc-def_hij="">Quuz</p>
14003 percent-encoding and + signs in internal links (Bug 26410)
14005 [[User:+%]] [[Page+title%]]
14006 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14007 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14008 [[%33%45]] [[%33%45+]]
14010 <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>
14011 <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>
14012 <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>
14013 <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>
14018 Special characters in embedded file links (bug 27679)
14020 [[File:Contains & ampersand.jpg]]
14021 [[File:Does not exist.jpg|Title with & ampersand]]
14023 <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>
14024 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14030 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14032 Text's been normalized?
14034 <p>Text's been normalized?
14039 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14041 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14043 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14048 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14050 [http://www.example.org/ ideograms]
14052 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14057 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14059 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14061 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14085 Bug 31098 Template which includes system messages which includes the template
14089 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14090 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14095 Bug31490 Turkish: ucfirst 'blah'
14106 Bug31490 Turkish: ucfirst 'ix'
14117 Bug31490 Turkish: lcfirst 'BLAH'
14128 Bug31490 Turkish: ucfırst (with a dotless i)
14134 <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>
14139 Bug31490 ucfırst (with a dotless i) with English language
14145 <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>
14150 Bug 26375: TOC with italics
14152 title=[[Main Page]]
14155 == ''Lost'' episodes ==
14157 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14159 <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>
14162 <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>
14167 Bug 26375: TOC with bold
14169 title=[[Main Page]]
14172 == '''should be bold''' then normal text ==
14174 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14176 <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>
14179 <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>
14184 Bug 33845: Headings become cursive in TOC when they contain an image
14186 title=[[Main Page]]
14189 == Image [[Image:foobar.jpg]] ==
14191 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14193 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14196 <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>
14201 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14203 title=[[Main Page]]
14206 == <blockquote>Quote</blockquote> ==
14208 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14210 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14213 <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>
14218 Unclosed tags in TOC
14220 title=[[Main Page]]
14224 <small>Hanc marginis exiguitas non caperet.</small>
14227 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14229 <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>
14232 <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>
14233 <p><small>Hanc marginis exiguitas non caperet.</small>
14239 Multiple tags in TOC
14242 == <i>Foo</i> <b>Bar</b> ==
14244 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14246 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14248 <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>
14249 <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>
14252 <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>
14253 <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>
14258 Tags with parameters in TOC
14261 == <sup class="in-h2">Hello</sup> ==
14263 == <sup class="a > b">Evilbye</sup> ==
14265 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14267 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14268 <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>
14271 <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>
14272 <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>
14277 span tags with directionality in TOC
14280 == <span dir="ltr">C++</span> ==
14282 == <span dir="rtl">זבנג!</span> ==
14284 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14286 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14288 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14290 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14292 <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>
14293 <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>
14294 <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>
14295 <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>
14296 <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>
14299 <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>
14300 <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>
14301 <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>
14302 <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>
14303 <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>
14310 == {{int:headline_sample}} ==
14314 Bug 32057: Title needed when expanding <h> nodes.
14316 title=[[Main Page]]
14320 <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>
14325 Strip marker in urlencode
14327 {{urlencode:x<nowiki/>y}}
14328 {{urlencode:x<nowiki/>y|wiki}}
14329 {{urlencode:x<nowiki/>y|path}}
14356 Strip marker in formatNum
14358 {{formatnum:1<nowiki/>2}}
14359 {{formatnum:1<nowiki/>2|R}}
14367 Check noCommafy in formatNum
14371 {{formatnum:123456.78}}
14372 {{formatnum:123456.78|NOSEP}}
14380 Strip marker in grammar
14384 {{grammar:elative|foo<nowiki/>bar}}
14391 Strip marker in padleft
14393 {{padleft:|2|x<nowiki/>y}}
14400 Strip marker in padright
14402 {{padright:|2|x<nowiki/>y}}
14409 Strip marker in anchorencode
14411 {{anchorencode:x<nowiki/>y}}
14418 nowiki inside link inside heading (bug 18295)
14420 ==[[foo|x<nowiki>y</nowiki>z]]==
14422 <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>
14427 new support for bdi element (bug 31817)
14429 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14431 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14436 Ignore pipe between table row attributes
14440 |- id=foo | style='color: red'
14448 <tr id="foo" style="color: red">
14455 Gallery override link with WikiLink (bug 34852)
14458 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14461 <ul class="gallery">
14462 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14463 <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>
14464 <div class="gallerytext">
14474 Gallery override link with absolute external link (bug 34852)
14477 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14480 <ul class="gallery">
14481 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14482 <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>
14483 <div class="gallerytext">
14493 Gallery override link with malicious javascript (bug 34852)
14496 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14499 <ul class="gallery">
14500 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14501 <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>
14502 <div class="gallerytext">
14512 Gallery with invalid title as link (bug 43964)
14515 File:foobar.jpg|link=<
14518 <ul class="gallery">
14519 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14520 <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>
14521 <div class="gallerytext">
14529 Language parser function
14538 Padleft and padright as substr
14540 {{padleft:|3|abcde}}
14541 {{padright:|3|abcde}}
14549 Special parser function
14551 {{#special:RandomPage}}
14552 {{#special:BaDtItLe}}
14553 {{#special:Foobar}}
14562 Bug 34939 - Case insensitive link parsing ([HttP://])
14564 [HttP://MediaWiki.Org/]
14566 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14571 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14573 [HttP://MediaWiki.Org/ MediaWiki]
14575 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14580 Bug 34939 - Case insensitive link parsing (HttP://)
14582 HttP://MediaWiki.Org/
14584 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14590 ### Parsoids-specific tests
14591 ### Parsoid-PHP parser incompatibilities
14594 1. SOL-sensitive wikitext tokens as template-args
14596 parsoid=wt2html,wt2wt
14602 <span about="#mwt1" typeof="mw:Transclusion">
14603 </span><ul about="#mwt1"><li>a</li></ul>
14604 <span about="#mwt2" typeof="mw:Transclusion">
14605 </span><ol about="#mwt2"><li>a</li></ol>
14606 <span about="#mwt3" typeof="mw:Transclusion">
14607 </span><dl about="#mwt3"><dd>a</dd></dl>
14610 #### ----------------------------------------------------------------
14611 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14612 #### tags. Parsoid's output for these tags differs from that of the
14614 #### ----------------------------------------------------------------
14617 Ref: 1. ref-location should be replaced with an index span
14622 B <ref name="x">foo</ref>
14625 <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>
14626 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>
14627 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>
14631 Ref: 2. ref-tags with identical names should all get the same index
14635 A <ref name="x">foo</ref>
14638 <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>
14639 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>
14643 Ref: 3. spaces in ref-names should be ignored
14647 A <ref name="x">foo</ref>
14648 B <ref name=" x " />
14651 <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>
14652 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>
14653 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>
14657 Ref: 4. 'constructor' should be accepted as a valid ref-name
14658 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14662 A <ref name="constructor">foo</ref>
14664 <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>
14668 Ref: 5. body should accept generic wikitext
14673 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14678 <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>
14680 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14681 <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>
14686 Ref: 6. indent-pres should not be output in ref-body
14698 <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>
14700 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14701 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14708 Ref: 6. No p-wrapping in ref-body
14727 <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>
14729 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14730 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14744 Ref: 8. transclusion wikitext has lower precedence
14748 A <ref> foo {{echo|</ref> B C}}
14752 <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>
14754 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14755 <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>
14759 Ref: 9. unclosed comments should not leak out of ref-body
14763 A <ref> foo <!--</ref> B C
14767 <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>
14769 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14770 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14774 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14778 A <ref> <b> foo </ref> B C
14782 <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>
14784 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14785 <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>
14789 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14796 <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
14797 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>
14801 Ref: 12. ref-tags act as trailing newline migration barrier
14805 <!--the newline at the end of this line moves out of the p-tag-->a
14807 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14812 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14815 <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>
14816 <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>
14823 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14831 <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
14832 <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>
14836 Ref: 14. A nested ref-tag should be emitted as plain text
14840 <ref>foo <ref>bar</ref> baz</ref>
14844 <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>
14846 <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>
14850 Ref: 15. ref-tags with identical names should get identical indexes
14854 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14855 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14859 <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>
14860 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>
14862 <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>
14866 References: 1. references tag without any refs should be handled properly
14872 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14876 References: 2. references tag with group only outputs references from that group
14880 A <ref group="a">foo</ref>
14881 B <ref group="b">bar</ref>
14883 <references group='a' />
14885 <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>
14886 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>
14888 <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>
14892 References: 3. ref list should be cleared after processing references
14904 <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>
14906 <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>
14908 <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>
14910 <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>
14914 References: 4. only referenced group should be cleared after processing references
14918 A <ref group="a">afoo</ref>
14921 <references group="a"/>
14927 <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>
14928 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>
14930 <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>
14932 <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>
14934 <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>
14938 References: 5. ref tags in references should be processed while ignoring all other content
14943 B <ref name="b">bar</ref>
14946 <ref name="a">foo</ref>
14947 This should just get lost.
14950 <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>
14951 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>
14953 <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>
14957 References: 6. <references /> from a transclusion
14961 {{echo|<references />}}
14963 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
14966 #### ----------------------------------------------------------------
14967 #### The following section of tests are primarily to test
14968 #### wikitext escaping capabilities of Parsoid. Given that
14969 #### escaping can be done any number of ways, the wikitext (input)
14970 #### is always adjusted to reflect how Parsoid adds nowiki
14973 #### We are marking several tests as parsoid-only since the
14974 #### HTML in the result section is different from what the
14975 #### PHP parser generates for it.
14976 #### ----------------------------------------------------------------
14979 #### --------------- Headings ---------------
14981 #### 1. Nested inside html <h1>=foo=</h1>
14982 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14983 #### 3. Nested inside html with wikitext split by html tags
14984 #### 4. No escape needed
14985 #### 5. Empty headings <h1></h1>
14986 #### 6. Heading chars in SOL context
14987 #### ----------------------------------------
14989 Headings: 0. Unnested
14993 <nowiki>=foo=</nowiki>
14995 <nowiki> =foo= </nowiki>
14997 <nowiki>=foo=</nowiki>
14999 =foo''a''<nowiki>=</nowiki>
15001 <p><span typeof="mw:Nowiki">=foo=</span></p>
15003 <p><span typeof="mw:Nowiki"> =foo= </span>
15005 <span typeof="mw:Nowiki">=foo=</span></p>
15007 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15011 Headings: 1. Nested inside html
15015 =<nowiki>=foo=</nowiki>=
15017 ==<nowiki>=foo=</nowiki>==
15019 ===<nowiki>=foo=</nowiki>===
15021 ====<nowiki>=foo=</nowiki>====
15023 =====<nowiki>=foo=</nowiki>=====
15025 ======<nowiki>=foo=</nowiki>======
15027 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15028 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15029 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15030 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15031 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15032 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15036 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15041 <nowiki>*bar</nowiki>
15047 <nowiki>=bar=</nowiki>
15055 Headings: 3. Nested inside html with wikitext split by html tags
15059 =='''bold'''<nowiki>foo=</nowiki>=
15061 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15065 Headings: 4a. No escaping needed (testing just h1 and h2)
15083 =<nowiki>=</nowiki>=
15091 <h1><i>=</i>foo=</h1>
15092 <h1><span typeof="mw:Nowiki">=</span></h1>
15096 Headings: 4b. No escaping needed (inside p-tags)
15111 Headings: 5. Empty headings
15123 =====<nowiki/>=====
15125 ======<nowiki/>======
15136 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15140 <nowiki>=a=</nowiki>
15142 <nowiki>=a= </nowiki>
15144 <nowiki>=a= </nowiki>
15146 <nowiki>=a= </nowiki>
15155 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15183 Headings: 6c. Heading chars in SOL context (leading newline break)
15195 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15199 <!--c0--><nowiki>=a=</nowiki>
15201 <nowiki>=a= </nowiki><!--c2--> <!--c3-->
15203 <p><!--c0-->=a=</p>
15204 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15208 Headings: 6d. Heading chars in SOL context (No escaping needed)
15217 #### --------------- Lists ---------------
15218 #### 0. Outside nests (*foo, etc.)
15219 #### 1. Nested inside html <ul><li>*foo</li></ul>
15220 #### 2. Inside definition lists
15221 #### 3. Only bullets at start should be escaped
15222 #### 4. No escapes needed
15223 #### 5. No unnecessary escapes
15224 #### 6. Escape bullets in SOL position
15225 #### 7. Escape bullets in a multi-line context
15226 #### ----------------------------------------
15229 Lists: 0. Outside nests
15231 <nowiki>*foo</nowiki>
15233 <nowiki>#foo</nowiki>
15241 Lists: 1. Nested inside html
15243 *<nowiki>*foo</nowiki>
15245 *<nowiki>#foo</nowiki>
15247 *<nowiki>:foo</nowiki>
15249 *<nowiki>;foo</nowiki>
15251 #<nowiki>*foo</nowiki>
15253 #<nowiki>#foo</nowiki>
15255 #<nowiki>:foo</nowiki>
15257 #<nowiki>;foo</nowiki>
15279 Lists: 2. Inside definition lists
15281 ;<nowiki>;foo</nowiki>
15283 ;<nowiki>:foo</nowiki>
15285 ;<nowiki>:foo</nowiki>
15288 :<nowiki>:foo</nowiki>
15303 Lists: 3. Only bullets at start of text should be escaped
15305 *<nowiki>*foo*bar</nowiki>
15307 *<nowiki>*foo</nowiki>''it''*bar
15311 <ul><li>*foo<i>it</i>*bar
15317 Lists: 4. No escapes needed
15329 <ul><li><i>foo</i>*bar
15331 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15336 Lists: 5. No unnecessary escapes
15338 * bar <span><nowiki>[[foo]]</nowiki></span>
15340 *=bar <span><nowiki>[[foo]]</nowiki></span>
15342 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15344 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15346 *=bar <span>foo]]</span>=
15350 <ul><li> bar <span>[[foo]]</span>
15352 <ul><li>=bar <span>[[foo]]</span>
15354 <ul><li>[[bar <span>[[foo]]</span>
15356 <ul><li>]]bar <span>[[foo]]</span>
15358 <ul><li>=bar <span>foo]]</span>=
15360 <ul><li> <s></s>: a
15366 Lists: 6. Escape bullets in SOL position
15370 <!--cmt--><nowiki>*foo</nowiki>
15372 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15376 Lists: 7. Escape bullets in a multi-line context
15386 #### --------------- HRs ---------------
15387 #### 1. Single line
15388 #### -----------------------------------
15391 HRs: 1. Single line
15395 ----<nowiki>----</nowiki>
15399 <hr><span typeof="mw:Nowiki">----</span>
15404 #### --------------- Tables ---------------
15405 #### 1a. Simple example
15406 #### 1b. No escaping needed (!foo)
15407 #### 1c. No escaping needed (|foo)
15408 #### 1d. No escaping needed (|}foo)
15410 #### 2a. Nested in td (<td>foo|bar</td>)
15411 #### 2b. Nested in td (<td>foo||bar</td>)
15412 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15414 #### 3a. Nested in th (<th>foo!bar</th>)
15415 #### 3b. Nested in th (<th>foo!!bar</th>)
15416 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15420 #### 4c. No escaping needed
15421 #### --------------------------------------
15424 Tables: 1a. Simple example
15435 Tables: 1b. No escaping needed
15444 Tables: 1c. No escaping needed
15453 Tables: 1d. No escaping needed
15462 Tables: 2a. Nested in td
15467 |<nowiki>foo|bar</nowiki>
15471 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15475 Tables: 2b. Nested in td
15480 |<nowiki>foo||bar</nowiki>
15481 |''it''<nowiki>foo||bar</nowiki>
15485 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15486 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15490 Tables: 2c. Nested in td -- no escaping needed
15498 <table><tbody><tr><td>foo!!bar
15499 </td></tr></tbody></table>
15504 Tables: 3a. Nested in th
15512 <table><tbody><tr><th>foo!bar
15513 </th></tr></tbody></table>
15518 Tables: 3b. Nested in th
15523 !<nowiki>foo!!bar</nowiki>
15527 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15532 Tables: 3c. Nested in th -- no escaping needed
15537 !<nowiki>foo||bar</nowiki>
15541 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15545 Tables: 4a. Escape -
15553 |<nowiki>-bar</nowiki>
15557 <tr><th>-bar</th></tr>
15559 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15563 Tables: 4b. Escape +
15571 |<nowiki>+bar</nowiki>
15575 <tr><th>+bar</th></tr>
15577 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15581 Tables: 4c. No escaping needed
15595 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15596 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15600 ### SSS FIXME: Disabled right now because accurate html2wt
15601 ### on this snippet requires data-parsoid flags that we've
15602 ### stripped out of these tests. We should scheme how we
15603 ### we want to handle these kind of tests that require
15604 ### data-parsoid flags for accurate html2wt serialization
15607 Tables: 4d. No escaping needed
15625 #### --------------- Links ----------------
15626 #### 1. Quote marks in link text
15627 #### 2. Wikilinks: Escapes needed
15628 #### 3. Wikilinks: No escapes needed
15629 #### 4. Extlinks: Escapes needed
15630 #### 5. Extlinks: No escapes needed
15631 #### --------------------------------------
15633 Links 1. Quote marks in link text
15637 [[Foo|<nowiki>Foo''boo''</nowiki>]]
15639 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15643 Links 2. WikiLinks: Escapes needed
15647 [[Foo|<nowiki>[Foobar]</nowiki>]]
15648 [[Foo|<nowiki>Foobar]</nowiki>]]
15649 [[Foo|x [Foobar] x]]
15650 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15651 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15652 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15653 [[Foo|<nowiki>|Bar</nowiki>]]
15654 [[Foo|<nowiki>]]bar</nowiki>]]
15655 [[Foo|<nowiki>[[bar</nowiki>]]
15656 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15658 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15659 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15660 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15661 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15662 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15663 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15664 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15665 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15666 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15667 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15671 Links 3. WikiLinks: No escapes needed
15678 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15679 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15683 Links 4. ExtLinks: Escapes needed
15687 [http://google.com <nowiki>[google]</nowiki>]
15688 [http://google.com <nowiki>google]</nowiki>]
15690 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15691 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15695 Links 5. ExtLinks: No escapes needed
15699 [http://google.com [google]
15701 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15704 #### --------------- Quotes ---------------
15705 #### 1. Quotes inside <b> and <i>
15706 #### 2. Link fragments separated by <i> and <b> tags
15707 #### 3. Link fragments inside <i> and <b>
15708 #### --------------------------------------
15710 1. Quotes inside <b> and <i>
15712 ''<nowiki>'foo'</nowiki>''
15713 ''<nowiki>''foo''</nowiki>''
15714 ''<nowiki>'''foo'''</nowiki>''
15715 ''foo''<nowiki>'s</nowiki>
15716 '''<nowiki>'foo'</nowiki>'''
15717 '''<nowiki>''foo''</nowiki>'''
15718 '''<nowiki>'''foo'''</nowiki>'''
15719 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15720 '''foo'''<nowiki>'s</nowiki>
15729 <b>foo'<i>bar'</i>baz</b>
15735 2. Link fragments separated by <i> and <b> tags
15737 [[''foo''<nowiki>hello]]</nowiki>
15739 [['''foo'''<nowiki>hello]]</nowiki>
15741 <p>[[<i>foo</i>hello]]
15742 </p><p>[[<b>foo</b>hello]]
15747 2. Link fragments inside <i> and <b>
15748 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15749 this is one of the shortcomings of this format)
15751 ''[[foo''<nowiki>]]</nowiki>
15753 '''[[foo'''<nowiki>]]</nowiki>
15756 </p><p><b>[[foo</b>]]
15760 #### ----------- Paragraphs ---------------
15761 #### 1. No unnecessary escapes
15762 #### --------------------------------------
15765 1. No unnecessary escapes
15767 bar <span><nowiki>[[foo]]</nowiki></span>
15769 =bar <span><nowiki>[[foo]]</nowiki></span>
15771 [[bar <span><nowiki>[[foo]]</nowiki></span>
15773 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15775 =bar <span>foo]]</span><nowiki>=</nowiki>
15777 <p>bar <span>[[foo]]</span>
15778 </p><p>=bar <span>[[foo]]</span>
15779 </p><p>[[bar <span>[[foo]]</span>
15780 </p><p>]]bar <span>[[foo]]</span>
15781 </p><p>=bar <span>foo]]</span>=
15785 #### ----------------------- PRE --------------------------
15786 #### 1. Leading whitespace in SOL context should be escaped
15787 #### ------------------------------------------------------
15789 1. Leading whitespace in SOL context should be escaped
15793 <nowiki> a</nowiki>
15795 <nowiki> a</nowiki>
15797 <nowiki> a(tab)</nowiki>
15799 <nowiki> a</nowiki>
15801 <nowiki> a</nowiki>
15816 <p><!--cmt--> a</p>
15825 #### --------------- HTML tags ---------------
15828 #### 3. multi-line html tag
15829 #### -----------------------------------------
15835 <a href="http://google.com">google</a>
15837 <a href="http://google.com">google</a>
15843 <nowiki><div>foo</div>
15844 <div style="color:red">foo</div></nowiki>
15846 <p><div>foo</div>
15847 <div style="color:red">foo</div>
15852 3. multi-line html tag
15867 <nowiki><ref>foo</ref></nowiki>
15869 <p><ref>foo</ref>
15873 #### --------------- Others ---------------
15877 <nowiki>foo</nowiki>
15879 <p><nowiki>foo</nowiki>
15884 Tag-like HTML structures are passed through as text
15906 </p><p>1<d e>f
15911 # This fails in the PHP parser (see bug 40670,
15912 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15914 Tag names followed by punctuation should not be recognized as tags
15920 <p><s.ome> text
15925 HTML tag with necessary entities in attributes
15927 <span title="&amp;">foo</span>
15929 <p><span title="&amp;">foo</span>
15934 HTML tag with 'unnecessary' entity encoding in attributes
15936 <span title="&">foo</span>
15938 <p><span title="&">foo</span>
15943 HTML tag with broken attribute value quoting
15945 <span title="Hello world>Foo</span>
15947 <p><span>Foo</span>
15952 Parsoid-only: HTML tag with broken attribute value quoting
15956 <span title="Hello world>Foo</span>
15958 <p><span title="Hello world">Foo</span>
15963 Table with broken attribute value quoting
15966 | title="Hello world|Foo
15977 Table with broken attribute value quoting on consecutive lines
15980 | title="Hello world|Foo
15981 | style="color:red|Bar
15994 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15999 | title="Hello world|Foo
16000 | style="color:red|Bar
16005 <td title="Hello world">Foo
16006 </td><td style="color: red">Bar
16007 </td></tr></tbody></table>
16012 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16022 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16032 Accept empty td cell attribute
16035 | align="center" | foo || |
16040 <td align="center"> foo </td>
16047 Non-empty attributes in th-cells
16050 ! Foo !! style="color: red" | Bar
16056 <th style="color: red"> Bar
16062 Accept empty attributes in th-cells
16077 Empty table rows go away
16098 ### Parsoid-centric tests for testing RTing of inter-element separators
16099 ### Edge cases not tested by existing parser tests and specific to
16100 ### Parsoid-specific serialization strategies.
16104 RT-ed inter-element separators should be valid separators
16117 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16118 (Parsoid-only since PHP parser relies on Tidy for correct output)
16134 Empty TD followed by TD with tpl-generated attribute
16139 |{{echo|style='color:red'}}|foo
16153 Indented table with an empty td
16172 Empty TR followed by a template-generated TR
16173 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16175 parsoid=wt2html,wt2wt
16179 {{echo|<tr><td>foo</td></tr>}}
16185 <tr typeof="mw:Transclusion">
16186 <td>foo</td></tr></tbody></table>
16189 ## PHP and parsoid output differ for this, and since this is primarily
16190 ## for testing Parsoid's serializer, marking this Parsoid only
16192 Empty TR followed by mixed-ws-comment line should RT correctly
16206 <td> <!--c--></td></tr>
16208 <td><!--c--> <!--d--></td></tr>
16214 Multi-line image caption generated by templates with/without trailing newlines
16218 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16219 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16221 <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>
16222 <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>
16226 ## PHP emits broken html for this, and since this is primarily
16227 ## a Parsoid serializer test, marking this Parsoid only
16229 Improperly nested inline or quotes tags with whitespace in between
16233 <span> <s>x</span> </s>
16236 <p><span> <s>x</s></span><s> </s>
16237 <b> <i>x</i></b><i> </i>
16241 # -----------------------------------------------------------------
16242 # The following section of tests are primarily to spec requirements
16243 # around serialization of new/edited content.
16245 # All these tests are marked Parsoid html2wt and html2html only
16246 # ----------------------------------------------------------------
16249 Image: Modifying size of an image
16253 [[Image:Wiki.png|230x230px]]
16255 <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>
16259 Image: New block level image should have \n before and after
16264 [[File:Wiki.png|right|thumb|150x150px]]
16267 <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>
16271 Lists: Add space after bullets
16278 * <span> baz</span>
16283 <li><span> baz</span></li>
16293 Try for 100% code coverage