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
29 # notoc disable table of contents
31 # You can also set the following parser properties via test options:
32 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
33 # wgLinkHolderBatchSize, wgRawHtml
35 # For testing purposes, temporary articles can created:
36 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
37 # where '/' denotes a newline.
39 # This is the standard article assumed to exist.
64 MediaWiki:bad image list
66 * [[File:Bad.jpg]] except [[Nasty page]]
100 Template:echo_with_span
106 Template:echo_with_div
118 Template:table_attribs
121 |</noinclude>style="color: red"| Foo
127 {{table_attribs}} || Bar || Baz
131 Template:image_attribs
134 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
168 This is a simple paragraph.
170 <p>This is a simple paragraph.
175 Paragraphs with extra newline spacing
198 Paragraphs with newline spacing with comment lines in between
206 <!--foo--><!--More than 1 comment, still stripped-->
210 <!--foo--> <!----> <!-- bar -->
271 Paragraphs with newline spacing with non-empty white-space lines in between
298 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
306 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
345 Extra newlines: More paragraphs with indented comment
360 Extra newlines followed by heading
375 <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>
376 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
379 <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>
384 Extra newlines between heading and content are swallowed
392 <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>
393 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
400 http://fr.wikipedia.org/wiki/🍺
401 <!-- EasterEgg we love beer, better be able be able to link to it -->
403 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
426 * plain''italic''plain
427 * plain''italic''plain''italic''plain
428 * plain'''bold'''plain
429 * plain'''bold'''plain'''bold'''plain
430 * plain''italic''plain'''bold'''plain
431 * plain'''bold'''plain''italic''plain
432 * plain''italic'''bold-italic'''italic''plain
433 * plain'''bold''bold-italic''bold'''plain
434 * plain'''''bold-italic'''italic''plain
435 * plain'''''bold-italic''bold'''plain
436 * plain''italic'''bold-italic'''''plain
437 * plain'''bold''bold-italic'''''plain
438 * plain l'''italic''plain
439 * plain l''''bold''' plain
444 <li> plain<i>italic</i>plain
446 <li> plain<i>italic</i>plain<i>italic</i>plain
448 <li> plain<b>bold</b>plain
450 <li> plain<b>bold</b>plain<b>bold</b>plain
452 <li> plain<i>italic</i>plain<b>bold</b>plain
454 <li> plain<b>bold</b>plain<i>italic</i>plain
456 <li> plain<i>italic<b>bold-italic</b>italic</i>plain
458 <li> plain<b>bold<i>bold-italic</i>bold</b>plain
460 <li> plain<i><b>bold-italic</b>italic</i>plain
462 <li> plain<b><i>bold-italic</i>bold</b>plain
464 <li> plain<i>italic<b>bold-italic</b></i>plain
466 <li> plain<b>bold<i>bold-italic</i></b>plain
468 <li> plain l'<i>italic</i>plain
470 <li> plain l'<b>bold</b> plain
476 # this example taken from the [[simple:Moon]] article (bug 47326)
478 Italics and possessives (1)
480 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
482 <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
486 # this example taken from [[en:Flaming Pie]] (bug 49926)
488 Italics and possessives (2)
490 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
492 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
496 # this example taken from [[en:Dictionary]] (bug 49926)
498 Italics and possessives (3)
500 The first monolingual dictionary written in a Romance language was ''Sebastián Covarrubias''' ''Tesoro de la lengua castellana o española'', published in 1611 in Madrid. In 1612 the first edition of the ''Vocabolario dell'[[Accademia della Crusca]]'', for Italian, was published. In 1690 in Rotterdam was published, posthumously, the ''Dictionnaire Universel''.
502 <p>The first monolingual dictionary written in a Romance language was <i>Sebastián Covarrubias'</i> <i>Tesoro de la lengua castellana o española</i>, published in 1611 in Madrid. In 1612 the first edition of the <i>Vocabolario dell'<a href="/index.php?title=Accademia_della_Crusca&action=edit&redlink=1" class="new" title="Accademia della Crusca (page does not exist)">Accademia della Crusca</a></i>, for Italian, was published. In 1690 in Rotterdam was published, posthumously, the <i>Dictionnaire Universel</i>.
508 ### 2-quote opening sequence tests
511 Italics and bold: 2-quote opening sequence: (2,2)
521 Italics and bold: 2-quote opening sequence: (2,3)
531 Italics and bold: 2-quote opening sequence: (2,4)
541 Italics and bold: 2-quote opening sequence: (2,5) (php)
550 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
552 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
564 ### 3-quote opening sequence tests
568 Italics and bold: 3-quote opening sequence: (3,2)
578 Italics and bold: 3-quote opening sequence: (3,3)
588 Italics and bold: 3-quote opening sequence: (3,4)
598 Italics and bold: 3-quote opening sequence: (3,5) (php)
607 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
609 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
621 ### 4-quote opening sequence tests
625 Italics and bold: 4-quote opening sequence: (4,2)
635 Italics and bold: 4-quote opening sequence: (4,3)
645 Italics and bold: 4-quote opening sequence: (4,4)
655 Italics and bold: 4-quote opening sequence: (4,5) (php)
664 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
666 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
672 <p>'<b>foo</b><i></i>
678 ### 5-quote opening sequence tests
682 Italics and bold: 5-quote opening sequence: (5,2)
693 Italics and bold: 5-quote opening sequence: (5,3)
703 Italics and bold: 5-quote opening sequence: (5,4)
707 <p><i><b>foo'</b></i>
713 Italics and bold: 5-quote opening sequence: (5,5)
722 ### multiple quote sequences in a line
725 Italics and bold: multiple quote sequences: (2,4,2)
729 <p><i>foo'<b>bar</b></i>
735 Italics and bold: multiple quote sequences: (2,4,3)
739 <p><i>foo'<b>bar</b></i>
745 Italics and bold: multiple quote sequences: (2,4,4)
749 <p><i>foo'<b>bar'</b></i>
755 Italics and bold: multiple quote sequences: (3,4,2) (php)
764 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
766 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
772 <p><b>foo'</b>bar<i></i>
778 Italics and bold: multiple quote sequences: (3,4,3) (php)
787 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
789 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
795 <p><b>foo'</b>bar<b></b>
800 ### other quote tests
803 Italics and bold: other quote tests: (2,3,5)
805 ''this is about '''foo's family'''''
807 <p><i>this is about <b>foo's family</b></i>
813 Italics and bold: other quote tests: (2,(3,3),2)
815 ''this is about '''foo's''' family''
817 <p><i>this is about <b>foo's</b> family</i>
823 Italics and bold: other quote tests: (3,2,3,2)
825 '''this is about ''foo'''s family''
827 <p><b>this is about <i>foo</i></b><i>s family</i>
833 Italics and bold: other quote tests: (3,2,3,3)
836 '''this is about ''foo'''s family'''
838 <p>'<i>this is about </i>foo<b>s family</b>
844 Italics and bold: other quote tests: (3,(2,2),3)
846 '''this is about ''foo's'' family'''
848 <p><b>this is about <i>foo's</i> family</b>
854 Italicized possessive
856 The ''[[Main Page]]'''s talk page.
858 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
863 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
864 (Requires tidy for PHP parser output to be fixed up)
866 parsoid=wt2html,wt2wt
874 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
875 <td><i>a</i></td><td><i>b</i></td></tr>
884 Non-html5 tags should be accepted
886 <center>''foo''</center>
889 <strike>''foo''</strike>
892 <center><i>foo</i></center>
893 <p><big><i>foo</i></big>
894 <font><i>foo</i></font>
895 <strike><i>foo</i></strike>
901 <wbr> is valid wikitext (bug 52468)
909 # <strike> is HTML4, <s> is HTML4/5.
911 <s> or <strike> for strikethrough
913 <strike>strike</strike>
917 <p><strike>strike</strike>
923 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
925 <b→> doesn't work! </b→>
927 <bä> doesn't work! </bä>
929 <boo> works fine </boo>
935 <p><b→> doesn't work! </b→>
936 </p><p><bä> doesn't work! </bä>
937 </p><p><boo> works fine </boo>
938 </p><p><s.foo>s.foo</s.foo>
939 </p><p><sub-ID#1>
944 Isolated close tags should be treated as literal text (bug 52760)
951 </p><p><s.foo>s</s>
956 ### Special characters
960 Bare pipe character (bug 52363)
969 Bare pipe character from a template (bug 52363)
978 ### <nowiki> test cases
982 <nowiki> unordered list
984 <nowiki>* This is not an unordered list item.</nowiki>
986 <p>* This is not an unordered list item.
993 <nowiki>Lorem ipsum dolor
1001 <p>Lorem ipsum dolor
1014 :There is not nowiki.
1015 :There is <nowiki>nowiki</nowiki>.
1017 #There is not nowiki.
1018 #There is <nowiki>nowiki</nowiki>.
1020 *There is not nowiki.
1021 *There is <nowiki>nowiki</nowiki>.
1024 <dd>There is not nowiki.
1026 <dd>There is nowiki.
1030 <li>There is not nowiki.
1032 <li>There is nowiki.
1036 <li>There is not nowiki.
1038 <li>There is nowiki.
1045 Entities inside <nowiki>
1047 <nowiki><</nowiki>
1054 Entities inside template parameters
1060 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span>
1068 Comments and Indent-Pre
1070 <!-- comment 1 --> asdf
1072 <!-- comment 1 --> asdf
1075 <!-- comment 1 --> asdf
1076 <!-- comment 2 -->xyz
1078 <!-- comment 1 --> asdf
1079 <!-- comment 2 --> xyz
1135 asdf<!-- comment 1 -->jkl
1145 <!-- foo --> b <!-- bar -->
1159 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1165 Comment semantics and delimiters
1167 <!-- --><!----><!-----><!------>
1173 Comment semantics and delimiters, redux
1175 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1176 -- foo -- funky huh? ... -->
1182 Comment semantics and delimiters: directors cut
1184 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1185 everything starting with < followed by !-- until the first -- and > we see,
1186 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1194 Comment semantics: nesting
1196 <!--<!-- no, we're not going to do anything fancy here -->-->
1203 Comment semantics: unclosed comment at end
1205 <!--This comment will run out to the end of the document
1211 Comment in template title
1220 Comment on its own line post-expand
1232 Comment on its own line post-expand with non-significant whitespace
1244 ### paragraph wrapping tests
1259 Block tag on one line (<div>)
1271 Block tag on one line (<blockquote>)
1273 a <blockquote>foo</blockquote>
1277 a <blockquote>foo</blockquote>
1283 Block tag on both lines (<div>)
1295 Block tag on both lines (<blockquote>)
1297 a <blockquote>foo</blockquote>
1299 b <blockquote>foo</blockquote>
1301 a <blockquote>foo</blockquote>
1302 b <blockquote>foo</blockquote>
1307 Multiple lines without block tags
1325 Empty lines between lines with block tags
1354 ## PHP parser emits output which is broken
1356 Unclosed HTML p-tags should be handled properly
1365 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1371 ### Preformatted text
1380 And a [[Main Page|link]]
1386 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1391 Tabs don't trigger preformatted text
1395 This is preformatted text.
1401 <pre>This is preformatted text.
1407 Ident preformatting with inline content
1418 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1435 Regression with preformatted in <center>
1449 Bug 52763: Preformatted in <blockquote>
1455 indented cell (no pre-wrapping!)
1465 <p> indented cell (no pre-wrapping!)
1473 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1490 Bug 15491: <ins>/<del> in blockquote
1493 Foo <del>bar</del> <ins>baz</ins> quux
1497 <p>Foo <del>bar</del> <ins>baz</ins> quux
1503 # Note that the p-wrapping is newline sensitive, which could be
1504 # considered a bug: tidy will wrap only the 'Foo' in the example
1505 # below in a <p> tag. (see comment 23-25 of bug #6200)
1507 Bug 15491: <ins>/<del> in blockquote (2)
1509 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1512 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1518 <pre> with attributes (bug 3202)
1520 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1522 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1527 <pre> with width attribute (bug 3202)
1529 <pre width="8">Narrow screen goodies</pre>
1531 <pre width="8">Narrow screen goodies</pre>
1536 <pre> with forbidden attribute (bug 3202)
1538 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1540 <pre width="8">Narrow screen goodies</pre>
1545 Entities inside <pre>
1554 <pre> with forbidden attribute values (bug 3202)
1556 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1558 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1563 <nowiki> inside <pre> (bug 13238)
1571 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1579 <pre><nowiki>Foo</nowiki></pre>
1584 <nowiki> and <pre> preference (first one wins)
1615 </pre> inside nowiki
1617 <nowiki></pre></nowiki>
1624 Empty pre; pre inside other HTML tags (bug 54946)
1643 HTML pre followed by indent-pre
1658 <p><pre>foo</pre></p>
1660 <p data-parsoid='{"stx":"html","autoInsertedEnd":true,"dsr":[0,3,3,0]}'></p><pre data-parsoid='{"stx":"html","dsr":[3,17,5,6]}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html","dsr":[17,21,0,null]}'></p>
1664 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1672 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1682 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1694 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1715 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1719 {{echo| foo}}{{echo| bar}}
1724 {{echo|<!--cmt--> foo}}
1726 <!--cmt-->{{echo| foo}}
1728 {{echo|{{echo| }}bar}}
1746 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1783 Things that look like <pre> tags aren't treated as such
1785 Barack Obama <President> of the United States
1787 <p>Barack Obama <President> of the United States
1792 Parsoid: handle pre with space after attribute
1796 <pre style="width:50%;" >{{echo|foo}}</pre>
1798 <pre style="width:50%;">{{echo|foo}}</pre>
1801 # TODO / maybe: fix wt2wt for this
1803 Parsoid: Don't paragraph-wrap fosterable content
1829 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
1857 #--------------------------------------------------------------------
1858 # Transclusion parameter whitespace stripping tests
1859 # Behavior is different for positional and named parameters
1860 #--------------------------------------------------------------------
1862 Templates: Strip leading and trailing whitespace from named-param values
1866 {{echo|1= {{echo|b}} }}
1887 Templates: Don't strip whitespace from positional-param values
1891 {{echo|{{echo|b}} }}
1934 Templates: Handle empty comment-and-ws-only lines correctly
1937 <!--should be ignored-->
1938 <!--should be ignored as well-->
1946 #--------------------------------------------------------------------
1947 # Transclusion parameter escaping tests
1948 #--------------------------------------------------------------------
1950 Templates: Parsoid parameter escaping test 1
1954 {{echo|[foo]|{{echo|[bar]}}}}
1956 <p about="#mwt1" typeof="mw:Transclusion"
1957 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
1961 Parsoid: Pipes in external links in template parameter
1965 {{echo|[{{echo|http://example.com}} link]}}
1967 <p><a rel="mw:ExtLink" href="http://example.com" about="#mwt31" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{echo|http://example.com}} link]"}},"i":0}}]}'>link</a></p>
1971 Parsoid: pipe in transclusion parameter
1975 {{echo|http://foo.com/a|b}}
1977 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1978 typeof="mw:Transclusion"
1979 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a&#124;b"}},"i":0}}]}'>http://foo.com/a|b</a></p>
1983 Parsoid: Pipe in external link target and content in template parameter
1985 parsoid=html2wt,wt2wt
1987 {{echo|[http://foo.com/a|b a|b]}}
1989 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1990 typeof="mw:Transclusion"
1991 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
1992 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
1996 Templates: Don't escape already nowiki-escaped text in template parameters
1998 parsoid=html2wt,wt2wt
2000 {{echo|foo<nowiki>|</nowiki>bar}}
2001 {{echo|<nowiki><div></nowiki>}}
2002 {{echo|<nowiki></nowiki>}}
2004 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"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>
2005 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt2" data-mw='{"parts":[{"template":{"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>
2006 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}}]}'></span>
2012 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
2014 parsoid=html2wt,wt2wt
2016 {{echo|{{echo|1=bar}}}}
2018 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{echo|1=bar}}"}},"i":0}}]}'>bar</p>
2023 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
2029 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a : b"}},"i":0}}]}'>a<span typeof="mw:Placeholder" data-parsoid='{"isDisplayHack":true}'> </span>: b</p>
2033 ### Parsoid-centric tests for testing RT edge cases for pre
2037 1a. Indent-Pre and Comments
2050 1b. Indent-Pre and Comments
2063 1c. Indent-Pre and Comments
2076 1d. Indent-Pre and Comments
2077 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2090 2a. Indent-Pre and tables
2111 2b. Indent-Pre and tables
2127 2c. Indent-Pre and tables (bug 42252)
2144 3a. Indent-Pre and block tags (single-line html)
2148 c <blockquote> foo </blockquote>
2153 c <blockquote> foo </blockquote>
2154 <pre><span> foo </span>
2159 3c. Indent-Pre and block tags (multi-line html)
2164 <pre>a <span>foo</span>
2171 3b. Indent-Pre and block tags (pre-content on separate line)
2235 4. Multiple spaces at start-of-line
2253 ## NOTE: the leading white-space chars on empty line are significant
2255 5a. White-space in indent-pre
2267 ## NOTE: the leading white-space chars on empty line are significant
2269 5b. White-space in indent-pre
2288 5c. White-space in indent-pre
2301 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2324 7a. Indent-pre and category links
2326 parsoid=wt2html,wt2wt
2328 [[Category:foo]] <!-- No pre-wrapping -->
2329 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2331 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2332 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2333 <link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2337 7b. Indent-pre and category links
2339 parsoid=wt2html,wt2wt
2342 [[Category:foo]] {{echo|b}}
2345 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
2347 <link rel="mw:PageProp/Category" href="./Category:Foo"> <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b"}},"i":0}}]}'>b</span></pre>
2351 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2355 HTML-pre: 1. embedded newlines
2391 HTML-pre: 2: indented text
2404 HTML-pre: 3: other wikitext
2425 ### Definition lists
2433 <dt> name </dt>
2441 Definition list for indentation only
2453 Definition list with no space
2466 Definition list with URL link
2468 ; http://example.com/ : definition
2471 <dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2479 Definition list with bracketed URL link
2481 ;[http://www.example.com/ Example]:Something about it
2484 <dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2485 <dd>Something about it
2492 Definition list with wikilink containing colon
2494 ; [[Help:FAQ]]: The least-read page on Wikipedia
2497 <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>
2498 <dd> The least-read page on Wikipedia
2504 # At Brion's and JeLuF's insistence... :)
2506 Definition list with news link containing colon
2508 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2511 <dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2512 <dd> This isn't even a real newsgroup!
2519 Malformed definition list with colon
2521 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2524 <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
2531 Definition lists: colon in external link text
2533 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2536 <dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2537 <dd> OK, I made that up
2544 Definition lists: colon in HTML attribute
2546 ;<b style="display: inline">bold</b>
2549 <dt><b style="display: inline">bold</b>
2556 Definition lists: self-closed tag
2558 ;one<br/>two : two-line fun
2561 <dt>one<br />two </dt>
2569 Bug 11748: Literal closing tags
2573 <dd>test test test test test</dd>
2575 <dd>test test test test test</dd>
2580 <dd>test test test test test</dd>
2582 <dd>test test test test test</dd>
2588 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2591 ; term : description
2597 <dt> term </dt>
2611 Definition list with empty definition and following paragraph
2626 Nested definition lists using html syntax
2643 Definition Lists: No nesting: Multiple dd's
2661 Definition Lists: Indentation: Regular
2683 Definition Lists: Indentation: Missing 1st level
2703 Definition Lists: Indentation: Multi-level indent
2721 Definition Lists: Hacky use to indent tables
2728 should be left alone
2730 <dl><dd><dl><dd><table>
2735 </td></tr></table></dd></dl></dd></dl>
2737 should be left alone
2743 Definition Lists: Hacky use to indent tables (WS-insensitive)
2752 <dd> <table><tr><td>a</td></tr></table> </dd>
2755 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2756 ## as an empty dt item. It also ignores all but the last ";" when followed
2757 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2758 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2761 ## Ex: ";;t2 ::d2" is transformed into:
2773 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2774 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2785 ## All Parsoid only definition list tests have this difference.
2787 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2788 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2791 Table / list interaction: indented table with lists in table contents
2817 </td></tr></table></dd></dl>
2822 Table / list interaction: lists nested in tables nested in indented lists
2853 </td></tr></table></dd></dl>
2864 Definition Lists: Nesting: Multi-level (Parsoid only)
2894 Definition Lists: Nesting: Test 2 (Parsoid only)
2914 Definition Lists: Nesting: Test 3 (Parsoid only)
2942 Definition Lists: Nesting: Test 4
2963 ## The Parsoid team believes the following three test exposes a
2964 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2965 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2967 Definition Lists: Mixed Lists: Test 1 (php)
2994 Definition Lists: Mixed Lists: Test 1 (parsoid)
3018 Definition Lists: Mixed Lists: Test 2
3037 Definition Lists: Mixed Lists: Test 3
3062 Definition Lists: Mixed Lists: Test 4
3083 Definition Lists: Mixed Lists: Test 5
3104 Definition Lists: Mixed Lists: Test 6
3131 Definition Lists: Mixed Lists: Test 7
3150 Definition Lists: Mixed Lists: Test 8
3174 Definition Lists: Mixed Lists: Test 9
3191 Definition Lists: Mixed Lists: Test 10
3209 # The Parsoid team disagrees with the PHP parser's seemingly-random
3210 # rules regarding dd/dt on the next two tests. Parsoid is more
3211 # consistent, and recognizes the shared nesting and keeps the
3212 # still-open tags around until the nesting is complete.
3215 Definition Lists: Mixed Lists: Test 11 (php)
3256 Definition Lists: Mixed Lists: Test 11 (parsoid)
3278 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3279 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3283 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3284 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3294 Definition Lists: Weird Ones: Test 1 (php)
3298 *#;*::;; foo : bar (who uses this?)
3309 <dt> bar (who uses this?)
3329 Definition Lists: Weird Ones: Test 1 (parsoid)
3333 *#;*::;; foo : bar (who uses this?)
3350 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3351 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3366 External links: non-bracketed
3368 Non-bracketed: http://example.com
3370 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3375 External links: numbered
3377 Numbered: [http://example.com]
3378 Numbered: [http://example.net]
3379 Numbered: [http://example.com]
3381 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3382 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3383 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3388 External links: specified text
3390 Specified text: [http://example.com link]
3392 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3397 External links: trail
3399 Linktrails should not work for external links: [http://example.com link]s
3401 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3406 External links: dollar sign in URL
3408 http://example.com/1$2345
3410 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3415 External links: dollar sign in URL (named)
3417 [http://example.com/1$2345]
3419 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3424 External links: open square bracket forbidden in URL (bug 4377)
3426 http://example.com/1[2345
3428 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3433 External links: open square bracket forbidden in URL (named) (bug 4377)
3435 [http://example.com/1[2345]
3437 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3442 External links: nowiki in URL link text (bug 6230)
3444 [http://example.com/ <nowiki>''example site''</nowiki>]
3446 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3451 External links: newline forbidden in text (bug 6230 regression check)
3453 [http://example.com/ first
3456 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3462 External links: Pipe char between url and text
3464 [http://example.com | link]
3466 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3471 External links: protocol-relative URL in brackets
3473 [//example.com/ Test]
3475 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3480 External links: protocol-relative URL in brackets without text
3484 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3489 External links: protocol-relative URL in free text is left alone
3493 <p>//example.com/Foo
3498 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3500 foo//example.com/Foo
3502 <p>foo//example.com/Foo
3509 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3511 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3516 External image from https
3518 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3520 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3525 External image (when not allowed)
3527 wgAllowExternalImages=0
3529 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3531 <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>
3536 Link to non-http image, no img tag
3538 Link to non-http image, no img tag: ftp://example.com/test.jpg
3540 <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>
3545 External links: terminating separator
3547 Terminating separator: http://example.com/thing,
3549 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3554 External links: intervening separator
3556 Intervening separator: http://example.com/1,2,3
3558 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3563 External links: old bug with URL in query
3565 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3567 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3572 External links: old URL-in-URL bug, mixed protocols
3574 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3576 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3581 External links: URL in text
3583 URL in text: [http://example.com http://example.com]
3585 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3590 External links: Clickable images
3592 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3594 <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>
3599 External links: raw ampersand
3601 Old & use: http://x&y
3603 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3608 External links: encoded ampersand
3610 Old & use: http://x&y
3612 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3617 External links: encoded equals (bug 6102)
3619 http://example.com/?foo=bar
3621 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3626 External links: [raw ampersand]
3628 Old & use: [http://x&y]
3630 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3635 External links: [encoded ampersand]
3637 Old & use: [http://x&y]
3639 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3644 External links: [encoded equals] (bug 6102)
3646 [http://example.com/?foo=bar]
3648 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3653 External links: [IDN ignored character reference in hostname; strip it right off]
3655 [http://e‌xample.com/]
3657 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3661 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3662 # Where an external link could easily circumvent the sanitization of the text of
3663 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3664 # test demands a higher standard. That's a bit strange.
3668 # http://example.com -> [http://example.com|http://example.com]
3669 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3671 # The first example is sanitized, but the second is not. Any security benefits
3672 # from this production are trivial to circumvent. Either remove this test and
3673 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3674 # the test accordingly.
3679 External links: IDN ignored character reference in hostname; strip it right off
3681 http://e‌xample.com/
3683 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3688 External links: www.jpeg.org (bug 554)
3692 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3697 External links: URL within URL (original bug 2)
3699 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3701 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3706 BUG 361: URL inside bracketed URL
3708 [http://www.example.com/foo http://www.example.com/bar]
3710 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3715 BUG 361: URL within URL, not bracketed
3717 http://www.example.com/foo?=http://www.example.com/bar
3719 <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>
3724 BUG 289: ">"-token in URL-tail
3726 http://www.example.com/<hello>
3728 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3733 BUG 289: literal ">"-token in URL-tail
3735 http://www.example.com/<b>html</b>
3737 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3742 BUG 289: ">"-token in bracketed URL
3744 [http://www.example.com/<hello> stuff]
3746 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3751 BUG 289: literal ">"-token in bracketed URL
3753 [http://www.example.com/<b>html</b> stuff]
3755 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3760 BUG 289: literal double quote at end of URL
3762 http://www.example.com/"hello"
3764 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3769 BUG 289: literal double quote in bracketed URL
3771 [http://www.example.com/"hello" stuff]
3773 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3778 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3780 [http://www.example.com test]
3782 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3787 External links: link text with spaces
3789 [http://www.example.com a b c]
3790 [http://www.example.com ''a'' ''b'']
3792 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3793 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3798 External links: wiki links within external link (Bug 3695)
3802 [http://example.com [[wikilink]] embedded in ext link]
3804 <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>
3809 Parsoid: External links: wiki links within external link (Bug 3695)
3813 [http://example.com [[wikilink]] embedded in ext link]
3815 <p><a rel="mw:ExtLink" href="http://example.com"></a><a rel="mw:WikiLink" href="./Wikilink">wikilink</a><span> embedded in ext link</span></p>
3819 BUG 787: Links with one slash after the url protocol are invalid
3823 [http:/example.com title]
3825 <p>http:/example.com
3826 </p><p>[http:/example.com title]
3831 Bracketed external links with template-generated invalid target
3833 [{{echo|http:/example.com}} title]
3835 <p>[http:/example.com title]
3840 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3842 ''[http://example.com text'']
3843 [http://example.com '''text]'''
3844 ''Something [http://example.com in italic'']
3845 ''Something [http://example.com mixed''''', even bold]'''
3846 '''''Now [http://example.com both''''']
3848 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3849 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3850 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3851 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3852 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3858 Bug 4781: %26 in URL
3860 http://www.example.com/?title=AT%26T
3862 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3866 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3867 # % is actually legal in HTML5. Any change in output would need testing though.
3869 Bug 4781, 5267: %25 in URL
3871 http://www.example.com/?title=100%25_Bran
3873 <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>
3878 Bug 4781, 5267: %28, %29 in URL
3880 http://www.example.com/?title=Ben-Hur_%281959_film%29
3882 <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>
3888 Bug 4781: %26 in autonumber URL
3890 [http://www.example.com/?title=AT%26T]
3892 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3897 Bug 4781, 5267: %26 in autonumber URL
3899 [http://www.example.com/?title=100%25_Bran]
3901 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3906 Bug 4781, 5267: %28, %29 in autonumber URL
3908 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3910 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3916 Bug 4781: %26 in bracketed URL
3918 [http://www.example.com/?title=AT%26T link]
3920 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3925 Bug 4781, 5267: %26 in bracketed URL
3927 [http://www.example.com/?title=100%25_Bran link]
3929 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3934 Bug 4781, 5267: %28, %29 in bracketed URL
3936 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3938 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3943 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3945 Some [http://example.com/ pretty ''italics'' and stuff]!
3947 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3952 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3954 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3956 <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>
3961 External link containing double-single-quotes with no space separating the url from text in italics
3965 [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]].]
3967 <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>
3972 Parsoid:External link containing double-single-quotes with no space separating the url from text in italics
3976 [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]].]
3978 <p><a rel="mw:ExtLink" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de </a><a rel="mw:WikiLink" href="./Museo_Picasso_(París)">Museo Picasso</a><span>.</span></p>
3982 External link with comments in link text
3984 [http://www.google.com Google <!-- comment -->]
3986 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3991 URL-encoding in URL functions (single parameter)
3993 {{localurl:Some page|amp=&}}
3995 <p>/index.php?title=Some_page&amp=&
4000 URL-encoding in URL functions (multiple parameters)
4002 {{localurl:Some page|q=?&=&}}
4004 <p>/index.php?title=Some_page&q=?&amp=&
4011 http://example.com/index.php?foozoid%5B%5D=bar
4013 http://example.com/index.php?foozoid[]=bar
4015 <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>
4016 </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>
4021 IPv6 urls (bug 21261)
4025 http://[2404:130:0:1000::187:2]/index.php
4027 <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>
4032 Non-extlinks in brackets
4041 [{{echo|foo}} ''bar'']
4042 [{{echo|foo}}l's] errand
4043 [{{echo|foo}}l's errand]
4045 [url=http://example.com]
4058 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
4063 Parsoid: Percent encoding in external links
4067 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
4069 <p><a rel="mw:ExtLink"
4070 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
4074 Parsoid: use url link syntax for links where the content is equal the link
4081 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
4085 Parenthesis in external links, especially URL links
4091 http://example.com/test)
4093 http://example.com/(test)
4095 http://example.com/((test)
4097 (http://example.com/(test))
4099 (http://example.com/(test)))))
4101 http://example.com/a)b
4103 [http://example.com) foo]
4105 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4106 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
4107 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</a>
4108 </p><p><a rel="nofollow" class="external free" href="http://example.com/((test)">http://example.com/((test)</a>
4109 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test))">http://example.com/(test))</a>
4110 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test)))))">http://example.com/(test)))))</a>
4111 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
4112 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
4117 Parenthesis in external links, especially URL links (Parsoid)
4123 http://example.com/test)
4125 http://example.com/(test)
4127 http://example.com/((test)
4129 (http://example.com/(test))
4131 (http://example.com/(test)))))
4133 http://example.com/a)b
4135 [http://example.com) foo]
4137 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
4138 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
4139 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</a></p>
4140 <p><a rel="mw:ExtLink" href="http://example.com/((test)">http://example.com/((test)</a></p>
4141 <p>(<a rel="mw:ExtLink" href="http://example.com/(test))">http://example.com/(test))</a></p>
4142 <p>(<a rel="mw:ExtLink" href="http://example.com/(test)))))">http://example.com/(test)))))</a></p>
4143 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
4144 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
4148 Parenthesis in external links, w/ transclusion or comment
4152 (http://example.com/{{echo|hi}})
4154 (http://example.com<!-- hi -->)
4156 <p>(<a data-mw='{"attribs":[[{"txt":"href"},{"html":"http://example.com/<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&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;hi&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[20,31,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">hi</span>"}]]}' typeof="mw:ExpandedAttrs" about="#mwt2" rel="mw:ExtLink" href="http://example.com/hi" data-parsoid='{"stx":"url","a":{"href":"http://example.com/hi"},"sa":{"href":"http://example.com/{{echo|hi}}"},"dsr":[1,31,0,0]}'>http://example.com/hi</a>)</p>
4158 <p>(<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url","a":{"href":"http://example.com"},"sa":{"href":"http://example.com<!-- hi -->"},"dsr":[35,64,0,0]}'>http://example.com</a>)</p>
4168 Normal text. '''Bold text.''' Normal text. ''Italic text.''
4170 Normal text. '''''Bold italic text.''''' Normal text.
4172 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
4173 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
4179 Unclosed and unmatched quotes (php)
4183 '''''Bold italic text '''with bold deactivated''' in between.'''''
4185 '''''Bold italic text ''with italic deactivated'' in between.'''''
4189 ..spanning two paragraphs (should not work).'''
4191 '''Bold tag left open
4193 ''Italic tag left open
4197 <!-- Unmatching number of opening, closing tags: -->
4198 '''This year''''s election ''should'' beat '''last year''''s.
4200 ''Tom'''s car is bigger than ''Susan'''s.
4202 Plain ''italic'''s plain
4204 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4205 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4206 </p><p><b>Bold text..</b>
4207 </p><p>..spanning two paragraphs (should not work).
4208 </p><p><b>Bold tag left open</b>
4209 </p><p><i>Italic tag left open</i>
4211 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4212 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4213 </p><p>Plain <i>italic'</i>s plain
4216 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
4217 # parser strips. The wikitext contains just the first half of the bold
4220 Unclosed and unmatched quotes (parsoid)
4224 '''''Bold italic text '''with bold deactivated''' in between.'''''
4226 '''''Bold italic text ''with italic deactivated'' in between.'''''
4230 ..spanning two paragraphs (should not work).'''
4232 '''Bold tag left open
4234 ''Italic tag left open
4238 <!-- Unmatching number of opening, closing tags: -->
4239 '''This year''''s election ''should'' beat '''last year''''s.
4241 ''Tom'''s car is bigger than ''Susan'''s.
4243 Plain ''italic'''s plain
4245 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4246 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4247 </p><p><b>Bold text..</b>
4248 </p><p>..spanning two paragraphs (should not work).<b></b>
4249 </p><p><b>Bold tag left open</b>
4250 </p><p><i>Italic tag left open</i>
4252 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4253 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4254 </p><p>Plain <i>italic'</i>s plain
4261 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4264 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4265 # is the bare minimum required by the spec, see:
4266 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4268 A table with no data. (php)
4277 # Parsoid team replies: empty table tags are legal in HTML5
4279 A table with no data. (parsoid)
4290 A table with stray table end tags on start tag line (wt2html)
4294 {|style="color: red;"|}
4296 {|style="color: red;" |}
4300 {|style="color: red;"|} id="foo"
4304 {|style="color: red;" |} id="foo"
4308 <table style="color: red;"></table>
4310 <table style="color: red;">
4316 <table style="color: red;" id="foo">
4322 <table style="color: red;" id="foo">
4331 A table with no data (take 2) (parsoid)
4341 # A table with nothing but a caption is invalid XHTML, we might want to render
4342 # this as <p>caption</p>
4344 A table with nothing but a caption (php)
4354 </caption><tr><td></td></tr></table>
4357 # Parsoid team replies: table with only a caption is legal in HTML5
4359 A table with nothing but a caption (parsoid)
4367 <table><caption> caption</caption></table>
4371 A table with caption with default-spaced attributes and a table row
4374 |+ style="color: red;" | caption1
4380 <caption style="color: red;"> caption1
4389 A table with captions with non-default spaced attributes and a table row
4392 |+style="color: red;"|caption2
4393 |+ style="color: red;"| caption3
4399 <caption style="color: red;">caption2
4401 <caption style="color: red;"> caption3
4410 Table td-cell syntax variations
4414 | foo bar foo || baz
4415 | style='color:red;' | baz
4416 | style='color:red;' || baz
4423 <td> foo bar foo </td>
4426 <td style="color:red;"> baz
4428 <td> style='color:red;' </td>
4456 Simple table but with multiple dashes for row wikitext
4474 Multiplication table
4476 {| border="1" cellpadding="2"
4477 |+Multiplication table
4479 ! × !! 1 !! 2 !! 3
4497 <table border="1" cellpadding="2">
4498 <caption>Multiplication table
4545 Accept "||" in table headings
4560 Accept "||" in indented table headings
4570 </th></tr></table></dd></dl>
4575 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4592 Accept "| !" at start of line in tables (ignore !-attribute)
4596 | !style="color:red" | bar
4608 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 +/-
4612 |style='color:red;'|+1
4613 |style='color:blue;'|-1
4625 <td style="color:red;">+1
4627 <td style="color:blue;">-1
4651 |rowspan=2| Cell 2, row 1 (and 2)
4662 <td rowspan="2"> Cell 2, row 1 (and 2)
4680 {| bgcolor=#ABCDEF border=2
4685 |the original table again
4693 <table bgcolor="#ABCDEF" border="2">
4701 <td>the original table again
4707 Invalid attributes in table cell (bug 1830)
4722 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4725 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4729 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4730 <td>]" onmouseover="alert(document.cookie)">test
4739 Indented table markup mixed with indented pre content (proposed in bug 6200)
4744 Text that should be rendered preformatted
4752 <pre>Text that should be rendered preformatted
4761 Template-generated table cell attributes and cell content
4770 <td style="color: red"> Foo
4772 <td style="color: red"> Foo
4778 Template-generated table cell attributes and cell content (2)
4781 |align=center {{table_attribs}}
4786 <td align="center" style="color: red"> Foo
4792 Template-generated table cell attributes and cell content (3)
4795 |align=center {{table_cells}}
4800 <td align="center" style="color: red"> Foo </td>
4808 Table with row followed by newlines and table heading
4826 Table with empty line following the start tag
4843 # FIXME: Preserve the attribute properly (with an empty string as value) in
4844 # the PHP parser. Parsoid implements the behavior below.
4846 Table attributes with empty value
4858 </td></tr></tbody></table>
4863 Wikitext table with a lot of comments
4886 Wikitext table with double-line table cell
4903 Table cell with a single comment
4919 # The expected HTML structure in this test is debatable. The PHP parser does
4920 # not parse this kind of table at all. The main focus for Parsoid is on
4921 # round-tripping, so this output is ok for now. TODO: revisit!
4923 Wikitext table with html-syntax row (Parsoid)
4935 <td>foo</td></tr></tbody></table>
4939 Implicit <td> after a |-
4940 (PHP parser relies on Tidy to add the missing <td> tags)
4942 parsoid=wt2html,wt2wt
4955 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4956 (PHP parser relies on Tidy to add the missing <td> tags)
4958 parsoid=wt2html,wt2wt
4970 <tr><td><pre>a</pre></td></tr>
4971 <tr><td> b</td></tr>
4977 Lists should be recognized in an implicit <td> context
4978 (PHP parser relies on Tidy to add the missing <td> tags)
4980 parsoid=wt2html,wt2wt
4997 Parsoid: Round-trip tables directly followed by content (bug 51219)
4999 parsoid=wt2html,wt2wt
5011 <td>foo</td></tr></tbody></table> bar
5015 <td>baz</td></tr></tbody></table><b>quux</b>
5019 Parsoid: Default to a newline after tables in new content (bug 51219)
5026 <nowiki> </nowiki>bar
5033 <tr><td>foo</td></tr></tbody></table> bar
5035 <tr><td>baz</td></tr></tbody></table><b>quux</b>
5039 Parsoid: newline inducing block nodes don't suppress <nowiki>
5054 Plain link, capitalized
5058 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5063 Plain link, uncapitalized
5067 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
5074 [[Main Page|The Main Page]]
5076 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
5081 Piped link with comment in link text
5083 [[Main Page|The Main<!--front--> Page]]
5085 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
5094 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
5099 Broken link with fragment
5101 [[Zigzagzogzagzig#zug]]
5103 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
5108 Special page link with fragment
5110 [[Special:Version#anchor]]
5112 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
5117 Nonexistent special page link with fragment
5119 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
5121 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
5128 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
5130 <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>
5137 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
5139 <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>!!!
5150 Bug 43661: Piped links with identical prefixes
5152 [[prefixed article|prefixed articles with spaces]]
5154 [[prefixed article|prefixed articlesaoeu]]
5156 [[Main Page|Main Page test]]
5158 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
5159 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
5160 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
5166 Link with HTML entity in suffix / tail
5168 [[Main Page]]", [[Main Page]]a
5170 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
5175 Link with 3 brackets
5184 Piped link with 3 brackets
5186 [[[main page|the main page]]]
5188 <p>[[[main page|the main page]]]
5193 Piped link with extlink-like text
5196 [[Main Page|This is a [bar]]]
5198 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
5199 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
5204 Link with multiple pipes
5206 [[Main Page|The|Main|Page]]
5208 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
5215 [[Talk:Parser testing]], [[Meta:Disclaimers]]
5217 <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>
5222 MemoryAlpha:AlphaTest
5224 This is an article in the MemoryAlpha namespace
5225 (which shadows the memoryalpha interwiki link).
5229 Namespace takes precedence over interwiki link (bug 51680)
5231 [[MemoryAlpha:AlphaTest]]
5233 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5237 # The previous test doesn't work correctly in html2*, due to not recognizing the
5238 # link as an internal one. This one checks for the correct behavior.
5240 Link to namespace preferred over interwiki with correct rel attribute
5242 parsoid=html2wt,html2html
5244 [[MemoryAlpha:AlphaTest]]
5246 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5251 Piped link to namespace
5253 [[Meta:Disclaimers|The disclaimers]]
5255 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
5262 [[Usually caused by a typo (oops}]]
5264 <p>[[Usually caused by a typo (oops}]]
5269 Link containing % (not as a hex sequence)
5273 <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>
5278 Link containing % as a single hex sequence interpreted to char
5282 <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>
5287 Link containing % as a double hex sequence interpreted to hex sequence
5291 <p>[[7%2525 Solution]]
5296 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
5297 Example for such a section: == < ==
5299 [[%23%3c]][[%23%3e]]
5301 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
5306 Link containing "<#" and ">#" as a hex sequences
5308 [[%3c%23]][[%3e%23]]
5310 <p>[[%3c%23]][[%3e%23]]
5315 Link containing an equals sign
5317 [[Special:BookSources/isbn=4-00-026157-6]]
5319 <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>
5326 Just a test of an article title containing a tilde.
5329 # note that links containing signatures, like [[Foo~~~~]], are
5330 # massaged by the pre-save transform (PST) and so the tildes are never
5331 # seen by the parser.
5333 Link containing a tilde
5337 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
5342 Link containing double-single-quotes '' (bug 4598)
5344 [[Lista d''e paise d''o munno]]
5346 <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>
5351 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5353 Some [[Link|pretty ''italics'' and stuff]]!
5355 <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>!
5360 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5362 ''Some [[Link|pretty ''italics'' and stuff]]!
5364 <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>
5369 Link with double quotes in title part (literal) and alternate part (interpreted)
5371 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5375 [[''Pentecoste''|Pentecoste]]
5377 [[''Pentecoste''|''Pentecoste'']]
5379 <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>
5380 </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>
5381 </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>
5382 </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>
5387 Broken image links with HTML captions (bug 39700)
5389 [[File:Nonexistent|<script></script>]]
5390 [[File:Nonexistent|100px|<script></script>]]
5391 [[File:Nonexistent|<]]
5392 [[File:Nonexistent|a<i>b</i>c]]
5394 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5395 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5396 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5397 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5404 [[http://www.example.com]]
5406 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5411 Plain link to URL with link text
5413 [[http://www.example.com Link text]]
5415 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5420 Plain link to protocol-relative URL
5422 [[//www.example.com]]
5424 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5429 Plain link to protocol-relative URL with link text
5431 [[//www.example.com Link text]]
5433 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5438 Plain link to page with question mark in title
5444 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5445 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5450 # I'm fairly sure the expected result here is wrong.
5451 # We want these to be URL links, not pseudo-pages with URLs for titles....
5452 # However the current output is also pretty screwy.
5455 # I'm changing it to match the current output--it arguably makes more
5456 # sense in the light of the test above. Old expected result was:
5457 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5459 # But I think this test is bordering on "garbage in, garbage out" anyway.
5464 Piped link to URL: [[http://www.example.com|an example URL]]
5466 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5471 BUG 2: [[page|http://url/]] should link to page, not http://url/
5473 [[Main Page|http://url/]]
5475 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5480 BUG 337: Escaped self-links should be bold
5484 [[Bug462]] [[Bug462]]
5486 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5491 Self-link to section should not be bold
5495 [[Main Page#section]]
5497 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5508 Self-link to numeric title
5514 <p><strong class="selflink">0</strong>
5519 Link to numeric-equivalent title
5525 <p><a href="/wiki/00" title="00">00</a>
5530 <nowiki> inside a link
5532 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5534 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5539 Non-breaking spaces in title
5541 [[ Main Page ]]
5543 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5548 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5554 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5559 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5565 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5570 Internal link with en linktrail: no apostrophes (bug 27473)
5576 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5581 Internal link with ca linktrail with apostrophes (bug 27473)
5587 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5592 Internal link with kaa linktrail with apostrophes (bug 27473)
5598 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5609 Internal link with is link prefix
5613 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5615 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5626 Internal link with is link trail and link prefix
5630 [[mótmælendatrú|xxx]]ar
5632 mótmælenda[[söfnuður]]
5633 mótmælenda[[söfnuður|söfnuðir]]
5634 mótmælenda[[söfnuður|söfnuðir]]xxx
5636 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
5637 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
5638 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
5639 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
5640 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
5645 Parsoid link trail escaping
5647 parsoid=html2wt,html2html
5651 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
5655 Parsoid link prefix escaping
5658 parsoid=html2wt,html2html
5660 Aðrir mótmælenda<nowiki/>[[söfnuður]]
5662 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5666 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5674 [http://wp.org ''foo'']
5676 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5677 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5678 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5679 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5684 Parsoid: Scoped parsing should handle mixed transclusions and plain text
5688 [[Foo|{{echo|a}} b {{echo|c}}]]
5690 <p data-parsoid='{"dsr":[0,20,0,0]}'><a rel="mw:WikiLink" href="Foo"><span about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a"}},"i":0}}]}'>a</span> b <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"c"}},"i":0}}]}'>c</span></a></p>
5694 ### Interwiki links (see maintenance/interwiki.sql)
5698 Inline interwiki link
5700 [[MeatBall:SoftSecurity]]
5702 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5707 Inline interwiki link with empty title (bug 2372)
5711 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5716 Interwiki link encoding conversion (bug 1636)
5718 *[[Wikipedia:ro:Olteniţa]]
5719 *[[Wikipedia:ro:Olteniţa]]
5722 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5724 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5731 Interwiki link with fragment (bug 2130)
5733 [[MeatBall:SoftSecurity#foo]]
5735 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5739 # Ideally the wikipedia: prefix here should be proto-relative too
5741 Different interwiki prefixes mapping to the same URL
5749 <p data-parsoid='{"dsr":[0,17,0,0]}'><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"simple","a":{"href":"http://en.wikipedia.org/wiki/Foo"},"sa":{"href":"wikipedia:Foo"},"isIW":true,"dsr":[0,17,null,1]}'>wikipedia:Foo</a></p>
5752 <p data-parsoid='{"dsr":[19,30,0,0]}'><a rel="mw:ExtLink" href="//en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"simple","a":{"href":"//en.wikipedia.org/wiki/Foo"},"sa":{"href":":en:Foo"},"isIW":true,"dsr":[19,30,null,1]}'>en:Foo</a></p>
5756 Interwiki links that cannot be represented in wiki syntax
5761 [[meatball:ok#foo|ok with fragment]]
5762 [[meatball:ok_as_well?|ok ending with ? mark]]
5763 [http://de.wikipedia.org/wiki/Foo?action=history has query]
5764 [http://de.wikipedia.org/wiki/#foo is just fragment]
5767 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok">meatball:ok</a>
5768 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo">ok with fragment</a>
5769 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F">ok ending with ? mark</a>
5770 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
5771 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
5776 ### Interlanguage links
5777 ### Language links (so that searching for '### language' matches..)
5791 Double interlanguage link
5802 Interlanguage link, with prefix links
5814 Double interlanguage link, with prefix links (bug 8897)
5827 Parsoid-specific test: Wikilinks with should RT properly
5833 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5838 Parsoid bug 53221: Wikilinks should be properly entity-escaped
5842 He&nbsp;llo [[Foo|He&nbsp;llo]]
5844 He&nbsp;llo [[He&nbsp;llo]]
5846 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5847 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5851 Parsoid: handle constructor well
5859 <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>
5862 <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>
5866 Parsoid: recognize interlanguage links without a target page
5873 <link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
5877 Parsoid: recognize interwiki links without a target page
5883 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
5887 ### Redirects, Parsoid-only
5890 Simple redirect to page
5894 #REDIRECT [[Main Page]]
5896 <link rel="mw:PageProp/redirect" href="./Main_Page">
5900 Optional colon in #REDIRECT
5902 # the colon is archaic syntax. we support it for wt2html, but we
5903 # don't care that it roundtrips back to the modern syntax.
5904 parsoid=wt2html,html2html
5906 #REDIRECT:[[Main Page]]
5908 <link rel="mw:PageProp/redirect" href="./Main_Page">
5912 Whitespace in #REDIRECT with optional colon
5914 # the colon and gratuitous whitespace is archaic syntax. we support
5915 # it for wt2html, but we don't care that it roundtrips back to the
5916 # modern syntax (without extra whitespace)
5917 parsoid=wt2html,html2html
5924 <link rel="mw:PageProp/redirect" href="./Main_Page">
5928 Piped link in #REDIRECT
5930 # content after piped link is ignored. we support this syntax,
5931 # but don't care that the piped link is lost when we roundtrip this.
5934 #REDIRECT [[Main Page|bar]]
5936 <link rel="mw:PageProp/redirect" href="./Main_Page">
5940 Redirect to category
5944 #REDIRECT [[Category:Foo]]
5946 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5950 Redirect to category with URL encoding
5954 #REDIRECT [[Category%3AFoo]]
5956 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
5960 Redirect to category page
5962 parsoid=wt2html,html2html
5964 #REDIRECT [[:Category:Foo]]
5966 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5970 Redirect to image page (1)
5974 #REDIRECT [[File:Wiki.png]]
5976 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5980 Redirect to image page (2)
5984 #REDIRECT [[Image:Wiki.png]]
5986 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5990 Redirect to language
5994 #REDIRECT [[en:File:Wiki.png]]
5996 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
6000 Redirect to interwiki
6004 #REDIRECT [[meatball:File:Wiki.png]]
6006 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
6010 Non-English #REDIRECT
6015 #TILVÍSUN [[Main Page]]
6017 <link rel="mw:PageProp/redirect" href="./Main_Page">
6034 Broken br tag sanitization
6044 # TODO: Fix html2html mode (bug 51055)!
6046 Parsoid: Broken br tag recognition
6056 Incorrecly removing closing slashes from correctly formed XHTML
6058 <br style="clear:both;" />
6060 <p><br style="clear:both;" />
6065 Failing to transform badly formed HTML into correct XHTML
6067 <br style="clear: left;">
6068 <br style="clear: right;">
6069 <br style="clear: both;">
6071 <p><br style="clear: left;" />
6072 <br style="clear: right;" />
6073 <br style="clear: both;" />
6078 Handling html with a div self-closing tag
6087 <p><div title />
6091 <p><div title=bar />
6092 <div title=bar/>
6094 <div title="bar/"></div>
6100 Handling html with a br self-closing tag
6109 <p><br title="title" />
6110 <br title="title" />
6119 Horizontal ruler (should it add that extra space?)
6133 Horizontal ruler -- 4+ dashes render hr
6142 Horizontal ruler -- eats additional dashes on the same line
6151 Horizontal ruler -- does not collapse dashes on consecutive lines
6162 Horizontal ruler -- <4 dashes render as plain text
6171 Horizontal ruler -- Supports content following dashes on same line
6180 ### Block-level elements
6228 ***#Number on level 4
6230 **#Number on level 3
6231 **#Number on level 3
6235 #** Level 3, but ordered
6258 <li>Number on level 4
6266 <li>Number on level 3
6268 <li>Number on level 3
6291 <li> Level 3, but ordered
6337 Nested lists 3 (first element empty)
6354 Nested lists 4 (first element empty)
6372 Nested lists 5 (both elements empty)
6390 Nested lists 6 (both elements empty)
6407 Nested lists 7 (skip initial nesting levels)
6425 Nested lists 8 (multiple nesting transitions)
6451 1. Lists with start-of-line-transparent tokens before bullets: Comments
6469 2. Lists with start-of-line-transparent tokens before bullets: Template close
6484 List items are not parsed correctly following a <pre> block (bug 785)
6502 List items from template
6513 * notSOL{{inner list}}
6544 List interrupted by empty line or heading
6563 <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>
6565 <li> Another list item
6572 Multiple list tags generated by templates
6587 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6590 <!--This line will NOT split the list-->
6592 <!--This line will NOT split the list either-->
6594 <!--foo--> <!----> <!--This line NOT split the list either-->
6611 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6614 <!--This line will NOT split the list-->
6616 <!--This line will NOT split the list either-->
6618 <!--foo--> <!----> <!--This line NOT split the list
6637 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6639 parsoid=wt2html,wt2wt
6643 * {{echo|<li>templated li-hack}}
6644 * <!--foo--> <li> unsupported li-hack with preceding comments
6647 <li><li>not a li-hack
6654 <li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<li>templated li-hack"}}}}]}'>templated li-hack</li>
6655 <li> <!--foo--> </li>
6656 <li> li-hack with preceding comments</li>
6667 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6694 Parsoid: Test of whitespace serialization with Templated bullets
6701 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6705 # ------------------------------------------------------------------------
6706 # The next set of tests are about Parsoid's ability to handle badly nested
6707 # tags (parse, minimize scope of fixup, and roundtrip back)
6708 # ------------------------------------------------------------------------
6711 Unbalanced closing block tags break a list
6712 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6732 Unbalanced closing non-block tags don't break a list
6733 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6752 Unclosed formatting tags that straddle lists are closed and reopened
6753 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6769 List embedded in a non-block tag
6770 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
6778 <p><small></small></p>
6784 <p><small></small></p>
6788 Table with missing opening <tr> tag
6790 parsoid=wt2html,wt2wt
6808 # Note that the current date is hard-coded as
6809 # 1970-01-01T00:02:03Z (a Thursday)
6810 # when running parser tests. The timezone is also fixed to GMT, so
6811 # local date will be identical to current date.
6814 Magic Word: {{CURRENTDAY}}
6823 Magic Word: {{CURRENTDAY2}}
6832 Magic Word: {{CURRENTDAYNAME}}
6841 Magic Word: {{CURRENTDOW}}
6850 Magic Word: {{CURRENTMONTH}}
6859 Magic Word: {{CURRENTMONTH1}}
6868 Magic Word: {{CURRENTMONTHABBREV}}
6870 {{CURRENTMONTHABBREV}}
6877 Magic Word: {{CURRENTMONTHNAME}}
6879 {{CURRENTMONTHNAME}}
6886 Magic Word: {{CURRENTMONTHNAMEGEN}}
6888 {{CURRENTMONTHNAMEGEN}}
6895 Magic Word: {{CURRENTTIME}}
6904 Magic Word: {{CURRENTHOUR}}
6913 Magic Word: {{CURRENTWEEK}} (@bug 4594)
6922 Magic Word: {{CURRENTYEAR}}
6931 Magic Word: {{CURRENTTIMESTAMP}}
6933 {{CURRENTTIMESTAMP}}
6940 Magic Words LOCAL (UTC)
6944 * {{LOCALMONTHNAME}}
6945 * {{LOCALMONTHNAMEGEN}}
6946 * {{LOCALMONTHABBREV}}
6955 * {{LOCALTIMESTAMP}}
6991 Magic Word: {{FULLPAGENAME}}
6993 title=[[User:Ævar Arnfjörð Bjarmason]]
6997 <p>User:Ævar Arnfjörð Bjarmason
7002 Magic Word: {{FULLPAGENAMEE}}
7004 title=[[User:Ævar Arnfjörð Bjarmason]]
7008 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7013 Magic Word: {{TALKSPACE}}
7015 title=[[User:Ævar Arnfjörð Bjarmason]]
7024 Magic Word: {{TALKSPACE}}, same namespace
7026 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7035 Magic Word: {{TALKSPACE}}, main namespace
7037 title=[[Parser Test]]
7046 Magic Word: {{TALKSPACEE}}
7048 title=[[User:Ævar Arnfjörð Bjarmason]]
7057 Magic Word: {{SUBJECTSPACE}}
7059 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7068 Magic Word: {{SUBJECTSPACE}}, same namespace
7070 title=[[User:Ævar Arnfjörð Bjarmason]]
7079 Magic Word: {{SUBJECTSPACE}}, main namespace
7081 title=[[Parser Test]]
7089 Magic Word: {{SUBJECTSPACEE}}
7091 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7100 Magic Word: {{NAMESPACE}}
7102 title=[[User:Ævar Arnfjörð Bjarmason]]
7111 Magic Word: {{NAMESPACEE}}
7113 title=[[User:Ævar Arnfjörð Bjarmason]]
7122 Magic Word: {{NAMESPACENUMBER}}
7124 title=[[User:Ævar Arnfjörð Bjarmason]]
7133 Magic Word: {{SUBPAGENAME}}
7135 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7144 Magic Word: {{SUBPAGENAMEE}}
7146 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7155 Magic Word: {{ROOTPAGENAME}}
7157 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7161 <p>Ævar Arnfjörð Bjarmason
7166 Magic Word: {{ROOTPAGENAMEE}}
7168 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7172 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7177 Magic Word: {{BASEPAGENAME}}
7179 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7183 <p>Ævar Arnfjörð Bjarmason
7188 Magic Word: {{BASEPAGENAMEE}}
7190 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7194 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7199 Magic Word: {{TALKPAGENAME}}
7201 title=[[User:Ævar Arnfjörð Bjarmason]]
7205 <p>User talk:Ævar Arnfjörð Bjarmason
7210 Magic Word: {{TALKPAGENAMEE}}
7212 title=[[User:Ævar Arnfjörð Bjarmason]]
7216 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7221 Magic Word: {{SUBJECTPAGENAME}}
7223 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7227 <p>User:Ævar Arnfjörð Bjarmason
7232 Magic Word: {{SUBJECTPAGENAMEE}}
7234 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7236 {{SUBJECTPAGENAMEE}}
7238 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7243 Magic Word: {{NUMBEROFFILES}}
7252 Magic Word: {{PAGENAME}}
7254 title=[[User:Ævar Arnfjörð Bjarmason]]
7258 <p>Ævar Arnfjörð Bjarmason
7263 Magic Word: {{PAGENAME}} with metacharacters
7265 title=[['foo & bar = baz']]
7269 <p><i>'foo & bar = baz'</i>
7274 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
7276 title=[[*RFC 1234 http://example.com/]]
7280 <p>*RFC 1234 http://example.com/
7285 Magic Word: {{PAGENAMEE}}
7287 title=[[User:Ævar Arnfjörð Bjarmason]]
7291 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7296 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
7298 title=[[*RFC 1234 http://example.com/]]
7302 <p>*RFC_1234_http://example.com/
7307 Magic Word: {{REVISIONID}}
7316 Magic Word: {{SCRIPTPATH}}
7325 Magic Word: {{STYLEPATH}}
7334 Magic Word: {{SERVER}}
7338 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7343 Magic Word: {{SERVERNAME}}
7352 Magic Word: {{SITENAME}}
7361 Case-sensitive magic words, when cased differently, should just be template transclusions
7368 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
7369 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
7370 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
7371 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
7376 Case-insensitive magic words should still work with weird casing.
7386 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7391 Namespace 1 {{ns:1}}
7400 Namespace 1 {{ns:01}}
7409 Namespace 0 {{ns:0}} (bug 4783)
7417 Namespace 0 {{ns:00}} (bug 4783)
7425 Namespace -1 {{ns:-1}}
7434 Namespace User {{ns:User}}
7443 Namespace User talk {{ns:User_talk}}
7452 Namespace User talk {{ns:uSeR tAlK}}
7461 Namespace File {{ns:File}}
7470 Namespace File {{ns:Image}}
7479 Namespace (lang=de) Benutzer {{ns:User}}
7490 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7496 <p>Benutzer Diskussion
7504 {{urlencode:hi world?!}}
7505 {{urlencode:hi world?!|WIKI}}
7506 {{urlencode:hi world?!|PATH}}
7507 {{urlencode:hi world?!|QUERY}}
7520 Magic links: internal link to RFC (bug 479)
7524 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7529 Magic links: RFC (bug 479)
7533 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7538 Magic links: ISBN (bug 1937)
7542 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7547 Magic links: PMID incorrectly converts space to underscore
7551 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7560 Nonexistent template
7562 {{thistemplatedoesnotexist}}
7564 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7569 Template with invalid target containing tags
7571 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7573 <p>{{a<b>b</b>|foo|a=b|a = b}}
7578 Template with invalid target containing unclosed tag
7580 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7582 <p>{{a<b>|foo|a=b|a = b}}</b>
7589 This is a test template
7597 <p>This is a test template
7602 Template with explicit namespace
7606 <p>This is a test template
7614 This is a test template with parameter {{{param}}}
7620 {{paramtest|param=foo}}
7622 <p>This is a test template with parameter foo
7627 Template:paramtestnum
7633 Template unnamed parameter
7635 {{paramtestnum|Main Page|the main page}}
7637 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7642 Template:templatesimple
7648 Template:templateredirect
7650 #redirect [[Template:templatesimple]]
7654 Template:templateasargtestnum
7660 Template:templateasargtest
7662 {{template{{{templ}}}}}
7666 Template:templateasargtest2
7672 Template with template name as unnamed argument
7674 {{templateasargtestnum|templatesimple}}
7681 Template with template name as argument
7683 {{templateasargtest|templ=simple}}
7690 Template with template name as argument (2)
7692 {{templateasargtest2|templ=templatesimple}}
7699 Template:templateasargtestdefault
7701 {{{{{templ|templatesimple}}}}}
7711 Template with default value
7713 {{templateasargtestdefault}}
7720 Template with default value (value set)
7722 {{templateasargtestdefault|templ=templa}}
7731 {{templateredirect}}
7738 Template with argument in separate line
7740 {{ templateasargtest |
7748 Template with complex template as argument
7751 param ={{ templateasargtest |
7754 <p>This is a test template with parameter (test)
7759 Template with thumb image (with link in description)
7762 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
7764 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>
7769 Template:complextemplate
7771 {{{1}}} {{paramtest|
7772 param ={{{param}}}}}
7776 Template with complex arguments
7779 param ={{ templateasargtest |
7780 templ = simple }}|[[Template:complextemplate|link]]}}
7782 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
7787 BUG 553: link with two variables in a piped link
7790 |[[{{{1}}}|{{{2}}}]]
7795 <td>[[{{{1}}}|{{{2}}}]]
7801 Magic variable as template parameter
7803 {{paramtest|param={{SITENAME}}}}
7805 <p>This is a test template with parameter MediaWiki
7812 [[{{{param}}}|link]]
7816 Template parameter as link source
7818 {{linktest|param=Main Page}}
7820 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
7825 Template-generated attribute string (k='v')
7827 <span {{attr_str|id|v1}}>bar</span>
7829 <p><span id="v1">bar</span>
7836 including another template, {{paramtest|param={{{arg}}}}}
7840 Template passing argument to another template
7842 {{paramtest2|arg='hmm'}}
7844 <p>including another template, This is a test template with parameter 'hmm'
7855 Template as link source
7859 [[{{linktest2}}|Main Page]]
7861 [[{{linktest2}}]]Page
7863 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7864 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7865 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
7883 Template infinite loop
7887 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
7892 Template from main namespace
7911 BUG 529: Template with table, not included at beginning of line
7930 BUG 523: Template shouldn't eat newline (or add an extra one before table)
7950 BUG 41: Template parameters shown as broken links
7959 Template with targets containing wikilinks
7963 {{[[{{echo|foo}}]]}}
7965 {{{{echo|[[foo}}]]}}
7967 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7968 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
7976 ''None'' of '''this''' should be
7978 but rather passed unmodified
7982 # hmm, fix this or just deprecate msgnw and document its behavior?
7988 {{msgnw:MSGNW test}}
7990 <p>''None'' of '''this''' should be
7992 but rather passed unmodified
8000 {{int:youhavenewmessages|lots of money|not!}}
8002 <p>You have lots of money (not!).
8009 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8013 <includeonly> and <noinclude> being included
8024 <onlyinclude>Foo</onlyinclude>bar
8028 <onlyinclude> being included
8040 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
8044 <onlyinclude> and <includeonly> being included
8053 <includeonly> and <noinclude> on a page
8055 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8062 Un-closed <noinclude>
8069 <onlyinclude> on a page
8071 <onlyinclude>Foo</onlyinclude>bar
8078 Un-closed <onlyinclude>
8085 Self-closed noinclude, includeonly, onlyinclude tags
8096 Unbalanced includeonly and noinclude tags
8100 |b</noinclude></noinclude>
8101 |c</noinclude></includeonly>
8102 |d</includeonly></includeonly>
8111 <td>c</includeonly>
8113 <td>d</includeonly></includeonly>
8119 Template:Includeonly section
8122 ==Includeonly section==
8128 Bug 6563: Edit link generation for section shown by <includeonly>
8130 {{includeonly section}}
8132 <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>
8133 <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>
8137 # Uses same input as the contents of [[Template:Includeonly section]]
8139 Bug 6563: Section extraction for section shown by <includeonly>
8144 ==Includeonly section==
8152 Bug 6563: Edit link generation for section suppressed by <includeonly>
8155 ==Includeonly section==
8159 <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>
8164 Bug 6563: Section extraction for section suppressed by <includeonly>
8169 ==Includeonly section==
8177 Un-closed <includeonly>
8183 # TODO: test with DOM fragment reuse!
8185 Parsoid: DOM fragment reuse
8187 parsoid=wt2wt,wt2html
8189 a{{echo|b<table></table>c}}d
8201 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
8202 <table></table>c"}},"i":0}}]}'>b</span>
8203 <table about="#mwt1"></table><span about="#mwt1">c</span>d
8206 <p about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":["a",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b\n<table></table>\nc"}},"i":0}},"d"]}'>ab</p><span about="#mwt2">
8208 <table about="#mwt2"></table><span about="#mwt2">
8210 <p about="#mwt2">cd</p>
8213 <p about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\n\n<table></table>\n\nb"}},"i":0}}]}'>a</p><span about="#mwt3">
8216 <table about="#mwt3"></table><span about="#mwt3">
8219 <p about="#mwt3">b</p>
8223 Parsoid: Merge double tds (bug 50603)
8232 <tr><td about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{!}} foo"}},"i":0}}]}'> foo</td></tr>
8237 Parsoid: Merge double tds in nested transclusion content (bug 50603)
8247 <div about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<div>"}},"i":0}},"\n{|\n|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{!}} foo"}},"i":1}},"\n|}\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"</div>"}},"i":2}}]}'>
8249 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
8255 ### <includeonly> and <noinclude> in attributes
8258 0. includeonly around the entire attribute
8260 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
8262 <p><span id="v2">bar</span>
8267 1. includeonly in html attr key
8269 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
8271 <p><span id="foo">bar</span>
8276 2. includeonly in html attr value
8278 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
8279 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
8281 <p><span id="v1">bar</span>
8282 <span id="v1">bar</span>
8287 3. includeonly in part of an attr value
8289 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
8291 <p><span style="color:red;">bar</span>
8296 4. includeonly in table attributes
8320 ### Testing parsing of templates where a template arg
8321 ### has the same name as the template itself.
8331 Templates: Template Name/Arg clash: 1. Use of positional param
8340 Templates: Template Name/Arg clash: 2. Use of named param
8349 Templates: Template Name/Arg clash: 3. Use of named param with empty input
8358 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
8362 Templates: 1. Simple use
8371 Templates: 2. Inside a block tag
8373 <div>{{echo|Foo}}</div>
8374 <blockquote>{{echo|Foo}}</blockquote>
8377 <blockquote>Foo</blockquote>
8382 Templates: P-wrapping: 1a. Templates on consecutive lines
8393 Templates: P-wrapping: 1b. Templates on consecutive lines
8407 Templates: P-wrapping: 1c. Templates on consecutive lines
8410 {{echo|bar}} <div>baz</div>
8419 Templates: P-wrapping: 1d. Template preceded by comment-only line
8428 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8432 Templates: Inline Text: 1. Multiple tmeplate uses
8434 {{echo|Foo}}bar{{echo|baz}}
8441 Templates: Inline Text: 2. Back-to-back template uses
8443 {{echo|Foo}}{{echo|bar}}
8450 Templates: Block Tags: 1. Multiple template uses
8452 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8454 <div>Foo</div><div>bar</div><div>baz</div>
8459 Templates: Block Tags: 2. Back-to-back template uses
8461 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8463 <div>Foo</div><div>bar</div>
8468 Templates: Links: 1. Simple example
8470 {{echo|[[Foo|bar]]}}
8472 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8477 Templates: Links: 2. Generation of link href
8479 [[{{echo|Foo}}|bar]]
8481 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8486 Templates: Links: 3. Generation of part of a link href
8488 [[Fo{{echo|o}}|bar]]
8492 [[Foo{{echo|bar}}baz]]
8494 [[Foo{{echo|bar}}|bar]]
8496 [[:Foo{{echo|bar}}]]
8498 [[:Foo{{echo|bar}}|bar]]
8500 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8501 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8502 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8503 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8504 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8505 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8510 Templates: Links: 4. Multiple templates generating link href
8512 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8514 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8519 Templates: Links: 5. Generation of link text
8521 [[Foo|{{echo|bar}}]]
8523 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8528 Templates: Links: 5. Nested templates (only outermost template should be marked)
8530 {{echo|[[{{echo|Foo}}|bar]]}}
8532 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8537 Templates: HTML Tag: 1. Generation of HTML attr. key
8539 <div {{echo|style}}="color:red;">foo</div>
8541 <div style="color:red;">foo</div>
8546 Templates: HTML Tag: 2. Generation of HTML attr. value
8548 <div style={{echo|'color:red;'}}>foo</div>
8550 <div style="color:red;">foo</div>
8555 Templates: HTML Tag: 3. Generation of HTML attr key and value
8557 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8559 <div style="color:red;">foo</div>
8564 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8566 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8568 <div title="This is a long title with just one piece templated">foo</div>
8573 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8575 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8577 <div title="This is a long title with just one piece templated">foo</div>
8582 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8584 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8586 <div title="This is a long title with just one piece templated">foo</div>
8591 Templates: HTML Tag: 7. Generation of partial attribute key string
8593 <div st{{echo|yle}}="color:red;">foo</div>
8595 <div style="color:red;">foo</div>
8600 Templates: HTML Tables: 1. Generating start of a HTML table
8602 {{echo|<table><tr><td>foo</td>}}</tr></table>
8604 <table><tr><td>foo</td></tr></table>
8609 Templates: HTML Tables: 2a. Generating middle of a HTML table
8611 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8613 <table><tr><td>foo</td></tr></table>
8618 Templates: HTML Tables: 2b. Generating middle of a HTML table
8620 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8622 <table><tr><td>foo</td></tr></table>
8627 Templates: HTML Tables: 3. Generating end of a HTML table
8629 <table><tr>{{echo|<td>foo</td></tr></table>}}
8631 <table><tr><td>foo</td></tr></table>
8636 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8638 {{echo|<table>}}<tr><td>foo</td></tr></table>
8640 <table><tr><td>foo</td></tr></table>
8645 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8647 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8649 <table><tr><td>foo</td></tr></table>
8654 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8656 <table><tr>{{echo|<td>}}foo</td></tr></table>
8658 <table><tr><td>foo</td></tr></table>
8663 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8665 <table><tr><td>foo{{echo|</td>}}</tr></table>
8667 <table><tr><td>foo</td></tr></table>
8672 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8674 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8676 <table><tr><td>foo</td></tr></table>
8681 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
8683 <table><tr><td>foo</td></tr>{{echo|</table>}}
8685 <table><tr><td>foo</td></tr></table>
8690 Templates: HTML Tables: 5. Proper fostering of categories from inside
8692 parsoid=wt2html,wt2wt
8694 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
8695 <!--Two categories (Bug 50330)-->
8696 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
8698 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
8699 <!--Two categories (Bug 50330)-->
8700 <link rel="mw:PageProp/Category" href="./Category:Bar1"><link rel="mw:PageProp/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
8704 Templates: Wiki Tables: 1a. Fostering of entire template content
8712 <tr><td></td></tr></table>
8717 Templates: Wiki Tables: 1b. Fostering of entire template content
8730 <tr><td></td></tr></table>
8735 Templates: Wiki Tables: 2. Fostering of partial template content
8745 <tr><td></td></tr></table>
8750 Templates: Wiki Tables: 3. td-content via multiple templates
8753 {{echo|{{pipe}}a}}{{echo|b}}
8764 Templates: Wiki Tables: 4. Templated tags, no content
8770 <tr><td></td></tr></table>
8775 Templates: Wiki Tables: 5. Templated tags, regular td-tags
8789 Templates: Wiki Tables: 6. Templated tags, templated td-tags
8803 Templates: Lists: Multi-line list-items via templates
8805 *{{echo|a {{nonexistent|
8807 *{{echo|b {{nonexistent|
8811 <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>
8813 <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>
8820 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
8822 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
8824 <p><i>ab</i>c<i>d</i>e
8829 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
8830 (PHP parser generates misnested html)
8834 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
8836 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"''a"}},"i":0}}]}"><i>a</i></span><i about="#mwt2" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"b''c''d"}},"i":0}},{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"''e"}},"i":1}}]}"><span>b</span></i><span about="#mwt2">c</span><i about="#mwt2">d<span></span></i><span about="#mwt2">e</span></p>
8840 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
8841 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
8843 parsoid=wt2html,wt2wt
8845 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
8847 <div about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"''a"}},"i":0}}]}"><i>a</i></div>
8848 <div about="#mwt2" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"b''c''d"}},"i":0}}]}"><i>b</i>c<i>d</i></div>
8849 <div about="#mwt3" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"''e"}},"i":0}}]}">e</div>
8853 Templates: Ugly nesting: 4. Divs opened/closed across templates
8855 a<div>b{{echo|c</div>d}}e
8862 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
8868 |{{echo|foo</table>}}
8872 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["{|\n|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</table>"}},"i":0}},"\n|bar\n|}"]}'>
8876 <td>foo</td></tr></tbody></table><span about="#mwt1">
8877 </span><span about="#mwt1">bar</span><span about="#mwt1">
8882 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
8892 <td>1. {{echo|foo </table>}}</td>
8894 <td>2. {{echo|baz </table>}}</td>
8907 <table about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":["<table>\n <tr>\n <td>\n <table>\n <tr>\n <td>1. ",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo </table>"}},"i":0}},"</td>\n <td> bar </td>\n <td>2. ",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"baz </table>"}},"i":1}},"</td>\n </tr>\n <tr>\n <td>abc</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>xyz</td>\n </tr>\n</table>"]}'>
8912 <td>1. foo </td></tr></tbody></table></td>
8914 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
8915 </span><span about="#mwt2">
8916 </span><span about="#mwt2">
8917 </span><span about="#mwt2">abc</span><span about="#mwt2">
8918 </span><span about="#mwt2">
8919 </span><span about="#mwt2">
8920 </span><span about="#mwt2">
8921 </span><span about="#mwt2">
8922 </span><span about="#mwt2">
8923 </span><span about="#mwt2">xyz</span><span about="#mwt2">
8924 </span><span about="#mwt2">
8929 Templates: Ugly templates: 3. newline-only template parameter
8938 # This looks like a bug: a single newline triggers p/br for some reason.
8940 Templates: Ugly templates: 4. newline-only template parameter inconsistency
8951 Parser Functions: 1. Simple example
8960 Parser Functions: 2. Nested use (only outermost should be marked up)
8969 ### Pre-save transform tests
8972 pre-save transform: subst:
8978 This is a test template
8982 pre-save transform: normal template
8992 pre-save transform: nonexistent template
8996 {{thistemplatedoesnotexist}}
8998 {{thistemplatedoesnotexist}}
9003 pre-save transform: subst magic variables
9012 # This is bug 89, which I fixed. -- wtm
9014 pre-save transform: subst: templates with parameters
9018 {{subst:paramtest|param="something else"}}
9020 This is a test template with parameter "something else"
9026 <nowiki>'''not wiki'''</nowiki>
9030 pre-save transform: nowiki in subst (bug 1188)
9034 {{subst:nowikitest}}
9036 <nowiki>'''not wiki'''</nowiki>
9041 Template:commenttest
9043 This template has <!-- a comment --> in it.
9047 pre-save transform: comment in subst (bug 1936)
9051 {{subst:commenttest}}
9053 This template has <!-- a comment --> in it.
9057 pre-save transform: unclosed tag
9061 <nowiki>'''not wiki'''
9063 <nowiki>'''not wiki'''
9067 pre-save transform: mixed tag case
9071 <NOwiki>'''not wiki'''</noWIKI>
9073 <NOwiki>'''not wiki'''</noWIKI>
9077 pre-save transform: unclosed comment in <nowiki>
9081 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9083 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9086 # Leading @ in this template definition works around a limitation
9087 # in parsoid's parserTests which otherwise strips the <span> from the
9088 # result (confusing it for a template wrapper)
9092 @<span onmouseover="alert('crap')">Oh no</span>
9096 (confirming safety of fix for subst bug 1936)
9098 {{Template:dangerous}}
9100 <p>@<span>Oh no</span>
9105 pre-save transform: comment containing gallery (bug 5024)
9109 <!-- <gallery>data</gallery> -->
9111 <!-- <gallery>data</gallery> -->
9115 pre-save transform: comment containing extension
9119 <!-- <tag>data</tag> -->
9121 <!-- <tag>data</tag> -->
9125 pre-save transform: comment containing nowiki
9129 <!-- <nowiki>data</nowiki> -->
9131 <!-- <nowiki>data</nowiki> -->
9135 pre-save transform: <noinclude> in subst (bug 3298)
9145 pre-save transform: <onlyinclude> in subst (bug 3298)
9157 {{<includeonly>subst:</includeonly>Includes}}
9161 Template:SafeSubstTest
9163 {{<includeonly>safesubst:</includeonly>Includes}}
9167 bug 22297: safesubst: works during PST
9171 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
9177 bug 22297: safesubst: works during normal parse
9186 subst: does not work during normal parse
9190 <p>{{subst:Includes}}
9195 pre-save transform: context links ("pipe trick")
9199 [[Article (context)|]]
9202 [[Bar:Article (context)|]]
9203 [[:Bar:Article (context)|]]
9205 [[|Article (context)]]
9209 [[Article (context)|Article]]
9210 [[Bar:Article|Article]]
9211 [[:Bar:Article|Article]]
9212 [[Bar:Article (context)|Article]]
9213 [[:Bar:Article (context)|Article]]
9215 [[Article (context)]]
9216 [[Bar:X (Y) Z|X (Y) Z]]
9217 [[:Bar:X (Y) Z|X (Y) Z]]
9221 pre-save transform: context links ("pipe trick") with interwiki prefix
9225 [[interwiki:Article|]]
9226 [[:interwiki:Article|]]
9227 [[interwiki:Bar:Article|]]
9228 [[:interwiki:Bar:Article|]]
9230 [[interwiki:Article|Article]]
9231 [[:interwiki:Article|Article]]
9232 [[interwiki:Bar:Article|Bar:Article]]
9233 [[:interwiki:Bar:Article|Bar:Article]]
9237 pre-save transform: context links ("pipe trick") with parens in title
9239 pst title=[[Somearticle (context)]]
9243 [[Article (context)|Article]]
9247 pre-save transform: context links ("pipe trick") with comma in title
9249 pst title=[[Someplace, Somewhere]]
9252 [[Otherplace, Elsewhere|]]
9253 [[Otherplace, Elsewhere, Anywhere|]]
9255 [[Otherplace, Somewhere|Otherplace]]
9256 [[Otherplace, Elsewhere|Otherplace]]
9257 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
9261 pre-save transform: context links ("pipe trick") with parens and comma
9263 pst title=[[Someplace (IGNORED), Somewhere]]
9266 [[Otherplace (place), Elsewhere|]]
9268 [[Otherplace, Somewhere|Otherplace]]
9269 [[Otherplace (place), Elsewhere|Otherplace]]
9273 pre-save transform: context links ("pipe trick") with comma and parens
9275 pst title=[[Who, me? (context)]]
9278 [[Me, Myself, and I (1937 song)|]]
9280 [[Yes, you. (context)|Yes, you.]]
9281 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
9285 pre-save transform: context links ("pipe trick") with namespace
9287 pst title=[[Ns:Somearticle]]
9291 [[Ns:Article|Article]]
9295 pre-save transform: context links ("pipe trick") with namespace and parens
9297 pst title=[[Ns:Somearticle (context)]]
9301 [[Ns:Article (context)|Article]]
9305 pre-save transform: context links ("pipe trick") with namespace and comma
9307 pst title=[[Ns:Somearticle, Context, Whatever]]
9311 [[Ns:Article, Context, Whatever|Article]]
9315 pre-save transform: context links ("pipe trick") with namespace, comma and parens
9317 pst title=[[Ns:Somearticle, Context (context)]]
9321 [[Ns:Article (context)|Article]]
9325 pre-save transform: context links ("pipe trick") with namespace, parens and comma
9327 pst title=[[Ns:Somearticle (IGNORED), Context]]
9331 [[Ns:Article, Context|Article]]
9335 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
9339 [[Article(context)|]]
9340 [[Bar:Article(context)|]]
9341 [[:Bar:Article(context)|]]
9342 [[|Article(context)]]
9346 [[Article(context)|Article]]
9347 [[Bar:Article(context)|Article]]
9348 [[:Bar:Article(context)|Article]]
9349 [[Article(context)]]
9351 [[:Bar:X(Y)Z|X(Y)Z]]
9355 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
9359 [[Article (context)|]]
9360 [[Bar:Article (context)|]]
9361 [[:Bar:Article (context)|]]
9362 [[|Article (context)]]
9366 [[Article (context)|Article]]
9367 [[Bar:Article (context)|Article]]
9368 [[:Bar:Article (context)|Article]]
9369 [[Article (context)]]
9370 [[Bar:X (Y) Z|X (Y) Z]]
9371 [[:Bar:X (Y) Z|X (Y) Z]]
9375 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
9379 [[Article(context)|]]
9380 [[Bar:Article(context)|]]
9381 [[:Bar:Article(context)|]]
9382 [[|Article(context)]]
9386 [[Article(context)|Article]]
9387 [[Bar:Article(context)|Article]]
9388 [[:Bar:Article(context)|Article]]
9389 [[Article(context)]]
9391 [[:Bar:X(Y)Z|X(Y)Z]]
9395 pre-save transform: context links ("pipe trick") with commas (bug 21660)
9399 [[Article (context), context|]]
9400 [[Article (context),context|]]
9401 [[Bar:Article (context), context|]]
9402 [[Bar:Article (context),context|]]
9403 [[:Bar:Article (context), context|]]
9404 [[:Bar:Article (context),context|]]
9406 [[Article (context), context|Article]]
9407 [[Article (context),context|Article]]
9408 [[Bar:Article (context), context|Article]]
9409 [[Bar:Article (context),context|Article]]
9410 [[:Bar:Article (context), context|Article]]
9411 [[:Bar:Article (context),context|Article]]
9415 pre-save transform: trim trailing empty lines
9419 Empty lines are trimmed
9425 Empty lines are trimmed
9429 pre-save transform: Signature expansion
9434 * <noinclude>~~~</noinclude>
9435 * <includeonly>~~~</includeonly>
9436 * <onlyinclude>~~~</onlyinclude>
9438 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9439 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9440 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9441 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9446 pre-save transform: Signature expansion in nowiki tags (bug 93)
9452 <nowiki>~~~~</nowiki>
9454 <includeonly><nowiki>~~~~</nowiki></includeonly>
9456 <noinclude><nowiki>~~~~</nowiki></noinclude>
9458 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9460 {{subst:Foo}} shall be converted to FOO
9462 As well as inside noinclude/onlyinclude
9463 <noinclude>{{subst:Foo}}</noinclude>
9464 <onlyinclude>{{subst:Foo}}</onlyinclude>
9466 But not inside includeonly
9467 <includeonly>{{subst:Foo}}</includeonly>
9471 <nowiki>~~~~</nowiki>
9473 <includeonly><nowiki>~~~~</nowiki></includeonly>
9475 <noinclude><nowiki>~~~~</nowiki></noinclude>
9477 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9479 FOO shall be converted to FOO
9481 As well as inside noinclude/onlyinclude
9482 <noinclude>FOO</noinclude>
9483 <onlyinclude>FOO</onlyinclude>
9485 But not inside includeonly
9486 <includeonly>{{subst:Foo}}</includeonly>
9490 Parsoid: Recognize nowiki with trailing space in tags
9494 <nowiki ><div>[[foo]]</nowiki >
9502 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9509 Parsoid: Recognize nowiki with odd capitalization
9513 <noWikI ><div>[[foo]]</Nowiki >
9515 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9520 Parsoid: Escape nowiki with trailing space in tags
9524 <nowiki > foo </nowiki >
9530 <p><nowiki > foo </nowiki ></p>
9531 <p>a<nowiki />b</p>
9532 <p>c<nowiki/ >d</p>
9536 Parsoid: Escape weird noWikI capitalizations
9540 <noWikI > foo </NoWikI >
9542 <p><noWikI > foo </NoWikI ></p>
9546 ### Message transform tests
9549 message transform: magic variables
9559 message transform: should not transform wiki markup
9569 message transform: <noinclude> in transcluded template (bug 4926)
9579 message transform: <onlyinclude> in transcluded template (bug 4926)
9589 {{#special:}} page name, known
9593 {{#special:Recentchanges}}
9595 Special:RecentChanges
9599 {{#special:}} page name with subpage, known
9603 {{#special:Recentchanges/param}}
9605 Special:RecentChanges/param
9609 {{#special:}} page name, unknown
9613 {{#special:foobar nonexistent}}
9615 Special:Foobar nonexistent
9619 {{#speciale:}} page name, known
9623 {{#speciale:Recentchanges}}
9625 Special:RecentChanges
9629 {{#speciale:}} page name with subpage, known
9633 {{#speciale:Recentchanges/param}}
9635 Special:RecentChanges/param
9639 {{#speciale:}} page name, unknown
9643 {{#speciale:foobar nonexistent}}
9645 Special:Foobar_nonexistent
9651 ### For Parsoid-specific tests, see
9652 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9659 [[Image:foobar.jpg]]
9661 <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>
9666 Simple image (parsoid)
9670 [[Image:foobar.jpg]]
9672 <p><span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>
9677 Simple image (using File: namespace, now canonical) (php)
9683 <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>
9688 Simple image (using File: namespace, now canonical) (parsoid)
9694 <p><span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>
9699 Right-aligned image (php)
9703 [[Image:foobar.jpg|right]]
9705 <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>
9710 Right-aligned image (parsoid)
9714 [[File:Foobar.jpg|right]]
9716 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></figure>
9720 Image with caption (php)
9724 [[File:Foobar.jpg|right|Caption text]]
9726 <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>
9731 Image with caption (parsoid)
9735 [[File:Foobar.jpg|right|Caption text]]
9737 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
9741 Image with caption, bug 53312 #1 (parsoid)
9745 [[File:Foobar.jpg|right|Caption page stuff]]
9747 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption page stuff</figcaption></figure>
9751 Image with caption, bug 53312 #2 (parsoid)
9755 [[File:Foobar.jpg|right|Caption page=]]
9757 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption page=</figcaption></figure>
9761 Image with caption, bug 53312 #3 (parsoid)
9765 [[File:Foobar.jpg|right|Caption page=stuff]]
9767 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption page=stuff</figcaption></figure>
9771 Image with empty attribute (php)
9775 [[File:Foobar.jpg|right||Caption text]]
9777 <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>
9782 Image with empty attribute (parsoid)
9786 [[File:Foobar.jpg|right||Caption text]]
9788 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
9792 Image with attributes from template (php)
9796 [[File:Foobar.jpg|{{image_attribs}}]]
9798 <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>
9803 Image with attributes from template (parsoid)
9807 [[File:Foobar.jpg|{{image_attribs}}]]
9809 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
9813 Image with link tails (php)
9817 123[[File:Foobar.jpg]]456
9818 123[[File:Foobar.jpg|right]]456
9819 123[[File:Foobar.jpg|thumb]]456
9821 <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
9823 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
9824 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
9829 Image with link tails (parsoid)
9833 123[[File:Foobar.jpg]]456
9834 123[[File:Foobar.jpg|right]]456
9835 123[[File:Foobar.jpg|thumb]]456
9837 <p>123<span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>456</p>
9838 123<figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></figure>456
9839 123<figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180"></a></figure>456
9843 Image with multiple captions -- only last one is accepted (php)
9847 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9849 <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>
9854 Image with multiple captions -- only last one is accepted (parsoid)
9858 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
9860 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption3 - accepted</figcaption></figure>
9864 Image with width attribute at different positions (php)
9868 [[File:Foobar.jpg|200px|right|Caption]]
9869 [[File:Foobar.jpg|right|200px|Caption]]
9870 [[File:Foobar.jpg|right|Caption|200px]]
9872 <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>
9873 <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>
9874 <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>
9879 Image with width attribute at different positions (parsoid)
9883 [[File:Foobar.jpg|200px|right|Caption]]
9884 [[File:Foobar.jpg|right|200px|Caption]]
9885 [[File:Foobar.jpg|right|Caption|200px]]
9887 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
9888 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
9889 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
9893 Image with link parameter, wiki target (php)
9897 [[File:Foobar.jpg|link=Main Page]]
9899 <p><a href="/wiki/Main_Page" title="Main Page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9904 Image with link parameter, wiki target (parsoid)
9908 [[File:Foobar.jpg|link=Main Page]]
9910 <p><span class="mw-default-size" typeof="mw:Image"><a href="Main_Page"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
9914 Image with link parameter, URL target (php)
9918 [[File:Foobar.jpg|link=http://example.com/]]
9920 <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>
9924 # parsoid bug 49293 (part 1)
9926 Image with link parameter, URL target (parsoid)
9930 [[File:Foobar.jpg|link=http://example.com/]]
9932 <p><span class="mw-default-size" typeof="mw:Image"><a href="http://example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
9936 Image with link parameter, protocol-less URL target (php)
9940 [[File:Foobar.jpg|link=//example.com/]]
9942 <p><a href="//example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9946 # parsoid bug 49293 (part 2)
9948 Image with link parameter, protocol-less URL target (parsoid)
9952 [[File:Foobar.jpg|link=//example.com/]]
9954 <p><span class="mw-default-size" typeof="mw:Image"><a href="//example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
9958 Image with link parameter, wgExternalLinkTarget
9960 [[Image:foobar.jpg|link=http://example.com/]]
9962 wgExternalLinkTarget='foobar'
9964 <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>
9969 Image with link parameter, wgNoFollowLinks set to false
9971 [[Image:foobar.jpg|link=http://example.com/]]
9973 wgNoFollowLinks=false
9975 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9980 Image with link parameter, wgNoFollowDomainExceptions
9982 [[Image:foobar.jpg|link=http://example.com/]]
9984 wgNoFollowDomainExceptions='example.com'
9986 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9991 Image with link parameter, wgExternalLinkTarget, unnamed parameter
9993 [[Image:foobar.jpg|link=http://example.com/|Title]]
9995 wgExternalLinkTarget='foobar'
9997 <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>
10002 Image with empty link parameter (php)
10006 [[File:Foobar.jpg|link=]]
10008 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
10013 Image with empty link parameter (parsoid)
10017 [[File:Foobar.jpg|link=]]
10019 <p><span class="mw-default-size" typeof="mw:Image"><span><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></span></span></p>
10023 Image with link parameter (wiki target) and unnamed parameter (php)
10027 [[File:Foobar.jpg|link=Main Page|Title]]
10029 <p><a href="/wiki/Main_Page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
10034 Image with link parameter (wiki target) and unnamed parameter (parsoid)
10038 [[File:Foobar.jpg|link=Main Page|Title]]
10040 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"Title"}'><a href="Main_Page"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
10044 Image with link parameter (URL target) and unnamed parameter (php)
10048 [[File:Foobar.jpg|link=http://example.com/|Title]]
10050 <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>
10055 Image with link parameter (URL target) and unnamed parameter (parsoid)
10059 [[File:Foobar.jpg|link=http://example.com/|Title]]
10061 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"Title"}'><a href="http://example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
10065 Thumbnail image with link parameter
10069 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
10071 <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>
10076 Manually-specified thumbnail image
10080 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
10082 <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>
10087 Manually-specified thumbnail image with explicit link to wiki page
10091 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
10093 <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>
10098 Manually-specified thumbnail image with explicit link to url
10102 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
10104 <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>
10109 Manually-specified thumbnail image with explicit no link
10113 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
10115 <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>
10120 Manually-specified thumbnail image with explicit link and alt text
10124 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
10126 <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>
10131 Image with frame and link
10133 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
10135 <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>
10140 Image with frame and link and explicit alt
10142 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
10144 <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>
10149 Image with wiki markup in implicit alt
10151 [[Image:Foobar.jpg|testing '''bold''' in alt]]
10153 <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>
10158 Image with wiki markup in explicit alt
10160 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
10162 <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>
10167 Link to image page- image page normally doesn't exists, hence edit link
10168 Add test with existing image page
10169 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
10173 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
10178 bug 18784 Link to non-existent image page with caption should use caption as link text
10180 [[:Image:test|caption]]
10182 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
10187 Frameless image caption with a free URL
10189 [[Image:foobar.jpg|http://example.com]]
10191 <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>
10196 Thumbnail image caption with a free URL
10198 [[Image:foobar.jpg|thumb|http://example.com]]
10200 <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>
10205 Thumbnail image caption with a free URL and explicit alt
10207 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
10209 <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>
10214 SVG thumbnails with no language set
10217 [[File:Foobar.svg|thumb|caption]]
10219 <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>caption</div></div></div>
10224 SVG thumbnails with language de
10227 [[File:Foobar.svg|thumb|caption|lang=de]]
10229 <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>caption</div></div></div>
10234 SVG thumbnails with invalid language code
10237 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
10239 <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>
10244 BUG 1887: A ISBN with a thumbnail
10246 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
10248 <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>
10253 BUG 1887: A RFC with a thumbnail
10255 [[Image:foobar.jpg|thumb|This is RFC 12354]]
10257 <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>
10262 BUG 1887: A mailto link with a thumbnail
10264 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
10266 <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>
10270 # Pending resolution to bug 368
10272 BUG 648: Frameless image caption with a link
10274 [[Image:foobar.jpg|text with a [[link]] in it]]
10276 <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>
10281 BUG 648: Frameless image caption with a link (suffix)
10283 [[Image:foobar.jpg|text with a [[link]]foo in it]]
10285 <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>
10290 BUG 648: Frameless image caption with an interwiki link
10292 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
10294 <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>
10299 BUG 648: Frameless image caption with a piped interwiki link
10301 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
10303 <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>
10308 Escape HTML special chars in image alt text
10310 [[Image:foobar.jpg|& < > "]]
10312 <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>
10317 BUG 499: Alt text should have Ӓ, not &1234;
10319 [[Image:foobar.jpg|♀]]
10321 <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>
10326 Broken image caption with link
10328 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
10330 <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.
10335 Image caption containing another image
10337 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
10339 <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>
10344 Image caption containing a newline
10346 [[Image:Foobar.jpg|This
10349 <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>
10354 Parsoid: Image caption containing leading space
10355 (The leading space should not trigger nowiki escaping in wt2wt mode)
10357 [[Image:Foobar.jpg|thumb| bar]]
10359 <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>
10364 Bug 3090: External links other than http: in image captions
10366 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
10368 <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>
10375 [[Image:foobar.jpg|a|class=b]]
10377 <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>
10382 Localized image handling (1).
10386 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10388 <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>
10393 Localized image handling (2).
10397 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10399 <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>
10404 "border", "frameless" and "class" attributes on an image.
10406 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
10408 <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>
10415 #REDIRECT [[File:Barfoo.jpg]]
10421 [[Image:Barfoo.jpg]]
10423 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
10428 Missing image with uploads disabled
10432 [[Image:Foobaz.jpg]]
10434 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
10438 # Parsoid-specific testing for images
10439 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10440 # Currently imperfect due to a flaw in the Parsoid testrunner
10442 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
10446 Parsoid-specific image handling - simple image with size and middle alignment
10450 [[Image:Foobar.jpg|50px|middle]]
10453 <span class="mw-valign-middle" typeof="mw:Image">
10454 <a href="File:Foobar.jpg">
10455 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10462 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10466 [[Image:Foobar.jpg|500x10px|baseline|caption]]
10469 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
10470 <a href="File:Foobar.jpg">
10471 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
10478 Parsoid-specific image handling - simple image with border and size spec
10482 [[Image:Foobar.jpg|50px|border|caption]]
10485 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
10486 <a href="File:Foobar.jpg">
10487 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10494 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10498 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
10500 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10501 <a href="File:Foobar.jpg">
10502 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
10504 <figcaption>caption content</figcaption>
10509 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10513 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10515 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10516 <a href="File:Foobar.jpg">
10517 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10519 <figcaption>caption</figcaption>
10524 Parsoid-specific image handling - framed image with specific size and caption
10528 [[Image:Foobar.jpg|500x50px|frame|caption]]
10530 <figure typeof="mw:Image/Frame">
10531 <a href="File:Foobar.jpg">
10532 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10534 <figcaption>caption</figcaption>
10539 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10543 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
10545 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10546 <a href="File:Foobar.jpg">
10547 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10549 <figcaption>caption</figcaption>
10554 Parsoid-specific image handling - frameless image with specific size, border, and caption
10558 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
10561 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
10562 <a href="File:Foobar.jpg">
10563 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10569 #Parsoid-specific image handling - simple image with a formatted caption
10573 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
10576 #<span typeof="mw:Image">
10577 #<a class="mw-default-size" href="Image:Foobar.jpg">
10578 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
10585 Parsoid-specific image handling - caption with a template in it
10589 [[File:Foobar.jpg|thumb|200x200px|This caption has a {{echo|transclusion}} in it.]]
10591 <figure typeof="mw:Image/Thumb"><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>This caption has a <span about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}">transclusion</span> in it.</figcaption></figure>
10595 Parsoid-specific image handling - caption with unbalanced tags in it
10597 parsoid=wt2html,wt2wt,html2html
10600 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
10604 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="23" width="200"></a><figcaption>This caption has a <center>unbalanced tag in it.</center></figcaption></figure>
10613 Subpage test/subpage
10621 subpage title=[[Subpage test]]
10625 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
10630 Subpage noslash link
10632 subpage title=[[Subpage test]]
10636 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
10640 # TODO: make this PHP-parser compatible!
10642 Relative subpage noslash link
10644 parsoid=wt2wt,wt2html,html2html
10645 subpage title=[[Subpage test/1/2/3/4]]
10651 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
10652 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
10655 # TODO: make this PHP-parser compatible!
10657 Parsoid: dot-slash prefixed wikilinks
10659 parsoid=wt2wt,wt2html,html2html
10667 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
10668 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
10669 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
10677 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
10682 BUG 561: {{/Subpage}}
10684 subpage title=[[Page]]
10688 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
10696 Category:MediaWiki User's Guide
10704 [[:Category:MediaWiki User's Guide]]
10706 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
10715 [[Category:MediaWiki User's Guide]]
10717 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10721 PAGESINCATEGORY invalid title fatal (r33546 fix)
10723 {{PAGESINCATEGORY:<bogus>}}
10730 Category with different sort key
10734 [[Category:MediaWiki User's Guide|Foo]]
10736 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10740 Category with identical sort key
10744 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10746 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
10750 Category with empty sort key
10755 [[Category:MediaWiki User's Guide|]]
10757 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
10761 Category with empty sort key and parentheses
10766 [[Category:Foo (bar)|]]
10768 [[Category:Foo (bar)|Foo]]
10772 Category with link tail
10777 123[[Category:Foo]]456
10779 123[[Category:Foo]]456
10783 Category with template
10788 [[Category:{{echo|Foo}}]]
10790 [[Category:{{echo|Foo}}]]
10794 Category with template in sort key
10799 [[Category:Foo|{{echo|Bar}}]]
10801 [[Category:Foo|{{echo|Bar}}]]
10805 Category with template in sort key and title
10810 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
10812 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
10816 Category / paragraph interactions
10818 Foo [[Category:Baz]] Bar
10820 Foo [[Category:Baz]]
10828 [[Category:Baz]] Bar
10841 {{echo|[[Category:Baz]]}}
10856 Parsoid: Serialize link to category page with colon escape
10862 [[:Category:Foo|Bar]]
10865 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
10866 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
10871 Parsoid: Link prefix/suffixes aren't applied to category links
10873 parsoid=wt2html,wt2wt,html2html
10878 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
10882 Parsoid: Serialize link to file page with colon escape
10888 [[:File:Foo.png|Bar]]
10891 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
10892 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
10897 Parsoid: Serialize a genuine category link without colon escape
10902 [[Category:Foo|Bar]]
10904 <link rel="mw:PageProp/Category" href="Category:Foo">
10905 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
10909 Parsoid: Defaultsort
10913 {{DEFAULTSORT:Foo}}
10915 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
10919 ### Inter-language links
10922 Inter-language links
10928 [[zh:食品]]
10930 es:Alimento fr:Nourriture zh:食品
10934 Duplicate interlanguage links (bug 24502)
10950 Basic section headings
10957 ===Smaller headline===
10960 <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>
10963 <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>
10966 <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>
10972 Section headings with TOC
10975 === Subheadline 1 ===
10976 ===== Skipping a level =====
10977 ====== Skipping a level ======
10981 ===Another headline===
10983 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10985 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
10987 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
10989 <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>
10991 <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>
10998 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
11000 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
11006 <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>
11007 <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>
11008 <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>
11009 <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>
11010 <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>
11013 <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>
11017 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
11019 Handling of sections up to level 6 and beyond
11022 == Level 2 Heading==
11023 === Level 3 Heading===
11024 ==== Level 4 Heading====
11025 ===== Level 5 Heading=====
11026 ====== Level 6 Heading======
11027 ======= Level 7 Heading=======
11028 ======== Level 8 Heading========
11029 ========= Level 9 Heading=========
11030 ========== Level 10 Heading==========
11032 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11034 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
11036 <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>
11038 <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>
11040 <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>
11042 <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>
11044 <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>
11045 <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>
11046 <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>
11047 <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>
11048 <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>
11062 <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>
11063 <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>
11064 <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>
11065 <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>
11066 <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>
11067 <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>
11068 <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>
11069 <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>
11070 <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>
11071 <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>
11076 TOC regression (bug 9764)
11080 ==== title 1.1.1 ====
11085 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11087 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11089 <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>
11091 <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>
11094 <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>
11097 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11099 <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>
11105 <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>
11106 <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>
11107 <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>
11108 <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>
11109 <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>
11110 <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>
11115 TOC with wgMaxTocLevel=3 (bug 6204)
11121 ==== title 1.1.1 ====
11126 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11128 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11130 <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>
11131 <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>
11134 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11136 <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>
11142 <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>
11143 <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>
11144 <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>
11145 <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>
11146 <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>
11147 <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>
11152 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
11158 ====Section 1.1.1====
11159 ====Section 1.1.1.1====
11162 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11164 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
11166 <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>
11169 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
11173 <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>
11174 <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>
11175 <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>
11176 <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>
11177 <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>
11183 Resolving duplicate section names
11188 <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>
11189 <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>
11194 Resolving duplicate section names with differing case (bug 10721)
11199 <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>
11200 <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>
11212 Template with sections, __NOTOC__
11219 <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>
11220 <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>
11221 <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>
11222 <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>
11227 __NOEDITSECTION__ keyword
11233 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
11234 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
11239 Link inside a section heading
11241 ==Section with a [[Main Page|link]] in it==
11243 <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>
11248 TOC regression (bug 12077)
11255 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11257 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11259 <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>
11262 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
11266 <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>
11267 <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>
11268 <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>
11273 BUG 1219 URL next to image (good)
11275 http://example.com [[Image:foobar.jpg]]
11277 <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>
11282 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
11285 The line above must have a trailing space!
11288 But just in case it doesn't...
11290 <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>
11291 <p>The line above must have a trailing space!
11293 <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>
11294 <p>But just in case it doesn't...
11299 Header with special characters (bug 25462)
11301 The tooltips shall not show entities to the user (ie. be double escaped)
11318 <p>The tooltips shall not show entities to the user (ie. be double escaped)
11320 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11322 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
11323 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
11324 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
11325 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
11326 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
11330 <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>
11333 <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>
11336 <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>
11339 <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>
11342 <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>
11348 Headers with excess '=' characters
11349 (Are similar tests necessary beyond the 1st level?)
11353 =''italic'' heading==
11354 ==''italic'' heading=
11356 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11358 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
11359 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
11360 <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>
11361 <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>
11365 <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>
11366 <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>
11367 <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>
11368 <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>
11373 HTML headers vs TOC (bug 23393)
11374 (__NOEDITSECTION__ for clearer output, doesn't matter here)
11386 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11388 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
11390 <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>
11391 <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>
11394 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
11396 <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>
11397 <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>
11403 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
11404 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
11405 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
11406 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
11407 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
11408 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
11413 BUG 1219 URL next to image (broken)
11415 http://example.com[[Image:foobar.jpg]]
11417 <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>
11422 Bug 1186 news: in the middle of text
11424 http://en.wikinews.org/wiki/Wikinews:Workplace
11426 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
11432 Namespaced link must have a title
11441 Namespaced link must have a title (bad fragment version)
11443 [[Project:#fragment]]
11445 <p>[[Project:#fragment]]
11451 ### HTML tags and HTML attributes
11455 div with no attributes
11457 <div>HTML rocks</div>
11459 <div>HTML rocks</div>
11464 div with double-quoted attribute
11466 <div id="rock">HTML rocks</div>
11468 <div id="rock">HTML rocks</div>
11473 div with single-quoted attribute
11475 <div id='rock'>HTML rocks</div>
11477 <div id="rock">HTML rocks</div>
11482 div with unquoted attribute
11484 <div id=rock>HTML rocks</div>
11486 <div id="rock">HTML rocks</div>
11491 div with illegal double attributes
11493 <div id="a" id="b">HTML rocks</div>
11495 <div id="b">HTML rocks</div>
11499 # FIXME: produce empty string instead of "class" in the PHP parser, following
11502 div with empty attribute value, space before equals
11506 <div class =>HTML rocks</div>
11508 <div class="">HTML rocks</div>
11512 # The PHP parser escapes the opening brace to { for some reason, so
11513 # disabled this test for it.
11515 div with braces in attribute value
11519 <div title="{}">Foo</div>
11521 <div title="{}">Foo</div>
11524 # This it very inconsistent in the PHP parser: it returns
11525 # class="class" if there is a space between the name and the equal sign (see
11526 # 'div with empty attribute value, space before equals'), but strips the
11527 # attribute completely if the space is missing. We hope that not much content
11528 # depends on this, so are implementing the behavior below in Parsoid for
11529 # consistencies' sake. Disabled for the PHP parser.
11530 # FIXME: fix this behavior in the PHP parser?
11532 div with empty attribute value, no space before equals
11536 <div class=>HTML rocks</div>
11538 <div class="">HTML rocks</div>
11543 HTML multiple attributes correction
11545 <p class="error" class="awesome">Awesome!</p>
11547 <p class="awesome">Awesome!</p>
11552 Table multiple attributes correction
11555 !+ class="error" class="awesome"| status
11560 <th class="awesome"> status
11568 <DIV ID="x">HTML ROCKS</DIV>
11570 <div id="x">HTML ROCKS</div>
11575 Non-ASCII pseudo-tags are rendered as text
11584 Pseudo-tag with URL 'name' renders as url link
11586 <http://example.com/>
11588 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
11593 text with amp in the middle of nowhere
11597 <p>Remember AT&T?
11602 text with character entity: eacute
11604 I always thought é was a cute letter.
11606 <p>I always thought é was a cute letter.
11611 text with entity-escaped character entity-like string: eacute
11613 I always thought &eacute; was a cute letter.
11615 <p>I always thought &eacute; was a cute letter.
11620 text with undefined character entity: xacute
11622 I always thought &xacute; was a cute letter.
11624 <p>I always thought &xacute; was a cute letter.
11628 # TODO: generalize to PHP parser?
11634 <data value="5">five</data>
11635 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11636 <mark>This highlighted text</mark>
11638 <p><data value="5">five</data>
11639 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
11640 <mark>This highlighted text</mark></p>
11644 HTML tag with leading space is parsed as text
11648 <p>< div>foo< /div>
11653 ### Nesting tests (see bug 41545, 50604, 51081)
11656 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
11657 # Note that html2wt is considerably more difficult if we use <b> in
11658 # the test case, instead of <big>
11660 Ensure that HTML adoption agency algorithm is properly implemented.
11662 <big>X<big>Y</big>Z</big>
11664 <p><big>X<big>Y</big>Z</big>
11668 # This was bug 41545 in the PHP parser.
11672 <kbd>X<kbd>Y</kbd>Z</kbd>
11674 <p><kbd>X<kbd>Y</kbd>Z</kbd>
11678 # The following cases were bug 51081 in the PHP parser.
11679 # Note that there are some other nestable tags (b, i, etc) which are
11680 # not covered; see bug 51081 for discussion.
11684 <em>X<em>Y</em>Z</em>
11686 <p><em>X<em>Y</em>Z</em>
11691 Nesting of <strong>
11693 <strong>X<strong>Y</strong>Z</strong>
11695 <p><strong>X<strong>Y</strong>Z</strong>
11704 <p><q>X<q>Y</q>Z</q>
11711 <ruby>X<ruby>Y</ruby>Z</ruby>
11713 <p><ruby>X<ruby>Y</ruby>Z</ruby>
11720 <bdo>X<bdo>Y</bdo>Z</bdo>
11722 <p><bdo>X<bdo>Y</bdo>Z</bdo>
11734 [[Media:Foobar.jpg]]
11736 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
11741 Media link with text
11743 [[Media:Foobar.jpg|A neat file to look at]]
11745 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
11749 # FIXME: this is still bad HTML tag nesting
11751 Media link with nasty text
11752 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
11754 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
11756 <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>
11761 Media link to nonexistent file (bug 1702)
11763 [[Media:No such.jpg]]
11765 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
11770 Image link to nonexistent file (bug 1850 - good)
11772 [[Image:No such.jpg]]
11774 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
11779 :Image link to nonexistent file (bug 1850 - bad)
11781 [[:Image:No such.jpg]]
11783 <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>
11790 Character reference normalization in link text (bug 1938)
11792 [[Main Page|this&that]]
11794 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
11801 Test for unicode normalization
11803 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
11807 (bug 19451) Links should refer to the normalized form.
11815 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11816 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11817 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11818 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11819 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
11824 Empty attribute crash test (bug 2067)
11826 <font color="">foo</font>
11828 <p><font color="">foo</font>
11833 Empty attribute crash test single-quotes (bug 2067)
11835 <font color=''>foo</font>
11837 <p><font color="">foo</font>
11842 Attribute test: equals, then nothing
11844 <font color=>foo</font>
11846 <p><font>foo</font>
11851 Attribute test: unquoted value
11853 <font color=x>foo</font>
11855 <p><font color="x">foo</font>
11860 Attribute test: unquoted but illegal value (hash)
11862 <font color=#x>foo</font>
11864 <p><font color="#x">foo</font>
11869 Attribute test: no value
11871 <font color>foo</font>
11873 <p><font color="color">foo</font>
11878 Bug 2095: link with three closing brackets
11882 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
11887 Bug 2095: link with pipe and three closing brackets
11889 [[Main Page|link]]]
11891 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
11896 Bug 2095: link with pipe and three closing brackets, version 2
11898 [[Main Page|[http://example.com/]]]
11900 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
11910 Template:Dangerous attribute
11912 " onmouseover="alert(document.cookie)
11916 Template:Dangerous style attribute
11918 border-size: expression(alert(document.cookie))
11924 <div style="float: right; {{{1}}}">Magic div</div>
11928 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
11930 <div title="{{test}}"></div>
11932 <div title="This is a test template"></div>
11937 Bug 2304: HTML attribute safety (dangerous template; 2309)
11939 <div title="{{dangerous attribute}}"></div>
11941 <div title=""></div>
11946 Bug 2304: HTML attribute safety (dangerous style template; 2309)
11948 <div style="{{dangerous style attribute}}"></div>
11950 <div style="/* insecure input */"></div>
11955 Bug 2304: HTML attribute safety (safe parameter; 2309)
11957 {{div style|width: 200px}}
11959 <div style="float: right; width: 200px">Magic div</div>
11964 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
11966 {{div style|width: expression(alert(document.cookie))}}
11968 <div style="/* insecure input */">Magic div</div>
11973 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
11975 {{div style|"><script>alert(document.cookie)</script>}}
11977 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
11982 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
11984 {{div style|" ><script>alert(document.cookie)</script>}}
11986 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
11991 Bug 2304: HTML attribute safety (link)
11993 <div title="[[Main Page]]"></div>
11995 <div title="[[Main Page]]"></div>
12000 Bug 2304: HTML attribute safety (italics)
12002 <div title="''foobar''"></div>
12004 <div title="''foobar''"></div>
12009 Bug 2304: HTML attribute safety (bold)
12011 <div title="'''foobar'''"></div>
12013 <div title="'''foobar'''"></div>
12019 Bug 2304: HTML attribute safety (ISBN)
12021 <div title="ISBN 1234567890"></div>
12023 <div title="ISBN 1234567890"></div>
12028 Bug 2304: HTML attribute safety (RFC)
12030 <div title="RFC 1234"></div>
12032 <div title="RFC 1234"></div>
12037 Bug 2304: HTML attribute safety (PMID)
12039 <div title="PMID 1234567890"></div>
12041 <div title="PMID 1234567890"></div>
12046 Bug 2304: HTML attribute safety (web link)
12048 <div title="http://example.com/"></div>
12050 <div title="http://example.com/"></div>
12055 Bug 2304: HTML attribute safety (named web link)
12057 <div title="[http://example.com/ link]"></div>
12059 <div title="[http://example.com/ link]"></div>
12064 Bug 3244: HTML attribute safety (extension; safe)
12066 <div style="<nowiki>background:blue</nowiki>"></div>
12068 <div style="background:blue"></div>
12073 Bug 3244: HTML attribute safety (extension; unsafe)
12075 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
12077 <div style="/* insecure input */"></div>
12081 # More MSIE fun discovered by Tom Gilder
12084 MSIE CSS safety test: spurious slash
12086 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
12088 <div style="/* insecure input */">evil</div>
12093 MSIE CSS safety test: hex code
12095 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
12097 <div style="/* insecure input */">evil</div>
12102 MSIE CSS safety test: comment in url
12104 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
12106 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
12111 MSIE CSS safety test: comment in expression
12113 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
12115 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
12120 CSS safety test: vertical tab
12122 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
12124 <p style="/* invalid control char */">A</p>
12129 MSIE CSS safety test: Fullwidth
12131 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
12132 <div style="top:EXPRESSION(alert())">B</div>
12134 <p style="/* insecure input */">A</p>
12135 <div style="/* insecure input */">B</div>
12140 MSIE CSS safety test: IPA extensions
12142 <div style="background-image:uʀʟ(javascript:alert())">A</div>
12143 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
12145 <div style="/* insecure input */">A</div>
12146 <p style="/* insecure input */">B</p>
12151 MSIE CSS safety test: sup/sub script
12153 <div style="background-image:url⁽javascript:alert())">A</div>
12154 <div style="background-image:url₍javascript:alert())">B</div>
12155 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
12157 <div style="/* insecure input */">A</div>
12158 <div style="/* insecure input */">B</div>
12159 <p style="/* insecure input */">C</p>
12164 MSIE CSS safety test: Repetition markers
12166 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
12167 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
12168 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
12169 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
12170 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
12171 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
12172 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
12174 <p style="/* insecure input */">A</p>
12175 <p style="/* insecure input */">B</p>
12176 <p style="/* insecure input */">C</p>
12177 <p style="/* insecure input */">D</p>
12178 <p style="/* insecure input */">E</p>
12179 <p style="/* insecure input */">F</p>
12180 <p style="/* insecure input */">G</p>
12185 Table attribute legitimate extension
12188 !+ style="<nowiki>color:blue</nowiki>"| status
12193 <th style="color:blue"> status
12199 Table attribute safety
12202 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
12207 <th style="/* insecure input */"> status
12213 CSS line continuation 1
12215 <div style="background-image: u\ rl(test.jpg);"></div>
12217 <div style="/* insecure input */"></div>
12222 CSS line continuation 2
12224 <div style="background-image: u\ rl(test.jpg); "></div>
12226 <div style="/* insecure input */"></div>
12237 Expansion of multi-line templates in attribute values (bug 6255)
12239 <div style="background: {{identity|#00FF00}}">-</div>
12241 <div style="background: #00FF00">-</div>
12247 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
12249 <div style="background:
12252 <div style="background: #00FF00">-</div>
12257 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
12259 <div style="background: #00FF00">-</div>
12261 <div style="background: #00FF00">-</div>
12266 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
12269 Parser hook: empty input
12282 Parser hook: empty input using terminated empty elements
12295 Parser hook: empty input using terminated empty elements (space before)
12308 Parser hook: basic input
12322 Parser hook: case insensitive
12336 Parser hook: case insensitive, redux
12349 Parser hook: nested tags
12353 <tag><tag></tag></tag>
12364 Parser hook: basic arguments
12366 <tag width=200 height = "100" depth = '50' square></tag>
12374 'square' => 'square',
12381 Parser hook: argument containing a forward slash (bug 5344)
12383 <tag filename='/tmp/bla'></tag>
12388 'filename' => '/tmp/bla',
12395 Parser hook: empty input using terminated empty elements (bug 2374)
12408 # </tag> should be output literally since there is no matching tag that begins it
12410 Parser hook: basic arguments using terminated empty elements (bug 2374)
12412 <tag width=200 height = "100" depth = '50' square/>
12422 'square' => 'square',
12431 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
12435 Parser hook: static parser hook not inside a comment
12437 <statictag>hello, world</statictag>
12438 <statictag action=flush/>
12446 Parser hook: static parser hook inside a comment
12448 <!-- <statictag>hello, world</statictag> -->
12449 <statictag action=flush/>
12455 # Nested template calls; this case was broken by Parser.php rev 1.506,
12459 Template:One-parameter
12461 (My parameter is: {{{1}}})
12465 Template:Map-one-parameter
12467 {{{{{1}}}|{{{2}}}}}
12471 Nested template calls
12473 {{Map-one-parameter|One-parameter|param}}
12475 <p>(My parameter is: param)
12484 Sanitizer: Closing of open tags
12486 <s></s><table></table>
12488 <s></s><table></table>
12493 Sanitizer: Closing of open but not closed tags
12502 Sanitizer: Closing of closed but not open tags
12511 Sanitizer: Closing of closed but not open table tags
12513 Table not started</td></tr></table>
12515 <p>Table not started</td></tr></table>
12520 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
12522 <span id="æ: v">byte</span>[[#æ: v|backlink]]
12524 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
12529 Sanitizer: Validating the contents of the id attribute (bug 4515)
12535 Something, but definitely not <br id="9" />...
12539 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
12543 <br id="foo" /><br id="foo" />
12545 Something need to be done. foo-2 ?
12549 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
12552 <meta itemprop="hello" content="world">
12553 <meta http-equiv="refresh" content="5">
12554 <meta itemprop="hello" http-equiv="refresh" content="5">
12555 <link itemprop="hello" href="{{SERVER}}">
12556 <link rel="stylesheet" href="{{SERVER}}">
12557 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
12560 <div itemscope="itemscope">
12561 <p> <meta itemprop="hello" content="world" />
12562 <meta http-equiv="refresh" content="5">
12563 <meta itemprop="hello" content="5" />
12565 <link itemprop="hello" href="http://example.org" />
12566 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
12567 <link itemprop="hello" href="http://example.org" />
12573 Language converter: output gets cut off unexpectedly (bug 5757)
12577 this bit is safe: }-
12579 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
12581 then we get cut off here: }-
12583 all additional text is vanished
12585 <p>this bit is safe: }-
12586 </p><p>but if we add a conversion instance: xxx
12587 </p><p>then we get cut off here: }-
12588 </p><p>all additional text is vanished
12593 Self closed html pairs (bug 5487)
12596 <center><font id="bug" />Centered text</center>
12597 <div><font id="bug2" />In div text</div>
12599 <center><font id="bug" />Centered text</center>
12600 <div><font id="bug2" />In div text</div>
12609 Punctuation: nbsp before exclamation
12613 <p>C'est grave !
12618 Punctuation: CSS !important (bug 11874)
12620 <div style="width:50% !important">important</div>
12622 <div style="width:50% !important">important</div>
12627 Punctuation: CSS ! important (bug 11874; with space after)
12629 <div style="width:50% ! important">important</div>
12631 <div style="width:50% ! important">important</div>
12637 HTML bullet list, closed tags (bug 5497)
12652 HTML bullet list, unclosed tags (bug 5497)
12671 HTML ordered list, closed tags (bug 5497)
12686 HTML ordered list, unclosed tags (bug 5497)
12705 HTML nested bullet list, closed tags (bug 5497)
12730 HTML nested bullet list, open tags (bug 5497)
12759 HTML nested ordered list, closed tags (bug 5497)
12784 HTML nested ordered list, open tags (bug 5497)
12813 HTML ordered list item with parameters oddity
12815 <ol><li id="fragment">One</li>
12818 <ol><li id="fragment">One</li>
12824 bug 5918: autonumbering
12826 [http://first/] [http://second] [ftp://ftp]
12830 [mailto:enclosed@mail.tld With target]
12832 [mailto:enclosed@mail.tld]
12834 mailto:inline@mail.tld
12836 <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>
12837 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
12838 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
12839 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
12840 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
12846 # Security and HTML correctness
12847 # From Nick Jenkins' fuzz testing
12851 Fuzz testing: Parser13
12866 Fuzz testing: Parser14
12871 <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>
12872 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12874 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
12882 Fuzz testing: Parser14-table
12887 <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>
12888 <table style="__TOC__">
12894 # Known to produce bogus xml (extra </td>)
12896 Fuzz testing: Parser16
12916 Fuzz testing: Parser21
12919 ! irc://{{ftp://a" onmouseover="alert('hello world');"
12924 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
12934 Fuzz testing: Parser22
12936 http://===r:::https://b
12940 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
12948 # Known to produce bad XML for now
12950 Fuzz testing: Parser24
12957 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
12958 <br style="onmouseover='alert(document.cookie);' " />
12960 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
12965 <u class="|">}}}} >
12966 <br style="onmouseover='alert(document.cookie);'" />
12968 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
12977 # Note: the current result listed for this is not what the original one was,
12978 # but the original bug was JavaScript injection, which is fixed in any case.
12979 # It's not clear that the original result listed was any more correct than the
12980 # current one. Original result:
12983 # <li class="||">
12984 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
12986 Fuzz testing: Parser25 (bug 6055)
12992 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
12994 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
12999 Fuzz testing: URL adjacent extension (with space, clean)
13002 http://example.com <nowiki>junk</nowiki>
13004 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
13009 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
13012 http://example.com<nowiki>junk</nowiki>
13014 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
13019 Fuzz testing: URL adjacent extension (no space, dirty; pre)
13022 http://example.com<pre>junk</pre>
13024 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
13029 Fuzz testing: image with bogus manual thumbnail
13031 [[Image:foobar.jpg|thumbnail= ]]
13033 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
13038 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
13040 <pre dir=" "></pre>
13042 <pre dir=" "></pre>
13047 Parsing optional HTML elements (Bug 6171)
13052 <td> Some tabular data</td>
13053 <td> More tabular data ...
13054 <td> And yet som tabular data</td>
13060 <td> Some tabular data</td>
13061 <td> More tabular data ...
13062 </td><td> And yet som tabular data</td>
13069 Correct handling of <td>, <tr> (Bug 6171)
13074 <td> Some tabular data</td>
13075 <td> More tabular data ...</td>
13076 <td> And yet som tabular data</td>
13082 <td> Some tabular data</td>
13083 <td> More tabular data ...</td>
13084 <td> And yet som tabular data</td>
13092 Parsing crashing regression (fr:JavaScript)
13096 <p></body></x>
13101 Inline wiki vs wiki block nesting
13107 <p><b>Bold paragraph</b>
13108 </p><p>New wiki paragraph
13113 Inline HTML vs wiki block nesting
13121 <p><b>Bold paragraph</b>
13122 </p><p>New wiki paragraph
13126 # Original result was this:
13127 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
13129 # While that might be marginally more intuitive, maybe, the six-apostrophe
13130 # construct is clearly pathological and the result stated here (which is what
13131 # the parser actually does) is about as reasonable as anything.
13133 Mixing markup for italics and bold
13136 '''bold''''''bold''bolditalics'''''
13138 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
13146 Article for special page transclusion test
13150 Special page transclusion
13153 {{Special:Prefixindex/Xyzzyx}}
13155 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13160 Special page transclusion twice (bug 5021)
13163 {{Special:Prefixindex/Xyzzyx}}
13164 {{Special:Prefixindex/Xyzzyx}}
13166 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13167 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13172 Transclusion of default MediaWiki message
13174 {{MediaWiki:Mainpage}}
13181 Transclusion of nonexistent MediaWiki message
13183 {{MediaWiki:Mainpagexxx}}
13185 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
13190 Transclusion of MediaWiki message with underscore
13192 {{MediaWiki:history_short}}
13199 Transclusion of MediaWiki message with space
13201 {{MediaWiki:history short}}
13208 Invalid header with following text
13218 Section extraction test (section 0)
13238 Section extraction test (section 1)
13260 Section extraction test (section 2)
13281 Section extraction test (section 3)
13301 Section extraction test (section 4)
13325 Section extraction test (section 5)
13345 Section extraction test (section 6)
13366 Section extraction test (section 7)
13386 Section extraction test (section 8)
13406 Section extraction test (section 9)
13427 Section extraction test (section 10)
13447 Section extraction test (nonexistent section 11)
13466 Section extraction test with bogus heading (section 1)
13471 ==bogus== not a legal section
13475 ==bogus== not a legal section
13479 Section extraction test with bogus heading (section 2)
13484 ==bogus== not a legal section
13491 Section extraction test with comment after heading (section 1)
13503 Section extraction test with comment after heading (section 2)
13515 Section extraction test with bogus <nowiki> heading (section 1)
13520 ==bogus== <nowiki>not a legal section</nowiki>
13524 ==bogus== <nowiki>not a legal section</nowiki>
13528 Section extraction test with bogus <nowiki> heading (section 2)
13533 ==bogus== <nowiki>not a legal section</nowiki>
13540 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
13541 # instead of respecting commented sections
13543 Section extraction prefixed by comment (section 1)
13554 Section extraction prefixed by comment (section 2)
13565 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
13566 # instead of respecting HTML-style headings
13568 Section extraction, mixed wiki and html (section 1)
13584 Section extraction, mixed wiki and html (section 2)
13600 # Formerly testing for bug 3342
13602 Section extraction, heading surrounded by <noinclude>
13606 <noinclude>==unmarked==</noinclude>
13612 # Test behavior of bug 19910
13614 Sectiion with all-equals
13619 The line above must have a trailing space
13622 But just in case it doesn't...
13626 But just in case it doesn't...
13630 Section replacement test (section 0)
13661 Section replacement test (section 1)
13690 Section replacement test (section 2)
13720 Section replacement test (section 3)
13751 Section replacement test (section 4)
13778 Section replacement test (section 5)
13809 Section replacement test (section 6)
13839 Section replacement test (section 7)
13870 Section replacement test (section 8)
13901 Section replacement test (section 9)
13930 Section replacement test (section 10)
13960 Section replacement test with initial whitespace (bug 13728)
13964 Preformatted initial line
13968 Preformatted initial line
13975 Section extraction, heading followed by pre with 20 spaces (bug 6398)
13987 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
14000 Section extraction, <pre> around bogus header (bug 10309)
14017 Section replacement, <pre> around bogus header (bug 10309)
14019 noxml replace=2,"xxx"
14040 Handling of 
 in URLs
14046 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
14055 5 quotes, code coverage +1 line (php)
14062 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
14064 5 quotes, code coverage +1 line (parsoid)
14070 <p><b><i></i></b></p>
14074 Special:Search page linking.
14078 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
14085 title=[[Parser test]]
14090 * {{FULLPAGENAMEE}}
14092 * {{BASEPAGENAMEE}}
14096 * {{ROOTPAGENAMEE}}
14098 * {{TALKPAGENAMEE}}
14099 * {{SUBJECTPAGENAME}}
14100 * {{SUBJECTPAGENAMEE}}
14103 * {{NAMESPACENUMBER}}
14107 * {{SUBJECTSPACEE}}
14108 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
14131 <li> Talk:Parser test
14133 <li> Talk:Parser_test
14153 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
14158 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
14168 image4 |300px| centre
14169 image5.svg| http://///////
14174 <ul class="gallery mw-gallery-traditional">
14175 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14176 <div class="thumb" style="height: 150px;">Image1.png</div>
14177 <div class="gallerytext">
14180 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14181 <div class="thumb" style="height: 150px;">Image2.gif</div>
14182 <div class="gallerytext">
14187 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14188 <div class="thumb" style="height: 150px;">Image3</div>
14189 <div class="gallerytext">
14192 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14193 <div class="thumb" style="height: 150px;">Image4</div>
14194 <div class="gallerytext">
14199 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14200 <div class="thumb" style="height: 150px;">Image5.svg</div>
14201 <div class="gallerytext">
14202 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
14206 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14207 <div class="thumb" style="height: 150px;">* image6</div>
14208 <div class="gallerytext">
14216 Gallery (with options)
14218 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
14219 File:Nonexistant.jpg|caption
14220 File:Nonexistant.jpg
14221 image:foobar.jpg|some '''caption''' [[Main Page]]
14223 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
14226 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
14227 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
14228 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14229 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14230 <div class="gallerytext">
14235 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14236 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14237 <div class="gallerytext">
14240 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14241 <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>
14242 <div class="gallerytext">
14243 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14247 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14248 <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>
14249 <div class="gallerytext">
14252 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14253 <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>
14254 <div class="gallerytext">
14264 Gallery with wikitext inside caption
14267 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
14268 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
14271 <ul class="gallery mw-gallery-traditional">
14272 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14273 <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>
14274 <div class="gallerytext">
14275 <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>
14279 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14280 <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>
14281 <div class="gallerytext">
14282 <p>This is a test template
14291 gallery (with showfilename option)
14293 <gallery showfilename>
14294 File:Nonexistant.jpg|caption
14295 File:Nonexistant.jpg
14296 image:foobar.jpg|some '''caption''' [[Main Page]]
14300 <ul class="gallery mw-gallery-traditional">
14301 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14302 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14303 <div class="gallerytext">
14304 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14309 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14310 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14311 <div class="gallerytext">
14312 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14316 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14317 <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>
14318 <div class="gallerytext">
14319 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14320 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14324 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14325 <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>
14326 <div class="gallerytext">
14327 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14336 Gallery (with namespace-less filenames)
14339 File:Nonexistant.jpg
14345 <ul class="gallery mw-gallery-traditional">
14346 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14347 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14348 <div class="gallerytext">
14351 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14352 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14353 <div class="gallerytext">
14356 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14357 <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>
14358 <div class="gallerytext">
14361 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14362 <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>
14363 <div class="gallerytext">
14371 HTML Hex character encoding (spells the word "JavaScript")
14373 JavaScript
14375 <p>JavaScript
14380 HTML Hex character encoding bogus encoding (bug 26437 regression check)
14384 <p>&#xsee;&#XSEE;
14389 HTML Hex character encoding mixed case
14398 __FORCETOC__ override
14410 ISBN 978-0-1234-56 789
14412 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
14417 ISBN followed by 5 spaces
14428 ISBN ISBN 1234567890
14430 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14435 Bug 22905: <abbr> followed by ISBN followed by </a>
14437 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
14439 <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>
14448 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
14453 Double RFC with a wiki link
14457 <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>
14466 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
14471 Centre-aligned image
14473 [[Image:foobar.jpg|centre]]
14475 <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>
14482 [[Image:foobar.jpg|none]]
14484 <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>
14489 Width + Height sized image (using px) (height is ignored)
14491 [[Image:foobar.jpg|640x480px]]
14493 <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>
14498 Width-sized image (using px, no following whitespace)
14500 [[Image:foobar.jpg|640px]]
14502 <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>
14507 Width-sized image (using px, with following whitespace - test regression from r39467)
14509 [[Image:foobar.jpg|640px ]]
14511 <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>
14516 Width-sized image (using px, with preceding whitespace - test regression from r39467)
14518 [[Image:foobar.jpg| 640px]]
14520 <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>
14525 Another italics / bold test
14533 # Note the results may be incorrect, as parserTest output included this:
14534 # XML error: Mismatched tag at byte 6120:
14535 # ...<dd> </dt></dl> </dd...
14566 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
14568 Images with the "|" character in the comment
14570 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
14572 <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>
14577 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
14579 <html><script>alert(1);</script></html>
14581 <p><html><script>alert(1);</script></html>
14586 HTML with raw HTML ($wgRawHtml==true)
14590 <html><script>alert(1);</script></html>
14592 <p><script>alert(1);</script>
14597 Parents of subpages, one level up
14599 subpage title=[[Subpage test/L1/L2/L3]]
14603 <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>
14609 Parents of subpages, one level up, not named
14611 subpage title=[[Subpage test/L1/L2/L3]]
14615 <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>
14622 Parents of subpages, two levels up
14624 subpage title=[[Subpage test/L1/L2/L3]]
14630 <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
14631 </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>
14636 Parents of subpages, two levels up, without trailing slash or name.
14638 subpage title=[[Subpage test/L1/L2/L3]]
14647 Parents of subpages, two levels up, with lots of extra trailing slashes.
14649 subpage title=[[Subpage test/L1/L2/L3]]
14653 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
14658 Subpage test/L1/L2/L3Sibling
14664 Transclusion of a sibling page (one level up)
14666 subpage title=[[Subpage test/L1/L2/L3]]
14675 Transclusion of a child page
14677 subpage title=[[Subpage test/L1/L2]]
14686 Non-transclusion because of too many up levels
14688 subpage title=[[Subpage test/L1/L2/L3]]
14690 {{../../../../More than parent}}
14692 <p>{{../../../../More than parent}}
14697 Definition list code coverage
14704 <dt> title  </dt>
14707 <dt> title </dt>
14718 Don't fall for the self-closing div
14720 <div>hello world</div/>
14722 <div>hello world</div>
14731 <p>[[:Template:Msg]]
14740 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
14744 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
14746 Always escape literal '>' in output, not just after '<'
14760 <p>This is a test template
14761 This is a test template
14773 Inclusion of !userCanEdit() content
14777 <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>
14783 Out-of-order TOC heading levels
14792 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14794 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
14796 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
14797 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
14800 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
14802 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
14803 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
14809 <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>
14810 <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>
14811 <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>
14812 <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>
14813 <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>
14814 <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>
14820 ISBN with a dummy number
14830 ISBN with space-delimited number
14834 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
14840 ISBN with multiple spaces, no number
14859 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14860 </p><p>ISBN 12345678901
14866 ISBN with trailing year (bug 8110)
14868 ISBN 1-234-56789-0 - 2006
14870 ISBN 1 234 56789 0 - 2006
14872 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
14873 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
14881 {{anchorencode:foo bar©#%n}}
14883 <p>foo_bar.C2.A9.23.25n
14888 anchorencode trims spaces
14890 {{anchorencode: __pretty__please__}}
14897 anchorencode deals with links
14899 {{anchorencode: [[hello|world]] [[hi]]}}
14906 anchorencode deals with templates
14908 {{anchorencode: {{Foo}} }}
14915 anchorencode encodes like the TOC generator: (bug 18431)
14917 === _ +:.3A%3A&&]] ===
14918 {{anchorencode: _ +:.3A%3A&&]] }}
14921 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
14922 <p>.2B:.3A.253A.26.26.5D.5D
14927 Bug 6200: blockquotes and paragraph formatting
14948 Bug 8293: Use of center tag ruins paragraph formatting
14969 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
14973 <span><s>x</span></s>
14975 <p><span><s>x</span></s></span>
14980 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
14984 <span><s>x</span></s>
14986 <p><span><s>x</s></span><s></s>
14991 ### Language variants related tests
14994 Self-link in language variants
14996 title=[[Dunav]] language=sr
14998 Both [[Dunav]] and [[Дунав]] are names for this river.
15000 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
15011 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
15013 title=[[Duna]] language=sr
15015 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
15017 <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.
15022 Link to a section of a variant of this title shouldn't be parsed as self-link
15024 title=[[Duna]] language=sr
15026 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
15028 <p><strong class="selflink">Dуна</strong> is a self-link while <a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Dunа#Foo</a> and <a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Dуна#Foo</a> are not self-links.
15033 Link to pages in language variants
15037 Main Page can be written as [[Маин Паге]]
15039 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
15045 Multiple links to pages in language variants
15049 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
15051 <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>.
15057 Simple template in language variants
15063 <p>This is a test template
15069 Template with explicit namespace in language variants
15075 <p>This is a test template
15081 Basic test for template parameter in language variants
15085 {{парамтест|param=foo}}
15087 <p>This is a test template with parameter foo
15093 Simple category in language variants
15097 [[Category:МедиаWики Усер'с Гуиде]]
15099 <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>
15116 Don't convert blue categorylinks to another variant (bug 33210)
15120 [[A]][[Category:分类]]
15122 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
15127 Stripping -{}- tags (language variants)
15131 Latin proverb: -{Ne nuntium necare}-
15133 <p>Latin proverb: Ne nuntium necare
15139 Prevent conversion with -{}- tags (language variants)
15141 language=sr variant=sr-ec
15143 Latinski: -{Ne nuntium necare}-
15145 <p>Латински: Ne nuntium necare
15151 Prevent conversion of text with -{}- tags (language variants)
15153 language=sr variant=sr-ec
15155 Latinski: -{Ne nuntium necare}-
15157 <p>Латински: Ne nuntium necare
15163 Prevent conversion of links with -{}- tags (language variants)
15165 language=sr variant=sr-ec
15169 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15175 -{}- tags within headlines (within html for parserConvert())
15177 language=sr variant=sr-ec
15181 <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>
15187 Explicit definition of language variant alternatives
15189 language=zh variant=zh-tw
15191 -{zh:China;zh-tw:Taiwan}-, not China
15193 <p>Taiwan, not China
15199 Conversion around HTML tags
15201 language=sr variant=sr-ec
15203 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
15204 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
15207 <span title="ЛаCтин">ски</span>
15213 Explicit session-wise language variant mapping (A flag and - flag)
15215 language=zh variant=zh-tw
15217 Taiwan is not China.
15218 But -{A|zh:China;zh-tw:Taiwan}- is China,
15219 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
15220 and -{China}- is China.
15222 <p>Taiwan is not China.
15223 But Taiwan is Taiwan,
15224 (This should be stripped!)
15225 and China is China.
15230 Explicit session-wise language variant mapping (H flag for hide)
15232 language=zh variant=zh-tw
15234 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
15237 <p>(This should be stripped!)
15243 Adding explicit conversion rule for title (T flag)
15245 language=zh variant=zh-tw showtitle
15247 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15250 <p>Should be stripped!
15255 Testing that changing the language variant here in the tests actually works
15257 language=zh variant=zh showtitle
15259 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15262 <p>Should be stripped!
15267 Recursive conversion of alt and title attrs shouldn't clear converter state
15269 language=zh variant=zh-cn showtitle
15271 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
15272 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
15276 Should be stripped<span title="Exclamation">!</span>
15281 Bug 24072: more test on conversion rule for title
15283 language=zh variant=zh-tw showtitle
15285 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15286 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
15289 <p>This should be stripped!
15290 This won't take interferes with the title rule.
15295 Partly disable title conversion if variant == main language code
15297 language=zh variant=zh title=[[ZH]] showtitle
15299 -{T|zh-cn:CN;zh-tw:TW}-
15307 Partly disable title conversion if variant == main language code, more
15309 language=zh variant=zh title=[[ZH]] showtitle
15319 Raw output of variant escape tags (R flag)
15321 language=zh variant=zh-tw
15323 Raw: -{R|zh:China;zh-tw:Taiwan}-
15325 <p>Raw: zh:China;zh-tw:Taiwan
15330 Nested using of manual convert syntax
15332 language=zh variant=zh-hk
15334 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
15336 <p>Nested: Hello Hong Kong!
15341 Proper conversion of text in external links
15343 language=sr variant=sr-ec
15345 http://www.google.com
15346 gopher://www.google.com
15347 [http://www.google.com http://www.google.com]
15348 [gopher://www.google.com gopher://www.google.com]
15349 [https://www.google.com irc://www.google.com]
15350 [ftp://www.google.com www.google.com/ftp://dir]
15351 [//www.google.com www.google.com]
15353 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15354 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15355 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15356 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15357 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
15358 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
15359 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
15364 Do not convert roman numbers to language variants
15366 language=sr variant=sr-ec
15370 <p>Фридрих IV је цар.
15375 Unclosed language converter markup "-{"
15386 Don't convert raw rule "-{R|=>}-" to "=>"
15397 Don't break link parsing if language converter markup is in the caption.
15399 language=sr variant=sr-ec
15401 [[Main Page|-{R|main page}-]]
15403 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
15407 # This test is currently broken in the PHP parser (bug 52661)
15409 Don't break image parsing if language converter markup is in the caption.
15414 [[File:Foobar.jpg|-{R|caption}-]]
15416 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
15420 # This test is currently broken in the PHP parser (bug 52661)
15422 Don't break list handling if language converter markup is in the item.
15424 language=zh variant=zh-cn
15427 ;-{zh-cn:AAA;zh-tw:BBB}-
15434 # This test is currently broken in the PHP parser (bug 52661)
15436 Don't break table handling if language converter markup is in the cell.
15438 language=sr variant=sr-ec
15455 Bug 529: Uncovered bullet
15468 # Plain MediaWiki does not remove empty lists, but tidy actually does.
15469 # Templates in Wikipedia rely on this behavior, as tidy has always been
15470 # enabled there. These tests are normally run *without* tidy, so specify the
15471 # full output here.
15472 # To test realistic parsing behavior, apply a tidy-like transformation to both
15473 # the expected output and your parser's output.
15475 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
15477 ******* Foo {{bullet}}
15507 Bug 529: Uncovered table already at line-start
15530 Bug 529: Uncovered bullet in parser function result
15532 * Foo {{lc:{{bullet}} }}
15544 Bug 5678: Double-parsed template argument
15546 {{lc:{{{1}}}|hello}}
15553 Bug 5678: Double-parsed template invocation
15555 {{lc:{{paramtest {{!}} param = hello }} }}
15557 <p>{{paramtest | param = hello }}
15562 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
15565 title=[[Main Page]]
15567 {{PRVNÍVELKÉ:ěščř}}
15568 {{prvnívelké:ěščř}}
15588 Morwen/13: Unclosed link followed by heading
15595 <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>
15600 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
15607 <h1><span class="mw-headline" id="heading">heading</span></h1>
15612 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
15619 <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>
15634 Paragraphs inside divs (no extra line breaks)
15646 Paragraphs inside divs (extra line break on open)
15661 Paragraphs inside divs (extra line break on close)
15676 Paragraphs inside divs (extra line break on open and close)
15693 Nesting tags, paragraphs on lines which begin with <div>
15697 <div></div><strong>A
15706 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
15708 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
15710 <blockquote>Line one
15712 Line two</blockquote>
15714 <blockquote>Line one
15715 Line two</blockquote>
15720 Bug 6200: paragraphs inside blockquotes (extra line break on open)
15725 Line two</blockquote>
15730 Line two</blockquote>
15735 Bug 6200: paragraphs inside blockquotes (extra line break on close)
15737 <blockquote>Line one
15742 <blockquote>Line one
15750 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
15767 Paragraphs inside blockquotes/divs (no extra line breaks)
15769 <blockquote><div>Line one
15771 Line two</div></blockquote>
15773 <blockquote><div>Line one
15774 Line two</div></blockquote>
15779 Paragraphs inside blockquotes/divs (extra line break on open)
15784 Line two</div></blockquote>
15789 Line two</div></blockquote>
15794 Paragraphs inside blockquotes/divs (extra line break on close)
15796 <blockquote><div>Line one
15799 </div></blockquote>
15801 <blockquote><div>Line one
15804 </div></blockquote>
15809 Paragraphs inside blockquotes/divs (extra line break on open and close)
15815 </div></blockquote>
15821 </div></blockquote>
15826 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
15828 wgLinkHolderBatchSize=0
15834 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
15835 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
15836 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
15841 Free external link invading image caption
15843 [[Image:Foobar.jpg|thumb|http://x|hello]]
15845 <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>
15850 Bug 15196: localised external link numbers
15854 [http://en.wikipedia.org/]
15856 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
15861 Multibyte character in padleft
15863 {{padleft:-Hello|7|Æ}}
15870 Multibyte character in padright
15872 {{padright:Hello-|7|Æ}}
15879 formatdate parser function
15881 {{#formatdate:2009-03-24}}
15883 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
15888 formatdate parser function, with default format
15890 {{#formatdate:2009-03-24|mdy}}
15892 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
15897 Spacing of numbers in formatted dates
15899 {{#formatdate:January 15}}
15901 <p><span class="mw-formatted-date" title="01-15">January 15</span>
15906 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
15908 language=nl title=[[MediaWiki:Common.css]]
15910 {{#formatdate:2009-03-24|dmy}}
15912 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
15925 Edit comment with link
15929 I like the [[Main Page]] a lot
15931 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
15935 Edit comment with link and link text
15939 I like the [[Main Page|best pages]] a lot
15941 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
15945 Edit comment with link and link text with suffix
15949 I like the [[Main Page|best page]]s a lot
15951 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
15955 Edit comment with section link (non-local, eg in history list)
15957 comment title=[[Main Page]]
15959 /* External links */ removed bogus entries
15961 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
15965 Edit comment with section link and text before it (non-local, eg in history list)
15967 comment title=[[Main Page]]
15969 pre-comment text /* External links */ removed bogus entries
15971 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>
15975 Edit comment with section link (local, eg in diff view)
15977 comment local title=[[Main Page]]
15979 /* External links */ removed bogus entries
15981 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
15985 Edit comment with subpage link (bug 14080)
15989 title=[[Subpage test]]
15991 Poked at a [[/subpage]] here...
15993 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
15997 Edit comment with subpage link and link text (bug 14080)
16001 title=[[Subpage test]]
16003 Poked at a [[/subpage|neat little page]] here...
16005 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
16009 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
16012 title=[[Subpage test]]
16014 Poked at a [[/subpage]] here...
16016 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
16020 Edit comment with bare anchor link (local, as on diff)
16024 title=[[Main Page]]
16028 <a href="#section">#section</a>
16032 Edit comment with bare anchor link (non-local, as on history)
16035 title=[[Main Page]]
16039 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
16043 Anchor starting with underscore
16047 <p><a href="#_ref">One</a>
16052 Id starting with underscore
16054 <div id="_ref"></div>
16056 <div id="_ref"></div>
16061 Space normalisation on autocomment (bug 22784)
16064 title=[[Main Page]]
16066 /* __hello__world__ */
16068 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
16072 percent-encoding and + signs in comments (Bug 26410)
16076 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
16078 <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>
16082 Bad images - basic functionality
16091 Bad images - bug 16039: text after bad image disappears
16105 Verify that displaytitle works (bug #22501) no displaytitle
16109 wgAllowDisplayTitle=true
16110 wgRestrictDisplayTitle=false
16112 this is not the the title
16115 <p>this is not the the title
16120 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
16125 wgAllowDisplayTitle=true
16126 wgRestrictDisplayTitle=false
16128 this is not the the title
16129 {{DISPLAYTITLE:whatever}}
16132 <p>this is not the the title
16137 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
16142 wgAllowDisplayTitle=true
16143 wgRestrictDisplayTitle=true
16145 this is not the the title
16146 {{DISPLAYTITLE:whatever}}
16149 <p>this is not the the title
16154 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
16159 wgAllowDisplayTitle=true
16160 wgRestrictDisplayTitle=true
16162 this is not the the title
16163 {{DISPLAYTITLE:screen}}
16166 <p>this is not the the title
16171 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
16176 wgAllowDisplayTitle=false
16178 this is not the the title
16179 {{DISPLAYTITLE:screen}}
16182 <p>this is not the the title
16183 <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>
16188 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
16193 wgAllowDisplayTitle=false
16195 this is not the the title
16198 <p>this is not the the title
16203 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
16208 wgAllowDisplayTitle=true
16209 wgRestrictDisplayTitle=true
16211 this is not the the title
16212 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
16214 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
16215 <p>this is not the the title
16220 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
16225 wgAllowDisplayTitle=true
16226 wgRestrictDisplayTitle=true
16228 this is not the the title
16229 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
16231 <span style="color: red;">s</span>creen
16232 <p>this is not the the title
16237 preload: check <noinclude> and <includeonly>
16241 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
16247 preload: check <onlyinclude>
16251 Goodbye <onlyinclude>Hello world</onlyinclude>
16257 preload: can pass tags through if we want to
16261 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
16263 <includeonly>Hello world</includeonly>
16267 preload: check that it doesn't try to do tricks
16271 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16273 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16277 Play a bit with r67090 and bug 3158
16281 <div style="width:50% !important"> </div>
16282 <div style="width:50% !important"> </div>
16283 <div style="width:50% !important"> </div>
16284 <div style="border : solid;"> </div>
16286 <div style="width:50% !important"> </div>
16287 <div style="width:50% !important"> </div>
16288 <div style="width:50% !important"> </div>
16289 <div style="border : solid;"> </div>
16294 HTML5 data attributes
16296 <span data-foo="bar">Baz</span>
16297 <p data-abc-def_hij="">Quuz</p>
16299 <p><span data-foo="bar">Baz</span>
16301 <p data-abc-def_hij="">Quuz</p>
16306 percent-encoding and + signs in internal links (Bug 26410)
16308 [[User:+%]] [[Page+title%]]
16309 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
16310 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
16311 [[%33%45]] [[%33%45+]]
16313 <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>
16314 <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>
16315 <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>
16316 <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>
16321 Special characters in embedded file links (bug 27679)
16323 [[File:Contains & ampersand.jpg]]
16324 [[File:Does not exist.jpg|Title with & ampersand]]
16326 <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>
16327 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
16333 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
16335 Text's been normalized?
16337 <p>Text's been normalized?
16342 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
16344 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
16346 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
16351 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
16353 [http://www.example.org/ ideograms]
16355 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
16360 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
16362 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
16364 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
16388 Bug 31098 Template which includes system messages which includes the template
16392 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16393 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16398 Bug31490 Turkish: ucfirst 'blah'
16409 Bug31490 Turkish: ucfirst 'ix'
16420 Bug31490 Turkish: lcfirst 'BLAH'
16431 Bug31490 Turkish: ucfırst (with a dotless i)
16437 <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>
16442 Bug31490 ucfırst (with a dotless i) with English language
16448 <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>
16453 Bug 26375: TOC with italics
16455 title=[[Main Page]]
16458 == ''Lost'' episodes ==
16460 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16462 <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>
16466 <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>
16471 Bug 26375: TOC with bold
16473 title=[[Main Page]]
16476 == '''should be bold''' then normal text ==
16478 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16480 <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>
16484 <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>
16489 Bug 33845: Headings become cursive in TOC when they contain an image
16491 title=[[Main Page]]
16494 == Image [[Image:foobar.jpg]] ==
16496 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16498 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
16502 <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>
16507 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
16509 title=[[Main Page]]
16512 == <blockquote>Quote</blockquote> ==
16514 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16516 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
16520 <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>
16525 Unclosed tags in TOC
16527 title=[[Main Page]]
16531 <small>Hanc marginis exiguitas non caperet.</small>
16534 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16536 <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>
16540 <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>
16541 <p><small>Hanc marginis exiguitas non caperet.</small>
16547 Multiple tags in TOC
16550 == <i>Foo</i> <b>Bar</b> ==
16552 == <i>Foo</i> <blockquote>Bar</blockquote> ==
16554 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16556 <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>
16557 <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>
16561 <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>
16562 <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>
16567 Tags with parameters in TOC
16570 == <sup class="in-h2">Hello</sup> ==
16572 == <sup class="a > b">Evilbye</sup> ==
16574 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16576 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
16577 <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>
16581 <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>
16582 <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>
16587 span tags with directionality in TOC
16590 == <span dir="ltr">C++</span> ==
16592 == <span dir="rtl">זבנג!</span> ==
16594 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
16596 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
16598 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
16600 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16602 <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>
16603 <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>
16604 <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>
16605 <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>
16606 <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>
16610 <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>
16611 <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>
16612 <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>
16613 <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>
16614 <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>
16621 == {{int:headline_sample}} ==
16625 Bug 32057: Title needed when expanding <h> nodes.
16627 title=[[Main Page]]
16631 <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>
16636 Strip marker in urlencode
16638 {{urlencode:x<nowiki/>y}}
16639 {{urlencode:x<nowiki/>y|wiki}}
16640 {{urlencode:x<nowiki/>y|path}}
16667 Strip marker in formatNum
16669 {{formatnum:1<nowiki/>2}}
16670 {{formatnum:1<nowiki/>2|R}}
16678 Check noCommafy in formatNum
16682 {{formatnum:123456.78}}
16683 {{formatnum:123456.78|NOSEP}}
16691 Strip marker in grammar
16695 {{grammar:elative|foo<nowiki/>bar}}
16702 Strip marker in padleft
16704 {{padleft:|2|x<nowiki/>y}}
16711 Strip marker in padright
16713 {{padright:|2|x<nowiki/>y}}
16720 Strip marker in anchorencode
16722 {{anchorencode:x<nowiki/>y}}
16729 nowiki inside link inside heading (bug 18295)
16731 ==[[foo|x<nowiki>y</nowiki>z]]==
16733 <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>
16738 new support for bdi element (bug 31817)
16740 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
16742 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
16747 Ignore pipe between table row attributes
16751 |- id=foo | style='color: red'
16759 <tr id="foo" style="color: red">
16766 Gallery override link with WikiLink (bug 34852)
16769 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
16772 <ul class="gallery mw-gallery-traditional">
16773 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16774 <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>
16775 <div class="gallerytext">
16785 Gallery override link with absolute external link (bug 34852)
16788 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
16791 <ul class="gallery mw-gallery-traditional">
16792 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16793 <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>
16794 <div class="gallerytext">
16804 Gallery override link with malicious javascript (bug 34852)
16807 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
16810 <ul class="gallery mw-gallery-traditional">
16811 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16812 <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>
16813 <div class="gallerytext">
16823 Gallery with invalid title as link (bug 43964)
16826 File:foobar.jpg|link=<
16829 <ul class="gallery mw-gallery-traditional">
16830 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16831 <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>
16832 <div class="gallerytext">
16840 Language parser function
16849 Padleft and padright as substr
16851 {{padleft:|3|abcde}}
16852 {{padright:|3|abcde}}
16860 Special parser function
16862 {{#special:RandomPage}}
16863 {{#special:BaDtItLe}}
16864 {{#special:Foobar}}
16873 Bug 34939 - Case insensitive link parsing ([HttP://])
16875 [HttP://MediaWiki.Org/]
16877 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
16882 Bug 34939 - Case insensitive link parsing ([HttP:// title])
16884 [HttP://MediaWiki.Org/ MediaWiki]
16886 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
16891 Bug 34939 - Case insensitive link parsing (HttP://)
16893 HttP://MediaWiki.Org/
16895 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
16914 <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>
16915 <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=2" title="Edit section: Section 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16916 <h2><span class="mw-headline" id="Section_3">Section 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: Section 3">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16917 <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=4" title="Edit section: Section 4">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16918 <h2><span class="mw-headline" id="Section_5">Section 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: Section 5">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
16924 ### Parsoids-specific tests
16925 ### Parsoid-PHP parser incompatibilities
16928 1. SOL-sensitive wikitext tokens as template-args
16930 parsoid=wt2html,wt2wt
16936 <span about="#mwt1" typeof="mw:Transclusion">
16937 </span><ul about="#mwt1"><li>a</li>
16939 <span about="#mwt2" typeof="mw:Transclusion">
16940 </span><ol about="#mwt2"><li>a</li>
16942 <span about="#mwt3" typeof="mw:Transclusion">
16943 </span><dl about="#mwt3"><dd>a</dd>
16947 #### ----------------------------------------------------------------
16948 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
16949 #### tags. Parsoid's output for these tags differs from that of the
16951 #### ----------------------------------------------------------------
16954 Ref: 1. ref-location should be replaced with an index span
16959 B <ref name="x">foo</ref>
16962 <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>
16963 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>
16964 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>
16968 Ref: 2. ref-tags with identical names should all get the same index
16972 A <ref name="x">foo</ref>
16975 <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>
16976 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>
16980 Ref: 3. spaces in ref-names should be ignored
16984 A <ref name="x">foo</ref>
16985 B <ref name=" x " />
16988 <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>
16989 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>
16990 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>
16994 Ref: 4. 'constructor' should be accepted as a valid ref-name
16995 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
16999 A <ref name="constructor">foo</ref>
17001 <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>
17005 Ref: 5. body should accept generic wikitext
17010 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
17015 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid='{\"dsr\":[19,40,3,3]}'><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" data-parsoid='{\"stx\":\"simple\",\"a\":{\"href\":\"./Bolded_link\"},\"sa\":{\"href\":\"bolded link\"},\"dsr\":[22,37,2,2]}'>bolded link</a></b> and this is a <span about=\"#mwt5\" typeof=\"mw:Transclusion\" data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"echo\",\"href\":\"./Template:Echo\"},\"params\":{\"1\":{\"wt\":\"transclusion\"}},\"i\":0}}]}' data-parsoid='{\"dsr\":[55,76,null,null],\"pi\":[[{\"k\":\"1\",\"spc\":[\"\",\"\",\"\",\"\"]}]]}'>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>
17017 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
17018 <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="#mwt5" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}'>transclusion</span>
17024 Ref: 6. indent-pres should not be output in ref-body
17036 <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>
17038 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
17039 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17047 Ref: 7. No p-wrapping in ref-body
17066 <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>
17068 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17069 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17084 Ref: 8. transclusion wikitext has lower precedence
17088 A <ref> foo {{echo|</ref> B C}}
17092 <p>A <span class="reference" data-mw="{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid='{\"src\":\"{{\",\"dsr\":[12,14,0,0]}'>{{</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>
17093 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
17094 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <span typeof="mw:Nowiki">{{</span>echo|</li>
17099 Ref: 9. unclosed comments should not leak out of ref-body
17103 A <ref> foo <!--</ref> B C
17106 <p>A <span 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>
17107 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17108 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
17113 Ref: 10. Unclosed HTML tags should not leak out of ref-body
17117 A <ref> <b> foo </ref> B C
17121 <p data-parsoid='{"dsr":[0,26,0,0]}'>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"<b data-parsoid='{\"stx\":\"html\",\"autoInsertedEnd\":true,\"dsr\":[8,16,3,0]}'> foo </b>"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref> <b> foo </ref>","dsr":[2,22,5,6]}'><a href="#cite_note-1">[1]</a></span> B C</p>
17124 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />","dsr":[28,42,2,2]}' data-mw='{"name":"references","attrs":{}}'>
17125 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b data-parsoid='{"stx":"html","autoInsertedEnd":true,"dsr":[8,16,3,0]}'> foo </b></li>
17130 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
17137 <p data-parsoid='{"dsr":[0,37,0,0]}'>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" data-parsoid='{"src":"<ref>foo</ref>","dsr":[2,16,5,6]}'><a href="#cite_note-1">[1]</a></span> B
17138 C <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bar</ref>","dsr":[21,35,5,6]}'><a href="#cite_note-2">[2]</a></span> D</p>
17142 Ref: 12. ref-tags act as trailing newline migration barrier
17146 <!--the newline at the end of this line moves out of the p-tag-->a
17148 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
17153 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
17156 <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>
17157 <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>
17164 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
17172 <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
17173 <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>
17177 Ref: 14. A nested ref-tag should be emitted as plain text
17181 <ref>foo <ref>bar</ref> baz</ref>
17185 <p data-parsoid='{"dsr":[0,33,0,0]}'><span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo &lt;ref>bar&lt;/ref> baz"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>foo <ref>bar</ref> baz</ref>","dsr":[0,33,5,6]}'><a href="#cite_note-1">[1]</a></span></p>
17187 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />","dsr":[35,49,2,2]}' data-mw='{"name":"references","attrs":{}}'>
17188 <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>
17193 Ref: 15. ref-tags with identical names should get identical indexes
17197 A1 <ref name="a">foo</ref> A2 <ref name="a" />
17198 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
17202 <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>
17203 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>
17205 <ol about="#mwt10" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><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>
17209 ## We don't bother wt2wt-ing non-standard whitespace
17211 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
17219 <p>A <span 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>
17221 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17222 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
17226 References: 1. references tag without any refs should be handled properly
17232 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
17236 References: 2. references tag with group only outputs references from that group
17240 A <ref group="a">foo</ref>
17241 B <ref group="b">bar</ref>
17243 <references group="a" />
17245 <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>
17246 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>
17248 <ol about="#mwt6" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{"group":"a"}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li>
17253 References: 3. ref list should be cleared after processing references
17265 <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>
17267 <ol about="#mwt4" class="references" typeof="mw:Extension/references" 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</li>
17270 <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>
17272 <ol about="#mwt8" class="references" typeof="mw:Extension/references" 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> bar</li>
17277 References: 4. only referenced group should be cleared after processing references
17281 A <ref group="a">afoo</ref>
17284 <references group="a" />
17290 <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>
17291 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>
17293 <ol about="#mwt6" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{"group":"a"}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> afoo</li>
17296 <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>
17298 <ol about="#mwt10" class="references" typeof="mw:Extension/references" 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> 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>
17303 References: 5. ref tags in references should be processed while ignoring all other content
17308 B <ref name="b">bar</ref>
17311 <ref name="a">foo</ref>
17312 This should just get lost.
17315 <p data-parsoid='{"dsr":[0,57,0,0]}'>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" data-parsoid='{"src":"<ref name=\"a\" />","dsr":[2,18,16,0]}'><a href="#cite_note-a-1">[1]</a></span>
17316 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" data-parsoid='{"src":"<ref name=\"b\">bar</ref>","dsr":[21,44,14,6]}'><a href="#cite_note-b-2">[2]</a></span></p>
17319 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-parsoid='{"src":"<references>\n<ref name=\"a\">foo</ref>\nThis should just get lost.\n</references>","dsr":[46,123,2,2]}' data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost.","html":"\n<span about=\"#mwt8\" class=\"reference\" data-mw='{\"name\":\"ref\",\"body\":{\"html\":\"foo\"},\"attrs\":{\"name\":\"a\"}}' rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-a-1\">[1]</a></span>\n"},"attrs":{}}'>
17320 <li about="#cite_note-a-1" id="cite_note-a-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-a-1-0">↑</a></span> foo</li>
17321 <li about="#cite_note-b-2" id="cite_note-b-2" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> bar</li>
17326 References: 6. <references /> from a transclusion
17330 <ref>Foo</ref> {{echo|<references />}}
17332 <span about="#mwt3" 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> <ol class="references" typeof="mw:Extension/references mw:Transclusion" about="#mwt4" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}}]}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> Foo</li></ol>
17336 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
17340 A <ref>foo bar for a</ref>
17346 <ref name="b">foo</ref>
17349 <p data-parsoid='{"dsr":[0,45,0,0]}'>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" data-parsoid='{"src":"<ref>foo bar for a</ref>","dsr":[2,26,5,6]}'><a href="#cite_note-1">[1]</a></span>
17350 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" data-parsoid='{"src":"<ref name=\"b\" />","dsr":[29,45,16,0]}'><a href="#cite_note-b-2">[2]</a></span></p>
17353 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-parsoid='{"src":"<references />","dsr":[47,61,2,2]}' data-mw='{"name":"references","attrs":{}}'>
17354 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo bar for a</li>
17355 <li about="#cite_note-b-2" id="cite_note-b-2" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> </li></ol>
17358 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-parsoid='{"src":"<references>\n<ref name=\"b\">foo</ref>\n</references>","dsr":[63,113,2,2]}' data-mw='{"name":"references","body":{"extsrc":"<ref name=\"b\">foo</ref>","html":"\n<span about=\"#mwt10\" class=\"reference\" data-mw='{\"name\":\"ref\",\"body\":{\"html\":\"foo\"},\"attrs\":{\"name\":\"b\"}}' rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-b-1\">[1]</a></span>\n"},"attrs":{}}'>
17359 <li about="#cite_note-b-1" id="cite_note-b-1" data-parsoid="{}"><span rel="mw:referencedBy">↑</span> foo</li>
17363 #### ----------------------------------------------------------------
17364 #### The following section of tests are primarily to test
17365 #### wikitext escaping capabilities of Parsoid. Given that
17366 #### escaping can be done any number of ways, the wikitext (input)
17367 #### is always adjusted to reflect how Parsoid adds nowiki
17370 #### We are marking several tests as parsoid-only since the
17371 #### HTML in the result section is different from what the
17372 #### PHP parser generates for it.
17373 #### ----------------------------------------------------------------
17376 #### --------------- Headings ---------------
17378 #### 1. Nested inside html <h1>=foo=</h1>
17379 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
17380 #### 3. Nested inside html with wikitext split by html tags
17381 #### 4. No escape needed
17382 #### 5. Empty headings <h1></h1>
17383 #### 6. Heading chars in SOL context
17384 #### ----------------------------------------
17386 Headings: 0. Unnested
17390 <nowiki>=foo=</nowiki>
17392 <nowiki> =foo= </nowiki>
17394 <nowiki>=foo=</nowiki>
17396 =foo''a''<nowiki>=</nowiki>
17398 <p><span typeof="mw:Nowiki">=foo=</span></p>
17400 <p><span typeof="mw:Nowiki"> =foo= </span>
17402 <span typeof="mw:Nowiki">=foo=</span></p>
17404 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
17408 Headings: 1. Nested inside html
17409 (New headings and existing headings are handled differently)
17419 =<nowiki>=foo=</nowiki>=
17420 ==<nowiki>=foo=</nowiki>==
17421 ===<nowiki>=foo=</nowiki>===
17422 ====<nowiki>=foo=</nowiki>====
17423 =====<nowiki>=foo=</nowiki>=====
17424 ======<nowiki>=foo=</nowiki>======
17431 <h1 data-parsoid='{}'>=foo=</h1>
17432 <h2 data-parsoid='{}'>=foo=</h2>
17433 <h3 data-parsoid='{}'>=foo=</h3>
17434 <h4 data-parsoid='{}'>=foo=</h4>
17435 <h5 data-parsoid='{}'>=foo=</h5>
17436 <h6 data-parsoid='{}'>=foo=</h6>
17440 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
17445 <nowiki>*</nowiki>bar
17451 <nowiki>=bar=</nowiki>
17459 Headings: 3. Nested inside html with wikitext split by html tags
17463 = ='''bold'''<nowiki>foo=</nowiki> =
17465 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
17469 Headings: 4a. No escaping needed (testing just h1 and h2)
17487 = <nowiki>=</nowiki> =
17495 <h1><i>=</i>foo=</h1>
17496 <h1><span typeof="mw:Nowiki">=</span></h1>
17500 Headings: 4b. No escaping needed (inside p-tags)
17515 Headings: 5. Empty headings
17527 =====<nowiki/>=====
17529 ======<nowiki/>======
17540 Headings: 6a. Heading chars in SOL context (with trailing spaces)
17544 <nowiki>=a=</nowiki>
17546 <nowiki>=a=</nowiki>
17548 <nowiki>=a=</nowiki>
17550 <nowiki>=a=</nowiki>
17559 Headings: 6b. Heading chars in SOL context (with trailing newlines)
17587 Headings: 6c. Heading chars in SOL context (leading newline break)
17592 <nowiki>=b=</nowiki>
17599 Headings: 6d. Heading chars in SOL context (with interspersed comments)
17603 <!--c0--><nowiki>=a=</nowiki>
17605 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
17607 <p><!--c0-->=a=</p>
17608 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
17612 Headings: 6d. Heading chars in SOL context (No escaping needed)
17621 #### --------------- Lists ---------------
17622 #### 0. Outside nests (*foo, etc.)
17623 #### 1. Nested inside html <ul><li>*foo</li></ul>
17624 #### 2. Inside definition lists
17625 #### 3. Only bullets at start should be escaped
17626 #### 4. No escapes needed
17627 #### 5. No unnecessary escapes
17628 #### 6. Escape bullets in SOL position
17629 #### 7. Escape bullets in a multi-line context
17630 #### ----------------------------------------
17633 Lists: 0. Outside nests
17635 <nowiki>*</nowiki>foo
17637 <nowiki>#</nowiki>foo
17645 Lists: 1. Nested inside html
17647 *<nowiki>*foo</nowiki>
17649 *<nowiki>#foo</nowiki>
17651 *<nowiki>:foo</nowiki>
17653 *<nowiki>;foo</nowiki>
17655 #<nowiki>*foo</nowiki>
17657 #<nowiki>#foo</nowiki>
17659 #<nowiki>:foo</nowiki>
17661 #<nowiki>;foo</nowiki>
17699 Lists: 2. Inside definition lists
17701 ;<nowiki>;foo</nowiki>
17703 ;<nowiki>:foo</nowiki>
17705 ;<nowiki>:foo</nowiki>
17708 :<nowiki>:foo</nowiki>
17732 Lists: 3. Only bullets at start of text should be escaped
17734 *<nowiki>*foo*bar</nowiki>
17736 *<nowiki>*foo</nowiki>''it''*bar
17743 <li>*foo<i>it</i>*bar
17750 Lists: 4. No escapes needed
17771 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
17775 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
17781 Lists: 5. No unnecessary escapes
17783 * bar <span><nowiki>[[foo]]</nowiki></span>
17785 *=bar <span><nowiki>[[foo]]</nowiki></span>
17787 *[[bar <span><nowiki>[[foo]]</nowiki></span>
17789 *]]bar <span><nowiki>[[foo]]</nowiki></span>
17791 *=bar <span>foo]]</span>=
17796 <li> bar <span>[[foo]]</span>
17800 <li>=bar <span>[[foo]]</span>
17804 <li>[[bar <span>[[foo]]</span>
17808 <li>]]bar <span>[[foo]]</span>
17812 <li>=bar <span>foo]]</span>=
17823 Lists: 6. Escape bullets in SOL position
17827 <!--cmt--><nowiki>*foo</nowiki>
17829 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
17833 Lists: 7. Escape bullets in a multi-line context
17836 <nowiki>*</nowiki>b
17843 #### --------------- HRs ---------------
17844 #### 1. Single line
17845 #### -----------------------------------
17848 HRs: 1. Single line
17852 ----<nowiki>----</nowiki>
17856 <hr><span typeof="mw:Nowiki">----</span>
17861 #### --------------- Tables ---------------
17862 #### 1a. Simple example
17863 #### 1b. No escaping needed (!foo)
17864 #### 1c. No escaping needed (|foo)
17865 #### 1d. No escaping needed (|}foo)
17867 #### 2a. Nested in td (<td>foo|bar</td>)
17868 #### 2b. Nested in td (<td>foo||bar</td>)
17869 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
17871 #### 3a. Nested in th (<th>foo!bar</th>)
17872 #### 3b. Nested in th (<th>foo!!bar</th>)
17873 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
17877 #### 4c. No escaping needed
17878 #### --------------------------------------
17881 Tables: 1a. Simple example
17892 Tables: 1b. No escaping needed
17901 Tables: 1c. No escaping needed
17910 Tables: 1d. No escaping needed
17919 Tables: 2a. Nested in td
17924 |<nowiki>foo|bar</nowiki>
17926 |x<div><nowiki>a|b</nowiki></div>
17930 <td>foo|bar</td></tr>
17931 <tr><td>x<div>a|b</div></td>
17936 Tables: 2b. Nested in td
17941 |<nowiki>foo||bar</nowiki>
17942 |''it''<nowiki>foo||bar</nowiki>
17946 <td><span typeof="mw:Nowiki">foo||bar</span></td>
17947 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
17951 Tables: 2c. Nested in td -- no escaping needed
17959 <table><tbody><tr><td>foo!!bar
17960 </td></tr></tbody></table>
17965 Tables: 3a. Nested in th
17973 <table><tbody><tr><th>foo!bar
17974 </th></tr></tbody></table>
17979 Tables: 3b. Nested in th
17984 !<nowiki>foo!!bar</nowiki>
17988 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
17993 Tables: 3c. Nested in th -- no escaping needed
17998 !<nowiki>foo||bar</nowiki>
18002 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
18006 Tables: 4a. Escape -
18013 |<nowiki>-bar</nowiki>
18017 <tr><th>-bar</th></tr>
18019 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
18023 Tables: 4b. Escape +
18030 |<nowiki>+bar</nowiki>
18034 <tr><th>+bar</th></tr>
18036 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
18040 Tables: 4c. No escaping needed
18061 <tr><td>foo-bar</td><td>foo+bar</td></tr>
18062 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
18068 <div>a|b</div></td>
18073 Tables: 4d. No escaping needed
18084 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
18085 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
18086 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
18090 #### --------------- Links ----------------
18091 #### 1. Quote marks in link text
18092 #### 2. Wikilinks: Escapes needed
18093 #### 3. Wikilinks: No escapes needed
18094 #### 4. Extlinks: Escapes needed
18095 #### 5. Extlinks: No escapes needed
18096 #### --------------------------------------
18098 Links 1. Quote marks in link text
18102 [[Foo|Foo<nowiki>''boo''</nowiki>]]
18104 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
18108 Links 2. WikiLinks: Escapes needed
18112 [[Foo|<nowiki>[Foobar]</nowiki>]]
18113 [[Foo|<nowiki>Foobar]</nowiki>]]
18114 [[Foo|x [Foobar] x]]
18115 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
18116 [[Foo|<nowiki>[[Bar]]</nowiki>]]
18117 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
18118 [[Foo|<nowiki>|Bar</nowiki>]]
18119 [[Foo|<nowiki>]]bar</nowiki>]]
18120 [[Foo|<nowiki>[[bar</nowiki>]]
18121 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
18123 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
18124 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
18125 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
18126 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
18127 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
18128 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
18129 <a href="Foo" rel="mw:WikiLink">|Bar</a>
18130 <a href="Foo" rel="mw:WikiLink">]]bar</a>
18131 <a href="Foo" rel="mw:WikiLink">[[bar</a>
18132 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
18136 Links 3. WikiLinks: No escapes needed
18143 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
18144 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
18148 Links 4. ExtLinks: Escapes needed
18152 [http://google.com <nowiki>[google]</nowiki>]
18153 [http://google.com <nowiki>google]</nowiki>]
18155 <nowiki>[http://google.com]</nowiki>
18157 <nowiki>[http://google.com google]</nowiki>
18160 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
18161 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
18162 <p>[http://google.com]</p>
18163 <p>[http://google.com google]</p>
18167 Links 5. ExtLinks: No escapes needed
18171 [http://google.com [google]
18173 <a href="http://google.com" rel="mw:ExtLink">[google</a>
18176 #### --------------- Quotes ---------------
18177 #### 1. Quotes inside <b> and <i>
18178 #### 2. Link fragments separated by <i> and <b> tags
18179 #### 3. Link fragments inside <i> and <b>
18180 #### 4. No escaping needed
18181 #### --------------------------------------
18183 1. Quotes inside <b> and <i>
18185 parsoid=html2wt,wt2wt
18187 ''<nowiki>'foo'</nowiki>''
18188 ''<nowiki>''foo''</nowiki>''
18189 ''<nowiki>'''foo'''</nowiki>''
18191 '''<nowiki>'foo'</nowiki>'''
18192 '''<nowiki>''foo''</nowiki>'''
18193 '''<nowiki>'''foo'''</nowiki>'''
18194 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
18195 '''foo'''<nowiki/>'s
18198 '<nowiki/>''foo''<nowiki/>'
18200 '''foo'''<nowiki/>'
18201 '<nowiki/>'''foo'''<nowiki/>'
18202 ''fools'<span> errand</span>''
18203 ''<span>fool</span>'s errand''
18212 <b>foo'<i>bar'</i>baz</b>
18220 <i>fools'<span> errand</span></i>
18221 <i><span>fool</span>'s errand</i>
18225 2. Link fragments separated by <i> and <b> tags
18227 [[''foo''<nowiki>hello]]</nowiki>
18229 [['''foo'''<nowiki>hello]]</nowiki>
18231 <p>[[<i>foo</i>hello]]
18232 </p><p>[[<b>foo</b>hello]]
18237 3. Link fragments inside <i> and <b>
18238 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
18239 this is one of the shortcomings of this format)
18241 ''[[foo''<nowiki>]]</nowiki>
18243 '''[[foo'''<nowiki>]]</nowiki>
18246 </p><p><b>[[foo</b>]]
18251 4. No escaping needed
18253 '<span>''bar''</span>'
18254 '<span>'''bar'''</span>'
18256 <p>'<span><i>bar</i></span>'
18257 '<span><b>bar</b></span>'
18261 #### ----------- Paragraphs ---------------
18262 #### 1. No unnecessary escapes
18263 #### --------------------------------------
18266 1. No unnecessary escapes
18268 bar <span><nowiki>[[foo]]</nowiki></span>
18270 =bar <span><nowiki>[[foo]]</nowiki></span>
18272 [[bar <span><nowiki>[[foo]]</nowiki></span>
18274 ]]bar <span><nowiki>[[foo]]</nowiki></span>
18276 =bar <span>foo]]</span><nowiki>=</nowiki>
18278 <p>bar <span>[[foo]]</span>
18279 </p><p>=bar <span>[[foo]]</span>
18280 </p><p>[[bar <span>[[foo]]</span>
18281 </p><p>]]bar <span>[[foo]]</span>
18282 </p><p>=bar <span>foo]]</span>=
18286 #### ----------------------- PRE --------------------------
18287 #### 1. Leading whitespace in SOL context should be escaped
18288 #### ------------------------------------------------------
18290 1. Leading whitespace in SOL context should be escaped
18294 <nowiki> </nowiki>a
18296 <nowiki> </nowiki> a
18298 <nowiki> </nowiki>a(tab)
18300 <nowiki> </nowiki> a
18302 <nowiki> </nowiki> a
18305 <nowiki> </nowiki>b
18308 <nowiki> </nowiki>b
18311 <nowiki> </nowiki> b
18317 <p><!--cmt--> a</p>
18326 #### --------------- Behavior Switches --------------------
18328 1. Valid behavior switches should be escaped
18332 <nowiki>__TOC__</nowiki>
18338 2. Invalid behavior switches should not be escaped
18349 #### --------------- HTML tags ---------------
18352 #### 3. multi-line html tag
18353 #### 4. extension tags
18354 #### -----------------------------------------
18360 <a href="http://google.com">google</a>
18362 <a href="http://google.com">google</a>
18368 <nowiki><div>foo</div>
18369 <div style="color:red">foo</div></nowiki>
18371 <p><div>foo</div>
18372 <div style="color:red">foo</div>
18377 3. multi-line html tag
18392 <nowiki><ref>foo</ref></nowiki>
18394 <nowiki><ref>bar</nowiki>
18396 baz<nowiki></ref></nowiki>
18398 <p><ref>foo</ref>
18399 </p><p><ref>bar
18400 </p><p>baz</ref>
18404 #### --------------- Others ---------------
18408 <nowiki>foo</nowiki>
18410 <p><nowiki>foo</nowiki>
18414 ## The quote-char in the input is necessary for triggering the bug
18416 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
18418 parsoid=wt2wt,html2wt
18427 Tag-like HTML structures are passed through as text
18449 </p><p>1<d e>f
18454 # This was a bug in the PHP parser (see bug 17663 and its dups,
18455 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
18457 Tag names followed by punctuation should not be recognized as tags
18461 <p><s.ome> text
18466 HTML tag with necessary entities in attributes
18468 <span title="&amp;">foo</span>
18470 <p><span title="&amp;">foo</span>
18475 HTML tag with 'unnecessary' entity encoding in attributes
18477 <span title="&">foo</span>
18479 <p><span title="&">foo</span>
18484 HTML tag with broken attribute value quoting
18486 <span title="Hello world>Foo</span>
18488 <p><span>Foo</span>
18493 Parsoid-only: HTML tag with broken attribute value quoting
18497 <span title="Hello world>Foo</span>
18499 <p><span title="Hello world">Foo</span>
18504 Table with broken attribute value quoting
18507 | title="Hello world|Foo
18518 Table with broken attribute value quoting on consecutive lines
18521 | title="Hello world|Foo
18522 | style="color:red|Bar
18535 Parsoid-only: Table with broken attribute value quoting on consecutive lines
18540 | title="Hello world|Foo
18541 | style="color:red|Bar
18546 <td title="Hello world">Foo
18547 </td><td style="color: red">Bar
18548 </td></tr></tbody></table>
18553 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18563 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
18573 Accept empty td cell attribute
18576 | align="center" | foo || |
18581 <td align="center"> foo </td>
18588 Non-empty attributes in th-cells
18591 ! Foo !! style="color: red" | Bar
18597 <th style="color: red"> Bar
18603 Accept empty attributes in th-cells
18618 Empty table rows go away
18639 ### Parsoid-centric tests for testing RTing of inter-element separators
18640 ### Edge cases not tested by existing parser tests and specific to
18641 ### Parsoid-specific serialization strategies.
18645 RT-ed inter-element separators should be valid separators
18658 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
18659 (Parsoid-only since PHP parser relies on Tidy for correct output)
18675 Empty TD followed by TD with tpl-generated attribute
18680 |{{echo|style='color:red'}}|foo
18694 Indented table with an empty td
18713 Empty TR followed by a template-generated TR
18714 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
18720 {{echo|<tr><td>foo</td></tr>}}
18726 <tr about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<tr><td>foo</td></tr>"}},"i":0}}]}'>
18731 ## PHP and parsoid output differ for this, and since this is primarily
18732 ## for testing Parsoid's serializer, marking this Parsoid only
18734 Empty TR followed by mixed-ws-comment line should RT correctly
18750 <!--c--> </tr><!--d-->
18756 Multi-line image caption generated by templates with/without trailing newlines
18760 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
18761 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
18763 <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>
18764 <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>
18768 ## PHP emits broken html for this, and since this is primarily
18769 ## a Parsoid serializer test, marking this Parsoid only
18771 Improperly nested inline or quotes tags with whitespace in between
18775 <span> <s>x</span> </s>
18778 <p><span> <s>x</s></span><s> </s>
18779 <b> <i>x</i></b><i> </i>
18784 Encapsulate protected attributes from wt
18788 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
18790 <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>
18794 ## Currently the p-wrapper is fragile in how adds / removes transformations.
18795 ## Having nested or stray pre tags results in the attempt to add duplicates,
18796 ## causing an assertion fail. This test tries to prevent that situation.
18798 Ensure ParagraphWrapper can deal with stray closing pre tags
18808 Ensure fostered text content is wrapped in spans
18812 <table>hi</table><table>ho</table>
18821 Encapsulation properly handles null DSR information from foster box
18823 parsoid=wt2html,wt2wt
18825 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
18827 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
18830 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
18834 <td>bar</td></tr></tbody></table>
18838 1. Encapsulate foster-parented transclusion content
18840 parsoid=wt2wt,wt2html
18842 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
18844 <span typeof="mw:Transclusion" data-mw="{"parts":["
18845 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
18847 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
18851 <td>bar</td></tr></tbody></table>
18855 2. Encapsulate foster-parented transclusion content
18857 parsoid=wt2wt,wt2html
18859 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
18861 <div typeof="mw:Transclusion" data-mw="{"parts":["
18863 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
18865 <td>bar</td></tr></table>"]}">foo</div>
18869 <td>bar</td></tr></tbody></table>
18873 3. Encapsulate foster-parented transclusion content
18875 parsoid=wt2wt,wt2html
18877 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
18879 <div typeof="mw:Transclusion" data-mw="{"parts":["
18882 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
18884 <td>"}},"i":0}},"bar</td></tr></table>"]}">
18889 <td>bar</td></tr></tbody></table>
18893 4. Encapsulate foster-parented transclusion content
18895 parsoid=wt2wt,wt2html
18897 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
18899 <div typeof="mw:Transclusion" data-mw="{"parts":["
18902 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
18904 <td>"}},"i":0}},"bar</td></tr></table>"]}">
18909 <td>bar</td></tr></tbody></table>
18913 5. Encapsulate foster-parented transclusion content
18915 parsoid=wt2wt,wt2html
18917 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
18919 <span typeof="mw:Transclusion" data-mw="{"parts":["
18924 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
18930 <p>foo</p></div></td></tr></tbody></table>
18934 6. Encapsulate foster-parented transclusion content
18936 parsoid=wt2wt,wt2html
18938 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
18940 <span typeof="mw:Transclusion" data-mw="{"parts":["
18945 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
18951 <p>foo</p></div></td></tr></tbody></table>
18956 7. Encapsulate foster-parented transclusion content
18958 parsoid=wt2wt,wt2html
18960 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
18962 <p typeof="mw:Transclusion" data-mw="{"parts":["
18963 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
18964 <p>foo</p>"}},"i":0}},"
18965 <td>bar</td></table>"]}">foo</p>
18969 <td>bar</td></tr></tbody></table>
18973 8. Encapsulate foster-parented transclusion content
18975 parsoid=wt2wt,wt2html
18978 }}{|{{echo|style='color:red'}}
18983 <p typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\n"}},"i":0}}]}">a</p><span typeof="mw:Transclusion" data-mw="{"parts":["{|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"style":{"wt":"'color:red'"}},"i":0}},"\n|-\n|b\n|}"]}">{{{1}}}</span>
18987 <td>b</td></tr></tbody></table>
18991 Table in fosterable position
18993 parsoid=wt2html,wt2wt
19002 <div about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"OpenTable","href":"./Template:OpenTable"},"params":{},"i":0}},"\n<div>"]}' data-parsoid='{"stx":"html","autoInsertedEnd":true,"dsr":[0,19,null,null],"src":"{{OpenTable}}\n<div>","pi":[[]]}'></div><span about="#mwt1" data-parsoid="{}">
19004 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true,"dsr":[null,19,2,0]}'></table>
19006 <table data-parsoid='{"dsr":[20,25,2,2]}'>
19010 # -----------------------------------------------------------------
19011 # The following section of tests are primarily to spec requirements
19012 # around serialization of new/edited content.
19014 # All these tests are marked Parsoid html2wt and html2html only
19015 # ----------------------------------------------------------------
19018 Image: Modifying size of an image
19022 [[Image:Wiki.png|230x230px]]
19024 <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>
19028 Image: New block level image should have \n before and after
19033 [[File:Wiki.png|right|thumb|150x150px]]
19036 <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>
19040 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
19047 <li><p>foo</p></li>
19052 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
19058 <ul> <li>foo</li></ul>
19062 Don't strip leading whitespace when handling indent-pre suppressing tags
19070 '''This is very bold of you!'''
19074 indented cell (no pre-wrapping!)
19081 <tr><td> indented row</td></tr>
19084 <b>This is very bold of you!</b>
19087 indented cell (no pre-wrapping!)
19095 Strip leading whitespace when handling indent-pre inducing tags
19127 Lists: Add space after bullets
19133 * <span> baz</span>
19138 <li><span> baz</span></li>
19143 Headings: Add space before/after == (Bug 51744)
19153 == <span> baz</span> ==
19158 <h2><span> baz</span></h2>
19162 Parsoid: Serialize positional parameters with = in them as named parameter
19168 {{echo|1 = f=oo|2 = bar}}
19170 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19171 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19172 {{echo|<nowiki>f=oo</nowiki>|bar}}
19174 <p about="#mwt1" typeof="mw:Transclusion"
19175 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
19177 <p about="#mwt1" typeof="mw:Transclusion"
19178 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
19180 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19181 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19182 <p data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]},{"k":"2","spc":["","","",""]}]]}' about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"},"2":{"wt":"bar"}},"i":0}}]}'>foo</p>
19186 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
19202 <div>a<p>b</p></div>
19210 #-----------------------------
19211 # I/B quote minimization tests
19212 #-----------------------------
19215 1. I/B quote minimization: wikitext-only tags should be combined
19235 <p><i>A</i><i>B</i></p>
19236 <p><b>A</b><b>B</b></p>
19237 <p><i>A</i><b><i>B</i></b></p>
19238 <p><b>A</b><i><b>B</b></i></p>
19239 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
19240 <p><i><b>A</b></i><i><b>B</b></i></p>
19241 <p><i><b>A</b></i><b><i>B</i></b></p>
19242 <p><b><i>A</i></b><i><b>B</b></i></p>
19246 2. I/B quote minimization: wikitext and html tags should not be combined
19252 ''A'''''<i>B</i>'''
19254 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
19255 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
19259 3. I/B quote minimization: templated content stops minimization
19263 ''A''{{echo|''B''}}
19265 ''A''{{echo|'''''B'''''}}
19267 <p><i>A</i><i about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"''B''"}},"i":0}}]}'>B</i>
19268 <p><i>A</i><b about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"'''''B'''''"}},"i":0}}]}'><i>B</i></b>
19272 4. I/B quote minimization: new content should be mimimized with adjacent old content
19282 <p><i>A</i><i data-parsoid='{}'>B</i></p>
19283 <p><b data-parsoid='{}'>A</b><b>B</b></p>
19284 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
19287 #------------------------------------
19288 # End of I/B quote minimization tests
19289 #------------------------------------
19292 Bug 54262: New entities
19298 <span typeof="mw:Entity">foo</span>
19301 ## Note that there is no wikitext output for 'unknownproperty' ##
19302 ## Unknown magic words are silently dropped ##
19317 __NOCONTENTCONVERT__
19319 <meta property='mw:PageProp/toc' />
19320 <meta property='mw:PageProp/notoc' />
19321 <meta property='mw:PageProp/forcetoc' />
19322 <meta property='mw:PageProp/index' />
19323 <meta property='mw:PageProp/noindex' />
19324 <meta property='mw:PageProp/nogallery' />
19325 <meta property='mw:PageProp/noeditsection' />
19326 <meta property='mw:PageProp/notitleconvert' />
19327 <meta property='mw:PageProp/nocontentconvert' />
19328 <meta property='mw:PageProp/unknownproperty' />
19332 Consecutive <pre>s should not get merged
19334 parsoid=html2wt,html2html
19350 <pre>a</pre><pre>b</pre>
19364 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
19368 [[Special:BookSources/1234567890|ISBN 1234567895]]
19370 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
19374 Edited RFC links not serializable as RFC links should serialize as extlinks
19378 [//tools.ietf.org/html/rfc123 New RFC]
19380 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
19384 Edited PMID links not serializable as PMID links should serialize as extlinks
19388 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
19390 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
19393 # -----------------------------------------------------------------
19394 # End of section for Parsoid-only html2wt tests for serialization
19396 # -----------------------------------------------------------------
19403 Try for 100% code coverage