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
130 Template:image_attribs
133 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
155 This is a simple paragraph.
157 <p>This is a simple paragraph.
162 Paragraphs with extra newline spacing
185 Paragraphs with newline spacing with comment lines in between
193 <!--foo--><!--More than 1 comment, still stripped-->
197 <!--foo--> <!----> <!-- bar -->
258 Paragraphs with newline spacing with non-empty white-space lines in between
285 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
293 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
332 Extra newlines: More paragraphs with indented comment
347 Extra newlines followed by heading
362 <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>
363 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
366 <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>
371 Extra newlines between heading and content are swallowed
379 <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>
380 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
387 http://fr.wikipedia.org/wiki/🍺
388 <!-- EasterEgg we love beer, better be able be able to link to it -->
390 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
410 * plain''italic''plain
411 * plain''italic''plain''italic''plain
412 * plain'''bold'''plain
413 * plain'''bold'''plain'''bold'''plain
414 * plain''italic''plain'''bold'''plain
415 * plain'''bold'''plain''italic''plain
416 * plain''italic'''bold-italic'''italic''plain
417 * plain'''bold''bold-italic''bold'''plain
418 * plain'''''bold-italic'''italic''plain
419 * plain'''''bold-italic''bold'''plain
420 * plain''italic'''bold-italic'''''plain
421 * plain'''bold''bold-italic'''''plain
422 * plain l'''italic''plain
423 * plain l''''bold''' plain
426 </li><li> plain<i>italic</i>plain
427 </li><li> plain<i>italic</i>plain<i>italic</i>plain
428 </li><li> plain<b>bold</b>plain
429 </li><li> plain<b>bold</b>plain<b>bold</b>plain
430 </li><li> plain<i>italic</i>plain<b>bold</b>plain
431 </li><li> plain<b>bold</b>plain<i>italic</i>plain
432 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
433 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
434 </li><li> plain<i><b>bold-italic</b>italic</i>plain
435 </li><li> plain<b><i>bold-italic</i>bold</b>plain
436 </li><li> plain<i>italic<b>bold-italic</b></i>plain
437 </li><li> plain<b>bold<i>bold-italic</i></b>plain
438 </li><li> plain l'<i>italic</i>plain
439 </li><li> plain l'<b>bold</b> plain
444 # this example taken from the simple/Moon article
446 Italics and possessives
448 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
450 <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
455 ### 2-quote opening sequence tests
458 Italics and bold: 2-quote opening sequence: (2,2)
468 Italics and bold: 2-quote opening sequence: (2,3)
478 Italics and bold: 2-quote opening sequence: (2,4)
488 Italics and bold: 2-quote opening sequence: (2,5) (php)
497 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
499 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
511 ### 3-quote opening sequence tests
515 Italics and bold: 3-quote opening sequence: (3,2)
525 Italics and bold: 3-quote opening sequence: (3,3)
535 Italics and bold: 3-quote opening sequence: (3,4)
545 Italics and bold: 3-quote opening sequence: (3,5) (php)
554 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
556 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
568 ### 4-quote opening sequence tests
572 Italics and bold: 4-quote opening sequence: (4,2)
582 Italics and bold: 4-quote opening sequence: (4,3)
592 Italics and bold: 4-quote opening sequence: (4,4)
602 Italics and bold: 4-quote opening sequence: (4,5) (php)
611 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
613 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
619 <p>'<b>foo<i></i></b>
625 ### 5-quote opening sequence tests
629 Italics and bold: 5-quote opening sequence: (5,2) (php)
638 # Parsoid reverses the nesting order, compared to the PHP parser
640 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
652 Italics and bold: 5-quote opening sequence: (5,3)
662 Italics and bold: 5-quote opening sequence: (5,4)
666 <p><i><b>foo'</b></i>
672 Italics and bold: 5-quote opening sequence: (5,5)
681 ### multiple quote sequences in a line
684 Italics and bold: multiple quote sequences: (2,4,2)
688 <p><i>foo'<b>bar</b></i>
694 Italics and bold: multiple quote sequences: (2,4,3)
698 <p><i>foo'<b>bar</b></i>
704 Italics and bold: multiple quote sequences: (2,4,4)
708 <p><i>foo'<b>bar'</b></i>
714 Italics and bold: multiple quote sequences: (3,4,2) (php)
723 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
725 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
731 <p><b>foo'</b>bar<i></i>
737 Italics and bold: multiple quote sequences: (3,4,3) (php)
746 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
748 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
754 <p><b>foo'</b>bar<b></b>
759 ### other quote tests
762 Italics and bold: other quote tests: (2,3,5)
764 ''this is about '''foo's family'''''
766 <p><i>this is about <b>foo's family</b></i>
772 Italics and bold: other quote tests: (2,(3,3),2)
774 ''this is about '''foo's''' family''
776 <p><i>this is about <b>foo's</b> family</i>
782 Italics and bold: other quote tests: (3,2,3,2)
784 '''this is about ''foo'''s family''
786 <p><b>this is about <i>foo</i></b><i>s family</i>
791 # The Parsoid team believes the PHP parser's output on this test is wrong.
792 # It only checks for convert-to-bold-on-single-character-word when the word
793 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
794 # This means that the bold token in position 2 (0-indexed) gets converted by
795 # parsoid, but doesn't get changed by the PHP parser.
797 Italics and bold: other quote tests: (3,2,3,3) (php)
801 '''this is about ''foo'''s family'''
803 <p>'<i>this is about </i>foo<b>s family</b>
806 # This is the output the Parsoid team believes to be correct.
808 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
812 '''this is about ''foo'''s family'''
814 <p><b>this is about <i>foo'</i>s family</b>
820 Italics and bold: other quote tests: (3,(2,2),3)
822 '''this is about ''foo's'' family'''
824 <p><b>this is about <i>foo's</i> family</b>
830 Italicized possessive
832 The ''[[Main Page]]'''s talk page.
834 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
839 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
840 (Requires tidy for PHP parser output to be fixed up)
842 parsoid=wt2html,wt2wt
850 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
851 <td><i>a</i></td><td><i>b</i></td></tr>
860 Non-html5 tags should be accepted
862 <center>''foo''</center>
865 <strike>''foo''</strike>
868 <center><i>foo</i></center>
869 <p><big><i>foo</i></big>
870 <font><i>foo</i></font>
871 <strike><i>foo</i></strike>
877 <wbr> is valid wikitext (bug 52468)
885 # <strike> is HTML4, <s> is HTML4/5.
887 <s> or <strike> for strikethrough
889 <strike>strike</strike>
893 <p><strike>strike</strike>
899 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
901 <b→> doesn't work! </b>
903 <bä> doesn't work! </b>
905 <boo> works fine </b>
913 <p><b→> doesn't work! </b>
914 </p><p><bä> doesn't work! </b>
915 </p><p><boo> works fine </b>
916 </p><p><s.foo>foo</s>
917 </p><p><s.foo>s.foo</s.foo>
918 </p><p><sub-ID#1>
923 ### Special characters
927 Bare pipe character (bug 52363)
936 Bare pipe character from a template (bug 52363)
945 ### <nowiki> test cases
949 <nowiki> unordered list
951 <nowiki>* This is not an unordered list item.</nowiki>
953 <p>* This is not an unordered list item.
960 <nowiki>Lorem ipsum dolor
981 :There is not nowiki.
982 :There is <nowiki>nowiki</nowiki>.
984 #There is not nowiki.
985 #There is <nowiki>nowiki</nowiki>.
987 *There is not nowiki.
988 *There is <nowiki>nowiki</nowiki>.
990 <dl><dd>There is not nowiki.
991 </dd><dd>There is nowiki.
993 <ol><li>There is not nowiki.
994 </li><li>There is nowiki.
996 <ul><li>There is not nowiki.
997 </li><li>There is nowiki.
1003 Entities inside <nowiki>
1005 <nowiki><</nowiki>
1012 Entities inside template parameters
1018 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
1026 Comments and Indent-Pre
1028 <!-- comment 1 --> asdf
1030 <!-- comment 1 --> asdf
1033 <!-- comment 1 --> asdf
1034 <!-- comment 2 -->xyz
1036 <!-- comment 1 --> asdf
1037 <!-- comment 2 --> xyz
1093 asdf<!-- comment 1 -->jkl
1103 <!-- foo --> b <!-- bar -->
1117 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1123 Comment semantics and delimiters
1125 <!-- --><!----><!-----><!------>
1131 Comment semantics and delimiters, redux
1133 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1134 -- foo -- funky huh? ... -->
1140 Comment semantics and delimiters: directors cut
1142 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1143 everything starting with < followed by !-- until the first -- and > we see,
1144 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1152 Comment semantics: nesting
1154 <!--<!-- no, we're not going to do anything fancy here -->-->
1161 Comment semantics: unclosed comment at end
1163 <!--This comment will run out to the end of the document
1169 Comment in template title
1178 Comment on its own line post-expand
1190 Comment on its own line post-expand with non-significant whitespace
1202 ### paragraph wrapping tests
1216 Block tag on one line
1228 Block tag on both lines
1240 Multiple lines without block tags
1258 Empty lines between lines with block tags
1288 ### Preformatted text
1297 And a [[Main Page|link]]
1303 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1308 Ident preformatting with inline content
1319 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1336 Regression with preformatted in <center>
1350 Bug 6200: Preformatted in <blockquote>
1364 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1381 Bug 15491: <ins>/<del> in blockquote
1384 Foo <del>bar</del> <ins>baz</ins> quux
1388 <p>Foo <del>bar</del> <ins>baz</ins> quux
1394 # Note that the p-wrapping is newline sensitive, which could be
1395 # considered a bug: tidy will wrap only the 'Foo' in the example
1396 # below in a <p> tag. (see comment 23-25 of bug #6200)
1398 Bug 15491: <ins>/<del> in blockquote (2)
1400 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1403 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1409 <pre> with attributes (bug 3202)
1411 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1413 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1418 <pre> with width attribute (bug 3202)
1420 <pre width="8">Narrow screen goodies</pre>
1422 <pre width="8">Narrow screen goodies</pre>
1427 <pre> with forbidden attribute (bug 3202)
1429 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1431 <pre width="8">Narrow screen goodies</pre>
1436 Entities inside <pre>
1445 <pre> with forbidden attribute values (bug 3202)
1447 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1449 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1454 <nowiki> inside <pre> (bug 13238)
1462 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1470 <pre><nowiki>Foo</nowiki></pre>
1475 <nowiki> and <pre> preference (first one wins)
1506 </pre> inside nowiki
1508 <nowiki></pre></nowiki>
1515 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1523 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1533 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1545 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1566 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1570 {{echo| foo}}{{echo| bar}}
1575 {{echo|<!--cmt--> foo}}
1577 <!--cmt-->{{echo| foo}}
1579 {{echo|{{echo| }}bar}}
1597 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1634 Templates: Single-line variant of parameter whitespace stripping test
1640 {{echo|{{echo| a}}}}
1642 {{echo|1={{echo| a}}}}
1655 Templates: Strip whitespace from named parameters, but not positional ones
1683 Templates: Dont strip whitespace from whitespace/comment-only arguments
1687 {{echo| <!--cmt--> }}
1694 Templates: Parsoid parameter escaping test 1
1698 {{echo|[foo]|{{echo|[bar]}}}}
1700 <p about="#mwt1" typeof="mw:Transclusion"
1701 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1705 Parsoid: Pipes in external links in template parameter
1709 {{echo|[{{echo|http://example.com}} link]}}
1711 <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>
1715 Parsoid: pipe in transclusion parameter
1719 {{echo|http://foo.com/a|b}}
1721 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1722 typeof="mw:Transclusion"
1723 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>
1727 Parsoid: Pipe in external link target and content in template parameter
1729 parsoid=html2wt,wt2wt
1731 {{echo|[http://foo.com/a|b a|b]}}
1733 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1734 typeof="mw:Transclusion"
1735 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1736 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1740 Templates: Dont escape already nowiki-escaped text in template parameters
1742 parsoid=html2wt,wt2wt
1744 {{echo|foo<nowiki>|</nowiki>bar}}
1745 {{echo|<nowiki><div></nowiki>}}
1746 {{echo|<nowiki></nowiki>}}
1748 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<nowiki>|</nowiki>bar"}},"i":0}'}'>foo</span><span typeof="mw:Nowiki" about="#mwt1">|</span><span about="#mwt1">bar</span>
1749 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt2" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki>&lt;div&gt;</nowiki>"}},"i":0}'><span typeof="mw:Entity"><</span>div<span typeof="mw:Entity">></span></span>
1750 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1755 ### Parsoid-centric tests for testing RT edge cases for pre
1759 1a. Indent-Pre and Comments
1772 1b. Indent-Pre and Comments
1785 1c. Indent-Pre and Comments
1798 2a. Indent-Pre and tables
1819 2b. Indent-Pre and tables
1835 2c. Indent-Pre and tables (bug 42252)
1852 3a. Indent-Pre and block tags (single-line html)
1860 <pre><span> foo </span>
1865 3b. Indent-Pre and block tags (pre-content on separate line)
1918 4. Multiple spaces at start-of-line
1937 5. White-space in indent-pre
1938 NOTE: the white-space char on 2nd line is significant
1951 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1955 HTML-pre: 1. embedded newlines
1991 HTML-pre: 2: indented text
2004 HTML-pre: 3: other wikitext
2025 ### Definition lists
2032 <dl><dt> name </dt><dd> Definition
2038 Definition list for indentation only
2042 <dl><dd> Indented text
2048 Definition list with no space
2052 <dl><dt>name</dt><dd>Definition
2058 Definition list with URL link
2060 ; http://example.com/ : definition
2062 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
2068 Definition list with bracketed URL link
2070 ;[http://www.example.com/ Example]:Something about it
2072 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
2078 Definition list with wikilink containing colon
2080 ; [[Help:FAQ]]: The least-read page on Wikipedia
2082 <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
2087 # At Brion's and JeLuF's insistence... :)
2089 Definition list with news link containing colon
2091 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2093 <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!
2099 Malformed definition list with colon
2101 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2103 <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
2109 Definition lists: colon in external link text
2111 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2113 <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
2119 Definition lists: colon in HTML attribute
2121 ;<b style="display: inline">bold</b>
2123 <dl><dt><b style="display: inline">bold</b>
2129 Definition lists: self-closed tag
2131 ;one<br/>two : two-line fun
2133 <dl><dt>one<br />two </dt><dd> two-line fun
2139 Bug 11748: Literal closing tags
2143 <dd>test test test test test</dd>
2145 <dd>test test test test test</dd>
2150 <dd>test test test test test</dd>
2152 <dd>test test test test test</dd>
2158 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2161 ; term : description
2167 <dl><dt> term </dt><dd> description
2178 Definition list with empty definition and following paragraph
2183 <dl><dt> term</dt><dd>
2190 Nested definition lists using html syntax
2207 Definition Lists: No nesting: Multiple dd's
2221 Definition Lists: Indentation: Regular
2237 Definition Lists: Indentation: Missing 1st level
2251 Definition Lists: Indentation: Multi-level indent
2255 <dl><dd><dl><dd><dl><dd>i3
2263 Definition Lists: Hacky use to indent tables
2270 should be left alone
2272 <dl><dd><dl><dd><table>
2277 </td></tr></table></dd></dl></dd></dl>
2279 should be left alone
2282 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2283 ## as an empty dt item. It also ignores all but the last ";" when followed
2284 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2285 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2288 ## Ex: ";;t2 ::d2" is transformed into:
2300 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2301 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2312 ## All Parsoid only definition list tests have this difference.
2314 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2315 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2318 Table / list interaction: indented table with lists in table contents
2340 </td></tr></table></dd></dl>
2345 Table / list interaction: lists nested in tables nested in indented lists
2370 </td></tr></table></dd></dl>
2378 Definition Lists: Nesting: Multi-level (Parsoid only)
2408 Definition Lists: Nesting: Test 2 (Parsoid only)
2428 Definition Lists: Nesting: Test 3 (Parsoid only)
2456 Definition Lists: Nesting: Test 4
2461 <dl><dd><dl><dd><dl><dt>t3
2470 ## The Parsoid team believes the following three test exposes a
2471 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2472 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2474 Definition Lists: Mixed Lists: Test 1 (php)
2482 <dl><dd><dl><dt><ul><li> foo
2492 Definition Lists: Mixed Lists: Test 1 (parsoid)
2500 <dl><dd><dl><dt><ul><li> foo
2501 </li></ul></dt><dd><ul><li> bar
2502 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2506 Definition Lists: Mixed Lists: Test 2
2520 Definition Lists: Mixed Lists: Test 3
2525 <ul><li><dl><dd><dl><dd><dl><dd> d1
2536 Definition Lists: Mixed Lists: Test 4
2541 <ul><li><dl><dt>d1 </dt><dd>d2
2542 </dd><dt>d3 </dt><dd>d4
2550 Definition Lists: Mixed Lists: Test 5
2565 Definition Lists: Mixed Lists: Test 6
2570 <ol><li><ul><li><dl><dd>d1
2582 Definition Lists: Mixed Lists: Test 7
2596 Definition Lists: Mixed Lists: Test 8
2612 Definition Lists: Mixed Lists: Test 9
2616 <ul><li><dl><dt>foo </dt><dd>bar
2624 Definition Lists: Mixed Lists: Test 10
2628 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2635 # The Parsoid team disagrees with the PHP parser's seemingly-random
2636 # rules regarding dd/dt on the next two tests. Parsoid is more
2637 # consistent, and recognizes the shared nesting and keeps the
2638 # still-open tags around until the nesting is complete.
2641 Definition Lists: Mixed Lists: Test 11 (php)
2648 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2653 <dl><dt>boo </dt><dd>baz
2662 Definition Lists: Mixed Lists: Test 11 (parsoid)
2684 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2685 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2686 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2687 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2692 Definition Lists: Weird Ones: Test 1 (php)
2696 *#;*::;; foo : bar (who uses this?)
2698 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2710 Definition Lists: Weird Ones: Test 1 (parsoid)
2714 *#;*::;; foo : bar (who uses this?)
2731 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2732 <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>
2739 External links: non-bracketed
2741 Non-bracketed: http://example.com
2743 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2748 External links: numbered
2750 Numbered: [http://example.com]
2751 Numbered: [http://example.net]
2752 Numbered: [http://example.com]
2754 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2755 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2756 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2761 External links: specified text
2763 Specified text: [http://example.com link]
2765 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2770 External links: trail
2772 Linktrails should not work for external links: [http://example.com link]s
2774 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2779 External links: dollar sign in URL
2781 http://example.com/1$2345
2783 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2788 External links: dollar sign in URL (named)
2790 [http://example.com/1$2345]
2792 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2797 External links: open square bracket forbidden in URL (bug 4377)
2799 http://example.com/1[2345
2801 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2806 External links: open square bracket forbidden in URL (named) (bug 4377)
2808 [http://example.com/1[2345]
2810 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2815 External links: nowiki in URL link text (bug 6230)
2817 [http://example.com/ <nowiki>''example site''</nowiki>]
2819 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2824 External links: newline forbidden in text (bug 6230 regression check)
2826 [http://example.com/ first
2829 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2835 External links: Pipe char between url and text
2837 [http://example.com | link]
2839 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2844 External links: protocol-relative URL in brackets
2846 [//example.com/ Test]
2848 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2853 External links: protocol-relative URL in brackets without text
2857 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2862 External links: protocol-relative URL in free text is left alone
2866 <p>//example.com/Foo
2871 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2873 foo//example.com/Foo
2875 <p>foo//example.com/Foo
2882 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2884 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2889 External image from https
2891 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2893 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2898 External image (when not allowed)
2900 wgAllowExternalImages=0
2902 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2904 <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>
2909 Link to non-http image, no img tag
2911 Link to non-http image, no img tag: ftp://example.com/test.jpg
2913 <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>
2918 External links: terminating separator
2920 Terminating separator: http://example.com/thing,
2922 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2927 External links: intervening separator
2929 Intervening separator: http://example.com/1,2,3
2931 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2936 External links: old bug with URL in query
2938 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2940 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2945 External links: old URL-in-URL bug, mixed protocols
2947 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2949 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2954 External links: URL in text
2956 URL in text: [http://example.com http://example.com]
2958 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2963 External links: Clickable images
2965 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2967 <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>
2972 External links: raw ampersand
2974 Old & use: http://x&y
2976 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2981 External links: encoded ampersand
2983 Old & use: http://x&y
2985 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2990 External links: encoded equals (bug 6102)
2992 http://example.com/?foo=bar
2994 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2999 External links: [raw ampersand]
3001 Old & use: [http://x&y]
3003 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3008 External links: [encoded ampersand]
3010 Old & use: [http://x&y]
3012 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3017 External links: [encoded equals] (bug 6102)
3019 [http://example.com/?foo=bar]
3021 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3026 External links: [IDN ignored character reference in hostname; strip it right off]
3028 [http://e‌xample.com/]
3030 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3034 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3035 # Where an external link could easily circumvent the sanitization of the text of
3036 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3037 # test demands a higher standard. That's a bit strange.
3041 # http://example.com -> [http://example.com|http://example.com]
3042 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3044 # The first example is sanitized, but the second is not. Any security benefits
3045 # from this production are trivial to circumvent. Either remove this test and
3046 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3047 # the test accordingly.
3052 External links: IDN ignored character reference in hostname; strip it right off
3054 http://e‌xample.com/
3056 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3061 External links: www.jpeg.org (bug 554)
3065 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3070 External links: URL within URL (original bug 2)
3072 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3074 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3079 BUG 361: URL inside bracketed URL
3081 [http://www.example.com/foo http://www.example.com/bar]
3083 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3088 BUG 361: URL within URL, not bracketed
3090 http://www.example.com/foo?=http://www.example.com/bar
3092 <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>
3097 BUG 289: ">"-token in URL-tail
3099 http://www.example.com/<hello>
3101 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3106 BUG 289: literal ">"-token in URL-tail
3108 http://www.example.com/<b>html</b>
3110 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3115 BUG 289: ">"-token in bracketed URL
3117 [http://www.example.com/<hello> stuff]
3119 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3124 BUG 289: literal ">"-token in bracketed URL
3126 [http://www.example.com/<b>html</b> stuff]
3128 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3133 BUG 289: literal double quote at end of URL
3135 http://www.example.com/"hello"
3137 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3142 BUG 289: literal double quote in bracketed URL
3144 [http://www.example.com/"hello" stuff]
3146 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3151 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3153 [http://www.example.com test]
3155 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3160 External links: link text with spaces
3162 [http://www.example.com a b c]
3163 [http://www.example.com ''a'' ''b'']
3165 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3166 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3171 External links: wiki links within external link (Bug 3695)
3173 [http://example.com [[wikilink]] embedded in ext link]
3175 <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>
3180 BUG 787: Links with one slash after the url protocol are invalid
3184 [http:/example.com title]
3186 <p>http:/example.com
3187 </p><p>[http:/example.com title]
3192 Bracketed external links with template-generated invalid target
3194 [{{echo|http:/example.com}} title]
3196 <p>[http:/example.com title]
3201 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3203 ''[http://example.com text'']
3204 [http://example.com '''text]'''
3205 ''Something [http://example.com in italic'']
3206 ''Something [http://example.com mixed''''', even bold]'''
3207 '''''Now [http://example.com both''''']
3209 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3210 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3211 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3212 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3213 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3219 Bug 4781: %26 in URL
3221 http://www.example.com/?title=AT%26T
3223 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3227 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3228 # % is actually legal in HTML5. Any change in output would need testing though.
3230 Bug 4781, 5267: %25 in URL
3232 http://www.example.com/?title=100%25_Bran
3234 <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>
3239 Bug 4781, 5267: %28, %29 in URL
3241 http://www.example.com/?title=Ben-Hur_%281959_film%29
3243 <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>
3249 Bug 4781: %26 in autonumber URL
3251 [http://www.example.com/?title=AT%26T]
3253 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3258 Bug 4781, 5267: %26 in autonumber URL
3260 [http://www.example.com/?title=100%25_Bran]
3262 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3267 Bug 4781, 5267: %28, %29 in autonumber URL
3269 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3271 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3277 Bug 4781: %26 in bracketed URL
3279 [http://www.example.com/?title=AT%26T link]
3281 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3286 Bug 4781, 5267: %26 in bracketed URL
3288 [http://www.example.com/?title=100%25_Bran link]
3290 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3295 Bug 4781, 5267: %28, %29 in bracketed URL
3297 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3299 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3304 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3306 Some [http://example.com/ pretty ''italics'' and stuff]!
3308 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3313 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3315 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3317 <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>
3322 External link containing double-single-quotes with no space separating the url from text in italics
3324 [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]].]
3326 <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>
3331 External link with comments in link text
3333 [http://www.google.com Google <!-- comment -->]
3335 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3340 URL-encoding in URL functions (single parameter)
3342 {{localurl:Some page|amp=&}}
3344 <p>/index.php?title=Some_page&amp=&
3349 URL-encoding in URL functions (multiple parameters)
3351 {{localurl:Some page|q=?&=&}}
3353 <p>/index.php?title=Some_page&q=?&amp=&
3360 http://example.com/index.php?foozoid%5B%5D=bar
3362 http://example.com/index.php?foozoid[]=bar
3364 <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>
3365 </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>
3370 IPv6 urls (bug 21261)
3374 http://[2404:130:0:1000::187:2]/index.php
3376 <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>
3381 Non-extlinks in brackets
3390 [{{echo|foo}} ''bar'']
3391 [{{echo|foo}}l's] errand
3392 [{{echo|foo}}l's errand]
3394 [url=http://example.com]
3407 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3412 Parsoid: Percent encoding in external links
3416 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3418 <p><a rel="mw:ExtLink"
3419 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3423 Parsoid: use url link syntax for links where the content is equal the link
3430 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3440 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3442 Normal text. '''''Bold italic text.''''' Normal text.
3444 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3445 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3451 Unclosed and unmatched quotes (php)
3455 '''''Bold italic text '''with bold deactivated''' in between.'''''
3457 '''''Bold italic text ''with italic deactivated'' in between.'''''
3461 ..spanning two paragraphs (should not work).'''
3463 '''Bold tag left open
3465 ''Italic tag left open
3469 <!-- Unmatching number of opening, closing tags: -->
3470 '''This year''''s election ''should'' beat '''last year''''s.
3472 ''Tom'''s car is bigger than ''Susan'''s.
3474 Plain ''italic'''s plain
3476 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3477 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3478 </p><p><b>Bold text..</b>
3479 </p><p>..spanning two paragraphs (should not work).
3480 </p><p><b>Bold tag left open</b>
3481 </p><p><i>Italic tag left open</i>
3483 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3484 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3485 </p><p>Plain <i>italic'</i>s plain
3488 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3489 # parser strips. The wikitext contains just the first half of the bold
3490 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3491 # differently than the PHP parser.)
3493 Unclosed and unmatched quotes (parsoid)
3497 '''''Bold italic text '''with bold deactivated''' in between.'''''
3499 '''''Bold italic text ''with italic deactivated'' in between.'''''
3503 ..spanning two paragraphs (should not work).'''
3505 '''Bold tag left open
3507 ''Italic tag left open
3511 <!-- Unmatching number of opening, closing tags: -->
3512 '''This year''''s election ''should'' beat '''last year''''s.
3514 ''Tom'''s car is bigger than ''Susan'''s.
3516 Plain ''italic'''s plain
3518 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3519 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3520 </p><p><b>Bold text..</b>
3521 </p><p>..spanning two paragraphs (should not work).<b></b>
3522 </p><p><b>Bold tag left open</b>
3523 </p><p><i>Italic tag left open</i>
3525 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3526 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3527 </p><p>Plain <i>italic'</i>s plain
3534 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3537 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3538 # is the bare minimum required by the spec, see:
3539 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3541 A table with no data. (php)
3548 # Parsoid team replies: empty table tags are legal in HTML5
3550 A table with no data. (parsoid)
3559 # A table with nothing but a caption is invalid XHTML, we might want to render
3560 # this as <p>caption</p>
3562 A table with nothing but a caption (php)
3572 </caption><tr><td></td></tr></table>
3575 # Parsoid team replies: table with only a caption is legal in HTML5
3577 A table with nothing but a caption (parsoid)
3585 <table><caption> caption</caption></table>
3589 A table with caption with default-spaced attributes and a table row
3592 |+ style="color: red;" | caption1
3598 <caption style="color: red;"> caption1
3607 A table with captions with non-default spaced attributes and a table row
3610 |+style="color: red;"|caption2
3611 |+ style="color: red;"| caption3
3617 <caption style="color: red;">caption2
3619 <caption style="color: red;"> caption3
3628 Table td-cell syntax variations
3632 | foo bar foo || baz
3633 | style='color:red;' | baz
3634 | style='color:red;' || baz
3641 <td> foo bar foo </td>
3644 <td style="color:red;"> baz
3646 <td> style='color:red;' </td>
3674 Simple table but with multiple dashes for row wikitext
3692 Multiplication table
3694 {| border="1" cellpadding="2"
3695 |+Multiplication table
3697 ! × !! 1 !! 2 !! 3
3715 <table border="1" cellpadding="2">
3716 <caption>Multiplication table
3763 Accept "||" in table headings
3778 Accept "||" in indented table headings
3788 </th></tr></table></dd></dl>
3793 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3810 Accept "| !" at start of line in tables (ignore !-attribute)
3814 | !style="color:red" | bar
3826 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 +/-
3830 |style='color:red;'|+1
3831 |style='color:blue;'|-1
3843 <td style="color:red;">+1
3845 <td style="color:blue;">-1
3869 |rowspan=2| Cell 2, row 1 (and 2)
3880 <td rowspan="2"> Cell 2, row 1 (and 2)
3898 {| bgcolor=#ABCDEF border=2
3903 |the original table again
3911 <table bgcolor="#ABCDEF" border="2">
3919 <td>the original table again
3925 Invalid attributes in table cell (bug 1830)
3940 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3943 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3947 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3948 <td>]" onmouseover="alert(document.cookie)">test
3957 Indented table markup mixed with indented pre content (proposed in bug 6200)
3962 Text that should be rendered preformatted
3970 <pre>Text that should be rendered preformatted
3979 Template-generated table cell attributes and cell content
3987 <td style="color: red"> Foo
3993 Template-generated table cell attributes and cell content (2)
3996 |align=center {{table_attribs}}
4001 <td align="center" style="color: red"> Foo
4007 Template-generated table cell attributes and cell content (3)
4010 |align=center {{table_cells}}
4015 <td align="center" style="color: red"> Foo </td>
4023 Table with row followed by newlines and table heading
4041 Table with empty line following the start tag
4058 # FIXME: Preserve the attribute properly (with an empty string as value) in
4059 # the PHP parser. Parsoid implements the behavior below.
4061 Table attributes with empty value
4073 </td></tr></tbody></table>
4078 Wikitext table with a lot of comments
4101 Wikitext table with double-line table cell
4118 Table cell with a single comment
4134 # The expected HTML structure in this test is debatable. The PHP parser does
4135 # not parse this kind of table at all. The main focus for Parsoid is on
4136 # round-tripping, so this output is ok for now. TODO: revisit!
4138 Wikitext table with html-syntax row (Parsoid)
4150 <td>foo</td></tr></tbody></table>
4154 Implicit <td> after a |-
4155 (PHP parser relies on Tidy to add the missing <td> tags)
4157 parsoid=wt2html,wt2wt
4170 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4171 (PHP parser relies on Tidy to add the missing <td> tags)
4173 parsoid=wt2html,wt2wt
4185 <tr><td><pre>a</pre></td></tr>
4186 <tr><td> b</td></tr>
4192 Lists should be recognized in an implicit <td> context
4193 (PHP parser relies on Tidy to add the missing <td> tags)
4195 parsoid=wt2html,wt2wt
4204 <td><ul><li>a</li></ul></td>
4213 Plain link, capitalized
4217 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4222 Plain link, uncapitalized
4226 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4233 [[Main Page|The Main Page]]
4235 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4240 Piped link with comment in link text
4242 [[Main Page|The Main<!--front--> Page]]
4244 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4253 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4258 Broken link with fragment
4260 [[Zigzagzogzagzig#zug]]
4262 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4267 Special page link with fragment
4269 [[Special:Version#anchor]]
4271 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4276 Nonexistent special page link with fragment
4278 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4280 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4287 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4289 <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>
4296 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4298 <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>!!!
4309 Bug 43661: Piped links with identical prefixes
4311 [[prefixed article|prefixed articles with spaces]]
4313 [[prefixed article|prefixed articlesaoeu]]
4315 [[Main Page|Main Page test]]
4317 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4318 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4319 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4325 Link with HTML entity in suffix / tail
4327 [[Main Page]]", [[Main Page]]a
4329 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4334 Link with 3 brackets
4343 Piped link with 3 brackets
4345 [[[main page|the main page]]]
4347 <p>[[[main page|the main page]]]
4352 Link with multiple pipes
4354 [[Main Page|The|Main|Page]]
4356 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4363 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4365 <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>
4370 Piped link to namespace
4372 [[Meta:Disclaimers|The disclaimers]]
4374 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4381 [[Usually caused by a typo (oops}]]
4383 <p>[[Usually caused by a typo (oops}]]
4388 Link containing % (not as a hex sequence)
4392 <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>
4397 Link containing % as a single hex sequence interpreted to char
4401 <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>
4406 Link containing % as a double hex sequence interpreted to hex sequence
4410 <p>[[7%2525 Solution]]
4415 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4416 Example for such a section: == < ==
4418 [[%23%3c]][[%23%3e]]
4420 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4425 Link containing "<#" and ">#" as a hex sequences
4427 [[%3c%23]][[%3e%23]]
4429 <p>[[%3c%23]][[%3e%23]]
4434 Link containing an equals sign
4436 [[Special:BookSources/isbn=4-00-026157-6]]
4438 <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>
4445 Just a test of an article title containing a tilde.
4448 # note that links containing signatures, like [[Foo~~~~]], are
4449 # massaged by the pre-save transform (PST) and so the tildes are never
4450 # seen by the parser.
4452 Link containing a tilde
4456 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4461 Link containing double-single-quotes '' (bug 4598)
4463 [[Lista d''e paise d''o munno]]
4465 <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>
4470 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4472 Some [[Link|pretty ''italics'' and stuff]]!
4474 <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>!
4479 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4481 ''Some [[Link|pretty ''italics'' and stuff]]!
4483 <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>
4488 Link with double quotes in title part (literal) and alternate part (interpreted)
4490 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4494 [[''Pentecoste''|Pentecoste]]
4496 [[''Pentecoste''|''Pentecoste'']]
4498 <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>
4499 </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>
4500 </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>
4501 </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>
4506 Broken image links with HTML captions (bug 39700)
4508 [[File:Nonexistent|<script></script>]]
4509 [[File:Nonexistent|100px|<script></script>]]
4510 [[File:Nonexistent|<]]
4511 [[File:Nonexistent|a<i>b</i>c]]
4513 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4514 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4515 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4516 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4523 [[http://www.example.com]]
4525 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4530 Plain link to URL with link text
4532 [[http://www.example.com Link text]]
4534 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4539 Plain link to protocol-relative URL
4541 [[//www.example.com]]
4543 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4548 Plain link to protocol-relative URL with link text
4550 [[//www.example.com Link text]]
4552 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4557 Plain link to page with question mark in title
4563 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4564 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4569 # I'm fairly sure the expected result here is wrong.
4570 # We want these to be URL links, not pseudo-pages with URLs for titles....
4571 # However the current output is also pretty screwy.
4574 # I'm changing it to match the current output--it arguably makes more
4575 # sense in the light of the test above. Old expected result was:
4576 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4578 # But I think this test is bordering on "garbage in, garbage out" anyway.
4583 Piped link to URL: [[http://www.example.com|an example URL]]
4585 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4590 BUG 2: [[page|http://url/]] should link to page, not http://url/
4592 [[Main Page|http://url/]]
4594 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4599 BUG 337: Escaped self-links should be bold
4603 [[Bug462]] [[Bug462]]
4605 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4610 Self-link to section should not be bold
4614 [[Main Page#section]]
4616 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4627 Self-link to numeric title
4633 <p><strong class="selflink">0</strong>
4638 Link to numeric-equivalent title
4644 <p><a href="/wiki/00" title="00">00</a>
4649 <nowiki> inside a link
4651 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4653 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4658 Non-breaking spaces in title
4660 [[ Main Page ]]
4662 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4667 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4673 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4678 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4684 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4689 Internal link with en linktrail: no apostrophes (bug 27473)
4695 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4700 Internal link with ca linktrail with apostrophes (bug 27473)
4706 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4711 Internal link with kaa linktrail with apostrophes (bug 27473)
4717 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4728 Internal link with is link prefix
4732 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4734 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4745 Internal link with is link trail and link prefix
4749 [[mótmælendatrú|xxx]]ar
4751 mótmælenda[[söfnuður]]
4752 mótmælenda[[söfnuður|söfnuðir]]
4753 mótmælenda[[söfnuður|söfnuðir]]xxx
4755 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4756 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4757 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4758 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4759 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4764 Parsoid link trail escaping
4766 parsoid=html2wt,html2html
4770 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4774 Parsoid link prefix escaping
4777 parsoid=html2wt,html2html
4779 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4781 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4785 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4793 [http://wp.org ''foo'']
4795 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4796 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4797 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4798 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4803 ### Interwiki links (see maintenance/interwiki.sql)
4807 Inline interwiki link
4809 [[MeatBall:SoftSecurity]]
4811 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4816 Inline interwiki link with empty title (bug 2372)
4820 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4825 Interwiki link encoding conversion (bug 1636)
4827 *[[Wikipedia:ro:Olteniţa]]
4828 *[[Wikipedia:ro:Olteniţa]]
4830 <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>
4831 </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>
4837 Interwiki link with fragment (bug 2130)
4839 [[MeatBall:SoftSecurity#foo]]
4841 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4856 Double interlanguage link
4867 Interlanguage link, with prefix links
4879 Double interlanguage link, with prefix links (bug 8897)
4892 Parsoid-specific test: Wikilinks with should RT properly
4898 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4903 Parsoid: handle constructor well
4911 <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>
4914 <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>
4918 ## Redirects, Parsoid-only
4921 Simple redirect to page
4925 #REDIRECT [[Main Page]]
4927 <link rel="mw:PageProp/redirect" href="./Main_Page">
4931 Redirect to category
4935 #REDIRECT [[Category:Foo]]
4937 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4941 Redirect to category page
4943 parsoid=wt2html,html2html
4945 #REDIRECT [[:Category:Foo]]
4947 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4951 Redirect to image page
4955 #REDIRECT [[File:Wiki.png]]
4957 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4961 Redirect to language
4965 #REDIRECT [[en:File:Wiki.png]]
4967 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4971 Redirect to interwiki
4975 #REDIRECT [[meatball:File:Wiki.png]]
4977 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4994 Broken br tag sanitization
5004 # TODO: Fix html2html mode (bug 51055)!
5006 Parsoid: Broken br tag recognition
5016 Incorrecly removing closing slashes from correctly formed XHTML
5018 <br style="clear:both;" />
5020 <p><br style="clear:both;" />
5025 Failing to transform badly formed HTML into correct XHTML
5027 <br style="clear: left;">
5028 <br style="clear: right;">
5029 <br style="clear: both;">
5031 <p><br style="clear: left;" />
5032 <br style="clear: right;" />
5033 <br style="clear: both;" />
5038 Handling html with a div self-closing tag
5047 <p><div title />
5051 <p><div title=bar />
5052 <div title=bar/>
5054 <div title="bar/"></div>
5060 Handling html with a br self-closing tag
5069 <p><br title="title" />
5070 <br title="title" />
5079 Horizontal ruler (should it add that extra space?)
5093 Horizontal ruler -- 4+ dashes render hr
5102 Horizontal ruler -- eats additional dashes on the same line
5111 Horizontal ruler -- does not collapse dashes on consecutive lines
5122 Horizontal ruler -- <4 dashes render as plain text
5131 Horizontal ruler -- Supports content following dashes on same line
5140 ### Block-level elements
5163 <ol><li>Numbered list
5180 ***#Number on level 4
5182 **#Number on level 3
5183 **#Number on level 3
5187 #** Level 3, but ordered
5190 <ol><li> with numbers
5192 <ul><li> and bullets
5194 <ol><li> and numbers
5196 </li><li>bullets again
5197 <ul><li>bullet level 2
5198 <ul><li>bullet level 3
5199 <ol><li>Number on level 4
5202 </li><li>bullet level 2
5203 <ol><li>Number on level 3
5204 </li><li>Number on level 3
5207 <ol><li>number level 2
5210 <ul><li><ul><li> Level 3
5214 <ol><li><ul><li><ul><li> Level 3, but ordered
5248 Nested lists 3 (first element empty)
5261 Nested lists 4 (first element empty)
5274 Nested lists 5 (both elements empty)
5287 Nested lists 6 (both elements empty)
5300 Nested lists 7 (skip initial nesting levels)
5304 <ul><li><ul><li><ul><li> foo
5312 Nested lists 8 (multiple nesting transitions)
5320 <ul><li><ul><li> bar
5330 1. Lists with start-of-line-transparent tokens before bullets: Comments
5344 2. Lists with start-of-line-transparent tokens before bullets: Template close
5356 List items are not parsed correctly following a <pre> block (bug 785)
5362 <ul><li> <pre>foo</pre>
5363 </li><li> <pre>bar</pre>
5370 List items from template
5381 * notSOL{{inner list}}
5400 List interrupted by empty line or heading
5410 <ul><li><ul><li> bar
5413 <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>
5414 <ul><li> Another list item
5420 Multiple list tags generated by templates
5435 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
5438 <!--This line will NOT split the list-->
5440 <!--This line will NOT split the list either-->
5442 <!--foo--> <!----> <!--This line NOT split the list either-->
5454 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
5457 <!--This line will NOT split the list-->
5459 <!--This line will NOT split the list either-->
5461 <!--foo--> <!----> <!--This line NOT split the list
5475 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5477 parsoid=wt2html,wt2wt
5481 * {{echo|<li>templated li-hack}}
5482 * <!--foo--> <li> unsupported li-hack with preceding comments
5485 <li><li>not a li-hack
5491 <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>
5492 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5495 <li></li><li>not a li-hack
5501 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5512 <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>
5515 # ------------------------------------------------------------------------
5516 # The next set of tests are about Parsoid's ability to handle badly nested
5517 # tags (parse, minimize scope of fixup, and roundtrip back)
5518 # ------------------------------------------------------------------------
5521 Unbalanced closing block tags break a list
5522 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5532 </li></ul></div><div>
5538 Unbalanced closing non-block tags don't break a list
5539 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5549 <ul><li>a<span></span>
5555 Unclosed formatting tags that straddle lists are closed and reopened
5556 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5564 </li><li> <s> b </s>
5569 List embedded in a non-block tag
5570 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5578 <p><small></small></p>
5584 <p><small></small></p>
5591 # Note that the current date is hard-coded as
5592 # 1970-01-01T00:02:03Z (a Thursday)
5593 # when running parser tests. The timezone is also fixed to GMT, so
5594 # local date will be identical to current date.
5597 Magic Word: {{CURRENTDAY}}
5606 Magic Word: {{CURRENTDAY2}}
5615 Magic Word: {{CURRENTDAYNAME}}
5624 Magic Word: {{CURRENTDOW}}
5633 Magic Word: {{CURRENTMONTH}}
5642 Magic Word: {{CURRENTMONTH1}}
5651 Magic Word: {{CURRENTMONTHABBREV}}
5653 {{CURRENTMONTHABBREV}}
5660 Magic Word: {{CURRENTMONTHNAME}}
5662 {{CURRENTMONTHNAME}}
5669 Magic Word: {{CURRENTMONTHNAMEGEN}}
5671 {{CURRENTMONTHNAMEGEN}}
5678 Magic Word: {{CURRENTTIME}}
5687 Magic Word: {{CURRENTHOUR}}
5696 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5705 Magic Word: {{CURRENTYEAR}}
5714 Magic Word: {{CURRENTTIMESTAMP}}
5716 {{CURRENTTIMESTAMP}}
5723 Magic Words LOCAL (UTC)
5727 * {{LOCALMONTHNAME}}
5728 * {{LOCALMONTHNAMEGEN}}
5729 * {{LOCALMONTHABBREV}}
5738 * {{LOCALTIMESTAMP}}
5753 </li><li> 19700101000203
5759 Magic Word: {{FULLPAGENAME}}
5761 title=[[User:Ævar Arnfjörð Bjarmason]]
5765 <p>User:Ævar Arnfjörð Bjarmason
5770 Magic Word: {{FULLPAGENAMEE}}
5772 title=[[User:Ævar Arnfjörð Bjarmason]]
5776 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5781 Magic Word: {{TALKSPACE}}
5783 title=[[User:Ævar Arnfjörð Bjarmason]]
5792 Magic Word: {{TALKSPACE}}, same namespace
5794 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5803 Magic Word: {{TALKSPACE}}, main namespace
5805 title=[[Parser Test]]
5814 Magic Word: {{TALKSPACEE}}
5816 title=[[User:Ævar Arnfjörð Bjarmason]]
5825 Magic Word: {{SUBJECTSPACE}}
5827 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5836 Magic Word: {{SUBJECTSPACE}}, same namespace
5838 title=[[User:Ævar Arnfjörð Bjarmason]]
5847 Magic Word: {{SUBJECTSPACE}}, main namespace
5849 title=[[Parser Test]]
5857 Magic Word: {{SUBJECTSPACEE}}
5859 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5868 Magic Word: {{NAMESPACE}}
5870 title=[[User:Ævar Arnfjörð Bjarmason]]
5879 Magic Word: {{NAMESPACEE}}
5881 title=[[User:Ævar Arnfjörð Bjarmason]]
5890 Magic Word: {{NAMESPACENUMBER}}
5892 title=[[User:Ævar Arnfjörð Bjarmason]]
5901 Magic Word: {{SUBPAGENAME}}
5903 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
5912 Magic Word: {{SUBPAGENAMEE}}
5914 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
5923 Magic Word: {{ROOTPAGENAME}}
5925 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
5929 <p>Ævar Arnfjörð Bjarmason
5934 Magic Word: {{ROOTPAGENAMEE}}
5936 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
5940 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5945 Magic Word: {{BASEPAGENAME}}
5947 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
5951 <p>Ævar Arnfjörð Bjarmason
5956 Magic Word: {{BASEPAGENAMEE}}
5958 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
5962 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5967 Magic Word: {{TALKPAGENAME}}
5969 title=[[User:Ævar Arnfjörð Bjarmason]]
5973 <p>User talk:Ævar Arnfjörð Bjarmason
5978 Magic Word: {{TALKPAGENAMEE}}
5980 title=[[User:Ævar Arnfjörð Bjarmason]]
5984 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5989 Magic Word: {{SUBJECTPAGENAME}}
5991 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5995 <p>User:Ævar Arnfjörð Bjarmason
6000 Magic Word: {{SUBJECTPAGENAMEE}}
6002 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6004 {{SUBJECTPAGENAMEE}}
6006 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6011 Magic Word: {{NUMBEROFFILES}}
6020 Magic Word: {{PAGENAME}}
6022 title=[[User:Ævar Arnfjörð Bjarmason]]
6026 <p>Ævar Arnfjörð Bjarmason
6031 Magic Word: {{PAGENAME}} with metacharacters
6033 title=[['foo & bar = baz']]
6037 <p><i>'foo & bar = baz'</i>
6042 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6044 title=[[*RFC 1234 http://example.com/]]
6048 <p>*RFC 1234 http://example.com/
6053 Magic Word: {{PAGENAMEE}}
6055 title=[[User:Ævar Arnfjörð Bjarmason]]
6059 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6064 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6066 title=[[*RFC 1234 http://example.com/]]
6070 <p>*RFC_1234_http://example.com/
6075 Magic Word: {{REVISIONID}}
6084 Magic Word: {{SCRIPTPATH}}
6093 Magic Word: {{STYLEPATH}}
6102 Magic Word: {{SERVER}}
6106 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6111 Magic Word: {{SERVERNAME}}
6120 Magic Word: {{SITENAME}}
6129 Case-sensitive magic words, when cased differently, should just be template transclusions
6136 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6137 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6138 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6139 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6144 Case-insensitive magic words should still work with weird casing.
6154 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6159 Namespace 1 {{ns:1}}
6168 Namespace 1 {{ns:01}}
6177 Namespace 0 {{ns:0}} (bug 4783)
6185 Namespace 0 {{ns:00}} (bug 4783)
6193 Namespace -1 {{ns:-1}}
6202 Namespace User {{ns:User}}
6211 Namespace User talk {{ns:User_talk}}
6220 Namespace User talk {{ns:uSeR tAlK}}
6229 Namespace File {{ns:File}}
6238 Namespace File {{ns:Image}}
6247 Namespace (lang=de) Benutzer {{ns:User}}
6258 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
6264 <p>Benutzer Diskussion
6272 {{urlencode:hi world?!}}
6273 {{urlencode:hi world?!|WIKI}}
6274 {{urlencode:hi world?!|PATH}}
6275 {{urlencode:hi world?!|QUERY}}
6288 Magic links: internal link to RFC (bug 479)
6292 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
6297 Magic links: RFC (bug 479)
6301 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
6306 Magic links: ISBN (bug 1937)
6310 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
6315 Magic links: PMID incorrectly converts space to underscore
6319 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
6328 Nonexistent template
6330 {{thistemplatedoesnotexist}}
6332 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
6337 Template with invalid target containing tags
6339 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6341 <p>{{a<b>b</b>|foo|a=b|a = b}}
6346 Template with invalid target containing unclosed tag
6348 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6350 <p>{{a<b>|foo|a=b|a = b}}</b>
6357 This is a test template
6365 <p>This is a test template
6370 Template with explicit namespace
6374 <p>This is a test template
6382 This is a test template with parameter {{{param}}}
6388 {{paramtest|param=foo}}
6390 <p>This is a test template with parameter foo
6395 Template:paramtestnum
6401 Template unnamed parameter
6403 {{paramtestnum|Main Page|the main page}}
6405 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
6410 Template:templatesimple
6416 Template:templateredirect
6418 #redirect [[Template:templatesimple]]
6422 Template:templateasargtestnum
6428 Template:templateasargtest
6430 {{template{{{templ}}}}}
6434 Template:templateasargtest2
6440 Template with template name as unnamed argument
6442 {{templateasargtestnum|templatesimple}}
6449 Template with template name as argument
6451 {{templateasargtest|templ=simple}}
6458 Template with template name as argument (2)
6460 {{templateasargtest2|templ=templatesimple}}
6467 Template:templateasargtestdefault
6469 {{{{{templ|templatesimple}}}}}
6479 Template with default value
6481 {{templateasargtestdefault}}
6488 Template with default value (value set)
6490 {{templateasargtestdefault|templ=templa}}
6499 {{templateredirect}}
6506 Template with argument in separate line
6508 {{ templateasargtest |
6516 Template with complex template as argument
6519 param ={{ templateasargtest |
6522 <p>This is a test template with parameter (test)
6527 Template with thumb image (with link in description)
6530 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6532 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>
6537 Template:complextemplate
6539 {{{1}}} {{paramtest|
6540 param ={{{param}}}}}
6544 Template with complex arguments
6547 param ={{ templateasargtest |
6548 templ = simple }}|[[Template:complextemplate|link]]}}
6550 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6555 BUG 553: link with two variables in a piped link
6558 |[[{{{1}}}|{{{2}}}]]
6563 <td>[[{{{1}}}|{{{2}}}]]
6569 Magic variable as template parameter
6571 {{paramtest|param={{SITENAME}}}}
6573 <p>This is a test template with parameter MediaWiki
6580 [[{{{param}}}|link]]
6584 Template parameter as link source
6586 {{linktest|param=Main Page}}
6588 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6593 Template-generated attribute string (k='v')
6595 <span {{attr_str|id|v1}}>bar</span>
6597 <p><span id="v1">bar</span>
6604 including another template, {{paramtest|param={{{arg}}}}}
6608 Template passing argument to another template
6610 {{paramtest2|arg='hmm'}}
6612 <p>including another template, This is a test template with parameter 'hmm'
6623 Template as link source
6627 [[{{linktest2}}|Main Page]]
6629 [[{{linktest2}}]]Page
6631 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6632 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6633 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6651 Template infinite loop
6655 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6660 Template from main namespace
6679 BUG 529: Template with table, not included at beginning of line
6698 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6718 BUG 41: Template parameters shown as broken links
6727 Template with targets containing wikilinks
6731 {{[[{{echo|foo}}]]}}
6733 {{{{echo|[[foo}}]]}}
6735 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6736 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6744 ''None'' of '''this''' should be
6746 but rather passed unmodified
6750 # hmm, fix this or just deprecate msgnw and document its behavior?
6756 {{msgnw:MSGNW test}}
6758 <p>''None'' of '''this''' should be
6760 but rather passed unmodified
6768 {{int:youhavenewmessages|lots of money|not!}}
6770 <p>You have lots of money (not!).
6777 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6781 <includeonly> and <noinclude> being included
6792 <onlyinclude>Foo</onlyinclude>bar
6796 <onlyinclude> being included
6808 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6812 <onlyinclude> and <includeonly> being included
6821 <includeonly> and <noinclude> on a page
6823 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6830 Un-closed <noinclude>
6837 <onlyinclude> on a page
6839 <onlyinclude>Foo</onlyinclude>bar
6846 Un-closed <onlyinclude>
6853 Self-closed noinclude, includeonly, onlyinclude tags
6864 Unbalanced includeonly and noinclude tags
6868 |b</noinclude></noinclude>
6869 |c</noinclude></includeonly>
6870 |d</includeonly></includeonly>
6879 <td>c</includeonly>
6881 <td>d</includeonly></includeonly>
6887 Template:Includeonly section
6890 ==Includeonly section==
6896 Bug 6563: Edit link generation for section shown by <includeonly>
6898 {{includeonly section}}
6900 <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>
6901 <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>
6905 # Uses same input as the contents of [[Template:Includeonly section]]
6907 Bug 6563: Section extraction for section shown by <includeonly>
6912 ==Includeonly section==
6920 Bug 6563: Edit link generation for section suppressed by <includeonly>
6923 ==Includeonly section==
6927 <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>
6932 Bug 6563: Section extraction for section suppressed by <includeonly>
6937 ==Includeonly section==
6945 Un-closed <includeonly>
6951 # TODO: test with DOM fragment reuse!
6953 Parsoid: DOM fragment reuse
6955 parsoid=wt2wt,wt2html
6957 a{{echo|b<table></table>c}}d
6969 a<span typeof="mw:Transclusion">b</span>
6970 <table></table><span>c</span>d
6971 <p typeof="mw:Transclusion">ab</p>
6974 <p typeof="mw:Transclusion">a</p>
6980 ### <includeonly> and <noinclude> in attributes
6983 0. includeonly around the entire attribute
6985 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6987 <p><span id="v2">bar</span>
6992 1. includeonly in html attr key
6994 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6996 <p><span id="foo">bar</span>
7001 2. includeonly in html attr value
7003 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7004 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7006 <p><span id="v1">bar</span>
7007 <span id="v1">bar</span>
7012 3. includeonly in part of an attr value
7014 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7016 <p><span style="color:red;">bar</span>
7021 ### Testing parsing of templates where a template arg
7022 ### has the same name as the template itself.
7032 Templates: Template Name/Arg clash: 1. Use of positional param
7041 Templates: Template Name/Arg clash: 2. Use of named param
7050 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7059 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7063 Templates: 1. Simple use
7072 Templates: 2. Inside a block tag
7074 <div>{{echo|Foo}}</div>
7081 Templates: P-wrapping: 1a. Templates on consecutive lines
7092 Templates: P-wrapping: 1b. Templates on consecutive lines
7106 Templates: P-wrapping: 1c. Templates on consecutive lines
7109 {{echo|bar}} <div>baz</div>
7118 Templates: P-wrapping: 1d. Template preceded by comment-only line
7120 parsoid=wt2html,wt2wt
7126 <p typeof="mw:Transclusion">Bar
7131 Templates: Inline Text: 1. Multiple tmeplate uses
7133 {{echo|Foo}}bar{{echo|baz}}
7140 Templates: Inline Text: 2. Back-to-back template uses
7142 {{echo|Foo}}{{echo|bar}}
7149 Templates: Block Tags: 1. Multiple template uses
7151 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
7153 <div>Foo</div><div>bar</div><div>baz</div>
7158 Templates: Block Tags: 2. Back-to-back template uses
7160 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
7162 <div>Foo</div><div>bar</div>
7167 Templates: Links: 1. Simple example
7169 {{echo|[[Foo|bar]]}}
7171 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7176 Templates: Links: 2. Generation of link href
7178 [[{{echo|Foo}}|bar]]
7180 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7185 Templates: Links: 3. Generation of part of a link href
7187 [[Fo{{echo|o}}|bar]]
7191 [[Foo{{echo|bar}}baz]]
7193 [[Foo{{echo|bar}}|bar]]
7195 [[:Foo{{echo|bar}}]]
7197 [[:Foo{{echo|bar}}|bar]]
7199 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7200 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7201 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
7202 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7203 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7204 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7209 Templates: Links: 4. Multiple templates generating link href
7211 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
7213 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7218 Templates: Links: 5. Generation of link text
7220 [[Foo|{{echo|bar}}]]
7222 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7227 Templates: Links: 5. Nested templates (only outermost template should be marked)
7229 {{echo|[[{{echo|Foo}}|bar]]}}
7231 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7236 Templates: HTML Tag: 1. Generation of HTML attr. key
7238 <div {{echo|style}}="color:red;">foo</div>
7240 <div style="color:red;">foo</div>
7245 Templates: HTML Tag: 2. Generation of HTML attr. value
7247 <div style={{echo|'color:red;'}}>foo</div>
7249 <div style="color:red;">foo</div>
7254 Templates: HTML Tag: 3. Generation of HTML attr key and value
7256 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
7258 <div style="color:red;">foo</div>
7263 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
7265 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
7267 <div title="This is a long title with just one piece templated">foo</div>
7272 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
7274 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
7276 <div title="This is a long title with just one piece templated">foo</div>
7281 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
7283 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
7285 <div title="This is a long title with just one piece templated">foo</div>
7290 Templates: HTML Tag: 7. Generation of partial attribute key string
7292 <div st{{echo|yle}}="color:red;">foo</div>
7294 <div style="color:red;">foo</div>
7299 Templates: HTML Tables: 1. Generating start of a HTML table
7301 {{echo|<table><tr><td>foo</td>}}</tr></table>
7303 <table><tr><td>foo</td></tr></table>
7308 Templates: HTML Tables: 2a. Generating middle of a HTML table
7310 <table><tr>{{echo|<td>foo</td>}}</tr></table>
7312 <table><tr><td>foo</td></tr></table>
7317 Templates: HTML Tables: 2b. Generating middle of a HTML table
7319 <table>{{echo|<tr><td>foo</td></tr>}}</table>
7321 <table><tr><td>foo</td></tr></table>
7326 Templates: HTML Tables: 3. Generating end of a HTML table
7328 <table><tr>{{echo|<td>foo</td></tr></table>}}
7330 <table><tr><td>foo</td></tr></table>
7335 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
7337 {{echo|<table>}}<tr><td>foo</td></tr></table>
7339 <table><tr><td>foo</td></tr></table>
7344 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
7346 <table>{{echo|<tr>}}<td>foo</td></tr></table>
7348 <table><tr><td>foo</td></tr></table>
7353 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
7355 <table><tr>{{echo|<td>}}foo</td></tr></table>
7357 <table><tr><td>foo</td></tr></table>
7362 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
7364 <table><tr><td>foo{{echo|</td>}}</tr></table>
7366 <table><tr><td>foo</td></tr></table>
7371 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
7373 <table><tr><td>foo</td>{{echo|</tr>}}</table>
7375 <table><tr><td>foo</td></tr></table>
7380 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
7382 <table><tr><td>foo</td></tr>{{echo|</table>}}
7384 <table><tr><td>foo</td></tr></table>
7389 Templates: HTML Tables: 5. Proper fostering of categories from inside
7391 parsoid=wt2html,wt2wt
7393 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
7394 <!--Two categories (Bug 50330)-->
7395 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
7397 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
7398 <!--Two categories (Bug 50330)-->
7399 <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>
7403 Templates: Wiki Tables: 1a. Fostering of entire template content
7411 <tr><td></td></tr></table>
7416 Templates: Wiki Tables: 1b. Fostering of entire template content
7429 <tr><td></td></tr></table>
7434 Templates: Wiki Tables: 2. Fostering of partial template content
7444 <tr><td></td></tr></table>
7449 Templates: Wiki Tables: 3. td-content via multiple templates
7452 {{echo|{{pipe}}a}}{{echo|b}}
7463 Templates: Wiki Tables: 4. Templated tags, no content
7469 <tr><td></td></tr></table>
7474 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7488 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7502 Templates: Lists: Multi-line list-items via templates
7504 *{{echo|a {{nonexistent|
7506 *{{echo|b {{nonexistent|
7509 <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>
7510 </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>
7516 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7518 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7520 <p><i>ab</i>c<i>d</i>e
7525 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7526 (PHP parser generates misnested html)
7528 parsoid=wt2html,wt2wt
7530 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7532 <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>
7536 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7537 (PHP parser generates misnested html)
7539 parsoid=wt2html,wt2wt
7541 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7543 <div typeof="mw:Transclusion"><i>a</i></div>
7544 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7545 <div typeof="mw:Transclusion">e</div>
7549 Templates: Ugly nesting: 4. Divs opened/closed across templates
7551 a<div>b{{echo|c</div>d}}e
7558 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7564 |{{echo|foo</table>}}
7568 <table typeof="mw:Transclusion">
7571 <td>foo</td></tr></tbody></table><span>bar</span>
7575 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7585 <td>1. {{echo|foo </table>}}</td>
7587 <td>2. {{echo|baz </table>}}</td>
7600 <table about="#mwt1" typeof="mw:Transclusion">
7605 <td >1. foo </td></tr></tbody></table></td>
7607 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7608 </span><span about="#mwt1">
7610 abc</span><span about="#mwt1">
7611 </span><span about="#mwt1">
7612 </span><span about="#mwt1">
7613 </span><span about="#mwt1">
7614 </span><span about="#mwt1">
7616 xyz</span><span about="#mwt1">
7617 </span><span about="#mwt1">
7622 Templates: Ugly templates: 3. newline-only template parameter
7631 # This looks like a bug: a single newline triggers p/br for some reason.
7633 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7644 Parser Functions: 1. Simple example
7653 Parser Functions: 2. Nested use (only outermost should be marked up)
7662 ### Pre-save transform tests
7665 pre-save transform: subst:
7671 This is a test template
7675 pre-save transform: normal template
7685 pre-save transform: nonexistent template
7689 {{thistemplatedoesnotexist}}
7691 {{thistemplatedoesnotexist}}
7696 pre-save transform: subst magic variables
7705 # This is bug 89, which I fixed. -- wtm
7707 pre-save transform: subst: templates with parameters
7711 {{subst:paramtest|param="something else"}}
7713 This is a test template with parameter "something else"
7719 <nowiki>'''not wiki'''</nowiki>
7723 pre-save transform: nowiki in subst (bug 1188)
7727 {{subst:nowikitest}}
7729 <nowiki>'''not wiki'''</nowiki>
7734 Template:commenttest
7736 This template has <!-- a comment --> in it.
7740 pre-save transform: comment in subst (bug 1936)
7744 {{subst:commenttest}}
7746 This template has <!-- a comment --> in it.
7750 pre-save transform: unclosed tag
7754 <nowiki>'''not wiki'''
7756 <nowiki>'''not wiki'''
7760 pre-save transform: mixed tag case
7764 <NOwiki>'''not wiki'''</noWIKI>
7766 <NOwiki>'''not wiki'''</noWIKI>
7770 pre-save transform: unclosed comment in <nowiki>
7774 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7776 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7779 # Leading @ in this template definition works around a limitation
7780 # in parsoid's parserTests which otherwise strips the <span> from the
7781 # result (confusing it for a template wrapper)
7785 @<span onmouseover="alert('crap')">Oh no</span>
7789 (confirming safety of fix for subst bug 1936)
7791 {{Template:dangerous}}
7793 <p>@<span>Oh no</span>
7798 pre-save transform: comment containing gallery (bug 5024)
7802 <!-- <gallery>data</gallery> -->
7804 <!-- <gallery>data</gallery> -->
7808 pre-save transform: comment containing extension
7812 <!-- <tag>data</tag> -->
7814 <!-- <tag>data</tag> -->
7818 pre-save transform: comment containing nowiki
7822 <!-- <nowiki>data</nowiki> -->
7824 <!-- <nowiki>data</nowiki> -->
7828 pre-save transform: <noinclude> in subst (bug 3298)
7838 pre-save transform: <onlyinclude> in subst (bug 3298)
7850 {{<includeonly>subst:</includeonly>Includes}}
7854 Template:SafeSubstTest
7856 {{<includeonly>safesubst:</includeonly>Includes}}
7860 bug 22297: safesubst: works during PST
7864 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7870 bug 22297: safesubst: works during normal parse
7879 subst: does not work during normal parse
7883 <p>{{subst:Includes}}
7888 pre-save transform: context links ("pipe trick")
7892 [[Article (context)|]]
7895 [[Bar:Article (context)|]]
7896 [[:Bar:Article (context)|]]
7898 [[|Article (context)]]
7902 [[Article (context)|Article]]
7903 [[Bar:Article|Article]]
7904 [[:Bar:Article|Article]]
7905 [[Bar:Article (context)|Article]]
7906 [[:Bar:Article (context)|Article]]
7908 [[Article (context)]]
7909 [[Bar:X (Y) Z|X (Y) Z]]
7910 [[:Bar:X (Y) Z|X (Y) Z]]
7914 pre-save transform: context links ("pipe trick") with interwiki prefix
7918 [[interwiki:Article|]]
7919 [[:interwiki:Article|]]
7920 [[interwiki:Bar:Article|]]
7921 [[:interwiki:Bar:Article|]]
7923 [[interwiki:Article|Article]]
7924 [[:interwiki:Article|Article]]
7925 [[interwiki:Bar:Article|Bar:Article]]
7926 [[:interwiki:Bar:Article|Bar:Article]]
7930 pre-save transform: context links ("pipe trick") with parens in title
7932 pst title=[[Somearticle (context)]]
7936 [[Article (context)|Article]]
7940 pre-save transform: context links ("pipe trick") with comma in title
7942 pst title=[[Someplace, Somewhere]]
7945 [[Otherplace, Elsewhere|]]
7946 [[Otherplace, Elsewhere, Anywhere|]]
7948 [[Otherplace, Somewhere|Otherplace]]
7949 [[Otherplace, Elsewhere|Otherplace]]
7950 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7954 pre-save transform: context links ("pipe trick") with parens and comma
7956 pst title=[[Someplace (IGNORED), Somewhere]]
7959 [[Otherplace (place), Elsewhere|]]
7961 [[Otherplace, Somewhere|Otherplace]]
7962 [[Otherplace (place), Elsewhere|Otherplace]]
7966 pre-save transform: context links ("pipe trick") with comma and parens
7968 pst title=[[Who, me? (context)]]
7971 [[Me, Myself, and I (1937 song)|]]
7973 [[Yes, you. (context)|Yes, you.]]
7974 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7978 pre-save transform: context links ("pipe trick") with namespace
7980 pst title=[[Ns:Somearticle]]
7984 [[Ns:Article|Article]]
7988 pre-save transform: context links ("pipe trick") with namespace and parens
7990 pst title=[[Ns:Somearticle (context)]]
7994 [[Ns:Article (context)|Article]]
7998 pre-save transform: context links ("pipe trick") with namespace and comma
8000 pst title=[[Ns:Somearticle, Context, Whatever]]
8004 [[Ns:Article, Context, Whatever|Article]]
8008 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8010 pst title=[[Ns:Somearticle, Context (context)]]
8014 [[Ns:Article (context)|Article]]
8018 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8020 pst title=[[Ns:Somearticle (IGNORED), Context]]
8024 [[Ns:Article, Context|Article]]
8028 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8032 [[Article(context)|]]
8033 [[Bar:Article(context)|]]
8034 [[:Bar:Article(context)|]]
8035 [[|Article(context)]]
8039 [[Article(context)|Article]]
8040 [[Bar:Article(context)|Article]]
8041 [[:Bar:Article(context)|Article]]
8042 [[Article(context)]]
8044 [[:Bar:X(Y)Z|X(Y)Z]]
8048 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8052 [[Article (context)|]]
8053 [[Bar:Article (context)|]]
8054 [[:Bar:Article (context)|]]
8055 [[|Article (context)]]
8059 [[Article (context)|Article]]
8060 [[Bar:Article (context)|Article]]
8061 [[:Bar:Article (context)|Article]]
8062 [[Article (context)]]
8063 [[Bar:X (Y) Z|X (Y) Z]]
8064 [[:Bar:X (Y) Z|X (Y) Z]]
8068 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8072 [[Article(context)|]]
8073 [[Bar:Article(context)|]]
8074 [[:Bar:Article(context)|]]
8075 [[|Article(context)]]
8079 [[Article(context)|Article]]
8080 [[Bar:Article(context)|Article]]
8081 [[:Bar:Article(context)|Article]]
8082 [[Article(context)]]
8084 [[:Bar:X(Y)Z|X(Y)Z]]
8088 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8092 [[Article (context), context|]]
8093 [[Article (context),context|]]
8094 [[Bar:Article (context), context|]]
8095 [[Bar:Article (context),context|]]
8096 [[:Bar:Article (context), context|]]
8097 [[:Bar:Article (context),context|]]
8099 [[Article (context), context|Article]]
8100 [[Article (context),context|Article]]
8101 [[Bar:Article (context), context|Article]]
8102 [[Bar:Article (context),context|Article]]
8103 [[:Bar:Article (context), context|Article]]
8104 [[:Bar:Article (context),context|Article]]
8108 pre-save transform: trim trailing empty lines
8112 Empty lines are trimmed
8118 Empty lines are trimmed
8122 pre-save transform: Signature expansion
8127 * <noinclude>~~~</noinclude>
8128 * <includeonly>~~~</includeonly>
8129 * <onlyinclude>~~~</onlyinclude>
8131 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
8132 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
8133 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
8134 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
8139 pre-save transform: Signature expansion in nowiki tags (bug 93)
8145 <nowiki>~~~~</nowiki>
8147 <includeonly><nowiki>~~~~</nowiki></includeonly>
8149 <noinclude><nowiki>~~~~</nowiki></noinclude>
8151 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8153 {{subst:Foo}} shall be converted to FOO
8155 As well as inside noinclude/onlyinclude
8156 <noinclude>{{subst:Foo}}</noinclude>
8157 <onlyinclude>{{subst:Foo}}</onlyinclude>
8159 But not inside includeonly
8160 <includeonly>{{subst:Foo}}</includeonly>
8164 <nowiki>~~~~</nowiki>
8166 <includeonly><nowiki>~~~~</nowiki></includeonly>
8168 <noinclude><nowiki>~~~~</nowiki></noinclude>
8170 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8172 FOO shall be converted to FOO
8174 As well as inside noinclude/onlyinclude
8175 <noinclude>FOO</noinclude>
8176 <onlyinclude>FOO</onlyinclude>
8178 But not inside includeonly
8179 <includeonly>{{subst:Foo}}</includeonly>
8183 Parsoid: Recognize nowiki with trailing space in tags
8187 <nowiki ><div>[[foo]]</nowiki >
8195 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8202 Parsoid: Recognize nowiki with odd capitalization
8206 <noWikI ><div>[[foo]]</Nowiki >
8208 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8213 Parsoid: Escape nowiki with trailing space in tags
8217 <nowiki > foo </nowiki >
8223 <p><nowiki > foo </nowiki ></p>
8224 <p>a<nowiki />b</p>
8225 <p>c<nowiki/ >d</p>
8229 Parsoid: Escape weird noWikI capitalizations
8233 <noWikI > foo </NoWikI >
8235 <p><noWikI > foo </NoWikI ></p>
8239 ### Message transform tests
8242 message transform: magic variables
8252 message transform: should not transform wiki markup
8262 message transform: <noinclude> in transcluded template (bug 4926)
8272 message transform: <onlyinclude> in transcluded template (bug 4926)
8282 {{#special:}} page name, known
8286 {{#special:Recentchanges}}
8288 Special:RecentChanges
8292 {{#special:}} page name with subpage, known
8296 {{#special:Recentchanges/param}}
8298 Special:RecentChanges/param
8302 {{#special:}} page name, unknown
8306 {{#special:foobar nonexistent}}
8308 Special:Foobar nonexistent
8312 {{#speciale:}} page name, known
8316 {{#speciale:Recentchanges}}
8318 Special:RecentChanges
8322 {{#speciale:}} page name with subpage, known
8326 {{#speciale:Recentchanges/param}}
8328 Special:RecentChanges/param
8332 {{#speciale:}} page name, unknown
8336 {{#speciale:foobar nonexistent}}
8338 Special:Foobar_nonexistent
8347 [[Image:foobar.jpg]]
8349 <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>
8356 [[Image:foobar.jpg|right]]
8358 <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>
8363 Simple image (using File: namespace, now canonical)
8367 <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>
8374 [[Image:foobar.jpg|right|Caption text]]
8376 <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>
8381 Image with empty attribute
8383 [[Image:foobar.jpg|right||Caption text]]
8385 <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>
8390 Image with attributes from template.
8392 [[Image:foobar.jpg|{{image_attribs}}]]
8394 <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>
8399 Image with link tails
8401 123[[Image:foobar.jpg]]456
8402 123[[Image:foobar.jpg|right]]456
8403 123[[Image:foobar.jpg|thumb]]456
8405 <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
8407 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
8408 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
8413 Image with multiple captions -- only last one is accepted
8415 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8417 <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>
8422 Image with width attribute at different positions
8424 [[Image:foobar.jpg|200px|right|Caption]]
8425 [[Image:foobar.jpg|right|200px|Caption]]
8426 [[Image:foobar.jpg|right|Caption|200px]]
8428 <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>
8429 <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>
8430 <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>
8435 Image with link parameter, wiki target
8437 [[Image:foobar.jpg|link=Target page]]
8439 <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>
8444 Image with link parameter, URL target
8446 [[Image:foobar.jpg|link=http://example.com/]]
8448 <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>
8453 Image with link parameter, wgExternalLinkTarget
8455 [[Image:foobar.jpg|link=http://example.com/]]
8457 wgExternalLinkTarget='foobar'
8459 <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>
8464 Image with link parameter, wgNoFollowLinks set to false
8466 [[Image:foobar.jpg|link=http://example.com/]]
8468 wgNoFollowLinks=false
8470 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8475 Image with link parameter, wgNoFollowDomainExceptions
8477 [[Image:foobar.jpg|link=http://example.com/]]
8479 wgNoFollowDomainExceptions='example.com'
8481 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8486 Image with link parameter, wgExternalLinkTarget, unnamed parameter
8488 [[Image:foobar.jpg|link=http://example.com/|Title]]
8490 wgExternalLinkTarget='foobar'
8492 <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>
8497 Image with empty link parameter
8499 [[Image:foobar.jpg|link=]]
8501 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8506 Image with link parameter (wiki target) and unnamed parameter
8508 [[Image:foobar.jpg|link=Target page|Title]]
8510 <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>
8515 Image with link parameter (URL target) and unnamed parameter
8517 [[Image:foobar.jpg|link=http://example.com/|Title]]
8519 <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>
8524 Thumbnail image with link parameter
8528 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8530 <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>
8535 Manually-specified thumbnail image
8539 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8541 <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>
8546 Manually-specified thumbnail image with explicit link to wiki page
8550 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8552 <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>
8557 Manually-specified thumbnail image with explicit link to url
8561 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8563 <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>
8568 Manually-specified thumbnail image with explicit no link
8572 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8574 <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>
8579 Manually-specified thumbnail image with explicit link and alt text
8583 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8585 <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>
8590 Image with frame and link
8592 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8594 <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>
8599 Image with frame and link and explicit alt
8601 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8603 <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>
8608 Image with wiki markup in implicit alt
8610 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8612 <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>
8617 Image with wiki markup in explicit alt
8619 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8621 <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>
8626 Link to image page- image page normally doesn't exists, hence edit link
8627 Add test with existing image page
8628 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8632 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8637 bug 18784 Link to non-existent image page with caption should use caption as link text
8639 [[:Image:test|caption]]
8641 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8646 Frameless image caption with a free URL
8648 [[Image:foobar.jpg|http://example.com]]
8650 <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>
8655 Thumbnail image caption with a free URL
8657 [[Image:foobar.jpg|thumb|http://example.com]]
8659 <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>
8664 Thumbnail image caption with a free URL and explicit alt
8666 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8668 <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>
8673 SVG thumbnails with no language set
8676 [[File:Foobar.svg|thumb|width=200]]
8678 <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>
8683 SVG thumbnails with language de
8686 [[File:Foobar.svg|thumb|width=200|lang=de]]
8688 <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>
8693 SVG thumbnails with invalid language code
8696 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8698 <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>
8703 BUG 1887: A ISBN with a thumbnail
8705 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8707 <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>
8712 BUG 1887: A RFC with a thumbnail
8714 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8716 <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>
8721 BUG 1887: A mailto link with a thumbnail
8723 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8725 <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>
8729 # Pending resolution to bug 368
8731 BUG 648: Frameless image caption with a link
8733 [[Image:foobar.jpg|text with a [[link]] in it]]
8735 <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>
8740 BUG 648: Frameless image caption with a link (suffix)
8742 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8744 <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>
8749 BUG 648: Frameless image caption with an interwiki link
8751 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8753 <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>
8758 BUG 648: Frameless image caption with a piped interwiki link
8760 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8762 <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>
8767 Escape HTML special chars in image alt text
8769 [[Image:foobar.jpg|& < > "]]
8771 <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>
8776 BUG 499: Alt text should have Ӓ, not &1234;
8778 [[Image:foobar.jpg|♀]]
8780 <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>
8785 Broken image caption with link
8787 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8789 <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.
8794 Image caption containing another image
8796 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8798 <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>
8803 Image caption containing a newline
8805 [[Image:Foobar.jpg|This
8808 <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>
8813 Parsoid: Image caption containing leading space
8814 (The leading space should not trigger nowiki escaping in wt2wt mode)
8816 [[Image:Foobar.jpg|thumb| bar]]
8818 <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>
8823 Bug 3090: External links other than http: in image captions
8825 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8827 <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>
8834 [[Image:foobar.jpg|a|class=b]]
8836 <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>
8841 Localized image handling (1).
8845 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8847 <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>
8852 Localized image handling (2).
8856 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8858 <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>
8863 "border", "frameless" and "class" attributes on an image.
8865 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8867 <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>
8874 #REDIRECT [[File:Barfoo.jpg]]
8880 [[Image:Barfoo.jpg]]
8882 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8887 Missing image with uploads disabled
8891 [[Image:Foobaz.jpg]]
8893 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8897 # Parsoid-specific testing for images
8898 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8899 # Currently imperfect due to a flaw in the Parsoid testrunner
8903 Parsoid-specific image handling - simple image
8907 [[Image:Foobar.jpg]]
8910 <span class="mw-default-size" typeof="mw:Image">
8911 <a href="File:Foobar.jpg">
8912 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8919 Parsoid-specific image handling - simple image without link
8923 [[Image:Foobar.jpg|link=]]
8926 <span class="mw-default-size" typeof="mw:Image">
8928 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8935 Parsoid-specific image handling - simple image with specific link
8939 [[Image:Foobar.jpg|link=Main Page]]
8942 <span class="mw-default-size" typeof="mw:Image">
8943 <a href="Main_Page">
8944 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8951 Parsoid-specific image handling - simple image with size and middle alignment
8955 [[Image:Foobar.jpg|50px|middle]]
8958 <span class="mw-valign-middle" typeof="mw:Image">
8959 <a href="File:Foobar.jpg">
8960 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8967 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8971 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8974 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8975 <a href="File:Foobar.jpg">
8976 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8983 Parsoid-specific image handling - simple image with border and size spec
8987 [[Image:Foobar.jpg|50px|border|caption]]
8990 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8991 <a href="File:Foobar.jpg">
8992 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8999 Parsoid-specific image handling - thumbnail with halign, valign, and caption
9003 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
9005 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
9006 <a href="File:Foobar.jpg">
9007 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
9009 <figcaption>caption content</figcaption>
9014 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
9018 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
9020 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
9021 <a href="File:Foobar.jpg">
9022 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
9024 <figcaption>caption</figcaption>
9029 Parsoid-specific image handling - framed image with specific size and caption
9033 [[Image:Foobar.jpg|500x50px|frame|caption]]
9035 <figure typeof="mw:Image/Frame">
9036 <a href="File:Foobar.jpg">
9037 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9039 <figcaption>caption</figcaption>
9044 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
9048 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
9050 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
9051 <a href="File:Foobar.jpg">
9052 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9054 <figcaption>caption</figcaption>
9059 Parsoid-specific image handling - frameless image with specific size, border, and caption
9063 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
9066 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
9067 <a href="File:Foobar.jpg">
9068 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9074 #Parsoid-specific image handling - simple image with a formatted caption
9078 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
9081 #<span typeof="mw:Image">
9082 #<a class="mw-default-size" href="Image:Foobar.jpg">
9083 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
9094 Subpage test/subpage
9102 subpage title=[[Subpage test]]
9106 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
9111 Subpage noslash link
9113 subpage title=[[Subpage test]]
9117 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
9121 # TODO: make this PHP-parser compatible!
9123 Relative subpage noslash link
9125 parsoid=wt2wt,wt2html,html2html
9126 subpage title=[[Subpage test/1/2/3/4]]
9132 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
9133 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
9136 # TODO: make this PHP-parser compatible!
9138 Parsoid: dot-slash prefixed wikilinks
9140 parsoid=wt2wt,wt2html,html2html
9148 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
9149 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
9150 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
9158 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
9163 BUG 561: {{/Subpage}}
9165 subpage title=[[Page]]
9169 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
9177 Category:MediaWiki User's Guide
9185 [[:Category:MediaWiki User's Guide]]
9187 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
9196 [[Category:MediaWiki User's Guide]]
9198 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9202 PAGESINCATEGORY invalid title fatal (r33546 fix)
9204 {{PAGESINCATEGORY:<bogus>}}
9211 Category with different sort key
9215 [[Category:MediaWiki User's Guide|Foo]]
9217 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9221 Category with identical sort key
9225 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9227 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9231 Category with empty sort key
9236 [[Category:MediaWiki User's Guide|]]
9238 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9242 Category with empty sort key and parentheses
9247 [[Category:Foo (bar)|]]
9249 [[Category:Foo (bar)|Foo]]
9253 Category with link tail
9258 123[[Category:Foo]]456
9260 123[[Category:Foo]]456
9264 Category with template
9269 [[Category:{{echo|Foo}}]]
9271 [[Category:{{echo|Foo}}]]
9275 Category with template in sort key
9280 [[Category:Foo|{{echo|Bar}}]]
9282 [[Category:Foo|{{echo|Bar}}]]
9286 Category with template in sort key and title
9291 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9293 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9297 Category / paragraph interactions
9299 Foo [[Category:Baz]] Bar
9301 Foo [[Category:Baz]]
9309 [[Category:Baz]] Bar
9322 {{echo|[[Category:Baz]]}}
9337 Parsoid: Serialize link to category page with colon escape
9343 [[:Category:Foo|Bar]]
9346 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
9347 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
9352 Parsoid: Link prefix/suffixes aren't applied to category links
9354 parsoid=wt2html,wt2wt,html2html
9359 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
9363 Parsoid: Serialize link to file page with colon escape
9369 [[:File:Foo.png|Bar]]
9372 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
9373 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
9378 Parsoid: Serialize a genuine category link without colon escape
9383 [[Category:Foo|Bar]]
9385 <link rel="mw:WikiLink/Category" href="Category:Foo">
9386 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
9390 ### Inter-language links
9393 Inter-language links
9399 [[zh:食品]]
9401 es:Alimento fr:Nourriture zh:食品
9405 Duplicate interlanguage links (bug 24502)
9421 Basic section headings
9428 ===Smaller headline===
9431 <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>
9434 <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>
9437 <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>
9443 Section headings with TOC
9446 === Subheadline 1 ===
9447 ===== Skipping a level =====
9448 ====== Skipping a level ======
9452 ===Another headline===
9454 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9456 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
9458 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
9460 <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>
9462 <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>
9469 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
9471 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
9476 <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>
9477 <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>
9478 <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>
9479 <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>
9480 <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>
9483 <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>
9487 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
9489 Handling of sections up to level 6 and beyond
9492 == Level 2 Heading==
9493 === Level 3 Heading===
9494 ==== Level 4 Heading====
9495 ===== Level 5 Heading=====
9496 ====== Level 6 Heading======
9497 ======= Level 7 Heading=======
9498 ======== Level 8 Heading========
9499 ========= Level 9 Heading=========
9500 ========== Level 10 Heading==========
9502 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9504 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9506 <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>
9508 <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>
9510 <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>
9512 <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>
9514 <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>
9515 <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>
9516 <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>
9517 <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>
9518 <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>
9531 <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>
9532 <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>
9533 <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>
9534 <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>
9535 <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>
9536 <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>
9537 <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>
9538 <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>
9539 <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>
9540 <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>
9545 TOC regression (bug 9764)
9549 ==== title 1.1.1 ====
9554 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9556 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9558 <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>
9560 <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>
9563 <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>
9566 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9568 <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>
9573 <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>
9574 <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>
9575 <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>
9576 <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>
9577 <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>
9578 <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>
9583 TOC with wgMaxTocLevel=3 (bug 6204)
9589 ==== title 1.1.1 ====
9594 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9596 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9598 <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>
9599 <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>
9602 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9604 <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>
9609 <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>
9610 <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>
9611 <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>
9612 <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>
9613 <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>
9614 <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>
9619 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9625 ====Section 1.1.1====
9626 ====Section 1.1.1.1====
9629 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9631 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9633 <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>
9636 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9639 <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>
9640 <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>
9641 <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>
9642 <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>
9643 <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>
9649 Resolving duplicate section names
9654 <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>
9655 <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>
9660 Resolving duplicate section names with differing case (bug 10721)
9665 <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>
9666 <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>
9678 Template with sections, __NOTOC__
9685 <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>
9686 <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>
9687 <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>
9688 <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>
9693 __NOEDITSECTION__ keyword
9699 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9700 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9705 Link inside a section heading
9707 ==Section with a [[Main Page|link]] in it==
9709 <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>
9714 TOC regression (bug 12077)
9721 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9723 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9725 <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>
9728 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9731 <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>
9732 <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>
9733 <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>
9738 BUG 1219 URL next to image (good)
9740 http://example.com [[Image:foobar.jpg]]
9742 <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>
9747 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9750 The line above must have a trailing space!
9753 But just in case it doesn't...
9755 <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>
9756 <p>The line above must have a trailing space!
9758 <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>
9759 <p>But just in case it doesn't...
9764 Header with special characters (bug 25462)
9766 The tooltips shall not show entities to the user (ie. be double escaped)
9783 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9785 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9787 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9788 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9789 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9790 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9791 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9794 <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>
9797 <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>
9800 <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>
9803 <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>
9806 <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>
9812 Headers with excess '=' characters
9813 (Are similar tests necessary beyond the 1st level?)
9817 =''italic'' heading==
9818 ==''italic'' heading=
9820 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9822 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9823 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9824 <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>
9825 <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>
9828 <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>
9829 <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>
9830 <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>
9831 <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>
9836 HTML headers vs TOC (bug 23393)
9837 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9849 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9851 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9853 <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>
9854 <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>
9857 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9859 <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>
9860 <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>
9865 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9866 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9867 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9868 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9869 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9870 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9875 BUG 1219 URL next to image (broken)
9877 http://example.com[[Image:foobar.jpg]]
9879 <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>
9884 Bug 1186 news: in the middle of text
9886 http://en.wikinews.org/wiki/Wikinews:Workplace
9888 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9894 Namespaced link must have a title
9903 Namespaced link must have a title (bad fragment version)
9905 [[Project:#fragment]]
9907 <p>[[Project:#fragment]]
9913 ### HTML tags and HTML attributes
9917 div with no attributes
9919 <div>HTML rocks</div>
9921 <div>HTML rocks</div>
9926 div with double-quoted attribute
9928 <div id="rock">HTML rocks</div>
9930 <div id="rock">HTML rocks</div>
9935 div with single-quoted attribute
9937 <div id='rock'>HTML rocks</div>
9939 <div id="rock">HTML rocks</div>
9944 div with unquoted attribute
9946 <div id=rock>HTML rocks</div>
9948 <div id="rock">HTML rocks</div>
9953 div with illegal double attributes
9955 <div id="a" id="b">HTML rocks</div>
9957 <div id="b">HTML rocks</div>
9961 # FIXME: produce empty string instead of "class" in the PHP parser, following
9964 div with empty attribute value, space before equals
9968 <div class =>HTML rocks</div>
9970 <div class="">HTML rocks</div>
9974 # The PHP parser escapes the opening brace to { for some reason, so
9975 # disabled this test for it.
9977 div with braces in attribute value
9981 <div title="{}">Foo</div>
9983 <div title="{}">Foo</div>
9986 # This it very inconsistent in the PHP parser: it returns
9987 # class="class" if there is a space between the name and the equal sign (see
9988 # 'div with empty attribute value, space before equals'), but strips the
9989 # attribute completely if the space is missing. We hope that not much content
9990 # depends on this, so are implementing the behavior below in Parsoid for
9991 # consistencies' sake. Disabled for the PHP parser.
9992 # FIXME: fix this behavior in the PHP parser?
9994 div with empty attribute value, no space before equals
9998 <div class=>HTML rocks</div>
10000 <div class="">HTML rocks</div>
10005 HTML multiple attributes correction
10007 <p class="error" class="awesome">Awesome!</p>
10009 <p class="awesome">Awesome!</p>
10014 Table multiple attributes correction
10017 !+ class="error" class="awesome"| status
10022 <th class="awesome"> status
10030 <DIV ID="x">HTML ROCKS</DIV>
10032 <div id="x">HTML ROCKS</div>
10037 Non-ASCII pseudo-tags are rendered as text
10046 Pseudo-tag with URL 'name' renders as url link
10048 <http://example.com/>
10050 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
10055 text with amp in the middle of nowhere
10059 <p>Remember AT&T?
10064 text with character entity: eacute
10066 I always thought é was a cute letter.
10068 <p>I always thought é was a cute letter.
10073 text with entity-escaped character entity-like string: eacute
10075 I always thought &eacute; was a cute letter.
10077 <p>I always thought &eacute; was a cute letter.
10082 text with undefined character entity: xacute
10084 I always thought &xacute; was a cute letter.
10086 <p>I always thought &xacute; was a cute letter.
10092 ### Nesting tests (see bug 41545, 50604, 51081)
10095 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
10096 # Note that html2wt is considerably more difficult if we use <b> in
10097 # the test case, instead of <big>
10099 Ensure that HTML adoption agency algorithm is properly implemented.
10101 <big>X<big>Y</big>Z</big>
10103 <p><big>X<big>Y</big>Z</big>
10107 # This was bug 41545 in the PHP parser.
10111 <kbd>X<kbd>Y</kbd>Z</kbd>
10113 <p><kbd>X<kbd>Y</kbd>Z</kbd>
10117 # The following cases were bug 51081 in the PHP parser.
10118 # Note that there are some other nestable tags (b, i, etc) which are
10119 # not covered; see bug 51081 for discussion.
10123 <em>X<em>Y</em>Z</em>
10125 <p><em>X<em>Y</em>Z</em>
10130 Nesting of <strong>
10132 <strong>X<strong>Y</strong>Z</strong>
10134 <p><strong>X<strong>Y</strong>Z</strong>
10143 <p><q>X<q>Y</q>Z</q>
10150 <ruby>X<ruby>Y</ruby>Z</ruby>
10152 <p><ruby>X<ruby>Y</ruby>Z</ruby>
10159 <bdo>X<bdo>Y</bdo>Z</bdo>
10161 <p><bdo>X<bdo>Y</bdo>Z</bdo>
10173 [[Media:Foobar.jpg]]
10175 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
10180 Media link with text
10182 [[Media:Foobar.jpg|A neat file to look at]]
10184 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
10188 # FIXME: this is still bad HTML tag nesting
10190 Media link with nasty text
10191 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
10193 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
10195 <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>
10200 Media link to nonexistent file (bug 1702)
10202 [[Media:No such.jpg]]
10204 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
10209 Image link to nonexistent file (bug 1850 - good)
10211 [[Image:No such.jpg]]
10213 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
10218 :Image link to nonexistent file (bug 1850 - bad)
10220 [[:Image:No such.jpg]]
10222 <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>
10229 Character reference normalization in link text (bug 1938)
10231 [[Main Page|this&that]]
10233 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
10240 Test for unicode normalization
10242 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
10246 (bug 19451) Links should refer to the normalized form.
10254 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10255 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10256 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10257 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10258 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10263 Empty attribute crash test (bug 2067)
10265 <font color="">foo</font>
10267 <p><font color="">foo</font>
10272 Empty attribute crash test single-quotes (bug 2067)
10274 <font color=''>foo</font>
10276 <p><font color="">foo</font>
10281 Attribute test: equals, then nothing
10283 <font color=>foo</font>
10285 <p><font>foo</font>
10290 Attribute test: unquoted value
10292 <font color=x>foo</font>
10294 <p><font color="x">foo</font>
10299 Attribute test: unquoted but illegal value (hash)
10301 <font color=#x>foo</font>
10303 <p><font color="#x">foo</font>
10308 Attribute test: no value
10310 <font color>foo</font>
10312 <p><font color="color">foo</font>
10317 Bug 2095: link with three closing brackets
10321 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
10326 Bug 2095: link with pipe and three closing brackets
10328 [[Main Page|link]]]
10330 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
10335 Bug 2095: link with pipe and three closing brackets, version 2
10337 [[Main Page|[http://example.com/]]]
10339 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
10349 Template:Dangerous attribute
10351 " onmouseover="alert(document.cookie)
10355 Template:Dangerous style attribute
10357 border-size: expression(alert(document.cookie))
10363 <div style="float: right; {{{1}}}">Magic div</div>
10367 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
10369 <div title="{{test}}"></div>
10371 <div title="This is a test template"></div>
10376 Bug 2304: HTML attribute safety (dangerous template; 2309)
10378 <div title="{{dangerous attribute}}"></div>
10380 <div title=""></div>
10385 Bug 2304: HTML attribute safety (dangerous style template; 2309)
10387 <div style="{{dangerous style attribute}}"></div>
10389 <div style="/* insecure input */"></div>
10394 Bug 2304: HTML attribute safety (safe parameter; 2309)
10396 {{div style|width: 200px}}
10398 <div style="float: right; width: 200px">Magic div</div>
10403 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
10405 {{div style|width: expression(alert(document.cookie))}}
10407 <div style="/* insecure input */">Magic div</div>
10412 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
10414 {{div style|"><script>alert(document.cookie)</script>}}
10416 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10421 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
10423 {{div style|" ><script>alert(document.cookie)</script>}}
10425 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10430 Bug 2304: HTML attribute safety (link)
10432 <div title="[[Main Page]]"></div>
10434 <div title="[[Main Page]]"></div>
10439 Bug 2304: HTML attribute safety (italics)
10441 <div title="''foobar''"></div>
10443 <div title="''foobar''"></div>
10448 Bug 2304: HTML attribute safety (bold)
10450 <div title="'''foobar'''"></div>
10452 <div title="'''foobar'''"></div>
10458 Bug 2304: HTML attribute safety (ISBN)
10460 <div title="ISBN 1234567890"></div>
10462 <div title="ISBN 1234567890"></div>
10467 Bug 2304: HTML attribute safety (RFC)
10469 <div title="RFC 1234"></div>
10471 <div title="RFC 1234"></div>
10476 Bug 2304: HTML attribute safety (PMID)
10478 <div title="PMID 1234567890"></div>
10480 <div title="PMID 1234567890"></div>
10485 Bug 2304: HTML attribute safety (web link)
10487 <div title="http://example.com/"></div>
10489 <div title="http://example.com/"></div>
10494 Bug 2304: HTML attribute safety (named web link)
10496 <div title="[http://example.com/ link]"></div>
10498 <div title="[http://example.com/ link]"></div>
10503 Bug 3244: HTML attribute safety (extension; safe)
10505 <div style="<nowiki>background:blue</nowiki>"></div>
10507 <div style="background:blue"></div>
10512 Bug 3244: HTML attribute safety (extension; unsafe)
10514 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10516 <div style="/* insecure input */"></div>
10520 # More MSIE fun discovered by Tom Gilder
10523 MSIE CSS safety test: spurious slash
10525 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10527 <div style="/* insecure input */">evil</div>
10532 MSIE CSS safety test: hex code
10534 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10536 <div style="/* insecure input */">evil</div>
10541 MSIE CSS safety test: comment in url
10543 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10545 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10550 MSIE CSS safety test: comment in expression
10552 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10554 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10560 Table attribute legitimate extension
10563 !+ style="<nowiki>color:blue</nowiki>"| status
10568 <th style="color:blue"> status
10574 Table attribute safety
10577 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10582 <th style="/* insecure input */"> status
10588 CSS line continuation 1
10590 <div style="background-image: u\ rl(test.jpg);"></div>
10592 <div style="/* insecure input */"></div>
10597 CSS line continuation 2
10599 <div style="background-image: u\ rl(test.jpg); "></div>
10601 <div style="/* insecure input */"></div>
10612 Expansion of multi-line templates in attribute values (bug 6255)
10614 <div style="background: {{identity|#00FF00}}">-</div>
10616 <div style="background: #00FF00">-</div>
10622 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10624 <div style="background:
10627 <div style="background: #00FF00">-</div>
10632 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10634 <div style="background: #00FF00">-</div>
10636 <div style="background: #00FF00">-</div>
10641 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
10644 Parser hook: empty input
10657 Parser hook: empty input using terminated empty elements
10670 Parser hook: empty input using terminated empty elements (space before)
10683 Parser hook: basic input
10697 Parser hook: case insensitive
10711 Parser hook: case insensitive, redux
10724 Parser hook: nested tags
10728 <tag><tag></tag></tag>
10739 Parser hook: basic arguments
10741 <tag width=200 height = "100" depth = '50' square></tag>
10749 'square' => 'square',
10756 Parser hook: argument containing a forward slash (bug 5344)
10758 <tag filename='/tmp/bla'></tag>
10763 'filename' => '/tmp/bla',
10770 Parser hook: empty input using terminated empty elements (bug 2374)
10783 # </tag> should be output literally since there is no matching tag that begins it
10785 Parser hook: basic arguments using terminated empty elements (bug 2374)
10787 <tag width=200 height = "100" depth = '50' square/>
10797 'square' => 'square',
10806 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
10810 Parser hook: static parser hook not inside a comment
10812 <statictag>hello, world</statictag>
10813 <statictag action=flush/>
10821 Parser hook: static parser hook inside a comment
10823 <!-- <statictag>hello, world</statictag> -->
10824 <statictag action=flush/>
10830 # Nested template calls; this case was broken by Parser.php rev 1.506,
10834 Template:One-parameter
10836 (My parameter is: {{{1}}})
10840 Template:Map-one-parameter
10842 {{{{{1}}}|{{{2}}}}}
10846 Nested template calls
10848 {{Map-one-parameter|One-parameter|param}}
10850 <p>(My parameter is: param)
10859 Sanitizer: Closing of open tags
10861 <s></s><table></table>
10863 <s></s><table></table>
10868 Sanitizer: Closing of open but not closed tags
10877 Sanitizer: Closing of closed but not open tags
10886 Sanitizer: Closing of closed but not open table tags
10888 Table not started</td></tr></table>
10890 <p>Table not started</td></tr></table>
10895 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10897 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10899 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10904 Sanitizer: Validating the contents of the id attribute (bug 4515)
10910 Something, but definitely not <br id="9" />...
10914 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10918 <br id="foo" /><br id="foo" />
10920 Something need to be done. foo-2 ?
10924 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10927 <meta itemprop="hello" content="world">
10928 <meta http-equiv="refresh" content="5">
10929 <meta itemprop="hello" http-equiv="refresh" content="5">
10930 <link itemprop="hello" href="{{SERVER}}">
10931 <link rel="stylesheet" href="{{SERVER}}">
10932 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10935 <div itemscope="itemscope">
10936 <p> <meta itemprop="hello" content="world" />
10937 <meta http-equiv="refresh" content="5">
10938 <meta itemprop="hello" content="5" />
10940 <link itemprop="hello" href="http://example.org" />
10941 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10942 <link itemprop="hello" href="http://example.org" />
10948 Language converter: output gets cut off unexpectedly (bug 5757)
10952 this bit is safe: }-
10954 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10956 then we get cut off here: }-
10958 all additional text is vanished
10960 <p>this bit is safe: }-
10961 </p><p>but if we add a conversion instance: xxx
10962 </p><p>then we get cut off here: }-
10963 </p><p>all additional text is vanished
10968 Self closed html pairs (bug 5487)
10971 <center><font id="bug" />Centered text</center>
10972 <div><font id="bug2" />In div text</div>
10974 <center><font id="bug" />Centered text</center>
10975 <div><font id="bug2" />In div text</div>
10984 Punctuation: nbsp before exclamation
10988 <p>C'est grave !
10993 Punctuation: CSS !important (bug 11874)
10995 <div style="width:50% !important">important</div>
10997 <div style="width:50% !important">important</div>
11002 Punctuation: CSS ! important (bug 11874; with space after)
11004 <div style="width:50% ! important">important</div>
11006 <div style="width:50% ! important">important</div>
11012 HTML bullet list, closed tags (bug 5497)
11027 HTML bullet list, unclosed tags (bug 5497)
11044 HTML ordered list, closed tags (bug 5497)
11059 HTML ordered list, unclosed tags (bug 5497)
11076 HTML nested bullet list, closed tags (bug 5497)
11101 HTML nested bullet list, open tags (bug 5497)
11126 HTML nested ordered list, closed tags (bug 5497)
11151 HTML nested ordered list, open tags (bug 5497)
11176 HTML ordered list item with parameters oddity
11178 <ol><li id="fragment">One</li></ol>
11180 <ol><li id="fragment">One</li></ol>
11185 bug 5918: autonumbering
11187 [http://first/] [http://second] [ftp://ftp]
11191 [mailto:enclosed@mail.tld With target]
11193 [mailto:enclosed@mail.tld]
11195 mailto:inline@mail.tld
11197 <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>
11198 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
11199 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
11200 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
11201 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
11207 # Security and HTML correctness
11208 # From Nick Jenkins' fuzz testing
11212 Fuzz testing: Parser13
11227 Fuzz testing: Parser14
11232 <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>
11233 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11235 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
11242 Fuzz testing: Parser14-table
11247 <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>
11248 <table style="__TOC__">
11254 # Known to produce bogus xml (extra </td>)
11256 Fuzz testing: Parser16
11276 Fuzz testing: Parser21
11279 ! irc://{{ftp://a" onmouseover="alert('hello world');"
11284 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
11294 Fuzz testing: Parser22
11296 http://===r:::https://b
11300 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
11308 # Known to produce bad XML for now
11310 Fuzz testing: Parser24
11317 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
11318 <br style="onmouseover='alert(document.cookie);' " />
11320 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11325 <u class="|">}}}} >
11326 <br style="onmouseover='alert(document.cookie);'" />
11328 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11337 # Note: the current result listed for this is not what the original one was,
11338 # but the original bug was JavaScript injection, which is fixed in any case.
11339 # It's not clear that the original result listed was any more correct than the
11340 # current one. Original result:
11343 # <li class="||">
11344 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11346 Fuzz testing: Parser25 (bug 6055)
11352 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
11354 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11359 Fuzz testing: URL adjacent extension (with space, clean)
11362 http://example.com <nowiki>junk</nowiki>
11364 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
11369 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
11372 http://example.com<nowiki>junk</nowiki>
11374 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
11379 Fuzz testing: URL adjacent extension (no space, dirty; pre)
11382 http://example.com<pre>junk</pre>
11384 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
11389 Fuzz testing: image with bogus manual thumbnail
11391 [[Image:foobar.jpg|thumbnail= ]]
11393 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
11398 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
11400 <pre dir=" "></pre>
11402 <pre dir=" "></pre>
11407 Parsing optional HTML elements (Bug 6171)
11412 <td> Some tabular data</td>
11413 <td> More tabular data ...
11414 <td> And yet som tabular data</td>
11420 <td> Some tabular data</td>
11421 <td> More tabular data ...
11422 </td><td> And yet som tabular data</td>
11429 Correct handling of <td>, <tr> (Bug 6171)
11434 <td> Some tabular data</td>
11435 <td> More tabular data ...</td>
11436 <td> And yet som tabular data</td>
11442 <td> Some tabular data</td>
11443 <td> More tabular data ...</td>
11444 <td> And yet som tabular data</td>
11452 Parsing crashing regression (fr:JavaScript)
11456 <p></body></x>
11461 Inline wiki vs wiki block nesting
11467 <p><b>Bold paragraph</b>
11468 </p><p>New wiki paragraph
11473 Inline HTML vs wiki block nesting
11481 <p><b>Bold paragraph</b>
11482 </p><p>New wiki paragraph
11486 # Original result was this:
11487 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
11489 # While that might be marginally more intuitive, maybe, the six-apostrophe
11490 # construct is clearly pathological and the result stated here (which is what
11491 # the parser actually does) is about as reasonable as anything.
11493 Mixing markup for italics and bold
11496 '''bold''''''bold''bolditalics'''''
11498 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11506 Article for special page transclusion test
11510 Special page transclusion
11513 {{Special:Prefixindex/Xyzzyx}}
11515 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11520 Special page transclusion twice (bug 5021)
11523 {{Special:Prefixindex/Xyzzyx}}
11524 {{Special:Prefixindex/Xyzzyx}}
11526 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11527 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11532 Transclusion of default MediaWiki message
11534 {{MediaWiki:Mainpage}}
11541 Transclusion of nonexistent MediaWiki message
11543 {{MediaWiki:Mainpagexxx}}
11545 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11550 Transclusion of MediaWiki message with underscore
11552 {{MediaWiki:history_short}}
11559 Transclusion of MediaWiki message with space
11561 {{MediaWiki:history short}}
11568 Invalid header with following text
11578 Section extraction test (section 0)
11598 Section extraction test (section 1)
11620 Section extraction test (section 2)
11641 Section extraction test (section 3)
11661 Section extraction test (section 4)
11685 Section extraction test (section 5)
11705 Section extraction test (section 6)
11726 Section extraction test (section 7)
11746 Section extraction test (section 8)
11766 Section extraction test (section 9)
11787 Section extraction test (section 10)
11807 Section extraction test (nonexistent section 11)
11826 Section extraction test with bogus heading (section 1)
11831 ==bogus== not a legal section
11835 ==bogus== not a legal section
11839 Section extraction test with bogus heading (section 2)
11844 ==bogus== not a legal section
11851 Section extraction test with comment after heading (section 1)
11863 Section extraction test with comment after heading (section 2)
11875 Section extraction test with bogus <nowiki> heading (section 1)
11880 ==bogus== <nowiki>not a legal section</nowiki>
11884 ==bogus== <nowiki>not a legal section</nowiki>
11888 Section extraction test with bogus <nowiki> heading (section 2)
11893 ==bogus== <nowiki>not a legal section</nowiki>
11900 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11901 # instead of respecting commented sections
11903 Section extraction prefixed by comment (section 1)
11914 Section extraction prefixed by comment (section 2)
11925 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11926 # instead of respecting HTML-style headings
11928 Section extraction, mixed wiki and html (section 1)
11944 Section extraction, mixed wiki and html (section 2)
11960 # Formerly testing for bug 3342
11962 Section extraction, heading surrounded by <noinclude>
11966 <noinclude>==unmarked==</noinclude>
11972 # Test behavior of bug 19910
11974 Sectiion with all-equals
11979 The line above must have a trailing space
11982 But just in case it doesn't...
11986 But just in case it doesn't...
11990 Section replacement test (section 0)
12021 Section replacement test (section 1)
12050 Section replacement test (section 2)
12080 Section replacement test (section 3)
12111 Section replacement test (section 4)
12138 Section replacement test (section 5)
12169 Section replacement test (section 6)
12199 Section replacement test (section 7)
12230 Section replacement test (section 8)
12261 Section replacement test (section 9)
12290 Section replacement test (section 10)
12320 Section replacement test with initial whitespace (bug 13728)
12324 Preformatted initial line
12328 Preformatted initial line
12335 Section extraction, heading followed by pre with 20 spaces (bug 6398)
12347 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
12360 Section extraction, <pre> around bogus header (bug 10309)
12377 Section replacement, <pre> around bogus header (bug 10309)
12379 noxml replace=2,"xxx"
12400 Handling of 
 in URLs
12404 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
12411 5 quotes, code coverage +1 line (php)
12418 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
12420 5 quotes, code coverage +1 line (parsoid)
12426 <p><i><b></b></i></p>
12430 Special:Search page linking.
12434 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
12441 title=[[Parser test]]
12446 * {{FULLPAGENAMEE}}
12448 * {{BASEPAGENAMEE}}
12452 * {{ROOTPAGENAMEE}}
12454 * {{TALKPAGENAMEE}}
12455 * {{SUBJECTPAGENAME}}
12456 * {{SUBJECTPAGENAMEE}}
12459 * {{NAMESPACENUMBER}}
12463 * {{SUBJECTSPACEE}}
12464 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
12466 <ul><li> Parser test
12467 </li><li> Parser_test
12468 </li><li> Parser test
12469 </li><li> Parser_test
12470 </li><li> Parser test
12471 </li><li> Parser_test
12472 </li><li> Parser test
12473 </li><li> Parser_test
12474 </li><li> Parser test
12475 </li><li> Parser_test
12476 </li><li> Talk:Parser test
12477 </li><li> Talk:Parser_test
12478 </li><li> Parser test
12479 </li><li> Parser_test
12487 </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>
12491 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
12501 image4 |300px| centre
12502 image5.svg| http://///////
12507 <ul class="gallery">
12508 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12509 <div style="height: 150px;">Image1.png</div>
12510 <div class="gallerytext">
12513 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12514 <div style="height: 150px;">Image2.gif</div>
12515 <div class="gallerytext">
12520 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12521 <div style="height: 150px;">Image3</div>
12522 <div class="gallerytext">
12525 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12526 <div style="height: 150px;">Image4</div>
12527 <div class="gallerytext">
12532 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12533 <div style="height: 150px;">Image5.svg</div>
12534 <div class="gallerytext">
12535 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12539 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12540 <div style="height: 150px;">* image6</div>
12541 <div class="gallerytext">
12549 Gallery (with options)
12551 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12552 File:Nonexistant.jpg|caption
12553 File:Nonexistant.jpg
12554 image:foobar.jpg|some '''caption''' [[Main Page]]
12556 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12559 <ul class="gallery" style="max-width: 226px;_width: 226px;">
12560 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12561 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12562 <div style="height: 70px;">Nonexistant.jpg</div>
12563 <div class="gallerytext">
12568 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12569 <div style="height: 70px;">Nonexistant.jpg</div>
12570 <div class="gallerytext">
12573 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12574 <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>
12575 <div class="gallerytext">
12576 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12580 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12581 <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>
12582 <div class="gallerytext">
12585 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12586 <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>
12587 <div class="gallerytext">
12597 Gallery with wikitext inside caption
12600 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12601 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12604 <ul class="gallery">
12605 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12606 <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>
12607 <div class="gallerytext">
12608 <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>
12612 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12613 <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>
12614 <div class="gallerytext">
12615 <p>This is a test template
12624 gallery (with showfilename option)
12626 <gallery showfilename>
12627 File:Nonexistant.jpg|caption
12628 File:Nonexistant.jpg
12629 image:foobar.jpg|some '''caption''' [[Main Page]]
12633 <ul class="gallery">
12634 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12635 <div style="height: 150px;">Nonexistant.jpg</div>
12636 <div class="gallerytext">
12637 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12642 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12643 <div style="height: 150px;">Nonexistant.jpg</div>
12644 <div class="gallerytext">
12645 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12649 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12650 <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>
12651 <div class="gallerytext">
12652 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12653 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12657 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12658 <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>
12659 <div class="gallerytext">
12660 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12669 Gallery (with namespace-less filenames)
12672 File:Nonexistant.jpg
12678 <ul class="gallery">
12679 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12680 <div style="height: 150px;">Nonexistant.jpg</div>
12681 <div class="gallerytext">
12684 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12685 <div style="height: 150px;">Nonexistant.jpg</div>
12686 <div class="gallerytext">
12689 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12690 <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>
12691 <div class="gallerytext">
12694 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12695 <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>
12696 <div class="gallerytext">
12704 HTML Hex character encoding (spells the word "JavaScript")
12706 JavaScript
12708 <p>JavaScript
12713 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12717 <p>&#xsee;&#XSEE;
12722 HTML Hex character encoding mixed case
12731 __FORCETOC__ override
12743 ISBN 978-0-1234-56 789
12745 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12750 ISBN followed by 5 spaces
12761 ISBN ISBN 1234567890
12763 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12768 Bug 22905: <abbr> followed by ISBN followed by </a>
12770 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12772 <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>
12781 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12786 Double RFC with a wiki link
12790 <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>
12799 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12804 Centre-aligned image
12806 [[Image:foobar.jpg|centre]]
12808 <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>
12815 [[Image:foobar.jpg|none]]
12817 <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>
12822 Width + Height sized image (using px) (height is ignored)
12824 [[Image:foobar.jpg|640x480px]]
12826 <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>
12831 Width-sized image (using px, no following whitespace)
12833 [[Image:foobar.jpg|640px]]
12835 <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>
12840 Width-sized image (using px, with following whitespace - test regression from r39467)
12842 [[Image:foobar.jpg|640px ]]
12844 <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>
12849 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12851 [[Image:foobar.jpg| 640px]]
12853 <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>
12858 Another italics / bold test
12866 # Note the results may be incorrect, as parserTest output included this:
12867 # XML error: Mismatched tag at byte 6120:
12868 # ...<dd> </dt></dl> </dd...
12876 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12887 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12889 Images with the "|" character in the comment
12891 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12893 <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>
12898 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12900 <html><script>alert(1);</script></html>
12902 <p><html><script>alert(1);</script></html>
12907 HTML with raw HTML ($wgRawHtml==true)
12911 <html><script>alert(1);</script></html>
12913 <p><script>alert(1);</script>
12918 Parents of subpages, one level up
12920 subpage title=[[Subpage test/L1/L2/L3]]
12924 <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>
12930 Parents of subpages, one level up, not named
12932 subpage title=[[Subpage test/L1/L2/L3]]
12936 <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>
12943 Parents of subpages, two levels up
12945 subpage title=[[Subpage test/L1/L2/L3]]
12951 <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
12952 </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>
12957 Parents of subpages, two levels up, without trailing slash or name.
12959 subpage title=[[Subpage test/L1/L2/L3]]
12968 Parents of subpages, two levels up, with lots of extra trailing slashes.
12970 subpage title=[[Subpage test/L1/L2/L3]]
12974 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12979 Subpage test/L1/L2/L3Sibling
12985 Transclusion of a sibling page (one level up)
12987 subpage title=[[Subpage test/L1/L2/L3]]
12996 Transclusion of a child page
12998 subpage title=[[Subpage test/L1/L2]]
13007 Non-transclusion because of too many up levels
13009 subpage title=[[Subpage test/L1/L2/L3]]
13011 {{../../../../More than parent}}
13013 <p>{{../../../../More than parent}}
13018 Definition list code coverage
13024 <dl><dt> title  </dt><dd> def
13025 </dd><dt> title </dt><dd> def
13026 </dd><dt>title</dt><dd> def
13032 Don't fall for the self-closing div
13034 <div>hello world</div/>
13036 <div>hello world</div>
13045 <p>[[:Template:Msg]]
13054 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
13058 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
13060 Always escape literal '>' in output, not just after '<'
13074 <p>This is a test template
13075 This is a test template
13087 Inclusion of !userCanEdit() content
13091 <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>
13097 Out-of-order TOC heading levels
13106 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13108 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
13110 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
13111 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
13114 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
13116 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
13117 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
13122 <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>
13123 <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>
13124 <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>
13125 <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>
13126 <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>
13127 <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>
13133 ISBN with a dummy number
13143 ISBN with space-delimited number
13147 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
13153 ISBN with multiple spaces, no number
13172 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13173 </p><p>ISBN 12345678901
13179 ISBN with trailing year (bug 8110)
13181 ISBN 1-234-56789-0 - 2006
13183 ISBN 1 234 56789 0 - 2006
13185 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
13186 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
13194 {{anchorencode:foo bar©#%n}}
13196 <p>foo_bar.C2.A9.23.25n
13201 anchorencode trims spaces
13203 {{anchorencode: __pretty__please__}}
13210 anchorencode deals with links
13212 {{anchorencode: [[hello|world]] [[hi]]}}
13219 anchorencode deals with templates
13221 {{anchorencode: {{Foo}} }}
13228 anchorencode encodes like the TOC generator: (bug 18431)
13230 === _ +:.3A%3A&&]] ===
13231 {{anchorencode: _ +:.3A%3A&&]] }}
13234 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
13235 <p>.2B:.3A.253A.26.26.5D.5D
13240 Bug 6200: blockquotes and paragraph formatting
13261 Bug 8293: Use of center tag ruins paragraph formatting
13282 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
13286 <span><s>x</span></s>
13288 <p><span><s>x</span></s></span>
13293 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
13297 <span><s>x</span></s>
13299 <p><span><s>x</s></span><s></s>
13304 ### Language variants related tests
13307 Self-link in language variants
13309 title=[[Dunav]] language=sr
13311 Both [[Dunav]] and [[Дунав]] are names for this river.
13313 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
13324 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
13326 title=[[Duna]] language=sr
13328 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
13330 <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.
13335 Link to pages in language variants
13339 Main Page can be written as [[Маин Паге]]
13341 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
13347 Multiple links to pages in language variants
13351 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
13353 <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>.
13359 Simple template in language variants
13365 <p>This is a test template
13371 Template with explicit namespace in language variants
13377 <p>This is a test template
13383 Basic test for template parameter in language variants
13387 {{парамтест|param=foo}}
13389 <p>This is a test template with parameter foo
13395 Simple category in language variants
13399 [[Category:МедиаWики Усер'с Гуиде]]
13401 <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>
13418 Don't convert blue categorylinks to another variant (bug 33210)
13422 [[A]][[Category:分类]]
13424 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
13429 Stripping -{}- tags (language variants)
13433 Latin proverb: -{Ne nuntium necare}-
13435 <p>Latin proverb: Ne nuntium necare
13441 Prevent conversion with -{}- tags (language variants)
13443 language=sr variant=sr-ec
13445 Latinski: -{Ne nuntium necare}-
13447 <p>Латински: Ne nuntium necare
13453 Prevent conversion of text with -{}- tags (language variants)
13455 language=sr variant=sr-ec
13457 Latinski: -{Ne nuntium necare}-
13459 <p>Латински: Ne nuntium necare
13465 Prevent conversion of links with -{}- tags (language variants)
13467 language=sr variant=sr-ec
13471 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13477 -{}- tags within headlines (within html for parserConvert())
13479 language=sr variant=sr-ec
13483 <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>
13489 Explicit definition of language variant alternatives
13491 language=zh variant=zh-tw
13493 -{zh:China;zh-tw:Taiwan}-, not China
13495 <p>Taiwan, not China
13501 Conversion around HTML tags
13503 language=sr variant=sr-ec
13505 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13506 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13509 <span title="ЛаCтин">ски</span>
13515 Explicit session-wise language variant mapping (A flag and - flag)
13517 language=zh variant=zh-tw
13519 Taiwan is not China.
13520 But -{A|zh:China;zh-tw:Taiwan}- is China,
13521 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13522 and -{China}- is China.
13524 <p>Taiwan is not China.
13525 But Taiwan is Taiwan,
13526 (This should be stripped!)
13527 and China is China.
13532 Explicit session-wise language variant mapping (H flag for hide)
13534 language=zh variant=zh-tw
13536 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13539 <p>(This should be stripped!)
13545 Adding explicit conversion rule for title (T flag)
13547 language=zh variant=zh-tw showtitle
13549 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13552 <p>Should be stripped!
13557 Testing that changing the language variant here in the tests actually works
13559 language=zh variant=zh showtitle
13561 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13564 <p>Should be stripped!
13569 Recursive conversion of alt and title attrs shouldn't clear converter state
13571 language=zh variant=zh-cn showtitle
13573 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13574 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13578 Should be stripped<span title="Exclamation">!</span>
13583 Bug 24072: more test on conversion rule for title
13585 language=zh variant=zh-tw showtitle
13587 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13588 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13591 <p>This should be stripped!
13592 This won't take interferes with the title rule.
13597 Partly disable title conversion if variant == main language code
13599 language=zh variant=zh title=[[ZH]] showtitle
13601 -{T|zh-cn:CN;zh-tw:TW}-
13609 Partly disable title conversion if variant == main language code, more
13611 language=zh variant=zh title=[[ZH]] showtitle
13621 Raw output of variant escape tags (R flag)
13623 language=zh variant=zh-tw
13625 Raw: -{R|zh:China;zh-tw:Taiwan}-
13627 <p>Raw: zh:China;zh-tw:Taiwan
13632 Nested using of manual convert syntax
13634 language=zh variant=zh-hk
13636 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13638 <p>Nested: Hello Hong Kong!
13643 Proper conversion of text in external links
13645 language=sr variant=sr-ec
13647 http://www.google.com
13648 gopher://www.google.com
13649 [http://www.google.com http://www.google.com]
13650 [gopher://www.google.com gopher://www.google.com]
13651 [https://www.google.com irc://www.google.com]
13652 [ftp://www.google.com www.google.com/ftp://dir]
13653 [//www.google.com www.google.com]
13655 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13656 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13657 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13658 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13659 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13660 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13661 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13666 Do not convert roman numbers to language variants
13668 language=sr variant=sr-ec
13672 <p>Фридрих IV је цар.
13677 Unclosed language converter markup "-{"
13688 Don't convert raw rule "-{R|=>}-" to "=>"
13705 Bug 529: Uncovered bullet
13715 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13716 # Templates in Wikipedia rely on this behavior, as tidy has always been
13717 # enabled there. These tests are normally run *without* tidy, so specify the
13718 # full output here.
13719 # To test realistic parsing behavior, apply a tidy-like transformation to both
13720 # the expected output and your parser's output.
13722 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13724 ******* Foo {{bullet}}
13726 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13739 Bug 529: Uncovered table already at line-start
13762 Bug 529: Uncovered bullet in parser function result
13764 * Foo {{lc:{{bullet}} }}
13773 Bug 5678: Double-parsed template argument
13775 {{lc:{{{1}}}|hello}}
13782 Bug 5678: Double-parsed template invocation
13784 {{lc:{{paramtest {{!}} param = hello }} }}
13786 <p>{{paramtest | param = hello }}
13791 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13794 title=[[Main Page]]
13796 {{PRVNÍVELKÉ:ěščř}}
13797 {{prvnívelké:ěščř}}
13817 Morwen/13: Unclosed link followed by heading
13824 <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>
13829 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13836 <h1><span class="mw-headline" id="heading">heading</span></h1>
13841 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13848 <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>
13863 Paragraphs inside divs (no extra line breaks)
13875 Paragraphs inside divs (extra line break on open)
13890 Paragraphs inside divs (extra line break on close)
13905 Paragraphs inside divs (extra line break on open and close)
13922 Nesting tags, paragraphs on lines which begin with <div>
13926 <div></div><strong>A
13935 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13937 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13939 <blockquote>Line one
13941 Line two</blockquote>
13943 <blockquote>Line one
13944 Line two</blockquote>
13949 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13954 Line two</blockquote>
13959 Line two</blockquote>
13964 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13966 <blockquote>Line one
13971 <blockquote>Line one
13979 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13996 Paragraphs inside blockquotes/divs (no extra line breaks)
13998 <blockquote><div>Line one
14000 Line two</div></blockquote>
14002 <blockquote><div>Line one
14003 Line two</div></blockquote>
14008 Paragraphs inside blockquotes/divs (extra line break on open)
14013 Line two</div></blockquote>
14018 Line two</div></blockquote>
14023 Paragraphs inside blockquotes/divs (extra line break on close)
14025 <blockquote><div>Line one
14028 </div></blockquote>
14030 <blockquote><div>Line one
14033 </div></blockquote>
14038 Paragraphs inside blockquotes/divs (extra line break on open and close)
14044 </div></blockquote>
14050 </div></blockquote>
14055 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
14057 wgLinkHolderBatchSize=0
14063 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
14064 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
14065 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
14070 Free external link invading image caption
14072 [[Image:Foobar.jpg|thumb|http://x|hello]]
14074 <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>
14079 Bug 15196: localised external link numbers
14083 [http://en.wikipedia.org/]
14085 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
14090 Multibyte character in padleft
14092 {{padleft:-Hello|7|Æ}}
14099 Multibyte character in padright
14101 {{padright:Hello-|7|Æ}}
14108 formatdate parser function
14110 {{#formatdate:2009-03-24}}
14112 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
14117 formatdate parser function, with default format
14119 {{#formatdate:2009-03-24|mdy}}
14121 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
14126 Spacing of numbers in formatted dates
14128 {{#formatdate:January 15}}
14130 <p><span class="mw-formatted-date" title="01-15">January 15</span>
14135 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
14137 language=nl title=[[MediaWiki:Common.css]]
14139 {{#formatdate:2009-03-24|dmy}}
14141 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
14154 Edit comment with link
14158 I like the [[Main Page]] a lot
14160 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
14164 Edit comment with link and link text
14168 I like the [[Main Page|best pages]] a lot
14170 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14174 Edit comment with link and link text with suffix
14178 I like the [[Main Page|best page]]s a lot
14180 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14184 Edit comment with section link (non-local, eg in history list)
14186 comment title=[[Main Page]]
14188 /* External links */ removed bogus entries
14190 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14194 Edit comment with section link and text before it (non-local, eg in history list)
14196 comment title=[[Main Page]]
14198 pre-comment text /* External links */ removed bogus entries
14200 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>
14204 Edit comment with section link (local, eg in diff view)
14206 comment local title=[[Main Page]]
14208 /* External links */ removed bogus entries
14210 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14214 Edit comment with subpage link (bug 14080)
14218 title=[[Subpage test]]
14220 Poked at a [[/subpage]] here...
14222 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
14226 Edit comment with subpage link and link text (bug 14080)
14230 title=[[Subpage test]]
14232 Poked at a [[/subpage|neat little page]] here...
14234 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
14238 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
14241 title=[[Subpage test]]
14243 Poked at a [[/subpage]] here...
14245 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
14249 Edit comment with bare anchor link (local, as on diff)
14253 title=[[Main Page]]
14257 <a href="#section">#section</a>
14261 Edit comment with bare anchor link (non-local, as on history)
14264 title=[[Main Page]]
14268 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
14272 Anchor starting with underscore
14276 <p><a href="#_ref">One</a>
14281 Id starting with underscore
14283 <div id="_ref"></div>
14285 <div id="_ref"></div>
14290 Space normalisation on autocomment (bug 22784)
14293 title=[[Main Page]]
14295 /* __hello__world__ */
14297 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
14301 percent-encoding and + signs in comments (Bug 26410)
14305 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
14307 <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>
14311 Bad images - basic functionality
14320 Bad images - bug 16039: text after bad image disappears
14334 Verify that displaytitle works (bug #22501) no displaytitle
14338 wgAllowDisplayTitle=true
14339 wgRestrictDisplayTitle=false
14341 this is not the the title
14344 <p>this is not the the title
14349 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
14354 wgAllowDisplayTitle=true
14355 wgRestrictDisplayTitle=false
14357 this is not the the title
14358 {{DISPLAYTITLE:whatever}}
14361 <p>this is not the the title
14366 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
14371 wgAllowDisplayTitle=true
14372 wgRestrictDisplayTitle=true
14374 this is not the the title
14375 {{DISPLAYTITLE:whatever}}
14378 <p>this is not the the title
14383 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
14388 wgAllowDisplayTitle=true
14389 wgRestrictDisplayTitle=true
14391 this is not the the title
14392 {{DISPLAYTITLE:screen}}
14395 <p>this is not the the title
14400 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
14405 wgAllowDisplayTitle=false
14407 this is not the the title
14408 {{DISPLAYTITLE:screen}}
14411 <p>this is not the the title
14412 <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>
14417 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
14422 wgAllowDisplayTitle=false
14424 this is not the the title
14427 <p>this is not the the title
14432 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
14437 wgAllowDisplayTitle=true
14438 wgRestrictDisplayTitle=true
14440 this is not the the title
14441 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
14443 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
14444 <p>this is not the the title
14449 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
14454 wgAllowDisplayTitle=true
14455 wgRestrictDisplayTitle=true
14457 this is not the the title
14458 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
14460 <span style="color: red;">s</span>creen
14461 <p>this is not the the title
14466 preload: check <noinclude> and <includeonly>
14470 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
14476 preload: check <onlyinclude>
14480 Goodbye <onlyinclude>Hello world</onlyinclude>
14486 preload: can pass tags through if we want to
14490 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
14492 <includeonly>Hello world</includeonly>
14496 preload: check that it doesn't try to do tricks
14500 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14502 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14506 Play a bit with r67090 and bug 3158
14510 <div style="width:50% !important"> </div>
14511 <div style="width:50% !important"> </div>
14512 <div style="width:50% !important"> </div>
14513 <div style="border : solid;"> </div>
14515 <div style="width:50% !important"> </div>
14516 <div style="width:50% !important"> </div>
14517 <div style="width:50% !important"> </div>
14518 <div style="border : solid;"> </div>
14523 HTML5 data attributes
14525 <span data-foo="bar">Baz</span>
14526 <p data-abc-def_hij="">Quuz</p>
14528 <p><span data-foo="bar">Baz</span>
14530 <p data-abc-def_hij="">Quuz</p>
14535 percent-encoding and + signs in internal links (Bug 26410)
14537 [[User:+%]] [[Page+title%]]
14538 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14539 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14540 [[%33%45]] [[%33%45+]]
14542 <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>
14543 <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>
14544 <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>
14545 <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>
14550 Special characters in embedded file links (bug 27679)
14552 [[File:Contains & ampersand.jpg]]
14553 [[File:Does not exist.jpg|Title with & ampersand]]
14555 <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>
14556 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14562 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14564 Text's been normalized?
14566 <p>Text's been normalized?
14571 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14573 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14575 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14580 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14582 [http://www.example.org/ ideograms]
14584 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14589 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14591 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14593 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14617 Bug 31098 Template which includes system messages which includes the template
14621 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14622 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14627 Bug31490 Turkish: ucfirst 'blah'
14638 Bug31490 Turkish: ucfirst 'ix'
14649 Bug31490 Turkish: lcfirst 'BLAH'
14660 Bug31490 Turkish: ucfırst (with a dotless i)
14666 <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>
14671 Bug31490 ucfırst (with a dotless i) with English language
14677 <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>
14682 Bug 26375: TOC with italics
14684 title=[[Main Page]]
14687 == ''Lost'' episodes ==
14689 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14691 <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>
14694 <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>
14699 Bug 26375: TOC with bold
14701 title=[[Main Page]]
14704 == '''should be bold''' then normal text ==
14706 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14708 <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>
14711 <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>
14716 Bug 33845: Headings become cursive in TOC when they contain an image
14718 title=[[Main Page]]
14721 == Image [[Image:foobar.jpg]] ==
14723 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14725 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14728 <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>
14733 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14735 title=[[Main Page]]
14738 == <blockquote>Quote</blockquote> ==
14740 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14742 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14745 <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>
14750 Unclosed tags in TOC
14752 title=[[Main Page]]
14756 <small>Hanc marginis exiguitas non caperet.</small>
14759 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14761 <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>
14764 <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>
14765 <p><small>Hanc marginis exiguitas non caperet.</small>
14771 Multiple tags in TOC
14774 == <i>Foo</i> <b>Bar</b> ==
14776 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14778 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14780 <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>
14781 <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>
14784 <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>
14785 <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>
14790 Tags with parameters in TOC
14793 == <sup class="in-h2">Hello</sup> ==
14795 == <sup class="a > b">Evilbye</sup> ==
14797 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14799 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14800 <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>
14803 <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>
14804 <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>
14809 span tags with directionality in TOC
14812 == <span dir="ltr">C++</span> ==
14814 == <span dir="rtl">זבנג!</span> ==
14816 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14818 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14820 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14822 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14824 <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>
14825 <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>
14826 <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>
14827 <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>
14828 <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>
14831 <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>
14832 <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>
14833 <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>
14834 <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>
14835 <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>
14842 == {{int:headline_sample}} ==
14846 Bug 32057: Title needed when expanding <h> nodes.
14848 title=[[Main Page]]
14852 <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>
14857 Strip marker in urlencode
14859 {{urlencode:x<nowiki/>y}}
14860 {{urlencode:x<nowiki/>y|wiki}}
14861 {{urlencode:x<nowiki/>y|path}}
14888 Strip marker in formatNum
14890 {{formatnum:1<nowiki/>2}}
14891 {{formatnum:1<nowiki/>2|R}}
14899 Check noCommafy in formatNum
14903 {{formatnum:123456.78}}
14904 {{formatnum:123456.78|NOSEP}}
14912 Strip marker in grammar
14916 {{grammar:elative|foo<nowiki/>bar}}
14923 Strip marker in padleft
14925 {{padleft:|2|x<nowiki/>y}}
14932 Strip marker in padright
14934 {{padright:|2|x<nowiki/>y}}
14941 Strip marker in anchorencode
14943 {{anchorencode:x<nowiki/>y}}
14950 nowiki inside link inside heading (bug 18295)
14952 ==[[foo|x<nowiki>y</nowiki>z]]==
14954 <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>
14959 new support for bdi element (bug 31817)
14961 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14963 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14968 Ignore pipe between table row attributes
14972 |- id=foo | style='color: red'
14980 <tr id="foo" style="color: red">
14987 Gallery override link with WikiLink (bug 34852)
14990 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14993 <ul class="gallery">
14994 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14995 <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>
14996 <div class="gallerytext">
15006 Gallery override link with absolute external link (bug 34852)
15009 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
15012 <ul class="gallery">
15013 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15014 <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>
15015 <div class="gallerytext">
15025 Gallery override link with malicious javascript (bug 34852)
15028 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
15031 <ul class="gallery">
15032 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15033 <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>
15034 <div class="gallerytext">
15044 Gallery with invalid title as link (bug 43964)
15047 File:foobar.jpg|link=<
15050 <ul class="gallery">
15051 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15052 <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>
15053 <div class="gallerytext">
15061 Language parser function
15070 Padleft and padright as substr
15072 {{padleft:|3|abcde}}
15073 {{padright:|3|abcde}}
15081 Special parser function
15083 {{#special:RandomPage}}
15084 {{#special:BaDtItLe}}
15085 {{#special:Foobar}}
15094 Bug 34939 - Case insensitive link parsing ([HttP://])
15096 [HttP://MediaWiki.Org/]
15098 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
15103 Bug 34939 - Case insensitive link parsing ([HttP:// title])
15105 [HttP://MediaWiki.Org/ MediaWiki]
15107 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
15112 Bug 34939 - Case insensitive link parsing (HttP://)
15114 HttP://MediaWiki.Org/
15116 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
15122 ### Parsoids-specific tests
15123 ### Parsoid-PHP parser incompatibilities
15126 1. SOL-sensitive wikitext tokens as template-args
15128 parsoid=wt2html,wt2wt
15134 <span about="#mwt1" typeof="mw:Transclusion">
15135 </span><ul about="#mwt1"><li>a</li></ul>
15136 <span about="#mwt2" typeof="mw:Transclusion">
15137 </span><ol about="#mwt2"><li>a</li></ol>
15138 <span about="#mwt3" typeof="mw:Transclusion">
15139 </span><dl about="#mwt3"><dd>a</dd></dl>
15142 #### ----------------------------------------------------------------
15143 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
15144 #### tags. Parsoid's output for these tags differs from that of the
15146 #### ----------------------------------------------------------------
15149 Ref: 1. ref-location should be replaced with an index span
15154 B <ref name="x">foo</ref>
15157 <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>
15158 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>
15159 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>
15163 Ref: 2. ref-tags with identical names should all get the same index
15167 A <ref name="x">foo</ref>
15170 <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>
15171 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>
15175 Ref: 3. spaces in ref-names should be ignored
15179 A <ref name="x">foo</ref>
15180 B <ref name=" x " />
15183 <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>
15184 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>
15185 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>
15189 Ref: 4. 'constructor' should be accepted as a valid ref-name
15190 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
15194 A <ref name="constructor">foo</ref>
15196 <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>
15200 Ref: 5. body should accept generic wikitext
15205 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
15210 <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>
15212 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15213 <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>
15218 Ref: 6. indent-pres should not be output in ref-body
15230 <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>
15232 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15233 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15240 Ref: 6. No p-wrapping in ref-body
15259 <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>
15261 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15262 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15276 Ref: 8. transclusion wikitext has lower precedence
15280 A <ref> foo {{echo|</ref> B C}}
15284 <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>
15286 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15287 <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>
15291 Ref: 9. unclosed comments should not leak out of ref-body
15295 A <ref> foo <!--</ref> B C
15299 <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>
15301 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15302 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
15306 Ref: 10. Unclosed HTML tags should not leak out of ref-body
15310 A <ref> <b> foo </ref> B C
15314 <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>
15316 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15317 <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>
15321 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
15328 <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
15329 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>
15333 Ref: 12. ref-tags act as trailing newline migration barrier
15337 <!--the newline at the end of this line moves out of the p-tag-->a
15339 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
15344 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
15347 <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>
15348 <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>
15355 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
15363 <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
15364 <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>
15368 Ref: 14. A nested ref-tag should be emitted as plain text
15372 <ref>foo <ref>bar</ref> baz</ref>
15376 <span about="#mwt1" class="reference" data-mw="{"name":"ref","body":{"html":"foo &lt;ref&gt;bar&lt;/ref&gt; baz"},"attrs":{}}" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
15378 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
15379 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <ref>bar</ref> baz</li></ol>
15383 Ref: 15. ref-tags with identical names should get identical indexes
15387 A1 <ref name="a">foo</ref> A2 <ref name="a" />
15388 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
15392 <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>
15393 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>
15395 <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>
15399 References: 1. references tag without any refs should be handled properly
15405 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
15409 References: 2. references tag with group only outputs references from that group
15413 A <ref group="a">foo</ref>
15414 B <ref group="b">bar</ref>
15416 <references group='a' />
15418 <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>
15419 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>
15421 <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>
15425 References: 3. ref list should be cleared after processing references
15437 <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>
15439 <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>
15441 <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>
15443 <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>
15447 References: 4. only referenced group should be cleared after processing references
15451 A <ref group="a">afoo</ref>
15454 <references group="a"/>
15460 <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>
15461 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>
15463 <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>
15465 <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>
15467 <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>
15471 References: 5. ref tags in references should be processed while ignoring all other content
15476 B <ref name="b">bar</ref>
15479 <ref name="a">foo</ref>
15480 This should just get lost.
15483 <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>
15484 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>
15486 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost.","html":"<span about=\"#mwt8\" class=\"reference\" data-mw=\"{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;a&quot;}}\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-a-1\">[1]</a></span>"},"attrs":{}}'><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>
15490 References: 6. <references /> from a transclusion
15494 {{echo|<references />}}
15496 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15500 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
15504 A <ref>foo bar for a</ref>
15510 <ref name="b">foo</ref>
15513 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo bar for a"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
15514 B <span about="#mwt4" 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></p>
15516 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo bar for a</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> </li></ol>
15518 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"b\">foo</ref>","html":"\n<span about=\"#mwt10\" class=\"reference\" data-mw=\"{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;b&quot;}}\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-b-1\">[1]</a></span>\n"},"attrs":{}}'><li about="#cite_note-b-1" id="cite_note-b-1"><span rel="mw:referencedBy">↑</span> foo</li></ol>
15522 #### ----------------------------------------------------------------
15523 #### The following section of tests are primarily to test
15524 #### wikitext escaping capabilities of Parsoid. Given that
15525 #### escaping can be done any number of ways, the wikitext (input)
15526 #### is always adjusted to reflect how Parsoid adds nowiki
15529 #### We are marking several tests as parsoid-only since the
15530 #### HTML in the result section is different from what the
15531 #### PHP parser generates for it.
15532 #### ----------------------------------------------------------------
15535 #### --------------- Headings ---------------
15537 #### 1. Nested inside html <h1>=foo=</h1>
15538 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15539 #### 3. Nested inside html with wikitext split by html tags
15540 #### 4. No escape needed
15541 #### 5. Empty headings <h1></h1>
15542 #### 6. Heading chars in SOL context
15543 #### ----------------------------------------
15545 Headings: 0. Unnested
15549 <nowiki>=foo=</nowiki>
15551 <nowiki> =foo= </nowiki>
15553 <nowiki>=foo=</nowiki>
15555 =foo''a''<nowiki>=</nowiki>
15557 <p><span typeof="mw:Nowiki">=foo=</span></p>
15559 <p><span typeof="mw:Nowiki"> =foo= </span>
15561 <span typeof="mw:Nowiki">=foo=</span></p>
15563 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15567 Headings: 1. Nested inside html
15571 =<nowiki>=foo=</nowiki>=
15573 ==<nowiki>=foo=</nowiki>==
15575 ===<nowiki>=foo=</nowiki>===
15577 ====<nowiki>=foo=</nowiki>====
15579 =====<nowiki>=foo=</nowiki>=====
15581 ======<nowiki>=foo=</nowiki>======
15583 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15584 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15585 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15586 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15587 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15588 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15592 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15597 <nowiki>*</nowiki>bar
15603 <nowiki>=bar=</nowiki>
15611 Headings: 3. Nested inside html with wikitext split by html tags
15615 =='''bold'''<nowiki>foo=</nowiki>=
15617 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15621 Headings: 4a. No escaping needed (testing just h1 and h2)
15639 =<nowiki>=</nowiki>=
15647 <h1><i>=</i>foo=</h1>
15648 <h1><span typeof="mw:Nowiki">=</span></h1>
15652 Headings: 4b. No escaping needed (inside p-tags)
15667 Headings: 5. Empty headings
15679 =====<nowiki/>=====
15681 ======<nowiki/>======
15692 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15696 <nowiki>=a=</nowiki>
15698 <nowiki>=a=</nowiki>
15700 <nowiki>=a=</nowiki>
15702 <nowiki>=a=</nowiki>
15711 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15739 Headings: 6c. Heading chars in SOL context (leading newline break)
15744 <nowiki>=b=</nowiki>
15751 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15755 <!--c0--><nowiki>=a=</nowiki>
15757 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
15759 <p><!--c0-->=a=</p>
15760 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15764 Headings: 6d. Heading chars in SOL context (No escaping needed)
15773 #### --------------- Lists ---------------
15774 #### 0. Outside nests (*foo, etc.)
15775 #### 1. Nested inside html <ul><li>*foo</li></ul>
15776 #### 2. Inside definition lists
15777 #### 3. Only bullets at start should be escaped
15778 #### 4. No escapes needed
15779 #### 5. No unnecessary escapes
15780 #### 6. Escape bullets in SOL position
15781 #### 7. Escape bullets in a multi-line context
15782 #### ----------------------------------------
15785 Lists: 0. Outside nests
15787 <nowiki>*</nowiki>foo
15789 <nowiki>#</nowiki>foo
15797 Lists: 1. Nested inside html
15799 *<nowiki>*foo</nowiki>
15801 *<nowiki>#foo</nowiki>
15803 *<nowiki>:foo</nowiki>
15805 *<nowiki>;foo</nowiki>
15807 #<nowiki>*foo</nowiki>
15809 #<nowiki>#foo</nowiki>
15811 #<nowiki>:foo</nowiki>
15813 #<nowiki>;foo</nowiki>
15835 Lists: 2. Inside definition lists
15837 ;<nowiki>;foo</nowiki>
15839 ;<nowiki>:foo</nowiki>
15841 ;<nowiki>:foo</nowiki>
15844 :<nowiki>:foo</nowiki>
15859 Lists: 3. Only bullets at start of text should be escaped
15861 *<nowiki>*foo*bar</nowiki>
15863 *<nowiki>*foo</nowiki>''it''*bar
15867 <ul><li>*foo<i>it</i>*bar
15873 Lists: 4. No escapes needed
15885 <ul><li><i>foo</i>*bar
15887 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15892 Lists: 5. No unnecessary escapes
15894 * bar <span><nowiki>[[foo]]</nowiki></span>
15896 *=bar <span><nowiki>[[foo]]</nowiki></span>
15898 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15900 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15902 *=bar <span>foo]]</span>=
15906 <ul><li> bar <span>[[foo]]</span>
15908 <ul><li>=bar <span>[[foo]]</span>
15910 <ul><li>[[bar <span>[[foo]]</span>
15912 <ul><li>]]bar <span>[[foo]]</span>
15914 <ul><li>=bar <span>foo]]</span>=
15916 <ul><li> <s></s>: a
15922 Lists: 6. Escape bullets in SOL position
15926 <!--cmt--><nowiki>*foo</nowiki>
15928 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15932 Lists: 7. Escape bullets in a multi-line context
15935 <nowiki>*</nowiki>b
15942 #### --------------- HRs ---------------
15943 #### 1. Single line
15944 #### -----------------------------------
15947 HRs: 1. Single line
15951 ----<nowiki>----</nowiki>
15955 <hr><span typeof="mw:Nowiki">----</span>
15960 #### --------------- Tables ---------------
15961 #### 1a. Simple example
15962 #### 1b. No escaping needed (!foo)
15963 #### 1c. No escaping needed (|foo)
15964 #### 1d. No escaping needed (|}foo)
15966 #### 2a. Nested in td (<td>foo|bar</td>)
15967 #### 2b. Nested in td (<td>foo||bar</td>)
15968 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15970 #### 3a. Nested in th (<th>foo!bar</th>)
15971 #### 3b. Nested in th (<th>foo!!bar</th>)
15972 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15976 #### 4c. No escaping needed
15977 #### --------------------------------------
15980 Tables: 1a. Simple example
15991 Tables: 1b. No escaping needed
16000 Tables: 1c. No escaping needed
16009 Tables: 1d. No escaping needed
16018 Tables: 2a. Nested in td
16023 |<nowiki>foo|bar</nowiki>
16027 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
16031 Tables: 2b. Nested in td
16036 |<nowiki>foo||bar</nowiki>
16037 |''it''<nowiki>foo||bar</nowiki>
16041 <td><span typeof="mw:Nowiki">foo||bar</span></td>
16042 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
16046 Tables: 2c. Nested in td -- no escaping needed
16054 <table><tbody><tr><td>foo!!bar
16055 </td></tr></tbody></table>
16060 Tables: 3a. Nested in th
16068 <table><tbody><tr><th>foo!bar
16069 </th></tr></tbody></table>
16074 Tables: 3b. Nested in th
16079 !<nowiki>foo!!bar</nowiki>
16083 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
16088 Tables: 3c. Nested in th -- no escaping needed
16093 !<nowiki>foo||bar</nowiki>
16097 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
16101 Tables: 4a. Escape -
16109 |<nowiki>-bar</nowiki>
16113 <tr><th>-bar</th></tr>
16115 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
16119 Tables: 4b. Escape +
16127 |<nowiki>+bar</nowiki>
16131 <tr><th>+bar</th></tr>
16133 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
16137 Tables: 4c. No escaping needed
16156 <tr><td>foo-bar</td><td>foo+bar</td></tr>
16157 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
16165 ### SSS FIXME: Disabled right now because accurate html2wt
16166 ### on this snippet requires data-parsoid flags that we've
16167 ### stripped out of these tests. We should scheme how we
16168 ### we want to handle these kind of tests that require
16169 ### data-parsoid flags for accurate html2wt serialization
16172 Tables: 4d. No escaping needed
16190 #### --------------- Links ----------------
16191 #### 1. Quote marks in link text
16192 #### 2. Wikilinks: Escapes needed
16193 #### 3. Wikilinks: No escapes needed
16194 #### 4. Extlinks: Escapes needed
16195 #### 5. Extlinks: No escapes needed
16196 #### --------------------------------------
16198 Links 1. Quote marks in link text
16202 [[Foo|Foo<nowiki>''boo''</nowiki>]]
16204 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
16208 Links 2. WikiLinks: Escapes needed
16212 [[Foo|<nowiki>[Foobar]</nowiki>]]
16213 [[Foo|<nowiki>Foobar]</nowiki>]]
16214 [[Foo|x [Foobar] x]]
16215 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
16216 [[Foo|<nowiki>[[Bar]]</nowiki>]]
16217 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
16218 [[Foo|<nowiki>|Bar</nowiki>]]
16219 [[Foo|<nowiki>]]bar</nowiki>]]
16220 [[Foo|<nowiki>[[bar</nowiki>]]
16221 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
16223 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
16224 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
16225 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
16226 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
16227 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
16228 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
16229 <a href="Foo" rel="mw:WikiLink">|Bar</a>
16230 <a href="Foo" rel="mw:WikiLink">]]bar</a>
16231 <a href="Foo" rel="mw:WikiLink">[[bar</a>
16232 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
16236 Links 3. WikiLinks: No escapes needed
16243 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
16244 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
16248 Links 4. ExtLinks: Escapes needed
16252 [http://google.com <nowiki>[google]</nowiki>]
16253 [http://google.com <nowiki>google]</nowiki>]
16255 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
16256 <a href="http://google.com" rel="mw:ExtLink">google]</a>
16260 Links 5. ExtLinks: No escapes needed
16264 [http://google.com [google]
16266 <a href="http://google.com" rel="mw:ExtLink">[google</a>
16269 #### --------------- Quotes ---------------
16270 #### 1. Quotes inside <b> and <i>
16271 #### 2. Link fragments separated by <i> and <b> tags
16272 #### 3. Link fragments inside <i> and <b>
16273 #### 4. No escaping needed
16274 #### --------------------------------------
16276 1. Quotes inside <b> and <i>
16278 parsoid=html2wt,wt2wt
16280 ''<nowiki>'foo'</nowiki>''
16281 ''<nowiki>''foo''</nowiki>''
16282 ''<nowiki>'''foo'''</nowiki>''
16284 '''<nowiki>'foo'</nowiki>'''
16285 '''<nowiki>''foo''</nowiki>'''
16286 '''<nowiki>'''foo'''</nowiki>'''
16287 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
16288 '''foo'''<nowiki/>'s
16291 '<nowiki/>''foo''<nowiki/>'
16293 '''foo'''<nowiki/>'
16294 '<nowiki/>'''foo'''<nowiki/>'
16303 <b>foo'<i>bar'</i>baz</b>
16314 2. Link fragments separated by <i> and <b> tags
16316 [[''foo''<nowiki>hello]]</nowiki>
16318 [['''foo'''<nowiki>hello]]</nowiki>
16320 <p>[[<i>foo</i>hello]]
16321 </p><p>[[<b>foo</b>hello]]
16326 3. Link fragments inside <i> and <b>
16327 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
16328 this is one of the shortcomings of this format)
16330 ''[[foo''<nowiki>]]</nowiki>
16332 '''[[foo'''<nowiki>]]</nowiki>
16335 </p><p><b>[[foo</b>]]
16340 4. No escaping needed
16342 '<span>''bar''</span>'
16343 '<span>'''bar'''</span>'
16345 <p>'<span><i>bar</i></span>'
16346 '<span><b>bar</b></span>'
16350 #### ----------- Paragraphs ---------------
16351 #### 1. No unnecessary escapes
16352 #### --------------------------------------
16355 1. No unnecessary escapes
16357 bar <span><nowiki>[[foo]]</nowiki></span>
16359 =bar <span><nowiki>[[foo]]</nowiki></span>
16361 [[bar <span><nowiki>[[foo]]</nowiki></span>
16363 ]]bar <span><nowiki>[[foo]]</nowiki></span>
16365 =bar <span>foo]]</span><nowiki>=</nowiki>
16367 <p>bar <span>[[foo]]</span>
16368 </p><p>=bar <span>[[foo]]</span>
16369 </p><p>[[bar <span>[[foo]]</span>
16370 </p><p>]]bar <span>[[foo]]</span>
16371 </p><p>=bar <span>foo]]</span>=
16375 #### ----------------------- PRE --------------------------
16376 #### 1. Leading whitespace in SOL context should be escaped
16377 #### ------------------------------------------------------
16379 1. Leading whitespace in SOL context should be escaped
16383 <nowiki> </nowiki>a
16385 <nowiki> </nowiki> a
16387 <nowiki> </nowiki>a(tab)
16389 <nowiki> </nowiki> a
16391 <nowiki> </nowiki> a
16394 <nowiki> </nowiki>b
16397 <nowiki> </nowiki>b
16400 <nowiki> </nowiki> b
16406 <p><!--cmt--> a</p>
16415 #### --------------- HTML tags ---------------
16418 #### 3. multi-line html tag
16419 #### -----------------------------------------
16425 <a href="http://google.com">google</a>
16427 <a href="http://google.com">google</a>
16433 <nowiki><div>foo</div>
16434 <div style="color:red">foo</div></nowiki>
16436 <p><div>foo</div>
16437 <div style="color:red">foo</div>
16442 3. multi-line html tag
16457 <nowiki><ref>foo</ref></nowiki>
16459 <p><ref>foo</ref>
16463 #### --------------- Others ---------------
16467 <nowiki>foo</nowiki>
16469 <p><nowiki>foo</nowiki>
16473 ## The quote-char in the input is necessary for triggering the bug
16475 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
16477 parsoid=wt2wt,html2wt
16486 Tag-like HTML structures are passed through as text
16508 </p><p>1<d e>f
16513 # This was a bug in the PHP parser (see bug 17663 and its dups,
16514 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
16516 Tag names followed by punctuation should not be recognized as tags
16520 <p><s.ome> text
16525 HTML tag with necessary entities in attributes
16527 <span title="&amp;">foo</span>
16529 <p><span title="&amp;">foo</span>
16534 HTML tag with 'unnecessary' entity encoding in attributes
16536 <span title="&">foo</span>
16538 <p><span title="&">foo</span>
16543 HTML tag with broken attribute value quoting
16545 <span title="Hello world>Foo</span>
16547 <p><span>Foo</span>
16552 Parsoid-only: HTML tag with broken attribute value quoting
16556 <span title="Hello world>Foo</span>
16558 <p><span title="Hello world">Foo</span>
16563 Table with broken attribute value quoting
16566 | title="Hello world|Foo
16577 Table with broken attribute value quoting on consecutive lines
16580 | title="Hello world|Foo
16581 | style="color:red|Bar
16594 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16599 | title="Hello world|Foo
16600 | style="color:red|Bar
16605 <td title="Hello world">Foo
16606 </td><td style="color: red">Bar
16607 </td></tr></tbody></table>
16612 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16622 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16632 Accept empty td cell attribute
16635 | align="center" | foo || |
16640 <td align="center"> foo </td>
16647 Non-empty attributes in th-cells
16650 ! Foo !! style="color: red" | Bar
16656 <th style="color: red"> Bar
16662 Accept empty attributes in th-cells
16677 Empty table rows go away
16698 ### Parsoid-centric tests for testing RTing of inter-element separators
16699 ### Edge cases not tested by existing parser tests and specific to
16700 ### Parsoid-specific serialization strategies.
16704 RT-ed inter-element separators should be valid separators
16717 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16718 (Parsoid-only since PHP parser relies on Tidy for correct output)
16734 Empty TD followed by TD with tpl-generated attribute
16739 |{{echo|style='color:red'}}|foo
16753 Indented table with an empty td
16772 Empty TR followed by a template-generated TR
16773 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16775 parsoid=wt2html,wt2wt
16779 {{echo|<tr><td>foo</td></tr>}}
16785 <tr typeof="mw:Transclusion">
16786 <td>foo</td></tr></tbody></table>
16789 ## PHP and parsoid output differ for this, and since this is primarily
16790 ## for testing Parsoid's serializer, marking this Parsoid only
16792 Empty TR followed by mixed-ws-comment line should RT correctly
16806 <td> <!--c--></td></tr>
16808 <td><!--c--> <!--d--></td></tr>
16814 Multi-line image caption generated by templates with/without trailing newlines
16818 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16819 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16821 <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>
16822 <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>
16826 ## PHP emits broken html for this, and since this is primarily
16827 ## a Parsoid serializer test, marking this Parsoid only
16829 Improperly nested inline or quotes tags with whitespace in between
16833 <span> <s>x</span> </s>
16836 <p><span> <s>x</s></span><s> </s>
16837 <b> <i>x</i></b><i> </i>
16842 Encapsulate protected attributes from wt
16846 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
16848 <body><div data-x-typeof="mw:placeholder stuff" data-x-data-parsoid="weird" data-x-data-parsoid-other="no" data-x-about="time" data-x-rel="mw:true">foo</div>
16852 # -----------------------------------------------------------------
16853 # The following section of tests are primarily to spec requirements
16854 # around serialization of new/edited content.
16856 # All these tests are marked Parsoid html2wt and html2html only
16857 # ----------------------------------------------------------------
16860 Image: Modifying size of an image
16864 [[Image:Wiki.png|230x230px]]
16866 <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>
16870 Image: New block level image should have \n before and after
16875 [[File:Wiki.png|right|thumb|150x150px]]
16878 <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>
16882 Lists: Add space after bullets
16889 * <span> baz</span>
16894 <li><span> baz</span></li>
16899 Parsoid: Serialize positional parameters with = in them as named parameter
16905 <p about="#mwt1" typeof="mw:Transclusion"
16906 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
16910 # -----------------------------------------------------------------
16911 # End of section for Parsoid-only html2wt tests for serialization
16913 # -----------------------------------------------------------------
16920 Try for 100% code coverage