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 disables stripping of this line!-->
250 Paragraphs with newline spacing with non-empty white-space lines in between
277 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
285 <!--foo--><!--More than 1 comment disables stripping of this line!-->
324 Extra newlines: More paragraphs with indented comment
339 Extra newlines followed by heading
354 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
355 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
358 <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>
363 Extra newlines between heading and content are swallowed
371 <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>
372 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
379 http://fr.wikipedia.org/wiki/🍺
380 <!-- EasterEgg we love beer, better be able be able to link to it -->
382 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
402 * plain''italic''plain
403 * plain''italic''plain''italic''plain
404 * plain'''bold'''plain
405 * plain'''bold'''plain'''bold'''plain
406 * plain''italic''plain'''bold'''plain
407 * plain'''bold'''plain''italic''plain
408 * plain''italic'''bold-italic'''italic''plain
409 * plain'''bold''bold-italic''bold'''plain
410 * plain'''''bold-italic'''italic''plain
411 * plain'''''bold-italic''bold'''plain
412 * plain''italic'''bold-italic'''''plain
413 * plain'''bold''bold-italic'''''plain
414 * plain l'''italic''plain
415 * plain l''''bold''' plain
418 </li><li> plain<i>italic</i>plain
419 </li><li> plain<i>italic</i>plain<i>italic</i>plain
420 </li><li> plain<b>bold</b>plain
421 </li><li> plain<b>bold</b>plain<b>bold</b>plain
422 </li><li> plain<i>italic</i>plain<b>bold</b>plain
423 </li><li> plain<b>bold</b>plain<i>italic</i>plain
424 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
425 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
426 </li><li> plain<i><b>bold-italic</b>italic</i>plain
427 </li><li> plain<b><i>bold-italic</i>bold</b>plain
428 </li><li> plain<i>italic<b>bold-italic</b></i>plain
429 </li><li> plain<b>bold<i>bold-italic</i></b>plain
430 </li><li> plain l'<i>italic</i>plain
431 </li><li> plain l'<b>bold</b> plain
436 # this example taken from the simple/Moon article
438 Italics and possessives
440 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
442 <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
447 ### 2-quote opening sequence tests
450 Italics and bold: 2-quote opening sequence: (2,2)
460 Italics and bold: 2-quote opening sequence: (2,3)
470 Italics and bold: 2-quote opening sequence: (2,4)
480 Italics and bold: 2-quote opening sequence: (2,5) (php)
489 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
491 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
503 ### 3-quote opening sequence tests
507 Italics and bold: 3-quote opening sequence: (3,2)
517 Italics and bold: 3-quote opening sequence: (3,3)
527 Italics and bold: 3-quote opening sequence: (3,4)
537 Italics and bold: 3-quote opening sequence: (3,5) (php)
546 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
548 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
560 ### 4-quote opening sequence tests
564 Italics and bold: 4-quote opening sequence: (4,2)
574 Italics and bold: 4-quote opening sequence: (4,3)
584 Italics and bold: 4-quote opening sequence: (4,4)
594 Italics and bold: 4-quote opening sequence: (4,5) (php)
603 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
605 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
611 <p>'<b>foo<i></i></b>
617 ### 5-quote opening sequence tests
621 Italics and bold: 5-quote opening sequence: (5,2) (php)
630 # Parsoid reverses the nesting order, compared to the PHP parser
632 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
644 Italics and bold: 5-quote opening sequence: (5,3)
654 Italics and bold: 5-quote opening sequence: (5,4)
658 <p><i><b>foo'</b></i>
664 Italics and bold: 5-quote opening sequence: (5,5)
673 ### multiple quote sequences in a line
676 Italics and bold: multiple quote sequences: (2,4,2)
680 <p><i>foo'<b>bar</b></i>
686 Italics and bold: multiple quote sequences: (2,4,3)
690 <p><i>foo'<b>bar</b></i>
696 Italics and bold: multiple quote sequences: (2,4,4)
700 <p><i>foo'<b>bar'</b></i>
706 Italics and bold: multiple quote sequences: (3,4,2) (php)
715 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
717 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
723 <p><b>foo'</b>bar<i></i>
729 Italics and bold: multiple quote sequences: (3,4,3) (php)
738 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
740 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
746 <p><b>foo'</b>bar<b></b>
751 ### other quote tests
754 Italics and bold: other quote tests: (2,3,5)
756 ''this is about '''foo's family'''''
758 <p><i>this is about <b>foo's family</b></i>
764 Italics and bold: other quote tests: (2,(3,3),2)
766 ''this is about '''foo's''' family''
768 <p><i>this is about <b>foo's</b> family</i>
774 Italics and bold: other quote tests: (3,2,3,2)
776 '''this is about ''foo'''s family''
778 <p><b>this is about <i>foo</i></b><i>s family</i>
783 # The Parsoid team believes the PHP parser's output on this test is wrong.
784 # It only checks for convert-to-bold-on-single-character-word when the word
785 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
786 # This means that the bold token in position 2 (0-indexed) gets converted by
787 # parsoid, but doesn't get changed by the PHP parser.
789 Italics and bold: other quote tests: (3,2,3,3) (php)
793 '''this is about ''foo'''s family'''
795 <p>'<i>this is about </i>foo<b>s family</b>
798 # This is the output the Parsoid team believes to be correct.
800 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
804 '''this is about ''foo'''s family'''
806 <p><b>this is about <i>foo'</i>s family</b>
812 Italics and bold: other quote tests: (3,(2,2),3)
814 '''this is about ''foo's'' family'''
816 <p><b>this is about <i>foo's</i> family</b>
822 Italicized possessive
824 The ''[[Main Page]]'''s talk page.
826 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
831 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
832 (Requires tidy for PHP parser output to be fixed up)
834 parsoid=wt2html,wt2wt
842 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
843 <td><i>a</i></td><td><i>b</i></td></tr>
852 Non-html5 tags should be accepted
854 <center>''foo''</center>
857 <strike>''foo''</strike>
860 <center><i>foo</i></center>
861 <p><big><i>foo</i></big>
862 <font><i>foo</i></font>
863 <strike><i>foo</i></strike>
869 <wbr> is valid wikitext (bug 52468)
877 # <strike> is HTML4, <s> is HTML4/5.
879 <s> or <strike> for strikethrough
881 <strike>strike</strike>
885 <p><strike>strike</strike>
891 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
893 <b→> doesn't work! </b>
895 <bä> doesn't work! </b>
897 <boo> works fine </b>
905 <p><b→> doesn't work! </b>
906 </p><p><bä> doesn't work! </b>
907 </p><p><boo> works fine </b>
908 </p><p><s.foo>foo</s>
909 </p><p><s.foo>s.foo</s.foo>
910 </p><p><sub-ID#1>
915 ### Special characters
919 Bare pipe character (bug 52363)
928 Bare pipe character from a template (bug 52363)
937 ### <nowiki> test cases
941 <nowiki> unordered list
943 <nowiki>* This is not an unordered list item.</nowiki>
945 <p>* This is not an unordered list item.
952 <nowiki>Lorem ipsum dolor
973 :There is not nowiki.
974 :There is <nowiki>nowiki</nowiki>.
976 #There is not nowiki.
977 #There is <nowiki>nowiki</nowiki>.
979 *There is not nowiki.
980 *There is <nowiki>nowiki</nowiki>.
982 <dl><dd>There is not nowiki.
983 </dd><dd>There is nowiki.
985 <ol><li>There is not nowiki.
986 </li><li>There is nowiki.
988 <ul><li>There is not nowiki.
989 </li><li>There is nowiki.
995 Entities inside <nowiki>
997 <nowiki><</nowiki>
1004 Entities inside template parameters
1010 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
1018 Comments and Indent-Pre
1020 <!-- comment 1 --> asdf
1022 <!-- comment 1 --> asdf
1025 <!-- comment 1 --> asdf
1026 <!-- comment 2 -->xyz
1028 <!-- comment 1 --> asdf
1029 <!-- comment 2 --> xyz
1085 asdf<!-- comment 1 -->jkl
1095 <!-- foo --> b <!-- bar -->
1109 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1115 Comment semantics and delimiters
1117 <!-- --><!----><!-----><!------>
1123 Comment semantics and delimiters, redux
1125 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1126 -- foo -- funky huh? ... -->
1132 Comment semantics and delimiters: directors cut
1134 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1135 everything starting with < followed by !-- until the first -- and > we see,
1136 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1144 Comment semantics: nesting
1146 <!--<!-- no, we're not going to do anything fancy here -->-->
1153 Comment semantics: unclosed comment at end
1155 <!--This comment will run out to the end of the document
1161 Comment in template title
1170 Comment on its own line post-expand
1182 Comment on its own line post-expand with non-significant whitespace
1194 ### paragraph wrapping tests
1208 Block tag on one line
1220 Block tag on both lines
1232 Multiple lines without block tags
1250 Empty lines between lines with block tags
1280 ### Preformatted text
1289 And a [[Main Page|link]]
1295 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1300 Ident preformatting with inline content
1311 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1328 Regression with preformatted in <center>
1342 Bug 6200: Preformatted in <blockquote>
1356 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1373 Bug 15491: <ins>/<del> in blockquote
1376 Foo <del>bar</del> <ins>baz</ins> quux
1380 <p>Foo <del>bar</del> <ins>baz</ins> quux
1386 # Note that the p-wrapping is newline sensitive, which could be
1387 # considered a bug: tidy will wrap only the 'Foo' in the example
1388 # below in a <p> tag. (see comment 23-25 of bug #6200)
1390 Bug 15491: <ins>/<del> in blockquote (2)
1392 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1395 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1401 <pre> with attributes (bug 3202)
1403 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1405 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1410 <pre> with width attribute (bug 3202)
1412 <pre width="8">Narrow screen goodies</pre>
1414 <pre width="8">Narrow screen goodies</pre>
1419 <pre> with forbidden attribute (bug 3202)
1421 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1423 <pre width="8">Narrow screen goodies</pre>
1428 Entities inside <pre>
1437 <pre> with forbidden attribute values (bug 3202)
1439 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1441 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1446 <nowiki> inside <pre> (bug 13238)
1454 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1462 <pre><nowiki>Foo</nowiki></pre>
1467 <nowiki> and <pre> preference (first one wins)
1498 </pre> inside nowiki
1500 <nowiki></pre></nowiki>
1507 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1515 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1525 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1537 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1558 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1562 {{echo| foo}}{{echo| bar}}
1567 {{echo|<!--cmt--> foo}}
1569 <!--cmt-->{{echo| foo}}
1571 {{echo|{{echo| }}bar}}
1589 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1626 Templates: Single-line variant of parameter whitespace stripping test
1632 {{echo|{{echo| a}}}}
1634 {{echo|1={{echo| a}}}}
1647 Templates: Strip whitespace from named parameters, but not positional ones
1675 Templates: Dont strip whitespace from whitespace/comment-only arguments
1679 {{echo| <!--cmt--> }}
1686 Templates: Parsoid parameter escaping test 1
1690 {{echo|[foo]|{{echo|[bar]}}}}
1692 <p about="#mwt1" typeof="mw:Transclusion"
1693 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1697 Parsoid: Pipes in external links in template parameter
1701 {{echo|[{{echo|http://example.com}} link]}}
1703 <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>
1707 Parsoid: pipe in transclusion parameter
1711 {{echo|http://foo.com/a|b}}
1713 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1714 typeof="mw:Transclusion"
1715 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>
1719 Parsoid: Pipe in external link target and content in template parameter
1721 parsoid=html2wt,wt2wt
1723 {{echo|[http://foo.com/a|b a|b]}}
1725 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1726 typeof="mw:Transclusion"
1727 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1728 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1732 Templates: Dont escape already nowiki-escaped text in template parameters
1734 parsoid=html2wt,wt2wt
1736 {{echo|foo<nowiki>|</nowiki>bar}}
1737 {{echo|<nowiki><div></nowiki>}}
1738 {{echo|<nowiki></nowiki>}}
1740 <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>
1741 <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>
1742 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1747 ### Parsoid-centric tests for testing RT edge cases for pre
1751 1a. Indent-Pre and Comments
1764 1b. Indent-Pre and Comments
1777 1c. Indent-Pre and Comments
1790 2a. Indent-Pre and tables
1811 2b. Indent-Pre and tables
1827 2c. Indent-Pre and tables (bug 42252)
1844 3a. Indent-Pre and block tags (single-line html)
1852 <pre><span> foo </span>
1857 3b. Indent-Pre and block tags (pre-content on separate line)
1910 4. Multiple spaces at start-of-line
1929 5. White-space in indent-pre
1930 NOTE: the white-space char on 2nd line is significant
1943 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1947 HTML-pre: 1. embedded newlines
1983 HTML-pre: 2: indented text
1996 HTML-pre: 3: other wikitext
2017 ### Definition lists
2024 <dl><dt> name </dt><dd> Definition
2030 Definition list for indentation only
2034 <dl><dd> Indented text
2040 Definition list with no space
2044 <dl><dt>name</dt><dd>Definition
2050 Definition list with URL link
2052 ; http://example.com/ : definition
2054 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
2060 Definition list with bracketed URL link
2062 ;[http://www.example.com/ Example]:Something about it
2064 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
2070 Definition list with wikilink containing colon
2072 ; [[Help:FAQ]]: The least-read page on Wikipedia
2074 <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
2079 # At Brion's and JeLuF's insistence... :)
2081 Definition list with news link containing colon
2083 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2085 <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!
2091 Malformed definition list with colon
2093 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2095 <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
2101 Definition lists: colon in external link text
2103 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2105 <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
2111 Definition lists: colon in HTML attribute
2113 ;<b style="display: inline">bold</b>
2115 <dl><dt><b style="display: inline">bold</b>
2121 Definition lists: self-closed tag
2123 ;one<br/>two : two-line fun
2125 <dl><dt>one<br />two </dt><dd> two-line fun
2131 Bug 11748: Literal closing tags
2135 <dd>test test test test test</dd>
2137 <dd>test test test test test</dd>
2142 <dd>test test test test test</dd>
2144 <dd>test test test test test</dd>
2150 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2153 ; term : description
2159 <dl><dt> term </dt><dd> description
2170 Definition list with empty definition and following paragraph
2175 <dl><dt> term</dt><dd>
2182 Nested definition lists using html syntax
2199 Definition Lists: No nesting: Multiple dd's
2213 Definition Lists: Indentation: Regular
2229 Definition Lists: Indentation: Missing 1st level
2243 Definition Lists: Indentation: Multi-level indent
2247 <dl><dd><dl><dd><dl><dd>i3
2255 Definition Lists: Hacky use to indent tables
2262 should be left alone
2264 <dl><dd><dl><dd><table>
2269 </td></tr></table></dd></dl></dd></dl>
2271 should be left alone
2274 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2275 ## as an empty dt item. It also ignores all but the last ";" when followed
2276 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2277 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2280 ## Ex: ";;t2 ::d2" is transformed into:
2292 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2293 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2304 ## All Parsoid only definition list tests have this difference.
2306 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2307 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2310 Table / list interaction: indented table with lists in table contents
2332 </td></tr></table></dd></dl>
2337 Table / list interaction: lists nested in tables nested in indented lists
2362 </td></tr></table></dd></dl>
2370 Definition Lists: Nesting: Multi-level (Parsoid only)
2400 Definition Lists: Nesting: Test 2 (Parsoid only)
2420 Definition Lists: Nesting: Test 3 (Parsoid only)
2448 Definition Lists: Nesting: Test 4
2453 <dl><dd><dl><dd><dl><dt>t3
2462 ## The Parsoid team believes the following three test exposes a
2463 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2464 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2466 Definition Lists: Mixed Lists: Test 1 (php)
2474 <dl><dd><dl><dt><ul><li> foo
2484 Definition Lists: Mixed Lists: Test 1 (parsoid)
2492 <dl><dd><dl><dt><ul><li> foo
2493 </li></ul></dt><dd><ul><li> bar
2494 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2498 Definition Lists: Mixed Lists: Test 2
2512 Definition Lists: Mixed Lists: Test 3
2517 <ul><li><dl><dd><dl><dd><dl><dd> d1
2528 Definition Lists: Mixed Lists: Test 4
2533 <ul><li><dl><dt>d1 </dt><dd>d2
2534 </dd><dt>d3 </dt><dd>d4
2542 Definition Lists: Mixed Lists: Test 5
2557 Definition Lists: Mixed Lists: Test 6
2562 <ol><li><ul><li><dl><dd>d1
2574 Definition Lists: Mixed Lists: Test 7
2588 Definition Lists: Mixed Lists: Test 8
2604 Definition Lists: Mixed Lists: Test 9
2608 <ul><li><dl><dt>foo </dt><dd>bar
2616 Definition Lists: Mixed Lists: Test 10
2620 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2627 # The Parsoid team disagrees with the PHP parser's seemingly-random
2628 # rules regarding dd/dt on the next two tests. Parsoid is more
2629 # consistent, and recognizes the shared nesting and keeps the
2630 # still-open tags around until the nesting is complete.
2633 Definition Lists: Mixed Lists: Test 11 (php)
2640 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2645 <dl><dt>boo </dt><dd>baz
2654 Definition Lists: Mixed Lists: Test 11 (parsoid)
2676 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2677 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2678 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2679 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2684 Definition Lists: Weird Ones: Test 1 (php)
2688 *#;*::;; foo : bar (who uses this?)
2690 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2702 Definition Lists: Weird Ones: Test 1 (parsoid)
2706 *#;*::;; foo : bar (who uses this?)
2723 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2724 <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>
2731 External links: non-bracketed
2733 Non-bracketed: http://example.com
2735 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2740 External links: numbered
2742 Numbered: [http://example.com]
2743 Numbered: [http://example.net]
2744 Numbered: [http://example.com]
2746 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2747 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2748 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2753 External links: specified text
2755 Specified text: [http://example.com link]
2757 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2762 External links: trail
2764 Linktrails should not work for external links: [http://example.com link]s
2766 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2771 External links: dollar sign in URL
2773 http://example.com/1$2345
2775 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2780 External links: dollar sign in URL (named)
2782 [http://example.com/1$2345]
2784 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2789 External links: open square bracket forbidden in URL (bug 4377)
2791 http://example.com/1[2345
2793 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2798 External links: open square bracket forbidden in URL (named) (bug 4377)
2800 [http://example.com/1[2345]
2802 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2807 External links: nowiki in URL link text (bug 6230)
2809 [http://example.com/ <nowiki>''example site''</nowiki>]
2811 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2816 External links: newline forbidden in text (bug 6230 regression check)
2818 [http://example.com/ first
2821 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2827 External links: Pipe char between url and text
2829 [http://example.com | link]
2831 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2836 External links: protocol-relative URL in brackets
2838 [//example.com/ Test]
2840 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2845 External links: protocol-relative URL in brackets without text
2849 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2854 External links: protocol-relative URL in free text is left alone
2858 <p>//example.com/Foo
2863 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2865 foo//example.com/Foo
2867 <p>foo//example.com/Foo
2874 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2876 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2881 External image from https
2883 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2885 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2890 External image (when not allowed)
2892 wgAllowExternalImages=0
2894 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2896 <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>
2901 Link to non-http image, no img tag
2903 Link to non-http image, no img tag: ftp://example.com/test.jpg
2905 <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>
2910 External links: terminating separator
2912 Terminating separator: http://example.com/thing,
2914 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2919 External links: intervening separator
2921 Intervening separator: http://example.com/1,2,3
2923 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2928 External links: old bug with URL in query
2930 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2932 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2937 External links: old URL-in-URL bug, mixed protocols
2939 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2941 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2946 External links: URL in text
2948 URL in text: [http://example.com http://example.com]
2950 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2955 External links: Clickable images
2957 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2959 <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>
2964 External links: raw ampersand
2966 Old & use: http://x&y
2968 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2973 External links: encoded ampersand
2975 Old & use: http://x&y
2977 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2982 External links: encoded equals (bug 6102)
2984 http://example.com/?foo=bar
2986 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2991 External links: [raw ampersand]
2993 Old & use: [http://x&y]
2995 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3000 External links: [encoded ampersand]
3002 Old & use: [http://x&y]
3004 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3009 External links: [encoded equals] (bug 6102)
3011 [http://example.com/?foo=bar]
3013 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3018 External links: [IDN ignored character reference in hostname; strip it right off]
3020 [http://e‌xample.com/]
3022 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3026 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3027 # Where an external link could easily circumvent the sanitization of the text of
3028 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3029 # test demands a higher standard. That's a bit strange.
3033 # http://example.com -> [http://example.com|http://example.com]
3034 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3036 # The first example is sanitized, but the second is not. Any security benefits
3037 # from this production are trivial to circumvent. Either remove this test and
3038 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3039 # the test accordingly.
3044 External links: IDN ignored character reference in hostname; strip it right off
3046 http://e‌xample.com/
3048 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3053 External links: www.jpeg.org (bug 554)
3057 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3062 External links: URL within URL (original bug 2)
3064 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3066 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3071 BUG 361: URL inside bracketed URL
3073 [http://www.example.com/foo http://www.example.com/bar]
3075 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3080 BUG 361: URL within URL, not bracketed
3082 http://www.example.com/foo?=http://www.example.com/bar
3084 <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>
3089 BUG 289: ">"-token in URL-tail
3091 http://www.example.com/<hello>
3093 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3098 BUG 289: literal ">"-token in URL-tail
3100 http://www.example.com/<b>html</b>
3102 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3107 BUG 289: ">"-token in bracketed URL
3109 [http://www.example.com/<hello> stuff]
3111 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3116 BUG 289: literal ">"-token in bracketed URL
3118 [http://www.example.com/<b>html</b> stuff]
3120 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3125 BUG 289: literal double quote at end of URL
3127 http://www.example.com/"hello"
3129 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3134 BUG 289: literal double quote in bracketed URL
3136 [http://www.example.com/"hello" stuff]
3138 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3143 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3145 [http://www.example.com test]
3147 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3152 External links: link text with spaces
3154 [http://www.example.com a b c]
3155 [http://www.example.com ''a'' ''b'']
3157 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3158 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3163 External links: wiki links within external link (Bug 3695)
3165 [http://example.com [[wikilink]] embedded in ext link]
3167 <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>
3172 BUG 787: Links with one slash after the url protocol are invalid
3176 [http:/example.com title]
3178 <p>http:/example.com
3179 </p><p>[http:/example.com title]
3184 Bracketed external links with template-generated invalid target
3186 [{{echo|http:/example.com}} title]
3188 <p>[http:/example.com title]
3193 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3195 ''[http://example.com text'']
3196 [http://example.com '''text]'''
3197 ''Something [http://example.com in italic'']
3198 ''Something [http://example.com mixed''''', even bold]'''
3199 '''''Now [http://example.com both''''']
3201 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3202 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3203 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3204 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3205 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3211 Bug 4781: %26 in URL
3213 http://www.example.com/?title=AT%26T
3215 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3219 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3220 # % is actually legal in HTML5. Any change in output would need testing though.
3222 Bug 4781, 5267: %25 in URL
3224 http://www.example.com/?title=100%25_Bran
3226 <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>
3231 Bug 4781, 5267: %28, %29 in URL
3233 http://www.example.com/?title=Ben-Hur_%281959_film%29
3235 <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>
3241 Bug 4781: %26 in autonumber URL
3243 [http://www.example.com/?title=AT%26T]
3245 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3250 Bug 4781, 5267: %26 in autonumber URL
3252 [http://www.example.com/?title=100%25_Bran]
3254 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3259 Bug 4781, 5267: %28, %29 in autonumber URL
3261 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3263 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3269 Bug 4781: %26 in bracketed URL
3271 [http://www.example.com/?title=AT%26T link]
3273 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3278 Bug 4781, 5267: %26 in bracketed URL
3280 [http://www.example.com/?title=100%25_Bran link]
3282 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3287 Bug 4781, 5267: %28, %29 in bracketed URL
3289 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3291 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3296 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3298 Some [http://example.com/ pretty ''italics'' and stuff]!
3300 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3305 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3307 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3309 <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>
3314 External link containing double-single-quotes with no space separating the url from text in italics
3316 [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]].]
3318 <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>
3323 External link with comments in link text
3325 [http://www.google.com Google <!-- comment -->]
3327 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3332 URL-encoding in URL functions (single parameter)
3334 {{localurl:Some page|amp=&}}
3336 <p>/index.php?title=Some_page&amp=&
3341 URL-encoding in URL functions (multiple parameters)
3343 {{localurl:Some page|q=?&=&}}
3345 <p>/index.php?title=Some_page&q=?&amp=&
3352 http://example.com/index.php?foozoid%5B%5D=bar
3354 http://example.com/index.php?foozoid[]=bar
3356 <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>
3357 </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>
3362 IPv6 urls (bug 21261)
3366 http://[2404:130:0:1000::187:2]/index.php
3368 <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>
3373 Non-extlinks in brackets
3382 [{{echo|foo}} ''bar'']
3383 [{{echo|foo}}l's] errand
3384 [{{echo|foo}}l's errand]
3386 [url=http://example.com]
3399 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3404 Parsoid: Percent encoding in external links
3408 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3410 <p><a rel="mw:ExtLink"
3411 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3415 Parsoid: use url link syntax for links where the content is equal the link
3422 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3432 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3434 Normal text. '''''Bold italic text.''''' Normal text.
3436 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3437 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3443 Unclosed and unmatched quotes (php)
3447 '''''Bold italic text '''with bold deactivated''' in between.'''''
3449 '''''Bold italic text ''with italic deactivated'' in between.'''''
3453 ..spanning two paragraphs (should not work).'''
3455 '''Bold tag left open
3457 ''Italic tag left open
3461 <!-- Unmatching number of opening, closing tags: -->
3462 '''This year''''s election ''should'' beat '''last year''''s.
3464 ''Tom'''s car is bigger than ''Susan'''s.
3466 Plain ''italic'''s plain
3468 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3469 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3470 </p><p><b>Bold text..</b>
3471 </p><p>..spanning two paragraphs (should not work).
3472 </p><p><b>Bold tag left open</b>
3473 </p><p><i>Italic tag left open</i>
3475 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3476 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3477 </p><p>Plain <i>italic'</i>s plain
3480 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3481 # parser strips. The wikitext contains just the first half of the bold
3482 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3483 # differently than the PHP parser.)
3485 Unclosed and unmatched quotes (parsoid)
3489 '''''Bold italic text '''with bold deactivated''' in between.'''''
3491 '''''Bold italic text ''with italic deactivated'' in between.'''''
3495 ..spanning two paragraphs (should not work).'''
3497 '''Bold tag left open
3499 ''Italic tag left open
3503 <!-- Unmatching number of opening, closing tags: -->
3504 '''This year''''s election ''should'' beat '''last year''''s.
3506 ''Tom'''s car is bigger than ''Susan'''s.
3508 Plain ''italic'''s plain
3510 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3511 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3512 </p><p><b>Bold text..</b>
3513 </p><p>..spanning two paragraphs (should not work).<b></b>
3514 </p><p><b>Bold tag left open</b>
3515 </p><p><i>Italic tag left open</i>
3517 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3518 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3519 </p><p>Plain <i>italic'</i>s plain
3526 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3529 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3530 # is the bare minimum required by the spec, see:
3531 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3533 A table with no data. (php)
3540 # Parsoid team replies: empty table tags are legal in HTML5
3542 A table with no data. (parsoid)
3551 # A table with nothing but a caption is invalid XHTML, we might want to render
3552 # this as <p>caption</p>
3554 A table with nothing but a caption (php)
3564 </caption><tr><td></td></tr></table>
3567 # Parsoid team replies: table with only a caption is legal in HTML5
3569 A table with nothing but a caption (parsoid)
3577 <table><caption> caption</caption></table>
3581 A table with caption with default-spaced attributes and a table row
3584 |+ style="color: red;" | caption1
3590 <caption style="color: red;"> caption1
3599 A table with captions with non-default spaced attributes and a table row
3602 |+style="color: red;"|caption2
3603 |+ style="color: red;"| caption3
3609 <caption style="color: red;">caption2
3611 <caption style="color: red;"> caption3
3620 Table td-cell syntax variations
3624 | foo bar foo || baz
3625 | style='color:red;' | baz
3626 | style='color:red;' || baz
3633 <td> foo bar foo </td>
3636 <td style="color:red;"> baz
3638 <td> style='color:red;' </td>
3666 Simple table but with multiple dashes for row wikitext
3684 Multiplication table
3686 {| border="1" cellpadding="2"
3687 |+Multiplication table
3689 ! × !! 1 !! 2 !! 3
3707 <table border="1" cellpadding="2">
3708 <caption>Multiplication table
3755 Accept "||" in table headings
3770 Accept "||" in indented table headings
3780 </th></tr></table></dd></dl>
3785 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3802 Accept "| !" at start of line in tables (ignore !-attribute)
3806 | !style="color:red" | bar
3818 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 +/-
3822 |style='color:red;'|+1
3823 |style='color:blue;'|-1
3835 <td style="color:red;">+1
3837 <td style="color:blue;">-1
3861 |rowspan=2| Cell 2, row 1 (and 2)
3872 <td rowspan="2"> Cell 2, row 1 (and 2)
3890 {| bgcolor=#ABCDEF border=2
3895 |the original table again
3903 <table bgcolor="#ABCDEF" border="2">
3911 <td>the original table again
3917 Invalid attributes in table cell (bug 1830)
3932 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3935 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3939 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3940 <td>]" onmouseover="alert(document.cookie)">test
3949 Indented table markup mixed with indented pre content (proposed in bug 6200)
3954 Text that should be rendered preformatted
3962 <pre>Text that should be rendered preformatted
3971 Template-generated table cell attributes and cell content
3979 <td style="color: red"> Foo
3985 Template-generated table cell attributes and cell content (2)
3988 |align=center {{table_attribs}}
3993 <td align="center" style="color: red"> Foo
3999 Template-generated table cell attributes and cell content (3)
4002 |align=center {{table_cells}}
4007 <td align="center" style="color: red"> Foo </td>
4015 Table with row followed by newlines and table heading
4033 Table with empty line following the start tag
4050 # FIXME: Preserve the attribute properly (with an empty string as value) in
4051 # the PHP parser. Parsoid implements the behavior below.
4053 Table attributes with empty value
4065 </td></tr></tbody></table>
4070 Wikitext table with a lot of comments
4093 Wikitext table with double-line table cell
4110 Table cell with a single comment
4126 # The expected HTML structure in this test is debatable. The PHP parser does
4127 # not parse this kind of table at all. The main focus for Parsoid is on
4128 # round-tripping, so this output is ok for now. TODO: revisit!
4130 Wikitext table with html-syntax row (Parsoid)
4142 <td>foo</td></tr></tbody></table>
4146 Implicit <td> after a |-
4147 (PHP parser relies on Tidy to add the missing <td> tags)
4149 parsoid=wt2html,wt2wt
4162 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4163 (PHP parser relies on Tidy to add the missing <td> tags)
4165 parsoid=wt2html,wt2wt
4177 <tr><td><pre>a</pre></td></tr>
4178 <tr><td> b</td></tr>
4184 Lists should be recognized in an implicit <td> context
4185 (PHP parser relies on Tidy to add the missing <td> tags)
4187 parsoid=wt2html,wt2wt
4196 <td><ul><li>a</li></ul></td>
4205 Plain link, capitalized
4209 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4214 Plain link, uncapitalized
4218 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4225 [[Main Page|The Main Page]]
4227 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4232 Piped link with comment in link text
4234 [[Main Page|The Main<!--front--> Page]]
4236 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4245 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4250 Broken link with fragment
4252 [[Zigzagzogzagzig#zug]]
4254 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4259 Special page link with fragment
4261 [[Special:Version#anchor]]
4263 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4268 Nonexistent special page link with fragment
4270 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4272 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4279 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4281 <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>
4288 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4290 <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>!!!
4301 Bug 43661: Piped links with identical prefixes
4303 [[prefixed article|prefixed articles with spaces]]
4305 [[prefixed article|prefixed articlesaoeu]]
4307 [[Main Page|Main Page test]]
4309 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4310 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4311 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4317 Link with HTML entity in suffix / tail
4319 [[Main Page]]", [[Main Page]]a
4321 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4326 Link with 3 brackets
4335 Piped link with 3 brackets
4337 [[[main page|the main page]]]
4339 <p>[[[main page|the main page]]]
4344 Link with multiple pipes
4346 [[Main Page|The|Main|Page]]
4348 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4355 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4357 <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>
4362 Piped link to namespace
4364 [[Meta:Disclaimers|The disclaimers]]
4366 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4373 [[Usually caused by a typo (oops}]]
4375 <p>[[Usually caused by a typo (oops}]]
4380 Link containing % (not as a hex sequence)
4384 <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>
4389 Link containing % as a single hex sequence interpreted to char
4393 <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>
4398 Link containing % as a double hex sequence interpreted to hex sequence
4402 <p>[[7%2525 Solution]]
4407 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4408 Example for such a section: == < ==
4410 [[%23%3c]][[%23%3e]]
4412 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4417 Link containing "<#" and ">#" as a hex sequences
4419 [[%3c%23]][[%3e%23]]
4421 <p>[[%3c%23]][[%3e%23]]
4426 Link containing an equals sign
4428 [[Special:BookSources/isbn=4-00-026157-6]]
4430 <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>
4437 Just a test of an article title containing a tilde.
4440 # note that links containing signatures, like [[Foo~~~~]], are
4441 # massaged by the pre-save transform (PST) and so the tildes are never
4442 # seen by the parser.
4444 Link containing a tilde
4448 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4453 Link containing double-single-quotes '' (bug 4598)
4455 [[Lista d''e paise d''o munno]]
4457 <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>
4462 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4464 Some [[Link|pretty ''italics'' and stuff]]!
4466 <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>!
4471 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4473 ''Some [[Link|pretty ''italics'' and stuff]]!
4475 <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>
4480 Link with double quotes in title part (literal) and alternate part (interpreted)
4482 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4486 [[''Pentecoste''|Pentecoste]]
4488 [[''Pentecoste''|''Pentecoste'']]
4490 <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>
4491 </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>
4492 </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>
4493 </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>
4498 Broken image links with HTML captions (bug 39700)
4500 [[File:Nonexistent|<script></script>]]
4501 [[File:Nonexistent|100px|<script></script>]]
4502 [[File:Nonexistent|<]]
4503 [[File:Nonexistent|a<i>b</i>c]]
4505 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4506 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4507 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4508 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4515 [[http://www.example.com]]
4517 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4522 Plain link to URL with link text
4524 [[http://www.example.com Link text]]
4526 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4531 Plain link to protocol-relative URL
4533 [[//www.example.com]]
4535 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4540 Plain link to protocol-relative URL with link text
4542 [[//www.example.com Link text]]
4544 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4549 Plain link to page with question mark in title
4555 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4556 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4561 # I'm fairly sure the expected result here is wrong.
4562 # We want these to be URL links, not pseudo-pages with URLs for titles....
4563 # However the current output is also pretty screwy.
4566 # I'm changing it to match the current output--it arguably makes more
4567 # sense in the light of the test above. Old expected result was:
4568 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4570 # But I think this test is bordering on "garbage in, garbage out" anyway.
4575 Piped link to URL: [[http://www.example.com|an example URL]]
4577 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4582 BUG 2: [[page|http://url/]] should link to page, not http://url/
4584 [[Main Page|http://url/]]
4586 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4591 BUG 337: Escaped self-links should be bold
4595 [[Bug462]] [[Bug462]]
4597 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4602 Self-link to section should not be bold
4606 [[Main Page#section]]
4608 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4619 Self-link to numeric title
4625 <p><strong class="selflink">0</strong>
4630 Link to numeric-equivalent title
4636 <p><a href="/wiki/00" title="00">00</a>
4641 <nowiki> inside a link
4643 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4645 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4650 Non-breaking spaces in title
4652 [[ Main Page ]]
4654 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4659 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4665 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4670 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4676 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4681 Internal link with en linktrail: no apostrophes (bug 27473)
4687 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4692 Internal link with ca linktrail with apostrophes (bug 27473)
4698 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4703 Internal link with kaa linktrail with apostrophes (bug 27473)
4709 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4720 Internal link with is link prefix
4724 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4726 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4737 Internal link with is link trail and link prefix
4741 [[mótmælendatrú|xxx]]ar
4743 mótmælenda[[söfnuður]]
4744 mótmælenda[[söfnuður|söfnuðir]]
4745 mótmælenda[[söfnuður|söfnuðir]]xxx
4747 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4748 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4749 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4750 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4751 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4756 Parsoid link trail escaping
4758 parsoid=html2wt,html2html
4762 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4766 Parsoid link prefix escaping
4769 parsoid=html2wt,html2html
4771 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4773 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4777 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4785 [http://wp.org ''foo'']
4787 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4788 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4789 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4790 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4795 ### Interwiki links (see maintenance/interwiki.sql)
4799 Inline interwiki link
4801 [[MeatBall:SoftSecurity]]
4803 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4808 Inline interwiki link with empty title (bug 2372)
4812 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4817 Interwiki link encoding conversion (bug 1636)
4819 *[[Wikipedia:ro:Olteniţa]]
4820 *[[Wikipedia:ro:Olteniţa]]
4822 <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>
4823 </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>
4829 Interwiki link with fragment (bug 2130)
4831 [[MeatBall:SoftSecurity#foo]]
4833 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4848 Double interlanguage link
4859 Interlanguage link, with prefix links
4871 Double interlanguage link, with prefix links (bug 8897)
4884 Parsoid-specific test: Wikilinks with should RT properly
4890 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4895 Parsoid: handle constructor well
4903 <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>
4906 <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>
4910 ## Redirects, Parsoid-only
4913 Simple redirect to page
4917 #REDIRECT [[Main Page]]
4919 <link rel="mw:PageProp/redirect" href="./Main_Page">
4923 Redirect to category
4927 #REDIRECT [[Category:Foo]]
4929 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4933 Redirect to category page
4935 parsoid=wt2html,html2html
4937 #REDIRECT [[:Category:Foo]]
4939 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4943 Redirect to image page
4947 #REDIRECT [[File:Wiki.png]]
4949 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4953 Redirect to language
4957 #REDIRECT [[en:File:Wiki.png]]
4959 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4963 Redirect to interwiki
4967 #REDIRECT [[meatball:File:Wiki.png]]
4969 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4986 Broken br tag sanitization
4996 # TODO: Fix html2html mode (bug 51055)!
4998 Parsoid: Broken br tag recognition
5008 Incorrecly removing closing slashes from correctly formed XHTML
5010 <br style="clear:both;" />
5012 <p><br style="clear:both;" />
5017 Failing to transform badly formed HTML into correct XHTML
5019 <br style="clear: left;">
5020 <br style="clear: right;">
5021 <br style="clear: both;">
5023 <p><br style="clear: left;" />
5024 <br style="clear: right;" />
5025 <br style="clear: both;" />
5030 Handling html with a div self-closing tag
5039 <p><div title />
5043 <p><div title=bar />
5044 <div title=bar/>
5046 <div title="bar/"></div>
5052 Handling html with a br self-closing tag
5061 <p><br title="title" />
5062 <br title="title" />
5071 Horizontal ruler (should it add that extra space?)
5085 Horizontal ruler -- 4+ dashes render hr
5094 Horizontal ruler -- eats additional dashes on the same line
5103 Horizontal ruler -- does not collapse dashes on consecutive lines
5114 Horizontal ruler -- <4 dashes render as plain text
5123 Horizontal ruler -- Supports content following dashes on same line
5132 ### Block-level elements
5155 <ol><li>Numbered list
5172 ***#Number on level 4
5174 **#Number on level 3
5175 **#Number on level 3
5179 #** Level 3, but ordered
5182 <ol><li> with numbers
5184 <ul><li> and bullets
5186 <ol><li> and numbers
5188 </li><li>bullets again
5189 <ul><li>bullet level 2
5190 <ul><li>bullet level 3
5191 <ol><li>Number on level 4
5194 </li><li>bullet level 2
5195 <ol><li>Number on level 3
5196 </li><li>Number on level 3
5199 <ol><li>number level 2
5202 <ul><li><ul><li> Level 3
5206 <ol><li><ul><li><ul><li> Level 3, but ordered
5240 Nested lists 3 (first element empty)
5253 Nested lists 4 (first element empty)
5266 Nested lists 5 (both elements empty)
5279 Nested lists 6 (both elements empty)
5292 Nested lists 7 (skip initial nesting levels)
5296 <ul><li><ul><li><ul><li> foo
5304 Nested lists 8 (multiple nesting transitions)
5312 <ul><li><ul><li> bar
5322 1. Lists with start-of-line-transparent tokens before bullets: Comments
5336 2. Lists with start-of-line-transparent tokens before bullets: Template close
5348 List items are not parsed correctly following a <pre> block (bug 785)
5354 <ul><li> <pre>foo</pre>
5355 </li><li> <pre>bar</pre>
5362 List items from template
5373 * notSOL{{inner list}}
5392 List interrupted by empty line or heading
5402 <ul><li><ul><li> bar
5405 <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>
5406 <ul><li> Another list item
5412 Multiple list tags generated by templates
5427 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5430 <!--This line will NOT split the list-->
5432 <!--This line will NOT split the list either-->
5434 <!--foo--> <!--This line with more than 1 comment will split the list-->
5448 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5450 parsoid=wt2html,wt2wt
5454 * {{echo|<li>templated li-hack}}
5455 * <!--foo--> <li> unsupported li-hack with preceding comments
5458 <li><li>not a li-hack
5464 <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>
5465 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5468 <li></li><li>not a li-hack
5474 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5485 <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>
5488 # ------------------------------------------------------------------------
5489 # The next set of tests are about Parsoid's ability to handle badly nested
5490 # tags (parse, minimize scope of fixup, and roundtrip back)
5491 # ------------------------------------------------------------------------
5494 Unbalanced closing block tags break a list
5495 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5505 </li></ul></div><div>
5511 Unbalanced closing non-block tags don't break a list
5512 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5522 <ul><li>a<span></span>
5528 Unclosed formatting tags that straddle lists are closed and reopened
5529 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5537 </li><li> <s> b </s>
5542 List embedded in a non-block tag
5543 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5551 <p><small></small></p>
5557 <p><small></small></p>
5564 # Note that the current date is hard-coded as
5565 # 1970-01-01T00:02:03Z (a Thursday)
5566 # when running parser tests. The timezone is also fixed to GMT, so
5567 # local date will be identical to current date.
5570 Magic Word: {{CURRENTDAY}}
5579 Magic Word: {{CURRENTDAY2}}
5588 Magic Word: {{CURRENTDAYNAME}}
5597 Magic Word: {{CURRENTDOW}}
5606 Magic Word: {{CURRENTMONTH}}
5615 Magic Word: {{CURRENTMONTH1}}
5624 Magic Word: {{CURRENTMONTHABBREV}}
5626 {{CURRENTMONTHABBREV}}
5633 Magic Word: {{CURRENTMONTHNAME}}
5635 {{CURRENTMONTHNAME}}
5642 Magic Word: {{CURRENTMONTHNAMEGEN}}
5644 {{CURRENTMONTHNAMEGEN}}
5651 Magic Word: {{CURRENTTIME}}
5660 Magic Word: {{CURRENTHOUR}}
5669 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5678 Magic Word: {{CURRENTYEAR}}
5687 Magic Word: {{CURRENTTIMESTAMP}}
5689 {{CURRENTTIMESTAMP}}
5696 Magic Words LOCAL (UTC)
5700 * {{LOCALMONTHNAME}}
5701 * {{LOCALMONTHNAMEGEN}}
5702 * {{LOCALMONTHABBREV}}
5711 * {{LOCALTIMESTAMP}}
5726 </li><li> 19700101000203
5732 Magic Word: {{FULLPAGENAME}}
5734 title=[[User:Ævar Arnfjörð Bjarmason]]
5738 <p>User:Ævar Arnfjörð Bjarmason
5743 Magic Word: {{FULLPAGENAMEE}}
5745 title=[[User:Ævar Arnfjörð Bjarmason]]
5749 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5754 Magic Word: {{TALKSPACE}}
5756 title=[[User:Ævar Arnfjörð Bjarmason]]
5765 Magic Word: {{TALKSPACE}}, same namespace
5767 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5776 Magic Word: {{TALKSPACE}}, main namespace
5778 title=[[Parser Test]]
5787 Magic Word: {{TALKSPACEE}}
5789 title=[[User:Ævar Arnfjörð Bjarmason]]
5798 Magic Word: {{SUBJECTSPACE}}
5800 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5809 Magic Word: {{SUBJECTSPACE}}, same namespace
5811 title=[[User:Ævar Arnfjörð Bjarmason]]
5820 Magic Word: {{SUBJECTSPACE}}, main namespace
5822 title=[[Parser Test]]
5830 Magic Word: {{SUBJECTSPACEE}}
5832 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5841 Magic Word: {{NAMESPACE}}
5843 title=[[User:Ævar Arnfjörð Bjarmason]]
5852 Magic Word: {{NAMESPACEE}}
5854 title=[[User:Ævar Arnfjörð Bjarmason]]
5863 Magic Word: {{NAMESPACENUMBER}}
5865 title=[[User:Ævar Arnfjörð Bjarmason]]
5874 Magic Word: {{SUBPAGENAME}}
5876 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
5885 Magic Word: {{SUBPAGENAMEE}}
5887 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
5896 Magic Word: {{ROOTPAGENAME}}
5898 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
5902 <p>Ævar Arnfjörð Bjarmason
5907 Magic Word: {{ROOTPAGENAMEE}}
5909 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
5913 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5918 Magic Word: {{BASEPAGENAME}}
5920 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
5924 <p>Ævar Arnfjörð Bjarmason
5929 Magic Word: {{BASEPAGENAMEE}}
5931 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
5935 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5940 Magic Word: {{TALKPAGENAME}}
5942 title=[[User:Ævar Arnfjörð Bjarmason]]
5946 <p>User talk:Ævar Arnfjörð Bjarmason
5951 Magic Word: {{TALKPAGENAMEE}}
5953 title=[[User:Ævar Arnfjörð Bjarmason]]
5957 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5962 Magic Word: {{SUBJECTPAGENAME}}
5964 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5968 <p>User:Ævar Arnfjörð Bjarmason
5973 Magic Word: {{SUBJECTPAGENAMEE}}
5975 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5977 {{SUBJECTPAGENAMEE}}
5979 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5984 Magic Word: {{NUMBEROFFILES}}
5993 Magic Word: {{PAGENAME}}
5995 title=[[User:Ævar Arnfjörð Bjarmason]]
5999 <p>Ævar Arnfjörð Bjarmason
6004 Magic Word: {{PAGENAME}} with metacharacters
6006 title=[['foo & bar = baz']]
6010 <p><i>'foo & bar = baz'</i>
6015 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6017 title=[[*RFC 1234 http://example.com/]]
6021 <p>*RFC 1234 http://example.com/
6026 Magic Word: {{PAGENAMEE}}
6028 title=[[User:Ævar Arnfjörð Bjarmason]]
6032 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6037 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6039 title=[[*RFC 1234 http://example.com/]]
6043 <p>*RFC_1234_http://example.com/
6048 Magic Word: {{REVISIONID}}
6057 Magic Word: {{SCRIPTPATH}}
6066 Magic Word: {{STYLEPATH}}
6075 Magic Word: {{SERVER}}
6079 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6084 Magic Word: {{SERVERNAME}}
6093 Magic Word: {{SITENAME}}
6102 Case-sensitive magic words, when cased differently, should just be template transclusions
6109 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6110 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6111 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6112 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6117 Case-insensitive magic words should still work with weird casing.
6127 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6132 Namespace 1 {{ns:1}}
6141 Namespace 1 {{ns:01}}
6150 Namespace 0 {{ns:0}} (bug 4783)
6158 Namespace 0 {{ns:00}} (bug 4783)
6166 Namespace -1 {{ns:-1}}
6175 Namespace User {{ns:User}}
6184 Namespace User talk {{ns:User_talk}}
6193 Namespace User talk {{ns:uSeR tAlK}}
6202 Namespace File {{ns:File}}
6211 Namespace File {{ns:Image}}
6220 Namespace (lang=de) Benutzer {{ns:User}}
6231 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
6237 <p>Benutzer Diskussion
6245 {{urlencode:hi world?!}}
6246 {{urlencode:hi world?!|WIKI}}
6247 {{urlencode:hi world?!|PATH}}
6248 {{urlencode:hi world?!|QUERY}}
6261 Magic links: internal link to RFC (bug 479)
6265 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
6270 Magic links: RFC (bug 479)
6274 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
6279 Magic links: ISBN (bug 1937)
6283 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
6288 Magic links: PMID incorrectly converts space to underscore
6292 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
6301 Nonexistent template
6303 {{thistemplatedoesnotexist}}
6305 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
6310 Template with invalid target containing tags
6312 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6314 <p>{{a<b>b</b>|foo|a=b|a = b}}
6319 Template with invalid target containing unclosed tag
6321 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6323 <p>{{a<b>|foo|a=b|a = b}}</b>
6330 This is a test template
6338 <p>This is a test template
6343 Template with explicit namespace
6347 <p>This is a test template
6355 This is a test template with parameter {{{param}}}
6361 {{paramtest|param=foo}}
6363 <p>This is a test template with parameter foo
6368 Template:paramtestnum
6374 Template unnamed parameter
6376 {{paramtestnum|Main Page|the main page}}
6378 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
6383 Template:templatesimple
6389 Template:templateredirect
6391 #redirect [[Template:templatesimple]]
6395 Template:templateasargtestnum
6401 Template:templateasargtest
6403 {{template{{{templ}}}}}
6407 Template:templateasargtest2
6413 Template with template name as unnamed argument
6415 {{templateasargtestnum|templatesimple}}
6422 Template with template name as argument
6424 {{templateasargtest|templ=simple}}
6431 Template with template name as argument (2)
6433 {{templateasargtest2|templ=templatesimple}}
6440 Template:templateasargtestdefault
6442 {{{{{templ|templatesimple}}}}}
6452 Template with default value
6454 {{templateasargtestdefault}}
6461 Template with default value (value set)
6463 {{templateasargtestdefault|templ=templa}}
6472 {{templateredirect}}
6479 Template with argument in separate line
6481 {{ templateasargtest |
6489 Template with complex template as argument
6492 param ={{ templateasargtest |
6495 <p>This is a test template with parameter (test)
6500 Template with thumb image (with link in description)
6503 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6505 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>
6510 Template:complextemplate
6512 {{{1}}} {{paramtest|
6513 param ={{{param}}}}}
6517 Template with complex arguments
6520 param ={{ templateasargtest |
6521 templ = simple }}|[[Template:complextemplate|link]]}}
6523 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6528 BUG 553: link with two variables in a piped link
6531 |[[{{{1}}}|{{{2}}}]]
6536 <td>[[{{{1}}}|{{{2}}}]]
6542 Magic variable as template parameter
6544 {{paramtest|param={{SITENAME}}}}
6546 <p>This is a test template with parameter MediaWiki
6553 [[{{{param}}}|link]]
6557 Template parameter as link source
6559 {{linktest|param=Main Page}}
6561 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6566 Template-generated attribute string (k='v')
6568 <span {{attr_str|id|v1}}>bar</span>
6570 <p><span id="v1">bar</span>
6577 including another template, {{paramtest|param={{{arg}}}}}
6581 Template passing argument to another template
6583 {{paramtest2|arg='hmm'}}
6585 <p>including another template, This is a test template with parameter 'hmm'
6596 Template as link source
6600 [[{{linktest2}}|Main Page]]
6602 [[{{linktest2}}]]Page
6604 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6605 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6606 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6624 Template infinite loop
6628 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6633 Template from main namespace
6652 BUG 529: Template with table, not included at beginning of line
6671 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6691 BUG 41: Template parameters shown as broken links
6700 Template with targets containing wikilinks
6704 {{[[{{echo|foo}}]]}}
6706 {{{{echo|[[foo}}]]}}
6708 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6709 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6717 ''None'' of '''this''' should be
6719 but rather passed unmodified
6723 # hmm, fix this or just deprecate msgnw and document its behavior?
6729 {{msgnw:MSGNW test}}
6731 <p>''None'' of '''this''' should be
6733 but rather passed unmodified
6741 {{int:youhavenewmessages|lots of money|not!}}
6743 <p>You have lots of money (not!).
6750 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6754 <includeonly> and <noinclude> being included
6765 <onlyinclude>Foo</onlyinclude>bar
6769 <onlyinclude> being included
6781 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6785 <onlyinclude> and <includeonly> being included
6794 <includeonly> and <noinclude> on a page
6796 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6803 Un-closed <noinclude>
6810 <onlyinclude> on a page
6812 <onlyinclude>Foo</onlyinclude>bar
6819 Un-closed <onlyinclude>
6826 Self-closed noinclude, includeonly, onlyinclude tags
6837 Unbalanced includeonly and noinclude tags
6841 |b</noinclude></noinclude>
6842 |c</noinclude></includeonly>
6843 |d</includeonly></includeonly>
6852 <td>c</includeonly>
6854 <td>d</includeonly></includeonly>
6860 Template:Includeonly section
6863 ==Includeonly section==
6869 Bug 6563: Edit link generation for section shown by <includeonly>
6871 {{includeonly section}}
6873 <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>
6874 <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>
6878 # Uses same input as the contents of [[Template:Includeonly section]]
6880 Bug 6563: Section extraction for section shown by <includeonly>
6885 ==Includeonly section==
6893 Bug 6563: Edit link generation for section suppressed by <includeonly>
6896 ==Includeonly section==
6900 <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>
6905 Bug 6563: Section extraction for section suppressed by <includeonly>
6910 ==Includeonly section==
6918 Un-closed <includeonly>
6924 # TODO: test with DOM fragment reuse!
6926 Parsoid: DOM fragment reuse
6928 parsoid=wt2wt,wt2html
6930 a{{echo|b<table></table>c}}d
6942 a<span typeof="mw:Transclusion">b</span>
6943 <table></table><span>c</span>d
6944 <p typeof="mw:Transclusion">ab</p>
6947 <p typeof="mw:Transclusion">a</p>
6953 ### <includeonly> and <noinclude> in attributes
6956 0. includeonly around the entire attribute
6958 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6960 <p><span id="v2">bar</span>
6965 1. includeonly in html attr key
6967 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6969 <p><span id="foo">bar</span>
6974 2. includeonly in html attr value
6976 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6977 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6979 <p><span id="v1">bar</span>
6980 <span id="v1">bar</span>
6985 3. includeonly in part of an attr value
6987 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6989 <p><span style="color:red;">bar</span>
6994 ### Testing parsing of templates where a template arg
6995 ### has the same name as the template itself.
7005 Templates: Template Name/Arg clash: 1. Use of positional param
7014 Templates: Template Name/Arg clash: 2. Use of named param
7023 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7032 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7036 Templates: 1. Simple use
7045 Templates: 2. Inside a block tag
7047 <div>{{echo|Foo}}</div>
7054 Templates: P-wrapping: 1a. Templates on consecutive lines
7065 Templates: P-wrapping: 1b. Templates on consecutive lines
7079 Templates: P-wrapping: 1c. Templates on consecutive lines
7082 {{echo|bar}} <div>baz</div>
7091 Templates: P-wrapping: 1d. Template preceded by comment-only line
7093 parsoid=wt2html,wt2wt
7099 <p typeof="mw:Transclusion">Bar
7104 Templates: Inline Text: 1. Multiple tmeplate uses
7106 {{echo|Foo}}bar{{echo|baz}}
7113 Templates: Inline Text: 2. Back-to-back template uses
7115 {{echo|Foo}}{{echo|bar}}
7122 Templates: Block Tags: 1. Multiple template uses
7124 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
7126 <div>Foo</div><div>bar</div><div>baz</div>
7131 Templates: Block Tags: 2. Back-to-back template uses
7133 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
7135 <div>Foo</div><div>bar</div>
7140 Templates: Links: 1. Simple example
7142 {{echo|[[Foo|bar]]}}
7144 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7149 Templates: Links: 2. Generation of link href
7151 [[{{echo|Foo}}|bar]]
7153 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7158 Templates: Links: 3. Generation of part of a link href
7160 [[Fo{{echo|o}}|bar]]
7164 [[Foo{{echo|bar}}baz]]
7166 [[Foo{{echo|bar}}|bar]]
7168 [[:Foo{{echo|bar}}]]
7170 [[:Foo{{echo|bar}}|bar]]
7172 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7173 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7174 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
7175 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7176 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7177 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7182 Templates: Links: 4. Multiple templates generating link href
7184 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
7186 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7191 Templates: Links: 5. Generation of link text
7193 [[Foo|{{echo|bar}}]]
7195 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7200 Templates: Links: 5. Nested templates (only outermost template should be marked)
7202 {{echo|[[{{echo|Foo}}|bar]]}}
7204 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7209 Templates: HTML Tag: 1. Generation of HTML attr. key
7211 <div {{echo|style}}="color:red;">foo</div>
7213 <div style="color:red;">foo</div>
7218 Templates: HTML Tag: 2. Generation of HTML attr. value
7220 <div style={{echo|'color:red;'}}>foo</div>
7222 <div style="color:red;">foo</div>
7227 Templates: HTML Tag: 3. Generation of HTML attr key and value
7229 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
7231 <div style="color:red;">foo</div>
7236 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
7238 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
7240 <div title="This is a long title with just one piece templated">foo</div>
7245 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
7247 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
7249 <div title="This is a long title with just one piece templated">foo</div>
7254 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
7256 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
7258 <div title="This is a long title with just one piece templated">foo</div>
7263 Templates: HTML Tag: 7. Generation of partial attribute key string
7265 <div st{{echo|yle}}="color:red;">foo</div>
7267 <div style="color:red;">foo</div>
7272 Templates: HTML Tables: 1. Generating start of a HTML table
7274 {{echo|<table><tr><td>foo</td>}}</tr></table>
7276 <table><tr><td>foo</td></tr></table>
7281 Templates: HTML Tables: 2a. Generating middle of a HTML table
7283 <table><tr>{{echo|<td>foo</td>}}</tr></table>
7285 <table><tr><td>foo</td></tr></table>
7290 Templates: HTML Tables: 2b. Generating middle of a HTML table
7292 <table>{{echo|<tr><td>foo</td></tr>}}</table>
7294 <table><tr><td>foo</td></tr></table>
7299 Templates: HTML Tables: 3. Generating end of a HTML table
7301 <table><tr>{{echo|<td>foo</td></tr></table>}}
7303 <table><tr><td>foo</td></tr></table>
7308 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
7310 {{echo|<table>}}<tr><td>foo</td></tr></table>
7312 <table><tr><td>foo</td></tr></table>
7317 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
7319 <table>{{echo|<tr>}}<td>foo</td></tr></table>
7321 <table><tr><td>foo</td></tr></table>
7326 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
7328 <table><tr>{{echo|<td>}}foo</td></tr></table>
7330 <table><tr><td>foo</td></tr></table>
7335 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
7337 <table><tr><td>foo{{echo|</td>}}</tr></table>
7339 <table><tr><td>foo</td></tr></table>
7344 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
7346 <table><tr><td>foo</td>{{echo|</tr>}}</table>
7348 <table><tr><td>foo</td></tr></table>
7353 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
7355 <table><tr><td>foo</td></tr>{{echo|</table>}}
7357 <table><tr><td>foo</td></tr></table>
7362 Templates: HTML Tables: 5. Proper fostering of categories from inside
7364 parsoid=wt2html,wt2wt
7366 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
7367 <!--Two categories (Bug 50330)-->
7368 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
7370 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
7371 <!--Two categories (Bug 50330)-->
7372 <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>
7376 Templates: Wiki Tables: 1a. Fostering of entire template content
7384 <tr><td></td></tr></table>
7389 Templates: Wiki Tables: 1b. Fostering of entire template content
7402 <tr><td></td></tr></table>
7407 Templates: Wiki Tables: 2. Fostering of partial template content
7417 <tr><td></td></tr></table>
7422 Templates: Wiki Tables: 3. td-content via multiple templates
7425 {{echo|{{pipe}}a}}{{echo|b}}
7436 Templates: Wiki Tables: 4. Templated tags, no content
7442 <tr><td></td></tr></table>
7447 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7461 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7475 Templates: Lists: Multi-line list-items via templates
7477 *{{echo|a {{nonexistent|
7479 *{{echo|b {{nonexistent|
7482 <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>
7483 </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>
7489 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7491 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7493 <p><i>ab</i>c<i>d</i>e
7498 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7499 (PHP parser generates misnested html)
7501 parsoid=wt2html,wt2wt
7503 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7505 <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>
7509 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7510 (PHP parser generates misnested html)
7512 parsoid=wt2html,wt2wt
7514 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7516 <div typeof="mw:Transclusion"><i>a</i></div>
7517 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7518 <div typeof="mw:Transclusion">e</div>
7522 Templates: Ugly nesting: 4. Divs opened/closed across templates
7524 a<div>b{{echo|c</div>d}}e
7531 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7537 |{{echo|foo</table>}}
7541 <table typeof="mw:Transclusion">
7544 <td>foo</td></tr></tbody></table><span>bar</span>
7548 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7558 <td>1. {{echo|foo </table>}}</td>
7560 <td>2. {{echo|baz </table>}}</td>
7573 <table about="#mwt1" typeof="mw:Transclusion">
7578 <td >1. foo </td></tr></tbody></table></td>
7580 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7581 </span><span about="#mwt1">
7583 abc</span><span about="#mwt1">
7584 </span><span about="#mwt1">
7585 </span><span about="#mwt1">
7586 </span><span about="#mwt1">
7587 </span><span about="#mwt1">
7589 xyz</span><span about="#mwt1">
7590 </span><span about="#mwt1">
7595 Templates: Ugly templates: 3. newline-only template parameter
7604 # This looks like a bug: a single newline triggers p/br for some reason.
7606 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7617 Parser Functions: 1. Simple example
7626 Parser Functions: 2. Nested use (only outermost should be marked up)
7635 ### Pre-save transform tests
7638 pre-save transform: subst:
7644 This is a test template
7648 pre-save transform: normal template
7658 pre-save transform: nonexistent template
7662 {{thistemplatedoesnotexist}}
7664 {{thistemplatedoesnotexist}}
7669 pre-save transform: subst magic variables
7678 # This is bug 89, which I fixed. -- wtm
7680 pre-save transform: subst: templates with parameters
7684 {{subst:paramtest|param="something else"}}
7686 This is a test template with parameter "something else"
7692 <nowiki>'''not wiki'''</nowiki>
7696 pre-save transform: nowiki in subst (bug 1188)
7700 {{subst:nowikitest}}
7702 <nowiki>'''not wiki'''</nowiki>
7707 Template:commenttest
7709 This template has <!-- a comment --> in it.
7713 pre-save transform: comment in subst (bug 1936)
7717 {{subst:commenttest}}
7719 This template has <!-- a comment --> in it.
7723 pre-save transform: unclosed tag
7727 <nowiki>'''not wiki'''
7729 <nowiki>'''not wiki'''
7733 pre-save transform: mixed tag case
7737 <NOwiki>'''not wiki'''</noWIKI>
7739 <NOwiki>'''not wiki'''</noWIKI>
7743 pre-save transform: unclosed comment in <nowiki>
7747 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7749 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7752 # Leading @ in this template definition works around a limitation
7753 # in parsoid's parserTests which otherwise strips the <span> from the
7754 # result (confusing it for a template wrapper)
7758 @<span onmouseover="alert('crap')">Oh no</span>
7762 (confirming safety of fix for subst bug 1936)
7764 {{Template:dangerous}}
7766 <p>@<span>Oh no</span>
7771 pre-save transform: comment containing gallery (bug 5024)
7775 <!-- <gallery>data</gallery> -->
7777 <!-- <gallery>data</gallery> -->
7781 pre-save transform: comment containing extension
7785 <!-- <tag>data</tag> -->
7787 <!-- <tag>data</tag> -->
7791 pre-save transform: comment containing nowiki
7795 <!-- <nowiki>data</nowiki> -->
7797 <!-- <nowiki>data</nowiki> -->
7801 pre-save transform: <noinclude> in subst (bug 3298)
7811 pre-save transform: <onlyinclude> in subst (bug 3298)
7823 {{<includeonly>subst:</includeonly>Includes}}
7827 Template:SafeSubstTest
7829 {{<includeonly>safesubst:</includeonly>Includes}}
7833 bug 22297: safesubst: works during PST
7837 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7843 bug 22297: safesubst: works during normal parse
7852 subst: does not work during normal parse
7856 <p>{{subst:Includes}}
7861 pre-save transform: context links ("pipe trick")
7865 [[Article (context)|]]
7868 [[Bar:Article (context)|]]
7869 [[:Bar:Article (context)|]]
7871 [[|Article (context)]]
7875 [[Article (context)|Article]]
7876 [[Bar:Article|Article]]
7877 [[:Bar:Article|Article]]
7878 [[Bar:Article (context)|Article]]
7879 [[:Bar:Article (context)|Article]]
7881 [[Article (context)]]
7882 [[Bar:X (Y) Z|X (Y) Z]]
7883 [[:Bar:X (Y) Z|X (Y) Z]]
7887 pre-save transform: context links ("pipe trick") with interwiki prefix
7891 [[interwiki:Article|]]
7892 [[:interwiki:Article|]]
7893 [[interwiki:Bar:Article|]]
7894 [[:interwiki:Bar:Article|]]
7896 [[interwiki:Article|Article]]
7897 [[:interwiki:Article|Article]]
7898 [[interwiki:Bar:Article|Bar:Article]]
7899 [[:interwiki:Bar:Article|Bar:Article]]
7903 pre-save transform: context links ("pipe trick") with parens in title
7905 pst title=[[Somearticle (context)]]
7909 [[Article (context)|Article]]
7913 pre-save transform: context links ("pipe trick") with comma in title
7915 pst title=[[Someplace, Somewhere]]
7918 [[Otherplace, Elsewhere|]]
7919 [[Otherplace, Elsewhere, Anywhere|]]
7921 [[Otherplace, Somewhere|Otherplace]]
7922 [[Otherplace, Elsewhere|Otherplace]]
7923 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7927 pre-save transform: context links ("pipe trick") with parens and comma
7929 pst title=[[Someplace (IGNORED), Somewhere]]
7932 [[Otherplace (place), Elsewhere|]]
7934 [[Otherplace, Somewhere|Otherplace]]
7935 [[Otherplace (place), Elsewhere|Otherplace]]
7939 pre-save transform: context links ("pipe trick") with comma and parens
7941 pst title=[[Who, me? (context)]]
7944 [[Me, Myself, and I (1937 song)|]]
7946 [[Yes, you. (context)|Yes, you.]]
7947 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7951 pre-save transform: context links ("pipe trick") with namespace
7953 pst title=[[Ns:Somearticle]]
7957 [[Ns:Article|Article]]
7961 pre-save transform: context links ("pipe trick") with namespace and parens
7963 pst title=[[Ns:Somearticle (context)]]
7967 [[Ns:Article (context)|Article]]
7971 pre-save transform: context links ("pipe trick") with namespace and comma
7973 pst title=[[Ns:Somearticle, Context, Whatever]]
7977 [[Ns:Article, Context, Whatever|Article]]
7981 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7983 pst title=[[Ns:Somearticle, Context (context)]]
7987 [[Ns:Article (context)|Article]]
7991 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7993 pst title=[[Ns:Somearticle (IGNORED), Context]]
7997 [[Ns:Article, Context|Article]]
8001 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8005 [[Article(context)|]]
8006 [[Bar:Article(context)|]]
8007 [[:Bar:Article(context)|]]
8008 [[|Article(context)]]
8012 [[Article(context)|Article]]
8013 [[Bar:Article(context)|Article]]
8014 [[:Bar:Article(context)|Article]]
8015 [[Article(context)]]
8017 [[:Bar:X(Y)Z|X(Y)Z]]
8021 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8025 [[Article (context)|]]
8026 [[Bar:Article (context)|]]
8027 [[:Bar:Article (context)|]]
8028 [[|Article (context)]]
8032 [[Article (context)|Article]]
8033 [[Bar:Article (context)|Article]]
8034 [[:Bar:Article (context)|Article]]
8035 [[Article (context)]]
8036 [[Bar:X (Y) Z|X (Y) Z]]
8037 [[:Bar:X (Y) Z|X (Y) Z]]
8041 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8045 [[Article(context)|]]
8046 [[Bar:Article(context)|]]
8047 [[:Bar:Article(context)|]]
8048 [[|Article(context)]]
8052 [[Article(context)|Article]]
8053 [[Bar:Article(context)|Article]]
8054 [[:Bar:Article(context)|Article]]
8055 [[Article(context)]]
8057 [[:Bar:X(Y)Z|X(Y)Z]]
8061 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8065 [[Article (context), context|]]
8066 [[Article (context),context|]]
8067 [[Bar:Article (context), context|]]
8068 [[Bar:Article (context),context|]]
8069 [[:Bar:Article (context), context|]]
8070 [[:Bar:Article (context),context|]]
8072 [[Article (context), context|Article]]
8073 [[Article (context),context|Article]]
8074 [[Bar:Article (context), context|Article]]
8075 [[Bar:Article (context),context|Article]]
8076 [[:Bar:Article (context), context|Article]]
8077 [[:Bar:Article (context),context|Article]]
8081 pre-save transform: trim trailing empty lines
8085 Empty lines are trimmed
8091 Empty lines are trimmed
8095 pre-save transform: Signature expansion
8100 * <noinclude>~~~</noinclude>
8101 * <includeonly>~~~</includeonly>
8102 * <onlyinclude>~~~</onlyinclude>
8104 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
8105 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
8106 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
8107 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
8112 pre-save transform: Signature expansion in nowiki tags (bug 93)
8118 <nowiki>~~~~</nowiki>
8120 <includeonly><nowiki>~~~~</nowiki></includeonly>
8122 <noinclude><nowiki>~~~~</nowiki></noinclude>
8124 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8126 {{subst:Foo}} shall be converted to FOO
8128 As well as inside noinclude/onlyinclude
8129 <noinclude>{{subst:Foo}}</noinclude>
8130 <onlyinclude>{{subst:Foo}}</onlyinclude>
8132 But not inside includeonly
8133 <includeonly>{{subst:Foo}}</includeonly>
8137 <nowiki>~~~~</nowiki>
8139 <includeonly><nowiki>~~~~</nowiki></includeonly>
8141 <noinclude><nowiki>~~~~</nowiki></noinclude>
8143 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8145 FOO shall be converted to FOO
8147 As well as inside noinclude/onlyinclude
8148 <noinclude>FOO</noinclude>
8149 <onlyinclude>FOO</onlyinclude>
8151 But not inside includeonly
8152 <includeonly>{{subst:Foo}}</includeonly>
8156 Parsoid: Recognize nowiki with trailing space in tags
8160 <nowiki ><div>[[foo]]</nowiki >
8168 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8175 Parsoid: Recognize nowiki with odd capitalization
8179 <noWikI ><div>[[foo]]</Nowiki >
8181 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8186 Parsoid: Escape nowiki with trailing space in tags
8190 <nowiki > foo </nowiki >
8196 <p><nowiki > foo </nowiki ></p>
8197 <p>a<nowiki />b</p>
8198 <p>c<nowiki/ >d</p>
8202 Parsoid: Escape weird noWikI capitalizations
8206 <noWikI > foo </NoWikI >
8208 <p><noWikI > foo </NoWikI ></p>
8212 ### Message transform tests
8215 message transform: magic variables
8225 message transform: should not transform wiki markup
8235 message transform: <noinclude> in transcluded template (bug 4926)
8245 message transform: <onlyinclude> in transcluded template (bug 4926)
8255 {{#special:}} page name, known
8259 {{#special:Recentchanges}}
8261 Special:RecentChanges
8265 {{#special:}} page name with subpage, known
8269 {{#special:Recentchanges/param}}
8271 Special:RecentChanges/param
8275 {{#special:}} page name, unknown
8279 {{#special:foobar nonexistent}}
8281 Special:Foobar nonexistent
8285 {{#speciale:}} page name, known
8289 {{#speciale:Recentchanges}}
8291 Special:RecentChanges
8295 {{#speciale:}} page name with subpage, known
8299 {{#speciale:Recentchanges/param}}
8301 Special:RecentChanges/param
8305 {{#speciale:}} page name, unknown
8309 {{#speciale:foobar nonexistent}}
8311 Special:Foobar_nonexistent
8320 [[Image:foobar.jpg]]
8322 <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>
8329 [[Image:foobar.jpg|right]]
8331 <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>
8336 Simple image (using File: namespace, now canonical)
8340 <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>
8347 [[Image:foobar.jpg|right|Caption text]]
8349 <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>
8354 Image with empty attribute
8356 [[Image:foobar.jpg|right||Caption text]]
8358 <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>
8363 Image with attributes from template.
8365 [[Image:foobar.jpg|{{image_attribs}}]]
8367 <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>
8372 Image with link tails
8374 123[[Image:foobar.jpg]]456
8375 123[[Image:foobar.jpg|right]]456
8376 123[[Image:foobar.jpg|thumb]]456
8378 <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
8380 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
8381 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
8386 Image with multiple captions -- only last one is accepted
8388 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8390 <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>
8395 Image with width attribute at different positions
8397 [[Image:foobar.jpg|200px|right|Caption]]
8398 [[Image:foobar.jpg|right|200px|Caption]]
8399 [[Image:foobar.jpg|right|Caption|200px]]
8401 <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>
8402 <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>
8403 <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>
8408 Image with link parameter, wiki target
8410 [[Image:foobar.jpg|link=Target page]]
8412 <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>
8417 Image with link parameter, URL target
8419 [[Image:foobar.jpg|link=http://example.com/]]
8421 <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>
8426 Image with link parameter, wgExternalLinkTarget
8428 [[Image:foobar.jpg|link=http://example.com/]]
8430 wgExternalLinkTarget='foobar'
8432 <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>
8437 Image with link parameter, wgNoFollowLinks set to false
8439 [[Image:foobar.jpg|link=http://example.com/]]
8441 wgNoFollowLinks=false
8443 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8448 Image with link parameter, wgNoFollowDomainExceptions
8450 [[Image:foobar.jpg|link=http://example.com/]]
8452 wgNoFollowDomainExceptions='example.com'
8454 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8459 Image with link parameter, wgExternalLinkTarget, unnamed parameter
8461 [[Image:foobar.jpg|link=http://example.com/|Title]]
8463 wgExternalLinkTarget='foobar'
8465 <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>
8470 Image with empty link parameter
8472 [[Image:foobar.jpg|link=]]
8474 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8479 Image with link parameter (wiki target) and unnamed parameter
8481 [[Image:foobar.jpg|link=Target page|Title]]
8483 <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>
8488 Image with link parameter (URL target) and unnamed parameter
8490 [[Image:foobar.jpg|link=http://example.com/|Title]]
8492 <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>
8497 Thumbnail image with link parameter
8501 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8503 <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>
8508 Manually-specified thumbnail image
8512 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8514 <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>
8519 Manually-specified thumbnail image with explicit link to wiki page
8523 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8525 <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>
8530 Manually-specified thumbnail image with explicit link to url
8534 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8536 <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>
8541 Manually-specified thumbnail image with explicit no link
8545 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8547 <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>
8552 Manually-specified thumbnail image with explicit link and alt text
8556 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8558 <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>
8563 Image with frame and link
8565 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8567 <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>
8572 Image with frame and link and explicit alt
8574 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8576 <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>
8581 Image with wiki markup in implicit alt
8583 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8585 <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>
8590 Image with wiki markup in explicit alt
8592 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8594 <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>
8599 Link to image page- image page normally doesn't exists, hence edit link
8600 Add test with existing image page
8601 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8605 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8610 bug 18784 Link to non-existent image page with caption should use caption as link text
8612 [[:Image:test|caption]]
8614 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8619 Frameless image caption with a free URL
8621 [[Image:foobar.jpg|http://example.com]]
8623 <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>
8628 Thumbnail image caption with a free URL
8630 [[Image:foobar.jpg|thumb|http://example.com]]
8632 <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>
8637 Thumbnail image caption with a free URL and explicit alt
8639 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8641 <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>
8646 SVG thumbnails with no language set
8649 [[File:Foobar.svg|thumb|width=200]]
8651 <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>
8656 SVG thumbnails with language de
8659 [[File:Foobar.svg|thumb|width=200|lang=de]]
8661 <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>
8666 SVG thumbnails with invalid language code
8669 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8671 <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>
8676 BUG 1887: A ISBN with a thumbnail
8678 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8680 <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>
8685 BUG 1887: A RFC with a thumbnail
8687 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8689 <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>
8694 BUG 1887: A mailto link with a thumbnail
8696 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8698 <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>
8702 # Pending resolution to bug 368
8704 BUG 648: Frameless image caption with a link
8706 [[Image:foobar.jpg|text with a [[link]] in it]]
8708 <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>
8713 BUG 648: Frameless image caption with a link (suffix)
8715 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8717 <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>
8722 BUG 648: Frameless image caption with an interwiki link
8724 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8726 <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>
8731 BUG 648: Frameless image caption with a piped interwiki link
8733 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8735 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8740 Escape HTML special chars in image alt text
8742 [[Image:foobar.jpg|& < > "]]
8744 <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>
8749 BUG 499: Alt text should have Ӓ, not &1234;
8751 [[Image:foobar.jpg|♀]]
8753 <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>
8758 Broken image caption with link
8760 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8762 <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.
8767 Image caption containing another image
8769 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8771 <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>
8776 Image caption containing a newline
8778 [[Image:Foobar.jpg|This
8781 <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>
8786 Parsoid: Image caption containing leading space
8787 (The leading space should not trigger nowiki escaping in wt2wt mode)
8789 [[Image:Foobar.jpg|thumb| bar]]
8791 <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>
8796 Bug 3090: External links other than http: in image captions
8798 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8800 <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>
8807 [[Image:foobar.jpg|a|class=b]]
8809 <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>
8814 Localized image handling (1).
8818 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8820 <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>
8825 Localized image handling (2).
8829 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8831 <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>
8836 "border", "frameless" and "class" attributes on an image.
8838 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8840 <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>
8847 #REDIRECT [[File:Barfoo.jpg]]
8853 [[Image:Barfoo.jpg]]
8855 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8860 Missing image with uploads disabled
8864 [[Image:Foobaz.jpg]]
8866 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8870 # Parsoid-specific testing for images
8871 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8872 # Currently imperfect due to a flaw in the Parsoid testrunner
8876 Parsoid-specific image handling - simple image
8880 [[Image:Foobar.jpg]]
8883 <span class="mw-default-size" typeof="mw:Image">
8884 <a href="File:Foobar.jpg">
8885 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8892 Parsoid-specific image handling - simple image without link
8896 [[Image:Foobar.jpg|link=]]
8899 <span class="mw-default-size" typeof="mw:Image">
8901 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8908 Parsoid-specific image handling - simple image with specific link
8912 [[Image:Foobar.jpg|link=Main Page]]
8915 <span class="mw-default-size" typeof="mw:Image">
8916 <a href="Main_Page">
8917 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8924 Parsoid-specific image handling - simple image with size and middle alignment
8928 [[Image:Foobar.jpg|50px|middle]]
8931 <span class="mw-valign-middle" typeof="mw:Image">
8932 <a href="File:Foobar.jpg">
8933 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8940 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8944 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8947 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8948 <a href="File:Foobar.jpg">
8949 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8956 Parsoid-specific image handling - simple image with border and size spec
8960 [[Image:Foobar.jpg|50px|border|caption]]
8963 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8964 <a href="File:Foobar.jpg">
8965 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8972 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8976 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8978 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8979 <a href="File:Foobar.jpg">
8980 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8982 <figcaption>caption content</figcaption>
8987 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8991 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8993 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8994 <a href="File:Foobar.jpg">
8995 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8997 <figcaption>caption</figcaption>
9002 Parsoid-specific image handling - framed image with specific size and caption
9006 [[Image:Foobar.jpg|500x50px|frame|caption]]
9008 <figure typeof="mw:Image/Frame">
9009 <a href="File:Foobar.jpg">
9010 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9012 <figcaption>caption</figcaption>
9017 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
9021 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
9023 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
9024 <a href="File:Foobar.jpg">
9025 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9027 <figcaption>caption</figcaption>
9032 Parsoid-specific image handling - frameless image with specific size, border, and caption
9036 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
9039 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
9040 <a href="File:Foobar.jpg">
9041 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9047 #Parsoid-specific image handling - simple image with a formatted caption
9051 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
9054 #<span typeof="mw:Image">
9055 #<a class="mw-default-size" href="Image:Foobar.jpg">
9056 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
9067 Subpage test/subpage
9075 subpage title=[[Subpage test]]
9079 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
9084 Subpage noslash link
9086 subpage title=[[Subpage test]]
9090 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
9094 # TODO: make this PHP-parser compatible!
9096 Relative subpage noslash link
9098 parsoid=wt2wt,wt2html,html2html
9099 subpage title=[[Subpage test/1/2/3/4]]
9105 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
9106 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
9109 # TODO: make this PHP-parser compatible!
9111 Parsoid: dot-slash prefixed wikilinks
9113 parsoid=wt2wt,wt2html,html2html
9121 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
9122 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
9123 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
9131 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
9136 BUG 561: {{/Subpage}}
9138 subpage title=[[Page]]
9142 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
9150 Category:MediaWiki User's Guide
9158 [[:Category:MediaWiki User's Guide]]
9160 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
9169 [[Category:MediaWiki User's Guide]]
9171 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9175 PAGESINCATEGORY invalid title fatal (r33546 fix)
9177 {{PAGESINCATEGORY:<bogus>}}
9184 Category with different sort key
9188 [[Category:MediaWiki User's Guide|Foo]]
9190 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9194 Category with identical sort key
9198 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9200 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9204 Category with empty sort key
9209 [[Category:MediaWiki User's Guide|]]
9211 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9215 Category with empty sort key and parentheses
9220 [[Category:Foo (bar)|]]
9222 [[Category:Foo (bar)|Foo]]
9226 Category with link tail
9231 123[[Category:Foo]]456
9233 123[[Category:Foo]]456
9237 Category with template
9242 [[Category:{{echo|Foo}}]]
9244 [[Category:{{echo|Foo}}]]
9248 Category with template in sort key
9253 [[Category:Foo|{{echo|Bar}}]]
9255 [[Category:Foo|{{echo|Bar}}]]
9259 Category with template in sort key and title
9264 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9266 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9270 Category / paragraph interactions
9272 Foo [[Category:Baz]] Bar
9274 Foo [[Category:Baz]]
9282 [[Category:Baz]] Bar
9295 {{echo|[[Category:Baz]]}}
9310 Parsoid: Serialize link to category page with colon escape
9316 [[:Category:Foo|Bar]]
9319 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
9320 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
9325 Parsoid: Link prefix/suffixes aren't applied to category links
9327 parsoid=wt2html,wt2wt,html2html
9332 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
9336 Parsoid: Serialize link to file page with colon escape
9342 [[:File:Foo.png|Bar]]
9345 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
9346 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
9351 Parsoid: Serialize a genuine category link without colon escape
9356 [[Category:Foo|Bar]]
9358 <link rel="mw:WikiLink/Category" href="Category:Foo">
9359 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
9363 ### Inter-language links
9366 Inter-language links
9372 [[zh:食品]]
9374 es:Alimento fr:Nourriture zh:食品
9378 Duplicate interlanguage links (bug 24502)
9394 Basic section headings
9401 ===Smaller headline===
9404 <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>
9407 <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>
9410 <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>
9416 Section headings with TOC
9419 === Subheadline 1 ===
9420 ===== Skipping a level =====
9421 ====== Skipping a level ======
9425 ===Another headline===
9427 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9429 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
9431 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
9433 <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>
9435 <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>
9442 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
9444 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
9449 <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>
9450 <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>
9451 <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>
9452 <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>
9453 <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>
9456 <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>
9460 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
9462 Handling of sections up to level 6 and beyond
9465 == Level 2 Heading==
9466 === Level 3 Heading===
9467 ==== Level 4 Heading====
9468 ===== Level 5 Heading=====
9469 ====== Level 6 Heading======
9470 ======= Level 7 Heading=======
9471 ======== Level 8 Heading========
9472 ========= Level 9 Heading=========
9473 ========== Level 10 Heading==========
9475 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9477 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9479 <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>
9481 <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>
9483 <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>
9485 <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>
9487 <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>
9488 <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>
9489 <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>
9490 <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>
9491 <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>
9504 <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>
9505 <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>
9506 <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>
9507 <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>
9508 <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>
9509 <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>
9510 <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>
9511 <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>
9512 <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>
9513 <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>
9518 TOC regression (bug 9764)
9522 ==== title 1.1.1 ====
9527 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9529 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9531 <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>
9533 <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>
9536 <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>
9539 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9541 <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>
9546 <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>
9547 <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>
9548 <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>
9549 <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>
9550 <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>
9551 <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>
9556 TOC with wgMaxTocLevel=3 (bug 6204)
9562 ==== title 1.1.1 ====
9567 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9569 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9571 <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>
9572 <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>
9575 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9577 <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>
9582 <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>
9583 <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>
9584 <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>
9585 <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>
9586 <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>
9587 <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>
9592 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9598 ====Section 1.1.1====
9599 ====Section 1.1.1.1====
9602 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9604 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9606 <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>
9609 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9612 <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>
9613 <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>
9614 <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>
9615 <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>
9616 <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>
9622 Resolving duplicate section names
9627 <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>
9628 <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>
9633 Resolving duplicate section names with differing case (bug 10721)
9638 <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>
9639 <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>
9651 Template with sections, __NOTOC__
9658 <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>
9659 <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>
9660 <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>
9661 <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>
9666 __NOEDITSECTION__ keyword
9672 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9673 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9678 Link inside a section heading
9680 ==Section with a [[Main Page|link]] in it==
9682 <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>
9687 TOC regression (bug 12077)
9694 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9696 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9698 <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>
9701 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9704 <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>
9705 <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>
9706 <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>
9711 BUG 1219 URL next to image (good)
9713 http://example.com [[Image:foobar.jpg]]
9715 <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>
9720 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9723 The line above must have a trailing space!
9726 But just in case it doesn't...
9728 <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>
9729 <p>The line above must have a trailing space!
9731 <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>
9732 <p>But just in case it doesn't...
9737 Header with special characters (bug 25462)
9739 The tooltips shall not show entities to the user (ie. be double escaped)
9756 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9758 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9760 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9761 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9762 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9763 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9764 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9767 <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>
9770 <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>
9773 <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>
9776 <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>
9779 <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>
9785 Headers with excess '=' characters
9786 (Are similar tests necessary beyond the 1st level?)
9790 =''italic'' heading==
9791 ==''italic'' heading=
9793 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9795 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9796 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9797 <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>
9798 <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>
9801 <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>
9802 <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>
9803 <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>
9804 <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>
9809 HTML headers vs TOC (bug 23393)
9810 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9822 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9824 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9826 <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>
9827 <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>
9830 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9832 <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>
9833 <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>
9838 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9839 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9840 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9841 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9842 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9843 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9848 BUG 1219 URL next to image (broken)
9850 http://example.com[[Image:foobar.jpg]]
9852 <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>
9857 Bug 1186 news: in the middle of text
9859 http://en.wikinews.org/wiki/Wikinews:Workplace
9861 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9867 Namespaced link must have a title
9876 Namespaced link must have a title (bad fragment version)
9878 [[Project:#fragment]]
9880 <p>[[Project:#fragment]]
9886 ### HTML tags and HTML attributes
9890 div with no attributes
9892 <div>HTML rocks</div>
9894 <div>HTML rocks</div>
9899 div with double-quoted attribute
9901 <div id="rock">HTML rocks</div>
9903 <div id="rock">HTML rocks</div>
9908 div with single-quoted attribute
9910 <div id='rock'>HTML rocks</div>
9912 <div id="rock">HTML rocks</div>
9917 div with unquoted attribute
9919 <div id=rock>HTML rocks</div>
9921 <div id="rock">HTML rocks</div>
9926 div with illegal double attributes
9928 <div id="a" id="b">HTML rocks</div>
9930 <div id="b">HTML rocks</div>
9934 # FIXME: produce empty string instead of "class" in the PHP parser, following
9937 div with empty attribute value, space before equals
9941 <div class =>HTML rocks</div>
9943 <div class="">HTML rocks</div>
9947 # The PHP parser escapes the opening brace to { for some reason, so
9948 # disabled this test for it.
9950 div with braces in attribute value
9954 <div title="{}">Foo</div>
9956 <div title="{}">Foo</div>
9959 # This it very inconsistent in the PHP parser: it returns
9960 # class="class" if there is a space between the name and the equal sign (see
9961 # 'div with empty attribute value, space before equals'), but strips the
9962 # attribute completely if the space is missing. We hope that not much content
9963 # depends on this, so are implementing the behavior below in Parsoid for
9964 # consistencies' sake. Disabled for the PHP parser.
9965 # FIXME: fix this behavior in the PHP parser?
9967 div with empty attribute value, no space before equals
9971 <div class=>HTML rocks</div>
9973 <div class="">HTML rocks</div>
9978 HTML multiple attributes correction
9980 <p class="error" class="awesome">Awesome!</p>
9982 <p class="awesome">Awesome!</p>
9987 Table multiple attributes correction
9990 !+ class="error" class="awesome"| status
9995 <th class="awesome"> status
10003 <DIV ID="x">HTML ROCKS</DIV>
10005 <div id="x">HTML ROCKS</div>
10010 Non-ASCII pseudo-tags are rendered as text
10019 Pseudo-tag with URL 'name' renders as url link
10021 <http://example.com/>
10023 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
10028 text with amp in the middle of nowhere
10032 <p>Remember AT&T?
10037 text with character entity: eacute
10039 I always thought é was a cute letter.
10041 <p>I always thought é was a cute letter.
10046 text with entity-escaped character entity-like string: eacute
10048 I always thought &eacute; was a cute letter.
10050 <p>I always thought &eacute; was a cute letter.
10055 text with undefined character entity: xacute
10057 I always thought &xacute; was a cute letter.
10059 <p>I always thought &xacute; was a cute letter.
10065 ### Nesting tests (see bug 41545, 50604, 51081)
10068 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
10069 # Note that html2wt is considerably more difficult if we use <b> in
10070 # the test case, instead of <big>
10072 Ensure that HTML adoption agency algorithm is properly implemented.
10074 <big>X<big>Y</big>Z</big>
10076 <p><big>X<big>Y</big>Z</big>
10080 # This was bug 41545 in the PHP parser.
10084 <kbd>X<kbd>Y</kbd>Z</kbd>
10086 <p><kbd>X<kbd>Y</kbd>Z</kbd>
10090 # The following cases were bug 51081 in the PHP parser.
10091 # Note that there are some other nestable tags (b, i, etc) which are
10092 # not covered; see bug 51081 for discussion.
10096 <em>X<em>Y</em>Z</em>
10098 <p><em>X<em>Y</em>Z</em>
10103 Nesting of <strong>
10105 <strong>X<strong>Y</strong>Z</strong>
10107 <p><strong>X<strong>Y</strong>Z</strong>
10116 <p><q>X<q>Y</q>Z</q>
10123 <ruby>X<ruby>Y</ruby>Z</ruby>
10125 <p><ruby>X<ruby>Y</ruby>Z</ruby>
10132 <bdo>X<bdo>Y</bdo>Z</bdo>
10134 <p><bdo>X<bdo>Y</bdo>Z</bdo>
10146 [[Media:Foobar.jpg]]
10148 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
10153 Media link with text
10155 [[Media:Foobar.jpg|A neat file to look at]]
10157 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
10161 # FIXME: this is still bad HTML tag nesting
10163 Media link with nasty text
10164 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
10166 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
10168 <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>
10173 Media link to nonexistent file (bug 1702)
10175 [[Media:No such.jpg]]
10177 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
10182 Image link to nonexistent file (bug 1850 - good)
10184 [[Image:No such.jpg]]
10186 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
10191 :Image link to nonexistent file (bug 1850 - bad)
10193 [[:Image:No such.jpg]]
10195 <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>
10202 Character reference normalization in link text (bug 1938)
10204 [[Main Page|this&that]]
10206 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
10213 Test for unicode normalization
10215 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
10219 (bug 19451) Links should refer to the normalized form.
10227 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10228 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10229 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10230 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10231 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10236 Empty attribute crash test (bug 2067)
10238 <font color="">foo</font>
10240 <p><font color="">foo</font>
10245 Empty attribute crash test single-quotes (bug 2067)
10247 <font color=''>foo</font>
10249 <p><font color="">foo</font>
10254 Attribute test: equals, then nothing
10256 <font color=>foo</font>
10258 <p><font>foo</font>
10263 Attribute test: unquoted value
10265 <font color=x>foo</font>
10267 <p><font color="x">foo</font>
10272 Attribute test: unquoted but illegal value (hash)
10274 <font color=#x>foo</font>
10276 <p><font color="#x">foo</font>
10281 Attribute test: no value
10283 <font color>foo</font>
10285 <p><font color="color">foo</font>
10290 Bug 2095: link with three closing brackets
10294 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
10299 Bug 2095: link with pipe and three closing brackets
10301 [[Main Page|link]]]
10303 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
10308 Bug 2095: link with pipe and three closing brackets, version 2
10310 [[Main Page|[http://example.com/]]]
10312 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
10322 Template:Dangerous attribute
10324 " onmouseover="alert(document.cookie)
10328 Template:Dangerous style attribute
10330 border-size: expression(alert(document.cookie))
10336 <div style="float: right; {{{1}}}">Magic div</div>
10340 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
10342 <div title="{{test}}"></div>
10344 <div title="This is a test template"></div>
10349 Bug 2304: HTML attribute safety (dangerous template; 2309)
10351 <div title="{{dangerous attribute}}"></div>
10353 <div title=""></div>
10358 Bug 2304: HTML attribute safety (dangerous style template; 2309)
10360 <div style="{{dangerous style attribute}}"></div>
10362 <div style="/* insecure input */"></div>
10367 Bug 2304: HTML attribute safety (safe parameter; 2309)
10369 {{div style|width: 200px}}
10371 <div style="float: right; width: 200px">Magic div</div>
10376 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
10378 {{div style|width: expression(alert(document.cookie))}}
10380 <div style="/* insecure input */">Magic div</div>
10385 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
10387 {{div style|"><script>alert(document.cookie)</script>}}
10389 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10394 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
10396 {{div style|" ><script>alert(document.cookie)</script>}}
10398 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10403 Bug 2304: HTML attribute safety (link)
10405 <div title="[[Main Page]]"></div>
10407 <div title="[[Main Page]]"></div>
10412 Bug 2304: HTML attribute safety (italics)
10414 <div title="''foobar''"></div>
10416 <div title="''foobar''"></div>
10421 Bug 2304: HTML attribute safety (bold)
10423 <div title="'''foobar'''"></div>
10425 <div title="'''foobar'''"></div>
10431 Bug 2304: HTML attribute safety (ISBN)
10433 <div title="ISBN 1234567890"></div>
10435 <div title="ISBN 1234567890"></div>
10440 Bug 2304: HTML attribute safety (RFC)
10442 <div title="RFC 1234"></div>
10444 <div title="RFC 1234"></div>
10449 Bug 2304: HTML attribute safety (PMID)
10451 <div title="PMID 1234567890"></div>
10453 <div title="PMID 1234567890"></div>
10458 Bug 2304: HTML attribute safety (web link)
10460 <div title="http://example.com/"></div>
10462 <div title="http://example.com/"></div>
10467 Bug 2304: HTML attribute safety (named web link)
10469 <div title="[http://example.com/ link]"></div>
10471 <div title="[http://example.com/ link]"></div>
10476 Bug 3244: HTML attribute safety (extension; safe)
10478 <div style="<nowiki>background:blue</nowiki>"></div>
10480 <div style="background:blue"></div>
10485 Bug 3244: HTML attribute safety (extension; unsafe)
10487 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10489 <div style="/* insecure input */"></div>
10493 # More MSIE fun discovered by Tom Gilder
10496 MSIE CSS safety test: spurious slash
10498 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10500 <div style="/* insecure input */">evil</div>
10505 MSIE CSS safety test: hex code
10507 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10509 <div style="/* insecure input */">evil</div>
10514 MSIE CSS safety test: comment in url
10516 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10518 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10523 MSIE CSS safety test: comment in expression
10525 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10527 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10533 Table attribute legitimate extension
10536 !+ style="<nowiki>color:blue</nowiki>"| status
10541 <th style="color:blue"> status
10547 Table attribute safety
10550 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10555 <th style="/* insecure input */"> status
10561 CSS line continuation 1
10563 <div style="background-image: u\ rl(test.jpg);"></div>
10565 <div style="/* insecure input */"></div>
10570 CSS line continuation 2
10572 <div style="background-image: u\ rl(test.jpg); "></div>
10574 <div style="/* insecure input */"></div>
10585 Expansion of multi-line templates in attribute values (bug 6255)
10587 <div style="background: {{identity|#00FF00}}">-</div>
10589 <div style="background: #00FF00">-</div>
10595 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10597 <div style="background:
10600 <div style="background: #00FF00">-</div>
10605 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10607 <div style="background: #00FF00">-</div>
10609 <div style="background: #00FF00">-</div>
10614 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
10617 Parser hook: empty input
10630 Parser hook: empty input using terminated empty elements
10643 Parser hook: empty input using terminated empty elements (space before)
10656 Parser hook: basic input
10670 Parser hook: case insensitive
10684 Parser hook: case insensitive, redux
10697 Parser hook: nested tags
10701 <tag><tag></tag></tag>
10712 Parser hook: basic arguments
10714 <tag width=200 height = "100" depth = '50' square></tag>
10722 'square' => 'square',
10729 Parser hook: argument containing a forward slash (bug 5344)
10731 <tag filename='/tmp/bla'></tag>
10736 'filename' => '/tmp/bla',
10743 Parser hook: empty input using terminated empty elements (bug 2374)
10756 # </tag> should be output literally since there is no matching tag that begins it
10758 Parser hook: basic arguments using terminated empty elements (bug 2374)
10760 <tag width=200 height = "100" depth = '50' square/>
10770 'square' => 'square',
10779 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
10783 Parser hook: static parser hook not inside a comment
10785 <statictag>hello, world</statictag>
10786 <statictag action=flush/>
10794 Parser hook: static parser hook inside a comment
10796 <!-- <statictag>hello, world</statictag> -->
10797 <statictag action=flush/>
10803 # Nested template calls; this case was broken by Parser.php rev 1.506,
10807 Template:One-parameter
10809 (My parameter is: {{{1}}})
10813 Template:Map-one-parameter
10815 {{{{{1}}}|{{{2}}}}}
10819 Nested template calls
10821 {{Map-one-parameter|One-parameter|param}}
10823 <p>(My parameter is: param)
10832 Sanitizer: Closing of open tags
10834 <s></s><table></table>
10836 <s></s><table></table>
10841 Sanitizer: Closing of open but not closed tags
10850 Sanitizer: Closing of closed but not open tags
10859 Sanitizer: Closing of closed but not open table tags
10861 Table not started</td></tr></table>
10863 <p>Table not started</td></tr></table>
10868 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10870 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10872 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10877 Sanitizer: Validating the contents of the id attribute (bug 4515)
10883 Something, but definitely not <br id="9" />...
10887 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10891 <br id="foo" /><br id="foo" />
10893 Something need to be done. foo-2 ?
10897 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10900 <meta itemprop="hello" content="world">
10901 <meta http-equiv="refresh" content="5">
10902 <meta itemprop="hello" http-equiv="refresh" content="5">
10903 <link itemprop="hello" href="{{SERVER}}">
10904 <link rel="stylesheet" href="{{SERVER}}">
10905 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10908 <div itemscope="itemscope">
10909 <p> <meta itemprop="hello" content="world" />
10910 <meta http-equiv="refresh" content="5">
10911 <meta itemprop="hello" content="5" />
10913 <link itemprop="hello" href="http://example.org" />
10914 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10915 <link itemprop="hello" href="http://example.org" />
10921 Language converter: output gets cut off unexpectedly (bug 5757)
10925 this bit is safe: }-
10927 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10929 then we get cut off here: }-
10931 all additional text is vanished
10933 <p>this bit is safe: }-
10934 </p><p>but if we add a conversion instance: xxx
10935 </p><p>then we get cut off here: }-
10936 </p><p>all additional text is vanished
10941 Self closed html pairs (bug 5487)
10944 <center><font id="bug" />Centered text</center>
10945 <div><font id="bug2" />In div text</div>
10947 <center><font id="bug" />Centered text</center>
10948 <div><font id="bug2" />In div text</div>
10957 Punctuation: nbsp before exclamation
10961 <p>C'est grave !
10966 Punctuation: CSS !important (bug 11874)
10968 <div style="width:50% !important">important</div>
10970 <div style="width:50% !important">important</div>
10975 Punctuation: CSS ! important (bug 11874; with space after)
10977 <div style="width:50% ! important">important</div>
10979 <div style="width:50% ! important">important</div>
10985 HTML bullet list, closed tags (bug 5497)
11000 HTML bullet list, unclosed tags (bug 5497)
11017 HTML ordered list, closed tags (bug 5497)
11032 HTML ordered list, unclosed tags (bug 5497)
11049 HTML nested bullet list, closed tags (bug 5497)
11074 HTML nested bullet list, open tags (bug 5497)
11099 HTML nested ordered list, closed tags (bug 5497)
11124 HTML nested ordered list, open tags (bug 5497)
11149 HTML ordered list item with parameters oddity
11151 <ol><li id="fragment">One</li></ol>
11153 <ol><li id="fragment">One</li></ol>
11158 bug 5918: autonumbering
11160 [http://first/] [http://second] [ftp://ftp]
11164 [mailto:enclosed@mail.tld With target]
11166 [mailto:enclosed@mail.tld]
11168 mailto:inline@mail.tld
11170 <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>
11171 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
11172 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
11173 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
11174 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
11180 # Security and HTML correctness
11181 # From Nick Jenkins' fuzz testing
11185 Fuzz testing: Parser13
11200 Fuzz testing: Parser14
11205 <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>
11206 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11208 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
11215 Fuzz testing: Parser14-table
11220 <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>
11221 <table style="__TOC__">
11227 # Known to produce bogus xml (extra </td>)
11229 Fuzz testing: Parser16
11249 Fuzz testing: Parser21
11252 ! irc://{{ftp://a" onmouseover="alert('hello world');"
11257 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
11267 Fuzz testing: Parser22
11269 http://===r:::https://b
11273 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
11281 # Known to produce bad XML for now
11283 Fuzz testing: Parser24
11290 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
11291 <br style="onmouseover='alert(document.cookie);' " />
11293 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11298 <u class="|">}}}} >
11299 <br style="onmouseover='alert(document.cookie);'" />
11301 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11310 # Note: the current result listed for this is not what the original one was,
11311 # but the original bug was JavaScript injection, which is fixed in any case.
11312 # It's not clear that the original result listed was any more correct than the
11313 # current one. Original result:
11316 # <li class="||">
11317 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11319 Fuzz testing: Parser25 (bug 6055)
11325 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
11327 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11332 Fuzz testing: URL adjacent extension (with space, clean)
11335 http://example.com <nowiki>junk</nowiki>
11337 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
11342 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
11345 http://example.com<nowiki>junk</nowiki>
11347 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
11352 Fuzz testing: URL adjacent extension (no space, dirty; pre)
11355 http://example.com<pre>junk</pre>
11357 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
11362 Fuzz testing: image with bogus manual thumbnail
11364 [[Image:foobar.jpg|thumbnail= ]]
11366 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
11371 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
11373 <pre dir=" "></pre>
11375 <pre dir=" "></pre>
11380 Parsing optional HTML elements (Bug 6171)
11385 <td> Some tabular data</td>
11386 <td> More tabular data ...
11387 <td> And yet som tabular data</td>
11393 <td> Some tabular data</td>
11394 <td> More tabular data ...
11395 </td><td> And yet som tabular data</td>
11402 Correct handling of <td>, <tr> (Bug 6171)
11407 <td> Some tabular data</td>
11408 <td> More tabular data ...</td>
11409 <td> And yet som tabular data</td>
11415 <td> Some tabular data</td>
11416 <td> More tabular data ...</td>
11417 <td> And yet som tabular data</td>
11425 Parsing crashing regression (fr:JavaScript)
11429 <p></body></x>
11434 Inline wiki vs wiki block nesting
11440 <p><b>Bold paragraph</b>
11441 </p><p>New wiki paragraph
11446 Inline HTML vs wiki block nesting
11454 <p><b>Bold paragraph</b>
11455 </p><p>New wiki paragraph
11459 # Original result was this:
11460 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
11462 # While that might be marginally more intuitive, maybe, the six-apostrophe
11463 # construct is clearly pathological and the result stated here (which is what
11464 # the parser actually does) is about as reasonable as anything.
11466 Mixing markup for italics and bold
11469 '''bold''''''bold''bolditalics'''''
11471 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11479 Article for special page transclusion test
11483 Special page transclusion
11486 {{Special:Prefixindex/Xyzzyx}}
11488 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11493 Special page transclusion twice (bug 5021)
11496 {{Special:Prefixindex/Xyzzyx}}
11497 {{Special:Prefixindex/Xyzzyx}}
11499 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11500 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11505 Transclusion of default MediaWiki message
11507 {{MediaWiki:Mainpage}}
11514 Transclusion of nonexistent MediaWiki message
11516 {{MediaWiki:Mainpagexxx}}
11518 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11523 Transclusion of MediaWiki message with underscore
11525 {{MediaWiki:history_short}}
11532 Transclusion of MediaWiki message with space
11534 {{MediaWiki:history short}}
11541 Invalid header with following text
11551 Section extraction test (section 0)
11571 Section extraction test (section 1)
11593 Section extraction test (section 2)
11614 Section extraction test (section 3)
11634 Section extraction test (section 4)
11658 Section extraction test (section 5)
11678 Section extraction test (section 6)
11699 Section extraction test (section 7)
11719 Section extraction test (section 8)
11739 Section extraction test (section 9)
11760 Section extraction test (section 10)
11780 Section extraction test (nonexistent section 11)
11799 Section extraction test with bogus heading (section 1)
11804 ==bogus== not a legal section
11808 ==bogus== not a legal section
11812 Section extraction test with bogus heading (section 2)
11817 ==bogus== not a legal section
11824 Section extraction test with comment after heading (section 1)
11836 Section extraction test with comment after heading (section 2)
11848 Section extraction test with bogus <nowiki> heading (section 1)
11853 ==bogus== <nowiki>not a legal section</nowiki>
11857 ==bogus== <nowiki>not a legal section</nowiki>
11861 Section extraction test with bogus <nowiki> heading (section 2)
11866 ==bogus== <nowiki>not a legal section</nowiki>
11873 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11874 # instead of respecting commented sections
11876 Section extraction prefixed by comment (section 1)
11887 Section extraction prefixed by comment (section 2)
11898 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11899 # instead of respecting HTML-style headings
11901 Section extraction, mixed wiki and html (section 1)
11917 Section extraction, mixed wiki and html (section 2)
11933 # Formerly testing for bug 3342
11935 Section extraction, heading surrounded by <noinclude>
11939 <noinclude>==unmarked==</noinclude>
11945 # Test behavior of bug 19910
11947 Sectiion with all-equals
11952 The line above must have a trailing space
11955 But just in case it doesn't...
11959 But just in case it doesn't...
11963 Section replacement test (section 0)
11994 Section replacement test (section 1)
12023 Section replacement test (section 2)
12053 Section replacement test (section 3)
12084 Section replacement test (section 4)
12111 Section replacement test (section 5)
12142 Section replacement test (section 6)
12172 Section replacement test (section 7)
12203 Section replacement test (section 8)
12234 Section replacement test (section 9)
12263 Section replacement test (section 10)
12293 Section replacement test with initial whitespace (bug 13728)
12297 Preformatted initial line
12301 Preformatted initial line
12308 Section extraction, heading followed by pre with 20 spaces (bug 6398)
12320 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
12333 Section extraction, <pre> around bogus header (bug 10309)
12350 Section replacement, <pre> around bogus header (bug 10309)
12352 noxml replace=2,"xxx"
12373 Handling of 
 in URLs
12377 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
12384 5 quotes, code coverage +1 line (php)
12391 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
12393 5 quotes, code coverage +1 line (parsoid)
12399 <p><i><b></b></i></p>
12403 Special:Search page linking.
12407 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
12414 title=[[Parser test]]
12419 * {{FULLPAGENAMEE}}
12421 * {{BASEPAGENAMEE}}
12425 * {{ROOTPAGENAMEE}}
12427 * {{TALKPAGENAMEE}}
12428 * {{SUBJECTPAGENAME}}
12429 * {{SUBJECTPAGENAMEE}}
12432 * {{NAMESPACENUMBER}}
12436 * {{SUBJECTSPACEE}}
12437 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
12439 <ul><li> Parser test
12440 </li><li> Parser_test
12441 </li><li> Parser test
12442 </li><li> Parser_test
12443 </li><li> Parser test
12444 </li><li> Parser_test
12445 </li><li> Parser test
12446 </li><li> Parser_test
12447 </li><li> Parser test
12448 </li><li> Parser_test
12449 </li><li> Talk:Parser test
12450 </li><li> Talk:Parser_test
12451 </li><li> Parser test
12452 </li><li> Parser_test
12460 </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>
12464 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
12474 image4 |300px| centre
12475 image5.svg| http://///////
12480 <ul class="gallery">
12481 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12482 <div style="height: 150px;">Image1.png</div>
12483 <div class="gallerytext">
12486 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12487 <div style="height: 150px;">Image2.gif</div>
12488 <div class="gallerytext">
12493 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12494 <div style="height: 150px;">Image3</div>
12495 <div class="gallerytext">
12498 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12499 <div style="height: 150px;">Image4</div>
12500 <div class="gallerytext">
12505 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12506 <div style="height: 150px;">Image5.svg</div>
12507 <div class="gallerytext">
12508 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12512 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12513 <div style="height: 150px;">* image6</div>
12514 <div class="gallerytext">
12522 Gallery (with options)
12524 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12525 File:Nonexistant.jpg|caption
12526 File:Nonexistant.jpg
12527 image:foobar.jpg|some '''caption''' [[Main Page]]
12529 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12532 <ul class="gallery" style="max-width: 226px;_width: 226px;">
12533 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12534 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12535 <div style="height: 70px;">Nonexistant.jpg</div>
12536 <div class="gallerytext">
12541 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12542 <div style="height: 70px;">Nonexistant.jpg</div>
12543 <div class="gallerytext">
12546 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12547 <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>
12548 <div class="gallerytext">
12549 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
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="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12555 <div class="gallerytext">
12558 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12559 <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>
12560 <div class="gallerytext">
12570 Gallery with wikitext inside caption
12573 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12574 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12577 <ul class="gallery">
12578 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12579 <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>
12580 <div class="gallerytext">
12581 <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>
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>This is a test template
12597 gallery (with showfilename option)
12599 <gallery showfilename>
12600 File:Nonexistant.jpg|caption
12601 File:Nonexistant.jpg
12602 image:foobar.jpg|some '''caption''' [[Main Page]]
12606 <ul class="gallery">
12607 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12608 <div style="height: 150px;">Nonexistant.jpg</div>
12609 <div class="gallerytext">
12610 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12615 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12616 <div style="height: 150px;">Nonexistant.jpg</div>
12617 <div class="gallerytext">
12618 <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 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>
12624 <div class="gallerytext">
12625 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12626 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12630 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12631 <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>
12632 <div class="gallerytext">
12633 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12642 Gallery (with namespace-less filenames)
12645 File:Nonexistant.jpg
12651 <ul class="gallery">
12652 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12653 <div style="height: 150px;">Nonexistant.jpg</div>
12654 <div class="gallerytext">
12657 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12658 <div style="height: 150px;">Nonexistant.jpg</div>
12659 <div class="gallerytext">
12662 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12663 <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>
12664 <div class="gallerytext">
12667 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12668 <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>
12669 <div class="gallerytext">
12677 HTML Hex character encoding (spells the word "JavaScript")
12679 JavaScript
12681 <p>JavaScript
12686 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12690 <p>&#xsee;&#XSEE;
12695 HTML Hex character encoding mixed case
12704 __FORCETOC__ override
12716 ISBN 978-0-1234-56 789
12718 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12723 ISBN followed by 5 spaces
12734 ISBN ISBN 1234567890
12736 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12741 Bug 22905: <abbr> followed by ISBN followed by </a>
12743 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12745 <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>
12754 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12759 Double RFC with a wiki link
12763 <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>
12772 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12777 Centre-aligned image
12779 [[Image:foobar.jpg|centre]]
12781 <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>
12788 [[Image:foobar.jpg|none]]
12790 <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>
12795 Width + Height sized image (using px) (height is ignored)
12797 [[Image:foobar.jpg|640x480px]]
12799 <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>
12804 Width-sized image (using px, no following whitespace)
12806 [[Image:foobar.jpg|640px]]
12808 <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>
12813 Width-sized image (using px, with following whitespace - test regression from r39467)
12815 [[Image:foobar.jpg|640px ]]
12817 <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>
12822 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12824 [[Image:foobar.jpg| 640px]]
12826 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
12831 Another italics / bold test
12839 # Note the results may be incorrect, as parserTest output included this:
12840 # XML error: Mismatched tag at byte 6120:
12841 # ...<dd> </dt></dl> </dd...
12849 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12860 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12862 Images with the "|" character in the comment
12864 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12866 <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>
12871 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12873 <html><script>alert(1);</script></html>
12875 <p><html><script>alert(1);</script></html>
12880 HTML with raw HTML ($wgRawHtml==true)
12884 <html><script>alert(1);</script></html>
12886 <p><script>alert(1);</script>
12891 Parents of subpages, one level up
12893 subpage title=[[Subpage test/L1/L2/L3]]
12897 <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>
12903 Parents of subpages, one level up, not named
12905 subpage title=[[Subpage test/L1/L2/L3]]
12909 <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>
12916 Parents of subpages, two levels up
12918 subpage title=[[Subpage test/L1/L2/L3]]
12924 <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
12925 </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>
12930 Parents of subpages, two levels up, without trailing slash or name.
12932 subpage title=[[Subpage test/L1/L2/L3]]
12941 Parents of subpages, two levels up, with lots of extra trailing slashes.
12943 subpage title=[[Subpage test/L1/L2/L3]]
12947 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12952 Subpage test/L1/L2/L3Sibling
12958 Transclusion of a sibling page (one level up)
12960 subpage title=[[Subpage test/L1/L2/L3]]
12969 Transclusion of a child page
12971 subpage title=[[Subpage test/L1/L2]]
12980 Non-transclusion because of too many up levels
12982 subpage title=[[Subpage test/L1/L2/L3]]
12984 {{../../../../More than parent}}
12986 <p>{{../../../../More than parent}}
12991 Definition list code coverage
12997 <dl><dt> title  </dt><dd> def
12998 </dd><dt> title </dt><dd> def
12999 </dd><dt>title</dt><dd> def
13005 Don't fall for the self-closing div
13007 <div>hello world</div/>
13009 <div>hello world</div>
13018 <p>[[:Template:Msg]]
13027 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
13031 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
13033 Always escape literal '>' in output, not just after '<'
13047 <p>This is a test template
13048 This is a test template
13060 Inclusion of !userCanEdit() content
13064 <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>
13070 Out-of-order TOC heading levels
13079 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13081 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
13083 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
13084 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
13087 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
13089 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
13090 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
13095 <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>
13096 <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>
13097 <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>
13098 <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>
13099 <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>
13100 <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>
13106 ISBN with a dummy number
13116 ISBN with space-delimited number
13120 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
13126 ISBN with multiple spaces, no number
13145 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13146 </p><p>ISBN 12345678901
13152 ISBN with trailing year (bug 8110)
13154 ISBN 1-234-56789-0 - 2006
13156 ISBN 1 234 56789 0 - 2006
13158 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
13159 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
13167 {{anchorencode:foo bar©#%n}}
13169 <p>foo_bar.C2.A9.23.25n
13174 anchorencode trims spaces
13176 {{anchorencode: __pretty__please__}}
13183 anchorencode deals with links
13185 {{anchorencode: [[hello|world]] [[hi]]}}
13192 anchorencode deals with templates
13194 {{anchorencode: {{Foo}} }}
13201 anchorencode encodes like the TOC generator: (bug 18431)
13203 === _ +:.3A%3A&&]] ===
13204 {{anchorencode: _ +:.3A%3A&&]] }}
13207 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
13208 <p>.2B:.3A.253A.26.26.5D.5D
13213 Bug 6200: blockquotes and paragraph formatting
13234 Bug 8293: Use of center tag ruins paragraph formatting
13255 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
13259 <span><s>x</span></s>
13261 <p><span><s>x</span></s></span>
13266 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
13270 <span><s>x</span></s>
13272 <p><span><s>x</s></span><s></s>
13277 ### Language variants related tests
13280 Self-link in language variants
13282 title=[[Dunav]] language=sr
13284 Both [[Dunav]] and [[Дунав]] are names for this river.
13286 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
13297 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
13299 title=[[Duna]] language=sr
13301 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
13303 <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.
13308 Link to pages in language variants
13312 Main Page can be written as [[Маин Паге]]
13314 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
13320 Multiple links to pages in language variants
13324 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
13326 <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>.
13332 Simple template in language variants
13338 <p>This is a test template
13344 Template with explicit namespace in language variants
13350 <p>This is a test template
13356 Basic test for template parameter in language variants
13360 {{парамтест|param=foo}}
13362 <p>This is a test template with parameter foo
13368 Simple category in language variants
13372 [[Category:МедиаWики Усер'с Гуиде]]
13374 <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>
13391 Don't convert blue categorylinks to another variant (bug 33210)
13395 [[A]][[Category:分类]]
13397 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
13402 Stripping -{}- tags (language variants)
13406 Latin proverb: -{Ne nuntium necare}-
13408 <p>Latin proverb: Ne nuntium necare
13414 Prevent conversion with -{}- tags (language variants)
13416 language=sr variant=sr-ec
13418 Latinski: -{Ne nuntium necare}-
13420 <p>Латински: Ne nuntium necare
13426 Prevent conversion of text with -{}- tags (language variants)
13428 language=sr variant=sr-ec
13430 Latinski: -{Ne nuntium necare}-
13432 <p>Латински: Ne nuntium necare
13438 Prevent conversion of links with -{}- tags (language variants)
13440 language=sr variant=sr-ec
13444 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13450 -{}- tags within headlines (within html for parserConvert())
13452 language=sr variant=sr-ec
13456 <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>
13462 Explicit definition of language variant alternatives
13464 language=zh variant=zh-tw
13466 -{zh:China;zh-tw:Taiwan}-, not China
13468 <p>Taiwan, not China
13474 Conversion around HTML tags
13476 language=sr variant=sr-ec
13478 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13479 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13482 <span title="ЛаCтин">ски</span>
13488 Explicit session-wise language variant mapping (A flag and - flag)
13490 language=zh variant=zh-tw
13492 Taiwan is not China.
13493 But -{A|zh:China;zh-tw:Taiwan}- is China,
13494 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13495 and -{China}- is China.
13497 <p>Taiwan is not China.
13498 But Taiwan is Taiwan,
13499 (This should be stripped!)
13500 and China is China.
13505 Explicit session-wise language variant mapping (H flag for hide)
13507 language=zh variant=zh-tw
13509 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13512 <p>(This should be stripped!)
13518 Adding explicit conversion rule for title (T flag)
13520 language=zh variant=zh-tw showtitle
13522 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13525 <p>Should be stripped!
13530 Testing that changing the language variant here in the tests actually works
13532 language=zh variant=zh showtitle
13534 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13537 <p>Should be stripped!
13542 Recursive conversion of alt and title attrs shouldn't clear converter state
13544 language=zh variant=zh-cn showtitle
13546 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13547 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13551 Should be stripped<span title="Exclamation">!</span>
13556 Bug 24072: more test on conversion rule for title
13558 language=zh variant=zh-tw showtitle
13560 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13561 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13564 <p>This should be stripped!
13565 This won't take interferes with the title rule.
13570 Partly disable title conversion if variant == main language code
13572 language=zh variant=zh title=[[ZH]] showtitle
13574 -{T|zh-cn:CN;zh-tw:TW}-
13582 Partly disable title conversion if variant == main language code, more
13584 language=zh variant=zh title=[[ZH]] showtitle
13594 Raw output of variant escape tags (R flag)
13596 language=zh variant=zh-tw
13598 Raw: -{R|zh:China;zh-tw:Taiwan}-
13600 <p>Raw: zh:China;zh-tw:Taiwan
13605 Nested using of manual convert syntax
13607 language=zh variant=zh-hk
13609 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13611 <p>Nested: Hello Hong Kong!
13616 Proper conversion of text in external links
13618 language=sr variant=sr-ec
13620 http://www.google.com
13621 gopher://www.google.com
13622 [http://www.google.com http://www.google.com]
13623 [gopher://www.google.com gopher://www.google.com]
13624 [https://www.google.com irc://www.google.com]
13625 [ftp://www.google.com www.google.com/ftp://dir]
13626 [//www.google.com www.google.com]
13628 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13629 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13630 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13631 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13632 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13633 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13634 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13639 Do not convert roman numbers to language variants
13641 language=sr variant=sr-ec
13645 <p>Фридрих IV је цар.
13650 Unclosed language converter markup "-{"
13661 Don't convert raw rule "-{R|=>}-" to "=>"
13678 Bug 529: Uncovered bullet
13688 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13689 # Templates in Wikipedia rely on this behavior, as tidy has always been
13690 # enabled there. These tests are normally run *without* tidy, so specify the
13691 # full output here.
13692 # To test realistic parsing behavior, apply a tidy-like transformation to both
13693 # the expected output and your parser's output.
13695 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13697 ******* Foo {{bullet}}
13699 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13712 Bug 529: Uncovered table already at line-start
13735 Bug 529: Uncovered bullet in parser function result
13737 * Foo {{lc:{{bullet}} }}
13746 Bug 5678: Double-parsed template argument
13748 {{lc:{{{1}}}|hello}}
13755 Bug 5678: Double-parsed template invocation
13757 {{lc:{{paramtest {{!}} param = hello }} }}
13759 <p>{{paramtest | param = hello }}
13764 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13767 title=[[Main Page]]
13769 {{PRVNÍVELKÉ:ěščř}}
13770 {{prvnívelké:ěščř}}
13790 Morwen/13: Unclosed link followed by heading
13797 <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>
13802 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13809 <h1><span class="mw-headline" id="heading">heading</span></h1>
13814 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13821 <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>
13836 Paragraphs inside divs (no extra line breaks)
13848 Paragraphs inside divs (extra line break on open)
13863 Paragraphs inside divs (extra line break on close)
13878 Paragraphs inside divs (extra line break on open and close)
13895 Nesting tags, paragraphs on lines which begin with <div>
13899 <div></div><strong>A
13908 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13910 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13912 <blockquote>Line one
13914 Line two</blockquote>
13916 <blockquote>Line one
13917 Line two</blockquote>
13922 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13927 Line two</blockquote>
13932 Line two</blockquote>
13937 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13939 <blockquote>Line one
13944 <blockquote>Line one
13952 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13969 Paragraphs inside blockquotes/divs (no extra line breaks)
13971 <blockquote><div>Line one
13973 Line two</div></blockquote>
13975 <blockquote><div>Line one
13976 Line two</div></blockquote>
13981 Paragraphs inside blockquotes/divs (extra line break on open)
13986 Line two</div></blockquote>
13991 Line two</div></blockquote>
13996 Paragraphs inside blockquotes/divs (extra line break on close)
13998 <blockquote><div>Line one
14001 </div></blockquote>
14003 <blockquote><div>Line one
14006 </div></blockquote>
14011 Paragraphs inside blockquotes/divs (extra line break on open and close)
14017 </div></blockquote>
14023 </div></blockquote>
14028 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
14030 wgLinkHolderBatchSize=0
14036 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
14037 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
14038 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
14043 Free external link invading image caption
14045 [[Image:Foobar.jpg|thumb|http://x|hello]]
14047 <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>
14052 Bug 15196: localised external link numbers
14056 [http://en.wikipedia.org/]
14058 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
14063 Multibyte character in padleft
14065 {{padleft:-Hello|7|Æ}}
14072 Multibyte character in padright
14074 {{padright:Hello-|7|Æ}}
14081 formatdate parser function
14083 {{#formatdate:2009-03-24}}
14085 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
14090 formatdate parser function, with default format
14092 {{#formatdate:2009-03-24|mdy}}
14094 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
14099 Spacing of numbers in formatted dates
14101 {{#formatdate:January 15}}
14103 <p><span class="mw-formatted-date" title="01-15">January 15</span>
14108 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
14110 language=nl title=[[MediaWiki:Common.css]]
14112 {{#formatdate:2009-03-24|dmy}}
14114 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
14127 Edit comment with link
14131 I like the [[Main Page]] a lot
14133 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
14137 Edit comment with link and link text
14141 I like the [[Main Page|best pages]] a lot
14143 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14147 Edit comment with link and link text with suffix
14151 I like the [[Main Page|best page]]s a lot
14153 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14157 Edit comment with section link (non-local, eg in history list)
14159 comment title=[[Main Page]]
14161 /* External links */ removed bogus entries
14163 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14167 Edit comment with section link and text before it (non-local, eg in history list)
14169 comment title=[[Main Page]]
14171 pre-comment text /* External links */ removed bogus entries
14173 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>
14177 Edit comment with section link (local, eg in diff view)
14179 comment local title=[[Main Page]]
14181 /* External links */ removed bogus entries
14183 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14187 Edit comment with subpage link (bug 14080)
14191 title=[[Subpage test]]
14193 Poked at a [[/subpage]] here...
14195 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
14199 Edit comment with subpage link and link text (bug 14080)
14203 title=[[Subpage test]]
14205 Poked at a [[/subpage|neat little page]] here...
14207 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
14211 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
14214 title=[[Subpage test]]
14216 Poked at a [[/subpage]] here...
14218 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
14222 Edit comment with bare anchor link (local, as on diff)
14226 title=[[Main Page]]
14230 <a href="#section">#section</a>
14234 Edit comment with bare anchor link (non-local, as on history)
14237 title=[[Main Page]]
14241 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
14245 Anchor starting with underscore
14249 <p><a href="#_ref">One</a>
14254 Id starting with underscore
14256 <div id="_ref"></div>
14258 <div id="_ref"></div>
14263 Space normalisation on autocomment (bug 22784)
14266 title=[[Main Page]]
14268 /* __hello__world__ */
14270 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
14274 percent-encoding and + signs in comments (Bug 26410)
14278 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
14280 <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>
14284 Bad images - basic functionality
14293 Bad images - bug 16039: text after bad image disappears
14307 Verify that displaytitle works (bug #22501) no displaytitle
14311 wgAllowDisplayTitle=true
14312 wgRestrictDisplayTitle=false
14314 this is not the the title
14317 <p>this is not the the title
14322 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
14327 wgAllowDisplayTitle=true
14328 wgRestrictDisplayTitle=false
14330 this is not the the title
14331 {{DISPLAYTITLE:whatever}}
14334 <p>this is not the the title
14339 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
14344 wgAllowDisplayTitle=true
14345 wgRestrictDisplayTitle=true
14347 this is not the the title
14348 {{DISPLAYTITLE:whatever}}
14351 <p>this is not the the title
14356 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
14361 wgAllowDisplayTitle=true
14362 wgRestrictDisplayTitle=true
14364 this is not the the title
14365 {{DISPLAYTITLE:screen}}
14368 <p>this is not the the title
14373 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
14378 wgAllowDisplayTitle=false
14380 this is not the the title
14381 {{DISPLAYTITLE:screen}}
14384 <p>this is not the the title
14385 <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>
14390 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
14395 wgAllowDisplayTitle=false
14397 this is not the the title
14400 <p>this is not the the title
14405 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
14410 wgAllowDisplayTitle=true
14411 wgRestrictDisplayTitle=true
14413 this is not the the title
14414 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
14416 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
14417 <p>this is not the the title
14422 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
14427 wgAllowDisplayTitle=true
14428 wgRestrictDisplayTitle=true
14430 this is not the the title
14431 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
14433 <span style="color: red;">s</span>creen
14434 <p>this is not the the title
14439 preload: check <noinclude> and <includeonly>
14443 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
14449 preload: check <onlyinclude>
14453 Goodbye <onlyinclude>Hello world</onlyinclude>
14459 preload: can pass tags through if we want to
14463 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
14465 <includeonly>Hello world</includeonly>
14469 preload: check that it doesn't try to do tricks
14473 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14475 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14479 Play a bit with r67090 and bug 3158
14483 <div style="width:50% !important"> </div>
14484 <div style="width:50% !important"> </div>
14485 <div style="width:50% !important"> </div>
14486 <div style="border : solid;"> </div>
14488 <div style="width:50% !important"> </div>
14489 <div style="width:50% !important"> </div>
14490 <div style="width:50% !important"> </div>
14491 <div style="border : solid;"> </div>
14496 HTML5 data attributes
14498 <span data-foo="bar">Baz</span>
14499 <p data-abc-def_hij="">Quuz</p>
14501 <p><span data-foo="bar">Baz</span>
14503 <p data-abc-def_hij="">Quuz</p>
14508 percent-encoding and + signs in internal links (Bug 26410)
14510 [[User:+%]] [[Page+title%]]
14511 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14512 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14513 [[%33%45]] [[%33%45+]]
14515 <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>
14516 <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>
14517 <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>
14518 <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>
14523 Special characters in embedded file links (bug 27679)
14525 [[File:Contains & ampersand.jpg]]
14526 [[File:Does not exist.jpg|Title with & ampersand]]
14528 <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>
14529 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14535 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14537 Text's been normalized?
14539 <p>Text's been normalized?
14544 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14546 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14548 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14553 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14555 [http://www.example.org/ ideograms]
14557 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14562 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14564 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14566 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14590 Bug 31098 Template which includes system messages which includes the template
14594 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14595 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14600 Bug31490 Turkish: ucfirst 'blah'
14611 Bug31490 Turkish: ucfirst 'ix'
14622 Bug31490 Turkish: lcfirst 'BLAH'
14633 Bug31490 Turkish: ucfırst (with a dotless i)
14639 <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>
14644 Bug31490 ucfırst (with a dotless i) with English language
14650 <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>
14655 Bug 26375: TOC with italics
14657 title=[[Main Page]]
14660 == ''Lost'' episodes ==
14662 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14664 <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>
14667 <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>
14672 Bug 26375: TOC with bold
14674 title=[[Main Page]]
14677 == '''should be bold''' then normal text ==
14679 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14681 <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>
14684 <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>
14689 Bug 33845: Headings become cursive in TOC when they contain an image
14691 title=[[Main Page]]
14694 == Image [[Image:foobar.jpg]] ==
14696 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14698 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14701 <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>
14706 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14708 title=[[Main Page]]
14711 == <blockquote>Quote</blockquote> ==
14713 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14715 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14718 <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>
14723 Unclosed tags in TOC
14725 title=[[Main Page]]
14729 <small>Hanc marginis exiguitas non caperet.</small>
14732 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14734 <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>
14737 <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>
14738 <p><small>Hanc marginis exiguitas non caperet.</small>
14744 Multiple tags in TOC
14747 == <i>Foo</i> <b>Bar</b> ==
14749 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14751 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14753 <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>
14754 <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>
14757 <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>
14758 <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>
14763 Tags with parameters in TOC
14766 == <sup class="in-h2">Hello</sup> ==
14768 == <sup class="a > b">Evilbye</sup> ==
14770 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14772 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14773 <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>
14776 <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>
14777 <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>
14782 span tags with directionality in TOC
14785 == <span dir="ltr">C++</span> ==
14787 == <span dir="rtl">זבנג!</span> ==
14789 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14791 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14793 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14795 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14797 <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>
14798 <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>
14799 <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>
14800 <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>
14801 <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>
14804 <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>
14805 <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>
14806 <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>
14807 <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>
14808 <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>
14815 == {{int:headline_sample}} ==
14819 Bug 32057: Title needed when expanding <h> nodes.
14821 title=[[Main Page]]
14825 <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>
14830 Strip marker in urlencode
14832 {{urlencode:x<nowiki/>y}}
14833 {{urlencode:x<nowiki/>y|wiki}}
14834 {{urlencode:x<nowiki/>y|path}}
14861 Strip marker in formatNum
14863 {{formatnum:1<nowiki/>2}}
14864 {{formatnum:1<nowiki/>2|R}}
14872 Check noCommafy in formatNum
14876 {{formatnum:123456.78}}
14877 {{formatnum:123456.78|NOSEP}}
14885 Strip marker in grammar
14889 {{grammar:elative|foo<nowiki/>bar}}
14896 Strip marker in padleft
14898 {{padleft:|2|x<nowiki/>y}}
14905 Strip marker in padright
14907 {{padright:|2|x<nowiki/>y}}
14914 Strip marker in anchorencode
14916 {{anchorencode:x<nowiki/>y}}
14923 nowiki inside link inside heading (bug 18295)
14925 ==[[foo|x<nowiki>y</nowiki>z]]==
14927 <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>
14932 new support for bdi element (bug 31817)
14934 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14936 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14941 Ignore pipe between table row attributes
14945 |- id=foo | style='color: red'
14953 <tr id="foo" style="color: red">
14960 Gallery override link with WikiLink (bug 34852)
14963 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14966 <ul class="gallery">
14967 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14968 <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>
14969 <div class="gallerytext">
14979 Gallery override link with absolute external link (bug 34852)
14982 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14985 <ul class="gallery">
14986 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14987 <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>
14988 <div class="gallerytext">
14998 Gallery override link with malicious javascript (bug 34852)
15001 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
15004 <ul class="gallery">
15005 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15006 <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>
15007 <div class="gallerytext">
15017 Gallery with invalid title as link (bug 43964)
15020 File:foobar.jpg|link=<
15023 <ul class="gallery">
15024 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15025 <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>
15026 <div class="gallerytext">
15034 Language parser function
15043 Padleft and padright as substr
15045 {{padleft:|3|abcde}}
15046 {{padright:|3|abcde}}
15054 Special parser function
15056 {{#special:RandomPage}}
15057 {{#special:BaDtItLe}}
15058 {{#special:Foobar}}
15067 Bug 34939 - Case insensitive link parsing ([HttP://])
15069 [HttP://MediaWiki.Org/]
15071 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
15076 Bug 34939 - Case insensitive link parsing ([HttP:// title])
15078 [HttP://MediaWiki.Org/ MediaWiki]
15080 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
15085 Bug 34939 - Case insensitive link parsing (HttP://)
15087 HttP://MediaWiki.Org/
15089 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
15095 ### Parsoids-specific tests
15096 ### Parsoid-PHP parser incompatibilities
15099 1. SOL-sensitive wikitext tokens as template-args
15101 parsoid=wt2html,wt2wt
15107 <span about="#mwt1" typeof="mw:Transclusion">
15108 </span><ul about="#mwt1"><li>a</li></ul>
15109 <span about="#mwt2" typeof="mw:Transclusion">
15110 </span><ol about="#mwt2"><li>a</li></ol>
15111 <span about="#mwt3" typeof="mw:Transclusion">
15112 </span><dl about="#mwt3"><dd>a</dd></dl>
15115 #### ----------------------------------------------------------------
15116 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
15117 #### tags. Parsoid's output for these tags differs from that of the
15119 #### ----------------------------------------------------------------
15122 Ref: 1. ref-location should be replaced with an index span
15127 B <ref name="x">foo</ref>
15130 <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>
15131 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>
15132 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>
15136 Ref: 2. ref-tags with identical names should all get the same index
15140 A <ref name="x">foo</ref>
15143 <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>
15144 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>
15148 Ref: 3. spaces in ref-names should be ignored
15152 A <ref name="x">foo</ref>
15153 B <ref name=" x " />
15156 <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>
15157 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>
15158 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>
15162 Ref: 4. 'constructor' should be accepted as a valid ref-name
15163 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
15167 A <ref name="constructor">foo</ref>
15169 <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>
15173 Ref: 5. body should accept generic wikitext
15178 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
15183 <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>
15185 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15186 <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>
15191 Ref: 6. indent-pres should not be output in ref-body
15203 <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>
15205 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15206 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15213 Ref: 6. No p-wrapping in ref-body
15232 <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>
15234 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15235 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15249 Ref: 8. transclusion wikitext has lower precedence
15253 A <ref> foo {{echo|</ref> B C}}
15257 <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>
15259 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15260 <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>
15264 Ref: 9. unclosed comments should not leak out of ref-body
15268 A <ref> foo <!--</ref> B C
15272 <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>
15274 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15275 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
15279 Ref: 10. Unclosed HTML tags should not leak out of ref-body
15283 A <ref> <b> foo </ref> B C
15287 <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>
15289 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15290 <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>
15294 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
15301 <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
15302 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>
15306 Ref: 12. ref-tags act as trailing newline migration barrier
15310 <!--the newline at the end of this line moves out of the p-tag-->a
15312 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
15317 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
15320 <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>
15321 <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>
15328 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
15336 <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
15337 <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>
15341 Ref: 14. A nested ref-tag should be emitted as plain text
15345 <ref>foo <ref>bar</ref> baz</ref>
15349 <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>
15351 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
15352 <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>
15356 Ref: 15. ref-tags with identical names should get identical indexes
15360 A1 <ref name="a">foo</ref> A2 <ref name="a" />
15361 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
15365 <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>
15366 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>
15368 <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>
15372 References: 1. references tag without any refs should be handled properly
15378 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
15382 References: 2. references tag with group only outputs references from that group
15386 A <ref group="a">foo</ref>
15387 B <ref group="b">bar</ref>
15389 <references group='a' />
15391 <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>
15392 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>
15394 <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>
15398 References: 3. ref list should be cleared after processing references
15410 <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>
15412 <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>
15414 <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>
15416 <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>
15420 References: 4. only referenced group should be cleared after processing references
15424 A <ref group="a">afoo</ref>
15427 <references group="a"/>
15433 <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>
15434 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>
15436 <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>
15438 <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>
15440 <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>
15444 References: 5. ref tags in references should be processed while ignoring all other content
15449 B <ref name="b">bar</ref>
15452 <ref name="a">foo</ref>
15453 This should just get lost.
15456 <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>
15457 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>
15459 <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>
15463 References: 6. <references /> from a transclusion
15467 {{echo|<references />}}
15469 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15473 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
15477 A <ref>foo bar for a</ref>
15483 <ref name="b">foo</ref>
15486 <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>
15487 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>
15489 <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>
15491 <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>
15495 #### ----------------------------------------------------------------
15496 #### The following section of tests are primarily to test
15497 #### wikitext escaping capabilities of Parsoid. Given that
15498 #### escaping can be done any number of ways, the wikitext (input)
15499 #### is always adjusted to reflect how Parsoid adds nowiki
15502 #### We are marking several tests as parsoid-only since the
15503 #### HTML in the result section is different from what the
15504 #### PHP parser generates for it.
15505 #### ----------------------------------------------------------------
15508 #### --------------- Headings ---------------
15510 #### 1. Nested inside html <h1>=foo=</h1>
15511 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15512 #### 3. Nested inside html with wikitext split by html tags
15513 #### 4. No escape needed
15514 #### 5. Empty headings <h1></h1>
15515 #### 6. Heading chars in SOL context
15516 #### ----------------------------------------
15518 Headings: 0. Unnested
15522 <nowiki>=foo=</nowiki>
15524 <nowiki> =foo= </nowiki>
15526 <nowiki>=foo=</nowiki>
15528 =foo''a''<nowiki>=</nowiki>
15530 <p><span typeof="mw:Nowiki">=foo=</span></p>
15532 <p><span typeof="mw:Nowiki"> =foo= </span>
15534 <span typeof="mw:Nowiki">=foo=</span></p>
15536 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15540 Headings: 1. Nested inside html
15544 =<nowiki>=foo=</nowiki>=
15546 ==<nowiki>=foo=</nowiki>==
15548 ===<nowiki>=foo=</nowiki>===
15550 ====<nowiki>=foo=</nowiki>====
15552 =====<nowiki>=foo=</nowiki>=====
15554 ======<nowiki>=foo=</nowiki>======
15556 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15557 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15558 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15559 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15560 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15561 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15565 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15570 <nowiki>*</nowiki>bar
15576 <nowiki>=bar=</nowiki>
15584 Headings: 3. Nested inside html with wikitext split by html tags
15588 =='''bold'''<nowiki>foo=</nowiki>=
15590 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15594 Headings: 4a. No escaping needed (testing just h1 and h2)
15612 =<nowiki>=</nowiki>=
15620 <h1><i>=</i>foo=</h1>
15621 <h1><span typeof="mw:Nowiki">=</span></h1>
15625 Headings: 4b. No escaping needed (inside p-tags)
15640 Headings: 5. Empty headings
15652 =====<nowiki/>=====
15654 ======<nowiki/>======
15665 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15669 <nowiki>=a=</nowiki>
15671 <nowiki>=a=</nowiki>
15673 <nowiki>=a=</nowiki>
15675 <nowiki>=a=</nowiki>
15684 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15712 Headings: 6c. Heading chars in SOL context (leading newline break)
15717 <nowiki>=b=</nowiki>
15724 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15728 <!--c0--><nowiki>=a=</nowiki>
15730 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
15732 <p><!--c0-->=a=</p>
15733 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15737 Headings: 6d. Heading chars in SOL context (No escaping needed)
15746 #### --------------- Lists ---------------
15747 #### 0. Outside nests (*foo, etc.)
15748 #### 1. Nested inside html <ul><li>*foo</li></ul>
15749 #### 2. Inside definition lists
15750 #### 3. Only bullets at start should be escaped
15751 #### 4. No escapes needed
15752 #### 5. No unnecessary escapes
15753 #### 6. Escape bullets in SOL position
15754 #### 7. Escape bullets in a multi-line context
15755 #### ----------------------------------------
15758 Lists: 0. Outside nests
15760 <nowiki>*</nowiki>foo
15762 <nowiki>#</nowiki>foo
15770 Lists: 1. Nested inside html
15772 *<nowiki>*foo</nowiki>
15774 *<nowiki>#foo</nowiki>
15776 *<nowiki>:foo</nowiki>
15778 *<nowiki>;foo</nowiki>
15780 #<nowiki>*foo</nowiki>
15782 #<nowiki>#foo</nowiki>
15784 #<nowiki>:foo</nowiki>
15786 #<nowiki>;foo</nowiki>
15808 Lists: 2. Inside definition lists
15810 ;<nowiki>;foo</nowiki>
15812 ;<nowiki>:foo</nowiki>
15814 ;<nowiki>:foo</nowiki>
15817 :<nowiki>:foo</nowiki>
15832 Lists: 3. Only bullets at start of text should be escaped
15834 *<nowiki>*foo*bar</nowiki>
15836 *<nowiki>*foo</nowiki>''it''*bar
15840 <ul><li>*foo<i>it</i>*bar
15846 Lists: 4. No escapes needed
15858 <ul><li><i>foo</i>*bar
15860 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15865 Lists: 5. No unnecessary escapes
15867 * bar <span><nowiki>[[foo]]</nowiki></span>
15869 *=bar <span><nowiki>[[foo]]</nowiki></span>
15871 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15873 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15875 *=bar <span>foo]]</span>=
15879 <ul><li> bar <span>[[foo]]</span>
15881 <ul><li>=bar <span>[[foo]]</span>
15883 <ul><li>[[bar <span>[[foo]]</span>
15885 <ul><li>]]bar <span>[[foo]]</span>
15887 <ul><li>=bar <span>foo]]</span>=
15889 <ul><li> <s></s>: a
15895 Lists: 6. Escape bullets in SOL position
15899 <!--cmt--><nowiki>*foo</nowiki>
15901 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15905 Lists: 7. Escape bullets in a multi-line context
15908 <nowiki>*</nowiki>b
15915 #### --------------- HRs ---------------
15916 #### 1. Single line
15917 #### -----------------------------------
15920 HRs: 1. Single line
15924 ----<nowiki>----</nowiki>
15928 <hr><span typeof="mw:Nowiki">----</span>
15933 #### --------------- Tables ---------------
15934 #### 1a. Simple example
15935 #### 1b. No escaping needed (!foo)
15936 #### 1c. No escaping needed (|foo)
15937 #### 1d. No escaping needed (|}foo)
15939 #### 2a. Nested in td (<td>foo|bar</td>)
15940 #### 2b. Nested in td (<td>foo||bar</td>)
15941 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15943 #### 3a. Nested in th (<th>foo!bar</th>)
15944 #### 3b. Nested in th (<th>foo!!bar</th>)
15945 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15949 #### 4c. No escaping needed
15950 #### --------------------------------------
15953 Tables: 1a. Simple example
15964 Tables: 1b. No escaping needed
15973 Tables: 1c. No escaping needed
15982 Tables: 1d. No escaping needed
15991 Tables: 2a. Nested in td
15996 |<nowiki>foo|bar</nowiki>
16000 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
16004 Tables: 2b. Nested in td
16009 |<nowiki>foo||bar</nowiki>
16010 |''it''<nowiki>foo||bar</nowiki>
16014 <td><span typeof="mw:Nowiki">foo||bar</span></td>
16015 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
16019 Tables: 2c. Nested in td -- no escaping needed
16027 <table><tbody><tr><td>foo!!bar
16028 </td></tr></tbody></table>
16033 Tables: 3a. Nested in th
16041 <table><tbody><tr><th>foo!bar
16042 </th></tr></tbody></table>
16047 Tables: 3b. Nested in th
16052 !<nowiki>foo!!bar</nowiki>
16056 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
16061 Tables: 3c. Nested in th -- no escaping needed
16066 !<nowiki>foo||bar</nowiki>
16070 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
16074 Tables: 4a. Escape -
16082 |<nowiki>-bar</nowiki>
16086 <tr><th>-bar</th></tr>
16088 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
16092 Tables: 4b. Escape +
16100 |<nowiki>+bar</nowiki>
16104 <tr><th>+bar</th></tr>
16106 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
16110 Tables: 4c. No escaping needed
16129 <tr><td>foo-bar</td><td>foo+bar</td></tr>
16130 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
16138 ### SSS FIXME: Disabled right now because accurate html2wt
16139 ### on this snippet requires data-parsoid flags that we've
16140 ### stripped out of these tests. We should scheme how we
16141 ### we want to handle these kind of tests that require
16142 ### data-parsoid flags for accurate html2wt serialization
16145 Tables: 4d. No escaping needed
16163 #### --------------- Links ----------------
16164 #### 1. Quote marks in link text
16165 #### 2. Wikilinks: Escapes needed
16166 #### 3. Wikilinks: No escapes needed
16167 #### 4. Extlinks: Escapes needed
16168 #### 5. Extlinks: No escapes needed
16169 #### --------------------------------------
16171 Links 1. Quote marks in link text
16175 [[Foo|Foo<nowiki>''boo''</nowiki>]]
16177 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
16181 Links 2. WikiLinks: Escapes needed
16185 [[Foo|<nowiki>[Foobar]</nowiki>]]
16186 [[Foo|<nowiki>Foobar]</nowiki>]]
16187 [[Foo|x [Foobar] x]]
16188 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
16189 [[Foo|<nowiki>[[Bar]]</nowiki>]]
16190 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
16191 [[Foo|<nowiki>|Bar</nowiki>]]
16192 [[Foo|<nowiki>]]bar</nowiki>]]
16193 [[Foo|<nowiki>[[bar</nowiki>]]
16194 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
16196 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
16197 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
16198 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
16199 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
16200 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
16201 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
16202 <a href="Foo" rel="mw:WikiLink">|Bar</a>
16203 <a href="Foo" rel="mw:WikiLink">]]bar</a>
16204 <a href="Foo" rel="mw:WikiLink">[[bar</a>
16205 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
16209 Links 3. WikiLinks: No escapes needed
16216 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
16217 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
16221 Links 4. ExtLinks: Escapes needed
16225 [http://google.com <nowiki>[google]</nowiki>]
16226 [http://google.com <nowiki>google]</nowiki>]
16228 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
16229 <a href="http://google.com" rel="mw:ExtLink">google]</a>
16233 Links 5. ExtLinks: No escapes needed
16237 [http://google.com [google]
16239 <a href="http://google.com" rel="mw:ExtLink">[google</a>
16242 #### --------------- Quotes ---------------
16243 #### 1. Quotes inside <b> and <i>
16244 #### 2. Link fragments separated by <i> and <b> tags
16245 #### 3. Link fragments inside <i> and <b>
16246 #### 4. No escaping needed
16247 #### --------------------------------------
16249 1. Quotes inside <b> and <i>
16251 parsoid=html2wt,wt2wt
16253 ''<nowiki>'foo'</nowiki>''
16254 ''<nowiki>''foo''</nowiki>''
16255 ''<nowiki>'''foo'''</nowiki>''
16257 '''<nowiki>'foo'</nowiki>'''
16258 '''<nowiki>''foo''</nowiki>'''
16259 '''<nowiki>'''foo'''</nowiki>'''
16260 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
16261 '''foo'''<nowiki/>'s
16264 '<nowiki/>''foo''<nowiki/>'
16266 '''foo'''<nowiki/>'
16267 '<nowiki/>'''foo'''<nowiki/>'
16276 <b>foo'<i>bar'</i>baz</b>
16287 2. Link fragments separated by <i> and <b> tags
16289 [[''foo''<nowiki>hello]]</nowiki>
16291 [['''foo'''<nowiki>hello]]</nowiki>
16293 <p>[[<i>foo</i>hello]]
16294 </p><p>[[<b>foo</b>hello]]
16299 3. Link fragments inside <i> and <b>
16300 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
16301 this is one of the shortcomings of this format)
16303 ''[[foo''<nowiki>]]</nowiki>
16305 '''[[foo'''<nowiki>]]</nowiki>
16308 </p><p><b>[[foo</b>]]
16313 4. No escaping needed
16315 '<span>''bar''</span>'
16316 '<span>'''bar'''</span>'
16318 <p>'<span><i>bar</i></span>'
16319 '<span><b>bar</b></span>'
16323 #### ----------- Paragraphs ---------------
16324 #### 1. No unnecessary escapes
16325 #### --------------------------------------
16328 1. No unnecessary escapes
16330 bar <span><nowiki>[[foo]]</nowiki></span>
16332 =bar <span><nowiki>[[foo]]</nowiki></span>
16334 [[bar <span><nowiki>[[foo]]</nowiki></span>
16336 ]]bar <span><nowiki>[[foo]]</nowiki></span>
16338 =bar <span>foo]]</span><nowiki>=</nowiki>
16340 <p>bar <span>[[foo]]</span>
16341 </p><p>=bar <span>[[foo]]</span>
16342 </p><p>[[bar <span>[[foo]]</span>
16343 </p><p>]]bar <span>[[foo]]</span>
16344 </p><p>=bar <span>foo]]</span>=
16348 #### ----------------------- PRE --------------------------
16349 #### 1. Leading whitespace in SOL context should be escaped
16350 #### ------------------------------------------------------
16352 1. Leading whitespace in SOL context should be escaped
16356 <nowiki> </nowiki>a
16358 <nowiki> </nowiki> a
16360 <nowiki> </nowiki>a(tab)
16362 <nowiki> </nowiki> a
16364 <nowiki> </nowiki> a
16367 <nowiki> </nowiki>b
16370 <nowiki> </nowiki>b
16373 <nowiki> </nowiki> b
16379 <p><!--cmt--> a</p>
16388 #### --------------- HTML tags ---------------
16391 #### 3. multi-line html tag
16392 #### -----------------------------------------
16398 <a href="http://google.com">google</a>
16400 <a href="http://google.com">google</a>
16406 <nowiki><div>foo</div>
16407 <div style="color:red">foo</div></nowiki>
16409 <p><div>foo</div>
16410 <div style="color:red">foo</div>
16415 3. multi-line html tag
16430 <nowiki><ref>foo</ref></nowiki>
16432 <p><ref>foo</ref>
16436 #### --------------- Others ---------------
16440 <nowiki>foo</nowiki>
16442 <p><nowiki>foo</nowiki>
16446 ## The quote-char in the input is necessary for triggering the bug
16448 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
16450 parsoid=wt2wt,html2wt
16459 Tag-like HTML structures are passed through as text
16481 </p><p>1<d e>f
16486 # This was a bug in the PHP parser (see bug 17663 and its dups,
16487 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
16489 Tag names followed by punctuation should not be recognized as tags
16493 <p><s.ome> text
16498 HTML tag with necessary entities in attributes
16500 <span title="&amp;">foo</span>
16502 <p><span title="&amp;">foo</span>
16507 HTML tag with 'unnecessary' entity encoding in attributes
16509 <span title="&">foo</span>
16511 <p><span title="&">foo</span>
16516 HTML tag with broken attribute value quoting
16518 <span title="Hello world>Foo</span>
16520 <p><span>Foo</span>
16525 Parsoid-only: HTML tag with broken attribute value quoting
16529 <span title="Hello world>Foo</span>
16531 <p><span title="Hello world">Foo</span>
16536 Table with broken attribute value quoting
16539 | title="Hello world|Foo
16550 Table with broken attribute value quoting on consecutive lines
16553 | title="Hello world|Foo
16554 | style="color:red|Bar
16567 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16572 | title="Hello world|Foo
16573 | style="color:red|Bar
16578 <td title="Hello world">Foo
16579 </td><td style="color: red">Bar
16580 </td></tr></tbody></table>
16585 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16595 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16605 Accept empty td cell attribute
16608 | align="center" | foo || |
16613 <td align="center"> foo </td>
16620 Non-empty attributes in th-cells
16623 ! Foo !! style="color: red" | Bar
16629 <th style="color: red"> Bar
16635 Accept empty attributes in th-cells
16650 Empty table rows go away
16671 ### Parsoid-centric tests for testing RTing of inter-element separators
16672 ### Edge cases not tested by existing parser tests and specific to
16673 ### Parsoid-specific serialization strategies.
16677 RT-ed inter-element separators should be valid separators
16690 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16691 (Parsoid-only since PHP parser relies on Tidy for correct output)
16707 Empty TD followed by TD with tpl-generated attribute
16712 |{{echo|style='color:red'}}|foo
16726 Indented table with an empty td
16745 Empty TR followed by a template-generated TR
16746 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16748 parsoid=wt2html,wt2wt
16752 {{echo|<tr><td>foo</td></tr>}}
16758 <tr typeof="mw:Transclusion">
16759 <td>foo</td></tr></tbody></table>
16762 ## PHP and parsoid output differ for this, and since this is primarily
16763 ## for testing Parsoid's serializer, marking this Parsoid only
16765 Empty TR followed by mixed-ws-comment line should RT correctly
16779 <td> <!--c--></td></tr>
16781 <td><!--c--> <!--d--></td></tr>
16787 Multi-line image caption generated by templates with/without trailing newlines
16791 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16792 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16794 <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>
16795 <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>
16799 ## PHP emits broken html for this, and since this is primarily
16800 ## a Parsoid serializer test, marking this Parsoid only
16802 Improperly nested inline or quotes tags with whitespace in between
16806 <span> <s>x</span> </s>
16809 <p><span> <s>x</s></span><s> </s>
16810 <b> <i>x</i></b><i> </i>
16815 Encapsulate protected attributes from wt
16819 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
16821 <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>
16825 # -----------------------------------------------------------------
16826 # The following section of tests are primarily to spec requirements
16827 # around serialization of new/edited content.
16829 # All these tests are marked Parsoid html2wt and html2html only
16830 # ----------------------------------------------------------------
16833 Image: Modifying size of an image
16837 [[Image:Wiki.png|230x230px]]
16839 <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>
16843 Image: New block level image should have \n before and after
16848 [[File:Wiki.png|right|thumb|150x150px]]
16851 <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>
16855 Lists: Add space after bullets
16862 * <span> baz</span>
16867 <li><span> baz</span></li>
16872 Parsoid: Serialize positional parameters with = in them as named parameter
16878 <p about="#mwt1" typeof="mw:Transclusion"
16879 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
16883 # -----------------------------------------------------------------
16884 # End of section for Parsoid-only html2wt tests for serialization
16886 # -----------------------------------------------------------------
16893 Try for 100% code coverage