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 so 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-->
5455 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5457 parsoid=wt2html,wt2wt
5461 * {{echo|<li>templated li-hack}}
5462 * <!--foo--> <li> unsupported li-hack with preceding comments
5465 <li><li>not a li-hack
5471 <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>
5472 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5475 <li></li><li>not a li-hack
5481 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5492 <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>
5495 # ------------------------------------------------------------------------
5496 # The next set of tests are about Parsoid's ability to handle badly nested
5497 # tags (parse, minimize scope of fixup, and roundtrip back)
5498 # ------------------------------------------------------------------------
5501 Unbalanced closing block tags break a list
5502 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5512 </li></ul></div><div>
5518 Unbalanced closing non-block tags don't break a list
5519 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5529 <ul><li>a<span></span>
5535 Unclosed formatting tags that straddle lists are closed and reopened
5536 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5544 </li><li> <s> b </s>
5549 List embedded in a non-block tag
5550 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5558 <p><small></small></p>
5564 <p><small></small></p>
5571 # Note that the current date is hard-coded as
5572 # 1970-01-01T00:02:03Z (a Thursday)
5573 # when running parser tests. The timezone is also fixed to GMT, so
5574 # local date will be identical to current date.
5577 Magic Word: {{CURRENTDAY}}
5586 Magic Word: {{CURRENTDAY2}}
5595 Magic Word: {{CURRENTDAYNAME}}
5604 Magic Word: {{CURRENTDOW}}
5613 Magic Word: {{CURRENTMONTH}}
5622 Magic Word: {{CURRENTMONTH1}}
5631 Magic Word: {{CURRENTMONTHABBREV}}
5633 {{CURRENTMONTHABBREV}}
5640 Magic Word: {{CURRENTMONTHNAME}}
5642 {{CURRENTMONTHNAME}}
5649 Magic Word: {{CURRENTMONTHNAMEGEN}}
5651 {{CURRENTMONTHNAMEGEN}}
5658 Magic Word: {{CURRENTTIME}}
5667 Magic Word: {{CURRENTHOUR}}
5676 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5685 Magic Word: {{CURRENTYEAR}}
5694 Magic Word: {{CURRENTTIMESTAMP}}
5696 {{CURRENTTIMESTAMP}}
5703 Magic Words LOCAL (UTC)
5707 * {{LOCALMONTHNAME}}
5708 * {{LOCALMONTHNAMEGEN}}
5709 * {{LOCALMONTHABBREV}}
5718 * {{LOCALTIMESTAMP}}
5733 </li><li> 19700101000203
5739 Magic Word: {{FULLPAGENAME}}
5741 title=[[User:Ævar Arnfjörð Bjarmason]]
5745 <p>User:Ævar Arnfjörð Bjarmason
5750 Magic Word: {{FULLPAGENAMEE}}
5752 title=[[User:Ævar Arnfjörð Bjarmason]]
5756 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5761 Magic Word: {{TALKSPACE}}
5763 title=[[User:Ævar Arnfjörð Bjarmason]]
5772 Magic Word: {{TALKSPACE}}, same namespace
5774 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5783 Magic Word: {{TALKSPACE}}, main namespace
5785 title=[[Parser Test]]
5794 Magic Word: {{TALKSPACEE}}
5796 title=[[User:Ævar Arnfjörð Bjarmason]]
5805 Magic Word: {{SUBJECTSPACE}}
5807 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5816 Magic Word: {{SUBJECTSPACE}}, same namespace
5818 title=[[User:Ævar Arnfjörð Bjarmason]]
5827 Magic Word: {{SUBJECTSPACE}}, main namespace
5829 title=[[Parser Test]]
5837 Magic Word: {{SUBJECTSPACEE}}
5839 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5848 Magic Word: {{NAMESPACE}}
5850 title=[[User:Ævar Arnfjörð Bjarmason]]
5859 Magic Word: {{NAMESPACEE}}
5861 title=[[User:Ævar Arnfjörð Bjarmason]]
5870 Magic Word: {{NAMESPACENUMBER}}
5872 title=[[User:Ævar Arnfjörð Bjarmason]]
5881 Magic Word: {{SUBPAGENAME}}
5883 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
5892 Magic Word: {{SUBPAGENAMEE}}
5894 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
5903 Magic Word: {{ROOTPAGENAME}}
5905 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
5909 <p>Ævar Arnfjörð Bjarmason
5914 Magic Word: {{ROOTPAGENAMEE}}
5916 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
5920 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5925 Magic Word: {{BASEPAGENAME}}
5927 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
5931 <p>Ævar Arnfjörð Bjarmason
5936 Magic Word: {{BASEPAGENAMEE}}
5938 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
5942 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5947 Magic Word: {{TALKPAGENAME}}
5949 title=[[User:Ævar Arnfjörð Bjarmason]]
5953 <p>User talk:Ævar Arnfjörð Bjarmason
5958 Magic Word: {{TALKPAGENAMEE}}
5960 title=[[User:Ævar Arnfjörð Bjarmason]]
5964 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5969 Magic Word: {{SUBJECTPAGENAME}}
5971 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5975 <p>User:Ævar Arnfjörð Bjarmason
5980 Magic Word: {{SUBJECTPAGENAMEE}}
5982 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5984 {{SUBJECTPAGENAMEE}}
5986 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5991 Magic Word: {{NUMBEROFFILES}}
6000 Magic Word: {{PAGENAME}}
6002 title=[[User:Ævar Arnfjörð Bjarmason]]
6006 <p>Ævar Arnfjörð Bjarmason
6011 Magic Word: {{PAGENAME}} with metacharacters
6013 title=[['foo & bar = baz']]
6017 <p><i>'foo & bar = baz'</i>
6022 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6024 title=[[*RFC 1234 http://example.com/]]
6028 <p>*RFC 1234 http://example.com/
6033 Magic Word: {{PAGENAMEE}}
6035 title=[[User:Ævar Arnfjörð Bjarmason]]
6039 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6044 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6046 title=[[*RFC 1234 http://example.com/]]
6050 <p>*RFC_1234_http://example.com/
6055 Magic Word: {{REVISIONID}}
6064 Magic Word: {{SCRIPTPATH}}
6073 Magic Word: {{STYLEPATH}}
6082 Magic Word: {{SERVER}}
6086 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6091 Magic Word: {{SERVERNAME}}
6100 Magic Word: {{SITENAME}}
6109 Case-sensitive magic words, when cased differently, should just be template transclusions
6116 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6117 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6118 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6119 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6124 Case-insensitive magic words should still work with weird casing.
6134 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6139 Namespace 1 {{ns:1}}
6148 Namespace 1 {{ns:01}}
6157 Namespace 0 {{ns:0}} (bug 4783)
6165 Namespace 0 {{ns:00}} (bug 4783)
6173 Namespace -1 {{ns:-1}}
6182 Namespace User {{ns:User}}
6191 Namespace User talk {{ns:User_talk}}
6200 Namespace User talk {{ns:uSeR tAlK}}
6209 Namespace File {{ns:File}}
6218 Namespace File {{ns:Image}}
6227 Namespace (lang=de) Benutzer {{ns:User}}
6238 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
6244 <p>Benutzer Diskussion
6252 {{urlencode:hi world?!}}
6253 {{urlencode:hi world?!|WIKI}}
6254 {{urlencode:hi world?!|PATH}}
6255 {{urlencode:hi world?!|QUERY}}
6268 Magic links: internal link to RFC (bug 479)
6272 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
6277 Magic links: RFC (bug 479)
6281 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
6286 Magic links: ISBN (bug 1937)
6290 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
6295 Magic links: PMID incorrectly converts space to underscore
6299 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
6308 Nonexistent template
6310 {{thistemplatedoesnotexist}}
6312 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
6317 Template with invalid target containing tags
6319 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6321 <p>{{a<b>b</b>|foo|a=b|a = b}}
6326 Template with invalid target containing unclosed tag
6328 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6330 <p>{{a<b>|foo|a=b|a = b}}</b>
6337 This is a test template
6345 <p>This is a test template
6350 Template with explicit namespace
6354 <p>This is a test template
6362 This is a test template with parameter {{{param}}}
6368 {{paramtest|param=foo}}
6370 <p>This is a test template with parameter foo
6375 Template:paramtestnum
6381 Template unnamed parameter
6383 {{paramtestnum|Main Page|the main page}}
6385 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
6390 Template:templatesimple
6396 Template:templateredirect
6398 #redirect [[Template:templatesimple]]
6402 Template:templateasargtestnum
6408 Template:templateasargtest
6410 {{template{{{templ}}}}}
6414 Template:templateasargtest2
6420 Template with template name as unnamed argument
6422 {{templateasargtestnum|templatesimple}}
6429 Template with template name as argument
6431 {{templateasargtest|templ=simple}}
6438 Template with template name as argument (2)
6440 {{templateasargtest2|templ=templatesimple}}
6447 Template:templateasargtestdefault
6449 {{{{{templ|templatesimple}}}}}
6459 Template with default value
6461 {{templateasargtestdefault}}
6468 Template with default value (value set)
6470 {{templateasargtestdefault|templ=templa}}
6479 {{templateredirect}}
6486 Template with argument in separate line
6488 {{ templateasargtest |
6496 Template with complex template as argument
6499 param ={{ templateasargtest |
6502 <p>This is a test template with parameter (test)
6507 Template with thumb image (with link in description)
6510 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6512 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>
6517 Template:complextemplate
6519 {{{1}}} {{paramtest|
6520 param ={{{param}}}}}
6524 Template with complex arguments
6527 param ={{ templateasargtest |
6528 templ = simple }}|[[Template:complextemplate|link]]}}
6530 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6535 BUG 553: link with two variables in a piped link
6538 |[[{{{1}}}|{{{2}}}]]
6543 <td>[[{{{1}}}|{{{2}}}]]
6549 Magic variable as template parameter
6551 {{paramtest|param={{SITENAME}}}}
6553 <p>This is a test template with parameter MediaWiki
6560 [[{{{param}}}|link]]
6564 Template parameter as link source
6566 {{linktest|param=Main Page}}
6568 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6573 Template-generated attribute string (k='v')
6575 <span {{attr_str|id|v1}}>bar</span>
6577 <p><span id="v1">bar</span>
6584 including another template, {{paramtest|param={{{arg}}}}}
6588 Template passing argument to another template
6590 {{paramtest2|arg='hmm'}}
6592 <p>including another template, This is a test template with parameter 'hmm'
6603 Template as link source
6607 [[{{linktest2}}|Main Page]]
6609 [[{{linktest2}}]]Page
6611 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6612 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6613 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6631 Template infinite loop
6635 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6640 Template from main namespace
6659 BUG 529: Template with table, not included at beginning of line
6678 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6698 BUG 41: Template parameters shown as broken links
6707 Template with targets containing wikilinks
6711 {{[[{{echo|foo}}]]}}
6713 {{{{echo|[[foo}}]]}}
6715 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6716 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6724 ''None'' of '''this''' should be
6726 but rather passed unmodified
6730 # hmm, fix this or just deprecate msgnw and document its behavior?
6736 {{msgnw:MSGNW test}}
6738 <p>''None'' of '''this''' should be
6740 but rather passed unmodified
6748 {{int:youhavenewmessages|lots of money|not!}}
6750 <p>You have lots of money (not!).
6757 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6761 <includeonly> and <noinclude> being included
6772 <onlyinclude>Foo</onlyinclude>bar
6776 <onlyinclude> being included
6788 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6792 <onlyinclude> and <includeonly> being included
6801 <includeonly> and <noinclude> on a page
6803 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6810 Un-closed <noinclude>
6817 <onlyinclude> on a page
6819 <onlyinclude>Foo</onlyinclude>bar
6826 Un-closed <onlyinclude>
6833 Self-closed noinclude, includeonly, onlyinclude tags
6844 Unbalanced includeonly and noinclude tags
6848 |b</noinclude></noinclude>
6849 |c</noinclude></includeonly>
6850 |d</includeonly></includeonly>
6859 <td>c</includeonly>
6861 <td>d</includeonly></includeonly>
6867 Template:Includeonly section
6870 ==Includeonly section==
6876 Bug 6563: Edit link generation for section shown by <includeonly>
6878 {{includeonly section}}
6880 <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>
6881 <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>
6885 # Uses same input as the contents of [[Template:Includeonly section]]
6887 Bug 6563: Section extraction for section shown by <includeonly>
6892 ==Includeonly section==
6900 Bug 6563: Edit link generation for section suppressed by <includeonly>
6903 ==Includeonly section==
6907 <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>
6912 Bug 6563: Section extraction for section suppressed by <includeonly>
6917 ==Includeonly section==
6925 Un-closed <includeonly>
6931 # TODO: test with DOM fragment reuse!
6933 Parsoid: DOM fragment reuse
6935 parsoid=wt2wt,wt2html
6937 a{{echo|b<table></table>c}}d
6949 a<span typeof="mw:Transclusion">b</span>
6950 <table></table><span>c</span>d
6951 <p typeof="mw:Transclusion">ab</p>
6954 <p typeof="mw:Transclusion">a</p>
6960 ### <includeonly> and <noinclude> in attributes
6963 0. includeonly around the entire attribute
6965 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6967 <p><span id="v2">bar</span>
6972 1. includeonly in html attr key
6974 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6976 <p><span id="foo">bar</span>
6981 2. includeonly in html attr value
6983 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6984 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6986 <p><span id="v1">bar</span>
6987 <span id="v1">bar</span>
6992 3. includeonly in part of an attr value
6994 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6996 <p><span style="color:red;">bar</span>
7001 ### Testing parsing of templates where a template arg
7002 ### has the same name as the template itself.
7012 Templates: Template Name/Arg clash: 1. Use of positional param
7021 Templates: Template Name/Arg clash: 2. Use of named param
7030 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7039 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7043 Templates: 1. Simple use
7052 Templates: 2. Inside a block tag
7054 <div>{{echo|Foo}}</div>
7061 Templates: P-wrapping: 1a. Templates on consecutive lines
7072 Templates: P-wrapping: 1b. Templates on consecutive lines
7086 Templates: P-wrapping: 1c. Templates on consecutive lines
7089 {{echo|bar}} <div>baz</div>
7098 Templates: P-wrapping: 1d. Template preceded by comment-only line
7100 parsoid=wt2html,wt2wt
7106 <p typeof="mw:Transclusion">Bar
7111 Templates: Inline Text: 1. Multiple tmeplate uses
7113 {{echo|Foo}}bar{{echo|baz}}
7120 Templates: Inline Text: 2. Back-to-back template uses
7122 {{echo|Foo}}{{echo|bar}}
7129 Templates: Block Tags: 1. Multiple template uses
7131 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
7133 <div>Foo</div><div>bar</div><div>baz</div>
7138 Templates: Block Tags: 2. Back-to-back template uses
7140 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
7142 <div>Foo</div><div>bar</div>
7147 Templates: Links: 1. Simple example
7149 {{echo|[[Foo|bar]]}}
7151 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7156 Templates: Links: 2. Generation of link href
7158 [[{{echo|Foo}}|bar]]
7160 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7165 Templates: Links: 3. Generation of part of a link href
7167 [[Fo{{echo|o}}|bar]]
7171 [[Foo{{echo|bar}}baz]]
7173 [[Foo{{echo|bar}}|bar]]
7175 [[:Foo{{echo|bar}}]]
7177 [[:Foo{{echo|bar}}|bar]]
7179 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7180 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7181 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
7182 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7183 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7184 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7189 Templates: Links: 4. Multiple templates generating link href
7191 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
7193 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7198 Templates: Links: 5. Generation of link text
7200 [[Foo|{{echo|bar}}]]
7202 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7207 Templates: Links: 5. Nested templates (only outermost template should be marked)
7209 {{echo|[[{{echo|Foo}}|bar]]}}
7211 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7216 Templates: HTML Tag: 1. Generation of HTML attr. key
7218 <div {{echo|style}}="color:red;">foo</div>
7220 <div style="color:red;">foo</div>
7225 Templates: HTML Tag: 2. Generation of HTML attr. value
7227 <div style={{echo|'color:red;'}}>foo</div>
7229 <div style="color:red;">foo</div>
7234 Templates: HTML Tag: 3. Generation of HTML attr key and value
7236 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
7238 <div style="color:red;">foo</div>
7243 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
7245 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
7247 <div title="This is a long title with just one piece templated">foo</div>
7252 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
7254 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
7256 <div title="This is a long title with just one piece templated">foo</div>
7261 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
7263 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
7265 <div title="This is a long title with just one piece templated">foo</div>
7270 Templates: HTML Tag: 7. Generation of partial attribute key string
7272 <div st{{echo|yle}}="color:red;">foo</div>
7274 <div style="color:red;">foo</div>
7279 Templates: HTML Tables: 1. Generating start of a HTML table
7281 {{echo|<table><tr><td>foo</td>}}</tr></table>
7283 <table><tr><td>foo</td></tr></table>
7288 Templates: HTML Tables: 2a. Generating middle of a HTML table
7290 <table><tr>{{echo|<td>foo</td>}}</tr></table>
7292 <table><tr><td>foo</td></tr></table>
7297 Templates: HTML Tables: 2b. Generating middle of a HTML table
7299 <table>{{echo|<tr><td>foo</td></tr>}}</table>
7301 <table><tr><td>foo</td></tr></table>
7306 Templates: HTML Tables: 3. Generating end of a HTML table
7308 <table><tr>{{echo|<td>foo</td></tr></table>}}
7310 <table><tr><td>foo</td></tr></table>
7315 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
7317 {{echo|<table>}}<tr><td>foo</td></tr></table>
7319 <table><tr><td>foo</td></tr></table>
7324 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
7326 <table>{{echo|<tr>}}<td>foo</td></tr></table>
7328 <table><tr><td>foo</td></tr></table>
7333 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
7335 <table><tr>{{echo|<td>}}foo</td></tr></table>
7337 <table><tr><td>foo</td></tr></table>
7342 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
7344 <table><tr><td>foo{{echo|</td>}}</tr></table>
7346 <table><tr><td>foo</td></tr></table>
7351 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
7353 <table><tr><td>foo</td>{{echo|</tr>}}</table>
7355 <table><tr><td>foo</td></tr></table>
7360 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
7362 <table><tr><td>foo</td></tr>{{echo|</table>}}
7364 <table><tr><td>foo</td></tr></table>
7369 Templates: HTML Tables: 5. Proper fostering of categories from inside
7371 parsoid=wt2html,wt2wt
7373 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
7374 <!--Two categories (Bug 50330)-->
7375 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
7377 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
7378 <!--Two categories (Bug 50330)-->
7379 <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>
7383 Templates: Wiki Tables: 1a. Fostering of entire template content
7391 <tr><td></td></tr></table>
7396 Templates: Wiki Tables: 1b. Fostering of entire template content
7409 <tr><td></td></tr></table>
7414 Templates: Wiki Tables: 2. Fostering of partial template content
7424 <tr><td></td></tr></table>
7429 Templates: Wiki Tables: 3. td-content via multiple templates
7432 {{echo|{{pipe}}a}}{{echo|b}}
7443 Templates: Wiki Tables: 4. Templated tags, no content
7449 <tr><td></td></tr></table>
7454 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7468 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7482 Templates: Lists: Multi-line list-items via templates
7484 *{{echo|a {{nonexistent|
7486 *{{echo|b {{nonexistent|
7489 <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>
7490 </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>
7496 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7498 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7500 <p><i>ab</i>c<i>d</i>e
7505 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7506 (PHP parser generates misnested html)
7508 parsoid=wt2html,wt2wt
7510 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7512 <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>
7516 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7517 (PHP parser generates misnested html)
7519 parsoid=wt2html,wt2wt
7521 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7523 <div typeof="mw:Transclusion"><i>a</i></div>
7524 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7525 <div typeof="mw:Transclusion">e</div>
7529 Templates: Ugly nesting: 4. Divs opened/closed across templates
7531 a<div>b{{echo|c</div>d}}e
7538 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7544 |{{echo|foo</table>}}
7548 <table typeof="mw:Transclusion">
7551 <td>foo</td></tr></tbody></table><span>bar</span>
7555 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7565 <td>1. {{echo|foo </table>}}</td>
7567 <td>2. {{echo|baz </table>}}</td>
7580 <table about="#mwt1" typeof="mw:Transclusion">
7585 <td >1. foo </td></tr></tbody></table></td>
7587 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7588 </span><span about="#mwt1">
7590 abc</span><span about="#mwt1">
7591 </span><span about="#mwt1">
7592 </span><span about="#mwt1">
7593 </span><span about="#mwt1">
7594 </span><span about="#mwt1">
7596 xyz</span><span about="#mwt1">
7597 </span><span about="#mwt1">
7602 Templates: Ugly templates: 3. newline-only template parameter
7611 # This looks like a bug: a single newline triggers p/br for some reason.
7613 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7624 Parser Functions: 1. Simple example
7633 Parser Functions: 2. Nested use (only outermost should be marked up)
7642 ### Pre-save transform tests
7645 pre-save transform: subst:
7651 This is a test template
7655 pre-save transform: normal template
7665 pre-save transform: nonexistent template
7669 {{thistemplatedoesnotexist}}
7671 {{thistemplatedoesnotexist}}
7676 pre-save transform: subst magic variables
7685 # This is bug 89, which I fixed. -- wtm
7687 pre-save transform: subst: templates with parameters
7691 {{subst:paramtest|param="something else"}}
7693 This is a test template with parameter "something else"
7699 <nowiki>'''not wiki'''</nowiki>
7703 pre-save transform: nowiki in subst (bug 1188)
7707 {{subst:nowikitest}}
7709 <nowiki>'''not wiki'''</nowiki>
7714 Template:commenttest
7716 This template has <!-- a comment --> in it.
7720 pre-save transform: comment in subst (bug 1936)
7724 {{subst:commenttest}}
7726 This template has <!-- a comment --> in it.
7730 pre-save transform: unclosed tag
7734 <nowiki>'''not wiki'''
7736 <nowiki>'''not wiki'''
7740 pre-save transform: mixed tag case
7744 <NOwiki>'''not wiki'''</noWIKI>
7746 <NOwiki>'''not wiki'''</noWIKI>
7750 pre-save transform: unclosed comment in <nowiki>
7754 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7756 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7759 # Leading @ in this template definition works around a limitation
7760 # in parsoid's parserTests which otherwise strips the <span> from the
7761 # result (confusing it for a template wrapper)
7765 @<span onmouseover="alert('crap')">Oh no</span>
7769 (confirming safety of fix for subst bug 1936)
7771 {{Template:dangerous}}
7773 <p>@<span>Oh no</span>
7778 pre-save transform: comment containing gallery (bug 5024)
7782 <!-- <gallery>data</gallery> -->
7784 <!-- <gallery>data</gallery> -->
7788 pre-save transform: comment containing extension
7792 <!-- <tag>data</tag> -->
7794 <!-- <tag>data</tag> -->
7798 pre-save transform: comment containing nowiki
7802 <!-- <nowiki>data</nowiki> -->
7804 <!-- <nowiki>data</nowiki> -->
7808 pre-save transform: <noinclude> in subst (bug 3298)
7818 pre-save transform: <onlyinclude> in subst (bug 3298)
7830 {{<includeonly>subst:</includeonly>Includes}}
7834 Template:SafeSubstTest
7836 {{<includeonly>safesubst:</includeonly>Includes}}
7840 bug 22297: safesubst: works during PST
7844 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7850 bug 22297: safesubst: works during normal parse
7859 subst: does not work during normal parse
7863 <p>{{subst:Includes}}
7868 pre-save transform: context links ("pipe trick")
7872 [[Article (context)|]]
7875 [[Bar:Article (context)|]]
7876 [[:Bar:Article (context)|]]
7878 [[|Article (context)]]
7882 [[Article (context)|Article]]
7883 [[Bar:Article|Article]]
7884 [[:Bar:Article|Article]]
7885 [[Bar:Article (context)|Article]]
7886 [[:Bar:Article (context)|Article]]
7888 [[Article (context)]]
7889 [[Bar:X (Y) Z|X (Y) Z]]
7890 [[:Bar:X (Y) Z|X (Y) Z]]
7894 pre-save transform: context links ("pipe trick") with interwiki prefix
7898 [[interwiki:Article|]]
7899 [[:interwiki:Article|]]
7900 [[interwiki:Bar:Article|]]
7901 [[:interwiki:Bar:Article|]]
7903 [[interwiki:Article|Article]]
7904 [[:interwiki:Article|Article]]
7905 [[interwiki:Bar:Article|Bar:Article]]
7906 [[:interwiki:Bar:Article|Bar:Article]]
7910 pre-save transform: context links ("pipe trick") with parens in title
7912 pst title=[[Somearticle (context)]]
7916 [[Article (context)|Article]]
7920 pre-save transform: context links ("pipe trick") with comma in title
7922 pst title=[[Someplace, Somewhere]]
7925 [[Otherplace, Elsewhere|]]
7926 [[Otherplace, Elsewhere, Anywhere|]]
7928 [[Otherplace, Somewhere|Otherplace]]
7929 [[Otherplace, Elsewhere|Otherplace]]
7930 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7934 pre-save transform: context links ("pipe trick") with parens and comma
7936 pst title=[[Someplace (IGNORED), Somewhere]]
7939 [[Otherplace (place), Elsewhere|]]
7941 [[Otherplace, Somewhere|Otherplace]]
7942 [[Otherplace (place), Elsewhere|Otherplace]]
7946 pre-save transform: context links ("pipe trick") with comma and parens
7948 pst title=[[Who, me? (context)]]
7951 [[Me, Myself, and I (1937 song)|]]
7953 [[Yes, you. (context)|Yes, you.]]
7954 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7958 pre-save transform: context links ("pipe trick") with namespace
7960 pst title=[[Ns:Somearticle]]
7964 [[Ns:Article|Article]]
7968 pre-save transform: context links ("pipe trick") with namespace and parens
7970 pst title=[[Ns:Somearticle (context)]]
7974 [[Ns:Article (context)|Article]]
7978 pre-save transform: context links ("pipe trick") with namespace and comma
7980 pst title=[[Ns:Somearticle, Context, Whatever]]
7984 [[Ns:Article, Context, Whatever|Article]]
7988 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7990 pst title=[[Ns:Somearticle, Context (context)]]
7994 [[Ns:Article (context)|Article]]
7998 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8000 pst title=[[Ns:Somearticle (IGNORED), Context]]
8004 [[Ns:Article, Context|Article]]
8008 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8012 [[Article(context)|]]
8013 [[Bar:Article(context)|]]
8014 [[:Bar:Article(context)|]]
8015 [[|Article(context)]]
8019 [[Article(context)|Article]]
8020 [[Bar:Article(context)|Article]]
8021 [[:Bar:Article(context)|Article]]
8022 [[Article(context)]]
8024 [[:Bar:X(Y)Z|X(Y)Z]]
8028 pre-save transform: context links ("pipe trick") with full-width parens and 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)]]
8043 [[Bar:X (Y) Z|X (Y) Z]]
8044 [[:Bar:X (Y) Z|X (Y) Z]]
8048 pre-save transform: context links ("pipe trick") with parens and no space (Korean 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)]]
8064 [[:Bar:X(Y)Z|X(Y)Z]]
8068 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8072 [[Article (context), context|]]
8073 [[Article (context),context|]]
8074 [[Bar:Article (context), context|]]
8075 [[Bar:Article (context),context|]]
8076 [[:Bar:Article (context), context|]]
8077 [[:Bar:Article (context),context|]]
8079 [[Article (context), context|Article]]
8080 [[Article (context),context|Article]]
8081 [[Bar:Article (context), context|Article]]
8082 [[Bar:Article (context),context|Article]]
8083 [[:Bar:Article (context), context|Article]]
8084 [[:Bar:Article (context),context|Article]]
8088 pre-save transform: trim trailing empty lines
8092 Empty lines are trimmed
8098 Empty lines are trimmed
8102 pre-save transform: Signature expansion
8107 * <noinclude>~~~</noinclude>
8108 * <includeonly>~~~</includeonly>
8109 * <onlyinclude>~~~</onlyinclude>
8111 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
8112 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
8113 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
8114 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
8119 pre-save transform: Signature expansion in nowiki tags (bug 93)
8125 <nowiki>~~~~</nowiki>
8127 <includeonly><nowiki>~~~~</nowiki></includeonly>
8129 <noinclude><nowiki>~~~~</nowiki></noinclude>
8131 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8133 {{subst:Foo}} shall be converted to FOO
8135 As well as inside noinclude/onlyinclude
8136 <noinclude>{{subst:Foo}}</noinclude>
8137 <onlyinclude>{{subst:Foo}}</onlyinclude>
8139 But not inside includeonly
8140 <includeonly>{{subst:Foo}}</includeonly>
8144 <nowiki>~~~~</nowiki>
8146 <includeonly><nowiki>~~~~</nowiki></includeonly>
8148 <noinclude><nowiki>~~~~</nowiki></noinclude>
8150 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8152 FOO shall be converted to FOO
8154 As well as inside noinclude/onlyinclude
8155 <noinclude>FOO</noinclude>
8156 <onlyinclude>FOO</onlyinclude>
8158 But not inside includeonly
8159 <includeonly>{{subst:Foo}}</includeonly>
8163 Parsoid: Recognize nowiki with trailing space in tags
8167 <nowiki ><div>[[foo]]</nowiki >
8175 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8182 Parsoid: Recognize nowiki with odd capitalization
8186 <noWikI ><div>[[foo]]</Nowiki >
8188 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8193 Parsoid: Escape nowiki with trailing space in tags
8197 <nowiki > foo </nowiki >
8203 <p><nowiki > foo </nowiki ></p>
8204 <p>a<nowiki />b</p>
8205 <p>c<nowiki/ >d</p>
8209 Parsoid: Escape weird noWikI capitalizations
8213 <noWikI > foo </NoWikI >
8215 <p><noWikI > foo </NoWikI ></p>
8219 ### Message transform tests
8222 message transform: magic variables
8232 message transform: should not transform wiki markup
8242 message transform: <noinclude> in transcluded template (bug 4926)
8252 message transform: <onlyinclude> in transcluded template (bug 4926)
8262 {{#special:}} page name, known
8266 {{#special:Recentchanges}}
8268 Special:RecentChanges
8272 {{#special:}} page name with subpage, known
8276 {{#special:Recentchanges/param}}
8278 Special:RecentChanges/param
8282 {{#special:}} page name, unknown
8286 {{#special:foobar nonexistent}}
8288 Special:Foobar nonexistent
8292 {{#speciale:}} page name, known
8296 {{#speciale:Recentchanges}}
8298 Special:RecentChanges
8302 {{#speciale:}} page name with subpage, known
8306 {{#speciale:Recentchanges/param}}
8308 Special:RecentChanges/param
8312 {{#speciale:}} page name, unknown
8316 {{#speciale:foobar nonexistent}}
8318 Special:Foobar_nonexistent
8327 [[Image:foobar.jpg]]
8329 <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>
8336 [[Image:foobar.jpg|right]]
8338 <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>
8343 Simple image (using File: namespace, now canonical)
8347 <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>
8354 [[Image:foobar.jpg|right|Caption text]]
8356 <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>
8361 Image with empty attribute
8363 [[Image:foobar.jpg|right||Caption text]]
8365 <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>
8370 Image with attributes from template.
8372 [[Image:foobar.jpg|{{image_attribs}}]]
8374 <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>
8379 Image with link tails
8381 123[[Image:foobar.jpg]]456
8382 123[[Image:foobar.jpg|right]]456
8383 123[[Image:foobar.jpg|thumb]]456
8385 <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
8387 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
8388 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
8393 Image with multiple captions -- only last one is accepted
8395 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8397 <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>
8402 Image with width attribute at different positions
8404 [[Image:foobar.jpg|200px|right|Caption]]
8405 [[Image:foobar.jpg|right|200px|Caption]]
8406 [[Image:foobar.jpg|right|Caption|200px]]
8408 <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>
8409 <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>
8410 <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>
8415 Image with link parameter, wiki target
8417 [[Image:foobar.jpg|link=Target page]]
8419 <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>
8424 Image with link parameter, URL target
8426 [[Image:foobar.jpg|link=http://example.com/]]
8428 <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>
8433 Image with link parameter, wgExternalLinkTarget
8435 [[Image:foobar.jpg|link=http://example.com/]]
8437 wgExternalLinkTarget='foobar'
8439 <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>
8444 Image with link parameter, wgNoFollowLinks set to false
8446 [[Image:foobar.jpg|link=http://example.com/]]
8448 wgNoFollowLinks=false
8450 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8455 Image with link parameter, wgNoFollowDomainExceptions
8457 [[Image:foobar.jpg|link=http://example.com/]]
8459 wgNoFollowDomainExceptions='example.com'
8461 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8466 Image with link parameter, wgExternalLinkTarget, unnamed parameter
8468 [[Image:foobar.jpg|link=http://example.com/|Title]]
8470 wgExternalLinkTarget='foobar'
8472 <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>
8477 Image with empty link parameter
8479 [[Image:foobar.jpg|link=]]
8481 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8486 Image with link parameter (wiki target) and unnamed parameter
8488 [[Image:foobar.jpg|link=Target page|Title]]
8490 <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>
8495 Image with link parameter (URL target) and unnamed parameter
8497 [[Image:foobar.jpg|link=http://example.com/|Title]]
8499 <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>
8504 Thumbnail image with link parameter
8508 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8510 <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>
8515 Manually-specified thumbnail image
8519 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8521 <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>
8526 Manually-specified thumbnail image with explicit link to wiki page
8530 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8532 <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>
8537 Manually-specified thumbnail image with explicit link to url
8541 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8543 <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>
8548 Manually-specified thumbnail image with explicit no link
8552 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8554 <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>
8559 Manually-specified thumbnail image with explicit link and alt text
8563 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8565 <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>
8570 Image with frame and link
8572 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8574 <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>
8579 Image with frame and link and explicit alt
8581 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8583 <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>
8588 Image with wiki markup in implicit alt
8590 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8592 <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>
8597 Image with wiki markup in explicit alt
8599 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8601 <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>
8606 Link to image page- image page normally doesn't exists, hence edit link
8607 Add test with existing image page
8608 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8612 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8617 bug 18784 Link to non-existent image page with caption should use caption as link text
8619 [[:Image:test|caption]]
8621 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8626 Frameless image caption with a free URL
8628 [[Image:foobar.jpg|http://example.com]]
8630 <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>
8635 Thumbnail image caption with a free URL
8637 [[Image:foobar.jpg|thumb|http://example.com]]
8639 <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>
8644 Thumbnail image caption with a free URL and explicit alt
8646 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8648 <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>
8653 SVG thumbnails with no language set
8656 [[File:Foobar.svg|thumb|width=200]]
8658 <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>
8663 SVG thumbnails with language de
8666 [[File:Foobar.svg|thumb|width=200|lang=de]]
8668 <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>
8673 SVG thumbnails with invalid language code
8676 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
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>lang=invalid.language.code</div></div></div>
8683 BUG 1887: A ISBN with a thumbnail
8685 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8687 <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>
8692 BUG 1887: A RFC with a thumbnail
8694 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8696 <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>
8701 BUG 1887: A mailto link with a thumbnail
8703 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8705 <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>
8709 # Pending resolution to bug 368
8711 BUG 648: Frameless image caption with a link
8713 [[Image:foobar.jpg|text with a [[link]] in it]]
8715 <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>
8720 BUG 648: Frameless image caption with a link (suffix)
8722 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8724 <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>
8729 BUG 648: Frameless image caption with an interwiki link
8731 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8733 <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>
8738 BUG 648: Frameless image caption with a piped interwiki link
8740 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8742 <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>
8747 Escape HTML special chars in image alt text
8749 [[Image:foobar.jpg|& < > "]]
8751 <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>
8756 BUG 499: Alt text should have Ӓ, not &1234;
8758 [[Image:foobar.jpg|♀]]
8760 <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>
8765 Broken image caption with link
8767 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8769 <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.
8774 Image caption containing another image
8776 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8778 <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>
8783 Image caption containing a newline
8785 [[Image:Foobar.jpg|This
8788 <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>
8793 Parsoid: Image caption containing leading space
8794 (The leading space should not trigger nowiki escaping in wt2wt mode)
8796 [[Image:Foobar.jpg|thumb| bar]]
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>bar</div></div></div>
8803 Bug 3090: External links other than http: in image captions
8805 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8807 <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>
8814 [[Image:foobar.jpg|a|class=b]]
8816 <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>
8821 Localized image handling (1).
8825 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8827 <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>
8832 Localized image handling (2).
8836 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8838 <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>
8843 "border", "frameless" and "class" attributes on an image.
8845 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8847 <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>
8854 #REDIRECT [[File:Barfoo.jpg]]
8860 [[Image:Barfoo.jpg]]
8862 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8867 Missing image with uploads disabled
8871 [[Image:Foobaz.jpg]]
8873 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8877 # Parsoid-specific testing for images
8878 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8879 # Currently imperfect due to a flaw in the Parsoid testrunner
8883 Parsoid-specific image handling - simple image
8887 [[Image:Foobar.jpg]]
8890 <span class="mw-default-size" typeof="mw:Image">
8891 <a href="File:Foobar.jpg">
8892 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8899 Parsoid-specific image handling - simple image without link
8903 [[Image:Foobar.jpg|link=]]
8906 <span class="mw-default-size" typeof="mw:Image">
8908 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8915 Parsoid-specific image handling - simple image with specific link
8919 [[Image:Foobar.jpg|link=Main Page]]
8922 <span class="mw-default-size" typeof="mw:Image">
8923 <a href="Main_Page">
8924 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8931 Parsoid-specific image handling - simple image with size and middle alignment
8935 [[Image:Foobar.jpg|50px|middle]]
8938 <span class="mw-valign-middle" typeof="mw:Image">
8939 <a href="File:Foobar.jpg">
8940 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8947 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8951 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8954 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8955 <a href="File:Foobar.jpg">
8956 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8963 Parsoid-specific image handling - simple image with border and size spec
8967 [[Image:Foobar.jpg|50px|border|caption]]
8970 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8971 <a href="File:Foobar.jpg">
8972 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8979 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8983 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8985 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8986 <a href="File:Foobar.jpg">
8987 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8989 <figcaption>caption content</figcaption>
8994 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8998 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
9000 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
9001 <a href="File:Foobar.jpg">
9002 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
9004 <figcaption>caption</figcaption>
9009 Parsoid-specific image handling - framed image with specific size and caption
9013 [[Image:Foobar.jpg|500x50px|frame|caption]]
9015 <figure typeof="mw:Image/Frame">
9016 <a href="File:Foobar.jpg">
9017 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9019 <figcaption>caption</figcaption>
9024 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
9028 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
9030 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
9031 <a href="File:Foobar.jpg">
9032 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9034 <figcaption>caption</figcaption>
9039 Parsoid-specific image handling - frameless image with specific size, border, and caption
9043 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
9046 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
9047 <a href="File:Foobar.jpg">
9048 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9054 #Parsoid-specific image handling - simple image with a formatted caption
9058 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
9061 #<span typeof="mw:Image">
9062 #<a class="mw-default-size" href="Image:Foobar.jpg">
9063 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
9074 Subpage test/subpage
9082 subpage title=[[Subpage test]]
9086 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
9091 Subpage noslash link
9093 subpage title=[[Subpage test]]
9097 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
9101 # TODO: make this PHP-parser compatible!
9103 Relative subpage noslash link
9105 parsoid=wt2wt,wt2html,html2html
9106 subpage title=[[Subpage test/1/2/3/4]]
9112 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
9113 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
9116 # TODO: make this PHP-parser compatible!
9118 Parsoid: dot-slash prefixed wikilinks
9120 parsoid=wt2wt,wt2html,html2html
9128 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
9129 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
9130 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
9138 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
9143 BUG 561: {{/Subpage}}
9145 subpage title=[[Page]]
9149 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
9157 Category:MediaWiki User's Guide
9165 [[:Category:MediaWiki User's Guide]]
9167 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
9176 [[Category:MediaWiki User's Guide]]
9178 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9182 PAGESINCATEGORY invalid title fatal (r33546 fix)
9184 {{PAGESINCATEGORY:<bogus>}}
9191 Category with different sort key
9195 [[Category:MediaWiki User's Guide|Foo]]
9197 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9201 Category with identical sort key
9205 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9207 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9211 Category with empty sort key
9216 [[Category:MediaWiki User's Guide|]]
9218 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9222 Category with empty sort key and parentheses
9227 [[Category:Foo (bar)|]]
9229 [[Category:Foo (bar)|Foo]]
9233 Category with link tail
9238 123[[Category:Foo]]456
9240 123[[Category:Foo]]456
9244 Category with template
9249 [[Category:{{echo|Foo}}]]
9251 [[Category:{{echo|Foo}}]]
9255 Category with template in sort key
9260 [[Category:Foo|{{echo|Bar}}]]
9262 [[Category:Foo|{{echo|Bar}}]]
9266 Category with template in sort key and title
9271 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9273 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9277 Category / paragraph interactions
9279 Foo [[Category:Baz]] Bar
9281 Foo [[Category:Baz]]
9289 [[Category:Baz]] Bar
9302 {{echo|[[Category:Baz]]}}
9317 Parsoid: Serialize link to category page with colon escape
9323 [[:Category:Foo|Bar]]
9326 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
9327 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
9332 Parsoid: Link prefix/suffixes aren't applied to category links
9334 parsoid=wt2html,wt2wt,html2html
9339 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
9343 Parsoid: Serialize link to file page with colon escape
9349 [[:File:Foo.png|Bar]]
9352 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
9353 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
9358 Parsoid: Serialize a genuine category link without colon escape
9363 [[Category:Foo|Bar]]
9365 <link rel="mw:WikiLink/Category" href="Category:Foo">
9366 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
9370 ### Inter-language links
9373 Inter-language links
9379 [[zh:食品]]
9381 es:Alimento fr:Nourriture zh:食品
9385 Duplicate interlanguage links (bug 24502)
9401 Basic section headings
9408 ===Smaller headline===
9411 <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>
9414 <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>
9417 <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>
9423 Section headings with TOC
9426 === Subheadline 1 ===
9427 ===== Skipping a level =====
9428 ====== Skipping a level ======
9432 ===Another headline===
9434 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9436 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
9438 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
9440 <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>
9442 <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>
9449 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
9451 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
9456 <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>
9457 <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>
9458 <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>
9459 <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>
9460 <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>
9463 <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>
9467 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
9469 Handling of sections up to level 6 and beyond
9472 == Level 2 Heading==
9473 === Level 3 Heading===
9474 ==== Level 4 Heading====
9475 ===== Level 5 Heading=====
9476 ====== Level 6 Heading======
9477 ======= Level 7 Heading=======
9478 ======== Level 8 Heading========
9479 ========= Level 9 Heading=========
9480 ========== Level 10 Heading==========
9482 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9484 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9486 <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>
9488 <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>
9490 <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>
9492 <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>
9494 <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>
9495 <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>
9496 <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>
9497 <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>
9498 <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>
9511 <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>
9512 <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>
9513 <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>
9514 <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>
9515 <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>
9516 <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>
9517 <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>
9518 <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>
9519 <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>
9520 <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>
9525 TOC regression (bug 9764)
9529 ==== title 1.1.1 ====
9534 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9536 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9538 <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>
9540 <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>
9543 <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>
9546 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9548 <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>
9553 <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>
9554 <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>
9555 <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>
9556 <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>
9557 <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>
9558 <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>
9563 TOC with wgMaxTocLevel=3 (bug 6204)
9569 ==== title 1.1.1 ====
9574 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9576 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9578 <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>
9579 <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>
9582 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9584 <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>
9589 <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>
9590 <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>
9591 <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>
9592 <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>
9593 <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>
9594 <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>
9599 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9605 ====Section 1.1.1====
9606 ====Section 1.1.1.1====
9609 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9611 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9613 <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>
9616 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9619 <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>
9620 <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>
9621 <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>
9622 <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>
9623 <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>
9629 Resolving duplicate section names
9634 <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>
9635 <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>
9640 Resolving duplicate section names with differing case (bug 10721)
9645 <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>
9646 <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>
9658 Template with sections, __NOTOC__
9665 <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>
9666 <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>
9667 <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>
9668 <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>
9673 __NOEDITSECTION__ keyword
9679 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9680 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9685 Link inside a section heading
9687 ==Section with a [[Main Page|link]] in it==
9689 <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>
9694 TOC regression (bug 12077)
9701 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9703 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9705 <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>
9708 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9711 <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>
9712 <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>
9713 <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>
9718 BUG 1219 URL next to image (good)
9720 http://example.com [[Image:foobar.jpg]]
9722 <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>
9727 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9730 The line above must have a trailing space!
9733 But just in case it doesn't...
9735 <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>
9736 <p>The line above must have a trailing space!
9738 <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>
9739 <p>But just in case it doesn't...
9744 Header with special characters (bug 25462)
9746 The tooltips shall not show entities to the user (ie. be double escaped)
9763 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9765 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9767 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9768 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9769 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9770 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9771 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9774 <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>
9777 <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>
9780 <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>
9783 <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>
9786 <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>
9792 Headers with excess '=' characters
9793 (Are similar tests necessary beyond the 1st level?)
9797 =''italic'' heading==
9798 ==''italic'' heading=
9800 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9802 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9803 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9804 <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>
9805 <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>
9808 <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>
9809 <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>
9810 <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>
9811 <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>
9816 HTML headers vs TOC (bug 23393)
9817 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9829 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9831 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9833 <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>
9834 <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>
9837 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9839 <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>
9840 <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>
9845 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9846 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9847 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9848 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9849 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9850 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9855 BUG 1219 URL next to image (broken)
9857 http://example.com[[Image:foobar.jpg]]
9859 <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>
9864 Bug 1186 news: in the middle of text
9866 http://en.wikinews.org/wiki/Wikinews:Workplace
9868 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9874 Namespaced link must have a title
9883 Namespaced link must have a title (bad fragment version)
9885 [[Project:#fragment]]
9887 <p>[[Project:#fragment]]
9893 ### HTML tags and HTML attributes
9897 div with no attributes
9899 <div>HTML rocks</div>
9901 <div>HTML rocks</div>
9906 div with double-quoted attribute
9908 <div id="rock">HTML rocks</div>
9910 <div id="rock">HTML rocks</div>
9915 div with single-quoted attribute
9917 <div id='rock'>HTML rocks</div>
9919 <div id="rock">HTML rocks</div>
9924 div with unquoted attribute
9926 <div id=rock>HTML rocks</div>
9928 <div id="rock">HTML rocks</div>
9933 div with illegal double attributes
9935 <div id="a" id="b">HTML rocks</div>
9937 <div id="b">HTML rocks</div>
9941 # FIXME: produce empty string instead of "class" in the PHP parser, following
9944 div with empty attribute value, space before equals
9948 <div class =>HTML rocks</div>
9950 <div class="">HTML rocks</div>
9954 # The PHP parser escapes the opening brace to { for some reason, so
9955 # disabled this test for it.
9957 div with braces in attribute value
9961 <div title="{}">Foo</div>
9963 <div title="{}">Foo</div>
9966 # This it very inconsistent in the PHP parser: it returns
9967 # class="class" if there is a space between the name and the equal sign (see
9968 # 'div with empty attribute value, space before equals'), but strips the
9969 # attribute completely if the space is missing. We hope that not much content
9970 # depends on this, so are implementing the behavior below in Parsoid for
9971 # consistencies' sake. Disabled for the PHP parser.
9972 # FIXME: fix this behavior in the PHP parser?
9974 div with empty attribute value, no space before equals
9978 <div class=>HTML rocks</div>
9980 <div class="">HTML rocks</div>
9985 HTML multiple attributes correction
9987 <p class="error" class="awesome">Awesome!</p>
9989 <p class="awesome">Awesome!</p>
9994 Table multiple attributes correction
9997 !+ class="error" class="awesome"| status
10002 <th class="awesome"> status
10010 <DIV ID="x">HTML ROCKS</DIV>
10012 <div id="x">HTML ROCKS</div>
10017 Non-ASCII pseudo-tags are rendered as text
10026 Pseudo-tag with URL 'name' renders as url link
10028 <http://example.com/>
10030 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
10035 text with amp in the middle of nowhere
10039 <p>Remember AT&T?
10044 text with character entity: eacute
10046 I always thought é was a cute letter.
10048 <p>I always thought é was a cute letter.
10053 text with entity-escaped character entity-like string: eacute
10055 I always thought &eacute; was a cute letter.
10057 <p>I always thought &eacute; was a cute letter.
10062 text with undefined character entity: xacute
10064 I always thought &xacute; was a cute letter.
10066 <p>I always thought &xacute; was a cute letter.
10072 ### Nesting tests (see bug 41545, 50604, 51081)
10075 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
10076 # Note that html2wt is considerably more difficult if we use <b> in
10077 # the test case, instead of <big>
10079 Ensure that HTML adoption agency algorithm is properly implemented.
10081 <big>X<big>Y</big>Z</big>
10083 <p><big>X<big>Y</big>Z</big>
10087 # This was bug 41545 in the PHP parser.
10091 <kbd>X<kbd>Y</kbd>Z</kbd>
10093 <p><kbd>X<kbd>Y</kbd>Z</kbd>
10097 # The following cases were bug 51081 in the PHP parser.
10098 # Note that there are some other nestable tags (b, i, etc) which are
10099 # not covered; see bug 51081 for discussion.
10103 <em>X<em>Y</em>Z</em>
10105 <p><em>X<em>Y</em>Z</em>
10110 Nesting of <strong>
10112 <strong>X<strong>Y</strong>Z</strong>
10114 <p><strong>X<strong>Y</strong>Z</strong>
10123 <p><q>X<q>Y</q>Z</q>
10130 <ruby>X<ruby>Y</ruby>Z</ruby>
10132 <p><ruby>X<ruby>Y</ruby>Z</ruby>
10139 <bdo>X<bdo>Y</bdo>Z</bdo>
10141 <p><bdo>X<bdo>Y</bdo>Z</bdo>
10153 [[Media:Foobar.jpg]]
10155 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
10160 Media link with text
10162 [[Media:Foobar.jpg|A neat file to look at]]
10164 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
10168 # FIXME: this is still bad HTML tag nesting
10170 Media link with nasty text
10171 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
10173 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
10175 <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>
10180 Media link to nonexistent file (bug 1702)
10182 [[Media:No such.jpg]]
10184 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
10189 Image link to nonexistent file (bug 1850 - good)
10191 [[Image:No such.jpg]]
10193 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
10198 :Image link to nonexistent file (bug 1850 - bad)
10200 [[:Image:No such.jpg]]
10202 <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>
10209 Character reference normalization in link text (bug 1938)
10211 [[Main Page|this&that]]
10213 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
10220 Test for unicode normalization
10222 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
10226 (bug 19451) Links should refer to the normalized form.
10234 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10235 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10236 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10237 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10238 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10243 Empty attribute crash test (bug 2067)
10245 <font color="">foo</font>
10247 <p><font color="">foo</font>
10252 Empty attribute crash test single-quotes (bug 2067)
10254 <font color=''>foo</font>
10256 <p><font color="">foo</font>
10261 Attribute test: equals, then nothing
10263 <font color=>foo</font>
10265 <p><font>foo</font>
10270 Attribute test: unquoted value
10272 <font color=x>foo</font>
10274 <p><font color="x">foo</font>
10279 Attribute test: unquoted but illegal value (hash)
10281 <font color=#x>foo</font>
10283 <p><font color="#x">foo</font>
10288 Attribute test: no value
10290 <font color>foo</font>
10292 <p><font color="color">foo</font>
10297 Bug 2095: link with three closing brackets
10301 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
10306 Bug 2095: link with pipe and three closing brackets
10308 [[Main Page|link]]]
10310 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
10315 Bug 2095: link with pipe and three closing brackets, version 2
10317 [[Main Page|[http://example.com/]]]
10319 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
10329 Template:Dangerous attribute
10331 " onmouseover="alert(document.cookie)
10335 Template:Dangerous style attribute
10337 border-size: expression(alert(document.cookie))
10343 <div style="float: right; {{{1}}}">Magic div</div>
10347 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
10349 <div title="{{test}}"></div>
10351 <div title="This is a test template"></div>
10356 Bug 2304: HTML attribute safety (dangerous template; 2309)
10358 <div title="{{dangerous attribute}}"></div>
10360 <div title=""></div>
10365 Bug 2304: HTML attribute safety (dangerous style template; 2309)
10367 <div style="{{dangerous style attribute}}"></div>
10369 <div style="/* insecure input */"></div>
10374 Bug 2304: HTML attribute safety (safe parameter; 2309)
10376 {{div style|width: 200px}}
10378 <div style="float: right; width: 200px">Magic div</div>
10383 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
10385 {{div style|width: expression(alert(document.cookie))}}
10387 <div style="/* insecure input */">Magic div</div>
10392 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
10394 {{div style|"><script>alert(document.cookie)</script>}}
10396 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10401 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
10403 {{div style|" ><script>alert(document.cookie)</script>}}
10405 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10410 Bug 2304: HTML attribute safety (link)
10412 <div title="[[Main Page]]"></div>
10414 <div title="[[Main Page]]"></div>
10419 Bug 2304: HTML attribute safety (italics)
10421 <div title="''foobar''"></div>
10423 <div title="''foobar''"></div>
10428 Bug 2304: HTML attribute safety (bold)
10430 <div title="'''foobar'''"></div>
10432 <div title="'''foobar'''"></div>
10438 Bug 2304: HTML attribute safety (ISBN)
10440 <div title="ISBN 1234567890"></div>
10442 <div title="ISBN 1234567890"></div>
10447 Bug 2304: HTML attribute safety (RFC)
10449 <div title="RFC 1234"></div>
10451 <div title="RFC 1234"></div>
10456 Bug 2304: HTML attribute safety (PMID)
10458 <div title="PMID 1234567890"></div>
10460 <div title="PMID 1234567890"></div>
10465 Bug 2304: HTML attribute safety (web link)
10467 <div title="http://example.com/"></div>
10469 <div title="http://example.com/"></div>
10474 Bug 2304: HTML attribute safety (named web link)
10476 <div title="[http://example.com/ link]"></div>
10478 <div title="[http://example.com/ link]"></div>
10483 Bug 3244: HTML attribute safety (extension; safe)
10485 <div style="<nowiki>background:blue</nowiki>"></div>
10487 <div style="background:blue"></div>
10492 Bug 3244: HTML attribute safety (extension; unsafe)
10494 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10496 <div style="/* insecure input */"></div>
10500 # More MSIE fun discovered by Tom Gilder
10503 MSIE CSS safety test: spurious slash
10505 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10507 <div style="/* insecure input */">evil</div>
10512 MSIE CSS safety test: hex code
10514 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10516 <div style="/* insecure input */">evil</div>
10521 MSIE CSS safety test: comment in url
10523 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10525 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10530 MSIE CSS safety test: comment in expression
10532 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10534 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10540 Table attribute legitimate extension
10543 !+ style="<nowiki>color:blue</nowiki>"| status
10548 <th style="color:blue"> status
10554 Table attribute safety
10557 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10562 <th style="/* insecure input */"> status
10568 CSS line continuation 1
10570 <div style="background-image: u\ rl(test.jpg);"></div>
10572 <div style="/* insecure input */"></div>
10577 CSS line continuation 2
10579 <div style="background-image: u\ rl(test.jpg); "></div>
10581 <div style="/* insecure input */"></div>
10592 Expansion of multi-line templates in attribute values (bug 6255)
10594 <div style="background: {{identity|#00FF00}}">-</div>
10596 <div style="background: #00FF00">-</div>
10602 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10604 <div style="background:
10607 <div style="background: #00FF00">-</div>
10612 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10614 <div style="background: #00FF00">-</div>
10616 <div style="background: #00FF00">-</div>
10621 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
10624 Parser hook: empty input
10637 Parser hook: empty input using terminated empty elements
10650 Parser hook: empty input using terminated empty elements (space before)
10663 Parser hook: basic input
10677 Parser hook: case insensitive
10691 Parser hook: case insensitive, redux
10704 Parser hook: nested tags
10708 <tag><tag></tag></tag>
10719 Parser hook: basic arguments
10721 <tag width=200 height = "100" depth = '50' square></tag>
10729 'square' => 'square',
10736 Parser hook: argument containing a forward slash (bug 5344)
10738 <tag filename='/tmp/bla'></tag>
10743 'filename' => '/tmp/bla',
10750 Parser hook: empty input using terminated empty elements (bug 2374)
10763 # </tag> should be output literally since there is no matching tag that begins it
10765 Parser hook: basic arguments using terminated empty elements (bug 2374)
10767 <tag width=200 height = "100" depth = '50' square/>
10777 'square' => 'square',
10786 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
10790 Parser hook: static parser hook not inside a comment
10792 <statictag>hello, world</statictag>
10793 <statictag action=flush/>
10801 Parser hook: static parser hook inside a comment
10803 <!-- <statictag>hello, world</statictag> -->
10804 <statictag action=flush/>
10810 # Nested template calls; this case was broken by Parser.php rev 1.506,
10814 Template:One-parameter
10816 (My parameter is: {{{1}}})
10820 Template:Map-one-parameter
10822 {{{{{1}}}|{{{2}}}}}
10826 Nested template calls
10828 {{Map-one-parameter|One-parameter|param}}
10830 <p>(My parameter is: param)
10839 Sanitizer: Closing of open tags
10841 <s></s><table></table>
10843 <s></s><table></table>
10848 Sanitizer: Closing of open but not closed tags
10857 Sanitizer: Closing of closed but not open tags
10866 Sanitizer: Closing of closed but not open table tags
10868 Table not started</td></tr></table>
10870 <p>Table not started</td></tr></table>
10875 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10877 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10879 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10884 Sanitizer: Validating the contents of the id attribute (bug 4515)
10890 Something, but definitely not <br id="9" />...
10894 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10898 <br id="foo" /><br id="foo" />
10900 Something need to be done. foo-2 ?
10904 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10907 <meta itemprop="hello" content="world">
10908 <meta http-equiv="refresh" content="5">
10909 <meta itemprop="hello" http-equiv="refresh" content="5">
10910 <link itemprop="hello" href="{{SERVER}}">
10911 <link rel="stylesheet" href="{{SERVER}}">
10912 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10915 <div itemscope="itemscope">
10916 <p> <meta itemprop="hello" content="world" />
10917 <meta http-equiv="refresh" content="5">
10918 <meta itemprop="hello" content="5" />
10920 <link itemprop="hello" href="http://example.org" />
10921 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10922 <link itemprop="hello" href="http://example.org" />
10928 Language converter: output gets cut off unexpectedly (bug 5757)
10932 this bit is safe: }-
10934 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10936 then we get cut off here: }-
10938 all additional text is vanished
10940 <p>this bit is safe: }-
10941 </p><p>but if we add a conversion instance: xxx
10942 </p><p>then we get cut off here: }-
10943 </p><p>all additional text is vanished
10948 Self closed html pairs (bug 5487)
10951 <center><font id="bug" />Centered text</center>
10952 <div><font id="bug2" />In div text</div>
10954 <center><font id="bug" />Centered text</center>
10955 <div><font id="bug2" />In div text</div>
10964 Punctuation: nbsp before exclamation
10968 <p>C'est grave !
10973 Punctuation: CSS !important (bug 11874)
10975 <div style="width:50% !important">important</div>
10977 <div style="width:50% !important">important</div>
10982 Punctuation: CSS ! important (bug 11874; with space after)
10984 <div style="width:50% ! important">important</div>
10986 <div style="width:50% ! important">important</div>
10992 HTML bullet list, closed tags (bug 5497)
11007 HTML bullet list, unclosed tags (bug 5497)
11024 HTML ordered list, closed tags (bug 5497)
11039 HTML ordered list, unclosed tags (bug 5497)
11056 HTML nested bullet list, closed tags (bug 5497)
11081 HTML nested bullet list, open tags (bug 5497)
11106 HTML nested ordered list, closed tags (bug 5497)
11131 HTML nested ordered list, open tags (bug 5497)
11156 HTML ordered list item with parameters oddity
11158 <ol><li id="fragment">One</li></ol>
11160 <ol><li id="fragment">One</li></ol>
11165 bug 5918: autonumbering
11167 [http://first/] [http://second] [ftp://ftp]
11171 [mailto:enclosed@mail.tld With target]
11173 [mailto:enclosed@mail.tld]
11175 mailto:inline@mail.tld
11177 <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>
11178 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
11179 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
11180 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
11181 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
11187 # Security and HTML correctness
11188 # From Nick Jenkins' fuzz testing
11192 Fuzz testing: Parser13
11207 Fuzz testing: Parser14
11212 <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>
11213 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11215 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
11222 Fuzz testing: Parser14-table
11227 <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>
11228 <table style="__TOC__">
11234 # Known to produce bogus xml (extra </td>)
11236 Fuzz testing: Parser16
11256 Fuzz testing: Parser21
11259 ! irc://{{ftp://a" onmouseover="alert('hello world');"
11264 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
11274 Fuzz testing: Parser22
11276 http://===r:::https://b
11280 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
11288 # Known to produce bad XML for now
11290 Fuzz testing: Parser24
11297 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
11298 <br style="onmouseover='alert(document.cookie);' " />
11300 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11305 <u class="|">}}}} >
11306 <br style="onmouseover='alert(document.cookie);'" />
11308 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11317 # Note: the current result listed for this is not what the original one was,
11318 # but the original bug was JavaScript injection, which is fixed in any case.
11319 # It's not clear that the original result listed was any more correct than the
11320 # current one. Original result:
11323 # <li class="||">
11324 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11326 Fuzz testing: Parser25 (bug 6055)
11332 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
11334 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11339 Fuzz testing: URL adjacent extension (with space, clean)
11342 http://example.com <nowiki>junk</nowiki>
11344 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
11349 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
11352 http://example.com<nowiki>junk</nowiki>
11354 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
11359 Fuzz testing: URL adjacent extension (no space, dirty; pre)
11362 http://example.com<pre>junk</pre>
11364 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
11369 Fuzz testing: image with bogus manual thumbnail
11371 [[Image:foobar.jpg|thumbnail= ]]
11373 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
11378 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
11380 <pre dir=" "></pre>
11382 <pre dir=" "></pre>
11387 Parsing optional HTML elements (Bug 6171)
11392 <td> Some tabular data</td>
11393 <td> More tabular data ...
11394 <td> And yet som tabular data</td>
11400 <td> Some tabular data</td>
11401 <td> More tabular data ...
11402 </td><td> And yet som tabular data</td>
11409 Correct handling of <td>, <tr> (Bug 6171)
11414 <td> Some tabular data</td>
11415 <td> More tabular data ...</td>
11416 <td> And yet som tabular data</td>
11422 <td> Some tabular data</td>
11423 <td> More tabular data ...</td>
11424 <td> And yet som tabular data</td>
11432 Parsing crashing regression (fr:JavaScript)
11436 <p></body></x>
11441 Inline wiki vs wiki block nesting
11447 <p><b>Bold paragraph</b>
11448 </p><p>New wiki paragraph
11453 Inline HTML vs wiki block nesting
11461 <p><b>Bold paragraph</b>
11462 </p><p>New wiki paragraph
11466 # Original result was this:
11467 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
11469 # While that might be marginally more intuitive, maybe, the six-apostrophe
11470 # construct is clearly pathological and the result stated here (which is what
11471 # the parser actually does) is about as reasonable as anything.
11473 Mixing markup for italics and bold
11476 '''bold''''''bold''bolditalics'''''
11478 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11486 Article for special page transclusion test
11490 Special page transclusion
11493 {{Special:Prefixindex/Xyzzyx}}
11495 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11500 Special page transclusion twice (bug 5021)
11503 {{Special:Prefixindex/Xyzzyx}}
11504 {{Special:Prefixindex/Xyzzyx}}
11506 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11507 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11512 Transclusion of default MediaWiki message
11514 {{MediaWiki:Mainpage}}
11521 Transclusion of nonexistent MediaWiki message
11523 {{MediaWiki:Mainpagexxx}}
11525 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11530 Transclusion of MediaWiki message with underscore
11532 {{MediaWiki:history_short}}
11539 Transclusion of MediaWiki message with space
11541 {{MediaWiki:history short}}
11548 Invalid header with following text
11558 Section extraction test (section 0)
11578 Section extraction test (section 1)
11600 Section extraction test (section 2)
11621 Section extraction test (section 3)
11641 Section extraction test (section 4)
11665 Section extraction test (section 5)
11685 Section extraction test (section 6)
11706 Section extraction test (section 7)
11726 Section extraction test (section 8)
11746 Section extraction test (section 9)
11767 Section extraction test (section 10)
11787 Section extraction test (nonexistent section 11)
11806 Section extraction test with bogus heading (section 1)
11811 ==bogus== not a legal section
11815 ==bogus== not a legal section
11819 Section extraction test with bogus heading (section 2)
11824 ==bogus== not a legal section
11831 Section extraction test with comment after heading (section 1)
11843 Section extraction test with comment after heading (section 2)
11855 Section extraction test with bogus <nowiki> heading (section 1)
11860 ==bogus== <nowiki>not a legal section</nowiki>
11864 ==bogus== <nowiki>not a legal section</nowiki>
11868 Section extraction test with bogus <nowiki> heading (section 2)
11873 ==bogus== <nowiki>not a legal section</nowiki>
11880 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11881 # instead of respecting commented sections
11883 Section extraction prefixed by comment (section 1)
11894 Section extraction prefixed by comment (section 2)
11905 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11906 # instead of respecting HTML-style headings
11908 Section extraction, mixed wiki and html (section 1)
11924 Section extraction, mixed wiki and html (section 2)
11940 # Formerly testing for bug 3342
11942 Section extraction, heading surrounded by <noinclude>
11946 <noinclude>==unmarked==</noinclude>
11952 # Test behavior of bug 19910
11954 Sectiion with all-equals
11959 The line above must have a trailing space
11962 But just in case it doesn't...
11966 But just in case it doesn't...
11970 Section replacement test (section 0)
12001 Section replacement test (section 1)
12030 Section replacement test (section 2)
12060 Section replacement test (section 3)
12091 Section replacement test (section 4)
12118 Section replacement test (section 5)
12149 Section replacement test (section 6)
12179 Section replacement test (section 7)
12210 Section replacement test (section 8)
12241 Section replacement test (section 9)
12270 Section replacement test (section 10)
12300 Section replacement test with initial whitespace (bug 13728)
12304 Preformatted initial line
12308 Preformatted initial line
12315 Section extraction, heading followed by pre with 20 spaces (bug 6398)
12327 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
12340 Section extraction, <pre> around bogus header (bug 10309)
12357 Section replacement, <pre> around bogus header (bug 10309)
12359 noxml replace=2,"xxx"
12380 Handling of 
 in URLs
12384 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
12391 5 quotes, code coverage +1 line (php)
12398 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
12400 5 quotes, code coverage +1 line (parsoid)
12406 <p><i><b></b></i></p>
12410 Special:Search page linking.
12414 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
12421 title=[[Parser test]]
12426 * {{FULLPAGENAMEE}}
12428 * {{BASEPAGENAMEE}}
12432 * {{ROOTPAGENAMEE}}
12434 * {{TALKPAGENAMEE}}
12435 * {{SUBJECTPAGENAME}}
12436 * {{SUBJECTPAGENAMEE}}
12439 * {{NAMESPACENUMBER}}
12443 * {{SUBJECTSPACEE}}
12444 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
12446 <ul><li> Parser test
12447 </li><li> Parser_test
12448 </li><li> Parser test
12449 </li><li> Parser_test
12450 </li><li> Parser test
12451 </li><li> Parser_test
12452 </li><li> Parser test
12453 </li><li> Parser_test
12454 </li><li> Parser test
12455 </li><li> Parser_test
12456 </li><li> Talk:Parser test
12457 </li><li> Talk:Parser_test
12458 </li><li> Parser test
12459 </li><li> Parser_test
12467 </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>
12471 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
12481 image4 |300px| centre
12482 image5.svg| http://///////
12487 <ul class="gallery">
12488 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12489 <div style="height: 150px;">Image1.png</div>
12490 <div class="gallerytext">
12493 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12494 <div style="height: 150px;">Image2.gif</div>
12495 <div class="gallerytext">
12500 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12501 <div style="height: 150px;">Image3</div>
12502 <div class="gallerytext">
12505 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12506 <div style="height: 150px;">Image4</div>
12507 <div class="gallerytext">
12512 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12513 <div style="height: 150px;">Image5.svg</div>
12514 <div class="gallerytext">
12515 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12519 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12520 <div style="height: 150px;">* image6</div>
12521 <div class="gallerytext">
12529 Gallery (with options)
12531 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12532 File:Nonexistant.jpg|caption
12533 File:Nonexistant.jpg
12534 image:foobar.jpg|some '''caption''' [[Main Page]]
12536 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12539 <ul class="gallery" style="max-width: 226px;_width: 226px;">
12540 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12541 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12542 <div style="height: 70px;">Nonexistant.jpg</div>
12543 <div class="gallerytext">
12548 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12549 <div style="height: 70px;">Nonexistant.jpg</div>
12550 <div class="gallerytext">
12553 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12554 <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>
12555 <div class="gallerytext">
12556 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12560 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12561 <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>
12562 <div class="gallerytext">
12565 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12566 <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>
12567 <div class="gallerytext">
12577 Gallery with wikitext inside caption
12580 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12581 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12584 <ul class="gallery">
12585 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12586 <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>
12587 <div class="gallerytext">
12588 <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>
12592 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12593 <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>
12594 <div class="gallerytext">
12595 <p>This is a test template
12604 gallery (with showfilename option)
12606 <gallery showfilename>
12607 File:Nonexistant.jpg|caption
12608 File:Nonexistant.jpg
12609 image:foobar.jpg|some '''caption''' [[Main Page]]
12613 <ul class="gallery">
12614 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12615 <div style="height: 150px;">Nonexistant.jpg</div>
12616 <div class="gallerytext">
12617 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12622 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12623 <div style="height: 150px;">Nonexistant.jpg</div>
12624 <div class="gallerytext">
12625 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12629 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12630 <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>
12631 <div class="gallerytext">
12632 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12633 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12637 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12638 <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>
12639 <div class="gallerytext">
12640 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12649 Gallery (with namespace-less filenames)
12652 File:Nonexistant.jpg
12658 <ul class="gallery">
12659 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12660 <div style="height: 150px;">Nonexistant.jpg</div>
12661 <div class="gallerytext">
12664 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12665 <div style="height: 150px;">Nonexistant.jpg</div>
12666 <div class="gallerytext">
12669 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12670 <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>
12671 <div class="gallerytext">
12674 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12675 <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>
12676 <div class="gallerytext">
12684 HTML Hex character encoding (spells the word "JavaScript")
12686 JavaScript
12688 <p>JavaScript
12693 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12697 <p>&#xsee;&#XSEE;
12702 HTML Hex character encoding mixed case
12711 __FORCETOC__ override
12723 ISBN 978-0-1234-56 789
12725 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12730 ISBN followed by 5 spaces
12741 ISBN ISBN 1234567890
12743 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12748 Bug 22905: <abbr> followed by ISBN followed by </a>
12750 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12752 <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>
12761 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12766 Double RFC with a wiki link
12770 <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>
12779 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12784 Centre-aligned image
12786 [[Image:foobar.jpg|centre]]
12788 <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>
12795 [[Image:foobar.jpg|none]]
12797 <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>
12802 Width + Height sized image (using px) (height is ignored)
12804 [[Image:foobar.jpg|640x480px]]
12806 <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>
12811 Width-sized image (using px, no following whitespace)
12813 [[Image:foobar.jpg|640px]]
12815 <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>
12820 Width-sized image (using px, with following whitespace - test regression from r39467)
12822 [[Image:foobar.jpg|640px ]]
12824 <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>
12829 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12831 [[Image:foobar.jpg| 640px]]
12833 <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>
12838 Another italics / bold test
12846 # Note the results may be incorrect, as parserTest output included this:
12847 # XML error: Mismatched tag at byte 6120:
12848 # ...<dd> </dt></dl> </dd...
12856 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12867 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12869 Images with the "|" character in the comment
12871 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12873 <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>
12878 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12880 <html><script>alert(1);</script></html>
12882 <p><html><script>alert(1);</script></html>
12887 HTML with raw HTML ($wgRawHtml==true)
12891 <html><script>alert(1);</script></html>
12893 <p><script>alert(1);</script>
12898 Parents of subpages, one level up
12900 subpage title=[[Subpage test/L1/L2/L3]]
12904 <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>
12910 Parents of subpages, one level up, not named
12912 subpage title=[[Subpage test/L1/L2/L3]]
12916 <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>
12923 Parents of subpages, two levels up
12925 subpage title=[[Subpage test/L1/L2/L3]]
12931 <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
12932 </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>
12937 Parents of subpages, two levels up, without trailing slash or name.
12939 subpage title=[[Subpage test/L1/L2/L3]]
12948 Parents of subpages, two levels up, with lots of extra trailing slashes.
12950 subpage title=[[Subpage test/L1/L2/L3]]
12954 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12959 Subpage test/L1/L2/L3Sibling
12965 Transclusion of a sibling page (one level up)
12967 subpage title=[[Subpage test/L1/L2/L3]]
12976 Transclusion of a child page
12978 subpage title=[[Subpage test/L1/L2]]
12987 Non-transclusion because of too many up levels
12989 subpage title=[[Subpage test/L1/L2/L3]]
12991 {{../../../../More than parent}}
12993 <p>{{../../../../More than parent}}
12998 Definition list code coverage
13004 <dl><dt> title  </dt><dd> def
13005 </dd><dt> title </dt><dd> def
13006 </dd><dt>title</dt><dd> def
13012 Don't fall for the self-closing div
13014 <div>hello world</div/>
13016 <div>hello world</div>
13025 <p>[[:Template:Msg]]
13034 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
13038 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
13040 Always escape literal '>' in output, not just after '<'
13054 <p>This is a test template
13055 This is a test template
13067 Inclusion of !userCanEdit() content
13071 <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>
13077 Out-of-order TOC heading levels
13086 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13088 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
13090 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
13091 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
13094 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
13096 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
13097 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
13102 <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>
13103 <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>
13104 <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>
13105 <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>
13106 <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>
13107 <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>
13113 ISBN with a dummy number
13123 ISBN with space-delimited number
13127 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
13133 ISBN with multiple spaces, no number
13152 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13153 </p><p>ISBN 12345678901
13159 ISBN with trailing year (bug 8110)
13161 ISBN 1-234-56789-0 - 2006
13163 ISBN 1 234 56789 0 - 2006
13165 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
13166 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
13174 {{anchorencode:foo bar©#%n}}
13176 <p>foo_bar.C2.A9.23.25n
13181 anchorencode trims spaces
13183 {{anchorencode: __pretty__please__}}
13190 anchorencode deals with links
13192 {{anchorencode: [[hello|world]] [[hi]]}}
13199 anchorencode deals with templates
13201 {{anchorencode: {{Foo}} }}
13208 anchorencode encodes like the TOC generator: (bug 18431)
13210 === _ +:.3A%3A&&]] ===
13211 {{anchorencode: _ +:.3A%3A&&]] }}
13214 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
13215 <p>.2B:.3A.253A.26.26.5D.5D
13220 Bug 6200: blockquotes and paragraph formatting
13241 Bug 8293: Use of center tag ruins paragraph formatting
13262 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
13266 <span><s>x</span></s>
13268 <p><span><s>x</span></s></span>
13273 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
13277 <span><s>x</span></s>
13279 <p><span><s>x</s></span><s></s>
13284 ### Language variants related tests
13287 Self-link in language variants
13289 title=[[Dunav]] language=sr
13291 Both [[Dunav]] and [[Дунав]] are names for this river.
13293 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
13304 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
13306 title=[[Duna]] language=sr
13308 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
13310 <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.
13315 Link to pages in language variants
13319 Main Page can be written as [[Маин Паге]]
13321 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
13327 Multiple links to pages in language variants
13331 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
13333 <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>.
13339 Simple template in language variants
13345 <p>This is a test template
13351 Template with explicit namespace in language variants
13357 <p>This is a test template
13363 Basic test for template parameter in language variants
13367 {{парамтест|param=foo}}
13369 <p>This is a test template with parameter foo
13375 Simple category in language variants
13379 [[Category:МедиаWики Усер'с Гуиде]]
13381 <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>
13398 Don't convert blue categorylinks to another variant (bug 33210)
13402 [[A]][[Category:分类]]
13404 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
13409 Stripping -{}- tags (language variants)
13413 Latin proverb: -{Ne nuntium necare}-
13415 <p>Latin proverb: Ne nuntium necare
13421 Prevent conversion with -{}- tags (language variants)
13423 language=sr variant=sr-ec
13425 Latinski: -{Ne nuntium necare}-
13427 <p>Латински: Ne nuntium necare
13433 Prevent conversion of text with -{}- tags (language variants)
13435 language=sr variant=sr-ec
13437 Latinski: -{Ne nuntium necare}-
13439 <p>Латински: Ne nuntium necare
13445 Prevent conversion of links with -{}- tags (language variants)
13447 language=sr variant=sr-ec
13451 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13457 -{}- tags within headlines (within html for parserConvert())
13459 language=sr variant=sr-ec
13463 <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>
13469 Explicit definition of language variant alternatives
13471 language=zh variant=zh-tw
13473 -{zh:China;zh-tw:Taiwan}-, not China
13475 <p>Taiwan, not China
13481 Conversion around HTML tags
13483 language=sr variant=sr-ec
13485 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13486 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13489 <span title="ЛаCтин">ски</span>
13495 Explicit session-wise language variant mapping (A flag and - flag)
13497 language=zh variant=zh-tw
13499 Taiwan is not China.
13500 But -{A|zh:China;zh-tw:Taiwan}- is China,
13501 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13502 and -{China}- is China.
13504 <p>Taiwan is not China.
13505 But Taiwan is Taiwan,
13506 (This should be stripped!)
13507 and China is China.
13512 Explicit session-wise language variant mapping (H flag for hide)
13514 language=zh variant=zh-tw
13516 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13519 <p>(This should be stripped!)
13525 Adding explicit conversion rule for title (T flag)
13527 language=zh variant=zh-tw showtitle
13529 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13532 <p>Should be stripped!
13537 Testing that changing the language variant here in the tests actually works
13539 language=zh variant=zh showtitle
13541 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13544 <p>Should be stripped!
13549 Recursive conversion of alt and title attrs shouldn't clear converter state
13551 language=zh variant=zh-cn showtitle
13553 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13554 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13558 Should be stripped<span title="Exclamation">!</span>
13563 Bug 24072: more test on conversion rule for title
13565 language=zh variant=zh-tw showtitle
13567 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13568 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13571 <p>This should be stripped!
13572 This won't take interferes with the title rule.
13577 Partly disable title conversion if variant == main language code
13579 language=zh variant=zh title=[[ZH]] showtitle
13581 -{T|zh-cn:CN;zh-tw:TW}-
13589 Partly disable title conversion if variant == main language code, more
13591 language=zh variant=zh title=[[ZH]] showtitle
13601 Raw output of variant escape tags (R flag)
13603 language=zh variant=zh-tw
13605 Raw: -{R|zh:China;zh-tw:Taiwan}-
13607 <p>Raw: zh:China;zh-tw:Taiwan
13612 Nested using of manual convert syntax
13614 language=zh variant=zh-hk
13616 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13618 <p>Nested: Hello Hong Kong!
13623 Proper conversion of text in external links
13625 language=sr variant=sr-ec
13627 http://www.google.com
13628 gopher://www.google.com
13629 [http://www.google.com http://www.google.com]
13630 [gopher://www.google.com gopher://www.google.com]
13631 [https://www.google.com irc://www.google.com]
13632 [ftp://www.google.com www.google.com/ftp://dir]
13633 [//www.google.com www.google.com]
13635 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13636 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13637 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13638 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13639 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13640 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13641 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13646 Do not convert roman numbers to language variants
13648 language=sr variant=sr-ec
13652 <p>Фридрих IV је цар.
13657 Unclosed language converter markup "-{"
13668 Don't convert raw rule "-{R|=>}-" to "=>"
13685 Bug 529: Uncovered bullet
13695 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13696 # Templates in Wikipedia rely on this behavior, as tidy has always been
13697 # enabled there. These tests are normally run *without* tidy, so specify the
13698 # full output here.
13699 # To test realistic parsing behavior, apply a tidy-like transformation to both
13700 # the expected output and your parser's output.
13702 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13704 ******* Foo {{bullet}}
13706 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13719 Bug 529: Uncovered table already at line-start
13742 Bug 529: Uncovered bullet in parser function result
13744 * Foo {{lc:{{bullet}} }}
13753 Bug 5678: Double-parsed template argument
13755 {{lc:{{{1}}}|hello}}
13762 Bug 5678: Double-parsed template invocation
13764 {{lc:{{paramtest {{!}} param = hello }} }}
13766 <p>{{paramtest | param = hello }}
13771 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13774 title=[[Main Page]]
13776 {{PRVNÍVELKÉ:ěščř}}
13777 {{prvnívelké:ěščř}}
13797 Morwen/13: Unclosed link followed by heading
13804 <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>
13809 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13816 <h1><span class="mw-headline" id="heading">heading</span></h1>
13821 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13828 <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>
13843 Paragraphs inside divs (no extra line breaks)
13855 Paragraphs inside divs (extra line break on open)
13870 Paragraphs inside divs (extra line break on close)
13885 Paragraphs inside divs (extra line break on open and close)
13902 Nesting tags, paragraphs on lines which begin with <div>
13906 <div></div><strong>A
13915 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13917 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13919 <blockquote>Line one
13921 Line two</blockquote>
13923 <blockquote>Line one
13924 Line two</blockquote>
13929 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13934 Line two</blockquote>
13939 Line two</blockquote>
13944 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13946 <blockquote>Line one
13951 <blockquote>Line one
13959 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13976 Paragraphs inside blockquotes/divs (no extra line breaks)
13978 <blockquote><div>Line one
13980 Line two</div></blockquote>
13982 <blockquote><div>Line one
13983 Line two</div></blockquote>
13988 Paragraphs inside blockquotes/divs (extra line break on open)
13993 Line two</div></blockquote>
13998 Line two</div></blockquote>
14003 Paragraphs inside blockquotes/divs (extra line break on close)
14005 <blockquote><div>Line one
14008 </div></blockquote>
14010 <blockquote><div>Line one
14013 </div></blockquote>
14018 Paragraphs inside blockquotes/divs (extra line break on open and close)
14024 </div></blockquote>
14030 </div></blockquote>
14035 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
14037 wgLinkHolderBatchSize=0
14043 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
14044 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
14045 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
14050 Free external link invading image caption
14052 [[Image:Foobar.jpg|thumb|http://x|hello]]
14054 <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>
14059 Bug 15196: localised external link numbers
14063 [http://en.wikipedia.org/]
14065 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
14070 Multibyte character in padleft
14072 {{padleft:-Hello|7|Æ}}
14079 Multibyte character in padright
14081 {{padright:Hello-|7|Æ}}
14088 formatdate parser function
14090 {{#formatdate:2009-03-24}}
14092 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
14097 formatdate parser function, with default format
14099 {{#formatdate:2009-03-24|mdy}}
14101 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
14106 Spacing of numbers in formatted dates
14108 {{#formatdate:January 15}}
14110 <p><span class="mw-formatted-date" title="01-15">January 15</span>
14115 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
14117 language=nl title=[[MediaWiki:Common.css]]
14119 {{#formatdate:2009-03-24|dmy}}
14121 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
14134 Edit comment with link
14138 I like the [[Main Page]] a lot
14140 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
14144 Edit comment with link and link text
14148 I like the [[Main Page|best pages]] a lot
14150 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14154 Edit comment with link and link text with suffix
14158 I like the [[Main Page|best page]]s a lot
14160 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14164 Edit comment with section link (non-local, eg in history list)
14166 comment title=[[Main Page]]
14168 /* External links */ removed bogus entries
14170 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14174 Edit comment with section link and text before it (non-local, eg in history list)
14176 comment title=[[Main Page]]
14178 pre-comment text /* External links */ removed bogus entries
14180 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>
14184 Edit comment with section link (local, eg in diff view)
14186 comment local title=[[Main Page]]
14188 /* External links */ removed bogus entries
14190 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14194 Edit comment with subpage link (bug 14080)
14198 title=[[Subpage test]]
14200 Poked at a [[/subpage]] here...
14202 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
14206 Edit comment with subpage link and link text (bug 14080)
14210 title=[[Subpage test]]
14212 Poked at a [[/subpage|neat little page]] here...
14214 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
14218 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
14221 title=[[Subpage test]]
14223 Poked at a [[/subpage]] here...
14225 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
14229 Edit comment with bare anchor link (local, as on diff)
14233 title=[[Main Page]]
14237 <a href="#section">#section</a>
14241 Edit comment with bare anchor link (non-local, as on history)
14244 title=[[Main Page]]
14248 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
14252 Anchor starting with underscore
14256 <p><a href="#_ref">One</a>
14261 Id starting with underscore
14263 <div id="_ref"></div>
14265 <div id="_ref"></div>
14270 Space normalisation on autocomment (bug 22784)
14273 title=[[Main Page]]
14275 /* __hello__world__ */
14277 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
14281 percent-encoding and + signs in comments (Bug 26410)
14285 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
14287 <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>
14291 Bad images - basic functionality
14300 Bad images - bug 16039: text after bad image disappears
14314 Verify that displaytitle works (bug #22501) no displaytitle
14318 wgAllowDisplayTitle=true
14319 wgRestrictDisplayTitle=false
14321 this is not the the title
14324 <p>this is not the the title
14329 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
14334 wgAllowDisplayTitle=true
14335 wgRestrictDisplayTitle=false
14337 this is not the the title
14338 {{DISPLAYTITLE:whatever}}
14341 <p>this is not the the title
14346 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
14351 wgAllowDisplayTitle=true
14352 wgRestrictDisplayTitle=true
14354 this is not the the title
14355 {{DISPLAYTITLE:whatever}}
14358 <p>this is not the the title
14363 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
14368 wgAllowDisplayTitle=true
14369 wgRestrictDisplayTitle=true
14371 this is not the the title
14372 {{DISPLAYTITLE:screen}}
14375 <p>this is not the the title
14380 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
14385 wgAllowDisplayTitle=false
14387 this is not the the title
14388 {{DISPLAYTITLE:screen}}
14391 <p>this is not the the title
14392 <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>
14397 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
14402 wgAllowDisplayTitle=false
14404 this is not the the title
14407 <p>this is not the the title
14412 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
14417 wgAllowDisplayTitle=true
14418 wgRestrictDisplayTitle=true
14420 this is not the the title
14421 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
14423 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
14424 <p>this is not the the title
14429 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
14434 wgAllowDisplayTitle=true
14435 wgRestrictDisplayTitle=true
14437 this is not the the title
14438 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
14440 <span style="color: red;">s</span>creen
14441 <p>this is not the the title
14446 preload: check <noinclude> and <includeonly>
14450 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
14456 preload: check <onlyinclude>
14460 Goodbye <onlyinclude>Hello world</onlyinclude>
14466 preload: can pass tags through if we want to
14470 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
14472 <includeonly>Hello world</includeonly>
14476 preload: check that it doesn't try to do tricks
14480 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14482 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14486 Play a bit with r67090 and bug 3158
14490 <div style="width:50% !important"> </div>
14491 <div style="width:50% !important"> </div>
14492 <div style="width:50% !important"> </div>
14493 <div style="border : solid;"> </div>
14495 <div style="width:50% !important"> </div>
14496 <div style="width:50% !important"> </div>
14497 <div style="width:50% !important"> </div>
14498 <div style="border : solid;"> </div>
14503 HTML5 data attributes
14505 <span data-foo="bar">Baz</span>
14506 <p data-abc-def_hij="">Quuz</p>
14508 <p><span data-foo="bar">Baz</span>
14510 <p data-abc-def_hij="">Quuz</p>
14515 percent-encoding and + signs in internal links (Bug 26410)
14517 [[User:+%]] [[Page+title%]]
14518 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14519 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14520 [[%33%45]] [[%33%45+]]
14522 <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>
14523 <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>
14524 <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>
14525 <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>
14530 Special characters in embedded file links (bug 27679)
14532 [[File:Contains & ampersand.jpg]]
14533 [[File:Does not exist.jpg|Title with & ampersand]]
14535 <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>
14536 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14542 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14544 Text's been normalized?
14546 <p>Text's been normalized?
14551 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14553 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14555 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14560 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14562 [http://www.example.org/ ideograms]
14564 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14569 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14571 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14573 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14597 Bug 31098 Template which includes system messages which includes the template
14601 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14602 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14607 Bug31490 Turkish: ucfirst 'blah'
14618 Bug31490 Turkish: ucfirst 'ix'
14629 Bug31490 Turkish: lcfirst 'BLAH'
14640 Bug31490 Turkish: ucfırst (with a dotless i)
14646 <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>
14651 Bug31490 ucfırst (with a dotless i) with English language
14657 <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>
14662 Bug 26375: TOC with italics
14664 title=[[Main Page]]
14667 == ''Lost'' episodes ==
14669 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14671 <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>
14674 <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>
14679 Bug 26375: TOC with bold
14681 title=[[Main Page]]
14684 == '''should be bold''' then normal text ==
14686 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14688 <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>
14691 <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>
14696 Bug 33845: Headings become cursive in TOC when they contain an image
14698 title=[[Main Page]]
14701 == Image [[Image:foobar.jpg]] ==
14703 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14705 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14708 <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>
14713 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14715 title=[[Main Page]]
14718 == <blockquote>Quote</blockquote> ==
14720 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14722 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14725 <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>
14730 Unclosed tags in TOC
14732 title=[[Main Page]]
14736 <small>Hanc marginis exiguitas non caperet.</small>
14739 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14741 <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>
14744 <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>
14745 <p><small>Hanc marginis exiguitas non caperet.</small>
14751 Multiple tags in TOC
14754 == <i>Foo</i> <b>Bar</b> ==
14756 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14758 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14760 <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>
14761 <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>
14764 <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>
14765 <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>
14770 Tags with parameters in TOC
14773 == <sup class="in-h2">Hello</sup> ==
14775 == <sup class="a > b">Evilbye</sup> ==
14777 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14779 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14780 <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>
14783 <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>
14784 <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>
14789 span tags with directionality in TOC
14792 == <span dir="ltr">C++</span> ==
14794 == <span dir="rtl">זבנג!</span> ==
14796 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14798 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14800 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14802 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14804 <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>
14805 <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>
14806 <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>
14807 <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>
14808 <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>
14811 <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>
14812 <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>
14813 <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>
14814 <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>
14815 <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>
14822 == {{int:headline_sample}} ==
14826 Bug 32057: Title needed when expanding <h> nodes.
14828 title=[[Main Page]]
14832 <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>
14837 Strip marker in urlencode
14839 {{urlencode:x<nowiki/>y}}
14840 {{urlencode:x<nowiki/>y|wiki}}
14841 {{urlencode:x<nowiki/>y|path}}
14868 Strip marker in formatNum
14870 {{formatnum:1<nowiki/>2}}
14871 {{formatnum:1<nowiki/>2|R}}
14879 Check noCommafy in formatNum
14883 {{formatnum:123456.78}}
14884 {{formatnum:123456.78|NOSEP}}
14892 Strip marker in grammar
14896 {{grammar:elative|foo<nowiki/>bar}}
14903 Strip marker in padleft
14905 {{padleft:|2|x<nowiki/>y}}
14912 Strip marker in padright
14914 {{padright:|2|x<nowiki/>y}}
14921 Strip marker in anchorencode
14923 {{anchorencode:x<nowiki/>y}}
14930 nowiki inside link inside heading (bug 18295)
14932 ==[[foo|x<nowiki>y</nowiki>z]]==
14934 <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>
14939 new support for bdi element (bug 31817)
14941 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14943 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14948 Ignore pipe between table row attributes
14952 |- id=foo | style='color: red'
14960 <tr id="foo" style="color: red">
14967 Gallery override link with WikiLink (bug 34852)
14970 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14973 <ul class="gallery">
14974 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14975 <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>
14976 <div class="gallerytext">
14986 Gallery override link with absolute external link (bug 34852)
14989 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14992 <ul class="gallery">
14993 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14994 <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>
14995 <div class="gallerytext">
15005 Gallery override link with malicious javascript (bug 34852)
15008 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
15011 <ul class="gallery">
15012 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15013 <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>
15014 <div class="gallerytext">
15024 Gallery with invalid title as link (bug 43964)
15027 File:foobar.jpg|link=<
15030 <ul class="gallery">
15031 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15032 <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>
15033 <div class="gallerytext">
15041 Language parser function
15050 Padleft and padright as substr
15052 {{padleft:|3|abcde}}
15053 {{padright:|3|abcde}}
15061 Special parser function
15063 {{#special:RandomPage}}
15064 {{#special:BaDtItLe}}
15065 {{#special:Foobar}}
15074 Bug 34939 - Case insensitive link parsing ([HttP://])
15076 [HttP://MediaWiki.Org/]
15078 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
15083 Bug 34939 - Case insensitive link parsing ([HttP:// title])
15085 [HttP://MediaWiki.Org/ MediaWiki]
15087 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
15092 Bug 34939 - Case insensitive link parsing (HttP://)
15094 HttP://MediaWiki.Org/
15096 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
15102 ### Parsoids-specific tests
15103 ### Parsoid-PHP parser incompatibilities
15106 1. SOL-sensitive wikitext tokens as template-args
15108 parsoid=wt2html,wt2wt
15114 <span about="#mwt1" typeof="mw:Transclusion">
15115 </span><ul about="#mwt1"><li>a</li></ul>
15116 <span about="#mwt2" typeof="mw:Transclusion">
15117 </span><ol about="#mwt2"><li>a</li></ol>
15118 <span about="#mwt3" typeof="mw:Transclusion">
15119 </span><dl about="#mwt3"><dd>a</dd></dl>
15122 #### ----------------------------------------------------------------
15123 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
15124 #### tags. Parsoid's output for these tags differs from that of the
15126 #### ----------------------------------------------------------------
15129 Ref: 1. ref-location should be replaced with an index span
15134 B <ref name="x">foo</ref>
15137 <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>
15138 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>
15139 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>
15143 Ref: 2. ref-tags with identical names should all get the same index
15147 A <ref name="x">foo</ref>
15150 <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>
15151 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>
15155 Ref: 3. spaces in ref-names should be ignored
15159 A <ref name="x">foo</ref>
15160 B <ref name=" x " />
15163 <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>
15164 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>
15165 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>
15169 Ref: 4. 'constructor' should be accepted as a valid ref-name
15170 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
15174 A <ref name="constructor">foo</ref>
15176 <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>
15180 Ref: 5. body should accept generic wikitext
15185 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
15190 <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>
15192 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15193 <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>
15198 Ref: 6. indent-pres should not be output in ref-body
15210 <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>
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> foo
15220 Ref: 6. No p-wrapping in ref-body
15239 <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>
15241 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15242 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15256 Ref: 8. transclusion wikitext has lower precedence
15260 A <ref> foo {{echo|</ref> B C}}
15264 <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>
15266 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15267 <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>
15271 Ref: 9. unclosed comments should not leak out of ref-body
15275 A <ref> foo <!--</ref> B C
15279 <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>
15281 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15282 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
15286 Ref: 10. Unclosed HTML tags should not leak out of ref-body
15290 A <ref> <b> foo </ref> B C
15294 <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>
15296 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15297 <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>
15301 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
15308 <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
15309 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>
15313 Ref: 12. ref-tags act as trailing newline migration barrier
15317 <!--the newline at the end of this line moves out of the p-tag-->a
15319 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
15324 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
15327 <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>
15328 <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>
15335 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
15343 <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
15344 <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>
15348 Ref: 14. A nested ref-tag should be emitted as plain text
15352 <ref>foo <ref>bar</ref> baz</ref>
15356 <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>
15358 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
15359 <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>
15363 Ref: 15. ref-tags with identical names should get identical indexes
15367 A1 <ref name="a">foo</ref> A2 <ref name="a" />
15368 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
15372 <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>
15373 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>
15375 <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>
15379 References: 1. references tag without any refs should be handled properly
15385 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
15389 References: 2. references tag with group only outputs references from that group
15393 A <ref group="a">foo</ref>
15394 B <ref group="b">bar</ref>
15396 <references group='a' />
15398 <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>
15399 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>
15401 <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>
15405 References: 3. ref list should be cleared after processing references
15417 <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>
15419 <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>
15421 <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>
15423 <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>
15427 References: 4. only referenced group should be cleared after processing references
15431 A <ref group="a">afoo</ref>
15434 <references group="a"/>
15440 <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>
15441 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>
15443 <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>
15445 <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>
15447 <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>
15451 References: 5. ref tags in references should be processed while ignoring all other content
15456 B <ref name="b">bar</ref>
15459 <ref name="a">foo</ref>
15460 This should just get lost.
15463 <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>
15464 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>
15466 <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>
15470 References: 6. <references /> from a transclusion
15474 {{echo|<references />}}
15476 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15480 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
15484 A <ref>foo bar for a</ref>
15490 <ref name="b">foo</ref>
15493 <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>
15494 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>
15496 <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>
15498 <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>
15502 #### ----------------------------------------------------------------
15503 #### The following section of tests are primarily to test
15504 #### wikitext escaping capabilities of Parsoid. Given that
15505 #### escaping can be done any number of ways, the wikitext (input)
15506 #### is always adjusted to reflect how Parsoid adds nowiki
15509 #### We are marking several tests as parsoid-only since the
15510 #### HTML in the result section is different from what the
15511 #### PHP parser generates for it.
15512 #### ----------------------------------------------------------------
15515 #### --------------- Headings ---------------
15517 #### 1. Nested inside html <h1>=foo=</h1>
15518 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15519 #### 3. Nested inside html with wikitext split by html tags
15520 #### 4. No escape needed
15521 #### 5. Empty headings <h1></h1>
15522 #### 6. Heading chars in SOL context
15523 #### ----------------------------------------
15525 Headings: 0. Unnested
15529 <nowiki>=foo=</nowiki>
15531 <nowiki> =foo= </nowiki>
15533 <nowiki>=foo=</nowiki>
15535 =foo''a''<nowiki>=</nowiki>
15537 <p><span typeof="mw:Nowiki">=foo=</span></p>
15539 <p><span typeof="mw:Nowiki"> =foo= </span>
15541 <span typeof="mw:Nowiki">=foo=</span></p>
15543 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15547 Headings: 1. Nested inside html
15551 =<nowiki>=foo=</nowiki>=
15553 ==<nowiki>=foo=</nowiki>==
15555 ===<nowiki>=foo=</nowiki>===
15557 ====<nowiki>=foo=</nowiki>====
15559 =====<nowiki>=foo=</nowiki>=====
15561 ======<nowiki>=foo=</nowiki>======
15563 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15564 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15565 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15566 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15567 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15568 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15572 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15577 <nowiki>*</nowiki>bar
15583 <nowiki>=bar=</nowiki>
15591 Headings: 3. Nested inside html with wikitext split by html tags
15595 =='''bold'''<nowiki>foo=</nowiki>=
15597 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15601 Headings: 4a. No escaping needed (testing just h1 and h2)
15619 =<nowiki>=</nowiki>=
15627 <h1><i>=</i>foo=</h1>
15628 <h1><span typeof="mw:Nowiki">=</span></h1>
15632 Headings: 4b. No escaping needed (inside p-tags)
15647 Headings: 5. Empty headings
15659 =====<nowiki/>=====
15661 ======<nowiki/>======
15672 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15676 <nowiki>=a=</nowiki>
15678 <nowiki>=a=</nowiki>
15680 <nowiki>=a=</nowiki>
15682 <nowiki>=a=</nowiki>
15691 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15719 Headings: 6c. Heading chars in SOL context (leading newline break)
15724 <nowiki>=b=</nowiki>
15731 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15735 <!--c0--><nowiki>=a=</nowiki>
15737 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
15739 <p><!--c0-->=a=</p>
15740 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15744 Headings: 6d. Heading chars in SOL context (No escaping needed)
15753 #### --------------- Lists ---------------
15754 #### 0. Outside nests (*foo, etc.)
15755 #### 1. Nested inside html <ul><li>*foo</li></ul>
15756 #### 2. Inside definition lists
15757 #### 3. Only bullets at start should be escaped
15758 #### 4. No escapes needed
15759 #### 5. No unnecessary escapes
15760 #### 6. Escape bullets in SOL position
15761 #### 7. Escape bullets in a multi-line context
15762 #### ----------------------------------------
15765 Lists: 0. Outside nests
15767 <nowiki>*</nowiki>foo
15769 <nowiki>#</nowiki>foo
15777 Lists: 1. Nested inside html
15779 *<nowiki>*foo</nowiki>
15781 *<nowiki>#foo</nowiki>
15783 *<nowiki>:foo</nowiki>
15785 *<nowiki>;foo</nowiki>
15787 #<nowiki>*foo</nowiki>
15789 #<nowiki>#foo</nowiki>
15791 #<nowiki>:foo</nowiki>
15793 #<nowiki>;foo</nowiki>
15815 Lists: 2. Inside definition lists
15817 ;<nowiki>;foo</nowiki>
15819 ;<nowiki>:foo</nowiki>
15821 ;<nowiki>:foo</nowiki>
15824 :<nowiki>:foo</nowiki>
15839 Lists: 3. Only bullets at start of text should be escaped
15841 *<nowiki>*foo*bar</nowiki>
15843 *<nowiki>*foo</nowiki>''it''*bar
15847 <ul><li>*foo<i>it</i>*bar
15853 Lists: 4. No escapes needed
15865 <ul><li><i>foo</i>*bar
15867 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15872 Lists: 5. No unnecessary escapes
15874 * bar <span><nowiki>[[foo]]</nowiki></span>
15876 *=bar <span><nowiki>[[foo]]</nowiki></span>
15878 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15880 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15882 *=bar <span>foo]]</span>=
15886 <ul><li> bar <span>[[foo]]</span>
15888 <ul><li>=bar <span>[[foo]]</span>
15890 <ul><li>[[bar <span>[[foo]]</span>
15892 <ul><li>]]bar <span>[[foo]]</span>
15894 <ul><li>=bar <span>foo]]</span>=
15896 <ul><li> <s></s>: a
15902 Lists: 6. Escape bullets in SOL position
15906 <!--cmt--><nowiki>*foo</nowiki>
15908 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15912 Lists: 7. Escape bullets in a multi-line context
15915 <nowiki>*</nowiki>b
15922 #### --------------- HRs ---------------
15923 #### 1. Single line
15924 #### -----------------------------------
15927 HRs: 1. Single line
15931 ----<nowiki>----</nowiki>
15935 <hr><span typeof="mw:Nowiki">----</span>
15940 #### --------------- Tables ---------------
15941 #### 1a. Simple example
15942 #### 1b. No escaping needed (!foo)
15943 #### 1c. No escaping needed (|foo)
15944 #### 1d. No escaping needed (|}foo)
15946 #### 2a. Nested in td (<td>foo|bar</td>)
15947 #### 2b. Nested in td (<td>foo||bar</td>)
15948 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15950 #### 3a. Nested in th (<th>foo!bar</th>)
15951 #### 3b. Nested in th (<th>foo!!bar</th>)
15952 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15956 #### 4c. No escaping needed
15957 #### --------------------------------------
15960 Tables: 1a. Simple example
15971 Tables: 1b. No escaping needed
15980 Tables: 1c. No escaping needed
15989 Tables: 1d. No escaping needed
15998 Tables: 2a. Nested in td
16003 |<nowiki>foo|bar</nowiki>
16007 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
16011 Tables: 2b. Nested in td
16016 |<nowiki>foo||bar</nowiki>
16017 |''it''<nowiki>foo||bar</nowiki>
16021 <td><span typeof="mw:Nowiki">foo||bar</span></td>
16022 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
16026 Tables: 2c. Nested in td -- no escaping needed
16034 <table><tbody><tr><td>foo!!bar
16035 </td></tr></tbody></table>
16040 Tables: 3a. Nested in th
16048 <table><tbody><tr><th>foo!bar
16049 </th></tr></tbody></table>
16054 Tables: 3b. Nested in th
16059 !<nowiki>foo!!bar</nowiki>
16063 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
16068 Tables: 3c. Nested in th -- no escaping needed
16073 !<nowiki>foo||bar</nowiki>
16077 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
16081 Tables: 4a. Escape -
16089 |<nowiki>-bar</nowiki>
16093 <tr><th>-bar</th></tr>
16095 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
16099 Tables: 4b. Escape +
16107 |<nowiki>+bar</nowiki>
16111 <tr><th>+bar</th></tr>
16113 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
16117 Tables: 4c. No escaping needed
16136 <tr><td>foo-bar</td><td>foo+bar</td></tr>
16137 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
16145 ### SSS FIXME: Disabled right now because accurate html2wt
16146 ### on this snippet requires data-parsoid flags that we've
16147 ### stripped out of these tests. We should scheme how we
16148 ### we want to handle these kind of tests that require
16149 ### data-parsoid flags for accurate html2wt serialization
16152 Tables: 4d. No escaping needed
16170 #### --------------- Links ----------------
16171 #### 1. Quote marks in link text
16172 #### 2. Wikilinks: Escapes needed
16173 #### 3. Wikilinks: No escapes needed
16174 #### 4. Extlinks: Escapes needed
16175 #### 5. Extlinks: No escapes needed
16176 #### --------------------------------------
16178 Links 1. Quote marks in link text
16182 [[Foo|Foo<nowiki>''boo''</nowiki>]]
16184 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
16188 Links 2. WikiLinks: Escapes needed
16192 [[Foo|<nowiki>[Foobar]</nowiki>]]
16193 [[Foo|<nowiki>Foobar]</nowiki>]]
16194 [[Foo|x [Foobar] x]]
16195 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
16196 [[Foo|<nowiki>[[Bar]]</nowiki>]]
16197 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
16198 [[Foo|<nowiki>|Bar</nowiki>]]
16199 [[Foo|<nowiki>]]bar</nowiki>]]
16200 [[Foo|<nowiki>[[bar</nowiki>]]
16201 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
16203 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
16204 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
16205 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
16206 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
16207 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
16208 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
16209 <a href="Foo" rel="mw:WikiLink">|Bar</a>
16210 <a href="Foo" rel="mw:WikiLink">]]bar</a>
16211 <a href="Foo" rel="mw:WikiLink">[[bar</a>
16212 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
16216 Links 3. WikiLinks: No escapes needed
16223 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
16224 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
16228 Links 4. ExtLinks: Escapes needed
16232 [http://google.com <nowiki>[google]</nowiki>]
16233 [http://google.com <nowiki>google]</nowiki>]
16235 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
16236 <a href="http://google.com" rel="mw:ExtLink">google]</a>
16240 Links 5. ExtLinks: No escapes needed
16244 [http://google.com [google]
16246 <a href="http://google.com" rel="mw:ExtLink">[google</a>
16249 #### --------------- Quotes ---------------
16250 #### 1. Quotes inside <b> and <i>
16251 #### 2. Link fragments separated by <i> and <b> tags
16252 #### 3. Link fragments inside <i> and <b>
16253 #### 4. No escaping needed
16254 #### --------------------------------------
16256 1. Quotes inside <b> and <i>
16258 parsoid=html2wt,wt2wt
16260 ''<nowiki>'foo'</nowiki>''
16261 ''<nowiki>''foo''</nowiki>''
16262 ''<nowiki>'''foo'''</nowiki>''
16264 '''<nowiki>'foo'</nowiki>'''
16265 '''<nowiki>''foo''</nowiki>'''
16266 '''<nowiki>'''foo'''</nowiki>'''
16267 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
16268 '''foo'''<nowiki/>'s
16271 '<nowiki/>''foo''<nowiki/>'
16273 '''foo'''<nowiki/>'
16274 '<nowiki/>'''foo'''<nowiki/>'
16283 <b>foo'<i>bar'</i>baz</b>
16294 2. Link fragments separated by <i> and <b> tags
16296 [[''foo''<nowiki>hello]]</nowiki>
16298 [['''foo'''<nowiki>hello]]</nowiki>
16300 <p>[[<i>foo</i>hello]]
16301 </p><p>[[<b>foo</b>hello]]
16306 3. Link fragments inside <i> and <b>
16307 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
16308 this is one of the shortcomings of this format)
16310 ''[[foo''<nowiki>]]</nowiki>
16312 '''[[foo'''<nowiki>]]</nowiki>
16315 </p><p><b>[[foo</b>]]
16320 4. No escaping needed
16322 '<span>''bar''</span>'
16323 '<span>'''bar'''</span>'
16325 <p>'<span><i>bar</i></span>'
16326 '<span><b>bar</b></span>'
16330 #### ----------- Paragraphs ---------------
16331 #### 1. No unnecessary escapes
16332 #### --------------------------------------
16335 1. No unnecessary escapes
16337 bar <span><nowiki>[[foo]]</nowiki></span>
16339 =bar <span><nowiki>[[foo]]</nowiki></span>
16341 [[bar <span><nowiki>[[foo]]</nowiki></span>
16343 ]]bar <span><nowiki>[[foo]]</nowiki></span>
16345 =bar <span>foo]]</span><nowiki>=</nowiki>
16347 <p>bar <span>[[foo]]</span>
16348 </p><p>=bar <span>[[foo]]</span>
16349 </p><p>[[bar <span>[[foo]]</span>
16350 </p><p>]]bar <span>[[foo]]</span>
16351 </p><p>=bar <span>foo]]</span>=
16355 #### ----------------------- PRE --------------------------
16356 #### 1. Leading whitespace in SOL context should be escaped
16357 #### ------------------------------------------------------
16359 1. Leading whitespace in SOL context should be escaped
16363 <nowiki> </nowiki>a
16365 <nowiki> </nowiki> a
16367 <nowiki> </nowiki>a(tab)
16369 <nowiki> </nowiki> a
16371 <nowiki> </nowiki> a
16374 <nowiki> </nowiki>b
16377 <nowiki> </nowiki>b
16380 <nowiki> </nowiki> b
16386 <p><!--cmt--> a</p>
16395 #### --------------- HTML tags ---------------
16398 #### 3. multi-line html tag
16399 #### -----------------------------------------
16405 <a href="http://google.com">google</a>
16407 <a href="http://google.com">google</a>
16413 <nowiki><div>foo</div>
16414 <div style="color:red">foo</div></nowiki>
16416 <p><div>foo</div>
16417 <div style="color:red">foo</div>
16422 3. multi-line html tag
16437 <nowiki><ref>foo</ref></nowiki>
16439 <p><ref>foo</ref>
16443 #### --------------- Others ---------------
16447 <nowiki>foo</nowiki>
16449 <p><nowiki>foo</nowiki>
16453 ## The quote-char in the input is necessary for triggering the bug
16455 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
16457 parsoid=wt2wt,html2wt
16466 Tag-like HTML structures are passed through as text
16488 </p><p>1<d e>f
16493 # This was a bug in the PHP parser (see bug 17663 and its dups,
16494 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
16496 Tag names followed by punctuation should not be recognized as tags
16500 <p><s.ome> text
16505 HTML tag with necessary entities in attributes
16507 <span title="&amp;">foo</span>
16509 <p><span title="&amp;">foo</span>
16514 HTML tag with 'unnecessary' entity encoding in attributes
16516 <span title="&">foo</span>
16518 <p><span title="&">foo</span>
16523 HTML tag with broken attribute value quoting
16525 <span title="Hello world>Foo</span>
16527 <p><span>Foo</span>
16532 Parsoid-only: HTML tag with broken attribute value quoting
16536 <span title="Hello world>Foo</span>
16538 <p><span title="Hello world">Foo</span>
16543 Table with broken attribute value quoting
16546 | title="Hello world|Foo
16557 Table with broken attribute value quoting on consecutive lines
16560 | title="Hello world|Foo
16561 | style="color:red|Bar
16574 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16579 | title="Hello world|Foo
16580 | style="color:red|Bar
16585 <td title="Hello world">Foo
16586 </td><td style="color: red">Bar
16587 </td></tr></tbody></table>
16592 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16602 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16612 Accept empty td cell attribute
16615 | align="center" | foo || |
16620 <td align="center"> foo </td>
16627 Non-empty attributes in th-cells
16630 ! Foo !! style="color: red" | Bar
16636 <th style="color: red"> Bar
16642 Accept empty attributes in th-cells
16657 Empty table rows go away
16678 ### Parsoid-centric tests for testing RTing of inter-element separators
16679 ### Edge cases not tested by existing parser tests and specific to
16680 ### Parsoid-specific serialization strategies.
16684 RT-ed inter-element separators should be valid separators
16697 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16698 (Parsoid-only since PHP parser relies on Tidy for correct output)
16714 Empty TD followed by TD with tpl-generated attribute
16719 |{{echo|style='color:red'}}|foo
16733 Indented table with an empty td
16752 Empty TR followed by a template-generated TR
16753 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16755 parsoid=wt2html,wt2wt
16759 {{echo|<tr><td>foo</td></tr>}}
16765 <tr typeof="mw:Transclusion">
16766 <td>foo</td></tr></tbody></table>
16769 ## PHP and parsoid output differ for this, and since this is primarily
16770 ## for testing Parsoid's serializer, marking this Parsoid only
16772 Empty TR followed by mixed-ws-comment line should RT correctly
16786 <td> <!--c--></td></tr>
16788 <td><!--c--> <!--d--></td></tr>
16794 Multi-line image caption generated by templates with/without trailing newlines
16798 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16799 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16801 <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>
16802 <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>
16806 ## PHP emits broken html for this, and since this is primarily
16807 ## a Parsoid serializer test, marking this Parsoid only
16809 Improperly nested inline or quotes tags with whitespace in between
16813 <span> <s>x</span> </s>
16816 <p><span> <s>x</s></span><s> </s>
16817 <b> <i>x</i></b><i> </i>
16822 Encapsulate protected attributes from wt
16826 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
16828 <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>
16832 # -----------------------------------------------------------------
16833 # The following section of tests are primarily to spec requirements
16834 # around serialization of new/edited content.
16836 # All these tests are marked Parsoid html2wt and html2html only
16837 # ----------------------------------------------------------------
16840 Image: Modifying size of an image
16844 [[Image:Wiki.png|230x230px]]
16846 <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>
16850 Image: New block level image should have \n before and after
16855 [[File:Wiki.png|right|thumb|150x150px]]
16858 <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>
16862 Lists: Add space after bullets
16869 * <span> baz</span>
16874 <li><span> baz</span></li>
16879 Parsoid: Serialize positional parameters with = in them as named parameter
16885 <p about="#mwt1" typeof="mw:Transclusion"
16886 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
16890 # -----------------------------------------------------------------
16891 # End of section for Parsoid-only html2wt tests for serialization
16893 # -----------------------------------------------------------------
16900 Try for 100% code coverage