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}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></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 3b. Indent-Pre and block tags (multi-line html)
2164 <pre>a <span>foo</span>
2171 3c. Indent-Pre and block tags (pre-content on separate line)
2235 4. Indent-Pre and extension tags
2241 a <ul class="gallery mw-gallery-traditional">
2242 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2243 <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>
2244 <div class="gallerytext">
2252 Leading pipes outside of tables
2262 Leading pipes outside of tables 2
2276 Leading pipes outside of tables 3
2281 | class="foo bar" | baz
2285 | class="foo bar" | baz
2290 Render paragraphs when indent-pre is suppressed in blocklevels
2307 4. Multiple spaces at start-of-line
2325 ## NOTE: the leading white-space chars on empty line are significant
2327 5a. White-space in indent-pre
2339 ## NOTE: the leading white-space chars on empty line are significant
2341 5b. White-space in indent-pre
2360 5c. White-space in indent-pre
2373 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
2396 7a. Indent-pre and category links
2398 parsoid=wt2html,wt2wt
2400 [[Category:foo]] <!-- No pre-wrapping -->
2401 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
2403 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
2404 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span>
2405 <link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
2409 7b. Indent-pre and category links
2411 parsoid=wt2html,wt2wt
2414 [[Category:foo]] {{echo|b}}
2417 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
2419 <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>
2423 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
2427 HTML-pre: 1. embedded newlines
2463 HTML-pre: 2: indented text
2476 HTML-pre: 3: other wikitext
2497 ### Definition lists
2505 <dt> name </dt>
2513 Definition list for indentation only
2525 Definition list with no space
2538 Definition list with URL link
2540 ; http://example.com/ : definition
2543 <dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
2551 Definition list with bracketed URL link
2553 ;[http://www.example.com/ Example]:Something about it
2556 <dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
2557 <dd>Something about it
2564 Definition list with wikilink containing colon
2566 ; [[Help:FAQ]]: The least-read page on Wikipedia
2569 <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>
2570 <dd> The least-read page on Wikipedia
2576 # At Brion's and JeLuF's insistence... :)
2578 Definition list with news link containing colon
2580 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2583 <dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
2584 <dd> This isn't even a real newsgroup!
2591 Malformed definition list with colon
2593 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2596 <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
2603 Definition lists: colon in external link text
2605 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2608 <dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
2609 <dd> OK, I made that up
2616 Definition lists: colon in HTML attribute
2618 ;<b style="display: inline">bold</b>
2621 <dt><b style="display: inline">bold</b>
2628 Definition lists: self-closed tag
2630 ;one<br/>two : two-line fun
2633 <dt>one<br />two </dt>
2641 Bug 11748: Literal closing tags
2645 <dd>test test test test test</dd>
2647 <dd>test test test test test</dd>
2652 <dd>test test test test test</dd>
2654 <dd>test test test test test</dd>
2660 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2663 ; term : description
2669 <dt> term </dt>
2683 Definition list with empty definition and following paragraph
2698 Nested definition lists using html syntax
2715 Definition Lists: No nesting: Multiple dd's
2733 Definition Lists: Indentation: Regular
2755 Definition Lists: Indentation: Missing 1st level
2775 Definition Lists: Indentation: Multi-level indent
2793 Definition Lists: Hacky use to indent tables
2800 should be left alone
2802 <dl><dd><dl><dd><table>
2807 </td></tr></table></dd></dl></dd></dl>
2809 should be left alone
2815 Definition Lists: Hacky use to indent tables (WS-insensitive)
2824 <dd> <table><tr><td>a</td></tr></table> </dd>
2827 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2828 ## as an empty dt item. It also ignores all but the last ";" when followed
2829 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2830 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2833 ## Ex: ";;t2 ::d2" is transformed into:
2845 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2846 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2857 ## All Parsoid only definition list tests have this difference.
2859 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2860 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2863 Table / list interaction: indented table with lists in table contents
2889 </td></tr></table></dd></dl>
2894 Table / list interaction: lists nested in tables nested in indented lists
2925 </td></tr></table></dd></dl>
2936 Definition Lists: Nesting: Multi-level (Parsoid only)
2966 Definition Lists: Nesting: Test 2 (Parsoid only)
2986 Definition Lists: Nesting: Test 3 (Parsoid only)
3014 Definition Lists: Nesting: Test 4
3035 ## The Parsoid team believes the following three test exposes a
3036 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
3037 ## wrong to close the <dl> after the <dt> containing the <ul>.)
3039 Definition Lists: Mixed Lists: Test 1 (php)
3066 Definition Lists: Mixed Lists: Test 1 (parsoid)
3090 Definition Lists: Mixed Lists: Test 2
3109 Definition Lists: Mixed Lists: Test 3
3134 Definition Lists: Mixed Lists: Test 4
3155 Definition Lists: Mixed Lists: Test 5
3176 Definition Lists: Mixed Lists: Test 6
3203 Definition Lists: Mixed Lists: Test 7
3222 Definition Lists: Mixed Lists: Test 8
3246 Definition Lists: Mixed Lists: Test 9
3263 Definition Lists: Mixed Lists: Test 10
3281 # The Parsoid team disagrees with the PHP parser's seemingly-random
3282 # rules regarding dd/dt on the next two tests. Parsoid is more
3283 # consistent, and recognizes the shared nesting and keeps the
3284 # still-open tags around until the nesting is complete.
3287 Definition Lists: Mixed Lists: Test 11 (php)
3328 Definition Lists: Mixed Lists: Test 11 (parsoid)
3350 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3351 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3355 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3356 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3366 Definition Lists: Weird Ones: Test 1 (php)
3370 *#;*::;; foo : bar (who uses this?)
3381 <dt> bar (who uses this?)
3401 Definition Lists: Weird Ones: Test 1 (parsoid)
3405 *#;*::;; foo : bar (who uses this?)
3422 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3423 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3438 External links: non-bracketed
3440 Non-bracketed: http://example.com
3442 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3447 External links: numbered
3449 Numbered: [http://example.com]
3450 Numbered: [http://example.net]
3451 Numbered: [http://example.com]
3453 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3454 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3455 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3460 External links: specified text
3462 Specified text: [http://example.com link]
3464 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
3469 External links: trail
3471 Linktrails should not work for external links: [http://example.com link]s
3473 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
3478 External links: dollar sign in URL
3480 http://example.com/1$2345
3482 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
3487 External links: dollar sign in URL (named)
3489 [http://example.com/1$2345]
3491 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
3496 External links: open square bracket forbidden in URL (bug 4377)
3498 http://example.com/1[2345
3500 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
3505 External links: open square bracket forbidden in URL (named) (bug 4377)
3507 [http://example.com/1[2345]
3509 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
3514 External links: nowiki in URL link text (bug 6230)
3516 [http://example.com/ <nowiki>''example site''</nowiki>]
3518 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
3523 External links: newline forbidden in text (bug 6230 regression check)
3525 [http://example.com/ first
3528 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
3534 External links: Pipe char between url and text
3536 [http://example.com | link]
3538 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
3543 External links: protocol-relative URL in brackets
3545 [//example.com/ Test]
3547 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
3552 External links: protocol-relative URL in brackets without text
3556 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
3561 External links: protocol-relative URL in free text is left alone
3565 <p>//example.com/Foo
3570 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
3572 foo//example.com/Foo
3574 <p>foo//example.com/Foo
3581 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3583 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3588 External image from https
3590 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3592 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
3597 External image (when not allowed)
3599 wgAllowExternalImages=0
3601 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
3603 <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>
3608 Link to non-http image, no img tag
3610 Link to non-http image, no img tag: ftp://example.com/test.jpg
3612 <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>
3617 External links: terminating separator
3619 Terminating separator: http://example.com/thing,
3621 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
3626 External links: intervening separator
3628 Intervening separator: http://example.com/1,2,3
3630 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
3635 External links: old bug with URL in query
3637 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
3639 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
3644 External links: old URL-in-URL bug, mixed protocols
3646 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
3648 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
3653 External links: URL in text
3655 URL in text: [http://example.com http://example.com]
3657 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3662 External links: Clickable images
3664 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3666 <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>
3671 External links: raw ampersand
3673 Old & use: http://x&y
3675 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3680 External links: encoded ampersand
3682 Old & use: http://x&y
3684 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3689 External links: encoded equals (bug 6102)
3691 http://example.com/?foo=bar
3693 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3698 External links: [raw ampersand]
3700 Old & use: [http://x&y]
3702 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3707 External links: [encoded ampersand]
3709 Old & use: [http://x&y]
3711 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3716 External links: [encoded equals] (bug 6102)
3718 [http://example.com/?foo=bar]
3720 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3725 External links: [IDN ignored character reference in hostname; strip it right off]
3727 [http://e‌xample.com/]
3729 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3733 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3734 # Where an external link could easily circumvent the sanitization of the text of
3735 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3736 # test demands a higher standard. That's a bit strange.
3740 # http://example.com -> [http://example.com|http://example.com]
3741 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3743 # The first example is sanitized, but the second is not. Any security benefits
3744 # from this production are trivial to circumvent. Either remove this test and
3745 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3746 # the test accordingly.
3751 External links: IDN ignored character reference in hostname; strip it right off
3753 http://e‌xample.com/
3755 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3760 External links: www.jpeg.org (bug 554)
3764 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3769 External links: URL within URL (original bug 2)
3771 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3773 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3778 BUG 361: URL inside bracketed URL
3780 [http://www.example.com/foo http://www.example.com/bar]
3782 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3787 BUG 361: URL within URL, not bracketed
3789 http://www.example.com/foo?=http://www.example.com/bar
3791 <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>
3796 BUG 289: ">"-token in URL-tail
3798 http://www.example.com/<hello>
3800 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3805 BUG 289: literal ">"-token in URL-tail
3807 http://www.example.com/<b>html</b>
3809 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3814 BUG 289: ">"-token in bracketed URL
3816 [http://www.example.com/<hello> stuff]
3818 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3823 BUG 289: literal ">"-token in bracketed URL
3825 [http://www.example.com/<b>html</b> stuff]
3827 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3832 BUG 289: literal double quote at end of URL
3834 http://www.example.com/"hello"
3836 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3841 BUG 289: literal double quote in bracketed URL
3843 [http://www.example.com/"hello" stuff]
3845 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3850 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3852 [http://www.example.com test]
3854 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3859 External links: link text with spaces
3861 [http://www.example.com a b c]
3862 [http://www.example.com ''a'' ''b'']
3864 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3865 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3870 External links: wiki links within external link (Bug 3695)
3874 [http://example.com [[wikilink]] embedded in ext link]
3876 <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>
3881 Parsoid: External links: wiki links within external link (Bug 3695)
3885 [http://example.com [[wikilink]] embedded in ext link]
3887 <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>
3891 BUG 787: Links with one slash after the url protocol are invalid
3895 [http:/example.com title]
3897 <p>http:/example.com
3898 </p><p>[http:/example.com title]
3903 Bracketed external links with template-generated invalid target
3905 [{{echo|http:/example.com}} title]
3907 <p>[http:/example.com title]
3912 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3914 ''[http://example.com text'']
3915 [http://example.com '''text]'''
3916 ''Something [http://example.com in italic'']
3917 ''Something [http://example.com mixed''''', even bold]'''
3918 '''''Now [http://example.com both''''']
3920 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3921 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3922 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3923 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3924 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3930 Bug 4781: %26 in URL
3932 http://www.example.com/?title=AT%26T
3934 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3938 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3939 # % is actually legal in HTML5. Any change in output would need testing though.
3941 Bug 4781, 5267: %25 in URL
3943 http://www.example.com/?title=100%25_Bran
3945 <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>
3950 Bug 4781, 5267: %28, %29 in URL
3952 http://www.example.com/?title=Ben-Hur_%281959_film%29
3954 <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>
3960 Bug 4781: %26 in autonumber URL
3962 [http://www.example.com/?title=AT%26T]
3964 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3969 Bug 4781, 5267: %26 in autonumber URL
3971 [http://www.example.com/?title=100%25_Bran]
3973 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3978 Bug 4781, 5267: %28, %29 in autonumber URL
3980 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3982 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3988 Bug 4781: %26 in bracketed URL
3990 [http://www.example.com/?title=AT%26T link]
3992 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3997 Bug 4781, 5267: %26 in bracketed URL
3999 [http://www.example.com/?title=100%25_Bran link]
4001 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
4006 Bug 4781, 5267: %28, %29 in bracketed URL
4008 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
4010 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
4015 External link containing double-single-quotes in text '' (bug 4598 sanity check)
4017 Some [http://example.com/ pretty ''italics'' and stuff]!
4019 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
4024 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
4026 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
4028 <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>
4033 External link containing double-single-quotes with no space separating the url from text in italics
4037 [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]].]
4039 <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>
4044 Parsoid:External link containing double-single-quotes with no space separating the url from text in italics
4048 [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]].]
4050 <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>
4054 External link with comments in link text
4056 [http://www.google.com Google <!-- comment -->]
4058 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
4063 URL-encoding in URL functions (single parameter)
4065 {{localurl:Some page|amp=&}}
4067 <p>/index.php?title=Some_page&amp=&
4072 URL-encoding in URL functions (multiple parameters)
4074 {{localurl:Some page|q=?&=&}}
4076 <p>/index.php?title=Some_page&q=?&amp=&
4083 http://example.com/index.php?foozoid%5B%5D=bar
4085 http://example.com/index.php?foozoid[]=bar
4087 <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>
4088 </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>
4093 IPv6 urls (bug 21261)
4097 http://[2404:130:0:1000::187:2]/index.php
4099 <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>
4104 Non-extlinks in brackets
4113 [{{echo|foo}} ''bar'']
4114 [{{echo|foo}}l's] errand
4115 [{{echo|foo}}l's errand]
4117 [url=http://example.com]
4130 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
4135 Parsoid: Percent encoding in external links
4139 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
4141 <p><a rel="mw:ExtLink"
4142 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
4146 Parsoid: use url link syntax for links where the content is equal the link
4153 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
4157 Parenthesis in external links, especially URL links
4163 http://example.com/test)
4165 http://example.com/(test)
4167 http://example.com/((test)
4169 (http://example.com/(test))
4171 (http://example.com/(test)))))
4173 http://example.com/a)b
4175 [http://example.com) foo]
4177 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4178 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
4179 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</a>
4180 </p><p><a rel="nofollow" class="external free" href="http://example.com/((test)">http://example.com/((test)</a>
4181 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test))">http://example.com/(test))</a>
4182 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test)))))">http://example.com/(test)))))</a>
4183 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
4184 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
4189 Parenthesis in external links, especially URL links (Parsoid)
4195 http://example.com/test)
4197 http://example.com/(test)
4199 http://example.com/((test)
4201 (http://example.com/(test))
4203 (http://example.com/(test)))))
4205 http://example.com/a)b
4207 [http://example.com) foo]
4209 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
4210 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
4211 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</a></p>
4212 <p><a rel="mw:ExtLink" href="http://example.com/((test)">http://example.com/((test)</a></p>
4213 <p>(<a rel="mw:ExtLink" href="http://example.com/(test))">http://example.com/(test))</a></p>
4214 <p>(<a rel="mw:ExtLink" href="http://example.com/(test)))))">http://example.com/(test)))))</a></p>
4215 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
4216 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
4220 Parenthesis in external links, w/ transclusion or comment
4224 (http://example.com/{{echo|hi}})
4226 (http://example.com<!-- hi -->)
4228 <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}}"}}'>http://example.com/hi</a>)</p>
4230 <p>(<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url","a":{"href":"http://example.com"},"sa":{"href":"http://example.com<!-- hi -->"}}'>http://example.com</a>)</p>
4240 Normal text. '''Bold text.''' Normal text. ''Italic text.''
4242 Normal text. '''''Bold italic text.''''' Normal text.
4244 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
4245 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
4251 Unclosed and unmatched quotes (php)
4255 '''''Bold italic text '''with bold deactivated''' in between.'''''
4257 '''''Bold italic text ''with italic deactivated'' in between.'''''
4261 ..spanning two paragraphs (should not work).'''
4263 '''Bold tag left open
4265 ''Italic tag left open
4269 <!-- Unmatching number of opening, closing tags: -->
4270 '''This year''''s election ''should'' beat '''last year''''s.
4272 ''Tom'''s car is bigger than ''Susan'''s.
4274 Plain ''italic'''s plain
4276 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4277 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4278 </p><p><b>Bold text..</b>
4279 </p><p>..spanning two paragraphs (should not work).
4280 </p><p><b>Bold tag left open</b>
4281 </p><p><i>Italic tag left open</i>
4283 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4284 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4285 </p><p>Plain <i>italic'</i>s plain
4288 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
4289 # parser strips. The wikitext contains just the first half of the bold
4292 Unclosed and unmatched quotes (parsoid)
4296 '''''Bold italic text '''with bold deactivated''' in between.'''''
4298 '''''Bold italic text ''with italic deactivated'' in between.'''''
4302 ..spanning two paragraphs (should not work).'''
4304 '''Bold tag left open
4306 ''Italic tag left open
4310 <!-- Unmatching number of opening, closing tags: -->
4311 '''This year''''s election ''should'' beat '''last year''''s.
4313 ''Tom'''s car is bigger than ''Susan'''s.
4315 Plain ''italic'''s plain
4317 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
4318 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
4319 </p><p><b>Bold text..</b>
4320 </p><p>..spanning two paragraphs (should not work).<b></b>
4321 </p><p><b>Bold tag left open</b>
4322 </p><p><i>Italic tag left open</i>
4324 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
4325 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
4326 </p><p>Plain <i>italic'</i>s plain
4333 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
4336 # This should not produce <table></table> as <table><tr><td></td></tr></table>
4337 # is the bare minimum required by the spec, see:
4338 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
4340 A table with no data. (php)
4349 # Parsoid team replies: empty table tags are legal in HTML5
4351 A table with no data. (parsoid)
4362 A table with stray table end tags on start tag line (wt2html)
4366 {|style="color: red;"|}
4368 {|style="color: red;" |}
4372 {|style="color: red;"|} id="foo"
4376 {|style="color: red;" |} id="foo"
4380 <table style="color: red;"></table>
4382 <table style="color: red;">
4388 <table style="color: red;" id="foo">
4394 <table style="color: red;" id="foo">
4403 A table with no data (take 2) (parsoid)
4413 # A table with nothing but a caption is invalid XHTML, we might want to render
4414 # this as <p>caption</p>
4416 A table with nothing but a caption (php)
4426 </caption><tr><td></td></tr></table>
4429 # Parsoid team replies: table with only a caption is legal in HTML5
4431 A table with nothing but a caption (parsoid)
4439 <table><caption> caption</caption></table>
4443 A table with caption with default-spaced attributes and a table row
4446 |+ style="color: red;" | caption1
4452 <caption style="color: red;"> caption1
4461 A table with captions with non-default spaced attributes and a table row
4464 |+style="color: red;"|caption2
4465 |+ style="color: red;"| caption3
4471 <caption style="color: red;">caption2
4473 <caption style="color: red;"> caption3
4482 Table td-cell syntax variations
4486 | foo bar foo || baz
4487 | style='color:red;' | baz
4488 | style='color:red;' || baz
4495 <td> foo bar foo </td>
4498 <td style="color:red;"> baz
4500 <td> style='color:red;' </td>
4528 Simple table but with multiple dashes for row wikitext
4546 Multiplication table
4548 {| border="1" cellpadding="2"
4549 |+Multiplication table
4551 ! × !! 1 !! 2 !! 3
4569 <table border="1" cellpadding="2">
4570 <caption>Multiplication table
4617 Accept "||" in table headings
4632 Accept "||" in indented table headings
4642 </th></tr></table></dd></dl>
4647 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
4664 Accept "| !" at start of line in tables (ignore !-attribute)
4668 | !style="color:red" | bar
4680 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 +/-
4684 |style='color:red;'|+1
4685 |style='color:blue;'|-1
4697 <td style="color:red;">+1
4699 <td style="color:blue;">-1
4723 |rowspan=2| Cell 2, row 1 (and 2)
4734 <td rowspan="2"> Cell 2, row 1 (and 2)
4752 {| bgcolor=#ABCDEF border=2
4757 |the original table again
4765 <table bgcolor="#ABCDEF" border="2">
4773 <td>the original table again
4779 Invalid attributes in table cell (bug 1830)
4794 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
4797 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
4801 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
4802 <td>]" onmouseover="alert(document.cookie)">test
4811 Indented table markup mixed with indented pre content (proposed in bug 6200)
4816 Text that should be rendered preformatted
4824 <pre>Text that should be rendered preformatted
4833 Template-generated table cell attributes and cell content
4842 <td style="color: red"> Foo
4844 <td style="color: red"> Foo
4850 Template-generated table cell attributes and cell content (2)
4853 |align=center {{table_attribs}}
4858 <td align="center" style="color: red"> Foo
4864 Template-generated table cell attributes and cell content (3)
4867 |align=center {{table_cells}}
4872 <td align="center" style="color: red"> Foo </td>
4880 Table with row followed by newlines and table heading
4898 Table with empty line following the start tag
4915 # FIXME: Preserve the attribute properly (with an empty string as value) in
4916 # the PHP parser. Parsoid implements the behavior below.
4918 Table attributes with empty value
4930 </td></tr></tbody></table>
4935 Wikitext table with a lot of comments
4958 Wikitext table with double-line table cell
4975 Table cell with a single comment
4991 # The expected HTML structure in this test is debatable. The PHP parser does
4992 # not parse this kind of table at all. The main focus for Parsoid is on
4993 # round-tripping, so this output is ok for now. TODO: revisit!
4995 Wikitext table with html-syntax row (Parsoid)
5007 <td>foo</td></tr></tbody></table>
5011 Implicit <td> after a |-
5012 (PHP parser relies on Tidy to add the missing <td> tags)
5014 parsoid=wt2html,wt2wt
5027 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
5028 (PHP parser relies on Tidy to add the missing <td> tags)
5030 parsoid=wt2html,wt2wt
5042 <tr><td><pre>a</pre></td></tr>
5043 <tr><td> b</td></tr>
5049 Lists should be recognized in an implicit <td> context
5050 (PHP parser relies on Tidy to add the missing <td> tags)
5052 parsoid=wt2html,wt2wt
5069 Parsoid: Round-trip tables directly followed by content (bug 51219)
5071 parsoid=wt2html,wt2wt
5083 <td>foo</td></tr></tbody></table> bar
5087 <td>baz</td></tr></tbody></table><b>quux</b>
5091 Parsoid: Default to a newline after tables in new content (bug 51219)
5098 <nowiki> </nowiki>bar
5105 <tr><td>foo</td></tr></tbody></table> bar
5107 <tr><td>baz</td></tr></tbody></table><b>quux</b>
5111 Parsoid: newline inducing block nodes don't suppress <nowiki>
5126 Plain link, capitalized
5130 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5135 Plain link, uncapitalized
5139 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
5146 [[Main Page|The Main Page]]
5148 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
5153 Piped link with comment in link text
5155 [[Main Page|The Main<!--front--> Page]]
5157 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
5166 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
5171 Broken link with fragment
5173 [[Zigzagzogzagzig#zug]]
5175 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
5180 Special page link with fragment
5182 [[Special:Version#anchor]]
5184 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
5189 Nonexistent special page link with fragment
5191 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
5193 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
5200 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
5202 <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>
5209 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
5211 <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>!!!
5222 Bug 43661: Piped links with identical prefixes
5224 [[prefixed article|prefixed articles with spaces]]
5226 [[prefixed article|prefixed articlesaoeu]]
5228 [[Main Page|Main Page test]]
5230 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
5231 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
5232 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
5238 Link with HTML entity in suffix / tail
5240 [[Main Page]]", [[Main Page]]a
5242 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
5247 Link with 3 brackets
5256 Link with 4 brackets
5260 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
5265 Piped link with 3 brackets
5267 [[[main page|the main page]]]
5269 <p>[[[main page|the main page]]]
5274 Piped link with extlink-like text
5277 [[Main Page|This is a [bar]]]
5279 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
5280 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
5285 Link with multiple pipes
5287 [[Main Page|The|Main|Page]]
5289 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
5296 [[Talk:Parser testing]], [[Meta:Disclaimers]]
5298 <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>
5303 MemoryAlpha:AlphaTest
5305 This is an article in the MemoryAlpha namespace
5306 (which shadows the memoryalpha interwiki link).
5310 Namespace takes precedence over interwiki link (bug 51680)
5312 [[MemoryAlpha:AlphaTest]]
5314 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5318 # The previous test doesn't work correctly in html2*, due to not recognizing the
5319 # link as an internal one. This one checks for the correct behavior.
5321 Link to namespace preferred over interwiki with correct rel attribute
5323 parsoid=html2wt,html2html
5325 [[MemoryAlpha:AlphaTest]]
5327 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
5332 Piped link to namespace
5334 [[Meta:Disclaimers|The disclaimers]]
5336 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
5343 [[Usually caused by a typo (oops}]]
5345 <p>[[Usually caused by a typo (oops}]]
5350 Link containing % (not as a hex sequence)
5354 <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>
5359 Link containing % as a single hex sequence interpreted to char
5363 <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>
5368 Link containing % as a double hex sequence interpreted to hex sequence
5372 <p>[[7%2525 Solution]]
5377 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
5378 Example for such a section: == < ==
5380 [[%23%3c]][[%23%3e]]
5382 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
5387 Link containing "<#" and ">#" as a hex sequences
5389 [[%3c%23]][[%3e%23]]
5391 <p>[[%3c%23]][[%3e%23]]
5396 Link containing an equals sign
5398 [[Special:BookSources/isbn=4-00-026157-6]]
5400 <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>
5407 Just a test of an article title containing a tilde.
5410 # note that links containing signatures, like [[Foo~~~~]], are
5411 # massaged by the pre-save transform (PST) and so the tildes are never
5412 # seen by the parser.
5414 Link containing a tilde
5418 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
5423 Link containing double-single-quotes '' (bug 4598)
5425 [[Lista d''e paise d''o munno]]
5427 <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>
5432 Link containing double-single-quotes '' in text (bug 4598 sanity check)
5434 Some [[Link|pretty ''italics'' and stuff]]!
5436 <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>!
5441 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
5443 ''Some [[Link|pretty ''italics'' and stuff]]!
5445 <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>
5450 Link with double quotes in title part (literal) and alternate part (interpreted)
5452 [[File:Denys Savchenko ''Pentecoste''.jpg]]
5456 [[''Pentecoste''|Pentecoste]]
5458 [[''Pentecoste''|''Pentecoste'']]
5460 <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>
5461 </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>
5462 </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>
5463 </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>
5468 Broken image links with HTML captions (bug 39700)
5470 [[File:Nonexistent|<script></script>]]
5471 [[File:Nonexistent|100px|<script></script>]]
5472 [[File:Nonexistent|<]]
5473 [[File:Nonexistent|a<i>b</i>c]]
5475 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5476 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
5477 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
5478 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
5485 [[http://www.example.com]]
5487 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
5492 Plain link to URL with link text
5494 [[http://www.example.com Link text]]
5496 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
5501 Plain link to protocol-relative URL
5503 [[//www.example.com]]
5505 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
5510 Plain link to protocol-relative URL with link text
5512 [[//www.example.com Link text]]
5514 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
5519 Plain link to page with question mark in title
5525 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
5526 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
5531 # I'm fairly sure the expected result here is wrong.
5532 # We want these to be URL links, not pseudo-pages with URLs for titles....
5533 # However the current output is also pretty screwy.
5536 # I'm changing it to match the current output--it arguably makes more
5537 # sense in the light of the test above. Old expected result was:
5538 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
5540 # But I think this test is bordering on "garbage in, garbage out" anyway.
5545 Piped link to URL: [[http://www.example.com|an example URL]]
5547 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
5552 BUG 2: [[page|http://url/]] should link to page, not http://url/
5554 [[Main Page|http://url/]]
5556 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
5561 BUG 337: Escaped self-links should be bold
5565 [[Bug462]] [[Bug462]]
5567 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
5572 Self-link to section should not be bold
5576 [[Main Page#section]]
5578 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
5589 Self-link to numeric title
5595 <p><strong class="selflink">0</strong>
5600 Link to numeric-equivalent title
5606 <p><a href="/wiki/00" title="00">00</a>
5611 <nowiki> inside a link
5613 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
5615 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
5620 Non-breaking spaces in title
5622 [[ Main Page ]]
5624 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
5629 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
5635 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
5640 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
5646 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
5651 Internal link with en linktrail: no apostrophes (bug 27473)
5657 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
5662 Internal link with ca linktrail with apostrophes (bug 27473)
5668 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
5673 Internal link with kaa linktrail with apostrophes (bug 27473)
5679 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
5684 1. Interaction of linktrail and template encapsulation
5690 <p><a rel="mw:WikiLink" href="Foo" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[[Foo]]"}},"i":0}},"l"]}'>Fool</a></p>
5694 2. Interaction of linktrail and template encapsulation
5698 {{echo|Some [[Fool]]}}s
5700 <p data-parsoid='{}'><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Some [[Fool]]"}},"i":0}},"s"]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>Some </span><a rel="mw:WikiLink" href="./Fool" about="#mwt1" data-parsoid='{"stx":"simple","a":{"href":"./Fool"},"sa":{"href":"Fool"},"tail":"s"}'>Fools</a></p>
5704 3. Interaction of linktrail and template encapsulation
5708 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
5710 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Some [[Fool]]s are '''bold and foolish'''"}},"i":0}}]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>Some <a rel="mw:WikiLink" href="./Fool" data-parsoid='{"stx":"simple","a":{"href":"./Fool"},"sa":{"href":"Fool"},"tail":"s"}'>Fools</a> are <b data-parsoid="{}">bold and foolish</b></p>
5720 Internal link with is link prefix
5724 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
5726 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
5737 Internal link with is link trail and link prefix
5741 [[mótmælendatrú|xxx]]ar
5743 mótmælenda[[söfnuður]]
5744 mótmælenda[[söfnuður|söfnuðir]]
5745 mótmælenda[[söfnuður|söfnuðir]]xxx
5747 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
5748 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
5749 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
5750 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
5751 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
5756 Parsoid link trail escaping
5758 parsoid=html2wt,html2html
5762 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
5766 Parsoid link prefix escaping
5769 parsoid=html2wt,html2html
5771 Aðrir mótmælenda<nowiki/>[[söfnuður]]
5773 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
5777 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
5785 [http://wp.org ''foo'']
5787 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
5788 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
5789 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
5790 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
5795 Parsoid: Scoped parsing should handle mixed transclusions and plain text
5799 [[Foo|{{echo|a}} b {{echo|c}}]]
5801 <p><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>
5805 ### Interwiki links (see maintenance/interwiki.sql)
5809 Inline interwiki link
5811 [[MeatBall:SoftSecurity]]
5813 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
5818 Inline interwiki link with empty title (bug 2372)
5822 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
5827 Interwiki link encoding conversion (bug 1636)
5829 *[[Wikipedia:ro:Olteniţa]]
5830 *[[Wikipedia:ro:Olteniţa]]
5833 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5835 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
5842 Interwiki link with fragment (bug 2130)
5844 [[MeatBall:SoftSecurity#foo]]
5846 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
5850 # Ideally the wikipedia: prefix here should be proto-relative too
5852 Different interwiki prefixes mapping to the same URL
5860 <p><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}'>wikipedia:Foo</a></p>
5862 <p><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}'>en:Foo</a></p>
5866 Interwiki links that cannot be represented in wiki syntax
5871 [[meatball:ok#foo|ok with fragment]]
5872 [[meatball:ok_as_well?|ok ending with ? mark]]
5873 [http://de.wikipedia.org/wiki/Foo?action=history has query]
5874 [http://de.wikipedia.org/wiki/#foo is just fragment]
5877 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok">meatball:ok</a>
5878 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo">ok with fragment</a>
5879 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F">ok ending with ? mark</a>
5880 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
5881 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
5885 Interwiki links: trail
5889 [[wikipedia:Foo|Ba]]r
5891 <p data-parsoid='{}'><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"piped","a":{"href":"http://en.wikipedia.org/wiki/Foo"},"sa":{"href":"wikipedia:Foo"},"isIW":true,"tail":"r"}'>Bar</a></p>
5895 ### Interlanguage links
5896 ### Language links (so that searching for '### language' matches..)
5910 Double interlanguage link
5921 Interlanguage link, with prefix links
5933 Double interlanguage link, with prefix links (bug 8897)
5946 Parsoid-specific test: Wikilinks with should RT properly
5952 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
5957 Parsoid bug 53221: Wikilinks should be properly entity-escaped
5961 He&nbsp;llo [[Foo|He&nbsp;llo]]
5963 He&nbsp;llo [[He&nbsp;llo]]
5965 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5966 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
5970 Parsoid: handle constructor well
5978 <p><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
5980 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
5984 Parsoid: recognize interlanguage links without a target page
5991 <link rel="mw:PageProp/Language" href="http://ko.wikipedia.org/wiki/"></p>
5995 Parsoid: recognize interwiki links without a target page
6001 <p><a rel="mw:ExtLink" href="//ko.wikipedia.org/wiki/">ko:</a></p>
6005 Parsoid: Bug #45209, handle interwiki links pointing to the current wiki as plain wiki links
6011 <p><a rel="mw:WikiLink" href="./Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"en:Foo"}}'>Foo</a></p>
6015 ### Redirects, Parsoid-only
6018 1. Simple redirect to page
6022 #REDIRECT [[Main Page]]
6024 <link rel="mw:PageProp/redirect" href="./Main_Page">
6027 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
6029 2. Other redirect variants
6031 parsoid=wt2html,wt2wt
6033 #REDIRECT [[Main_Page]]
6034 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
6036 <link rel="mw:PageProp/redirect" href="./Main_Page">
6037 <link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
6041 Optional colon in #REDIRECT
6043 # the colon is archaic syntax. we support it for wt2html, but we
6044 # don't care that it roundtrips back to the modern syntax.
6045 parsoid=wt2html,html2html
6047 #REDIRECT:[[Main Page]]
6049 <link rel="mw:PageProp/redirect" href="./Main_Page">
6053 Whitespace in #REDIRECT with optional colon
6055 # the colon and gratuitous whitespace is archaic syntax. we support
6056 # it for wt2html, but we don't care that it roundtrips back to the
6057 # modern syntax (without extra whitespace)
6058 parsoid=wt2html,html2html
6065 <link rel="mw:PageProp/redirect" href="./Main_Page">
6069 Piped link in #REDIRECT
6071 # content after piped link is ignored. we support this syntax,
6072 # but don't care that the piped link is lost when we roundtrip this.
6075 #REDIRECT [[Main Page|bar]]
6077 <link rel="mw:PageProp/redirect" href="./Main_Page">
6081 Redirect to category
6085 #REDIRECT [[Category:Foo]]
6087 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
6091 Redirect to category with URL encoding
6095 #REDIRECT [[Category%3AFoo]]
6097 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
6101 Redirect to category page
6103 parsoid=wt2html,html2html
6105 #REDIRECT [[:Category:Foo]]
6107 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
6111 Redirect to image page (1)
6115 #REDIRECT [[File:Wiki.png]]
6117 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
6121 Redirect to image page (2)
6125 #REDIRECT [[Image:Wiki.png]]
6127 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
6131 Redirect to language
6135 #REDIRECT [[en:File:Wiki.png]]
6137 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
6141 Redirect to interwiki
6145 #REDIRECT [[meatball:File:Wiki.png]]
6147 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
6151 Non-English #REDIRECT
6156 #TILVÍSUN [[Main Page]]
6158 <link rel="mw:PageProp/redirect" href="./Main_Page">
6169 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
6186 Broken br tag sanitization
6196 # TODO: Fix html2html mode (bug 51055)!
6198 Parsoid: Broken br tag recognition
6208 Incorrecly removing closing slashes from correctly formed XHTML
6210 <br style="clear:both;" />
6212 <p><br style="clear:both;" />
6217 Failing to transform badly formed HTML into correct XHTML
6219 <br style="clear: left;">
6220 <br style="clear: right;">
6221 <br style="clear: both;">
6223 <p><br style="clear: left;" />
6224 <br style="clear: right;" />
6225 <br style="clear: both;" />
6230 Handling html with a div self-closing tag
6239 <p><div title />
6243 <p><div title=bar />
6244 <div title=bar/>
6246 <div title="bar/"></div>
6252 Handling html with a br self-closing tag
6261 <p><br title="title" />
6262 <br title="title" />
6271 Horizontal ruler (should it add that extra space?)
6285 Horizontal ruler -- 4+ dashes render hr
6294 Horizontal ruler -- eats additional dashes on the same line
6303 Horizontal ruler -- does not collapse dashes on consecutive lines
6314 Horizontal ruler -- <4 dashes render as plain text
6323 Horizontal ruler -- Supports content following dashes on same line
6332 ### Block-level elements
6380 ***#Number on level 4
6382 **#Number on level 3
6383 **#Number on level 3
6387 #** Level 3, but ordered
6410 <li>Number on level 4
6418 <li>Number on level 3
6420 <li>Number on level 3
6443 <li> Level 3, but ordered
6489 Nested lists 3 (first element empty)
6506 Nested lists 4 (first element empty)
6524 Nested lists 5 (both elements empty)
6542 Nested lists 6 (both elements empty)
6559 Nested lists 7 (skip initial nesting levels)
6577 Nested lists 8 (multiple nesting transitions)
6603 1. Lists with start-of-line-transparent tokens before bullets: Comments
6621 2. Lists with start-of-line-transparent tokens before bullets: Template close
6636 List items are not parsed correctly following a <pre> block (bug 785)
6654 List items from template
6665 * notSOL{{inner list}}
6696 List interrupted by empty line or heading
6715 <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>
6717 <li> Another list item
6724 Multiple list tags generated by templates
6739 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
6742 <!--This line will NOT split the list-->
6744 <!--This line will NOT split the list either-->
6746 <!--foo--> <!----> <!--This line NOT split the list either-->
6763 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
6766 <!--This line will NOT split the list-->
6768 <!--This line will NOT split the list either-->
6770 <!--foo--> <!----> <!--This line NOT split the list
6789 (Cannot test this with PHP parser since it relies on Tidy for the hack)
6791 parsoid=wt2html,wt2wt
6795 * {{echo|<li>templated li-hack}}
6796 * <!--foo--> <li> unsupported li-hack with preceding comments
6799 <li><li>not a li-hack
6806 <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>
6807 <li> <!--foo--> </li>
6808 <li> li-hack with preceding comments</li>
6819 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
6846 Parsoid: Test of whitespace serialization with Templated bullets
6853 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
6857 # ------------------------------------------------------------------------
6858 # The next set of tests are about Parsoid's ability to handle badly nested
6859 # tags (parse, minimize scope of fixup, and roundtrip back)
6860 # ------------------------------------------------------------------------
6863 Unbalanced closing block tags break a list
6864 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6884 Unbalanced closing non-block tags don't break a list
6885 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6904 Unclosed formatting tags that straddle lists are closed and reopened
6905 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
6921 List embedded in a non-block tag
6922 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
6930 <p><small></small></p>
6936 <p><small></small></p>
6940 Table with missing opening <tr> tag
6942 parsoid=wt2html,wt2wt
6960 # Note that the current date is hard-coded as
6961 # 1970-01-01T00:02:03Z (a Thursday)
6962 # when running parser tests. The timezone is also fixed to GMT, so
6963 # local date will be identical to current date.
6966 Magic Word: {{CURRENTDAY}}
6975 Magic Word: {{CURRENTDAY2}}
6984 Magic Word: {{CURRENTDAYNAME}}
6993 Magic Word: {{CURRENTDOW}}
7002 Magic Word: {{CURRENTMONTH}}
7011 Magic Word: {{CURRENTMONTH1}}
7020 Magic Word: {{CURRENTMONTHABBREV}}
7022 {{CURRENTMONTHABBREV}}
7029 Magic Word: {{CURRENTMONTHNAME}}
7031 {{CURRENTMONTHNAME}}
7038 Magic Word: {{CURRENTMONTHNAMEGEN}}
7040 {{CURRENTMONTHNAMEGEN}}
7047 Magic Word: {{CURRENTTIME}}
7056 Magic Word: {{CURRENTHOUR}}
7065 Magic Word: {{CURRENTWEEK}} (@bug 4594)
7074 Magic Word: {{CURRENTYEAR}}
7083 Magic Word: {{CURRENTTIMESTAMP}}
7085 {{CURRENTTIMESTAMP}}
7092 Magic Words LOCAL (UTC)
7096 * {{LOCALMONTHNAME}}
7097 * {{LOCALMONTHNAMEGEN}}
7098 * {{LOCALMONTHABBREV}}
7107 * {{LOCALTIMESTAMP}}
7143 Magic Word: {{FULLPAGENAME}}
7145 title=[[User:Ævar Arnfjörð Bjarmason]]
7149 <p>User:Ævar Arnfjörð Bjarmason
7154 Magic Word: {{FULLPAGENAMEE}}
7156 title=[[User:Ævar Arnfjörð Bjarmason]]
7160 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7165 Magic Word: {{TALKSPACE}}
7167 title=[[User:Ævar Arnfjörð Bjarmason]]
7176 Magic Word: {{TALKSPACE}}, same namespace
7178 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7187 Magic Word: {{TALKSPACE}}, main namespace
7189 title=[[Parser Test]]
7198 Magic Word: {{TALKSPACEE}}
7200 title=[[User:Ævar Arnfjörð Bjarmason]]
7209 Magic Word: {{SUBJECTSPACE}}
7211 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7220 Magic Word: {{SUBJECTSPACE}}, same namespace
7222 title=[[User:Ævar Arnfjörð Bjarmason]]
7231 Magic Word: {{SUBJECTSPACE}}, main namespace
7233 title=[[Parser Test]]
7241 Magic Word: {{SUBJECTSPACEE}}
7243 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7252 Magic Word: {{NAMESPACE}}
7254 title=[[User:Ævar Arnfjörð Bjarmason]]
7263 Magic Word: {{NAMESPACEE}}
7265 title=[[User:Ævar Arnfjörð Bjarmason]]
7274 Magic Word: {{NAMESPACENUMBER}}
7276 title=[[User:Ævar Arnfjörð Bjarmason]]
7285 Magic Word: {{SUBPAGENAME}}
7287 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7296 Magic Word: {{SUBPAGENAMEE}}
7298 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
7307 Magic Word: {{ROOTPAGENAME}}
7309 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7313 <p>Ævar Arnfjörð Bjarmason
7318 Magic Word: {{ROOTPAGENAMEE}}
7320 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
7324 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7329 Magic Word: {{BASEPAGENAME}}
7331 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7335 <p>Ævar Arnfjörð Bjarmason
7340 Magic Word: {{BASEPAGENAMEE}}
7342 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
7346 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7351 Magic Word: {{TALKPAGENAME}}
7353 title=[[User:Ævar Arnfjörð Bjarmason]]
7357 <p>User talk:Ævar Arnfjörð Bjarmason
7362 Magic Word: {{TALKPAGENAMEE}}
7364 title=[[User:Ævar Arnfjörð Bjarmason]]
7368 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7373 Magic Word: {{SUBJECTPAGENAME}}
7375 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7379 <p>User:Ævar Arnfjörð Bjarmason
7384 Magic Word: {{SUBJECTPAGENAMEE}}
7386 title=[[User talk:Ævar Arnfjörð Bjarmason]]
7388 {{SUBJECTPAGENAMEE}}
7390 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7395 Magic Word: {{NUMBEROFFILES}}
7404 Magic Word: {{PAGENAME}}
7406 title=[[User:Ævar Arnfjörð Bjarmason]]
7410 <p>Ævar Arnfjörð Bjarmason
7415 Magic Word: {{PAGENAME}} with metacharacters
7417 title=[['foo & bar = baz']]
7421 <p><i>'foo & bar = baz'</i>
7426 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
7428 title=[[*RFC 1234 http://example.com/]]
7432 <p>*RFC 1234 http://example.com/
7437 Magic Word: {{PAGENAMEE}}
7439 title=[[User:Ævar Arnfjörð Bjarmason]]
7443 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
7448 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
7450 title=[[*RFC 1234 http://example.com/]]
7454 <p>*RFC_1234_http://example.com/
7459 Magic Word: {{REVISIONID}}
7468 Magic Word: {{SCRIPTPATH}}
7477 Magic Word: {{STYLEPATH}}
7486 Magic Word: {{SERVER}}
7490 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7495 Magic Word: {{SERVERNAME}}
7504 Magic Word: {{SITENAME}}
7513 Case-sensitive magic words, when cased differently, should just be template transclusions
7520 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
7521 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
7522 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
7523 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
7528 Case-insensitive magic words should still work with weird casing.
7538 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
7543 Namespace 1 {{ns:1}}
7552 Namespace 1 {{ns:01}}
7561 Namespace 0 {{ns:0}} (bug 4783)
7569 Namespace 0 {{ns:00}} (bug 4783)
7577 Namespace -1 {{ns:-1}}
7586 Namespace User {{ns:User}}
7595 Namespace User talk {{ns:User_talk}}
7604 Namespace User talk {{ns:uSeR tAlK}}
7613 Namespace File {{ns:File}}
7622 Namespace File {{ns:Image}}
7631 Namespace (lang=de) Benutzer {{ns:User}}
7642 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
7648 <p>Benutzer Diskussion
7656 {{urlencode:hi world?!}}
7657 {{urlencode:hi world?!|WIKI}}
7658 {{urlencode:hi world?!|PATH}}
7659 {{urlencode:hi world?!|QUERY}}
7669 Magic Word: prioritize type info over data-parsoid
7675 <meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__"}'/>
7679 Magic Word: serialize on separate line (parsoid)
7681 parsoid=wt2wt,html2wt
7687 foo<meta property="mw:PageProp/notoc"/>bar
7691 Magic Word: rt non-english wikis
7698 <meta property="mw:PageProp/noeditsection" data-parsoid='{"src":"__NOEDITSECTION__","magicSrc":"__NOEDITSECTION__"}'/>
7705 Magic links: internal link to RFC (bug 479)
7709 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
7714 Magic links: RFC (bug 479)
7718 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
7723 Magic links: ISBN (bug 1937)
7727 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
7732 Magic links: PMID incorrectly converts space to underscore
7736 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
7745 Nonexistent template
7747 {{thistemplatedoesnotexist}}
7749 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
7754 Template with invalid target containing tags
7756 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7758 <p>{{a<b>b</b>|foo|a=b|a = b}}
7763 Template with invalid target containing unclosed tag
7765 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
7767 <p>{{a<b>|foo|a=b|a = b}}</b>
7772 Template with invalid target containing wikilink (php)
7778 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
7783 Template with invalid target containing wikilink (parsoid)
7789 <p><span typeof="mw:Transclusion" about="#mwt1" data-mw='{"parts":[{"template":{"target":{"wt":"[[Main Page]]"},"params":{},"i":0}}]}'>{{</span><a rel="mw:WikiLink" href="./Main_Page" about="#mwt1">Main Page</a><span about="#mwt1">}}</span></p>
7795 This is a test template
7803 <p>This is a test template
7808 Template with explicit namespace
7812 <p>This is a test template
7820 This is a test template with parameter {{{param}}}
7826 {{paramtest|param=foo}}
7828 <p>This is a test template with parameter foo
7833 Template:paramtestnum
7839 Template unnamed parameter
7841 {{paramtestnum|Main Page|the main page}}
7843 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
7848 Template:templatesimple
7854 Template:templateredirect
7856 #redirect [[Template:templatesimple]]
7860 Template:templateasargtestnum
7866 Template:templateasargtest
7868 {{template{{{templ}}}}}
7872 Template:templateasargtest2
7878 Template with template name as unnamed argument
7880 {{templateasargtestnum|templatesimple}}
7887 Template with template name as argument
7889 {{templateasargtest|templ=simple}}
7896 Template with template name as argument (2)
7898 {{templateasargtest2|templ=templatesimple}}
7905 Template:templateasargtestdefault
7907 {{{{{templ|templatesimple}}}}}
7917 Template with default value
7919 {{templateasargtestdefault}}
7926 Template with default value (value set)
7928 {{templateasargtestdefault|templ=templa}}
7937 {{templateredirect}}
7944 Template with argument in separate line
7946 {{ templateasargtest |
7954 Template with complex template as argument
7957 param ={{ templateasargtest |
7960 <p>This is a test template with parameter (test)
7965 Template with thumb image (with link in description)
7968 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
7970 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>
7975 Template:complextemplate
7977 {{{1}}} {{paramtest|
7978 param ={{{param}}}}}
7982 Template with complex arguments
7985 param ={{ templateasargtest |
7986 templ = simple }}|[[Template:complextemplate|link]]}}
7988 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
7993 BUG 553: link with two variables in a piped link
7996 |[[{{{1}}}|{{{2}}}]]
8001 <td>[[{{{1}}}|{{{2}}}]]
8007 Magic variable as template parameter
8009 {{paramtest|param={{SITENAME}}}}
8011 <p>This is a test template with parameter MediaWiki
8018 [[{{{param}}}|link]]
8022 Template parameter as link source
8024 {{linktest|param=Main Page}}
8026 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
8031 Template-generated attribute string (k='v')
8033 <span {{attr_str|id|v1}}>bar</span>
8035 <p><span id="v1">bar</span>
8042 including another template, {{paramtest|param={{{arg}}}}}
8046 Template passing argument to another template
8048 {{paramtest2|arg='hmm'}}
8050 <p>including another template, This is a test template with parameter 'hmm'
8061 Template as link source
8065 [[{{linktest2}}|Main Page]]
8067 [[{{linktest2}}]]Page
8069 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8070 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8071 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
8089 Template infinite loop
8093 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
8098 Template from main namespace
8117 BUG 529: Template with table, not included at beginning of line
8136 BUG 523: Template shouldn't eat newline (or add an extra one before table)
8156 BUG 41: Template parameters shown as broken links
8165 Template with targets containing wikilinks
8169 {{[[{{echo|foo}}]]}}
8171 {{{{echo|[[foo}}]]}}
8173 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
8174 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
8182 ''None'' of '''this''' should be
8184 but rather passed unmodified
8188 # hmm, fix this or just deprecate msgnw and document its behavior?
8194 {{msgnw:MSGNW test}}
8196 <p>''None'' of '''this''' should be
8198 but rather passed unmodified
8206 {{int:youhavenewmessages|lots of money|not!}}
8208 <p>You have lots of money (not!).
8215 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8219 <includeonly> and <noinclude> being included
8230 <onlyinclude>Foo</onlyinclude>bar
8234 <onlyinclude> being included
8246 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
8250 <onlyinclude> and <includeonly> being included
8259 <includeonly> and <noinclude> on a page
8261 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
8268 Un-closed <noinclude>
8275 <onlyinclude> on a page
8277 <onlyinclude>Foo</onlyinclude>bar
8284 Un-closed <onlyinclude>
8291 Self-closed noinclude, includeonly, onlyinclude tags
8302 Unbalanced includeonly and noinclude tags
8306 |b</noinclude></noinclude>
8307 |c</noinclude></includeonly>
8308 |d</includeonly></includeonly>
8317 <td>c</includeonly>
8319 <td>d</includeonly></includeonly>
8325 Template:Includeonly section
8328 ==Includeonly section==
8334 Bug 6563: Edit link generation for section shown by <includeonly>
8336 {{includeonly section}}
8338 <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>
8339 <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>
8343 # Uses same input as the contents of [[Template:Includeonly section]]
8345 Bug 6563: Section extraction for section shown by <includeonly>
8350 ==Includeonly section==
8358 Bug 6563: Edit link generation for section suppressed by <includeonly>
8361 ==Includeonly section==
8365 <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>
8370 Bug 6563: Section extraction for section suppressed by <includeonly>
8375 ==Includeonly section==
8383 Un-closed <includeonly>
8389 # TODO: test with DOM fragment reuse!
8391 Parsoid: DOM fragment reuse
8393 parsoid=wt2wt,wt2html
8395 a{{echo|b<table></table>c}}d
8407 a<span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b
8408 <table></table>c"}},"i":0}}]}'>b</span>
8409 <table about="#mwt1"></table><span about="#mwt1">c</span>d
8412 <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">
8414 <table about="#mwt2"></table><span about="#mwt2">
8416 <p about="#mwt2">cd</p>
8419 <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">
8422 <table about="#mwt3"></table><span about="#mwt3">
8425 <p about="#mwt3">b</p>
8429 Parsoid: Merge double tds (bug 50603)
8438 <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>
8443 Parsoid: Merge double tds in nested transclusion content (bug 50603)
8453 <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}}]}'>
8455 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
8461 ### <includeonly> and <noinclude> in attributes
8464 0. includeonly around the entire attribute
8466 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
8468 <p><span id="v2">bar</span>
8473 1. includeonly in html attr key
8475 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
8477 <p><span id="foo">bar</span>
8482 2. includeonly in html attr value
8484 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
8485 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
8487 <p><span id="v1">bar</span>
8488 <span id="v1">bar</span>
8493 3. includeonly in part of an attr value
8495 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
8497 <p><span style="color:red;">bar</span>
8502 4. includeonly in table attributes
8526 ### Testing parsing of templates where a template arg
8527 ### has the same name as the template itself.
8537 Templates: Template Name/Arg clash: 1. Use of positional param
8546 Templates: Template Name/Arg clash: 2. Use of named param
8555 Templates: Template Name/Arg clash: 3. Use of named param with empty input
8564 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
8568 Templates: 1. Simple use
8577 Templates: 2. Inside a block tag
8579 <div>{{echo|Foo}}</div>
8580 <blockquote>{{echo|Foo}}</blockquote>
8583 <blockquote>Foo</blockquote>
8588 Templates: P-wrapping: 1a. Templates on consecutive lines
8599 Templates: P-wrapping: 1b. Templates on consecutive lines
8613 Templates: P-wrapping: 1c. Templates on consecutive lines
8616 {{echo|bar}} <div>baz</div>
8625 Templates: P-wrapping: 1d. Template preceded by comment-only line
8634 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
8638 Templates: Inline Text: 1. Multiple tmeplate uses
8640 {{echo|Foo}}bar{{echo|baz}}
8647 Templates: Inline Text: 2. Back-to-back template uses
8649 {{echo|Foo}}{{echo|bar}}
8656 Templates: Block Tags: 1. Multiple template uses
8658 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
8660 <div>Foo</div><div>bar</div><div>baz</div>
8665 Templates: Block Tags: 2. Back-to-back template uses
8667 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
8669 <div>Foo</div><div>bar</div>
8674 Templates: Links: 1. Simple example
8676 {{echo|[[Foo|bar]]}}
8678 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8683 Templates: Links: 2. Generation of link href
8685 [[{{echo|Foo}}|bar]]
8687 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8692 Templates: Links: 3. Generation of part of a link href
8694 [[Fo{{echo|o}}|bar]]
8698 [[Foo{{echo|bar}}baz]]
8700 [[Foo{{echo|bar}}|bar]]
8702 [[:Foo{{echo|bar}}]]
8704 [[:Foo{{echo|bar}}|bar]]
8706 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8707 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8708 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
8709 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8710 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8711 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
8716 Templates: Links: 4. Multiple templates generating link href
8718 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
8720 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
8725 Templates: Links: 5. Generation of link text
8727 [[Foo|{{echo|bar}}]]
8729 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8734 Templates: Links: 5. Nested templates (only outermost template should be marked)
8736 {{echo|[[{{echo|Foo}}|bar]]}}
8738 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
8743 Templates: HTML Tag: 1. Generation of HTML attr. key
8745 <div {{echo|style}}="color:red;">foo</div>
8747 <div style="color:red;">foo</div>
8752 Templates: HTML Tag: 2. Generation of HTML attr. value
8754 <div style={{echo|'color:red;'}}>foo</div>
8756 <div style="color:red;">foo</div>
8761 Templates: HTML Tag: 3. Generation of HTML attr key and value
8763 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
8765 <div style="color:red;">foo</div>
8770 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
8772 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
8774 <div title="This is a long title with just one piece templated">foo</div>
8779 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
8781 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
8783 <div title="This is a long title with just one piece templated">foo</div>
8788 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
8790 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
8792 <div title="This is a long title with just one piece templated">foo</div>
8797 Templates: HTML Tag: 7. Generation of partial attribute key string
8799 <div st{{echo|yle}}="color:red;">foo</div>
8801 <div style="color:red;">foo</div>
8806 Templates: HTML Tables: 1. Generating start of a HTML table
8808 {{echo|<table><tr><td>foo</td>}}</tr></table>
8810 <table><tr><td>foo</td></tr></table>
8815 Templates: HTML Tables: 2a. Generating middle of a HTML table
8817 <table><tr>{{echo|<td>foo</td>}}</tr></table>
8819 <table><tr><td>foo</td></tr></table>
8824 Templates: HTML Tables: 2b. Generating middle of a HTML table
8826 <table>{{echo|<tr><td>foo</td></tr>}}</table>
8828 <table><tr><td>foo</td></tr></table>
8833 Templates: HTML Tables: 3. Generating end of a HTML table
8835 <table><tr>{{echo|<td>foo</td></tr></table>}}
8837 <table><tr><td>foo</td></tr></table>
8842 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
8844 {{echo|<table>}}<tr><td>foo</td></tr></table>
8846 <table><tr><td>foo</td></tr></table>
8851 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
8853 <table>{{echo|<tr>}}<td>foo</td></tr></table>
8855 <table><tr><td>foo</td></tr></table>
8860 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
8862 <table><tr>{{echo|<td>}}foo</td></tr></table>
8864 <table><tr><td>foo</td></tr></table>
8869 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
8871 <table><tr><td>foo{{echo|</td>}}</tr></table>
8873 <table><tr><td>foo</td></tr></table>
8878 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
8880 <table><tr><td>foo</td>{{echo|</tr>}}</table>
8882 <table><tr><td>foo</td></tr></table>
8887 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
8889 <table><tr><td>foo</td></tr>{{echo|</table>}}
8891 <table><tr><td>foo</td></tr></table>
8896 Templates: HTML Tables: 5. Proper fostering of categories from inside
8898 parsoid=wt2html,wt2wt
8900 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
8901 <!--Two categories (Bug 50330)-->
8902 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
8904 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
8905 <!--Two categories (Bug 50330)-->
8906 <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>
8910 Templates: Wiki Tables: 1a. Fostering of entire template content
8918 <tr><td></td></tr></table>
8923 Templates: Wiki Tables: 1b. Fostering of entire template content
8936 <tr><td></td></tr></table>
8941 Templates: Wiki Tables: 2. Fostering of partial template content
8951 <tr><td></td></tr></table>
8956 Templates: Wiki Tables: 3. td-content via multiple templates
8959 {{echo|{{pipe}}a}}{{echo|b}}
8970 Templates: Wiki Tables: 4. Templated tags, no content
8976 <tr><td></td></tr></table>
8981 Templates: Wiki Tables: 5. Templated tags, regular td-tags
8995 Templates: Wiki Tables: 6. Templated tags, templated td-tags
9009 Templates: Lists: Multi-line list-items via templates
9011 *{{echo|a {{nonexistent|
9013 *{{echo|b {{nonexistent|
9017 <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>
9019 <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>
9026 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
9028 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
9030 <p><i>ab</i>c<i>d</i>e
9035 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
9036 (PHP parser generates misnested html)
9040 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
9042 <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>
9046 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
9047 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
9049 parsoid=wt2html,wt2wt
9051 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
9053 <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>
9054 <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>
9055 <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>
9059 Templates: Ugly nesting: 4. Divs opened/closed across templates
9061 a<div>b{{echo|c</div>d}}e
9068 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
9074 |{{echo|foo</table>}}
9078 <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|}"]}'>
9082 <td>foo</td></tr></tbody></table><span about="#mwt1">
9083 </span><span about="#mwt1">|bar</span><span about="#mwt1">
9088 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
9098 <td>1. {{echo|foo </table>}}</td>
9100 <td>2. {{echo|baz </table>}}</td>
9113 <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>"]}'>
9118 <td>1. foo </td></tr></tbody></table></td>
9120 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
9121 </span><span about="#mwt2">
9122 </span><span about="#mwt2">
9123 </span><span about="#mwt2">abc</span><span about="#mwt2">
9124 </span><span about="#mwt2">
9125 </span><span about="#mwt2">
9126 </span><span about="#mwt2">
9127 </span><span about="#mwt2">
9128 </span><span about="#mwt2">
9129 </span><span about="#mwt2">xyz</span><span about="#mwt2">
9130 </span><span about="#mwt2">
9135 Templates: Ugly templates: 3. newline-only template parameter
9144 # This looks like a bug: a single newline triggers p/br for some reason.
9146 Templates: Ugly templates: 4. newline-only template parameter inconsistency
9157 Parser Functions: 1. Simple example
9166 Parser Functions: 2. Nested use (only outermost should be marked up)
9175 ### Pre-save transform tests
9178 pre-save transform: subst:
9184 This is a test template
9188 pre-save transform: normal template
9198 pre-save transform: nonexistent template
9202 {{thistemplatedoesnotexist}}
9204 {{thistemplatedoesnotexist}}
9209 pre-save transform: subst magic variables
9218 # This is bug 89, which I fixed. -- wtm
9220 pre-save transform: subst: templates with parameters
9224 {{subst:paramtest|param="something else"}}
9226 This is a test template with parameter "something else"
9232 <nowiki>'''not wiki'''</nowiki>
9236 pre-save transform: nowiki in subst (bug 1188)
9240 {{subst:nowikitest}}
9242 <nowiki>'''not wiki'''</nowiki>
9247 Template:commenttest
9249 This template has <!-- a comment --> in it.
9253 pre-save transform: comment in subst (bug 1936)
9257 {{subst:commenttest}}
9259 This template has <!-- a comment --> in it.
9263 pre-save transform: unclosed tag
9267 <nowiki>'''not wiki'''
9269 <nowiki>'''not wiki'''
9273 pre-save transform: mixed tag case
9277 <NOwiki>'''not wiki'''</noWIKI>
9279 <NOwiki>'''not wiki'''</noWIKI>
9283 pre-save transform: unclosed comment in <nowiki>
9287 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9289 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
9292 # Leading @ in this template definition works around a limitation
9293 # in parsoid's parserTests which otherwise strips the <span> from the
9294 # result (confusing it for a template wrapper)
9298 @<span onmouseover="alert('crap')">Oh no</span>
9302 (confirming safety of fix for subst bug 1936)
9304 {{Template:dangerous}}
9306 <p>@<span>Oh no</span>
9311 pre-save transform: comment containing gallery (bug 5024)
9315 <!-- <gallery>data</gallery> -->
9317 <!-- <gallery>data</gallery> -->
9321 pre-save transform: comment containing extension
9325 <!-- <tag>data</tag> -->
9327 <!-- <tag>data</tag> -->
9331 pre-save transform: comment containing nowiki
9335 <!-- <nowiki>data</nowiki> -->
9337 <!-- <nowiki>data</nowiki> -->
9341 pre-save transform: <noinclude> in subst (bug 3298)
9351 pre-save transform: <onlyinclude> in subst (bug 3298)
9363 {{<includeonly>subst:</includeonly>Includes}}
9367 Template:SafeSubstTest
9369 {{<includeonly>safesubst:</includeonly>Includes}}
9373 bug 22297: safesubst: works during PST
9377 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
9383 bug 22297: safesubst: works during normal parse
9392 subst: does not work during normal parse
9396 <p>{{subst:Includes}}
9401 pre-save transform: context links ("pipe trick")
9405 [[Article (context)|]]
9408 [[Bar:Article (context)|]]
9409 [[:Bar:Article (context)|]]
9411 [[|Article (context)]]
9415 [[Article (context)|Article]]
9416 [[Bar:Article|Article]]
9417 [[:Bar:Article|Article]]
9418 [[Bar:Article (context)|Article]]
9419 [[:Bar:Article (context)|Article]]
9421 [[Article (context)]]
9422 [[Bar:X (Y) Z|X (Y) Z]]
9423 [[:Bar:X (Y) Z|X (Y) Z]]
9427 pre-save transform: context links ("pipe trick") with interwiki prefix
9431 [[interwiki:Article|]]
9432 [[:interwiki:Article|]]
9433 [[interwiki:Bar:Article|]]
9434 [[:interwiki:Bar:Article|]]
9436 [[interwiki:Article|Article]]
9437 [[:interwiki:Article|Article]]
9438 [[interwiki:Bar:Article|Bar:Article]]
9439 [[:interwiki:Bar:Article|Bar:Article]]
9443 pre-save transform: context links ("pipe trick") with parens in title
9445 pst title=[[Somearticle (context)]]
9449 [[Article (context)|Article]]
9453 pre-save transform: context links ("pipe trick") with comma in title
9455 pst title=[[Someplace, Somewhere]]
9458 [[Otherplace, Elsewhere|]]
9459 [[Otherplace, Elsewhere, Anywhere|]]
9461 [[Otherplace, Somewhere|Otherplace]]
9462 [[Otherplace, Elsewhere|Otherplace]]
9463 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
9467 pre-save transform: context links ("pipe trick") with parens and comma
9469 pst title=[[Someplace (IGNORED), Somewhere]]
9472 [[Otherplace (place), Elsewhere|]]
9474 [[Otherplace, Somewhere|Otherplace]]
9475 [[Otherplace (place), Elsewhere|Otherplace]]
9479 pre-save transform: context links ("pipe trick") with comma and parens
9481 pst title=[[Who, me? (context)]]
9484 [[Me, Myself, and I (1937 song)|]]
9486 [[Yes, you. (context)|Yes, you.]]
9487 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
9491 pre-save transform: context links ("pipe trick") with namespace
9493 pst title=[[Ns:Somearticle]]
9497 [[Ns:Article|Article]]
9501 pre-save transform: context links ("pipe trick") with namespace and parens
9503 pst title=[[Ns:Somearticle (context)]]
9507 [[Ns:Article (context)|Article]]
9511 pre-save transform: context links ("pipe trick") with namespace and comma
9513 pst title=[[Ns:Somearticle, Context, Whatever]]
9517 [[Ns:Article, Context, Whatever|Article]]
9521 pre-save transform: context links ("pipe trick") with namespace, comma and parens
9523 pst title=[[Ns:Somearticle, Context (context)]]
9527 [[Ns:Article (context)|Article]]
9531 pre-save transform: context links ("pipe trick") with namespace, parens and comma
9533 pst title=[[Ns:Somearticle (IGNORED), Context]]
9537 [[Ns:Article, Context|Article]]
9541 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
9545 [[Article(context)|]]
9546 [[Bar:Article(context)|]]
9547 [[:Bar:Article(context)|]]
9548 [[|Article(context)]]
9552 [[Article(context)|Article]]
9553 [[Bar:Article(context)|Article]]
9554 [[:Bar:Article(context)|Article]]
9555 [[Article(context)]]
9557 [[:Bar:X(Y)Z|X(Y)Z]]
9561 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
9565 [[Article (context)|]]
9566 [[Bar:Article (context)|]]
9567 [[:Bar:Article (context)|]]
9568 [[|Article (context)]]
9572 [[Article (context)|Article]]
9573 [[Bar:Article (context)|Article]]
9574 [[:Bar:Article (context)|Article]]
9575 [[Article (context)]]
9576 [[Bar:X (Y) Z|X (Y) Z]]
9577 [[:Bar:X (Y) Z|X (Y) Z]]
9581 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
9585 [[Article(context)|]]
9586 [[Bar:Article(context)|]]
9587 [[:Bar:Article(context)|]]
9588 [[|Article(context)]]
9592 [[Article(context)|Article]]
9593 [[Bar:Article(context)|Article]]
9594 [[:Bar:Article(context)|Article]]
9595 [[Article(context)]]
9597 [[:Bar:X(Y)Z|X(Y)Z]]
9601 pre-save transform: context links ("pipe trick") with commas (bug 21660)
9605 [[Article (context), context|]]
9606 [[Article (context),context|]]
9607 [[Bar:Article (context), context|]]
9608 [[Bar:Article (context),context|]]
9609 [[:Bar:Article (context), context|]]
9610 [[:Bar:Article (context),context|]]
9612 [[Article (context), context|Article]]
9613 [[Article (context),context|Article]]
9614 [[Bar:Article (context), context|Article]]
9615 [[Bar:Article (context),context|Article]]
9616 [[:Bar:Article (context), context|Article]]
9617 [[:Bar:Article (context),context|Article]]
9621 pre-save transform: trim trailing empty lines
9625 Empty lines are trimmed
9631 Empty lines are trimmed
9635 pre-save transform: Signature expansion
9640 * <noinclude>~~~</noinclude>
9641 * <includeonly>~~~</includeonly>
9642 * <onlyinclude>~~~</onlyinclude>
9644 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
9645 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
9646 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
9647 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
9652 pre-save transform: Signature expansion in nowiki tags (bug 93)
9658 <nowiki>~~~~</nowiki>
9660 <includeonly><nowiki>~~~~</nowiki></includeonly>
9662 <noinclude><nowiki>~~~~</nowiki></noinclude>
9664 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9666 {{subst:Foo}} shall be converted to FOO
9668 As well as inside noinclude/onlyinclude
9669 <noinclude>{{subst:Foo}}</noinclude>
9670 <onlyinclude>{{subst:Foo}}</onlyinclude>
9672 But not inside includeonly
9673 <includeonly>{{subst:Foo}}</includeonly>
9677 <nowiki>~~~~</nowiki>
9679 <includeonly><nowiki>~~~~</nowiki></includeonly>
9681 <noinclude><nowiki>~~~~</nowiki></noinclude>
9683 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
9685 FOO shall be converted to FOO
9687 As well as inside noinclude/onlyinclude
9688 <noinclude>FOO</noinclude>
9689 <onlyinclude>FOO</onlyinclude>
9691 But not inside includeonly
9692 <includeonly>{{subst:Foo}}</includeonly>
9696 Parsoid: Recognize nowiki with trailing space in tags
9700 <nowiki ><div>[[foo]]</nowiki >
9708 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9715 Parsoid: Recognize nowiki with odd capitalization
9719 <noWikI ><div>[[foo]]</Nowiki >
9721 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
9726 Parsoid: Escape nowiki with trailing space in tags
9730 <nowiki > foo </nowiki >
9736 <p><nowiki > foo </nowiki ></p>
9737 <p>a<nowiki />b</p>
9738 <p>c<nowiki/ >d</p>
9742 Parsoid: Escape weird noWikI capitalizations
9746 <noWikI > foo </NoWikI >
9748 <p><noWikI > foo </NoWikI ></p>
9752 ### Message transform tests
9755 message transform: magic variables
9765 message transform: should not transform wiki markup
9775 message transform: <noinclude> in transcluded template (bug 4926)
9785 message transform: <onlyinclude> in transcluded template (bug 4926)
9795 {{#special:}} page name, known
9799 {{#special:Recentchanges}}
9801 Special:RecentChanges
9805 {{#special:}} page name with subpage, known
9809 {{#special:Recentchanges/param}}
9811 Special:RecentChanges/param
9815 {{#special:}} page name, unknown
9819 {{#special:foobar nonexistent}}
9821 Special:Foobar nonexistent
9825 {{#speciale:}} page name, known
9829 {{#speciale:Recentchanges}}
9831 Special:RecentChanges
9835 {{#speciale:}} page name with subpage, known
9839 {{#speciale:Recentchanges/param}}
9841 Special:RecentChanges/param
9845 {{#speciale:}} page name, unknown
9849 {{#speciale:foobar nonexistent}}
9851 Special:Foobar_nonexistent
9857 ### For Parsoid-specific tests, see
9858 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9865 [[Image:foobar.jpg]]
9867 <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>
9872 Simple image (parsoid)
9876 [[Image:foobar.jpg]]
9878 <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>
9883 Simple image (using File: namespace, now canonical) (php)
9889 <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>
9894 Simple image (using File: namespace, now canonical) (parsoid)
9900 <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>
9905 Right-aligned image (php)
9909 [[Image:foobar.jpg|right]]
9911 <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>
9916 Right-aligned image (parsoid)
9920 [[File:Foobar.jpg|right]]
9922 <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>
9926 Image with caption (php)
9930 [[File:Foobar.jpg|right|Caption text]]
9932 <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>
9937 Image with caption (parsoid)
9941 [[File:Foobar.jpg|right|Caption text]]
9943 <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>
9947 Image with caption, bug 53312 #1 (parsoid)
9951 [[File:Foobar.jpg|right|Caption page stuff]]
9953 <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>
9957 Image with caption, bug 53312 #2 (parsoid)
9961 [[File:Foobar.jpg|right|Caption page=]]
9963 <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>
9967 Image with caption, bug 53312 #3 (parsoid)
9971 [[File:Foobar.jpg|right|Caption page=stuff]]
9973 <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>
9977 Allow empty links in image captions (Bug 60753) (parsoid)
9981 [[File:Foobar.jpg|thumb|Caption [[Link1]]
9986 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"Caption [[Link1]]\n[[]]\n[[Link2]]\n"}],"dsr":[0,59,2,2]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"dsr":[2,null,null,null]}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption data-parsoid='{"dsr":[null,57,null,null]}'>Caption <a rel="mw:WikiLink" href="./Link1" data-parsoid='{"stx":"simple","a":{"href":"./Link1"},"sa":{"href":"Link1"},"dsr":[32,41,2,2]}'>Link1</a>
9988 <a rel="mw:WikiLink" href="./Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"},"dsr":[47,56,2,2]}'>Link2</a>
9989 </figcaption></figure>
9993 Link with empty target
10002 Image with empty attribute (php)
10006 [[File:Foobar.jpg|right||Caption text]]
10008 <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>
10013 Image with empty attribute (parsoid)
10017 [[File:Foobar.jpg|right||Caption text]]
10019 <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>
10023 1. Block image with individual attributes from templates
10027 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
10029 <figure typeof="mw:Image/Thumb mw:ExpandedAttrs" data-mw='{"attribs":[["thumbnail",{"html":"thumb"}],["width",{"html":"<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;137px&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[24,38,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">137px</span>"}]]}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="16" width="137"/></a><figcaption>This is a caption</figcaption></figure>
10033 2. Block Image with individual attributes from templates
10037 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
10039 <figure typeof="mw:Image/Thumb mw:ExpandedAttrs" data-mw='{"attribs":[["thumbnail",{"html":"<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;thumb&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[18,32,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">thumb</span>"}],["width",{"html":"<span about=\"#mwt2\" 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;137px&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[33,47,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">137px</span>"}]]}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="16" width="137"/></a><figcaption>This is a caption</figcaption></figure>
10043 3. Inline image with individual attributes from templates
10047 [[File:Foobar.jpg|{{echo|50px}}]]
10049 <p><span typeof="mw:Image mw:ExpandedAttrs" about="#mwt2" data-mw='{"attribs":[["width",{"html":"<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;50px&quot;}},&quot;i&quot;:0}}]}\" data-parsoid=\"{&quot;dsr&quot;:[18,31,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\">50px</span>"}]]}' data-parsoid='{"optList":[{"ck":"width","ak":"{{echo|50px}}"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
10053 Image with multiple attributes from the same template (php)
10057 [[File:Foobar.jpg|{{image_attribs}}]]
10059 <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>
10063 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
10064 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
10066 Image with multiple attributes from the same template (parsoid)
10070 [[File:Foobar.jpg|{{image_attribs}}]]
10072 <figure class="mw-default-size mw-halign-right" typeof="mw:Image mw:Placeholder"><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>
10076 Image with link tails (php)
10080 123[[File:Foobar.jpg]]456
10081 123[[File:Foobar.jpg|right]]456
10082 123[[File:Foobar.jpg|thumb]]456
10084 <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
10086 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
10087 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
10092 Image with link tails (parsoid)
10096 123[[File:Foobar.jpg]]456
10097 123[[File:Foobar.jpg|right]]456
10098 123[[File:Foobar.jpg|thumb]]456
10100 <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>
10101 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
10102 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="25" width="220"></a></figure>456
10106 Image with multiple captions -- only last one is accepted (php)
10110 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
10112 <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>
10117 Image with multiple captions -- only last one is accepted (parsoid)
10121 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
10123 <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>
10127 Image with multiple widths -- use last (php)
10131 [[File:Foobar.jpg|200px|300px|caption]]
10133 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg" width="300" height="34" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/450px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/600px-Foobar.jpg 2x" /></a>
10138 Image with multiple widths -- use last (parsoid)
10142 [[File:Foobar.jpg|200px|300px|caption]]
10144 <p><span typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="34" width="300"/></a></span></p>
10148 Image with multiple alignments -- use first (bug 48664) (php)
10152 [[File:Foobar.jpg|thumb|left|right|center|caption]]
10154 [[File:Foobar.jpg|middle|text-top|caption]]
10156 <div class="thumb tleft"><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>caption</div></div></div>
10157 <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" style="vertical-align: middle" /></a>
10162 Image with multiple alignments -- use first (bug 48664) (parsoid)
10166 [[File:Foobar.jpg|thumb|left|right|center|caption]]
10168 [[File:Foobar.jpg|middle|text-top|caption]]
10170 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
10171 <p><span class="mw-default-size mw-valign-middle" typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
10175 Image with width attribute at different positions (php)
10179 [[File:Foobar.jpg|200px|right|Caption]]
10180 [[File:Foobar.jpg|right|200px|Caption]]
10181 [[File:Foobar.jpg|right|Caption|200px]]
10183 <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>
10184 <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>
10185 <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>
10190 Image with width attribute at different positions (parsoid)
10194 [[File:Foobar.jpg|200x200px|right|Caption]]
10195 [[File:Foobar.jpg|right|200x200px|Caption]]
10196 [[File:Foobar.jpg|right|Caption|200x200px]]
10198 <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>
10199 <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>
10200 <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>
10203 # a sad bit of backward-compatibility
10205 Image with size specified with pxpx (bug 13500, 51628) (php)
10209 [[File:Foobar.jpg|20pxpx]]
10210 [[File:Foobar.jpg|200x20pxpx]]
10212 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" 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>
10213 <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/177px-Foobar.jpg" width="177" height="20" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/265px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/353px-Foobar.jpg 2x" /></a>
10218 Image with size specified with pxpx (bug 13500, 51628) (parsoid)
10220 parsoid=wt2html,wt2wt
10222 [[File:Foobar.jpg|20pxpx]]
10223 [[File:Foobar.jpg|200x20pxpx]]
10225 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="2" width="20"/></a></span><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="20" width="177"/></a></span></p>
10229 Image with link parameter, wiki target (php)
10233 [[File:Foobar.jpg|link=Main Page]]
10235 <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>
10240 Image with link parameter, wiki target (parsoid)
10244 [[File:Foobar.jpg|link=Main Page]]
10246 <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>
10250 Image with link parameter, URL target (php)
10254 [[File:Foobar.jpg|link=http://example.com/]]
10256 <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>
10260 # parsoid bug 49293 (part 1)
10262 Image with link parameter, URL target (parsoid)
10266 [[File:Foobar.jpg|link=http://example.com/]]
10268 <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>
10272 Image with link parameter, protocol-less URL target (php)
10276 [[File:Foobar.jpg|link=//example.com/]]
10278 <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>
10282 # parsoid bug 49293 (part 2)
10284 Image with link parameter, protocol-less URL target (parsoid)
10288 [[File:Foobar.jpg|link=//example.com/]]
10290 <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>
10294 Image with link parameter, wgExternalLinkTarget
10296 [[Image:foobar.jpg|link=http://example.com/]]
10298 wgExternalLinkTarget='foobar'
10300 <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>
10305 Image with link parameter, wgNoFollowLinks set to false
10307 [[Image:foobar.jpg|link=http://example.com/]]
10309 wgNoFollowLinks=false
10311 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
10316 Image with link parameter, wgNoFollowDomainExceptions
10318 [[Image:foobar.jpg|link=http://example.com/]]
10320 wgNoFollowDomainExceptions='example.com'
10322 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
10327 Image with link parameter, wgExternalLinkTarget, unnamed parameter
10329 [[Image:foobar.jpg|link=http://example.com/|Title]]
10331 wgExternalLinkTarget='foobar'
10333 <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>
10338 Image with empty link parameter (php)
10342 [[File:Foobar.jpg|link=]]
10344 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
10349 Image with empty link parameter (parsoid)
10353 [[File:Foobar.jpg|link=]]
10355 <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>
10359 Image with link parameter (wiki target) and unnamed parameter (php)
10363 [[File:Foobar.jpg|link=Main Page|Title]]
10365 <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>
10370 Image with link parameter (wiki target) and unnamed parameter (parsoid)
10374 [[File:Foobar.jpg|link=Main Page|Title]]
10376 <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>
10380 Image with link parameter (URL target) and unnamed parameter (php)
10384 [[File:Foobar.jpg|link=http://example.com/|Title]]
10386 <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>
10391 Image with link parameter (URL target) and unnamed parameter (parsoid)
10395 [[File:Foobar.jpg|link=http://example.com/|Title]]
10397 <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>
10401 Thumbnail image with link parameter
10405 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
10407 <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>
10412 Manually-specified thumbnail image
10416 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
10418 <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>
10423 Manually-specified thumbnail image with explicit link to wiki page
10427 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
10429 <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>
10434 Manually-specified thumbnail image with explicit link to url
10438 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
10440 <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>
10445 Manually-specified thumbnail image with explicit no link
10449 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
10451 <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>
10456 Manually-specified thumbnail image with explicit link and alt text
10460 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
10462 <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>
10467 Image with frame and link
10469 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
10471 <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>
10476 Image with frame and link and explicit alt
10478 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
10480 <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>
10485 Image with wiki markup in implicit alt
10487 [[Image:Foobar.jpg|testing '''bold''' in alt]]
10489 <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>
10494 Image with wiki markup in explicit alt
10496 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
10498 <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>
10503 Link to image page- image page normally doesn't exists, hence edit link
10504 Add test with existing image page
10505 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
10509 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
10514 bug 18784 Link to non-existent image page with caption should use caption as link text
10516 [[:Image:test|caption]]
10518 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
10523 Frameless image caption with a free URL
10525 [[Image:foobar.jpg|http://example.com]]
10527 <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>
10532 Thumbnail image caption with a free URL
10534 [[Image:foobar.jpg|thumb|http://example.com]]
10536 <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>
10541 Thumbnail image caption with a free URL and explicit alt
10543 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
10545 <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>
10550 SVG thumbnails with no language set
10553 [[File:Foobar.svg|thumb|caption]]
10555 <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>
10560 SVG thumbnails with language de
10563 [[File:Foobar.svg|thumb|caption|lang=de]]
10565 <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>
10570 SVG thumbnails with invalid language code
10573 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
10575 <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>
10580 BUG 1887: A ISBN with a thumbnail
10582 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
10584 <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>
10589 BUG 1887: A RFC with a thumbnail
10591 [[Image:foobar.jpg|thumb|This is RFC 12354]]
10593 <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>
10598 BUG 1887: A mailto link with a thumbnail
10600 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
10602 <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>
10606 # Pending resolution to bug 368
10608 BUG 648: Frameless image caption with a link
10610 [[Image:foobar.jpg|text with a [[link]] in it]]
10612 <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>
10617 BUG 648: Frameless image caption with a link (suffix)
10619 [[Image:foobar.jpg|text with a [[link]]foo in it]]
10621 <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>
10626 BUG 648: Frameless image caption with an interwiki link
10628 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
10630 <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>
10635 BUG 648: Frameless image caption with a piped interwiki link
10637 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
10639 <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>
10644 Escape HTML special chars in image alt text
10646 [[Image:foobar.jpg|& < > "]]
10648 <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>
10653 BUG 499: Alt text should have Ӓ, not &1234;
10655 [[Image:foobar.jpg|♀]]
10657 <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>
10662 Broken image caption with link
10664 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
10666 <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.
10671 Image caption containing another image
10673 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
10675 <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>
10680 Image caption containing a newline
10682 [[Image:Foobar.jpg|This
10685 <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>
10690 Parsoid: Image caption containing leading space
10691 (The leading space should not trigger nowiki escaping in wt2wt mode)
10693 [[Image:Foobar.jpg|thumb| bar]]
10695 <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>
10700 Image caption containing a table (php)
10704 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
10710 and some more text.]]
10712 <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 is an example image thumbnail caption with a table <table> <tr> <th> Foo </th> <th> Bar </th></tr> <tr> <td> Foo1 </td> <td> Bar1 </td></tr></table> and some more text.</div></div></div>
10717 Image caption containing a table (parsoid)
10721 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
10727 and some more text.]]
10729 <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 is an example image thumbnail caption with a table
10732 <tr><th>Foo </th><th>Bar</th></tr>
10735 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
10739 Bug 3090: External links other than http: in image captions
10741 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
10743 <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>
10750 [[Image:foobar.jpg|a|class=b]]
10752 <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>
10757 Localized image handling (1).
10761 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
10763 <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>
10768 Localized image handling (2).
10772 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
10774 <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>
10779 "border", "frameless" and "class" attributes on an image.
10781 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
10783 <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>
10790 #REDIRECT [[File:Barfoo.jpg]]
10796 [[Image:Barfoo.jpg]]
10798 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
10803 Missing image with uploads disabled
10807 [[Image:Foobaz.jpg]]
10809 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
10813 # Parsoid-specific testing for images
10814 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
10815 # Currently imperfect due to a flaw in the Parsoid testrunner
10817 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
10821 Parsoid-specific image handling - simple image with size and middle alignment
10825 [[File:Foobar.jpg|middle|50px]]
10827 <p><span class="mw-valign-middle" typeof="mw:Image">
10828 <a href="File:Foobar.jpg">
10829 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10836 Parsoid-specific image handling - simple image with size, middle alignment,
10837 non-standard namespace alias
10839 parsoid=wt2wt,wt2html,html2html
10841 [[Image:Foobar.jpg|middle|50px]]
10843 <p><span class="mw-valign-middle" typeof="mw:Image">
10844 <a href="File:Foobar.jpg">
10845 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10852 Parsoid-specific image handling - simple image with size and middle alignment
10857 [[File:Foobar.jpg|50px|middle]]
10859 <p><span class="mw-valign-middle" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"50px"},{"ck":"middle","ak":"middle"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
10863 Parsoid-specific image handling - simple image with size and middle alignment
10864 and non-standard namespace name
10866 parsoid=wt2html,wt2wt,html2html
10868 [[Image:Foobar.jpg|50px|middle]]
10870 <p><span class="mw-valign-middle" typeof="mw:Image">
10871 <a href="File:Foobar.jpg">
10872 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
10879 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
10883 [[File:Foobar.jpg|500x10px|baseline|caption]]
10885 <p><span class="mw-valign-baseline" typeof="mw:Image" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"width","ak":"500x10px"},{"ck":"baseline","ak":"baseline"},{"ck":"caption","ak":"caption"}],"size":"500x10"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"10","width":"89"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
10889 Parsoid-specific image handling - simple image with border and size spec
10893 [[File:Foobar.jpg|50px|border|caption]]
10895 <p><span class="mw-image-border" typeof="mw:Image" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"width","ak":"50px"},{"ck":"border","ak":"border"},{"ck":"caption","ak":"caption"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
10899 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10903 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
10905 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
10906 <a href="File:Foobar.jpg">
10907 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" />
10909 <figcaption>caption content</figcaption>
10914 Parsoid-specific image handling - thumbnail with halign, valign, and caption
10919 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
10921 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"left","ak":"left"},{"ck":"baseline","ak":"baseline"},{"ck":"caption","ak":"caption content"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption content</figcaption></figure>
10925 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
10929 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
10931 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
10932 <a href="File:Foobar.jpg">
10933 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
10935 <figcaption>caption</figcaption>
10940 Parsoid-specific image handling - thumbnail with specific size, halign,
10941 valign, and caption (existing content)
10945 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
10947 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"50x50px"},{"ck":"right","ak":"right"},{"ck":"middle","ak":"middle"},{"ck":"caption","ak":"caption"}],"size":"50x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
10951 Parsoid-specific image handling - framed image with specific size and caption
10955 [[Image:Foobar.jpg|frame|500x50px|caption]]
10957 <figure typeof="mw:Image/Frame">
10958 <a href="File:Foobar.jpg">
10959 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10961 <figcaption>caption</figcaption>
10966 Parsoid-specific image handling - framed image with specific size and caption
10971 [[File:Foobar.jpg|442x50px|frame|caption]]
10973 <figure typeof="mw:Image/Frame" data-parsoid='{"optList":[{"ck":"width","ak":"442x50px"},{"ck":"framed","ak":"frame"},{"ck":"caption","ak":"caption"}],"size":"442x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"50","width":"442"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
10977 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
10981 [[Image:Foobar.jpg|left|baseline|frame|500x50px|caption]]
10983 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
10984 <a href="File:Foobar.jpg">
10985 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
10987 <figcaption>caption</figcaption>
10992 Parsoid-specific image handling - framed image with specific size, halign,
10993 valign, and caption (existing content)
10997 [[File:Foobar.jpg|442x50px|frame|left|baseline|caption]]
10999 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame" data-parsoid='{"optList":[{"ck":"width","ak":"442x50px"},{"ck":"framed","ak":"frame"},{"ck":"left","ak":"left"},{"ck":"baseline","ak":"baseline"},{"ck":"caption","ak":"caption"}],"size":"442x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"50","width":"442"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
11003 Parsoid-specific image handling - frameless image with specific size, border, and caption
11007 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
11009 <p><span class="mw-image-border" typeof="mw:Image/Frameless" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"frameless","ak":"frameless"},{"ck":"width","ak":"442x50px"},{"ck":"border","ak":"border"},{"ck":"caption","ak":"caption"}],"size":"442x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"50","width":"442"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
11013 Parsoid-specific image handling - simple image with a formatted caption
11017 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
11019 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>"}'>
11020 <a href="File:Foobar.jpg">
11021 <img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
11026 Parsoid-specific image handling - caption with a template in it
11030 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
11032 <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>
11036 Parsoid-specific image handling - caption with unbalanced tags in it
11038 parsoid=wt2html,wt2wt,html2html
11041 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
11045 <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>
11050 Parsoid-specific image handling - empty caption
11054 [[File:Foobar.jpg|thumb|]]
11056 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption></figcaption></figure>
11060 Parsoid-specific image handling - whitespace caption
11064 [[File:Foobar.jpg|thumb| ]]
11066 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption> </figcaption></figure>
11070 Parsoid-specific image handling - lang option
11075 [[File:Foobar.svg|lang=de|caption]]
11079 <span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="./File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" lang="de" height="180" width="240"/></a></span>
11088 Subpage test/subpage
11096 subpage title=[[Subpage test]]
11100 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
11105 Subpage noslash link
11107 subpage title=[[Subpage test]]
11111 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
11115 # TODO: make this PHP-parser compatible!
11117 Relative subpage noslash link
11119 parsoid=wt2wt,wt2html,html2html
11120 subpage title=[[Subpage test/1/2/3/4]]
11126 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
11127 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
11130 # TODO: make this PHP-parser compatible!
11132 Parsoid: dot-slash prefixed wikilinks
11134 parsoid=wt2wt,wt2html,html2html
11142 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
11143 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
11144 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
11152 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
11157 BUG 561: {{/Subpage}}
11159 subpage title=[[Page]]
11163 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
11171 Category:MediaWiki User's Guide
11179 [[:Category:MediaWiki User's Guide]]
11181 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
11190 [[Category:MediaWiki User's Guide]]
11192 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11196 PAGESINCATEGORY invalid title fatal (r33546 fix)
11198 {{PAGESINCATEGORY:<bogus>}}
11205 Category with different sort key
11209 [[Category:MediaWiki User's Guide|Foo]]
11211 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11215 Category with identical sort key
11219 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11221 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
11225 Category with empty sort key
11230 [[Category:MediaWiki User's Guide|]]
11232 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
11236 Category with empty sort key and parentheses
11241 [[Category:Foo (bar)|]]
11243 [[Category:Foo (bar)|Foo]]
11247 Category with link tail
11252 123[[Category:Foo]]456
11254 123[[Category:Foo]]456
11258 Category with template
11263 [[Category:{{echo|Foo}}]]
11265 [[Category:{{echo|Foo}}]]
11269 Category with template in sort key
11274 [[Category:Foo|{{echo|Bar}}]]
11276 [[Category:Foo|{{echo|Bar}}]]
11280 Category with template in sort key and title
11285 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11287 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
11291 Category / paragraph interactions
11293 Foo [[Category:Baz]] Bar
11295 Foo [[Category:Baz]]
11303 [[Category:Baz]] Bar
11316 {{echo|[[Category:Baz]]}}
11331 Parsoid: Serialize link to category page with colon escape
11337 [[:Category:Foo|Bar]]
11340 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
11341 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
11346 Parsoid: Link prefix/suffixes aren't applied to category links
11348 parsoid=wt2html,wt2wt,html2html
11353 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
11357 Parsoid: Serialize link to file page with colon escape
11363 [[:File:Foo.png|Bar]]
11366 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
11367 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
11372 Parsoid: Serialize a genuine category link without colon escape
11377 [[Category:Foo|Bar]]
11379 <link rel="mw:PageProp/Category" href="Category:Foo">
11380 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
11384 Parsoid: Defaultsort
11388 {{DEFAULTSORT:Foo}}
11390 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
11394 ### Inter-language links
11397 Inter-language links
11403 [[zh:食品]]
11405 es:Alimento fr:Nourriture zh:食品
11409 Duplicate interlanguage links (bug 24502)
11425 Basic section headings
11432 ===Smaller headline===
11435 <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>
11438 <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>
11441 <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>
11447 Section headings with TOC
11450 === Subheadline 1 ===
11451 ===== Skipping a level =====
11452 ====== Skipping a level ======
11456 ===Another headline===
11458 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11460 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
11462 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
11464 <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>
11466 <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>
11473 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
11475 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
11481 <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>
11482 <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>
11483 <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>
11484 <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>
11485 <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>
11488 <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>
11492 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
11494 Handling of sections up to level 6 and beyond
11497 == Level 2 Heading==
11498 === Level 3 Heading===
11499 ==== Level 4 Heading====
11500 ===== Level 5 Heading=====
11501 ====== Level 6 Heading======
11502 ======= Level 7 Heading=======
11503 ======== Level 8 Heading========
11504 ========= Level 9 Heading=========
11505 ========== Level 10 Heading==========
11507 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11509 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
11511 <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>
11513 <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>
11515 <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>
11517 <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>
11519 <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>
11520 <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>
11521 <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>
11522 <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>
11523 <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>
11537 <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>
11538 <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>
11539 <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>
11540 <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>
11541 <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>
11542 <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>
11543 <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>
11544 <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>
11545 <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>
11546 <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>
11551 TOC regression (bug 9764)
11555 ==== title 1.1.1 ====
11560 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11562 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11564 <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>
11566 <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>
11569 <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>
11572 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11574 <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>
11580 <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>
11581 <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>
11582 <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>
11583 <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>
11584 <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>
11585 <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>
11590 TOC with wgMaxTocLevel=3 (bug 6204)
11596 ==== title 1.1.1 ====
11601 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11603 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11605 <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>
11606 <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>
11609 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
11611 <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>
11617 <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>
11618 <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>
11619 <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>
11620 <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>
11621 <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>
11622 <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>
11627 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
11633 ====Section 1.1.1====
11634 ====Section 1.1.1.1====
11637 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11639 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
11641 <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>
11644 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
11648 <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>
11649 <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>
11650 <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>
11651 <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>
11652 <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>
11658 Resolving duplicate section names
11663 <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>
11664 <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>
11669 Resolving duplicate section names with differing case (bug 10721)
11674 <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>
11675 <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>
11687 Template with sections, __NOTOC__
11694 <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>
11695 <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>
11696 <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>
11697 <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>
11702 __NOEDITSECTION__ keyword
11708 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
11709 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
11714 Link inside a section heading
11716 ==Section with a [[Main Page|link]] in it==
11718 <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>
11723 TOC regression (bug 12077)
11730 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11732 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
11734 <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>
11737 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
11741 <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>
11742 <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>
11743 <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>
11748 BUG 1219 URL next to image (good)
11750 http://example.com [[Image:foobar.jpg]]
11752 <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>
11757 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
11760 The line above must have a trailing space!
11763 But just in case it doesn't...
11765 <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>
11766 <p>The line above must have a trailing space!
11768 <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>
11769 <p>But just in case it doesn't...
11774 Header with special characters (bug 25462)
11776 The tooltips shall not show entities to the user (ie. be double escaped)
11793 <p>The tooltips shall not show entities to the user (ie. be double escaped)
11795 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11797 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
11798 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
11799 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
11800 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
11801 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
11805 <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>
11808 <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>
11811 <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>
11814 <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>
11817 <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>
11823 Headers with excess '=' characters
11824 (Are similar tests necessary beyond the 1st level?)
11828 =''italic'' heading==
11829 ==''italic'' heading=
11831 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11833 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
11834 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
11835 <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>
11836 <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>
11840 <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>
11841 <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>
11842 <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>
11843 <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>
11848 HTML headers vs TOC (bug 23393)
11849 (__NOEDITSECTION__ for clearer output, doesn't matter here)
11861 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11863 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
11865 <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>
11866 <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>
11869 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
11871 <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>
11872 <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>
11878 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
11879 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
11880 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
11881 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
11882 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
11883 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
11888 BUG 1219 URL next to image (broken)
11890 http://example.com[[Image:foobar.jpg]]
11892 <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>
11897 Bug 1186 news: in the middle of text
11899 http://en.wikinews.org/wiki/Wikinews:Workplace
11901 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
11907 Namespaced link must have a title
11916 Namespaced link must have a title (bad fragment version)
11918 [[Project:#fragment]]
11920 <p>[[Project:#fragment]]
11926 ### HTML tags and HTML attributes
11930 div with no attributes
11932 <div>HTML rocks</div>
11934 <div>HTML rocks</div>
11939 div with double-quoted attribute
11941 <div id="rock">HTML rocks</div>
11943 <div id="rock">HTML rocks</div>
11948 div with single-quoted attribute
11950 <div id='rock'>HTML rocks</div>
11952 <div id="rock">HTML rocks</div>
11957 div with unquoted attribute
11959 <div id=rock>HTML rocks</div>
11961 <div id="rock">HTML rocks</div>
11966 div with illegal double attributes
11968 <div id="a" id="b">HTML rocks</div>
11970 <div id="b">HTML rocks</div>
11974 # FIXME: produce empty string instead of "class" in the PHP parser, following
11977 div with empty attribute value, space before equals
11981 <div class =>HTML rocks</div>
11983 <div class="">HTML rocks</div>
11987 # The PHP parser escapes the opening brace to { for some reason, so
11988 # disabled this test for it.
11990 div with braces in attribute value
11994 <div title="{}">Foo</div>
11996 <div title="{}">Foo</div>
11999 # This it very inconsistent in the PHP parser: it returns
12000 # class="class" if there is a space between the name and the equal sign (see
12001 # 'div with empty attribute value, space before equals'), but strips the
12002 # attribute completely if the space is missing. We hope that not much content
12003 # depends on this, so are implementing the behavior below in Parsoid for
12004 # consistencies' sake. Disabled for the PHP parser.
12005 # FIXME: fix this behavior in the PHP parser?
12007 div with empty attribute value, no space before equals
12011 <div class=>HTML rocks</div>
12013 <div class="">HTML rocks</div>
12018 HTML multiple attributes correction
12020 <p class="error" class="awesome">Awesome!</p>
12022 <p class="awesome">Awesome!</p>
12027 Table multiple attributes correction
12030 !+ class="error" class="awesome"| status
12035 <th class="awesome"> status
12043 <DIV ID="x">HTML ROCKS</DIV>
12045 <div id="x">HTML ROCKS</div>
12050 Non-ASCII pseudo-tags are rendered as text
12059 Pseudo-tag with URL 'name' renders as url link
12061 <http://example.com/>
12063 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
12068 text with amp in the middle of nowhere
12072 <p>Remember AT&T?
12077 text with character entity: eacute
12079 I always thought é was a cute letter.
12081 <p>I always thought é was a cute letter.
12086 text with entity-escaped character entity-like string: eacute
12088 I always thought &eacute; was a cute letter.
12090 <p>I always thought &eacute; was a cute letter.
12095 text with undefined character entity: xacute
12097 I always thought &xacute; was a cute letter.
12099 <p>I always thought &xacute; was a cute letter.
12103 # TODO: generalize to PHP parser?
12109 <data value="5">five</data>
12110 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
12111 <mark>This highlighted text</mark>
12113 <p><data value="5">five</data>
12114 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
12115 <mark>This highlighted text</mark></p>
12119 HTML tag with leading space is parsed as text
12123 <p>< div>foo< /div>
12128 ### Nesting tests (see bug 41545, 50604, 51081)
12131 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
12132 # Note that html2wt is considerably more difficult if we use <b> in
12133 # the test case, instead of <big>
12135 Ensure that HTML adoption agency algorithm is properly implemented.
12137 <big>X<big>Y</big>Z</big>
12139 <p><big>X<big>Y</big>Z</big>
12143 # This was bug 41545 in the PHP parser.
12147 <kbd>X<kbd>Y</kbd>Z</kbd>
12149 <p><kbd>X<kbd>Y</kbd>Z</kbd>
12153 # The following cases were bug 51081 in the PHP parser.
12154 # Note that there are some other nestable tags (b, i, etc) which are
12155 # not covered; see bug 51081 for discussion.
12159 <em>X<em>Y</em>Z</em>
12161 <p><em>X<em>Y</em>Z</em>
12166 Nesting of <strong>
12168 <strong>X<strong>Y</strong>Z</strong>
12170 <p><strong>X<strong>Y</strong>Z</strong>
12179 <p><q>X<q>Y</q>Z</q>
12186 <ruby>X<ruby>Y</ruby>Z</ruby>
12188 <p><ruby>X<ruby>Y</ruby>Z</ruby>
12195 <bdo>X<bdo>Y</bdo>Z</bdo>
12197 <p><bdo>X<bdo>Y</bdo>Z</bdo>
12209 [[Media:Foobar.jpg]]
12211 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
12216 Media link with text
12218 [[Media:Foobar.jpg|A neat file to look at]]
12220 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
12224 # FIXME: this is still bad HTML tag nesting
12226 Media link with nasty text
12227 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
12229 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
12231 <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>
12236 Media link to nonexistent file (bug 1702)
12238 [[Media:No such.jpg]]
12240 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
12245 Image link to nonexistent file (bug 1850 - good)
12247 [[Image:No such.jpg]]
12249 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
12254 :Image link to nonexistent file (bug 1850 - bad)
12256 [[:Image:No such.jpg]]
12258 <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>
12265 Character reference normalization in link text (bug 1938)
12267 [[Main Page|this&that]]
12269 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
12276 Test for unicode normalization
12278 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
12282 (bug 19451) Links should refer to the normalized form.
12290 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12291 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12292 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12293 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12294 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
12299 Empty attribute crash test (bug 2067)
12301 <font color="">foo</font>
12303 <p><font color="">foo</font>
12308 Empty attribute crash test single-quotes (bug 2067)
12310 <font color=''>foo</font>
12312 <p><font color="">foo</font>
12317 Attribute test: equals, then nothing
12319 <font color=>foo</font>
12321 <p><font>foo</font>
12326 Attribute test: unquoted value
12328 <font color=x>foo</font>
12330 <p><font color="x">foo</font>
12335 Attribute test: unquoted but illegal value (hash)
12337 <font color=#x>foo</font>
12339 <p><font color="#x">foo</font>
12344 Attribute test: no value
12346 <font color>foo</font>
12348 <p><font color="color">foo</font>
12353 Bug 2095: link with three closing brackets
12357 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
12362 Bug 2095: link with pipe and three closing brackets
12364 [[Main Page|link]]]
12366 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
12371 Bug 2095: link with pipe and three closing brackets, version 2
12373 [[Main Page|[http://example.com/]]]
12375 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
12385 Template:Dangerous attribute
12387 " onmouseover="alert(document.cookie)
12391 Template:Dangerous style attribute
12393 border-size: expression(alert(document.cookie))
12399 <div style="float: right; {{{1}}}">Magic div</div>
12403 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
12405 <div title="{{test}}"></div>
12407 <div title="This is a test template"></div>
12412 Bug 2304: HTML attribute safety (dangerous template; 2309)
12414 <div title="{{dangerous attribute}}"></div>
12416 <div title=""></div>
12421 Bug 2304: HTML attribute safety (dangerous style template; 2309)
12423 <div style="{{dangerous style attribute}}"></div>
12425 <div style="/* insecure input */"></div>
12430 Bug 2304: HTML attribute safety (safe parameter; 2309)
12432 {{div style|width: 200px}}
12434 <div style="float: right; width: 200px">Magic div</div>
12439 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
12441 {{div style|width: expression(alert(document.cookie))}}
12443 <div style="/* insecure input */">Magic div</div>
12448 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
12450 {{div style|"><script>alert(document.cookie)</script>}}
12452 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12457 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
12459 {{div style|" ><script>alert(document.cookie)</script>}}
12461 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
12466 Bug 2304: HTML attribute safety (link)
12468 <div title="[[Main Page]]"></div>
12470 <div title="[[Main Page]]"></div>
12475 Bug 2304: HTML attribute safety (italics)
12477 <div title="''foobar''"></div>
12479 <div title="''foobar''"></div>
12484 Bug 2304: HTML attribute safety (bold)
12486 <div title="'''foobar'''"></div>
12488 <div title="'''foobar'''"></div>
12494 Bug 2304: HTML attribute safety (ISBN)
12496 <div title="ISBN 1234567890"></div>
12498 <div title="ISBN 1234567890"></div>
12503 Bug 2304: HTML attribute safety (RFC)
12505 <div title="RFC 1234"></div>
12507 <div title="RFC 1234"></div>
12512 Bug 2304: HTML attribute safety (PMID)
12514 <div title="PMID 1234567890"></div>
12516 <div title="PMID 1234567890"></div>
12521 Bug 2304: HTML attribute safety (web link)
12523 <div title="http://example.com/"></div>
12525 <div title="http://example.com/"></div>
12530 Bug 2304: HTML attribute safety (named web link)
12532 <div title="[http://example.com/ link]"></div>
12534 <div title="[http://example.com/ link]"></div>
12539 Bug 3244: HTML attribute safety (extension; safe)
12541 <div style="<nowiki>background:blue</nowiki>"></div>
12543 <div style="background:blue"></div>
12548 Bug 3244: HTML attribute safety (extension; unsafe)
12550 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
12552 <div style="/* insecure input */"></div>
12556 # More MSIE fun discovered by Tom Gilder
12559 MSIE CSS safety test: spurious slash
12561 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
12563 <div style="/* insecure input */">evil</div>
12568 MSIE CSS safety test: hex code
12570 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
12572 <div style="/* insecure input */">evil</div>
12577 MSIE CSS safety test: comment in url
12579 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
12581 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
12586 MSIE CSS safety test: comment in expression
12588 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
12590 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
12595 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
12597 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
12599 <p style="/* invalid control char */">A</p>
12604 MSIE 6 CSS safety test: Fullwidth (bug 55332)
12606 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
12607 <div style="top:EXPRESSION(alert())">B</div>
12609 <p style="/* insecure input */">A</p>
12610 <div style="/* insecure input */">B</div>
12615 MSIE 6 CSS safety test: IPA extensions (bug 55332)
12617 <div style="background-image:uʀʟ(javascript:alert())">A</div>
12618 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
12620 <div style="/* insecure input */">A</div>
12621 <p style="/* insecure input */">B</p>
12626 MSIE 6 CSS safety test: sup/sub script (bug 55332)
12628 <div style="background-image:url⁽javascript:alert())">A</div>
12629 <div style="background-image:url₍javascript:alert())">B</div>
12630 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
12632 <div style="/* insecure input */">A</div>
12633 <div style="/* insecure input */">B</div>
12634 <p style="/* insecure input */">C</p>
12642 title="data:text/html,<img src=1 onerror=alert(1)>"
12643 style="-o-link:attr(title);-o-link-source:current">X</div>
12645 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
12650 MSIE 6 CSS safety test: Repetition markers (bug 55332)
12652 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
12653 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
12654 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
12655 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
12656 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
12657 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
12658 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
12660 <p style="/* insecure input */">A</p>
12661 <p style="/* insecure input */">B</p>
12662 <p style="/* insecure input */">C</p>
12663 <p style="/* insecure input */">D</p>
12664 <p style="/* insecure input */">E</p>
12665 <p style="/* insecure input */">F</p>
12666 <p style="/* insecure input */">G</p>
12671 Table attribute legitimate extension
12674 !+ style="<nowiki>color:blue</nowiki>"| status
12679 <th style="color:blue"> status
12685 Table attribute safety
12688 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
12693 <th style="/* insecure input */"> status
12699 CSS line continuation 1
12701 <div style="background-image: u\ rl(test.jpg);"></div>
12703 <div style="/* insecure input */"></div>
12708 CSS line continuation 2
12710 <div style="background-image: u\ rl(test.jpg); "></div>
12712 <div style="/* insecure input */"></div>
12723 Expansion of multi-line templates in attribute values (bug 6255)
12725 <div style="background: {{identity|#00FF00}}">-</div>
12727 <div style="background: #00FF00">-</div>
12733 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
12735 <div style="background:
12738 <div style="background: #00FF00">-</div>
12743 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
12745 <div style="background: #00FF00">-</div>
12747 <div style="background: #00FF00">-</div>
12752 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
12755 Parser hook: empty input
12768 Parser hook: empty input using terminated empty elements
12781 Parser hook: empty input using terminated empty elements (space before)
12794 Parser hook: basic input
12808 Parser hook: case insensitive
12822 Parser hook: case insensitive, redux
12835 Parser hook: nested tags
12839 <tag><tag></tag></tag>
12850 Parser hook: basic arguments
12852 <tag width=200 height = "100" depth = '50' square></tag>
12860 'square' => 'square',
12867 Parser hook: argument containing a forward slash (bug 5344)
12869 <tag filename='/tmp/bla'></tag>
12874 'filename' => '/tmp/bla',
12881 Parser hook: empty input using terminated empty elements (bug 2374)
12894 # </tag> should be output literally since there is no matching tag that begins it
12896 Parser hook: basic arguments using terminated empty elements (bug 2374)
12898 <tag width=200 height = "100" depth = '50' square/>
12908 'square' => 'square',
12917 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
12921 Parser hook: static parser hook not inside a comment
12923 <statictag>hello, world</statictag>
12924 <statictag action=flush/>
12932 Parser hook: static parser hook inside a comment
12934 <!-- <statictag>hello, world</statictag> -->
12935 <statictag action=flush/>
12941 # Nested template calls; this case was broken by Parser.php rev 1.506,
12945 Template:One-parameter
12947 (My parameter is: {{{1}}})
12951 Template:Map-one-parameter
12953 {{{{{1}}}|{{{2}}}}}
12957 Nested template calls
12959 {{Map-one-parameter|One-parameter|param}}
12961 <p>(My parameter is: param)
12970 Sanitizer: Closing of open tags
12972 <s></s><table></table>
12974 <s></s><table></table>
12979 Sanitizer: Closing of open but not closed tags
12988 Sanitizer: Closing of closed but not open tags
12997 Sanitizer: Closing of closed but not open table tags
12999 Table not started</td></tr></table>
13001 <p>Table not started</td></tr></table>
13006 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
13008 <span id="æ: v">byte</span>[[#æ: v|backlink]]
13010 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
13015 Sanitizer: Validating the contents of the id attribute (bug 4515)
13021 Something, but definitely not <br id="9" />...
13025 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
13029 <br id="foo" /><br id="foo" />
13031 Something need to be done. foo-2 ?
13035 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
13038 <meta itemprop="hello" content="world">
13039 <meta http-equiv="refresh" content="5">
13040 <meta itemprop="hello" http-equiv="refresh" content="5">
13041 <link itemprop="hello" href="{{SERVER}}">
13042 <link rel="stylesheet" href="{{SERVER}}">
13043 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
13046 <div itemscope="itemscope">
13047 <p> <meta itemprop="hello" content="world" />
13048 <meta http-equiv="refresh" content="5">
13049 <meta itemprop="hello" content="5" />
13051 <link itemprop="hello" href="http://example.org" />
13052 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
13053 <link itemprop="hello" href="http://example.org" />
13059 Language converter: output gets cut off unexpectedly (bug 5757)
13063 this bit is safe: }-
13065 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
13067 then we get cut off here: }-
13069 all additional text is vanished
13071 <p>this bit is safe: }-
13072 </p><p>but if we add a conversion instance: xxx
13073 </p><p>then we get cut off here: }-
13074 </p><p>all additional text is vanished
13079 Self closed html pairs (bug 5487)
13082 <center><font id="bug" />Centered text</center>
13083 <div><font id="bug2" />In div text</div>
13085 <center><font id="bug" />Centered text</center>
13086 <div><font id="bug2" />In div text</div>
13095 Punctuation: nbsp before exclamation
13099 <p>C'est grave !
13104 Punctuation: CSS !important (bug 11874)
13106 <div style="width:50% !important">important</div>
13108 <div style="width:50% !important">important</div>
13113 Punctuation: CSS ! important (bug 11874; with space after)
13115 <div style="width:50% ! important">important</div>
13117 <div style="width:50% ! important">important</div>
13123 HTML bullet list, closed tags (bug 5497)
13138 HTML bullet list, unclosed tags (bug 5497)
13157 HTML ordered list, closed tags (bug 5497)
13172 HTML ordered list, unclosed tags (bug 5497)
13191 HTML nested bullet list, closed tags (bug 5497)
13216 HTML nested bullet list, open tags (bug 5497)
13245 HTML nested ordered list, closed tags (bug 5497)
13270 HTML nested ordered list, open tags (bug 5497)
13299 HTML ordered list item with parameters oddity
13301 <ol><li id="fragment">One</li>
13304 <ol><li id="fragment">One</li>
13310 bug 5918: autonumbering
13312 [http://first/] [http://second] [ftp://ftp]
13316 [mailto:enclosed@mail.tld With target]
13318 [mailto:enclosed@mail.tld]
13320 mailto:inline@mail.tld
13322 <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>
13323 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
13324 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
13325 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
13326 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
13332 # Security and HTML correctness
13333 # From Nick Jenkins' fuzz testing
13337 Fuzz testing: Parser13
13352 Fuzz testing: Parser14
13357 <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>
13358 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13360 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
13368 Fuzz testing: Parser14-table
13373 <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>
13374 <table style="__TOC__">
13380 # Known to produce bogus xml (extra </td>)
13382 Fuzz testing: Parser16
13402 Fuzz testing: Parser21
13405 ! irc://{{ftp://a" onmouseover="alert('hello world');"
13410 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
13420 Fuzz testing: Parser22
13422 http://===r:::https://b
13426 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
13434 # Known to produce bad XML for now
13436 Fuzz testing: Parser24
13443 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
13444 <br style="onmouseover='alert(document.cookie);' " />
13446 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13451 <u class="|">}}}} >
13452 <br style="onmouseover='alert(document.cookie);'" />
13454 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
13463 # Note: the current result listed for this is not what the original one was,
13464 # but the original bug was JavaScript injection, which is fixed in any case.
13465 # It's not clear that the original result listed was any more correct than the
13466 # current one. Original result:
13469 # <li class="||">
13470 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13472 Fuzz testing: Parser25 (bug 6055)
13478 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
13480 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
13485 Fuzz testing: URL adjacent extension (with space, clean)
13488 http://example.com <nowiki>junk</nowiki>
13490 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
13495 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
13498 http://example.com<nowiki>junk</nowiki>
13500 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
13505 Fuzz testing: URL adjacent extension (no space, dirty; pre)
13508 http://example.com<pre>junk</pre>
13510 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
13515 Fuzz testing: image with bogus manual thumbnail
13517 [[Image:foobar.jpg|thumbnail= ]]
13519 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
13524 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
13526 <pre dir=" "></pre>
13528 <pre dir=" "></pre>
13533 Parsing optional HTML elements (Bug 6171)
13538 <td> Some tabular data</td>
13539 <td> More tabular data ...
13540 <td> And yet som tabular data</td>
13546 <td> Some tabular data</td>
13547 <td> More tabular data ...
13548 </td><td> And yet som tabular data</td>
13555 Correct handling of <td>, <tr> (Bug 6171)
13560 <td> Some tabular data</td>
13561 <td> More tabular data ...</td>
13562 <td> And yet som tabular data</td>
13568 <td> Some tabular data</td>
13569 <td> More tabular data ...</td>
13570 <td> And yet som tabular data</td>
13578 Parsing crashing regression (fr:JavaScript)
13582 <p></body></x>
13587 Inline wiki vs wiki block nesting
13593 <p><b>Bold paragraph</b>
13594 </p><p>New wiki paragraph
13599 Inline HTML vs wiki block nesting
13607 <p><b>Bold paragraph</b>
13608 </p><p>New wiki paragraph
13612 # Original result was this:
13613 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
13615 # While that might be marginally more intuitive, maybe, the six-apostrophe
13616 # construct is clearly pathological and the result stated here (which is what
13617 # the parser actually does) is about as reasonable as anything.
13619 Mixing markup for italics and bold
13622 '''bold''''''bold''bolditalics'''''
13624 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
13632 Article for special page transclusion test
13636 Special page transclusion
13639 {{Special:Prefixindex/Xyzzyx}}
13641 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13646 Special page transclusion twice (bug 5021)
13649 {{Special:Prefixindex/Xyzzyx}}
13650 {{Special:Prefixindex/Xyzzyx}}
13652 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13653 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
13658 Transclusion of default MediaWiki message
13660 {{MediaWiki:Mainpage}}
13667 Transclusion of nonexistent MediaWiki message
13669 {{MediaWiki:Mainpagexxx}}
13671 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
13676 Transclusion of MediaWiki message with underscore
13678 {{MediaWiki:history_short}}
13685 Transclusion of MediaWiki message with space
13687 {{MediaWiki:history short}}
13694 Invalid header with following text
13704 Section extraction test (section 0)
13724 Section extraction test (section 1)
13746 Section extraction test (section 2)
13767 Section extraction test (section 3)
13787 Section extraction test (section 4)
13811 Section extraction test (section 5)
13831 Section extraction test (section 6)
13852 Section extraction test (section 7)
13872 Section extraction test (section 8)
13892 Section extraction test (section 9)
13913 Section extraction test (section 10)
13933 Section extraction test (nonexistent section 11)
13952 Section extraction test with bogus heading (section 1)
13957 ==bogus== not a legal section
13961 ==bogus== not a legal section
13965 Section extraction test with bogus heading (section 2)
13970 ==bogus== not a legal section
13977 Section extraction test with comment after heading (section 1)
13989 Section extraction test with comment after heading (section 2)
14001 Section extraction test with bogus <nowiki> heading (section 1)
14006 ==bogus== <nowiki>not a legal section</nowiki>
14010 ==bogus== <nowiki>not a legal section</nowiki>
14014 Section extraction test with bogus <nowiki> heading (section 2)
14019 ==bogus== <nowiki>not a legal section</nowiki>
14026 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
14027 # instead of respecting commented sections
14029 Section extraction prefixed by comment (section 1)
14040 Section extraction prefixed by comment (section 2)
14051 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
14052 # instead of respecting HTML-style headings
14054 Section extraction, mixed wiki and html (section 1)
14070 Section extraction, mixed wiki and html (section 2)
14086 # Formerly testing for bug 3342
14088 Section extraction, heading surrounded by <noinclude>
14092 <noinclude>==unmarked==</noinclude>
14098 # Test behavior of bug 19910
14100 Sectiion with all-equals
14105 The line above must have a trailing space
14108 But just in case it doesn't...
14112 But just in case it doesn't...
14116 Section replacement test (section 0)
14147 Section replacement test (section 1)
14176 Section replacement test (section 2)
14206 Section replacement test (section 3)
14237 Section replacement test (section 4)
14264 Section replacement test (section 5)
14295 Section replacement test (section 6)
14325 Section replacement test (section 7)
14356 Section replacement test (section 8)
14387 Section replacement test (section 9)
14416 Section replacement test (section 10)
14446 Section replacement test with initial whitespace (bug 13728)
14450 Preformatted initial line
14454 Preformatted initial line
14461 Section extraction, heading followed by pre with 20 spaces (bug 6398)
14473 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
14486 Section extraction, <pre> around bogus header (bug 10309)
14503 Section replacement, <pre> around bogus header (bug 10309)
14505 noxml replace=2,"xxx"
14526 Handling of 
 in URLs
14532 <li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
14541 5 quotes, code coverage +1 line (php)
14548 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
14550 5 quotes, code coverage +1 line (parsoid)
14556 <p><b><i></i></b></p>
14560 Special:Search page linking.
14564 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
14571 title=[[Parser test]]
14576 * {{FULLPAGENAMEE}}
14578 * {{BASEPAGENAMEE}}
14582 * {{ROOTPAGENAMEE}}
14584 * {{TALKPAGENAMEE}}
14585 * {{SUBJECTPAGENAME}}
14586 * {{SUBJECTPAGENAMEE}}
14589 * {{NAMESPACENUMBER}}
14593 * {{SUBJECTSPACEE}}
14594 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
14617 <li> Talk:Parser test
14619 <li> Talk:Parser_test
14639 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
14644 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
14654 image4 |300px| centre
14655 image5.svg| http://///////
14660 <ul class="gallery mw-gallery-traditional">
14661 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14662 <div class="thumb" style="height: 150px;">Image1.png</div>
14663 <div class="gallerytext">
14666 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14667 <div class="thumb" style="height: 150px;">Image2.gif</div>
14668 <div class="gallerytext">
14673 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14674 <div class="thumb" style="height: 150px;">Image3</div>
14675 <div class="gallerytext">
14678 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14679 <div class="thumb" style="height: 150px;">Image4</div>
14680 <div class="gallerytext">
14685 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14686 <div class="thumb" style="height: 150px;">Image5.svg</div>
14687 <div class="gallerytext">
14688 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
14692 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14693 <div class="thumb" style="height: 150px;">* image6</div>
14694 <div class="gallerytext">
14702 Gallery (with options)
14704 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
14705 File:Nonexistant.jpg|caption
14706 File:Nonexistant.jpg
14707 image:foobar.jpg|some '''caption''' [[Main Page]]
14709 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
14712 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
14713 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
14714 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14715 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14716 <div class="gallerytext">
14721 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14722 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
14723 <div class="gallerytext">
14726 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14727 <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>
14728 <div class="gallerytext">
14729 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14733 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14734 <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>
14735 <div class="gallerytext">
14738 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
14739 <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>
14740 <div class="gallerytext">
14750 Gallery with wikitext inside caption
14753 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
14754 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
14757 <ul class="gallery mw-gallery-traditional">
14758 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14759 <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>
14760 <div class="gallerytext">
14761 <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>
14765 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14766 <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>
14767 <div class="gallerytext">
14768 <p>This is a test template
14777 gallery (with showfilename option)
14779 <gallery showfilename>
14780 File:Nonexistant.jpg|caption
14781 File:Nonexistant.jpg
14782 image:foobar.jpg|some '''caption''' [[Main Page]]
14786 <ul class="gallery mw-gallery-traditional">
14787 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14788 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14789 <div class="gallerytext">
14790 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14795 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14796 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14797 <div class="gallerytext">
14798 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
14802 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14803 <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>
14804 <div class="gallerytext">
14805 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14806 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
14810 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14811 <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>
14812 <div class="gallerytext">
14813 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
14822 Gallery (with namespace-less filenames)
14825 File:Nonexistant.jpg
14831 <ul class="gallery mw-gallery-traditional">
14832 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14833 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14834 <div class="gallerytext">
14837 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14838 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
14839 <div class="gallerytext">
14842 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14843 <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>
14844 <div class="gallerytext">
14847 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14848 <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>
14849 <div class="gallerytext">
14857 HTML Hex character encoding (spells the word "JavaScript")
14859 JavaScript
14861 <p>JavaScript
14866 HTML Hex character encoding bogus encoding (bug 26437 regression check)
14870 <p>&#xsee;&#XSEE;
14875 HTML Hex character encoding mixed case
14884 __FORCETOC__ override
14896 ISBN 978-0-1234-56 789
14898 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
14903 ISBN followed by 5 spaces
14914 ISBN ISBN 1234567890
14916 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
14925 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
14930 Bug 22905: <abbr> followed by ISBN followed by </a>
14932 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
14934 <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>
14943 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
14948 Double RFC with a wiki link
14952 <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>
14961 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
14966 Centre-aligned image
14968 [[Image:foobar.jpg|centre]]
14970 <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>
14977 [[Image:foobar.jpg|none]]
14979 <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>
14984 Width + Height sized image (using px) (height is ignored)
14986 [[Image:foobar.jpg|640x480px]]
14988 <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>
14993 Width-sized image (using px, no following whitespace)
14995 [[Image:foobar.jpg|640px]]
14997 <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>
15002 Width-sized image (using px, with following whitespace - test regression from r39467)
15004 [[Image:foobar.jpg|640px ]]
15006 <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>
15011 Width-sized image (using px, with preceding whitespace - test regression from r39467)
15013 [[Image:foobar.jpg| 640px]]
15015 <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>
15020 Another italics / bold test
15028 # Note the results may be incorrect, as parserTest output included this:
15029 # XML error: Mismatched tag at byte 6120:
15030 # ...<dd> </dt></dl> </dd...
15061 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
15063 Images with the "|" character in the comment
15065 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
15067 <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>
15072 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
15074 <html><script>alert(1);</script></html>
15076 <p><html><script>alert(1);</script></html>
15081 HTML with raw HTML ($wgRawHtml==true)
15085 <html><script>alert(1);</script></html>
15087 <p><script>alert(1);</script>
15092 Parents of subpages, one level up
15094 subpage title=[[Subpage test/L1/L2/L3]]
15098 <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>
15104 Parents of subpages, one level up, not named
15106 subpage title=[[Subpage test/L1/L2/L3]]
15110 <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>
15117 Parents of subpages, two levels up
15119 subpage title=[[Subpage test/L1/L2/L3]]
15125 <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
15126 </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>
15131 Parents of subpages, two levels up, without trailing slash or name.
15133 subpage title=[[Subpage test/L1/L2/L3]]
15142 Parents of subpages, two levels up, with lots of extra trailing slashes.
15144 subpage title=[[Subpage test/L1/L2/L3]]
15148 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
15153 Subpage test/L1/L2/L3Sibling
15159 Transclusion of a sibling page (one level up)
15161 subpage title=[[Subpage test/L1/L2/L3]]
15170 Transclusion of a child page
15172 subpage title=[[Subpage test/L1/L2]]
15181 Non-transclusion because of too many up levels
15183 subpage title=[[Subpage test/L1/L2/L3]]
15185 {{../../../../More than parent}}
15187 <p>{{../../../../More than parent}}
15192 Definition list code coverage
15199 <dt> title  </dt>
15202 <dt> title </dt>
15213 Don't fall for the self-closing div
15215 <div>hello world</div/>
15217 <div>hello world</div>
15226 <p>[[:Template:Msg]]
15235 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
15239 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
15241 Always escape literal '>' in output, not just after '<'
15255 <p>This is a test template
15256 This is a test template
15268 Inclusion of !userCanEdit() content
15272 <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>
15278 Out-of-order TOC heading levels
15287 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15289 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
15291 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
15292 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
15295 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
15297 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
15298 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
15304 <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>
15305 <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>
15306 <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>
15307 <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>
15308 <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>
15309 <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>
15315 ISBN with a dummy number
15325 ISBN with space-delimited number
15329 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
15335 ISBN with multiple spaces, no number
15354 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
15355 </p><p>ISBN 12345678901
15361 ISBN with trailing year (bug 8110)
15363 ISBN 1-234-56789-0 - 2006
15365 ISBN 1 234 56789 0 - 2006
15367 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
15368 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
15376 {{anchorencode:foo bar©#%n}}
15378 <p>foo_bar.C2.A9.23.25n
15383 anchorencode trims spaces
15385 {{anchorencode: __pretty__please__}}
15392 anchorencode deals with links
15394 {{anchorencode: [[hello|world]] [[hi]]}}
15401 anchorencode deals with templates
15403 {{anchorencode: {{Foo}} }}
15410 anchorencode encodes like the TOC generator: (bug 18431)
15412 === _ +:.3A%3A&&]] ===
15413 {{anchorencode: _ +:.3A%3A&&]] }}
15416 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
15417 <p>.2B:.3A.253A.26.26.5D.5D
15422 Bug 6200: blockquotes and paragraph formatting
15443 Bug 8293: Use of center tag ruins paragraph formatting
15464 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
15468 <span><s>x</span></s>
15470 <p><span><s>x</span></s></span>
15475 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
15479 <span><s>x</span></s>
15481 <p><span><s>x</s></span><s></s>
15486 ### Language variants related tests
15489 Self-link in language variants
15491 title=[[Dunav]] language=sr
15493 Both [[Dunav]] and [[Дунав]] are names for this river.
15495 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
15506 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
15508 title=[[Duna]] language=sr
15510 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
15512 <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.
15517 Link to a section of a variant of this title shouldn't be parsed as self-link
15519 title=[[Duna]] language=sr
15521 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
15523 <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.
15528 Link to pages in language variants
15532 Main Page can be written as [[Маин Паге]]
15534 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
15540 Multiple links to pages in language variants
15544 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
15546 <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>.
15552 Simple template in language variants
15558 <p>This is a test template
15564 Template with explicit namespace in language variants
15570 <p>This is a test template
15576 Basic test for template parameter in language variants
15580 {{парамтест|param=foo}}
15582 <p>This is a test template with parameter foo
15588 Simple category in language variants
15592 [[Category:МедиаWики Усер'с Гуиде]]
15594 <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>
15611 Don't convert blue categorylinks to another variant (bug 33210)
15615 [[A]][[Category:分类]]
15617 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
15622 Stripping -{}- tags (language variants)
15626 Latin proverb: -{Ne nuntium necare}-
15628 <p>Latin proverb: Ne nuntium necare
15634 Prevent conversion with -{}- tags (language variants)
15636 language=sr variant=sr-ec
15638 Latinski: -{Ne nuntium necare}-
15640 <p>Латински: Ne nuntium necare
15646 Prevent conversion of text with -{}- tags (language variants)
15648 language=sr variant=sr-ec
15650 Latinski: -{Ne nuntium necare}-
15652 <p>Латински: Ne nuntium necare
15658 Prevent conversion of links with -{}- tags (language variants)
15660 language=sr variant=sr-ec
15664 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
15670 -{}- tags within headlines (within html for parserConvert())
15672 language=sr variant=sr-ec
15676 <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>
15682 Explicit definition of language variant alternatives
15684 language=zh variant=zh-tw
15686 -{zh:China;zh-tw:Taiwan}-, not China
15688 <p>Taiwan, not China
15694 Conversion around HTML tags
15696 language=sr variant=sr-ec
15698 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
15699 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
15702 <span title="ЛаCтин">ски</span>
15708 Explicit session-wise language variant mapping (A flag and - flag)
15710 language=zh variant=zh-tw
15712 Taiwan is not China.
15713 But -{A|zh:China;zh-tw:Taiwan}- is China,
15714 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
15715 and -{China}- is China.
15717 <p>Taiwan is not China.
15718 But Taiwan is Taiwan,
15719 (This should be stripped!)
15720 and China is China.
15725 Explicit session-wise language variant mapping (H flag for hide)
15727 language=zh variant=zh-tw
15729 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
15732 <p>(This should be stripped!)
15738 Adding explicit conversion rule for title (T flag)
15740 language=zh variant=zh-tw showtitle
15742 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15745 <p>Should be stripped!
15750 Testing that changing the language variant here in the tests actually works
15752 language=zh variant=zh showtitle
15754 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15757 <p>Should be stripped!
15762 Recursive conversion of alt and title attrs shouldn't clear converter state
15764 language=zh variant=zh-cn showtitle
15766 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
15767 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
15771 Should be stripped<span title="Exclamation">!</span>
15776 Bug 24072: more test on conversion rule for title
15778 language=zh variant=zh-tw showtitle
15780 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
15781 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
15784 <p>This should be stripped!
15785 This won't take interferes with the title rule.
15790 Partly disable title conversion if variant == main language code
15792 language=zh variant=zh title=[[ZH]] showtitle
15794 -{T|zh-cn:CN;zh-tw:TW}-
15802 Partly disable title conversion if variant == main language code, more
15804 language=zh variant=zh title=[[ZH]] showtitle
15814 Raw output of variant escape tags (R flag)
15816 language=zh variant=zh-tw
15818 Raw: -{R|zh:China;zh-tw:Taiwan}-
15820 <p>Raw: zh:China;zh-tw:Taiwan
15825 Nested using of manual convert syntax
15827 language=zh variant=zh-hk
15829 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
15831 <p>Nested: Hello Hong Kong!
15836 Proper conversion of text in external links
15838 language=sr variant=sr-ec
15840 http://www.google.com
15841 gopher://www.google.com
15842 [http://www.google.com http://www.google.com]
15843 [gopher://www.google.com gopher://www.google.com]
15844 [https://www.google.com irc://www.google.com]
15845 [ftp://www.google.com www.google.com/ftp://dir]
15846 [//www.google.com www.google.com]
15848 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15849 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15850 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
15851 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
15852 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
15853 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
15854 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
15859 Do not convert roman numbers to language variants
15861 language=sr variant=sr-ec
15865 <p>Фридрих IV је цар.
15870 Unclosed language converter markup "-{"
15881 Don't convert raw rule "-{R|=>}-" to "=>"
15892 Don't break link parsing if language converter markup is in the caption.
15894 language=sr variant=sr-ec
15896 [[Main Page|-{R|main page}-]]
15898 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
15902 # This test is currently broken in the PHP parser (bug 52661)
15904 Don't break image parsing if language converter markup is in the caption.
15909 [[File:Foobar.jpg|-{R|caption}-]]
15911 <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>
15915 # This test is currently broken in the PHP parser (bug 52661)
15917 Don't break list handling if language converter markup is in the item.
15919 language=zh variant=zh-cn
15922 ;-{zh-cn:AAA;zh-tw:BBB}-
15929 # This test is currently broken in the PHP parser (bug 52661)
15931 Don't break table handling if language converter markup is in the cell.
15933 language=sr variant=sr-ec
15950 Bug 529: Uncovered bullet
15963 # Plain MediaWiki does not remove empty lists, but tidy actually does.
15964 # Templates in Wikipedia rely on this behavior, as tidy has always been
15965 # enabled there. These tests are normally run *without* tidy, so specify the
15966 # full output here.
15967 # To test realistic parsing behavior, apply a tidy-like transformation to both
15968 # the expected output and your parser's output.
15970 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
15972 ******* Foo {{bullet}}
16002 Bug 529: Uncovered table already at line-start
16025 Bug 529: Uncovered bullet in parser function result
16027 * Foo {{lc:{{bullet}} }}
16039 Bug 5678: Double-parsed template argument
16041 {{lc:{{{1}}}|hello}}
16048 Bug 5678: Double-parsed template invocation
16050 {{lc:{{paramtest {{!}} param = hello }} }}
16052 <p>{{paramtest | param = hello }}
16057 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
16060 title=[[Main Page]]
16062 {{PRVNÍVELKÉ:ěščř}}
16063 {{prvnívelké:ěščř}}
16083 Morwen/13: Unclosed link followed by heading
16090 <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>
16095 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
16102 <h1><span class="mw-headline" id="heading">heading</span></h1>
16107 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
16114 <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>
16129 Paragraphs inside divs (no extra line breaks)
16141 Paragraphs inside divs (extra line break on open)
16156 Paragraphs inside divs (extra line break on close)
16171 Paragraphs inside divs (extra line break on open and close)
16188 Nesting tags, paragraphs on lines which begin with <div>
16192 <div></div><strong>A
16201 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
16203 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
16205 <blockquote>Line one
16207 Line two</blockquote>
16209 <blockquote>Line one
16210 Line two</blockquote>
16215 Bug 6200: paragraphs inside blockquotes (extra line break on open)
16220 Line two</blockquote>
16225 Line two</blockquote>
16230 Bug 6200: paragraphs inside blockquotes (extra line break on close)
16232 <blockquote>Line one
16237 <blockquote>Line one
16245 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
16262 Paragraphs inside blockquotes/divs (no extra line breaks)
16264 <blockquote><div>Line one
16266 Line two</div></blockquote>
16268 <blockquote><div>Line one
16269 Line two</div></blockquote>
16274 Paragraphs inside blockquotes/divs (extra line break on open)
16279 Line two</div></blockquote>
16284 Line two</div></blockquote>
16289 Paragraphs inside blockquotes/divs (extra line break on close)
16291 <blockquote><div>Line one
16294 </div></blockquote>
16296 <blockquote><div>Line one
16299 </div></blockquote>
16304 Paragraphs inside blockquotes/divs (extra line break on open and close)
16310 </div></blockquote>
16316 </div></blockquote>
16321 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
16323 wgLinkHolderBatchSize=0
16329 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
16330 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
16331 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
16336 Free external link invading image caption
16338 [[Image:Foobar.jpg|thumb|http://x|hello]]
16340 <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>
16345 Bug 15196: localised external link numbers
16349 [http://en.wikipedia.org/]
16351 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
16356 Multibyte character in padleft
16358 {{padleft:-Hello|7|Æ}}
16365 Multibyte character in padright
16367 {{padright:Hello-|7|Æ}}
16374 formatdate parser function
16376 {{#formatdate:2009-03-24}}
16378 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
16383 formatdate parser function, with default format
16385 {{#formatdate:2009-03-24|mdy}}
16387 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
16392 Spacing of numbers in formatted dates
16394 {{#formatdate:January 15}}
16396 <p><span class="mw-formatted-date" title="01-15">January 15</span>
16401 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
16403 language=nl title=[[MediaWiki:Common.css]]
16405 {{#formatdate:2009-03-24|dmy}}
16407 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
16420 Edit comment with link
16424 I like the [[Main Page]] a lot
16426 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
16430 Edit comment with link and link text
16434 I like the [[Main Page|best pages]] a lot
16436 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16440 Edit comment with link and link text with suffix
16444 I like the [[Main Page|best page]]s a lot
16446 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
16450 Edit comment with section link (non-local, eg in history list)
16452 comment title=[[Main Page]]
16454 /* External links */ removed bogus entries
16456 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16460 Edit comment with section link and text before it (non-local, eg in history list)
16462 comment title=[[Main Page]]
16464 pre-comment text /* External links */ removed bogus entries
16466 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>
16470 Edit comment with section link (local, eg in diff view)
16472 comment local title=[[Main Page]]
16474 /* External links */ removed bogus entries
16476 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
16480 Edit comment with subpage link (bug 14080)
16484 title=[[Subpage test]]
16486 Poked at a [[/subpage]] here...
16488 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
16492 Edit comment with subpage link and link text (bug 14080)
16496 title=[[Subpage test]]
16498 Poked at a [[/subpage|neat little page]] here...
16500 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
16504 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
16507 title=[[Subpage test]]
16509 Poked at a [[/subpage]] here...
16511 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
16515 Edit comment with bare anchor link (local, as on diff)
16519 title=[[Main Page]]
16523 <a href="#section">#section</a>
16527 Edit comment with bare anchor link (non-local, as on history)
16530 title=[[Main Page]]
16534 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
16538 Anchor starting with underscore
16542 <p><a href="#_ref">One</a>
16547 Id starting with underscore
16549 <div id="_ref"></div>
16551 <div id="_ref"></div>
16556 Space normalisation on autocomment (bug 22784)
16559 title=[[Main Page]]
16561 /* __hello__world__ */
16563 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
16567 percent-encoding and + signs in comments (Bug 26410)
16571 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
16573 <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>
16577 Bad images - basic functionality
16586 Bad images - bug 16039: text after bad image disappears
16600 Verify that displaytitle works (bug #22501) no displaytitle
16604 wgAllowDisplayTitle=true
16605 wgRestrictDisplayTitle=false
16607 this is not the the title
16610 <p>this is not the the title
16615 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
16620 wgAllowDisplayTitle=true
16621 wgRestrictDisplayTitle=false
16623 this is not the the title
16624 {{DISPLAYTITLE:whatever}}
16627 <p>this is not the the title
16632 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
16637 wgAllowDisplayTitle=true
16638 wgRestrictDisplayTitle=true
16640 this is not the the title
16641 {{DISPLAYTITLE:whatever}}
16644 <p>this is not the the title
16649 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
16654 wgAllowDisplayTitle=true
16655 wgRestrictDisplayTitle=true
16657 this is not the the title
16658 {{DISPLAYTITLE:screen}}
16661 <p>this is not the the title
16666 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
16671 wgAllowDisplayTitle=false
16673 this is not the the title
16674 {{DISPLAYTITLE:screen}}
16677 <p>this is not the the title
16678 <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>
16683 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
16688 wgAllowDisplayTitle=false
16690 this is not the the title
16693 <p>this is not the the title
16698 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
16703 wgAllowDisplayTitle=true
16704 wgRestrictDisplayTitle=true
16706 this is not the the title
16707 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
16709 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
16710 <p>this is not the the title
16715 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
16720 wgAllowDisplayTitle=true
16721 wgRestrictDisplayTitle=true
16723 this is not the the title
16724 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
16726 <span style="color: red;">s</span>creen
16727 <p>this is not the the title
16732 preload: check <noinclude> and <includeonly>
16736 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
16742 preload: check <onlyinclude>
16746 Goodbye <onlyinclude>Hello world</onlyinclude>
16752 preload: can pass tags through if we want to
16756 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
16758 <includeonly>Hello world</includeonly>
16762 preload: check that it doesn't try to do tricks
16766 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16768 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
16772 Play a bit with r67090 and bug 3158
16776 <div style="width:50% !important"> </div>
16777 <div style="width:50% !important"> </div>
16778 <div style="width:50% !important"> </div>
16779 <div style="border : solid;"> </div>
16781 <div style="width:50% !important"> </div>
16782 <div style="width:50% !important"> </div>
16783 <div style="width:50% !important"> </div>
16784 <div style="border : solid;"> </div>
16789 HTML5 data attributes
16791 <span data-foo="bar">Baz</span>
16792 <p data-abc-def_hij="">Quuz</p>
16794 <p><span data-foo="bar">Baz</span>
16796 <p data-abc-def_hij="">Quuz</p>
16801 percent-encoding and + signs in internal links (Bug 26410)
16803 [[User:+%]] [[Page+title%]]
16804 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
16805 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
16806 [[%33%45]] [[%33%45+]]
16808 <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>
16809 <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>
16810 <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>
16811 <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>
16816 Special characters in embedded file links (bug 27679)
16818 [[File:Contains & ampersand.jpg]]
16819 [[File:Does not exist.jpg|Title with & ampersand]]
16821 <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>
16822 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
16828 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
16830 Text's been normalized?
16832 <p>Text's been normalized?
16837 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
16839 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
16841 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
16846 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
16848 [http://www.example.org/ ideograms]
16850 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
16855 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
16857 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
16859 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
16883 Bug 31098 Template which includes system messages which includes the template
16887 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16888 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
16893 Bug31490 Turkish: ucfirst 'blah'
16904 Bug31490 Turkish: ucfirst 'ix'
16915 Bug31490 Turkish: lcfirst 'BLAH'
16926 Bug31490 Turkish: ucfırst (with a dotless i)
16932 <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>
16937 Bug31490 ucfırst (with a dotless i) with English language
16943 <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>
16948 Bug 26375: TOC with italics
16950 title=[[Main Page]]
16953 == ''Lost'' episodes ==
16955 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16957 <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>
16961 <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>
16966 Bug 26375: TOC with bold
16968 title=[[Main Page]]
16971 == '''should be bold''' then normal text ==
16973 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16975 <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>
16979 <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>
16984 Bug 33845: Headings become cursive in TOC when they contain an image
16986 title=[[Main Page]]
16989 == Image [[Image:foobar.jpg]] ==
16991 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
16993 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
16997 <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>
17002 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
17004 title=[[Main Page]]
17007 == <blockquote>Quote</blockquote> ==
17009 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17011 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
17015 <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>
17020 Unclosed tags in TOC
17022 title=[[Main Page]]
17026 <small>Hanc marginis exiguitas non caperet.</small>
17029 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17031 <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>
17035 <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>
17036 <p><small>Hanc marginis exiguitas non caperet.</small>
17042 Multiple tags in TOC
17045 == <i>Foo</i> <b>Bar</b> ==
17047 == <i>Foo</i> <blockquote>Bar</blockquote> ==
17049 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17051 <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>
17052 <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>
17056 <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>
17057 <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>
17062 Tags with parameters in TOC
17065 == <sup class="in-h2">Hello</sup> ==
17067 == <sup class="a > b">Evilbye</sup> ==
17069 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17071 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
17072 <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>
17076 <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>
17077 <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>
17082 span tags with directionality in TOC
17085 == <span dir="ltr">C++</span> ==
17087 == <span dir="rtl">זבנג!</span> ==
17089 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
17091 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
17093 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
17095 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17097 <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>
17098 <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>
17099 <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>
17100 <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>
17101 <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>
17105 <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>
17106 <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>
17107 <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>
17108 <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>
17109 <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>
17116 == {{int:headline_sample}} ==
17120 Bug 32057: Title needed when expanding <h> nodes.
17122 title=[[Main Page]]
17126 <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>
17131 Strip marker in urlencode
17133 {{urlencode:x<nowiki/>y}}
17134 {{urlencode:x<nowiki/>y|wiki}}
17135 {{urlencode:x<nowiki/>y|path}}
17162 Strip marker in formatNum
17164 {{formatnum:1<nowiki/>2}}
17165 {{formatnum:1<nowiki/>2|R}}
17173 Check noCommafy in formatNum
17177 {{formatnum:123456.78}}
17178 {{formatnum:123456.78|NOSEP}}
17186 Wrong option for formatNum (bug 56199)
17188 {{formatnum:1,234.56|Random}}
17189 {{formatnum:1,234.56|EVERYTHING}}
17190 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
17199 Strip marker in grammar
17203 {{grammar:elative|foo<nowiki/>bar}}
17210 Strip marker in padleft
17212 {{padleft:|2|x<nowiki/>y}}
17219 Strip marker in padright
17221 {{padright:|2|x<nowiki/>y}}
17228 Strip marker in anchorencode
17230 {{anchorencode:x<nowiki/>y}}
17237 nowiki inside link inside heading (bug 18295)
17239 ==[[foo|x<nowiki>y</nowiki>z]]==
17241 <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>
17246 new support for bdi element (bug 31817)
17248 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17250 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
17255 Ignore pipe between table row attributes
17259 |- id=foo | style='color: red'
17267 <tr id="foo" style="color: red">
17274 Gallery override link with WikiLink (bug 34852)
17277 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
17280 <ul class="gallery mw-gallery-traditional">
17281 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17282 <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>
17283 <div class="gallerytext">
17293 Gallery override link with absolute external link (bug 34852)
17296 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
17299 <ul class="gallery mw-gallery-traditional">
17300 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17301 <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>
17302 <div class="gallerytext">
17312 Gallery override link with malicious javascript (bug 34852)
17315 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
17318 <ul class="gallery mw-gallery-traditional">
17319 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17320 <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>
17321 <div class="gallerytext">
17331 Gallery with invalid title as link (bug 43964)
17334 File:foobar.jpg|link=<
17337 <ul class="gallery mw-gallery-traditional">
17338 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17339 <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>
17340 <div class="gallerytext">
17348 Language parser function
17357 Padleft and padright as substr
17359 {{padleft:|3|abcde}}
17360 {{padright:|3|abcde}}
17368 Special parser function
17370 {{#special:RandomPage}}
17371 {{#special:BaDtItLe}}
17372 {{#special:Foobar}}
17381 Bug 34939 - Case insensitive link parsing ([HttP://])
17383 [HttP://MediaWiki.Org/]
17385 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
17390 Bug 34939 - Case insensitive link parsing ([HttP:// title])
17392 [HttP://MediaWiki.Org/ MediaWiki]
17394 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
17399 Bug 34939 - Case insensitive link parsing (HttP://)
17401 HttP://MediaWiki.Org/
17403 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
17422 <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>
17423 <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>
17424 <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>
17425 <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>
17426 <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>
17432 ### Parsoids-specific tests
17433 ### Parsoid-PHP parser incompatibilities
17436 1. SOL-sensitive wikitext tokens as template-args
17438 parsoid=wt2html,wt2wt
17444 <span about="#mwt1" typeof="mw:Transclusion">
17445 </span><ul about="#mwt1"><li>a</li>
17447 <span about="#mwt2" typeof="mw:Transclusion">
17448 </span><ol about="#mwt2"><li>a</li>
17450 <span about="#mwt3" typeof="mw:Transclusion">
17451 </span><dl about="#mwt3"><dd>a</dd>
17455 #### ----------------------------------------------------------------
17456 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
17457 #### tags. Parsoid's output for these tags differs from that of the
17459 #### ----------------------------------------------------------------
17462 Ref: 1. ref-location should be replaced with an index span
17467 B <ref name="x">foo</ref>
17470 <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>
17471 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>
17472 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>
17476 Ref: 2. ref-tags with identical names should all get the same index
17480 A <ref name="x">foo</ref>
17483 <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>
17484 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>
17488 Ref: 3. spaces in ref-names should be ignored
17492 A <ref name="x">foo</ref>
17493 B <ref name=" x " />
17496 <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>
17497 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>
17498 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>
17502 Ref: 4. 'constructor' should be accepted as a valid ref-name
17503 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
17507 A <ref name="constructor">foo</ref>
17509 <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>
17513 Ref: 5. body should accept generic wikitext
17518 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
17523 <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=\"#mwt3\" 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>
17525 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
17526 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> This is a <b><a rel="mw:WikiLink" href="./Bolded_link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}'>transclusion</span>
17532 Ref: 6. indent-pres should not be output in ref-body
17544 <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>
17546 <ol class="references" typeof="mw:Extension/references" about="#mwt3" data-mw='{"name":"references","attrs":{}}'>
17547 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17555 Ref: 7. No p-wrapping in ref-body
17574 <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>
17576 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17577 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
17592 Ref: 8. transclusion wikitext has lower precedence
17596 A <ref> foo {{echo|</ref> B C}}
17600 <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>
17601 <ol class="references" typeof="mw:Extension/references" data-mw="{"name":"references","attrs":{}}">
17602 <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>
17607 Ref: 9. unclosed comments should not leak out of ref-body
17611 A <ref> foo <!--</ref> B C
17614 <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>
17615 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17616 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo </li>
17621 Ref: 10. Unclosed HTML tags should not leak out of ref-body
17625 A <ref> <b> foo </ref> B C
17629 <p>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>"}'><a href="#cite_note-1">[1]</a></span> B C</p>
17632 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17633 <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}'> foo </b></li>
17638 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
17645 <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" data-parsoid='{"src":"<ref>foo</ref>"}'><a href="#cite_note-1">[1]</a></span> B
17646 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>"}'><a href="#cite_note-2">[2]</a></span> D</p>
17650 Ref: 12. ref-tags act as trailing newline migration barrier
17654 <!--the newline at the end of this line moves out of the p-tag-->a
17656 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
17661 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
17664 <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>
17665 <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>
17672 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
17680 <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
17681 <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>
17685 Ref: 14. A nested ref-tag should be emitted as plain text
17689 <ref>foo <ref>bar</ref> baz</ref>
17693 <p><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>"}'><a href="#cite_note-1">[1]</a></span></p>
17695 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17696 <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>
17701 Ref: 15. ref-tags with identical names should get identical indexes
17705 A1 <ref name="a">foo</ref> A2 <ref name="a" />
17706 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
17710 <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>
17711 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>
17713 <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>
17717 ## We don't bother wt2wt-ing non-standard whitespace
17719 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
17727 <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>
17729 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
17730 <li id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
17734 References: 1. references tag without any refs should be handled properly
17740 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
17744 References: 2. references tag with group only outputs references from that group
17748 A <ref group="a">foo</ref>
17749 B <ref group="b">bar</ref>
17751 <references group="a" />
17753 <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>
17754 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[b 1]</a></span></p>
17756 <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>
17761 References: 3. ref list should be cleared after processing references
17773 <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>
17775 <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>
17778 <p>B <span about="#mwt6" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[1]</a></span></p>
17780 <ol about="#mwt8" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> bar</li>
17785 References: 4. only referenced group should be cleared after processing references
17789 A <ref group="a">afoo</ref>
17792 <references group="a" />
17798 <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>
17799 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bfoo</ref>"}'><a href="#cite_note-2">[1]</a></span></p>
17801 <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>
17804 <p>C <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}' id="cite_ref-3-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-3">[2]</a></span></p>
17806 <ol about="#mwt10" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> bfoo</li><li about="#cite_note-3" id="cite_note-3"><span rel="mw:referencedBy"><a href="#cite_ref-3-0">↑</a></span> cfoo</li>
17811 References: 5. ref tags in references should be processed while ignoring all other content
17816 B <ref name="b">bar</ref>
17819 <ref name="a">foo</ref>
17820 This should just get lost.
17823 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref name=\"a\" />"}'><a href="#cite_note-a-1">[1]</a></span>
17824 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>"}'><a href="#cite_note-b-2">[2]</a></span></p>
17827 <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>"}' 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":{}}'>
17828 <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>
17829 <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>
17834 References: 6. <references /> from a transclusion
17838 <ref>Foo</ref> {{echo|<references />}}
17840 <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>
17844 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
17848 A <ref>foo bar for a</ref>
17854 <ref name="b">foo</ref>
17857 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo bar for a"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>foo bar for a</ref>"}'><a href="#cite_note-1">[1]</a></span>
17858 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\" />"}'><a href="#cite_note-b-2">[2]</a></span></p>
17861 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-parsoid='{"src":"<references />"}' data-mw='{"name":"references","attrs":{}}'>
17862 <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>
17863 <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>
17866 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-parsoid='{"src":"<references>\n<ref name=\"b\">foo</ref>\n</references>"}' 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-3\">[1]</a></span>\n"},"attrs":{}}'>
17867 <li about="#cite_note-b-3" id="cite_note-b-3" data-parsoid="{}"><span rel="mw:referencedBy">↑</span> foo</li>
17871 # This test is wt2html only because we're permitting the serializer to produce
17872 # dirty diffs, normalizing the unclosed references to the self-closed version.
17874 Generate references for unclosed references tag
17882 <p data-parsoid='{}'>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>"}'><a href="#cite_note-1" data-parsoid="{}">[1]</a></span></p>
17885 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-parsoid='{"src":"<references>"}' data-mw='{"name":"references","attrs":{}}'>
17886 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy" data-parsoid="{}"><a href="#cite_ref-1-0" data-parsoid="{}">↑</a></span> foo</li></ol>
17890 New reference serializes on its own line
17892 parsoid=wt2wt,html2wt
17897 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
17900 #### ----------------------------------------------------------------
17901 #### The following section of tests are primarily to test
17902 #### wikitext escaping capabilities of Parsoid. Given that
17903 #### escaping can be done any number of ways, the wikitext (input)
17904 #### is always adjusted to reflect how Parsoid adds nowiki
17907 #### We are marking several tests as parsoid-only since the
17908 #### HTML in the result section is different from what the
17909 #### PHP parser generates for it.
17910 #### ----------------------------------------------------------------
17913 #### --------------- Headings ---------------
17915 #### 1. Nested inside html <h1>=foo=</h1>
17916 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
17917 #### 3. Nested inside html with wikitext split by html tags
17918 #### 4. No escape needed
17919 #### 5. Empty headings <h1></h1>
17920 #### 6. Heading chars in SOL context
17921 #### ----------------------------------------
17923 Headings: 0. Unnested
17927 <nowiki>=foo=</nowiki>
17929 <nowiki> =foo= </nowiki>
17931 <nowiki>=foo=</nowiki>
17933 =foo''a''<nowiki>=</nowiki>
17935 <p><span typeof="mw:Nowiki">=foo=</span></p>
17937 <p><span typeof="mw:Nowiki"> =foo= </span>
17939 <span typeof="mw:Nowiki">=foo=</span></p>
17941 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
17945 Headings: 1. Nested inside html
17946 (New headings and existing headings are handled differently)
17956 =<nowiki>=foo=</nowiki>=
17957 ==<nowiki>=foo=</nowiki>==
17958 ===<nowiki>=foo=</nowiki>===
17959 ====<nowiki>=foo=</nowiki>====
17960 =====<nowiki>=foo=</nowiki>=====
17961 ======<nowiki>=foo=</nowiki>======
17968 <h1 data-parsoid='{}'>=foo=</h1>
17969 <h2 data-parsoid='{}'>=foo=</h2>
17970 <h3 data-parsoid='{}'>=foo=</h3>
17971 <h4 data-parsoid='{}'>=foo=</h4>
17972 <h5 data-parsoid='{}'>=foo=</h5>
17973 <h6 data-parsoid='{}'>=foo=</h6>
17977 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
17982 <nowiki>*</nowiki>bar
17988 <nowiki>=bar=</nowiki>
17996 Headings: 3. Nested inside html with wikitext split by html tags
18000 = ='''bold'''<nowiki>foo=</nowiki> =
18002 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
18006 Headings: 4a. No escaping needed (testing just h1 and h2)
18024 = <nowiki>=</nowiki> =
18032 <h1><i>=</i>foo=</h1>
18033 <h1><span typeof="mw:Nowiki">=</span></h1>
18037 Headings: 4b. No escaping needed (inside p-tags)
18052 Headings: 5. Empty headings
18064 =====<nowiki/>=====
18066 ======<nowiki/>======
18077 Headings: 6a. Heading chars in SOL context (with trailing spaces)
18081 <nowiki>=a=</nowiki>
18083 <nowiki>=a=</nowiki>
18085 <nowiki>=a=</nowiki>
18087 <nowiki>=a=</nowiki>
18096 Headings: 6b. Heading chars in SOL context (with trailing newlines)
18124 Headings: 6c. Heading chars in SOL context (leading newline break)
18129 <nowiki>=b=</nowiki>
18136 Headings: 6d. Heading chars in SOL context (with interspersed comments)
18140 <!--c0--><nowiki>=a=</nowiki>
18142 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
18144 <p><!--c0-->=a=</p>
18145 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
18149 Headings: 6d. Heading chars in SOL context (No escaping needed)
18158 #### --------------- Lists ---------------
18159 #### 0. Outside nests (*foo, etc.)
18160 #### 1. Nested inside html <ul><li>*foo</li></ul>
18161 #### 2. Inside definition lists
18162 #### 3. Only bullets at start should be escaped
18163 #### 4. No escapes needed
18164 #### 5. No unnecessary escapes
18165 #### 6. Escape bullets in SOL position
18166 #### 7. Escape bullets in a multi-line context
18167 #### ----------------------------------------
18170 Lists: 0. Outside nests
18172 <nowiki>*</nowiki>foo
18174 <nowiki>#</nowiki>foo
18182 Lists: 1. Nested inside html
18184 *<nowiki>*foo</nowiki>
18186 *<nowiki>#foo</nowiki>
18188 *<nowiki>:foo</nowiki>
18190 *<nowiki>;foo</nowiki>
18192 #<nowiki>*foo</nowiki>
18194 #<nowiki>#foo</nowiki>
18196 #<nowiki>:foo</nowiki>
18198 #<nowiki>;foo</nowiki>
18236 Lists: 2. Inside definition lists
18238 ;<nowiki>;foo</nowiki>
18240 ;<nowiki>:foo</nowiki>
18242 ;<nowiki>:foo</nowiki>
18245 :<nowiki>:foo</nowiki>
18269 Lists: 3. Only bullets at start of text should be escaped
18271 *<nowiki>*foo*bar</nowiki>
18273 *<nowiki>*foo</nowiki>''it''*bar
18280 <li>*foo<i>it</i>*bar
18287 Lists: 4. No escapes needed
18308 <li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
18312 <li><a rel="mw:WikiLink" href="Foo">Foo</a>*bar
18318 Lists: 5. No unnecessary escapes
18320 * bar <span><nowiki>[[foo]]</nowiki></span>
18322 *=bar <span><nowiki>[[foo]]</nowiki></span>
18324 *[[bar <span><nowiki>[[foo]]</nowiki></span>
18326 *]]bar <span><nowiki>[[foo]]</nowiki></span>
18328 *=bar <span>foo]]</span>=
18333 <li> bar <span>[[foo]]</span>
18337 <li>=bar <span>[[foo]]</span>
18341 <li>[[bar <span>[[foo]]</span>
18345 <li>]]bar <span>[[foo]]</span>
18349 <li>=bar <span>foo]]</span>=
18360 Lists: 6. Escape bullets in SOL position
18364 <!--cmt--><nowiki>*foo</nowiki>
18366 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
18370 Lists: 7. Escape bullets in a multi-line context
18373 <nowiki>*</nowiki>b
18380 #### --------------- HRs ---------------
18381 #### 1. Single line
18382 #### -----------------------------------
18385 HRs: 1. Single line
18389 ----<nowiki>----</nowiki>
18393 <hr><span typeof="mw:Nowiki">----</span>
18398 #### --------------- Tables ---------------
18399 #### 1a. Simple example
18400 #### 1b. No escaping needed (!foo)
18401 #### 1c. No escaping needed (|foo)
18402 #### 1d. No escaping needed (|}foo)
18404 #### 2a. Nested in td (<td>foo|bar</td>)
18405 #### 2b. Nested in td (<td>foo||bar</td>)
18406 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
18408 #### 3a. Nested in th (<th>foo!bar</th>)
18409 #### 3b. Nested in th (<th>foo!!bar</th>)
18410 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
18414 #### 4c. No escaping needed
18415 #### --------------------------------------
18418 Tables: 1a. Simple example
18429 Tables: 1b. No escaping needed
18438 Tables: 1c. No escaping needed
18447 Tables: 1d. No escaping needed
18456 Tables: 2a. Nested in td
18461 |<nowiki>foo|bar</nowiki>
18463 |x<div><nowiki>a|b</nowiki></div>
18467 <td>foo|bar</td></tr>
18468 <tr><td>x<div>a|b</div></td>
18473 Tables: 2b. Nested in td
18478 |<nowiki>foo||bar</nowiki>
18479 |''it''<nowiki>foo||bar</nowiki>
18483 <td><span typeof="mw:Nowiki">foo||bar</span></td>
18484 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
18488 Tables: 2c. Nested in td -- no escaping needed
18496 <table><tbody><tr><td>foo!!bar
18497 </td></tr></tbody></table>
18502 Tables: 3a. Nested in th
18510 <table><tbody><tr><th>foo!bar
18511 </th></tr></tbody></table>
18516 Tables: 3b. Nested in th
18521 !<nowiki>foo!!bar</nowiki>
18525 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
18530 Tables: 3c. Nested in th -- no escaping needed
18535 !<nowiki>foo||bar</nowiki>
18539 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
18543 Tables: 4a. Escape -
18550 |<nowiki>-bar</nowiki>
18554 <tr><th>-bar</th></tr>
18556 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
18560 Tables: 4b. Escape +
18567 |<nowiki>+bar</nowiki>
18571 <tr><th>+bar</th></tr>
18573 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
18577 Tables: 4c. No escaping needed
18598 <tr><td>foo-bar</td><td>foo+bar</td></tr>
18599 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
18605 <div>a|b</div></td>
18610 Tables: 4d. No escaping needed
18621 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo">Foo</a>-bar</td>
18622 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
18623 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
18628 Tables: Digest broken attributes on table and tr tag
18642 #### --------------- Links ----------------
18643 #### 1. Quote marks in link text
18644 #### 2. Wikilinks: Escapes needed
18645 #### 3. Wikilinks: No escapes needed
18646 #### 4. Extlinks: Escapes needed
18647 #### 5. Extlinks: No escapes needed
18648 #### --------------------------------------
18650 Links 1. Quote marks in link text
18654 [[Foo|Foo<nowiki>''boo''</nowiki>]]
18656 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
18660 Links 2. WikiLinks: Escapes needed
18665 [[Foo|<nowiki>Foobar]</nowiki>]]
18666 [[Foo|x [Foobar] x]]
18667 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
18668 [[Foo|<nowiki>[[Bar]]</nowiki>]]
18669 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
18670 [[Foo|<nowiki>|Bar</nowiki>]]
18671 [[Foo|<nowiki>]]bar</nowiki>]]
18672 [[Foo|<nowiki>[[bar</nowiki>]]
18673 [[Foo|<nowiki>x [[ y</nowiki>]]
18674 [[Foo|<nowiki>x ]] y</nowiki>]]
18675 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
18677 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
18678 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
18679 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
18680 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
18681 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
18682 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
18683 <a href="Foo" rel="mw:WikiLink">|Bar</a>
18684 <a href="Foo" rel="mw:WikiLink">]]bar</a>
18685 <a href="Foo" rel="mw:WikiLink">[[bar</a>
18686 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
18687 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
18688 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
18692 Links 3. WikiLinks: No escapes needed
18699 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
18700 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
18704 Links 4. ExtLinks: Escapes needed
18708 [http://google.com <nowiki>[google]</nowiki>]
18709 [http://google.com <nowiki>google]</nowiki>]
18711 <nowiki>[http://google.com]</nowiki>
18713 <nowiki>[http://google.com google]</nowiki>
18716 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
18717 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
18718 <p>[http://google.com]</p>
18719 <p>[http://google.com google]</p>
18723 Links 5. ExtLinks: No escapes needed
18727 [http://google.com [google]
18729 <a href="http://google.com" rel="mw:ExtLink">[google</a>
18732 #### --------------- Quotes ---------------
18733 #### 1. Quotes inside <b> and <i>
18734 #### 2. Link fragments separated by <i> and <b> tags
18735 #### 3. Link fragments inside <i> and <b>
18736 #### 4. No escaping needed
18737 #### --------------------------------------
18739 1. Quotes inside <b> and <i>
18741 parsoid=html2wt,wt2wt
18743 ''<nowiki>'foo'</nowiki>''
18744 ''<nowiki>''foo''</nowiki>''
18745 ''<nowiki>'''foo'''</nowiki>''
18747 '''<nowiki>'foo'</nowiki>'''
18748 '''<nowiki>''foo''</nowiki>'''
18749 '''<nowiki>'''foo'''</nowiki>'''
18750 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
18751 '''foo'''<nowiki/>'s
18754 '<nowiki/>''foo''<nowiki/>'
18756 '''foo'''<nowiki/>'
18757 '<nowiki/>'''foo'''<nowiki/>'
18758 ''fools'<span> errand</span>''
18759 ''<span>fool</span>'s errand''
18768 <b>foo'<i>bar'</i>baz</b>
18776 <i>fools'<span> errand</span></i>
18777 <i><span>fool</span>'s errand</i>
18781 2. Link fragments separated by <i> and <b> tags
18783 [[''foo''<nowiki>hello]]</nowiki>
18785 [['''foo'''<nowiki>hello]]</nowiki>
18787 <p>[[<i>foo</i>hello]]
18788 </p><p>[[<b>foo</b>hello]]
18793 3. Link fragments inside <i> and <b>
18794 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
18795 this is one of the shortcomings of this format)
18797 ''[[foo''<nowiki>]]</nowiki>
18799 '''[[foo'''<nowiki>]]</nowiki>
18802 </p><p><b>[[foo</b>]]
18807 4. No escaping needed
18809 '<span>''bar''</span>'
18810 '<span>'''bar'''</span>'
18812 <p>'<span><i>bar</i></span>'
18813 '<span><b>bar</b></span>'
18817 #### ----------- Paragraphs ---------------
18818 #### 1. No unnecessary escapes
18819 #### --------------------------------------
18822 1. No unnecessary escapes
18824 bar <span><nowiki>[[foo]]</nowiki></span>
18826 =bar <span><nowiki>[[foo]]</nowiki></span>
18828 [[bar <span><nowiki>[[foo]]</nowiki></span>
18830 ]]bar <span><nowiki>[[foo]]</nowiki></span>
18832 =bar <span>foo]]</span><nowiki>=</nowiki>
18834 <p>bar <span>[[foo]]</span>
18835 </p><p>=bar <span>[[foo]]</span>
18836 </p><p>[[bar <span>[[foo]]</span>
18837 </p><p>]]bar <span>[[foo]]</span>
18838 </p><p>=bar <span>foo]]</span>=
18842 #### ----------------------- PRE --------------------------
18843 #### 1. Leading whitespace in SOL context should be escaped
18844 #### ------------------------------------------------------
18846 1. Leading whitespace in SOL context should be escaped
18850 <nowiki> </nowiki>a
18852 <nowiki> </nowiki> a
18854 <nowiki> </nowiki>a(tab)
18856 <nowiki> </nowiki> a
18858 <nowiki> </nowiki> a
18861 <nowiki> </nowiki>b
18864 <nowiki> </nowiki>b
18867 <nowiki> </nowiki> b
18873 <p><!--cmt--> a</p>
18882 #### --------------- Behavior Switches --------------------
18884 1. Valid behavior switches should be escaped
18888 <nowiki>__TOC__</nowiki>
18894 2. Invalid behavior switches should not be escaped
18905 #### --------------- HTML tags ---------------
18908 #### 3. multi-line html tag
18909 #### 4. extension tags
18910 #### -----------------------------------------
18916 <a href="http://google.com">google</a>
18918 <a href="http://google.com">google</a>
18924 <nowiki><div>foo</div>
18925 <div style="color:red">foo</div></nowiki>
18927 <p><div>foo</div>
18928 <div style="color:red">foo</div>
18933 3. multi-line html tag
18948 <nowiki><ref>foo</ref></nowiki>
18950 <nowiki><ref>bar</nowiki>
18952 baz<nowiki></ref></nowiki>
18954 <p><ref>foo</ref>
18955 </p><p><ref>bar
18956 </p><p>baz</ref>
18960 #### --------------- Others ---------------
18964 <nowiki>foo</nowiki>
18966 <p><nowiki>foo</nowiki>
18970 ## The quote-char in the input is necessary for triggering the bug
18972 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
18974 parsoid=wt2wt,html2wt
18983 Tag-like HTML structures are passed through as text
19005 </p><p>1<d e>f
19010 # This was a bug in the PHP parser (see bug 17663 and its dups,
19011 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
19013 Tag names followed by punctuation should not be recognized as tags
19017 <p><s.ome> text
19022 HTML tag with necessary entities in attributes
19024 <span title="&amp;">foo</span>
19026 <p><span title="&amp;">foo</span>
19031 HTML tag with 'unnecessary' entity encoding in attributes
19033 <span title="&">foo</span>
19035 <p><span title="&">foo</span>
19040 HTML tag with broken attribute value quoting
19042 <span title="Hello world>Foo</span>
19044 <p><span>Foo</span>
19049 Parsoid-only: HTML tag with broken attribute value quoting
19053 <span title="Hello world>Foo</span>
19055 <p><span title="Hello world">Foo</span>
19060 Table with broken attribute value quoting
19063 | title="Hello world|Foo
19074 Table with broken attribute value quoting on consecutive lines
19077 | title="Hello world|Foo
19078 | style="color:red|Bar
19091 Parsoid-only: Table with broken attribute value quoting on consecutive lines
19096 | title="Hello world|Foo
19097 | style="color:red|Bar
19102 <td title="Hello world">Foo
19103 </td><td style="color: red">Bar
19104 </td></tr></tbody></table>
19109 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
19119 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
19129 Accept empty td cell attribute
19132 | align="center" | foo || |
19137 <td align="center"> foo </td>
19144 Non-empty attributes in th-cells
19147 ! Foo !! style="color: red" | Bar
19153 <th style="color: red"> Bar
19159 Accept empty attributes in th-cells
19174 Empty table rows go away
19195 ### Parsoid-centric tests for testing RTing of inter-element separators
19196 ### Edge cases not tested by existing parser tests and specific to
19197 ### Parsoid-specific serialization strategies.
19201 RT-ed inter-element separators should be valid separators
19214 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
19215 (Parsoid-only since PHP parser relies on Tidy for correct output)
19231 Empty TD followed by TD with tpl-generated attribute
19236 |{{echo|style='color:red'}}|foo
19250 Indented table with an empty td
19269 Empty TR followed by a template-generated TR
19270 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
19276 {{echo|<tr><td>foo</td></tr>}}
19282 <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}}]}'>
19287 ## PHP and parsoid output differ for this, and since this is primarily
19288 ## for testing Parsoid's serializer, marking this Parsoid only
19290 Empty TR followed by mixed-ws-comment line should RT correctly
19306 <!--c--> </tr><!--d-->
19312 Multi-line image caption generated by templates with/without trailing newlines
19316 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
19317 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
19319 <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>
19320 <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>
19324 ## PHP emits broken html for this, and since this is primarily
19325 ## a Parsoid serializer test, marking this Parsoid only
19327 Improperly nested inline or quotes tags with whitespace in between
19331 <span> <s>x</span> </s>
19334 <p><span> <s>x</s></span><s> </s>
19335 <b> <i>x</i></b><i> </i>
19340 Encapsulate protected attributes from wt
19344 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
19346 <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>
19350 ## Currently the p-wrapper is fragile in how adds / removes transformations.
19351 ## Having nested or stray pre tags results in the attempt to add duplicates,
19352 ## causing an assertion fail. This test tries to prevent that situation.
19354 Ensure ParagraphWrapper can deal with stray closing pre tags
19364 1. Ensure fostered text content is wrapped in spans
19368 <table>hi</table><table>ho</table>
19377 2. Ensure fostered text content is wrapped in spans (traps regressions around fostered marker on the span getting lost)
19379 parsoid=wt2html,wt2wt
19386 <span> || ||</span>
19395 Encapsulation properly handles null DSR information from foster box
19397 parsoid=wt2html,wt2wt
19399 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
19401 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19404 <td>bar</td></tr></table>"}},"i":0}}]}">foo</span>
19408 <td>bar</td></tr></tbody></table>
19412 1. Encapsulate foster-parented transclusion content
19414 parsoid=wt2wt,wt2html
19416 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
19418 <span typeof="mw:Transclusion" data-mw="{"parts":["
19419 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo
19421 <td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</span>
19425 <td>bar</td></tr></tbody></table>
19429 2. Encapsulate foster-parented transclusion content
19431 parsoid=wt2wt,wt2html
19433 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
19435 <div typeof="mw:Transclusion" data-mw="{"parts":["
19437 <div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div>
19439 <td>bar</td></tr></table>"]}">foo</div>
19443 <td>bar</td></tr></tbody></table>
19447 3. Encapsulate foster-parented transclusion content
19449 parsoid=wt2wt,wt2html
19451 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19453 <div typeof="mw:Transclusion" data-mw="{"parts":["
19456 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19458 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19463 <td>bar</td></tr></tbody></table>
19467 4. Encapsulate foster-parented transclusion content
19469 parsoid=wt2wt,wt2html
19471 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
19473 <div typeof="mw:Transclusion" data-mw="{"parts":["
19476 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div>
19478 <td>"}},"i":0}},"bar</td></tr></table>"]}">
19483 <td>bar</td></tr></tbody></table>
19487 5. Encapsulate foster-parented transclusion content
19489 parsoid=wt2wt,wt2html
19491 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
19493 <span typeof="mw:Transclusion" data-mw="{"parts":["
19498 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</span>
19504 <p>foo</p></div></td></tr></tbody></table>
19508 6. Encapsulate foster-parented transclusion content
19510 parsoid=wt2wt,wt2html
19512 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
19514 <span typeof="mw:Transclusion" data-mw="{"parts":["
19519 <p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</span>
19525 <p>foo</p></div></td></tr></tbody></table>
19530 7. Encapsulate foster-parented transclusion content
19532 parsoid=wt2wt,wt2html
19534 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
19536 <p typeof="mw:Transclusion" data-mw="{"parts":["
19537 <table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"
19538 <p>foo</p>"}},"i":0}},"
19539 <td>bar</td></table>"]}">foo</p>
19543 <td>bar</td></tr></tbody></table>
19547 8. Encapsulate foster-parented transclusion content
19549 parsoid=wt2wt,wt2html
19552 }}{|{{echo|style='color:red'}}
19557 <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>
19561 <td>b</td></tr></tbody></table>
19565 Table in fosterable position
19567 parsoid=wt2html,wt2wt
19576 <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,"pi":[[]]}'></div><span about="#mwt1" data-parsoid="{}">
19578 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
19585 Support <object> element with .data attribute
19589 <object data="test.swf"></object>
19591 <object data="test.swf"></object>
19594 # -----------------------------------------------------------------
19595 # The following section of tests are primarily to spec requirements
19596 # around serialization of new/edited content.
19598 # All these tests are marked Parsoid html2wt and html2html only
19599 # ----------------------------------------------------------------
19602 Image: Modifying size of an image (1)
19606 [[Image:Foobar.jpg|200x200px]]
19608 <p><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"230x230px"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/230px-Foobar.jpg" height="22" width="200" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"26","width":"230"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a></span></p>
19612 Image: Modifying size of an image (2)
19616 [[Image:Foobar.jpg|500x500px]]
19618 <p><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"230x230px"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/230px-Foobar.jpg" height="100" width="500" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"26","width":"230"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a></span></p>
19621 # note that the data-parsoid value conflicts with the figure's class
19623 Image: Modifying alignment of an image (bug 48665)
19627 [[Image:Foobar.jpg|thumb|caption|left]]
19629 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"caption"},{"ck":"right","ak":"right"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"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" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
19633 Image: Modifying valign of an image (bug 49221)
19637 [[File:Foobar.jpg|20px|text-top]]
19639 <p><span class="mw-valign-text-top" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"20px"},{"ck":"text_top","ak":"text-top"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg" height="2" width="20" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"2","width":"20"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
19643 Image: Modifying alt attribute of an image (bug 56400)
19647 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
19649 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"some caption"},{"ck":"alt","ak":"alt=some alternate text"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img alt="some alternate edited text" resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180" data-parsoid='{"a":{"alt":"some alternate edited text","resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"alt":"alt=some alternate edited text","resource":"File:Foobar.jpg"}}'/></a><figcaption>some caption</figcaption></figure>
19653 Image: Modifying caption of an image
19657 [[Image:Foobar.jpg|thumb|new caption]]
19659 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"original caption"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"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" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"20","width":"180"},"sa":{"resource":"Image:Foobar.jpg"}}'/></a><figcaption>new caption</figcaption></figure>
19663 Image: empty alt attribute (bug 48924)
19667 [[File:Foobar.jpg|thumb|alt=|bar]]
19669 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"alt","ak":"alt="},{"ck":"caption","ak":"bar"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img alt="" resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"alt":"","resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"alt":"alt=","resource":"File:Foobar.jpg"}}'/></a><figcaption>bar</figcaption></figure>
19673 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
19678 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
19680 #<figure class="mw-default-size mw-halign-right" typeof="mw:Image/Thumb"><a href="Imagen:Foobar.jpg"><img resource="./Imagen:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="20" width="180"/></a></figure>
19684 Image: Block level image should have \n before and after
19689 [[File:Foobar.jpg|right|thumb|150x150px]]
19692 <p>123</p><figure typeof="mw:Image/Thumb" class="mw-halign-right"><a href="./File:Foobar.png"><img src="http://192.168.142.128/mw/images/thumb/b/bc/Foobar.png/131px-Foobar.png" width="131" height="150" resource="./File:Foobar.png" data-parsoid='{"a":{"resource":"./File:Foobar.png","width":"131"},"sa":{"resource":"File:Foobar.png","width":"150"}}'></a></figure><p>456</p>
19696 Image: New block level image should have \n before and after (existing
19702 [[File:Foobar.jpg|right|thumb|150x150px]]
19705 <p data-parsoid='{"dsr":[0,3,0,0]}'>123</p>
19706 <figure class="mw-halign-right" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"right","ak":"right"},{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"150x150px"}],"dsr":[4,45,2,2]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"dsr":[6,43,null,null]}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/150px-Foobar.jpg" height="17" width="150" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"17","width":"150"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></figure>
19707 <p data-parsoid='{"dsr":[46,49,0,0]}'>456</p>
19711 Images: upright option (parsoid)
19715 [[File:Foobar.jpg|thumb|upright|caption]]
19716 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
19717 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
19719 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="19" width="170"/></a><figcaption>caption</figcaption></figure><figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="19" width="170"/></a><figcaption>caption</figcaption></figure><figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="57" width="500"/></a><figcaption>caption</figcaption></figure>
19723 Images: upright option is ignored on inline and frame images (parsoid)
19727 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
19729 <p><span typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="57" width="500"/></a></span></p>
19733 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
19740 <li><p>foo</p></li>
19745 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
19751 <ul> <li>foo</li></ul>
19755 Don't strip leading whitespace when handling indent-pre suppressing tags
19763 '''This is very bold of you!'''
19767 indented cell (no pre-wrapping!)
19774 <tr><td> indented row</td></tr>
19777 <b>This is very bold of you!</b>
19780 indented cell (no pre-wrapping!)
19788 Strip leading whitespace when handling indent-pre inducing tags
19820 Lists: Add space after bullets
19826 * <span> baz</span>
19831 <li><span> baz</span></li>
19836 Headings: Add space before/after == (Bug 51744)
19846 == <span> baz</span> ==
19851 <h2><span> baz</span></h2>
19855 Parsoid: Serialize positional parameters with = in them as named parameter
19861 {{echo|1 = f=oo|2 = bar}}
19863 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19864 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19865 {{echo|<nowiki>f=oo</nowiki>|bar}}
19867 <p about="#mwt1" typeof="mw:Transclusion"
19868 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
19870 <p about="#mwt1" typeof="mw:Transclusion"
19871 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
19873 <!--Orig params with data-parsoid has heuristics for handling = chars-->
19874 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
19875 <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>
19879 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
19895 <div>a<p>b</p></div>
19903 #-----------------------------
19904 # I/B quote minimization tests
19905 #-----------------------------
19908 1. I/B quote minimization: wikitext-only tags should be combined
19928 <p><i>A</i><i>B</i></p>
19929 <p><b>A</b><b>B</b></p>
19930 <p><i>A</i><b><i>B</i></b></p>
19931 <p><b>A</b><i><b>B</b></i></p>
19932 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
19933 <p><i><b>A</b></i><i><b>B</b></i></p>
19934 <p><i><b>A</b></i><b><i>B</i></b></p>
19935 <p><b><i>A</i></b><i><b>B</b></i></p>
19939 2. I/B quote minimization: wikitext and html tags should not be combined
19945 ''A'''''<i>B</i>'''
19947 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
19948 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
19952 3. I/B quote minimization: templated content stops minimization
19956 ''A''{{echo|''B''}}
19958 ''A''{{echo|'''''B'''''}}
19960 <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>
19961 <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>
19965 4. I/B quote minimization: new content should be mimimized with adjacent old content
19975 <p><i>A</i><i data-parsoid='{}'>B</i></p>
19976 <p><b data-parsoid='{}'>A</b><b>B</b></p>
19977 <p><i>A</i><b data-parsoid='{}'><i data-parsoid='{}'>B</i></b></p>
19980 #------------------------------------
19981 # End of I/B quote minimization tests
19982 #------------------------------------
19985 Bug 54262: New entities
19991 <span typeof="mw:Entity">foo</span>
19994 ## Note that there is no wikitext output for 'unknownproperty' ##
19995 ## Unknown magic words are silently dropped ##
20010 __NOCONTENTCONVERT__
20012 <meta property='mw:PageProp/toc' />
20013 <meta property='mw:PageProp/notoc' />
20014 <meta property='mw:PageProp/forcetoc' />
20015 <meta property='mw:PageProp/index' />
20016 <meta property='mw:PageProp/noindex' />
20017 <meta property='mw:PageProp/nogallery' />
20018 <meta property='mw:PageProp/noeditsection' />
20019 <meta property='mw:PageProp/notitleconvert' />
20020 <meta property='mw:PageProp/nocontentconvert' />
20021 <meta property='mw:PageProp/unknownproperty' />
20025 Consecutive <pre>s should not get merged
20027 parsoid=html2wt,html2html
20043 <pre>a</pre><pre>b</pre>
20057 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
20061 [[Special:BookSources/1234567890|ISBN 1234567895]]
20063 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
20067 Edited RFC links not serializable as RFC links should serialize as extlinks
20071 [//tools.ietf.org/html/rfc123 New RFC]
20073 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
20077 Edited PMID links not serializable as PMID links should serialize as extlinks
20081 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
20083 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
20087 Edited Redirect link should emit a non-piped wikitext link
20093 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
20096 # -----------------------------------------------------------------
20097 # End of section for Parsoid-only html2wt tests for serialization
20099 # -----------------------------------------------------------------
20106 Try for 100% code coverage