1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # You can also set the following parser properties via test options:
31 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
32 # wgLinkHolderBatchSize, wgRawHtml
34 # For testing purposes, temporary articles can created:
35 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
36 # where '/' denotes a newline.
38 # This is the standard article assumed to exist.
63 MediaWiki:bad image list
65 * [[File:Bad.jpg]] except [[Nasty page]]
99 Template:echo_with_span
105 Template:echo_with_div
117 Template:table_attribs
120 |</noinclude>style="color: red"| Foo
142 This is a simple paragraph.
144 <p>This is a simple paragraph.
149 Paragraphs with extra newline spacing
172 Paragraphs with newline spacing with comment lines in between
180 <!--foo--><!--More than 1 comment disables stripping of this line!-->
237 Paragraphs with newline spacing with non-empty white-space lines in between
264 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
272 <!--foo--><!--More than 1 comment disables stripping of this line!-->
311 Extra newlines: More paragraphs with indented comment
326 Extra newlines followed by heading
341 <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>
342 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
345 <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>
350 Extra newlines between heading and content are swallowed
358 <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>
359 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
366 http://fr.wikipedia.org/wiki/🍺
367 <!-- EasterEgg we love beer, better be able be able to link to it -->
369 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
389 * plain''italic''plain
390 * plain''italic''plain''italic''plain
391 * plain'''bold'''plain
392 * plain'''bold'''plain'''bold'''plain
393 * plain''italic''plain'''bold'''plain
394 * plain'''bold'''plain''italic''plain
395 * plain''italic'''bold-italic'''italic''plain
396 * plain'''bold''bold-italic''bold'''plain
397 * plain'''''bold-italic'''italic''plain
398 * plain'''''bold-italic''bold'''plain
399 * plain''italic'''bold-italic'''''plain
400 * plain'''bold''bold-italic'''''plain
401 * plain l'''italic''plain
402 * plain l''''bold''' plain
405 </li><li> plain<i>italic</i>plain
406 </li><li> plain<i>italic</i>plain<i>italic</i>plain
407 </li><li> plain<b>bold</b>plain
408 </li><li> plain<b>bold</b>plain<b>bold</b>plain
409 </li><li> plain<i>italic</i>plain<b>bold</b>plain
410 </li><li> plain<b>bold</b>plain<i>italic</i>plain
411 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
412 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
413 </li><li> plain<i><b>bold-italic</b>italic</i>plain
414 </li><li> plain<b><i>bold-italic</i>bold</b>plain
415 </li><li> plain<i>italic<b>bold-italic</b></i>plain
416 </li><li> plain<b>bold<i>bold-italic</i></b>plain
417 </li><li> plain l'<i>italic</i>plain
418 </li><li> plain l'<b>bold</b> plain
423 # this example taken from the simple/Moon article
425 Italics and possessives
427 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
429 <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
434 ### 2-quote opening sequence tests
437 Italics and bold: 2-quote opening sequence: (2,2)
447 Italics and bold: 2-quote opening sequence: (2,3)
457 Italics and bold: 2-quote opening sequence: (2,4)
467 Italics and bold: 2-quote opening sequence: (2,5) (php)
476 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
478 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
490 ### 3-quote opening sequence tests
494 Italics and bold: 3-quote opening sequence: (3,2)
504 Italics and bold: 3-quote opening sequence: (3,3)
514 Italics and bold: 3-quote opening sequence: (3,4)
524 Italics and bold: 3-quote opening sequence: (3,5) (php)
533 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
535 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
547 ### 4-quote opening sequence tests
551 Italics and bold: 4-quote opening sequence: (4,2)
561 Italics and bold: 4-quote opening sequence: (4,3)
571 Italics and bold: 4-quote opening sequence: (4,4)
581 Italics and bold: 4-quote opening sequence: (4,5) (php)
590 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
592 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
598 <p>'<b>foo<i></i></b>
604 ### 5-quote opening sequence tests
608 Italics and bold: 5-quote opening sequence: (5,2) (php)
617 # Parsoid reverses the nesting order, compared to the PHP parser
619 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
631 Italics and bold: 5-quote opening sequence: (5,3)
641 Italics and bold: 5-quote opening sequence: (5,4)
645 <p><i><b>foo'</b></i>
651 Italics and bold: 5-quote opening sequence: (5,5)
660 ### multiple quote sequences in a line
663 Italics and bold: multiple quote sequences: (2,4,2)
667 <p><i>foo'<b>bar</b></i>
673 Italics and bold: multiple quote sequences: (2,4,3)
677 <p><i>foo'<b>bar</b></i>
683 Italics and bold: multiple quote sequences: (2,4,4)
687 <p><i>foo'<b>bar'</b></i>
693 Italics and bold: multiple quote sequences: (3,4,2) (php)
702 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
704 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
710 <p><b>foo'</b>bar<i></i>
716 Italics and bold: multiple quote sequences: (3,4,3) (php)
725 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
727 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
733 <p><b>foo'</b>bar<b></b>
738 ### other quote tests
741 Italics and bold: other quote tests: (2,3,5)
743 ''this is about '''foo's family'''''
745 <p><i>this is about <b>foo's family</b></i>
751 Italics and bold: other quote tests: (2,(3,3),2)
753 ''this is about '''foo's''' family''
755 <p><i>this is about <b>foo's</b> family</i>
761 Italics and bold: other quote tests: (3,2,3,2)
763 '''this is about ''foo'''s family''
765 <p><b>this is about <i>foo</i></b><i>s family</i>
770 # The Parsoid team believes the PHP parser's output on this test is wrong.
771 # It only checks for convert-to-bold-on-single-character-word when the word
772 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
773 # This means that the bold token in position 2 (0-indexed) gets converted by
774 # parsoid, but doesn't get changed by the PHP parser.
776 Italics and bold: other quote tests: (3,2,3,3) (php)
780 '''this is about ''foo'''s family'''
782 <p>'<i>this is about </i>foo<b>s family</b>
785 # This is the output the Parsoid team believes to be correct.
787 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
791 '''this is about ''foo'''s family'''
793 <p><b>this is about <i>foo'</i>s family</b>
799 Italics and bold: other quote tests: (3,(2,2),3)
801 '''this is about ''foo's'' family'''
803 <p><b>this is about <i>foo's</i> family</b>
809 Italicized possessive
811 The ''[[Main Page]]'''s talk page.
813 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
818 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
819 (Requires tidy for PHP parser output to be fixed up)
821 parsoid=wt2html,wt2wt
829 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
830 <td><i>a</i></td><td><i>b</i></td></tr>
839 Non-html5 tags should be accepted
841 <center>''foo''</center>
844 <strike>''foo''</strike>
847 <center><i>foo</i></center>
848 <p><big><i>foo</i></big>
849 <font><i>foo</i></font>
850 <strike><i>foo</i></strike>
856 ### <nowiki> test cases
860 <nowiki> unordered list
862 <nowiki>* This is not an unordered list item.</nowiki>
864 <p>* This is not an unordered list item.
871 <nowiki>Lorem ipsum dolor
892 :There is not nowiki.
893 :There is <nowiki>nowiki</nowiki>.
895 #There is not nowiki.
896 #There is <nowiki>nowiki</nowiki>.
898 *There is not nowiki.
899 *There is <nowiki>nowiki</nowiki>.
901 <dl><dd>There is not nowiki.
902 </dd><dd>There is nowiki.
904 <ol><li>There is not nowiki.
905 </li><li>There is nowiki.
907 <ul><li>There is not nowiki.
908 </li><li>There is nowiki.
914 Entities inside <nowiki>
916 <nowiki><</nowiki>
923 Entities inside template parameters
929 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
937 Comments and Indent-Pre
939 <!-- comment 1 --> asdf
941 <!-- comment 1 --> asdf
944 <!-- comment 1 --> asdf
945 <!-- comment 2 -->xyz
947 <!-- comment 1 --> asdf
948 <!-- comment 2 --> xyz
1004 asdf<!-- comment 1 -->jkl
1014 <!-- foo --> b <!-- bar -->
1028 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1034 Comment semantics and delimiters
1036 <!-- --><!----><!-----><!------>
1042 Comment semantics and delimiters, redux
1044 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1045 -- foo -- funky huh? ... -->
1051 Comment semantics and delimiters: directors cut
1053 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1054 everything starting with < followed by !-- until the first -- and > we see,
1055 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1063 Comment semantics: nesting
1065 <!--<!-- no, we're not going to do anything fancy here -->-->
1072 Comment semantics: unclosed comment at end
1074 <!--This comment will run out to the end of the document
1080 Comment in template title
1089 Comment on its own line post-expand
1101 Comment on its own line post-expand with non-significant whitespace
1113 ### paragraph wrapping tests
1127 Block tag on one line
1139 Block tag on both lines
1151 Multiple lines without block tags
1169 Empty lines between lines with block tags
1199 ### Preformatted text
1208 And a [[Main Page|link]]
1214 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1219 Ident preformatting with inline content
1230 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1247 Regression with preformatted in <center>
1260 # Expected output in the following test is not really expected (there should be
1261 # <pre> in the output) -- it's only testing for well-formedness.
1263 Bug 6200: Preformatted in <blockquote>
1276 <pre> with attributes (bug 3202)
1278 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1280 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1285 <pre> with width attribute (bug 3202)
1287 <pre width="8">Narrow screen goodies</pre>
1289 <pre width="8">Narrow screen goodies</pre>
1294 <pre> with forbidden attribute (bug 3202)
1296 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1298 <pre width="8">Narrow screen goodies</pre>
1303 Entities inside <pre>
1312 <pre> with forbidden attribute values (bug 3202)
1314 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1316 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1321 <nowiki> inside <pre> (bug 13238)
1329 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1337 <pre><nowiki>Foo</nowiki></pre>
1342 <nowiki> and <pre> preference (first one wins)
1373 </pre> inside nowiki
1375 <nowiki></pre></nowiki>
1382 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1390 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1400 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1412 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1433 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1437 {{echo| foo}}{{echo| bar}}
1442 {{echo|<!--cmt--> foo}}
1444 <!--cmt-->{{echo| foo}}
1446 {{echo|{{echo| }}bar}}
1464 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1501 Templates: Single-line variant of parameter whitespace stripping test
1507 {{echo|{{echo| a}}}}
1509 {{echo|1={{echo| a}}}}
1522 Templates: Strip whitespace from named parameters, but not positional ones
1550 Templates: Dont strip whitespace from whitespace/comment-only arguments
1554 {{echo| <!--cmt--> }}
1561 Templates: Parsoid parameter escaping test 1
1565 {{echo|[foo]|{{echo|[bar]}}}}
1567 <p about="#mwt1" typeof="mw:Transclusion"
1568 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1572 Parsoid: Pipes in external links in template parameter
1576 {{echo|[{{echo|http://example.com}} link]}}
1578 <p><a rel="mw:ExtLink" href="http://example.com" about="#mwt31" typeof="mw:Transclusion" data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{echo|http://example.com}} link]"}},"i":0}">link</a></p>
1582 Parsoid: pipe in transclusion parameter
1586 {{echo|http://foo.com/a|b}}
1588 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1589 typeof="mw:Transclusion"
1590 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a|b"}},"i":0}'>http://foo.com/a|b</a></p>
1594 Parsoid: Pipe in external link target and content in template parameter
1596 parsoid=html2wt,wt2wt
1598 {{echo|[http://foo.com/a|b a|b]}}
1600 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1601 typeof="mw:Transclusion"
1602 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1603 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1607 Templates: Dont escape already nowiki-escaped text in template parameters
1609 parsoid=html2wt,wt2wt
1611 {{echo|foo<nowiki>|</nowiki>bar}}
1613 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<nowiki>|</nowiki>bar"}},"i":0}'>foo<span typeof="mw:Nowiki" data-parsoid="{}">|</span>bar</p>
1617 ### Parsoid-centric tests for testing RT edge cases for pre
1621 1a. Indent-Pre and Comments
1634 1b. Indent-Pre and Comments
1647 1c. Indent-Pre and Comments
1660 2a. Indent-Pre and tables
1681 2b. Indent-Pre and tables
1697 2c. Indent-Pre and tables (bug 42252)
1714 3a. Indent-Pre and block tags (single-line html)
1722 <pre><span> foo </span>
1727 3b. Indent-Pre and block tags (pre-content on separate line)
1779 4. Multiple spaces at start-of-line
1798 5. White-space in indent-pre
1799 NOTE: the white-space char on 2nd line is significant
1812 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1816 HTML-pre: 1. embedded newlines
1852 HTML-pre: 2: indented text
1865 HTML-pre: 3: other wikitext
1886 ### Definition lists
1893 <dl><dt> name </dt><dd> Definition
1899 Definition list for indentation only
1903 <dl><dd> Indented text
1909 Definition list with no space
1913 <dl><dt>name</dt><dd>Definition
1919 Definition list with URL link
1921 ; http://example.com/ : definition
1923 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1929 Definition list with bracketed URL link
1931 ;[http://www.example.com/ Example]:Something about it
1933 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1939 Definition list with wikilink containing colon
1941 ; [[Help:FAQ]]: The least-read page on Wikipedia
1943 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1948 # At Brion's and JeLuF's insistence... :)
1950 Definition list with news link containing colon
1952 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1954 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1960 Malformed definition list with colon
1962 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1964 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1970 Definition lists: colon in external link text
1972 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1974 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1980 Definition lists: colon in HTML attribute
1982 ;<b style="display: inline">bold</b>
1984 <dl><dt><b style="display: inline">bold</b>
1990 Definition lists: self-closed tag
1992 ;one<br/>two : two-line fun
1994 <dl><dt>one<br />two </dt><dd> two-line fun
2000 Bug 11748: Literal closing tags
2004 <dd>test test test test test</dd>
2006 <dd>test test test test test</dd>
2011 <dd>test test test test test</dd>
2013 <dd>test test test test test</dd>
2019 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2022 ; term : description
2028 <dl><dt> term </dt><dd> description
2039 Definition list with empty definition and following paragraph
2044 <dl><dt> term</dt><dd>
2051 Nested definition lists using html syntax
2068 Definition Lists: No nesting: Multiple dd's
2082 Definition Lists: Indentation: Regular
2098 Definition Lists: Indentation: Missing 1st level
2112 Definition Lists: Indentation: Multi-level indent
2116 <dl><dd><dl><dd><dl><dd>i3
2124 Definition Lists: Hacky use to indent tables
2131 should be left alone
2133 <dl><dd><dl><dd><table>
2138 </td></tr></table></dd></dl></dd></dl>
2140 should be left alone
2143 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2144 ## as an empty dt item. It also ignores all but the last ";" when followed
2145 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2146 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2149 ## Ex: ";;t2 ::d2" is transformed into:
2161 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2162 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2173 ## All Parsoid only definition list tests have this difference.
2175 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2176 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2179 Table / list interaction: indented table with lists in table contents
2201 </td></tr></table></dd></dl>
2206 Table / list interaction: lists nested in tables nested in indented lists
2231 </td></tr></table></dd></dl>
2239 Definition Lists: Nesting: Multi-level (Parsoid only)
2269 Definition Lists: Nesting: Test 2 (Parsoid only)
2289 Definition Lists: Nesting: Test 3 (Parsoid only)
2317 Definition Lists: Nesting: Test 4
2322 <dl><dd><dl><dd><dl><dt>t3
2331 ## The Parsoid team believes the following three test exposes a
2332 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2333 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2335 Definition Lists: Mixed Lists: Test 1 (php)
2343 <dl><dd><dl><dt><ul><li> foo
2353 Definition Lists: Mixed Lists: Test 1 (parsoid)
2361 <dl><dd><dl><dt><ul><li> foo
2362 </li></ul></dt><dd><ul><li> bar
2363 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2367 Definition Lists: Mixed Lists: Test 2
2381 Definition Lists: Mixed Lists: Test 3
2386 <ul><li><dl><dd><dl><dd><dl><dd> d1
2397 Definition Lists: Mixed Lists: Test 4
2402 <ul><li><dl><dt>d1 </dt><dd>d2
2403 </dd><dt>d3 </dt><dd>d4
2411 Definition Lists: Mixed Lists: Test 5
2426 Definition Lists: Mixed Lists: Test 6
2431 <ol><li><ul><li><dl><dd>d1
2443 Definition Lists: Mixed Lists: Test 7
2457 Definition Lists: Mixed Lists: Test 8
2473 Definition Lists: Mixed Lists: Test 9
2477 <ul><li><dl><dt>foo </dt><dd>bar
2485 Definition Lists: Mixed Lists: Test 10
2489 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2496 # The Parsoid team disagrees with the PHP parser's seemingly-random
2497 # rules regarding dd/dt on the next two tests. Parsoid is more
2498 # consistent, and recognizes the shared nesting and keeps the
2499 # still-open tags around until the nesting is complete.
2502 Definition Lists: Mixed Lists: Test 11 (php)
2509 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2514 <dl><dt>boo </dt><dd>baz
2523 Definition Lists: Mixed Lists: Test 11 (parsoid)
2545 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2546 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2547 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2548 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2553 Definition Lists: Weird Ones: Test 1 (php)
2557 *#;*::;; foo : bar (who uses this?)
2559 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2571 Definition Lists: Weird Ones: Test 1 (parsoid)
2575 *#;*::;; foo : bar (who uses this?)
2592 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2593 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2600 External links: non-bracketed
2602 Non-bracketed: http://example.com
2604 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2609 External links: numbered
2611 Numbered: [http://example.com]
2612 Numbered: [http://example.net]
2613 Numbered: [http://example.com]
2615 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2616 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2617 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2622 External links: specified text
2624 Specified text: [http://example.com link]
2626 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2631 External links: trail
2633 Linktrails should not work for external links: [http://example.com link]s
2635 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2640 External links: dollar sign in URL
2642 http://example.com/1$2345
2644 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2649 External links: dollar sign in URL (named)
2651 [http://example.com/1$2345]
2653 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2658 External links: open square bracket forbidden in URL (bug 4377)
2660 http://example.com/1[2345
2662 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2667 External links: open square bracket forbidden in URL (named) (bug 4377)
2669 [http://example.com/1[2345]
2671 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2676 External links: nowiki in URL link text (bug 6230)
2678 [http://example.com/ <nowiki>''example site''</nowiki>]
2680 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2685 External links: newline forbidden in text (bug 6230 regression check)
2687 [http://example.com/ first
2690 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2696 External links: Pipe char between url and text
2698 [http://example.com | link]
2700 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2705 External links: protocol-relative URL in brackets
2707 [//example.com/ Test]
2709 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2714 External links: protocol-relative URL in brackets without text
2718 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2723 External links: protocol-relative URL in free text is left alone
2727 <p>//example.com/Foo
2732 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2734 foo//example.com/Foo
2736 <p>foo//example.com/Foo
2743 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2745 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2750 External image from https
2752 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2754 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2759 External image (when not allowed)
2761 wgAllowExternalImages=0
2763 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2765 <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>
2770 Link to non-http image, no img tag
2772 Link to non-http image, no img tag: ftp://example.com/test.jpg
2774 <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>
2779 External links: terminating separator
2781 Terminating separator: http://example.com/thing,
2783 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2788 External links: intervening separator
2790 Intervening separator: http://example.com/1,2,3
2792 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2797 External links: old bug with URL in query
2799 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2801 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2806 External links: old URL-in-URL bug, mixed protocols
2808 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2810 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2815 External links: URL in text
2817 URL in text: [http://example.com http://example.com]
2819 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2824 External links: Clickable images
2826 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2828 <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>
2833 External links: raw ampersand
2835 Old & use: http://x&y
2837 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2842 External links: encoded ampersand
2844 Old & use: http://x&y
2846 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2851 External links: encoded equals (bug 6102)
2853 http://example.com/?foo=bar
2855 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2860 External links: [raw ampersand]
2862 Old & use: [http://x&y]
2864 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2869 External links: [encoded ampersand]
2871 Old & use: [http://x&y]
2873 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2878 External links: [encoded equals] (bug 6102)
2880 [http://example.com/?foo=bar]
2882 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2887 External links: [IDN ignored character reference in hostname; strip it right off]
2889 [http://e‌xample.com/]
2891 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2895 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2896 # Where an external link could easily circumvent the sanitization of the text of
2897 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2898 # test demands a higher standard. That's a bit strange.
2902 # http://example.com -> [http://example.com|http://example.com]
2903 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2905 # The first example is sanitized, but the second is not. Any security benefits
2906 # from this production are trivial to circumvent. Either remove this test and
2907 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2908 # the test accordingly.
2913 External links: IDN ignored character reference in hostname; strip it right off
2915 http://e‌xample.com/
2917 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2922 External links: www.jpeg.org (bug 554)
2926 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2931 External links: URL within URL (original bug 2)
2933 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2935 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2940 BUG 361: URL inside bracketed URL
2942 [http://www.example.com/foo http://www.example.com/bar]
2944 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2949 BUG 361: URL within URL, not bracketed
2951 http://www.example.com/foo?=http://www.example.com/bar
2953 <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>
2958 BUG 289: ">"-token in URL-tail
2960 http://www.example.com/<hello>
2962 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2967 BUG 289: literal ">"-token in URL-tail
2969 http://www.example.com/<b>html</b>
2971 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2976 BUG 289: ">"-token in bracketed URL
2978 [http://www.example.com/<hello> stuff]
2980 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2985 BUG 289: literal ">"-token in bracketed URL
2987 [http://www.example.com/<b>html</b> stuff]
2989 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2994 BUG 289: literal double quote at end of URL
2996 http://www.example.com/"hello"
2998 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3003 BUG 289: literal double quote in bracketed URL
3005 [http://www.example.com/"hello" stuff]
3007 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3012 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3014 [http://www.example.com test]
3016 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3021 External links: link text with spaces
3023 [http://www.example.com a b c]
3024 [http://www.example.com ''a'' ''b'']
3026 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3027 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3032 External links: wiki links within external link (Bug 3695)
3034 [http://example.com [[wikilink]] embedded in ext link]
3036 <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>
3041 BUG 787: Links with one slash after the url protocol are invalid
3045 [http:/example.com title]
3047 <p>http:/example.com
3048 </p><p>[http:/example.com title]
3053 Bracketed external links with template-generated invalid target
3055 [{{echo|http:/example.com}} title]
3057 <p>[http:/example.com title]
3062 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3064 ''[http://example.com text'']
3065 [http://example.com '''text]'''
3066 ''Something [http://example.com in italic'']
3067 ''Something [http://example.com mixed''''', even bold]'''
3068 '''''Now [http://example.com both''''']
3070 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3071 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3072 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3073 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3074 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3080 Bug 4781: %26 in URL
3082 http://www.example.com/?title=AT%26T
3084 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3088 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3089 # % is actually legal in HTML5. Any change in output would need testing though.
3091 Bug 4781, 5267: %25 in URL
3093 http://www.example.com/?title=100%25_Bran
3095 <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>
3100 Bug 4781, 5267: %28, %29 in URL
3102 http://www.example.com/?title=Ben-Hur_%281959_film%29
3104 <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>
3110 Bug 4781: %26 in autonumber URL
3112 [http://www.example.com/?title=AT%26T]
3114 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3119 Bug 4781, 5267: %26 in autonumber URL
3121 [http://www.example.com/?title=100%25_Bran]
3123 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3128 Bug 4781, 5267: %28, %29 in autonumber URL
3130 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3132 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3138 Bug 4781: %26 in bracketed URL
3140 [http://www.example.com/?title=AT%26T link]
3142 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3147 Bug 4781, 5267: %26 in bracketed URL
3149 [http://www.example.com/?title=100%25_Bran link]
3151 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3156 Bug 4781, 5267: %28, %29 in bracketed URL
3158 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3160 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3165 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3167 Some [http://example.com/ pretty ''italics'' and stuff]!
3169 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3174 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3176 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3178 <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>
3183 External link containing double-single-quotes with no space separating the url from text in italics
3185 [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]].]
3187 <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>
3192 External link with comments in link text
3194 [http://www.google.com Google <!-- comment -->]
3196 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3201 URL-encoding in URL functions (single parameter)
3203 {{localurl:Some page|amp=&}}
3205 <p>/index.php?title=Some_page&amp=&
3210 URL-encoding in URL functions (multiple parameters)
3212 {{localurl:Some page|q=?&=&}}
3214 <p>/index.php?title=Some_page&q=?&amp=&
3221 http://example.com/index.php?foozoid%5B%5D=bar
3223 http://example.com/index.php?foozoid[]=bar
3225 <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>
3226 </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>
3231 IPv6 urls (bug 21261)
3235 http://[2404:130:0:1000::187:2]/index.php
3237 <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>
3242 Non-extlinks in brackets
3251 [{{echo|foo}} ''bar'']
3252 [{{echo|foo}}l's] errand
3253 [{{echo|foo}}l's errand]
3255 [url=http://example.com]
3268 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3273 Parsoid: Percent encoding in external links
3277 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3279 <p><a rel="mw:ExtLink"
3280 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3284 Parsoid: use url link syntax for links where the content is equal the link
3291 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3301 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3303 Normal text. '''''Bold italic text.''''' Normal text.
3305 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3306 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3312 Unclosed and unmatched quotes (php)
3316 '''''Bold italic text '''with bold deactivated''' in between.'''''
3318 '''''Bold italic text ''with italic deactivated'' in between.'''''
3322 ..spanning two paragraphs (should not work).'''
3324 '''Bold tag left open
3326 ''Italic tag left open
3330 <!-- Unmatching number of opening, closing tags: -->
3331 '''This year''''s election ''should'' beat '''last year''''s.
3333 ''Tom'''s car is bigger than ''Susan'''s.
3335 Plain ''italic'''s plain
3337 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3338 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3339 </p><p><b>Bold text..</b>
3340 </p><p>..spanning two paragraphs (should not work).
3341 </p><p><b>Bold tag left open</b>
3342 </p><p><i>Italic tag left open</i>
3344 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3345 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3346 </p><p>Plain <i>italic'</i>s plain
3349 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3350 # parser strips. The wikitext contains just the first half of the bold
3351 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3352 # differently than the PHP parser.)
3354 Unclosed and unmatched quotes (parsoid)
3358 '''''Bold italic text '''with bold deactivated''' in between.'''''
3360 '''''Bold italic text ''with italic deactivated'' in between.'''''
3364 ..spanning two paragraphs (should not work).'''
3366 '''Bold tag left open
3368 ''Italic tag left open
3372 <!-- Unmatching number of opening, closing tags: -->
3373 '''This year''''s election ''should'' beat '''last year''''s.
3375 ''Tom'''s car is bigger than ''Susan'''s.
3377 Plain ''italic'''s plain
3379 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3380 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3381 </p><p><b>Bold text..</b>
3382 </p><p>..spanning two paragraphs (should not work).<b></b>
3383 </p><p><b>Bold tag left open</b>
3384 </p><p><i>Italic tag left open</i>
3386 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3387 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3388 </p><p>Plain <i>italic'</i>s plain
3395 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3398 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3399 # is the bare minimum required by the spec, see:
3400 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3402 A table with no data. (php)
3409 # Parsoid team replies: empty table tags are legal in HTML5
3411 A table with no data. (parsoid)
3420 # A table with nothing but a caption is invalid XHTML, we might want to render
3421 # this as <p>caption</p>
3423 A table with nothing but a caption (php)
3433 </caption><tr><td></td></tr></table>
3436 # Parsoid team replies: table with only a caption is legal in HTML5
3438 A table with nothing but a caption (parsoid)
3446 <table><caption> caption</caption></table>
3450 A table with caption with default-spaced attributes and a table row
3453 |+ style="color: red;" | caption1
3459 <caption style="color: red;"> caption1
3468 A table with captions with non-default spaced attributes and a table row
3471 |+style="color: red;"|caption2
3472 |+ style="color: red;"| caption3
3478 <caption style="color: red;">caption2
3480 <caption style="color: red;"> caption3
3489 Table td-cell syntax variations
3493 | foo bar foo || baz
3494 | style='color:red;' | baz
3495 | style='color:red;' || baz
3502 <td> foo bar foo </td>
3505 <td style="color:red;"> baz
3507 <td> style='color:red;' </td>
3535 Simple table but with multiple dashes for row wikitext
3553 Multiplication table
3555 {| border="1" cellpadding="2"
3556 |+Multiplication table
3558 ! × !! 1 !! 2 !! 3
3576 <table border="1" cellpadding="2">
3577 <caption>Multiplication table
3624 Accept "||" in table headings
3639 Accept "||" in indented table headings
3649 </th></tr></table></dd></dl>
3654 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3671 Accept "| !" at start of line in tables (ignore !-attribute)
3675 | !style="color:red" | bar
3687 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 +/-
3691 |style='color:red;'|+1
3692 |style='color:blue;'|-1
3704 <td style="color:red;">+1
3706 <td style="color:blue;">-1
3730 |rowspan=2| Cell 2, row 1 (and 2)
3741 <td rowspan="2"> Cell 2, row 1 (and 2)
3759 {| bgcolor=#ABCDEF border=2
3764 |the original table again
3772 <table bgcolor="#ABCDEF" border="2">
3780 <td>the original table again
3786 Invalid attributes in table cell (bug 1830)
3801 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3804 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3808 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3809 <td>]" onmouseover="alert(document.cookie)">test
3818 Indented table markup mixed with indented pre content (proposed in bug 6200)
3823 Text that should be rendered preformatted
3831 <pre>Text that should be rendered preformatted
3840 Template-generated table cell attributes and cell content
3848 <td style="color: red"> Foo
3854 Table with row followed by newlines and table heading
3872 Table with empty line following the start tag
3889 # FIXME: Preserve the attribute properly (with an empty string as value) in
3890 # the PHP parser. Parsoid implements the behavior below.
3892 Table attributes with empty value
3904 </td></tr></tbody></table>
3909 Wikitext table with a lot of comments
3932 Wikitext table with double-line table cell
3949 Table cell with a single comment
3965 # The expected HTML structure in this test is debatable. The PHP parser does
3966 # not parse this kind of table at all. The main focus for Parsoid is on
3967 # round-tripping, so this output is ok for now. TODO: revisit!
3969 Wikitext table with html-syntax row (Parsoid)
3981 <td>foo</td></tr></tbody></table>
3985 Implicit <td> after a |-
3986 (PHP parser relies on Tidy to add the missing <td> tags)
3988 parsoid=wt2html,wt2wt
4001 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4002 (PHP parser relies on Tidy to add the missing <td> tags)
4004 parsoid=wt2html,wt2wt
4016 <tr><td><pre>a</pre></td></tr>
4017 <tr><td> b</td></tr>
4023 Lists should be recognized in an implicit <td> context
4024 (PHP parser relies on Tidy to add the missing <td> tags)
4026 parsoid=wt2html,wt2wt
4035 <td><ul><li>a</li></ul></td>
4044 Plain link, capitalized
4048 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4053 Plain link, uncapitalized
4057 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4064 [[Main Page|The Main Page]]
4066 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4071 Piped link with comment in link text
4073 [[Main Page|The Main<!--front--> Page]]
4075 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4084 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4089 Broken link with fragment
4091 [[Zigzagzogzagzig#zug]]
4093 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4098 Special page link with fragment
4100 [[Special:Version#anchor]]
4102 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4107 Nonexistent special page link with fragment
4109 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4111 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4118 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4120 <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>
4127 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4129 <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>!!!
4140 Bug 43661: Piped links with identical prefixes
4142 [[prefixed article|prefixed articles with spaces]]
4144 [[prefixed article|prefixed articlesaoeu]]
4146 [[Main Page|Main Page test]]
4148 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4149 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4150 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4156 Link with HTML entity in suffix / tail
4158 [[Main Page]]", [[Main Page]]a
4160 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4165 Link with 3 brackets
4174 Piped link with 3 brackets
4176 [[[main page|the main page]]]
4178 <p>[[[main page|the main page]]]
4183 Link with multiple pipes
4185 [[Main Page|The|Main|Page]]
4187 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4194 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4196 <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>
4201 Piped link to namespace
4203 [[Meta:Disclaimers|The disclaimers]]
4205 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4212 [[Usually caused by a typo (oops}]]
4214 <p>[[Usually caused by a typo (oops}]]
4219 Link containing % (not as a hex sequence)
4223 <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>
4228 Link containing % as a single hex sequence interpreted to char
4232 <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>
4237 Link containing % as a double hex sequence interpreted to hex sequence
4241 <p>[[7%2525 Solution]]
4246 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4247 Example for such a section: == < ==
4249 [[%23%3c]][[%23%3e]]
4251 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4256 Link containing "<#" and ">#" as a hex sequences
4258 [[%3c%23]][[%3e%23]]
4260 <p>[[%3c%23]][[%3e%23]]
4265 Link containing an equals sign
4267 [[Special:BookSources/isbn=4-00-026157-6]]
4269 <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>
4276 Just a test of an article title containing a tilde.
4279 # note that links containing signatures, like [[Foo~~~~]], are
4280 # massaged by the pre-save transform (PST) and so the tildes are never
4281 # seen by the parser.
4283 Link containing a tilde
4287 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4292 Link containing double-single-quotes '' (bug 4598)
4294 [[Lista d''e paise d''o munno]]
4296 <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>
4301 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4303 Some [[Link|pretty ''italics'' and stuff]]!
4305 <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>!
4310 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4312 ''Some [[Link|pretty ''italics'' and stuff]]!
4314 <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>
4319 Link with double quotes in title part (literal) and alternate part (interpreted)
4321 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4325 [[''Pentecoste''|Pentecoste]]
4327 [[''Pentecoste''|''Pentecoste'']]
4329 <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>
4330 </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>
4331 </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>
4332 </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>
4337 Broken image links with HTML captions (bug 39700)
4339 [[File:Nonexistent|<script></script>]]
4340 [[File:Nonexistent|100px|<script></script>]]
4341 [[File:Nonexistent|<]]
4342 [[File:Nonexistent|a<i>b</i>c]]
4344 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4345 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4346 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4347 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4354 [[http://www.example.com]]
4356 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4361 Plain link to URL with link text
4363 [[http://www.example.com Link text]]
4365 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4370 Plain link to protocol-relative URL
4372 [[//www.example.com]]
4374 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4379 Plain link to protocol-relative URL with link text
4381 [[//www.example.com Link text]]
4383 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4388 Plain link to page with question mark in title
4394 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4395 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4400 # I'm fairly sure the expected result here is wrong.
4401 # We want these to be URL links, not pseudo-pages with URLs for titles....
4402 # However the current output is also pretty screwy.
4405 # I'm changing it to match the current output--it arguably makes more
4406 # sense in the light of the test above. Old expected result was:
4407 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4409 # But I think this test is bordering on "garbage in, garbage out" anyway.
4414 Piped link to URL: [[http://www.example.com|an example URL]]
4416 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4421 BUG 2: [[page|http://url/]] should link to page, not http://url/
4423 [[Main Page|http://url/]]
4425 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4430 BUG 337: Escaped self-links should be bold
4434 [[Bug462]] [[Bug462]]
4436 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4441 Self-link to section should not be bold
4445 [[Main Page#section]]
4447 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4458 Self-link to numeric title
4464 <p><strong class="selflink">0</strong>
4469 Link to numeric-equivalent title
4475 <p><a href="/wiki/00" title="00">00</a>
4480 <nowiki> inside a link
4482 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4484 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4489 Non-breaking spaces in title
4491 [[ Main Page ]]
4493 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4498 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4504 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4509 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4515 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4520 Internal link with en linktrail: no apostrophes (bug 27473)
4526 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4531 Internal link with ca linktrail with apostrophes (bug 27473)
4537 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4542 Internal link with kaa linktrail with apostrophes (bug 27473)
4548 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4559 Internal link with is link prefix
4563 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4565 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4576 Internal link with is link trail and link prefix
4580 [[mótmælendatrú|xxx]]ar
4582 mótmælenda[[söfnuður]]
4583 mótmælenda[[söfnuður|söfnuðir]]
4584 mótmælenda[[söfnuður|söfnuðir]]xxx
4586 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4587 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4588 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4589 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4590 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4595 Parsoid link trail escaping
4597 parsoid=html2wt,html2html
4601 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4605 Parsoid link prefix escaping
4608 parsoid=html2wt,html2html
4610 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4612 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4616 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4624 [http://wp.org ''foo'']
4626 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4627 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4628 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4629 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4634 ### Interwiki links (see maintenance/interwiki.sql)
4638 Inline interwiki link
4640 [[MeatBall:SoftSecurity]]
4642 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4647 Inline interwiki link with empty title (bug 2372)
4651 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4656 Interwiki link encoding conversion (bug 1636)
4658 *[[Wikipedia:ro:Olteniţa]]
4659 *[[Wikipedia:ro:Olteniţa]]
4661 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4662 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4668 Interwiki link with fragment (bug 2130)
4670 [[MeatBall:SoftSecurity#foo]]
4672 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4687 Double interlanguage link
4698 Interlanguage link, with prefix links
4710 Double interlanguage link, with prefix links (bug 8897)
4723 Parsoid-specific test: Wikilinks with should RT properly
4729 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4734 Parsoid: handle constructor well
4742 <p data-parsoid="{"dsr":[0,15,0,0]}"><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"},"dsr":[0,15,2,2]}">constructor</a></p>
4745 <p data-parsoid="{"dsr":[17,36,0,0]}"><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"},"dsr":[17,36,2,2]}">constructor:foo</a></p>
4749 ## Redirects, Parsoid-only
4752 Simple redirect to page
4756 #REDIRECT [[Main Page]]
4758 <link rel="mw:PageProp/redirect" href="./Main_Page">
4762 Redirect to category
4766 #REDIRECT [[Category:Foo]]
4768 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4772 Redirect to category page
4774 parsoid=wt2html,html2html
4776 #REDIRECT [[:Category:Foo]]
4778 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4782 Redirect to image page
4786 #REDIRECT [[File:Wiki.png]]
4788 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4792 Redirect to language
4796 #REDIRECT [[en:File:Wiki.png]]
4798 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4802 Redirect to interwiki
4806 #REDIRECT [[meatball:File:Wiki.png]]
4808 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4825 Broken br tag sanitization
4835 # TODO: Fix html2html mode (bug 51055)!
4837 Parsoid: Broken br tag recognition
4847 Incorrecly removing closing slashes from correctly formed XHTML
4849 <br style="clear:both;" />
4851 <p><br style="clear:both;" />
4856 Failing to transform badly formed HTML into correct XHTML
4858 <br style="clear: left;">
4859 <br style="clear: right;">
4860 <br style="clear: both;">
4862 <p><br style="clear: left;" />
4863 <br style="clear: right;" />
4864 <br style="clear: both;" />
4869 Handling html with a div self-closing tag
4878 <p><div title />
4882 <p><div title=bar />
4883 <div title=bar/>
4885 <div title="bar/"></div>
4891 Handling html with a br self-closing tag
4900 <p><br title="title" />
4901 <br title="title" />
4910 Horizontal ruler (should it add that extra space?)
4924 Horizontal ruler -- 4+ dashes render hr
4933 Horizontal ruler -- eats additional dashes on the same line
4942 Horizontal ruler -- does not collapse dashes on consecutive lines
4953 Horizontal ruler -- <4 dashes render as plain text
4962 Horizontal ruler -- Supports content following dashes on same line
4971 ### Block-level elements
4994 <ol><li>Numbered list
5011 ***#Number on level 4
5013 **#Number on level 3
5014 **#Number on level 3
5018 #** Level 3, but ordered
5021 <ol><li> with numbers
5023 <ul><li> and bullets
5025 <ol><li> and numbers
5027 </li><li>bullets again
5028 <ul><li>bullet level 2
5029 <ul><li>bullet level 3
5030 <ol><li>Number on level 4
5033 </li><li>bullet level 2
5034 <ol><li>Number on level 3
5035 </li><li>Number on level 3
5038 <ol><li>number level 2
5041 <ul><li><ul><li> Level 3
5045 <ol><li><ul><li><ul><li> Level 3, but ordered
5079 Nested lists 3 (first element empty)
5092 Nested lists 4 (first element empty)
5105 Nested lists 5 (both elements empty)
5118 Nested lists 6 (both elements empty)
5131 Nested lists 7 (skip initial nesting levels)
5135 <ul><li><ul><li><ul><li> foo
5143 Nested lists 8 (multiple nesting transitions)
5151 <ul><li><ul><li> bar
5161 1. Lists with start-of-line-transparent tokens before bullets: Comments
5175 2. Lists with start-of-line-transparent tokens before bullets: Template close
5187 Unbalanced closing block tags break a list
5188 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5198 </li></ul></div><div>
5204 Unbalanced closing non-block tags don't break a list
5205 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5215 <ul><li>a<span></span>
5221 Unclosed formatting tags that straddle lists are closed and reopened
5222 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5230 </li><li> <s> b </s>
5235 List embedded in a non-block tag
5236 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5244 <p><small></small></p>
5250 <p><small></small></p>
5254 List items are not parsed correctly following a <pre> block (bug 785)
5260 <ul><li> <pre>foo</pre>
5261 </li><li> <pre>bar</pre>
5268 List items from template
5279 * notSOL{{inner list}}
5298 List interrupted by empty line or heading
5308 <ul><li><ul><li> bar
5311 <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>
5312 <ul><li> Another list item
5318 Multiple list tags generated by templates
5333 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5336 <!--This line will NOT split the list-->
5338 <!--This line will NOT split the list either-->
5340 <!--foo--> <!--This line with more than 1 comment will split the list-->
5354 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5356 parsoid=wt2html,wt2wt
5360 * {{echo|<li>templated li-hack}}
5361 * <!--foo--> <li> unsupported li-hack with preceding comments
5364 <li><li>not a li-hack
5370 <li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<li>templated li-hack"}}}'>templated li-hack</li>
5371 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5374 <li></li><li>not a li-hack
5380 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5391 <ol><li> foo<ol><li> bar</li></ol></li></ol><ul><li> foo<ul><li> bar</li></ul></li></ul><dl><dd> foo<dl><dd> bar</dd></dl></dd></dl>
5400 Magic Word: {{CURRENTDAY}}
5409 Magic Word: {{CURRENTDAY2}}
5418 Magic Word: {{CURRENTDAYNAME}}
5427 Magic Word: {{CURRENTDOW}}
5436 Magic Word: {{CURRENTMONTH}}
5445 Magic Word: {{CURRENTMONTHABBREV}}
5447 {{CURRENTMONTHABBREV}}
5454 Magic Word: {{CURRENTMONTHNAME}}
5456 {{CURRENTMONTHNAME}}
5463 Magic Word: {{CURRENTMONTHNAMEGEN}}
5465 {{CURRENTMONTHNAMEGEN}}
5472 Magic Word: {{CURRENTTIME}}
5481 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5490 Magic Word: {{CURRENTYEAR}}
5499 Magic Word: {{FULLPAGENAME}}
5501 title=[[User:Ævar Arnfjörð Bjarmason]]
5505 <p>User:Ævar Arnfjörð Bjarmason
5510 Magic Word: {{FULLPAGENAMEE}}
5512 title=[[User:Ævar Arnfjörð Bjarmason]]
5516 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5521 Magic Word: {{NAMESPACE}}
5523 title=[[User:Ævar Arnfjörð Bjarmason]]
5532 Magic Word: {{NAMESPACEE}}
5534 title=[[User:Ævar Arnfjörð Bjarmason]]
5543 Magic Word: {{NAMESPACENUMBER}}
5545 title=[[User:Ævar Arnfjörð Bjarmason]]
5554 Magic Word: {{NUMBEROFFILES}}
5563 Magic Word: {{PAGENAME}}
5565 title=[[User:Ævar Arnfjörð Bjarmason]]
5569 <p>Ævar Arnfjörð Bjarmason
5574 Magic Word: {{PAGENAME}} with metacharacters
5576 title=[['foo & bar = baz']]
5580 <p><i>'foo & bar = baz'</i>
5585 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5587 title=[[*RFC 1234 http://example.com/]]
5591 <p>*RFC 1234 http://example.com/
5596 Magic Word: {{PAGENAMEE}}
5598 title=[[User:Ævar Arnfjörð Bjarmason]]
5602 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5607 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5609 title=[[*RFC 1234 http://example.com/]]
5613 <p>*RFC_1234_http://example.com/
5618 Magic Word: {{REVISIONID}}
5627 Magic Word: {{SCRIPTPATH}}
5636 Magic Word: {{SERVER}}
5640 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5645 Magic Word: {{SERVERNAME}}
5654 Magic Word: {{SITENAME}}
5663 Case-sensitive magic words, when cased differently, should just be template transclusions
5670 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5671 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5672 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5673 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5678 Case-insensitive magic words should still work with weird casing.
5688 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5693 Namespace 1 {{ns:1}}
5702 Namespace 1 {{ns:01}}
5711 Namespace 0 {{ns:0}} (bug 4783)
5719 Namespace 0 {{ns:00}} (bug 4783)
5727 Namespace -1 {{ns:-1}}
5736 Namespace User {{ns:User}}
5745 Namespace User talk {{ns:User_talk}}
5754 Namespace User talk {{ns:uSeR tAlK}}
5763 Namespace File {{ns:File}}
5772 Namespace File {{ns:Image}}
5781 Namespace (lang=de) Benutzer {{ns:User}}
5792 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5798 <p>Benutzer Diskussion
5806 {{urlencode:hi world?!}}
5807 {{urlencode:hi world?!|WIKI}}
5808 {{urlencode:hi world?!|PATH}}
5809 {{urlencode:hi world?!|QUERY}}
5822 Magic links: internal link to RFC (bug 479)
5826 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5831 Magic links: RFC (bug 479)
5835 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5840 Magic links: ISBN (bug 1937)
5844 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5849 Magic links: PMID incorrectly converts space to underscore
5853 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5862 Nonexistent template
5864 {{thistemplatedoesnotexist}}
5866 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5871 Template with invalid target containing tags
5873 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5875 <p>{{a<b>b</b>|foo|a=b|a = b}}
5880 Template with invalid target containing unclosed tag
5882 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5884 <p>{{a<b>|foo|a=b|a = b}}</b>
5891 This is a test template
5899 <p>This is a test template
5904 Template with explicit namespace
5908 <p>This is a test template
5916 This is a test template with parameter {{{param}}}
5922 {{paramtest|param=foo}}
5924 <p>This is a test template with parameter foo
5929 Template:paramtestnum
5935 Template unnamed parameter
5937 {{paramtestnum|Main Page|the main page}}
5939 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5944 Template:templatesimple
5950 Template:templateredirect
5952 #redirect [[Template:templatesimple]]
5956 Template:templateasargtestnum
5962 Template:templateasargtest
5964 {{template{{{templ}}}}}
5968 Template:templateasargtest2
5974 Template with template name as unnamed argument
5976 {{templateasargtestnum|templatesimple}}
5983 Template with template name as argument
5985 {{templateasargtest|templ=simple}}
5992 Template with template name as argument (2)
5994 {{templateasargtest2|templ=templatesimple}}
6001 Template:templateasargtestdefault
6003 {{{{{templ|templatesimple}}}}}
6013 Template with default value
6015 {{templateasargtestdefault}}
6022 Template with default value (value set)
6024 {{templateasargtestdefault|templ=templa}}
6033 {{templateredirect}}
6040 Template with argument in separate line
6042 {{ templateasargtest |
6050 Template with complex template as argument
6053 param ={{ templateasargtest |
6056 <p>This is a test template with parameter (test)
6061 Template with thumb image (with link in description)
6064 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6066 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>
6071 Template:complextemplate
6073 {{{1}}} {{paramtest|
6074 param ={{{param}}}}}
6078 Template with complex arguments
6081 param ={{ templateasargtest |
6082 templ = simple }}|[[Template:complextemplate|link]]}}
6084 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6089 BUG 553: link with two variables in a piped link
6092 |[[{{{1}}}|{{{2}}}]]
6097 <td>[[{{{1}}}|{{{2}}}]]
6103 Magic variable as template parameter
6105 {{paramtest|param={{SITENAME}}}}
6107 <p>This is a test template with parameter MediaWiki
6114 [[{{{param}}}|link]]
6118 Template parameter as link source
6120 {{linktest|param=Main Page}}
6122 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6127 Template-generated attribute string (k='v')
6129 <span {{attr_str|id|v1}}>bar</span>
6131 <p><span id="v1">bar</span>
6138 including another template, {{paramtest|param={{{arg}}}}}
6142 Template passing argument to another template
6144 {{paramtest2|arg='hmm'}}
6146 <p>including another template, This is a test template with parameter 'hmm'
6157 Template as link source
6161 [[{{linktest2}}|Main Page]]
6163 [[{{linktest2}}]]Page
6165 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6166 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6167 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6185 Template infinite loop
6189 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6194 Template from main namespace
6213 BUG 529: Template with table, not included at beginning of line
6232 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6252 BUG 41: Template parameters shown as broken links
6261 Template with targets containing wikilinks
6265 {{[[{{echo|foo}}]]}}
6267 {{{{echo|[[foo}}]]}}
6269 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6270 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6278 ''None'' of '''this''' should be
6280 but rather passed unmodified
6284 # hmm, fix this or just deprecate msgnw and document its behavior?
6290 {{msgnw:MSGNW test}}
6292 <p>''None'' of '''this''' should be
6294 but rather passed unmodified
6302 {{int:youhavenewmessages|lots of money|not!}}
6304 <p>You have lots of money (not!).
6311 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6315 <includeonly> and <noinclude> being included
6326 <onlyinclude>Foo</onlyinclude>bar
6330 <onlyinclude> being included
6342 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6346 <onlyinclude> and <includeonly> being included
6355 <includeonly> and <noinclude> on a page
6357 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6364 Un-closed <noinclude>
6371 <onlyinclude> on a page
6373 <onlyinclude>Foo</onlyinclude>bar
6380 Un-closed <onlyinclude>
6387 Self-closed noinclude, includeonly, onlyinclude tags
6398 Unbalanced includeonly and noinclude tags
6402 |b</noinclude></noinclude>
6403 |c</noinclude></includeonly>
6404 |d</includeonly></includeonly>
6413 <td>c</includeonly>
6415 <td>d</includeonly></includeonly>
6421 Template:Includeonly section
6424 ==Includeonly section==
6430 Bug 6563: Edit link generation for section shown by <includeonly>
6432 {{includeonly section}}
6434 <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>
6435 <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>
6439 # Uses same input as the contents of [[Template:Includeonly section]]
6441 Bug 6563: Section extraction for section shown by <includeonly>
6446 ==Includeonly section==
6454 Bug 6563: Edit link generation for section suppressed by <includeonly>
6457 ==Includeonly section==
6461 <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>
6466 Bug 6563: Section extraction for section suppressed by <includeonly>
6471 ==Includeonly section==
6479 Un-closed <includeonly>
6486 ### <includeonly> and <noinclude> in attributes
6489 0. includeonly around the entire attribute
6491 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6493 <p><span id="v2">bar</span>
6498 1. includeonly in html attr key
6500 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6502 <p><span id="foo">bar</span>
6507 2. includeonly in html attr value
6509 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6510 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6512 <p><span id="v1">bar</span>
6513 <span id="v1">bar</span>
6518 3. includeonly in part of an attr value
6520 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6522 <p><span style="color:red;">bar</span>
6527 ### Testing parsing of templates where a template arg
6528 ### has the same name as the template itself.
6538 Templates: Template Name/Arg clash: 1. Use of positional param
6547 Templates: Template Name/Arg clash: 2. Use of named param
6556 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6565 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6569 Templates: 1. Simple use
6578 Templates: 2. Inside a block tag
6580 <div>{{echo|Foo}}</div>
6587 Templates: P-wrapping: 1a. Templates on consecutive lines
6598 Templates: P-wrapping: 1b. Templates on consecutive lines
6612 Templates: P-wrapping: 1c. Templates on consecutive lines
6615 {{echo|bar}} <div>baz</div>
6624 Templates: P-wrapping: 1d. Template preceded by comment-only line
6626 parsoid=wt2html,wt2wt
6632 <p typeof="mw:Transclusion">Bar
6637 Templates: Inline Text: 1. Multiple tmeplate uses
6639 {{echo|Foo}}bar{{echo|baz}}
6646 Templates: Inline Text: 2. Back-to-back template uses
6648 {{echo|Foo}}{{echo|bar}}
6655 Templates: Block Tags: 1. Multiple template uses
6657 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6659 <div>Foo</div><div>bar</div><div>baz</div>
6664 Templates: Block Tags: 2. Back-to-back template uses
6666 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6668 <div>Foo</div><div>bar</div>
6673 Templates: Links: 1. Simple example
6675 {{echo|[[Foo|bar]]}}
6677 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6682 Templates: Links: 2. Generation of link href
6684 [[{{echo|Foo}}|bar]]
6686 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6691 Templates: Links: 3. Generation of part of a link href
6693 [[Fo{{echo|o}}|bar]]
6697 [[Foo{{echo|bar}}baz]]
6699 [[Foo{{echo|bar}}|bar]]
6701 [[:Foo{{echo|bar}}]]
6703 [[:Foo{{echo|bar}}|bar]]
6705 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6706 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6707 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6708 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6709 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6710 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6715 Templates: Links: 4. Multiple templates generating link href
6717 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6719 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6724 Templates: Links: 5. Generation of link text
6726 [[Foo|{{echo|bar}}]]
6728 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6733 Templates: Links: 5. Nested templates (only outermost template should be marked)
6735 {{echo|[[{{echo|Foo}}|bar]]}}
6737 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6742 Templates: HTML Tag: 1. Generation of HTML attr. key
6744 <div {{echo|style}}="color:red;">foo</div>
6746 <div style="color:red;">foo</div>
6751 Templates: HTML Tag: 2. Generation of HTML attr. value
6753 <div style={{echo|'color:red;'}}>foo</div>
6755 <div style="color:red;">foo</div>
6760 Templates: HTML Tag: 3. Generation of HTML attr key and value
6762 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6764 <div style="color:red;">foo</div>
6769 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6771 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6773 <div title="This is a long title with just one piece templated">foo</div>
6778 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6780 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6782 <div title="This is a long title with just one piece templated">foo</div>
6787 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6789 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6791 <div title="This is a long title with just one piece templated">foo</div>
6796 Templates: HTML Tag: 7. Generation of partial attribute key string
6798 <div st{{echo|yle}}="color:red;">foo</div>
6800 <div style="color:red;">foo</div>
6805 Templates: HTML Tables: 1. Generating start of a HTML table
6807 {{echo|<table><tr><td>foo</td>}}</tr></table>
6809 <table><tr><td>foo</td></tr></table>
6814 Templates: HTML Tables: 2a. Generating middle of a HTML table
6816 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6818 <table><tr><td>foo</td></tr></table>
6823 Templates: HTML Tables: 2b. Generating middle of a HTML table
6825 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6827 <table><tr><td>foo</td></tr></table>
6832 Templates: HTML Tables: 3. Generating end of a HTML table
6834 <table><tr>{{echo|<td>foo</td></tr></table>}}
6836 <table><tr><td>foo</td></tr></table>
6841 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6843 {{echo|<table>}}<tr><td>foo</td></tr></table>
6845 <table><tr><td>foo</td></tr></table>
6850 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6852 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6854 <table><tr><td>foo</td></tr></table>
6859 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6861 <table><tr>{{echo|<td>}}foo</td></tr></table>
6863 <table><tr><td>foo</td></tr></table>
6868 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6870 <table><tr><td>foo{{echo|</td>}}</tr></table>
6872 <table><tr><td>foo</td></tr></table>
6877 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6879 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6881 <table><tr><td>foo</td></tr></table>
6886 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6888 <table><tr><td>foo</td></tr>{{echo|</table>}}
6890 <table><tr><td>foo</td></tr></table>
6895 Templates: HTML Tables: 5. Proper fostering of categories from inside
6897 parsoid=wt2html,wt2wt
6899 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6900 <!--Two categories (Bug 50330)-->
6901 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6903 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6904 <!--Two categories (Bug 50330)-->
6905 <link rel="mw:WikiLink/Category" href="./Category:Bar1"><link rel="mw:WikiLink/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
6909 Templates: Wiki Tables: 1a. Fostering of entire template content
6917 <tr><td></td></tr></table>
6922 Templates: Wiki Tables: 1b. Fostering of entire template content
6935 <tr><td></td></tr></table>
6940 Templates: Wiki Tables: 2. Fostering of partial template content
6950 <tr><td></td></tr></table>
6955 Templates: Wiki Tables: 3. td-content via multiple templates
6958 {{echo|{{pipe}}a}}{{echo|b}}
6969 Templates: Wiki Tables: 4. Templated tags, no content
6975 <tr><td></td></tr></table>
6980 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6994 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7008 Templates: Lists: Multi-line list-items via templates
7010 *{{echo|a {{nonexistent|
7012 *{{echo|b {{nonexistent|
7015 <ul><li>a <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
7016 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
7022 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7024 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7026 <p><i>ab</i>c<i>d</i>e
7031 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7032 (PHP parser generates misnested html)
7034 parsoid=wt2html,wt2wt
7036 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7038 <p><span typeof="mw:Transclusion"><i>a</i></span><i typeof="mw:Transclusion"><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
7042 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7043 (PHP parser generates misnested html)
7045 parsoid=wt2html,wt2wt
7047 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7049 <div typeof="mw:Transclusion"><i>a</i></div>
7050 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7051 <div typeof="mw:Transclusion">e</div>
7055 Templates: Ugly nesting: 4. Divs opened/closed across templates
7057 a<div>b{{echo|c</div>d}}e
7064 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7070 |{{echo|foo</table>}}
7074 <table typeof="mw:Transclusion">
7077 <td>foo</td></tr></tbody></table><span>bar</span>
7081 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7091 <td>1. {{echo|foo </table>}}</td>
7093 <td>2. {{echo|baz </table>}}</td>
7106 <table about="#mwt1" typeof="mw:Transclusion">
7111 <td >1. foo </td></tr></tbody></table></td>
7113 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7114 </span><span about="#mwt1">
7116 abc</span><span about="#mwt1">
7117 </span><span about="#mwt1">
7118 </span><span about="#mwt1">
7119 </span><span about="#mwt1">
7120 </span><span about="#mwt1">
7122 xyz</span><span about="#mwt1">
7123 </span><span about="#mwt1">
7128 Templates: Ugly templates: 3. newline-only template parameter
7137 # This looks like a bug: a single newline triggers p/br for some reason.
7139 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7150 Parser Functions: 1. Simple example
7159 Parser Functions: 2. Nested use (only outermost should be marked up)
7168 ### Pre-save transform tests
7171 pre-save transform: subst:
7177 This is a test template
7181 pre-save transform: normal template
7191 pre-save transform: nonexistent template
7195 {{thistemplatedoesnotexist}}
7197 {{thistemplatedoesnotexist}}
7202 pre-save transform: subst magic variables
7211 # This is bug 89, which I fixed. -- wtm
7213 pre-save transform: subst: templates with parameters
7217 {{subst:paramtest|param="something else"}}
7219 This is a test template with parameter "something else"
7225 <nowiki>'''not wiki'''</nowiki>
7229 pre-save transform: nowiki in subst (bug 1188)
7233 {{subst:nowikitest}}
7235 <nowiki>'''not wiki'''</nowiki>
7240 Template:commenttest
7242 This template has <!-- a comment --> in it.
7246 pre-save transform: comment in subst (bug 1936)
7250 {{subst:commenttest}}
7252 This template has <!-- a comment --> in it.
7256 pre-save transform: unclosed tag
7260 <nowiki>'''not wiki'''
7262 <nowiki>'''not wiki'''
7266 pre-save transform: mixed tag case
7270 <NOwiki>'''not wiki'''</noWIKI>
7272 <NOwiki>'''not wiki'''</noWIKI>
7276 pre-save transform: unclosed comment in <nowiki>
7280 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7282 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7285 # Leading @ in this template definition works around a limitation
7286 # in parsoid's parserTests which otherwise strips the <span> from the
7287 # result (confusing it for a template wrapper)
7291 @<span onmouseover="alert('crap')">Oh no</span>
7295 (confirming safety of fix for subst bug 1936)
7297 {{Template:dangerous}}
7299 <p>@<span>Oh no</span>
7304 pre-save transform: comment containing gallery (bug 5024)
7308 <!-- <gallery>data</gallery> -->
7310 <!-- <gallery>data</gallery> -->
7314 pre-save transform: comment containing extension
7318 <!-- <tag>data</tag> -->
7320 <!-- <tag>data</tag> -->
7324 pre-save transform: comment containing nowiki
7328 <!-- <nowiki>data</nowiki> -->
7330 <!-- <nowiki>data</nowiki> -->
7334 pre-save transform: <noinclude> in subst (bug 3298)
7344 pre-save transform: <onlyinclude> in subst (bug 3298)
7356 {{<includeonly>subst:</includeonly>Includes}}
7360 Template:SafeSubstTest
7362 {{<includeonly>safesubst:</includeonly>Includes}}
7366 bug 22297: safesubst: works during PST
7370 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7376 bug 22297: safesubst: works during normal parse
7385 subst: does not work during normal parse
7389 <p>{{subst:Includes}}
7394 pre-save transform: context links ("pipe trick")
7398 [[Article (context)|]]
7401 [[Bar:Article (context)|]]
7402 [[:Bar:Article (context)|]]
7404 [[|Article (context)]]
7408 [[Article (context)|Article]]
7409 [[Bar:Article|Article]]
7410 [[:Bar:Article|Article]]
7411 [[Bar:Article (context)|Article]]
7412 [[:Bar:Article (context)|Article]]
7414 [[Article (context)]]
7415 [[Bar:X (Y) Z|X (Y) Z]]
7416 [[:Bar:X (Y) Z|X (Y) Z]]
7420 pre-save transform: context links ("pipe trick") with interwiki prefix
7424 [[interwiki:Article|]]
7425 [[:interwiki:Article|]]
7426 [[interwiki:Bar:Article|]]
7427 [[:interwiki:Bar:Article|]]
7429 [[interwiki:Article|Article]]
7430 [[:interwiki:Article|Article]]
7431 [[interwiki:Bar:Article|Bar:Article]]
7432 [[:interwiki:Bar:Article|Bar:Article]]
7436 pre-save transform: context links ("pipe trick") with parens in title
7438 pst title=[[Somearticle (context)]]
7442 [[Article (context)|Article]]
7446 pre-save transform: context links ("pipe trick") with comma in title
7448 pst title=[[Someplace, Somewhere]]
7451 [[Otherplace, Elsewhere|]]
7452 [[Otherplace, Elsewhere, Anywhere|]]
7454 [[Otherplace, Somewhere|Otherplace]]
7455 [[Otherplace, Elsewhere|Otherplace]]
7456 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7460 pre-save transform: context links ("pipe trick") with parens and comma
7462 pst title=[[Someplace (IGNORED), Somewhere]]
7465 [[Otherplace (place), Elsewhere|]]
7467 [[Otherplace, Somewhere|Otherplace]]
7468 [[Otherplace (place), Elsewhere|Otherplace]]
7472 pre-save transform: context links ("pipe trick") with comma and parens
7474 pst title=[[Who, me? (context)]]
7477 [[Me, Myself, and I (1937 song)|]]
7479 [[Yes, you. (context)|Yes, you.]]
7480 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7484 pre-save transform: context links ("pipe trick") with namespace
7486 pst title=[[Ns:Somearticle]]
7490 [[Ns:Article|Article]]
7494 pre-save transform: context links ("pipe trick") with namespace and parens
7496 pst title=[[Ns:Somearticle (context)]]
7500 [[Ns:Article (context)|Article]]
7504 pre-save transform: context links ("pipe trick") with namespace and comma
7506 pst title=[[Ns:Somearticle, Context, Whatever]]
7510 [[Ns:Article, Context, Whatever|Article]]
7514 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7516 pst title=[[Ns:Somearticle, Context (context)]]
7520 [[Ns:Article (context)|Article]]
7524 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7526 pst title=[[Ns:Somearticle (IGNORED), Context]]
7530 [[Ns:Article, Context|Article]]
7534 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7538 [[Article(context)|]]
7539 [[Bar:Article(context)|]]
7540 [[:Bar:Article(context)|]]
7541 [[|Article(context)]]
7545 [[Article(context)|Article]]
7546 [[Bar:Article(context)|Article]]
7547 [[:Bar:Article(context)|Article]]
7548 [[Article(context)]]
7550 [[:Bar:X(Y)Z|X(Y)Z]]
7554 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7558 [[Article (context)|]]
7559 [[Bar:Article (context)|]]
7560 [[:Bar:Article (context)|]]
7561 [[|Article (context)]]
7565 [[Article (context)|Article]]
7566 [[Bar:Article (context)|Article]]
7567 [[:Bar:Article (context)|Article]]
7568 [[Article (context)]]
7569 [[Bar:X (Y) Z|X (Y) Z]]
7570 [[:Bar:X (Y) Z|X (Y) Z]]
7574 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7578 [[Article(context)|]]
7579 [[Bar:Article(context)|]]
7580 [[:Bar:Article(context)|]]
7581 [[|Article(context)]]
7585 [[Article(context)|Article]]
7586 [[Bar:Article(context)|Article]]
7587 [[:Bar:Article(context)|Article]]
7588 [[Article(context)]]
7590 [[:Bar:X(Y)Z|X(Y)Z]]
7594 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7598 [[Article (context), context|]]
7599 [[Article (context),context|]]
7600 [[Bar:Article (context), context|]]
7601 [[Bar:Article (context),context|]]
7602 [[:Bar:Article (context), context|]]
7603 [[:Bar:Article (context),context|]]
7605 [[Article (context), context|Article]]
7606 [[Article (context),context|Article]]
7607 [[Bar:Article (context), context|Article]]
7608 [[Bar:Article (context),context|Article]]
7609 [[:Bar:Article (context), context|Article]]
7610 [[:Bar:Article (context),context|Article]]
7614 pre-save transform: trim trailing empty lines
7618 Empty lines are trimmed
7624 Empty lines are trimmed
7628 pre-save transform: Signature expansion
7633 * <noinclude>~~~</noinclude>
7634 * <includeonly>~~~</includeonly>
7635 * <onlyinclude>~~~</onlyinclude>
7637 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7638 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7639 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7640 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7645 pre-save transform: Signature expansion in nowiki tags (bug 93)
7651 <nowiki>~~~~</nowiki>
7653 <includeonly><nowiki>~~~~</nowiki></includeonly>
7655 <noinclude><nowiki>~~~~</nowiki></noinclude>
7657 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7659 {{subst:Foo}} shall be converted to FOO
7661 As well as inside noinclude/onlyinclude
7662 <noinclude>{{subst:Foo}}</noinclude>
7663 <onlyinclude>{{subst:Foo}}</onlyinclude>
7665 But not inside includeonly
7666 <includeonly>{{subst:Foo}}</includeonly>
7670 <nowiki>~~~~</nowiki>
7672 <includeonly><nowiki>~~~~</nowiki></includeonly>
7674 <noinclude><nowiki>~~~~</nowiki></noinclude>
7676 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7678 FOO shall be converted to FOO
7680 As well as inside noinclude/onlyinclude
7681 <noinclude>FOO</noinclude>
7682 <onlyinclude>FOO</onlyinclude>
7684 But not inside includeonly
7685 <includeonly>{{subst:Foo}}</includeonly>
7689 ### Message transform tests
7692 message transform: magic variables
7702 message transform: should not transform wiki markup
7712 message transform: <noinclude> in transcluded template (bug 4926)
7722 message transform: <onlyinclude> in transcluded template (bug 4926)
7732 {{#special:}} page name, known
7736 {{#special:Recentchanges}}
7738 Special:RecentChanges
7742 {{#special:}} page name with subpage, known
7746 {{#special:Recentchanges/param}}
7748 Special:RecentChanges/param
7752 {{#special:}} page name, unknown
7756 {{#special:foobar nonexistent}}
7758 Special:Foobar nonexistent
7762 {{#speciale:}} page name, known
7766 {{#speciale:Recentchanges}}
7768 Special:RecentChanges
7772 {{#speciale:}} page name with subpage, known
7776 {{#speciale:Recentchanges/param}}
7778 Special:RecentChanges/param
7782 {{#speciale:}} page name, unknown
7786 {{#speciale:foobar nonexistent}}
7788 Special:Foobar_nonexistent
7797 [[Image:foobar.jpg]]
7799 <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>
7806 [[Image:foobar.jpg|right]]
7808 <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>
7813 Simple image (using File: namespace, now canonical)
7817 <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>
7824 [[Image:foobar.jpg|right|Caption text]]
7826 <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>
7831 Image with empty attribute
7833 [[Image:foobar.jpg|right||Caption text]]
7835 <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>
7840 Image with link tails
7842 123[[Image:foobar.jpg]]456
7843 123[[Image:foobar.jpg|right]]456
7844 123[[Image:foobar.jpg|thumb]]456
7846 <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
7848 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
7849 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
7854 Image with multiple captions -- only last one is accepted
7856 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7858 <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>
7863 Image with width attribute at different positions
7865 [[Image:foobar.jpg|200px|right|Caption]]
7866 [[Image:foobar.jpg|right|200px|Caption]]
7867 [[Image:foobar.jpg|right|Caption|200px]]
7869 <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>
7870 <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>
7871 <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>
7876 Image with link parameter, wiki target
7878 [[Image:foobar.jpg|link=Target page]]
7880 <p><a href="/wiki/Target_page" title="Target page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7885 Image with link parameter, URL target
7887 [[Image:foobar.jpg|link=http://example.com/]]
7889 <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>
7894 Image with link parameter, wgExternalLinkTarget
7896 [[Image:foobar.jpg|link=http://example.com/]]
7898 wgExternalLinkTarget='foobar'
7900 <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>
7905 Image with link parameter, wgNoFollowLinks set to false
7907 [[Image:foobar.jpg|link=http://example.com/]]
7909 wgNoFollowLinks=false
7911 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7916 Image with link parameter, wgNoFollowDomainExceptions
7918 [[Image:foobar.jpg|link=http://example.com/]]
7920 wgNoFollowDomainExceptions='example.com'
7922 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7927 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7929 [[Image:foobar.jpg|link=http://example.com/|Title]]
7931 wgExternalLinkTarget='foobar'
7933 <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>
7938 Image with empty link parameter
7940 [[Image:foobar.jpg|link=]]
7942 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7947 Image with link parameter (wiki target) and unnamed parameter
7949 [[Image:foobar.jpg|link=Target page|Title]]
7951 <p><a href="/wiki/Target_page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7956 Image with link parameter (URL target) and unnamed parameter
7958 [[Image:foobar.jpg|link=http://example.com/|Title]]
7960 <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>
7965 Thumbnail image with link parameter
7969 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7971 <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>
7976 Manually-specified thumbnail image
7980 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7982 <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>
7987 Manually-specified thumbnail image with explicit link to wiki page
7991 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7993 <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>
7998 Manually-specified thumbnail image with explicit link to url
8002 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8004 <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>
8009 Manually-specified thumbnail image with explicit no link
8013 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8015 <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>
8020 Manually-specified thumbnail image with explicit link and alt text
8024 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8026 <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>
8031 Image with frame and link
8033 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8035 <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>
8040 Image with frame and link and explicit alt
8042 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8044 <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>
8049 Image with wiki markup in implicit alt
8051 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8053 <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>
8058 Image with wiki markup in explicit alt
8060 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8062 <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>
8067 Link to image page- image page normally doesn't exists, hence edit link
8068 Add test with existing image page
8069 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8073 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8078 bug 18784 Link to non-existent image page with caption should use caption as link text
8080 [[:Image:test|caption]]
8082 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8087 Frameless image caption with a free URL
8089 [[Image:foobar.jpg|http://example.com]]
8091 <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>
8096 Thumbnail image caption with a free URL
8098 [[Image:foobar.jpg|thumb|http://example.com]]
8100 <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>
8105 Thumbnail image caption with a free URL and explicit alt
8107 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8109 <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>
8114 SVG thumbnails with no language set
8117 [[File:Foobar.svg|thumb|width=200]]
8119 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
8124 SVG thumbnails with language de
8127 [[File:Foobar.svg|thumb|width=200|lang=de]]
8129 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=File:Foobar.svg&lang=de" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/langde-180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/langde-270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/langde-360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
8134 SVG thumbnails with invalid language code
8137 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8139 <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>
8144 BUG 1887: A ISBN with a thumbnail
8146 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8148 <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>
8153 BUG 1887: A RFC with a thumbnail
8155 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8157 <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>
8162 BUG 1887: A mailto link with a thumbnail
8164 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8166 <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>
8170 # Pending resolution to bug 368
8172 BUG 648: Frameless image caption with a link
8174 [[Image:foobar.jpg|text with a [[link]] in it]]
8176 <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>
8181 BUG 648: Frameless image caption with a link (suffix)
8183 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8185 <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>
8190 BUG 648: Frameless image caption with an interwiki link
8192 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8194 <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>
8199 BUG 648: Frameless image caption with a piped interwiki link
8201 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8203 <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>
8208 Escape HTML special chars in image alt text
8210 [[Image:foobar.jpg|& < > "]]
8212 <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>
8217 BUG 499: Alt text should have Ӓ, not &1234;
8219 [[Image:foobar.jpg|♀]]
8221 <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>
8226 Broken image caption with link
8228 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8230 <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.
8235 Image caption containing another image
8237 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8239 <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>
8244 Image caption containing a newline
8246 [[Image:Foobar.jpg|This
8249 <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>
8254 Parsoid: Image caption containing leading space
8255 (The leading space should not trigger nowiki escaping in wt2wt mode)
8257 [[Image:Foobar.jpg|thumb| bar]]
8259 <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>
8264 Bug 3090: External links other than http: in image captions
8266 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8268 <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>
8275 [[Image:foobar.jpg|a|class=b]]
8277 <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>
8282 Localized image handling (1).
8286 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8288 <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>
8293 Localized image handling (2).
8297 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8299 <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>
8304 "border", "frameless" and "class" attributes on an image.
8306 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8308 <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>
8315 #REDIRECT [[File:Barfoo.jpg]]
8321 [[Image:Barfoo.jpg]]
8323 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8328 Missing image with uploads disabled
8332 [[Image:Foobaz.jpg]]
8334 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8338 # Parsoid-specific testing for images
8339 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8340 # Currently imperfect due to a flaw in the Parsoid testrunner
8344 Parsoid-specific image handling - simple image
8348 [[Image:Foobar.jpg]]
8351 <span class="mw-default-size" typeof="mw:Image">
8352 <a href="File:Foobar.jpg">
8353 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8360 Parsoid-specific image handling - simple image without link
8364 [[Image:Foobar.jpg|link=]]
8367 <span class="mw-default-size" typeof="mw:Image">
8369 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8376 Parsoid-specific image handling - simple image with specific link
8380 [[Image:Foobar.jpg|link=Main Page]]
8383 <span class="mw-default-size" typeof="mw:Image">
8384 <a href="Main_Page">
8385 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8392 Parsoid-specific image handling - simple image with size and middle alignment
8396 [[Image:Foobar.jpg|50px|middle]]
8399 <span class="mw-valign-middle" typeof="mw:Image">
8400 <a href="File:Foobar.jpg">
8401 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8408 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8412 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8415 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8416 <a href="File:Foobar.jpg">
8417 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8424 Parsoid-specific image handling - simple image with border and size spec
8428 [[Image:Foobar.jpg|50px|border|caption]]
8431 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8432 <a href="File:Foobar.jpg">
8433 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8440 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8444 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8446 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8447 <a href="File:Foobar.jpg">
8448 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8450 <figcaption>caption content</figcaption>
8455 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8459 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8461 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8462 <a href="File:Foobar.jpg">
8463 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8465 <figcaption>caption</figcaption>
8470 Parsoid-specific image handling - framed image with specific size and caption
8474 [[Image:Foobar.jpg|500x50px|frame|caption]]
8476 <figure typeof="mw:Image/Frame">
8477 <a href="File:Foobar.jpg">
8478 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8480 <figcaption>caption</figcaption>
8485 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8489 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8491 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8492 <a href="File:Foobar.jpg">
8493 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8495 <figcaption>caption</figcaption>
8500 Parsoid-specific image handling - frameless image with specific size, border, and caption
8504 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8507 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8508 <a href="File:Foobar.jpg">
8509 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8515 #Parsoid-specific image handling - simple image with a formatted caption
8519 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8522 #<span typeof="mw:Image">
8523 #<a class="mw-default-size" href="Image:Foobar.jpg">
8524 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8535 Subpage test/subpage
8543 subpage title=[[Subpage test]]
8547 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8552 Subpage noslash link
8554 subpage title=[[Subpage test]]
8558 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8562 # TODO: make this PHP-parser compatible!
8564 Relative subpage noslash link
8566 parsoid=wt2wt,wt2html,html2html
8567 subpage title=[[Subpage test/1/2/3/4]]
8573 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8574 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8577 # TODO: make this PHP-parser compatible!
8579 Parsoid: dot-slash prefixed wikilinks
8581 parsoid=wt2wt,wt2html,html2html
8589 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8590 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8591 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8599 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8604 BUG 561: {{/Subpage}}
8606 subpage title=[[Page]]
8610 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8618 Category:MediaWiki User's Guide
8626 [[:Category:MediaWiki User's Guide]]
8628 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8637 [[Category:MediaWiki User's Guide]]
8639 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8643 PAGESINCATEGORY invalid title fatal (r33546 fix)
8645 {{PAGESINCATEGORY:<bogus>}}
8652 Category with different sort key
8656 [[Category:MediaWiki User's Guide|Foo]]
8658 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8662 Category with identical sort key
8666 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8668 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8672 Category with empty sort key
8677 [[Category:MediaWiki User's Guide|]]
8679 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8683 Category with empty sort key and parentheses
8688 [[Category:Foo (bar)|]]
8690 [[Category:Foo (bar)|Foo]]
8694 Category with link tail
8699 123[[Category:Foo]]456
8701 123[[Category:Foo]]456
8705 Category with template
8710 [[Category:{{echo|Foo}}]]
8712 [[Category:{{echo|Foo}}]]
8716 Category with template in sort key
8721 [[Category:Foo|{{echo|Bar}}]]
8723 [[Category:Foo|{{echo|Bar}}]]
8727 Category with template in sort key and title
8732 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8734 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8738 Category / paragraph interactions
8740 Foo [[Category:Baz]] Bar
8742 Foo [[Category:Baz]]
8750 [[Category:Baz]] Bar
8763 {{echo|[[Category:Baz]]}}
8778 Parsoid: Serialize link to category page with colon escape
8784 [[:Category:Foo|Bar]]
8787 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8788 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8793 Parsoid: Serialize link to file page with colon escape
8799 [[:File:Foo.png|Bar]]
8802 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8803 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8808 Parsoid: Serialize a genuine category link without colon escape
8813 [[Category:Foo|Bar]]
8815 <link rel="mw:WikiLink/Category" href="Category:Foo">
8816 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8820 ### Inter-language links
8823 Inter-language links
8829 [[zh:食品]]
8831 es:Alimento fr:Nourriture zh:食品
8835 Duplicate interlanguage links (bug 24502)
8851 Basic section headings
8858 ===Smaller headline===
8861 <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>
8864 <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>
8867 <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>
8873 Section headings with TOC
8876 === Subheadline 1 ===
8877 ===== Skipping a level =====
8878 ====== Skipping a level ======
8882 ===Another headline===
8884 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8886 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8888 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8890 <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>
8892 <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>
8899 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8901 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8906 <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>
8907 <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>
8908 <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>
8909 <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>
8910 <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>
8913 <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>
8917 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8919 Handling of sections up to level 6 and beyond
8922 == Level 2 Heading==
8923 === Level 3 Heading===
8924 ==== Level 4 Heading====
8925 ===== Level 5 Heading=====
8926 ====== Level 6 Heading======
8927 ======= Level 7 Heading=======
8928 ======== Level 8 Heading========
8929 ========= Level 9 Heading=========
8930 ========== Level 10 Heading==========
8932 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8934 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8936 <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>
8938 <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>
8940 <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>
8942 <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>
8944 <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>
8945 <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>
8946 <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>
8947 <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>
8948 <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>
8961 <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>
8962 <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>
8963 <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>
8964 <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>
8965 <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>
8966 <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>
8967 <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>
8968 <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>
8969 <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>
8970 <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>
8975 TOC regression (bug 9764)
8979 ==== title 1.1.1 ====
8984 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8986 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8988 <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>
8990 <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>
8993 <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>
8996 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8998 <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>
9003 <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>
9004 <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>
9005 <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>
9006 <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>
9007 <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>
9008 <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>
9013 TOC with wgMaxTocLevel=3 (bug 6204)
9019 ==== title 1.1.1 ====
9024 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9026 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9028 <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>
9029 <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>
9032 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9034 <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>
9039 <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>
9040 <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>
9041 <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>
9042 <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>
9043 <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>
9044 <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>
9049 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9055 ====Section 1.1.1====
9056 ====Section 1.1.1.1====
9059 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9061 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9063 <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>
9066 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9069 <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>
9070 <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>
9071 <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>
9072 <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>
9073 <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>
9079 Resolving duplicate section names
9084 <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>
9085 <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>
9090 Resolving duplicate section names with differing case (bug 10721)
9095 <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>
9096 <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>
9108 Template with sections, __NOTOC__
9115 <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>
9116 <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>
9117 <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>
9118 <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>
9123 __NOEDITSECTION__ keyword
9129 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9130 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9135 Link inside a section heading
9137 ==Section with a [[Main Page|link]] in it==
9139 <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>
9144 TOC regression (bug 12077)
9151 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9153 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9155 <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>
9158 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9161 <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>
9162 <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>
9163 <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>
9168 BUG 1219 URL next to image (good)
9170 http://example.com [[Image:foobar.jpg]]
9172 <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>
9177 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9180 The line above must have a trailing space!
9183 But just in case it doesn't...
9185 <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>
9186 <p>The line above must have a trailing space!
9188 <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>
9189 <p>But just in case it doesn't...
9194 Header with special characters (bug 25462)
9196 The tooltips shall not show entities to the user (ie. be double escaped)
9213 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9215 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9217 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9218 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9219 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9220 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9221 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9224 <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>
9227 <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>
9230 <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>
9233 <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>
9236 <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>
9242 Headers with excess '=' characters
9243 (Are similar tests necessary beyond the 1st level?)
9247 =''italic'' heading==
9248 ==''italic'' heading=
9250 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9252 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9253 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9254 <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>
9255 <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>
9258 <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>
9259 <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>
9260 <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>
9261 <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>
9266 HTML headers vs TOC (bug 23393)
9267 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9279 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9281 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9283 <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>
9284 <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>
9287 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9289 <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>
9290 <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>
9295 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9296 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9297 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9298 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9299 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9300 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9305 BUG 1219 URL next to image (broken)
9307 http://example.com[[Image:foobar.jpg]]
9309 <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>
9314 Bug 1186 news: in the middle of text
9316 http://en.wikinews.org/wiki/Wikinews:Workplace
9318 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9324 Namespaced link must have a title
9333 Namespaced link must have a title (bad fragment version)
9335 [[Project:#fragment]]
9337 <p>[[Project:#fragment]]
9343 ### HTML tags and HTML attributes
9347 div with no attributes
9349 <div>HTML rocks</div>
9351 <div>HTML rocks</div>
9356 div with double-quoted attribute
9358 <div id="rock">HTML rocks</div>
9360 <div id="rock">HTML rocks</div>
9365 div with single-quoted attribute
9367 <div id='rock'>HTML rocks</div>
9369 <div id="rock">HTML rocks</div>
9374 div with unquoted attribute
9376 <div id=rock>HTML rocks</div>
9378 <div id="rock">HTML rocks</div>
9383 div with illegal double attributes
9385 <div id="a" id="b">HTML rocks</div>
9387 <div id="b">HTML rocks</div>
9391 # FIXME: produce empty string instead of "class" in the PHP parser, following
9394 div with empty attribute value, space before equals
9398 <div class =>HTML rocks</div>
9400 <div class="">HTML rocks</div>
9404 # The PHP parser escapes the opening brace to { for some reason, so
9405 # disabled this test for it.
9407 div with braces in attribute value
9411 <div title="{}">Foo</div>
9413 <div title="{}">Foo</div>
9416 # This it very inconsistent in the PHP parser: it returns
9417 # class="class" if there is a space between the name and the equal sign (see
9418 # 'div with empty attribute value, space before equals'), but strips the
9419 # attribute completely if the space is missing. We hope that not much content
9420 # depends on this, so are implementing the behavior below in Parsoid for
9421 # consistencies' sake. Disabled for the PHP parser.
9422 # FIXME: fix this behavior in the PHP parser?
9424 div with empty attribute value, no space before equals
9428 <div class=>HTML rocks</div>
9430 <div class="">HTML rocks</div>
9435 HTML multiple attributes correction
9437 <p class="error" class="awesome">Awesome!</p>
9439 <p class="awesome">Awesome!</p>
9444 Table multiple attributes correction
9447 !+ class="error" class="awesome"| status
9452 <th class="awesome"> status
9460 <DIV ID="x">HTML ROCKS</DIV>
9462 <div id="x">HTML ROCKS</div>
9467 Non-ASCII pseudo-tags are rendered as text
9476 Pseudo-tag with URL 'name' renders as url link
9478 <http://example.com/>
9480 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9485 text with amp in the middle of nowhere
9489 <p>Remember AT&T?
9494 text with character entity: eacute
9496 I always thought é was a cute letter.
9498 <p>I always thought é was a cute letter.
9503 text with entity-escaped character entity-like string: eacute
9505 I always thought &eacute; was a cute letter.
9507 <p>I always thought &eacute; was a cute letter.
9512 text with undefined character entity: xacute
9514 I always thought &xacute; was a cute letter.
9516 <p>I always thought &xacute; was a cute letter.
9522 ### Nesting tests (see bug 41545, 50604, 51081)
9525 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
9526 # Note that html2wt is considerably more difficult if we use <b> in
9527 # the test case, instead of <big>
9529 Ensure that HTML adoption agency algorithm is properly implemented.
9531 <big>X<big>Y</big>Z</big>
9533 <p><big>X<big>Y</big>Z</big>
9537 # This was bug 41545 in the PHP parser.
9541 <kbd>X<kbd>Y</kbd>Z</kbd>
9543 <p><kbd>X<kbd>Y</kbd>Z</kbd>
9547 # The following cases were bug 51081 in the PHP parser.
9548 # Note that there are some other nestable tags (b, i, etc) which are
9549 # not covered; see bug 51081 for discussion.
9553 <em>X<em>Y</em>Z</em>
9555 <p><em>X<em>Y</em>Z</em>
9562 <strong>X<strong>Y</strong>Z</strong>
9564 <p><strong>X<strong>Y</strong>Z</strong>
9573 <p><q>X<q>Y</q>Z</q>
9580 <ruby>X<ruby>Y</ruby>Z</ruby>
9582 <p><ruby>X<ruby>Y</ruby>Z</ruby>
9589 <bdo>X<bdo>Y</bdo>Z</bdo>
9591 <p><bdo>X<bdo>Y</bdo>Z</bdo>
9603 [[Media:Foobar.jpg]]
9605 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9610 Media link with text
9612 [[Media:Foobar.jpg|A neat file to look at]]
9614 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9618 # FIXME: this is still bad HTML tag nesting
9620 Media link with nasty text
9621 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9623 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9625 <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>
9630 Media link to nonexistent file (bug 1702)
9632 [[Media:No such.jpg]]
9634 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9639 Image link to nonexistent file (bug 1850 - good)
9641 [[Image:No such.jpg]]
9643 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9648 :Image link to nonexistent file (bug 1850 - bad)
9650 [[:Image:No such.jpg]]
9652 <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>
9659 Character reference normalization in link text (bug 1938)
9661 [[Main Page|this&that]]
9663 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9670 Test for unicode normalization
9672 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9676 (bug 19451) Links should refer to the normalized form.
9684 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9685 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9686 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9687 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9688 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9693 Empty attribute crash test (bug 2067)
9695 <font color="">foo</font>
9697 <p><font color="">foo</font>
9702 Empty attribute crash test single-quotes (bug 2067)
9704 <font color=''>foo</font>
9706 <p><font color="">foo</font>
9711 Attribute test: equals, then nothing
9713 <font color=>foo</font>
9720 Attribute test: unquoted value
9722 <font color=x>foo</font>
9724 <p><font color="x">foo</font>
9729 Attribute test: unquoted but illegal value (hash)
9731 <font color=#x>foo</font>
9733 <p><font color="#x">foo</font>
9738 Attribute test: no value
9740 <font color>foo</font>
9742 <p><font color="color">foo</font>
9747 Bug 2095: link with three closing brackets
9751 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9756 Bug 2095: link with pipe and three closing brackets
9760 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9765 Bug 2095: link with pipe and three closing brackets, version 2
9767 [[Main Page|[http://example.com/]]]
9769 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9779 Template:Dangerous attribute
9781 " onmouseover="alert(document.cookie)
9785 Template:Dangerous style attribute
9787 border-size: expression(alert(document.cookie))
9793 <div style="float: right; {{{1}}}">Magic div</div>
9797 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9799 <div title="{{test}}"></div>
9801 <div title="This is a test template"></div>
9806 Bug 2304: HTML attribute safety (dangerous template; 2309)
9808 <div title="{{dangerous attribute}}"></div>
9810 <div title=""></div>
9815 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9817 <div style="{{dangerous style attribute}}"></div>
9819 <div style="/* insecure input */"></div>
9824 Bug 2304: HTML attribute safety (safe parameter; 2309)
9826 {{div style|width: 200px}}
9828 <div style="float: right; width: 200px">Magic div</div>
9833 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9835 {{div style|width: expression(alert(document.cookie))}}
9837 <div style="/* insecure input */">Magic div</div>
9842 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9844 {{div style|"><script>alert(document.cookie)</script>}}
9846 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9851 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9853 {{div style|" ><script>alert(document.cookie)</script>}}
9855 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9860 Bug 2304: HTML attribute safety (link)
9862 <div title="[[Main Page]]"></div>
9864 <div title="[[Main Page]]"></div>
9869 Bug 2304: HTML attribute safety (italics)
9871 <div title="''foobar''"></div>
9873 <div title="''foobar''"></div>
9878 Bug 2304: HTML attribute safety (bold)
9880 <div title="'''foobar'''"></div>
9882 <div title="'''foobar'''"></div>
9888 Bug 2304: HTML attribute safety (ISBN)
9890 <div title="ISBN 1234567890"></div>
9892 <div title="ISBN 1234567890"></div>
9897 Bug 2304: HTML attribute safety (RFC)
9899 <div title="RFC 1234"></div>
9901 <div title="RFC 1234"></div>
9906 Bug 2304: HTML attribute safety (PMID)
9908 <div title="PMID 1234567890"></div>
9910 <div title="PMID 1234567890"></div>
9915 Bug 2304: HTML attribute safety (web link)
9917 <div title="http://example.com/"></div>
9919 <div title="http://example.com/"></div>
9924 Bug 2304: HTML attribute safety (named web link)
9926 <div title="[http://example.com/ link]"></div>
9928 <div title="[http://example.com/ link]"></div>
9933 Bug 3244: HTML attribute safety (extension; safe)
9935 <div style="<nowiki>background:blue</nowiki>"></div>
9937 <div style="background:blue"></div>
9942 Bug 3244: HTML attribute safety (extension; unsafe)
9944 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9946 <div style="/* insecure input */"></div>
9950 # More MSIE fun discovered by Tom Gilder
9953 MSIE CSS safety test: spurious slash
9955 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9957 <div style="/* insecure input */">evil</div>
9962 MSIE CSS safety test: hex code
9964 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9966 <div style="/* insecure input */">evil</div>
9971 MSIE CSS safety test: comment in url
9973 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9975 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9980 MSIE CSS safety test: comment in expression
9982 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9984 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9990 Table attribute legitimate extension
9993 !+ style="<nowiki>color:blue</nowiki>"| status
9998 <th style="color:blue"> status
10004 Table attribute safety
10007 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10012 <th style="/* insecure input */"> status
10018 CSS line continuation 1
10020 <div style="background-image: u\ rl(test.jpg);"></div>
10022 <div style="/* insecure input */"></div>
10027 CSS line continuation 2
10029 <div style="background-image: u\ rl(test.jpg); "></div>
10031 <div style="/* insecure input */"></div>
10042 Expansion of multi-line templates in attribute values (bug 6255)
10044 <div style="background: {{identity|#00FF00}}">-</div>
10046 <div style="background: #00FF00">-</div>
10052 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10054 <div style="background:
10057 <div style="background: #00FF00">-</div>
10062 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10064 <div style="background: #00FF00">-</div>
10066 <div style="background: #00FF00">-</div>
10071 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
10074 Parser hook: empty input
10087 Parser hook: empty input using terminated empty elements
10100 Parser hook: empty input using terminated empty elements (space before)
10113 Parser hook: basic input
10127 Parser hook: case insensitive
10141 Parser hook: case insensitive, redux
10154 Parser hook: nested tags
10158 <tag><tag></tag></tag>
10169 Parser hook: basic arguments
10171 <tag width=200 height = "100" depth = '50' square></tag>
10179 'square' => 'square',
10186 Parser hook: argument containing a forward slash (bug 5344)
10188 <tag filename='/tmp/bla'></tag>
10193 'filename' => '/tmp/bla',
10200 Parser hook: empty input using terminated empty elements (bug 2374)
10213 # </tag> should be output literally since there is no matching tag that begins it
10215 Parser hook: basic arguments using terminated empty elements (bug 2374)
10217 <tag width=200 height = "100" depth = '50' square/>
10227 'square' => 'square',
10236 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10240 Parser hook: static parser hook not inside a comment
10242 <statictag>hello, world</statictag>
10243 <statictag action=flush/>
10251 Parser hook: static parser hook inside a comment
10253 <!-- <statictag>hello, world</statictag> -->
10254 <statictag action=flush/>
10260 # Nested template calls; this case was broken by Parser.php rev 1.506,
10264 Template:One-parameter
10266 (My parameter is: {{{1}}})
10270 Template:Map-one-parameter
10272 {{{{{1}}}|{{{2}}}}}
10276 Nested template calls
10278 {{Map-one-parameter|One-parameter|param}}
10280 <p>(My parameter is: param)
10289 Sanitizer: Closing of open tags
10291 <s></s><table></table>
10293 <s></s><table></table>
10298 Sanitizer: Closing of open but not closed tags
10307 Sanitizer: Closing of closed but not open tags
10316 Sanitizer: Closing of closed but not open table tags
10318 Table not started</td></tr></table>
10320 <p>Table not started</td></tr></table>
10325 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10327 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10329 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10334 Sanitizer: Validating the contents of the id attribute (bug 4515)
10340 Something, but definitely not <br id="9" />...
10344 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10348 <br id="foo" /><br id="foo" />
10350 Something need to be done. foo-2 ?
10354 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10357 <meta itemprop="hello" content="world">
10358 <meta http-equiv="refresh" content="5">
10359 <meta itemprop="hello" http-equiv="refresh" content="5">
10360 <link itemprop="hello" href="{{SERVER}}">
10361 <link rel="stylesheet" href="{{SERVER}}">
10362 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10365 <div itemscope="itemscope">
10366 <p> <meta itemprop="hello" content="world" />
10367 <meta http-equiv="refresh" content="5">
10368 <meta itemprop="hello" content="5" />
10370 <link itemprop="hello" href="http://example.org" />
10371 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10372 <link itemprop="hello" href="http://example.org" />
10378 Language converter: output gets cut off unexpectedly (bug 5757)
10382 this bit is safe: }-
10384 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10386 then we get cut off here: }-
10388 all additional text is vanished
10390 <p>this bit is safe: }-
10391 </p><p>but if we add a conversion instance: xxx
10392 </p><p>then we get cut off here: }-
10393 </p><p>all additional text is vanished
10398 Self closed html pairs (bug 5487)
10401 <center><font id="bug" />Centered text</center>
10402 <div><font id="bug2" />In div text</div>
10404 <center><font id="bug" />Centered text</center>
10405 <div><font id="bug2" />In div text</div>
10414 Punctuation: nbsp before exclamation
10418 <p>C'est grave !
10423 Punctuation: CSS !important (bug 11874)
10425 <div style="width:50% !important">important</div>
10427 <div style="width:50% !important">important</div>
10432 Punctuation: CSS ! important (bug 11874; with space after)
10434 <div style="width:50% ! important">important</div>
10436 <div style="width:50% ! important">important</div>
10442 HTML bullet list, closed tags (bug 5497)
10457 HTML bullet list, unclosed tags (bug 5497)
10474 HTML ordered list, closed tags (bug 5497)
10489 HTML ordered list, unclosed tags (bug 5497)
10506 HTML nested bullet list, closed tags (bug 5497)
10531 HTML nested bullet list, open tags (bug 5497)
10556 HTML nested ordered list, closed tags (bug 5497)
10581 HTML nested ordered list, open tags (bug 5497)
10606 HTML ordered list item with parameters oddity
10608 <ol><li id="fragment">One</li></ol>
10610 <ol><li id="fragment">One</li></ol>
10615 bug 5918: autonumbering
10617 [http://first/] [http://second] [ftp://ftp]
10621 [mailto:enclosed@mail.tld With target]
10623 [mailto:enclosed@mail.tld]
10625 mailto:inline@mail.tld
10627 <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>
10628 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10629 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10630 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10631 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10637 # Security and HTML correctness
10638 # From Nick Jenkins' fuzz testing
10642 Fuzz testing: Parser13
10657 Fuzz testing: Parser14
10662 <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>
10663 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10665 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10672 Fuzz testing: Parser14-table
10677 <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>
10678 <table style="__TOC__">
10684 # Known to produce bogus xml (extra </td>)
10686 Fuzz testing: Parser16
10706 Fuzz testing: Parser21
10709 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10714 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10724 Fuzz testing: Parser22
10726 http://===r:::https://b
10730 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10738 # Known to produce bad XML for now
10740 Fuzz testing: Parser24
10747 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10748 <br style="onmouseover='alert(document.cookie);' " />
10750 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10755 <u class="|">}}}} >
10756 <br style="onmouseover='alert(document.cookie);'" />
10758 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10767 # Note: the current result listed for this is not what the original one was,
10768 # but the original bug was JavaScript injection, which is fixed in any case.
10769 # It's not clear that the original result listed was any more correct than the
10770 # current one. Original result:
10773 # <li class="||">
10774 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10776 Fuzz testing: Parser25 (bug 6055)
10782 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10784 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10789 Fuzz testing: URL adjacent extension (with space, clean)
10792 http://example.com <nowiki>junk</nowiki>
10794 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10799 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10802 http://example.com<nowiki>junk</nowiki>
10804 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10809 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10812 http://example.com<pre>junk</pre>
10814 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10819 Fuzz testing: image with bogus manual thumbnail
10821 [[Image:foobar.jpg|thumbnail= ]]
10823 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10828 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10830 <pre dir=" "></pre>
10832 <pre dir=" "></pre>
10837 Parsing optional HTML elements (Bug 6171)
10842 <td> Some tabular data</td>
10843 <td> More tabular data ...
10844 <td> And yet som tabular data</td>
10850 <td> Some tabular data</td>
10851 <td> More tabular data ...
10852 </td><td> And yet som tabular data</td>
10859 Correct handling of <td>, <tr> (Bug 6171)
10864 <td> Some tabular data</td>
10865 <td> More tabular data ...</td>
10866 <td> And yet som tabular data</td>
10872 <td> Some tabular data</td>
10873 <td> More tabular data ...</td>
10874 <td> And yet som tabular data</td>
10882 Parsing crashing regression (fr:JavaScript)
10886 <p></body></x>
10891 Inline wiki vs wiki block nesting
10897 <p><b>Bold paragraph</b>
10898 </p><p>New wiki paragraph
10903 Inline HTML vs wiki block nesting
10911 <p><b>Bold paragraph</b>
10912 </p><p>New wiki paragraph
10916 # Original result was this:
10917 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10919 # While that might be marginally more intuitive, maybe, the six-apostrophe
10920 # construct is clearly pathological and the result stated here (which is what
10921 # the parser actually does) is about as reasonable as anything.
10923 Mixing markup for italics and bold
10926 '''bold''''''bold''bolditalics'''''
10928 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10936 Article for special page transclusion test
10940 Special page transclusion
10943 {{Special:Prefixindex/Xyzzyx}}
10945 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10950 Special page transclusion twice (bug 5021)
10953 {{Special:Prefixindex/Xyzzyx}}
10954 {{Special:Prefixindex/Xyzzyx}}
10956 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10957 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10962 Transclusion of default MediaWiki message
10964 {{MediaWiki:Mainpage}}
10971 Transclusion of nonexistent MediaWiki message
10973 {{MediaWiki:Mainpagexxx}}
10975 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10980 Transclusion of MediaWiki message with underscore
10982 {{MediaWiki:history_short}}
10989 Transclusion of MediaWiki message with space
10991 {{MediaWiki:history short}}
10998 Invalid header with following text
11008 Section extraction test (section 0)
11028 Section extraction test (section 1)
11050 Section extraction test (section 2)
11071 Section extraction test (section 3)
11091 Section extraction test (section 4)
11115 Section extraction test (section 5)
11135 Section extraction test (section 6)
11156 Section extraction test (section 7)
11176 Section extraction test (section 8)
11196 Section extraction test (section 9)
11217 Section extraction test (section 10)
11237 Section extraction test (nonexistent section 11)
11256 Section extraction test with bogus heading (section 1)
11261 ==bogus== not a legal section
11265 ==bogus== not a legal section
11269 Section extraction test with bogus heading (section 2)
11274 ==bogus== not a legal section
11281 Section extraction test with comment after heading (section 1)
11293 Section extraction test with comment after heading (section 2)
11305 Section extraction test with bogus <nowiki> heading (section 1)
11310 ==bogus== <nowiki>not a legal section</nowiki>
11314 ==bogus== <nowiki>not a legal section</nowiki>
11318 Section extraction test with bogus <nowiki> heading (section 2)
11323 ==bogus== <nowiki>not a legal section</nowiki>
11330 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11331 # instead of respecting commented sections
11333 Section extraction prefixed by comment (section 1)
11344 Section extraction prefixed by comment (section 2)
11355 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11356 # instead of respecting HTML-style headings
11358 Section extraction, mixed wiki and html (section 1)
11374 Section extraction, mixed wiki and html (section 2)
11390 # Formerly testing for bug 3342
11392 Section extraction, heading surrounded by <noinclude>
11396 <noinclude>==unmarked==</noinclude>
11402 # Test behavior of bug 19910
11404 Sectiion with all-equals
11409 The line above must have a trailing space
11412 But just in case it doesn't...
11416 But just in case it doesn't...
11420 Section replacement test (section 0)
11451 Section replacement test (section 1)
11480 Section replacement test (section 2)
11510 Section replacement test (section 3)
11541 Section replacement test (section 4)
11568 Section replacement test (section 5)
11599 Section replacement test (section 6)
11629 Section replacement test (section 7)
11660 Section replacement test (section 8)
11691 Section replacement test (section 9)
11720 Section replacement test (section 10)
11750 Section replacement test with initial whitespace (bug 13728)
11754 Preformatted initial line
11758 Preformatted initial line
11765 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11777 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11790 Section extraction, <pre> around bogus header (bug 10309)
11807 Section replacement, <pre> around bogus header (bug 10309)
11809 noxml replace=2,"xxx"
11830 Handling of 
 in URLs
11834 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11841 5 quotes, code coverage +1 line (php)
11848 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11850 5 quotes, code coverage +1 line (parsoid)
11856 <p><i><b></b></i></p>
11860 Special:Search page linking.
11864 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11876 * {{ROOTPAGENAMEE}}
11878 * {{BASEPAGENAMEE}}
11880 * {{TALKPAGENAMEE}}
11881 * {{SUBJECTPAGENAME}}
11882 * {{SUBJECTPAGENAMEE}}
11888 * {{SUBJECTSPACEE}}
11889 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11891 <ul><li> Parser test
11892 </li><li> Parser test
11893 </li><li> Parser test
11894 </li><li> Parser_test
11895 </li><li> Parser test
11896 </li><li> Parser_test
11897 </li><li> Parser test
11898 </li><li> Parser_test
11899 </li><li> Talk:Parser test
11900 </li><li> Talk:Parser_test
11901 </li><li> Parser test
11902 </li><li> Parser_test
11909 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
11913 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11923 image4 |300px| centre
11924 image5.svg| http://///////
11929 <ul class="gallery">
11930 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11931 <div style="height: 150px;">Image1.png</div>
11932 <div class="gallerytext">
11935 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11936 <div style="height: 150px;">Image2.gif</div>
11937 <div class="gallerytext">
11942 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11943 <div style="height: 150px;">Image3</div>
11944 <div class="gallerytext">
11947 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11948 <div style="height: 150px;">Image4</div>
11949 <div class="gallerytext">
11954 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11955 <div style="height: 150px;">Image5.svg</div>
11956 <div class="gallerytext">
11957 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11961 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11962 <div style="height: 150px;">* image6</div>
11963 <div class="gallerytext">
11971 Gallery (with options)
11973 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11974 File:Nonexistant.jpg|caption
11975 File:Nonexistant.jpg
11976 image:foobar.jpg|some '''caption''' [[Main Page]]
11978 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11981 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11982 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11983 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11984 <div style="height: 70px;">Nonexistant.jpg</div>
11985 <div class="gallerytext">
11990 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11991 <div style="height: 70px;">Nonexistant.jpg</div>
11992 <div class="gallerytext">
11995 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11996 <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>
11997 <div class="gallerytext">
11998 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12002 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12003 <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>
12004 <div class="gallerytext">
12007 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12008 <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>
12009 <div class="gallerytext">
12019 Gallery with wikitext inside caption
12022 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12023 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12026 <ul class="gallery">
12027 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12028 <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>
12029 <div class="gallerytext">
12030 <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>
12034 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12035 <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>
12036 <div class="gallerytext">
12037 <p>This is a test template
12046 gallery (with showfilename option)
12048 <gallery showfilename>
12049 File:Nonexistant.jpg|caption
12050 File:Nonexistant.jpg
12051 image:foobar.jpg|some '''caption''' [[Main Page]]
12055 <ul class="gallery">
12056 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12057 <div style="height: 150px;">Nonexistant.jpg</div>
12058 <div class="gallerytext">
12059 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12064 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12065 <div style="height: 150px;">Nonexistant.jpg</div>
12066 <div class="gallerytext">
12067 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12071 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12072 <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>
12073 <div class="gallerytext">
12074 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12075 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12079 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12080 <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>
12081 <div class="gallerytext">
12082 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12091 Gallery (with namespace-less filenames)
12094 File:Nonexistant.jpg
12100 <ul class="gallery">
12101 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12102 <div style="height: 150px;">Nonexistant.jpg</div>
12103 <div class="gallerytext">
12106 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12107 <div style="height: 150px;">Nonexistant.jpg</div>
12108 <div class="gallerytext">
12111 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12112 <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>
12113 <div class="gallerytext">
12116 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12117 <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>
12118 <div class="gallerytext">
12126 HTML Hex character encoding (spells the word "JavaScript")
12128 JavaScript
12130 <p>JavaScript
12135 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12139 <p>&#xsee;&#XSEE;
12144 HTML Hex character encoding mixed case
12153 __FORCETOC__ override
12165 ISBN 978-0-1234-56 789
12167 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12172 ISBN followed by 5 spaces
12183 ISBN ISBN 1234567890
12185 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12190 Bug 22905: <abbr> followed by ISBN followed by </a>
12192 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12194 <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>
12203 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12208 Double RFC with a wiki link
12212 <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>
12221 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12226 Centre-aligned image
12228 [[Image:foobar.jpg|centre]]
12230 <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>
12237 [[Image:foobar.jpg|none]]
12239 <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>
12244 Width + Height sized image (using px) (height is ignored)
12246 [[Image:foobar.jpg|640x480px]]
12248 <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>
12253 Width-sized image (using px, no following whitespace)
12255 [[Image:foobar.jpg|640px]]
12257 <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>
12262 Width-sized image (using px, with following whitespace - test regression from r39467)
12264 [[Image:foobar.jpg|640px ]]
12266 <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>
12271 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12273 [[Image:foobar.jpg| 640px]]
12275 <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>
12280 Another italics / bold test
12288 # Note the results may be incorrect, as parserTest output included this:
12289 # XML error: Mismatched tag at byte 6120:
12290 # ...<dd> </dt></dl> </dd...
12298 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12309 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12311 Images with the "|" character in the comment
12313 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12315 <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>
12320 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12322 <html><script>alert(1);</script></html>
12324 <p><html><script>alert(1);</script></html>
12329 HTML with raw HTML ($wgRawHtml==true)
12333 <html><script>alert(1);</script></html>
12335 <p><script>alert(1);</script>
12340 Parents of subpages, one level up
12342 subpage title=[[Subpage test/L1/L2/L3]]
12346 <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>
12352 Parents of subpages, one level up, not named
12354 subpage title=[[Subpage test/L1/L2/L3]]
12358 <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>
12365 Parents of subpages, two levels up
12367 subpage title=[[Subpage test/L1/L2/L3]]
12373 <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
12374 </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>
12379 Parents of subpages, two levels up, without trailing slash or name.
12381 subpage title=[[Subpage test/L1/L2/L3]]
12390 Parents of subpages, two levels up, with lots of extra trailing slashes.
12392 subpage title=[[Subpage test/L1/L2/L3]]
12396 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12401 Subpage test/L1/L2/L3Sibling
12407 Transclusion of a sibling page (one level up)
12409 subpage title=[[Subpage test/L1/L2/L3]]
12418 Transclusion of a child page
12420 subpage title=[[Subpage test/L1/L2]]
12429 Non-transclusion because of too many up levels
12431 subpage title=[[Subpage test/L1/L2/L3]]
12433 {{../../../../More than parent}}
12435 <p>{{../../../../More than parent}}
12440 Definition list code coverage
12446 <dl><dt> title  </dt><dd> def
12447 </dd><dt> title </dt><dd> def
12448 </dd><dt>title</dt><dd> def
12454 Don't fall for the self-closing div
12456 <div>hello world</div/>
12458 <div>hello world</div>
12467 <p>[[:Template:Msg]]
12476 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12480 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12482 Always escape literal '>' in output, not just after '<'
12496 <p>This is a test template
12497 This is a test template
12509 Inclusion of !userCanEdit() content
12513 <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>
12519 Out-of-order TOC heading levels
12528 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12530 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12532 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12533 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12536 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12538 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12539 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12544 <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>
12545 <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>
12546 <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>
12547 <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>
12548 <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>
12549 <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>
12555 ISBN with a dummy number
12565 ISBN with space-delimited number
12569 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12575 ISBN with multiple spaces, no number
12594 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12595 </p><p>ISBN 12345678901
12601 ISBN with trailing year (bug 8110)
12603 ISBN 1-234-56789-0 - 2006
12605 ISBN 1 234 56789 0 - 2006
12607 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12608 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12616 {{anchorencode:foo bar©#%n}}
12618 <p>foo_bar.C2.A9.23.25n
12623 anchorencode trims spaces
12625 {{anchorencode: __pretty__please__}}
12632 anchorencode deals with links
12634 {{anchorencode: [[hello|world]] [[hi]]}}
12641 anchorencode deals with templates
12643 {{anchorencode: {{Foo}} }}
12650 anchorencode encodes like the TOC generator: (bug 18431)
12652 === _ +:.3A%3A&&]] ===
12653 {{anchorencode: _ +:.3A%3A&&]] }}
12656 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12657 <p>.2B:.3A.253A.26.26.5D.5D
12661 # Expected output in the following test is not necessarily expected (there
12662 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12663 # only testing for well-formedness.
12665 Bug 6200: blockquotes and paragraph formatting
12685 Bug 8293: Use of center tag ruins paragraph formatting
12706 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12710 <span><s>x</span></s>
12712 <p><span><s>x</span></s></span>
12717 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12721 <span><s>x</span></s>
12723 <p><span><s>x</s></span><s></s>
12728 ### Language variants related tests
12731 Self-link in language variants
12733 title=[[Dunav]] language=sr
12735 Both [[Dunav]] and [[Дунав]] are names for this river.
12737 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12748 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12750 title=[[Duna]] language=sr
12752 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12754 <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.
12759 Link to pages in language variants
12763 Main Page can be written as [[Маин Паге]]
12765 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12771 Multiple links to pages in language variants
12775 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12777 <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>.
12783 Simple template in language variants
12789 <p>This is a test template
12795 Template with explicit namespace in language variants
12801 <p>This is a test template
12807 Basic test for template parameter in language variants
12811 {{парамтест|param=foo}}
12813 <p>This is a test template with parameter foo
12819 Simple category in language variants
12823 [[Category:МедиаWики Усер'с Гуиде]]
12825 <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>
12842 Don't convert blue categorylinks to another variant (bug 33210)
12846 [[A]][[Category:分类]]
12848 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12853 Stripping -{}- tags (language variants)
12857 Latin proverb: -{Ne nuntium necare}-
12859 <p>Latin proverb: Ne nuntium necare
12865 Prevent conversion with -{}- tags (language variants)
12867 language=sr variant=sr-ec
12869 Latinski: -{Ne nuntium necare}-
12871 <p>Латински: Ne nuntium necare
12877 Prevent conversion of text with -{}- tags (language variants)
12879 language=sr variant=sr-ec
12881 Latinski: -{Ne nuntium necare}-
12883 <p>Латински: Ne nuntium necare
12889 Prevent conversion of links with -{}- tags (language variants)
12891 language=sr variant=sr-ec
12895 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12901 -{}- tags within headlines (within html for parserConvert())
12903 language=sr variant=sr-ec
12907 <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>
12913 Explicit definition of language variant alternatives
12915 language=zh variant=zh-tw
12917 -{zh:China;zh-tw:Taiwan}-, not China
12919 <p>Taiwan, not China
12925 Conversion around HTML tags
12927 language=sr variant=sr-ec
12929 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12930 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12933 <span title="ЛаCтин">ски</span>
12939 Explicit session-wise language variant mapping (A flag and - flag)
12941 language=zh variant=zh-tw
12943 Taiwan is not China.
12944 But -{A|zh:China;zh-tw:Taiwan}- is China,
12945 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12946 and -{China}- is China.
12948 <p>Taiwan is not China.
12949 But Taiwan is Taiwan,
12950 (This should be stripped!)
12951 and China is China.
12956 Explicit session-wise language variant mapping (H flag for hide)
12958 language=zh variant=zh-tw
12960 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12963 <p>(This should be stripped!)
12969 Adding explicit conversion rule for title (T flag)
12971 language=zh variant=zh-tw showtitle
12973 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12976 <p>Should be stripped!
12981 Testing that changing the language variant here in the tests actually works
12983 language=zh variant=zh showtitle
12985 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12988 <p>Should be stripped!
12993 Recursive conversion of alt and title attrs shouldn't clear converter state
12995 language=zh variant=zh-cn showtitle
12997 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12998 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13002 Should be stripped<span title="Exclamation">!</span>
13007 Bug 24072: more test on conversion rule for title
13009 language=zh variant=zh-tw showtitle
13011 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13012 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13015 <p>This should be stripped!
13016 This won't take interferes with the title rule.
13021 Partly disable title conversion if variant == main language code
13023 language=zh variant=zh title=[[ZH]] showtitle
13025 -{T|zh-cn:CN;zh-tw:TW}-
13033 Partly disable title conversion if variant == main language code, more
13035 language=zh variant=zh title=[[ZH]] showtitle
13045 Raw output of variant escape tags (R flag)
13047 language=zh variant=zh-tw
13049 Raw: -{R|zh:China;zh-tw:Taiwan}-
13051 <p>Raw: zh:China;zh-tw:Taiwan
13056 Nested using of manual convert syntax
13058 language=zh variant=zh-hk
13060 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13062 <p>Nested: Hello Hong Kong!
13067 Proper conversion of text in external links
13069 language=sr variant=sr-ec
13071 http://www.google.com
13072 gopher://www.google.com
13073 [http://www.google.com http://www.google.com]
13074 [gopher://www.google.com gopher://www.google.com]
13075 [https://www.google.com irc://www.google.com]
13076 [ftp://www.google.com www.google.com/ftp://dir]
13077 [//www.google.com www.google.com]
13079 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13080 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13081 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13082 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13083 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13084 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13085 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13090 Do not convert roman numbers to language variants
13092 language=sr variant=sr-ec
13096 <p>Фридрих IV је цар.
13101 Unclosed language converter markup "-{"
13112 Don't convert raw rule "-{R|=>}-" to "=>"
13129 Bug 529: Uncovered bullet
13139 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13140 # Templates in Wikipedia rely on this behavior, as tidy has always been
13141 # enabled there. These tests are normally run *without* tidy, so specify the
13142 # full output here.
13143 # To test realistic parsing behavior, apply a tidy-like transformation to both
13144 # the expected output and your parser's output.
13146 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13148 ******* Foo {{bullet}}
13150 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13163 Bug 529: Uncovered table already at line-start
13186 Bug 529: Uncovered bullet in parser function result
13188 * Foo {{lc:{{bullet}} }}
13197 Bug 5678: Double-parsed template argument
13199 {{lc:{{{1}}}|hello}}
13206 Bug 5678: Double-parsed template invocation
13208 {{lc:{{paramtest {{!}} param = hello }} }}
13210 <p>{{paramtest | param = hello }}
13215 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13218 title=[[Main Page]]
13220 {{PRVNÍVELKÉ:ěščř}}
13221 {{prvnívelké:ěščř}}
13241 Morwen/13: Unclosed link followed by heading
13248 <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>
13253 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13260 <h1><span class="mw-headline" id="heading">heading</span></h1>
13265 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13272 <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>
13287 Paragraphs inside divs (no extra line breaks)
13299 Paragraphs inside divs (extra line break on open)
13314 Paragraphs inside divs (extra line break on close)
13329 Paragraphs inside divs (extra line break on open and close)
13346 Nesting tags, paragraphs on lines which begin with <div>
13350 <div></div><strong>A
13359 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13361 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13365 <blockquote>Line one
13367 Line two</blockquote>
13369 <blockquote>Line one
13370 Line two</blockquote>
13375 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13382 Line two</blockquote>
13387 Line two</blockquote>
13392 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13396 <blockquote>Line one
13401 <blockquote>Line one
13409 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13428 Paragraphs inside blockquotes/divs (no extra line breaks)
13430 <blockquote><div>Line one
13432 Line two</div></blockquote>
13434 <blockquote><div>Line one
13435 Line two</div></blockquote>
13440 Paragraphs inside blockquotes/divs (extra line break on open)
13445 Line two</div></blockquote>
13450 Line two</div></blockquote>
13455 Paragraphs inside blockquotes/divs (extra line break on close)
13457 <blockquote><div>Line one
13460 </div></blockquote>
13462 <blockquote><div>Line one
13465 </div></blockquote>
13470 Paragraphs inside blockquotes/divs (extra line break on open and close)
13476 </div></blockquote>
13482 </div></blockquote>
13487 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13489 wgLinkHolderBatchSize=0
13495 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13496 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13497 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13502 Free external link invading image caption
13504 [[Image:Foobar.jpg|thumb|http://x|hello]]
13506 <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>
13511 Bug 15196: localised external link numbers
13515 [http://en.wikipedia.org/]
13517 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13522 Multibyte character in padleft
13524 {{padleft:-Hello|7|Æ}}
13531 Multibyte character in padright
13533 {{padright:Hello-|7|Æ}}
13540 formatdate parser function
13542 {{#formatdate:2009-03-24}}
13544 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13549 formatdate parser function, with default format
13551 {{#formatdate:2009-03-24|mdy}}
13553 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13558 Spacing of numbers in formatted dates
13560 {{#formatdate:January 15}}
13562 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13567 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
13569 language=nl title=[[MediaWiki:Common.css]]
13571 {{#formatdate:2009-03-24|dmy}}
13573 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13586 Edit comment with link
13590 I like the [[Main Page]] a lot
13592 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13596 Edit comment with link and link text
13600 I like the [[Main Page|best pages]] a lot
13602 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13606 Edit comment with link and link text with suffix
13610 I like the [[Main Page|best page]]s a lot
13612 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13616 Edit comment with section link (non-local, eg in history list)
13618 comment title=[[Main Page]]
13620 /* External links */ removed bogus entries
13622 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13626 Edit comment with section link and text before it (non-local, eg in history list)
13628 comment title=[[Main Page]]
13630 pre-comment text /* External links */ removed bogus entries
13632 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>
13636 Edit comment with section link (local, eg in diff view)
13638 comment local title=[[Main Page]]
13640 /* External links */ removed bogus entries
13642 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13646 Edit comment with subpage link (bug 14080)
13650 title=[[Subpage test]]
13652 Poked at a [[/subpage]] here...
13654 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13658 Edit comment with subpage link and link text (bug 14080)
13662 title=[[Subpage test]]
13664 Poked at a [[/subpage|neat little page]] here...
13666 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13670 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13673 title=[[Subpage test]]
13675 Poked at a [[/subpage]] here...
13677 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13681 Edit comment with bare anchor link (local, as on diff)
13685 title=[[Main Page]]
13689 <a href="#section">#section</a>
13693 Edit comment with bare anchor link (non-local, as on history)
13696 title=[[Main Page]]
13700 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13704 Anchor starting with underscore
13708 <p><a href="#_ref">One</a>
13713 Id starting with underscore
13715 <div id="_ref"></div>
13717 <div id="_ref"></div>
13722 Space normalisation on autocomment (bug 22784)
13725 title=[[Main Page]]
13727 /* __hello__world__ */
13729 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13733 percent-encoding and + signs in comments (Bug 26410)
13737 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13739 <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>
13743 Bad images - basic functionality
13752 Bad images - bug 16039: text after bad image disappears
13766 Verify that displaytitle works (bug #22501) no displaytitle
13770 wgAllowDisplayTitle=true
13771 wgRestrictDisplayTitle=false
13773 this is not the the title
13776 <p>this is not the the title
13781 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13786 wgAllowDisplayTitle=true
13787 wgRestrictDisplayTitle=false
13789 this is not the the title
13790 {{DISPLAYTITLE:whatever}}
13793 <p>this is not the the title
13798 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13803 wgAllowDisplayTitle=true
13804 wgRestrictDisplayTitle=true
13806 this is not the the title
13807 {{DISPLAYTITLE:whatever}}
13810 <p>this is not the the title
13815 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13820 wgAllowDisplayTitle=true
13821 wgRestrictDisplayTitle=true
13823 this is not the the title
13824 {{DISPLAYTITLE:screen}}
13827 <p>this is not the the title
13832 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13837 wgAllowDisplayTitle=false
13839 this is not the the title
13840 {{DISPLAYTITLE:screen}}
13843 <p>this is not the the title
13844 <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>
13849 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13854 wgAllowDisplayTitle=false
13856 this is not the the title
13859 <p>this is not the the title
13864 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13869 wgAllowDisplayTitle=true
13870 wgRestrictDisplayTitle=true
13872 this is not the the title
13873 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13875 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13876 <p>this is not the the title
13881 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13886 wgAllowDisplayTitle=true
13887 wgRestrictDisplayTitle=true
13889 this is not the the title
13890 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13892 <span style="color: red;">s</span>creen
13893 <p>this is not the the title
13898 preload: check <noinclude> and <includeonly>
13902 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13908 preload: check <onlyinclude>
13912 Goodbye <onlyinclude>Hello world</onlyinclude>
13918 preload: can pass tags through if we want to
13922 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13924 <includeonly>Hello world</includeonly>
13928 preload: check that it doesn't try to do tricks
13932 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13934 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13938 Play a bit with r67090 and bug 3158
13942 <div style="width:50% !important"> </div>
13943 <div style="width:50% !important"> </div>
13944 <div style="width:50% !important"> </div>
13945 <div style="border : solid;"> </div>
13947 <div style="width:50% !important"> </div>
13948 <div style="width:50% !important"> </div>
13949 <div style="width:50% !important"> </div>
13950 <div style="border : solid;"> </div>
13955 HTML5 data attributes
13957 <span data-foo="bar">Baz</span>
13958 <p data-abc-def_hij="">Quuz</p>
13960 <p><span data-foo="bar">Baz</span>
13962 <p data-abc-def_hij="">Quuz</p>
13967 percent-encoding and + signs in internal links (Bug 26410)
13969 [[User:+%]] [[Page+title%]]
13970 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13971 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13972 [[%33%45]] [[%33%45+]]
13974 <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>
13975 <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>
13976 <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>
13977 <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>
13982 Special characters in embedded file links (bug 27679)
13984 [[File:Contains & ampersand.jpg]]
13985 [[File:Does not exist.jpg|Title with & ampersand]]
13987 <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>
13988 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13994 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13996 Text's been normalized?
13998 <p>Text's been normalized?
14003 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14005 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14007 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14012 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14014 [http://www.example.org/ ideograms]
14016 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14021 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14023 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14025 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14049 Bug 31098 Template which includes system messages which includes the template
14053 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14054 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14059 Bug31490 Turkish: ucfirst 'blah'
14070 Bug31490 Turkish: ucfirst 'ix'
14081 Bug31490 Turkish: lcfirst 'BLAH'
14092 Bug31490 Turkish: ucfırst (with a dotless i)
14098 <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>
14103 Bug31490 ucfırst (with a dotless i) with English language
14109 <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>
14114 Bug 26375: TOC with italics
14116 title=[[Main Page]]
14119 == ''Lost'' episodes ==
14121 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14123 <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>
14126 <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>
14131 Bug 26375: TOC with bold
14133 title=[[Main Page]]
14136 == '''should be bold''' then normal text ==
14138 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14140 <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>
14143 <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>
14148 Bug 33845: Headings become cursive in TOC when they contain an image
14150 title=[[Main Page]]
14153 == Image [[Image:foobar.jpg]] ==
14155 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14157 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14160 <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>
14165 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14167 title=[[Main Page]]
14170 == <blockquote>Quote</blockquote> ==
14172 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14174 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14177 <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>
14182 Unclosed tags in TOC
14184 title=[[Main Page]]
14188 <small>Hanc marginis exiguitas non caperet.</small>
14191 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14193 <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>
14196 <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>
14197 <p><small>Hanc marginis exiguitas non caperet.</small>
14203 Multiple tags in TOC
14206 == <i>Foo</i> <b>Bar</b> ==
14208 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14210 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14212 <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>
14213 <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>
14216 <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>
14217 <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>
14222 Tags with parameters in TOC
14225 == <sup class="in-h2">Hello</sup> ==
14227 == <sup class="a > b">Evilbye</sup> ==
14229 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14231 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14232 <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>
14235 <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>
14236 <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>
14241 span tags with directionality in TOC
14244 == <span dir="ltr">C++</span> ==
14246 == <span dir="rtl">זבנג!</span> ==
14248 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14250 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14252 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14254 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14256 <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>
14257 <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>
14258 <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>
14259 <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>
14260 <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>
14263 <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>
14264 <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>
14265 <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>
14266 <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>
14267 <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>
14274 == {{int:headline_sample}} ==
14278 Bug 32057: Title needed when expanding <h> nodes.
14280 title=[[Main Page]]
14284 <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>
14289 Strip marker in urlencode
14291 {{urlencode:x<nowiki/>y}}
14292 {{urlencode:x<nowiki/>y|wiki}}
14293 {{urlencode:x<nowiki/>y|path}}
14320 Strip marker in formatNum
14322 {{formatnum:1<nowiki/>2}}
14323 {{formatnum:1<nowiki/>2|R}}
14331 Check noCommafy in formatNum
14335 {{formatnum:123456.78}}
14336 {{formatnum:123456.78|NOSEP}}
14344 Strip marker in grammar
14348 {{grammar:elative|foo<nowiki/>bar}}
14355 Strip marker in padleft
14357 {{padleft:|2|x<nowiki/>y}}
14364 Strip marker in padright
14366 {{padright:|2|x<nowiki/>y}}
14373 Strip marker in anchorencode
14375 {{anchorencode:x<nowiki/>y}}
14382 nowiki inside link inside heading (bug 18295)
14384 ==[[foo|x<nowiki>y</nowiki>z]]==
14386 <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>
14391 new support for bdi element (bug 31817)
14393 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14395 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14400 Ignore pipe between table row attributes
14404 |- id=foo | style='color: red'
14412 <tr id="foo" style="color: red">
14419 Gallery override link with WikiLink (bug 34852)
14422 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14425 <ul class="gallery">
14426 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14427 <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>
14428 <div class="gallerytext">
14438 Gallery override link with absolute external link (bug 34852)
14441 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14444 <ul class="gallery">
14445 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14446 <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>
14447 <div class="gallerytext">
14457 Gallery override link with malicious javascript (bug 34852)
14460 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14463 <ul class="gallery">
14464 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14465 <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>
14466 <div class="gallerytext">
14476 Gallery with invalid title as link (bug 43964)
14479 File:foobar.jpg|link=<
14482 <ul class="gallery">
14483 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14484 <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>
14485 <div class="gallerytext">
14493 Language parser function
14502 Padleft and padright as substr
14504 {{padleft:|3|abcde}}
14505 {{padright:|3|abcde}}
14513 Special parser function
14515 {{#special:RandomPage}}
14516 {{#special:BaDtItLe}}
14517 {{#special:Foobar}}
14526 Bug 34939 - Case insensitive link parsing ([HttP://])
14528 [HttP://MediaWiki.Org/]
14530 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14535 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14537 [HttP://MediaWiki.Org/ MediaWiki]
14539 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14544 Bug 34939 - Case insensitive link parsing (HttP://)
14546 HttP://MediaWiki.Org/
14548 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14554 ### Parsoids-specific tests
14555 ### Parsoid-PHP parser incompatibilities
14558 1. SOL-sensitive wikitext tokens as template-args
14560 parsoid=wt2html,wt2wt
14566 <span about="#mwt1" typeof="mw:Transclusion">
14567 </span><ul about="#mwt1"><li>a</li></ul>
14568 <span about="#mwt2" typeof="mw:Transclusion">
14569 </span><ol about="#mwt2"><li>a</li></ol>
14570 <span about="#mwt3" typeof="mw:Transclusion">
14571 </span><dl about="#mwt3"><dd>a</dd></dl>
14574 #### ----------------------------------------------------------------
14575 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14576 #### tags. Parsoid's output for these tags differs from that of the
14578 #### ----------------------------------------------------------------
14581 Ref: 1. ref-location should be replaced with an index span
14586 B <ref name="x">foo</ref>
14589 <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>
14590 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>
14591 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>
14595 Ref: 2. ref-tags with identical names should all get the same index
14599 A <ref name="x">foo</ref>
14602 <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>
14603 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>
14607 Ref: 3. spaces in ref-names should be ignored
14611 A <ref name="x">foo</ref>
14612 B <ref name=" x " />
14615 <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>
14616 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>
14617 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>
14621 Ref: 4. 'constructor' should be accepted as a valid ref-name
14622 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14626 A <ref name="constructor">foo</ref>
14628 <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>
14632 Ref: 5. body should accept generic wikitext
14637 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14642 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid=\"{&quot;dsr&quot;:[19,40,3,3]}\"><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" data-parsoid=\"{&quot;a&quot;:{&quot;href&quot;:&quot;./Bolded_link&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;bolded link&quot;},&quot;stx&quot;:&quot;simple&quot;,&quot;dsr&quot;:[22,37,2,2]}\">bolded link</a></b> and this is a <span about=\"#mwt3\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;transclusion&quot;}}}\" data-parsoid=\"{&quot;src&quot;:&quot;{{echo|transclusion}}&quot;,&quot;dsr&quot;:[55,76,null,null]}\">transclusion</span>\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14644 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14645 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> This is a <b><a rel="mw:WikiLink" href="./Bolded_link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}}}'>transclusion</span>
14650 Ref: 6. indent-pres should not be output in ref-body
14662 <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>
14664 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14665 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14672 Ref: 6. No p-wrapping in ref-body
14691 <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>
14693 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14694 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14708 Ref: 8. transclusion wikitext has lower precedence
14712 A <ref> foo {{echo|</ref> B C}}
14716 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid=\"{&quot;src&quot;:&quot;{{&quot;,&quot;dsr&quot;:[12,14,2,null]}\">{{</span>echo|"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
14718 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14719 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <span typeof="mw:Nowiki">{{</span>echo|</li></ol>
14723 Ref: 9. unclosed comments should not leak out of ref-body
14727 A <ref> foo <!--</ref> B C
14731 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <!---->"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
14733 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14734 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14738 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14742 A <ref> <b> foo </ref> B C
14746 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"<b data-parsoid=\"{&quot;stx&quot;:&quot;html&quot;,&quot;autoInsertedEnd&quot;:true,&quot;dsr&quot;:[8,16,3,0]}\"> foo </b>"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
14748 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14749 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b> foo </b></li></ol>
14753 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14760 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B
14761 C <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> D</p>
14765 Ref: 12. ref-tags act as trailing newline migration barrier
14769 <!--the newline at the end of this line moves out of the p-tag-->a
14771 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14776 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14779 <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>
14780 <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>
14787 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14795 <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
14796 <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>
14800 Ref: 14. A nested ref-tag should be emitted as plain text
14804 <ref>foo <ref>bar</ref> baz</ref>
14808 <p><span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo &lt;ref&gt;bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> baz</ref></p>
14810 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <ref>bar</li></ol>
14814 Ref: 15. ref-tags with identical names should get identical indexes
14818 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14819 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14823 <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>
14824 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>
14826 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-a-1-0">1.0</a> <a href="#cite_ref-a-1-1">1.1</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy">↑ <a href="#cite_ref-b-2-0">2.0</a> <a href="#cite_ref-b-2-1">2.1</a></span> bar</li></ol>
14830 References: 1. references tag without any refs should be handled properly
14836 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14840 References: 2. references tag with group only outputs references from that group
14844 A <ref group="a">foo</ref>
14845 B <ref group="b">bar</ref>
14847 <references group='a' />
14849 <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>
14850 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[b 1]</a></span></p>
14852 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
14856 References: 3. ref list should be cleared after processing references
14868 <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>
14870 <ol about="#mwt4" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
14872 <p>B <span about="#mwt6" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14874 <ol about="#mwt8" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bar</li></ol>
14878 References: 4. only referenced group should be cleared after processing references
14882 A <ref group="a">afoo</ref>
14885 <references group="a"/>
14891 <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>
14892 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bfoo</ref>","dsr":[30,45,5,6]}'><a href="#cite_note-1">[1]</a></span></p>
14894 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> afoo</li></ol>
14896 <p>C <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
14898 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bfoo</li><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> cfoo</li></ol>
14902 References: 5. ref tags in references should be processed while ignoring all other content
14907 B <ref name="b">bar</ref>
14910 <ref name="a">foo</ref>
14911 This should just get lost.
14914 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
14915 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
14917 <ol about="#mwt7" class="references" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost."},"attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy"><a href="#cite_ref-a-1-0">↑</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> bar</li></ol>
14921 References: 6. <references /> from a transclusion
14925 {{echo|<references />}}
14927 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
14930 #### ----------------------------------------------------------------
14931 #### The following section of tests are primarily to test
14932 #### wikitext escaping capabilities of Parsoid. Given that
14933 #### escaping can be done any number of ways, the wikitext (input)
14934 #### is always adjusted to reflect how Parsoid adds nowiki
14937 #### We are marking several tests as parsoid-only since the
14938 #### HTML in the result section is different from what the
14939 #### PHP parser generates for it.
14940 #### ----------------------------------------------------------------
14943 #### --------------- Headings ---------------
14945 #### 1. Nested inside html <h1>=foo=</h1>
14946 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14947 #### 3. Nested inside html with wikitext split by html tags
14948 #### 4. No escape needed
14949 #### 5. Empty headings <h1></h1>
14950 #### 6. Heading chars in SOL context
14951 #### ----------------------------------------
14953 Headings: 0. Unnested
14957 <nowiki>=foo=</nowiki>
14959 <nowiki> =foo= </nowiki>
14961 <nowiki>=foo=</nowiki>
14963 =foo''a''<nowiki>=</nowiki>
14965 <p><span typeof="mw:Nowiki">=foo=</span></p>
14967 <p><span typeof="mw:Nowiki"> =foo= </span>
14969 <span typeof="mw:Nowiki">=foo=</span></p>
14971 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14975 Headings: 1. Nested inside html
14979 =<nowiki>=foo=</nowiki>=
14981 ==<nowiki>=foo=</nowiki>==
14983 ===<nowiki>=foo=</nowiki>===
14985 ====<nowiki>=foo=</nowiki>====
14987 =====<nowiki>=foo=</nowiki>=====
14989 ======<nowiki>=foo=</nowiki>======
14991 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14992 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14993 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14994 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14995 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14996 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15000 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15005 <nowiki>*bar</nowiki>
15011 <nowiki>=bar=</nowiki>
15019 Headings: 3. Nested inside html with wikitext split by html tags
15023 =='''bold'''<nowiki>foo=</nowiki>=
15025 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15029 Headings: 4a. No escaping needed (testing just h1 and h2)
15047 =<nowiki>=</nowiki>=
15055 <h1><i>=</i>foo=</h1>
15056 <h1><span typeof="mw:Nowiki">=</span></h1>
15060 Headings: 4b. No escaping needed (inside p-tags)
15075 Headings: 5. Empty headings
15087 =====<nowiki/>=====
15089 ======<nowiki/>======
15100 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15104 <nowiki>=a=</nowiki>
15106 <nowiki>=a= </nowiki>
15108 <nowiki>=a= </nowiki>
15110 <nowiki>=a= </nowiki>
15119 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15147 Headings: 6c. Heading chars in SOL context (leading newline break)
15159 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15163 <!--c0--><nowiki>=a=</nowiki>
15165 <nowiki>=a= </nowiki><!--c2--> <!--c3-->
15167 <p><!--c0-->=a=</p>
15168 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15172 Headings: 6d. Heading chars in SOL context (No escaping needed)
15181 #### --------------- Lists ---------------
15182 #### 0. Outside nests (*foo, etc.)
15183 #### 1. Nested inside html <ul><li>*foo</li></ul>
15184 #### 2. Inside definition lists
15185 #### 3. Only bullets at start should be escaped
15186 #### 4. No escapes needed
15187 #### 5. No unnecessary escapes
15188 #### 6. Escape bullets in SOL position
15189 #### 7. Escape bullets in a multi-line context
15190 #### ----------------------------------------
15193 Lists: 0. Outside nests
15195 <nowiki>*foo</nowiki>
15197 <nowiki>#foo</nowiki>
15205 Lists: 1. Nested inside html
15207 *<nowiki>*foo</nowiki>
15209 *<nowiki>#foo</nowiki>
15211 *<nowiki>:foo</nowiki>
15213 *<nowiki>;foo</nowiki>
15215 #<nowiki>*foo</nowiki>
15217 #<nowiki>#foo</nowiki>
15219 #<nowiki>:foo</nowiki>
15221 #<nowiki>;foo</nowiki>
15243 Lists: 2. Inside definition lists
15245 ;<nowiki>;foo</nowiki>
15247 ;<nowiki>:foo</nowiki>
15249 ;<nowiki>:foo</nowiki>
15252 :<nowiki>:foo</nowiki>
15267 Lists: 3. Only bullets at start of text should be escaped
15269 *<nowiki>*foo*bar</nowiki>
15271 *<nowiki>*foo</nowiki>''it''*bar
15275 <ul><li>*foo<i>it</i>*bar
15281 Lists: 4. No escapes needed
15293 <ul><li><i>foo</i>*bar
15295 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15300 Lists: 5. No unnecessary escapes
15302 * bar <span><nowiki>[[foo]]</nowiki></span>
15304 *=bar <span><nowiki>[[foo]]</nowiki></span>
15306 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15308 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15310 *=bar <span>foo]]</span>=
15314 <ul><li> bar <span>[[foo]]</span>
15316 <ul><li>=bar <span>[[foo]]</span>
15318 <ul><li>[[bar <span>[[foo]]</span>
15320 <ul><li>]]bar <span>[[foo]]</span>
15322 <ul><li>=bar <span>foo]]</span>=
15324 <ul><li> <s></s>: a
15330 Lists: 6. Escape bullets in SOL position
15334 <!--cmt--><nowiki>*foo</nowiki>
15336 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15340 Lists: 7. Escape bullets in a multi-line context
15350 #### --------------- HRs ---------------
15351 #### 1. Single line
15352 #### -----------------------------------
15355 HRs: 1. Single line
15359 ----<nowiki>----</nowiki>
15363 <hr><span typeof="mw:Nowiki">----</span>
15368 #### --------------- Tables ---------------
15369 #### 1a. Simple example
15370 #### 1b. No escaping needed (!foo)
15371 #### 1c. No escaping needed (|foo)
15372 #### 1d. No escaping needed (|}foo)
15374 #### 2a. Nested in td (<td>foo|bar</td>)
15375 #### 2b. Nested in td (<td>foo||bar</td>)
15376 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15378 #### 3a. Nested in th (<th>foo!bar</th>)
15379 #### 3b. Nested in th (<th>foo!!bar</th>)
15380 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15384 #### 4c. No escaping needed
15385 #### --------------------------------------
15388 Tables: 1a. Simple example
15399 Tables: 1b. No escaping needed
15408 Tables: 1c. No escaping needed
15417 Tables: 1d. No escaping needed
15426 Tables: 2a. Nested in td
15431 |<nowiki>foo|bar</nowiki>
15435 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15439 Tables: 2b. Nested in td
15444 |<nowiki>foo||bar</nowiki>
15445 |''it''<nowiki>foo||bar</nowiki>
15449 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15450 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15454 Tables: 2c. Nested in td -- no escaping needed
15462 <table><tbody><tr><td>foo!!bar
15463 </td></tr></tbody></table>
15468 Tables: 3a. Nested in th
15476 <table><tbody><tr><th>foo!bar
15477 </th></tr></tbody></table>
15482 Tables: 3b. Nested in th
15487 !<nowiki>foo!!bar</nowiki>
15491 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15496 Tables: 3c. Nested in th -- no escaping needed
15501 !<nowiki>foo||bar</nowiki>
15505 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15509 Tables: 4a. Escape -
15517 |<nowiki>-bar</nowiki>
15521 <tr><th>-bar</th></tr>
15523 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15527 Tables: 4b. Escape +
15535 |<nowiki>+bar</nowiki>
15539 <tr><th>+bar</th></tr>
15541 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15545 Tables: 4c. No escaping needed
15559 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15560 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15564 ### SSS FIXME: Disabled right now because accurate html2wt
15565 ### on this snippet requires data-parsoid flags that we've
15566 ### stripped out of these tests. We should scheme how we
15567 ### we want to handle these kind of tests that require
15568 ### data-parsoid flags for accurate html2wt serialization
15571 Tables: 4d. No escaping needed
15589 #### --------------- Links ----------------
15590 #### 1. Quote marks in link text
15591 #### 2. Wikilinks: Escapes needed
15592 #### 3. Wikilinks: No escapes needed
15593 #### 4. Extlinks: Escapes needed
15594 #### 5. Extlinks: No escapes needed
15595 #### --------------------------------------
15597 Links 1. Quote marks in link text
15601 [[Foo|<nowiki>Foo''boo''</nowiki>]]
15603 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15607 Links 2. WikiLinks: Escapes needed
15611 [[Foo|<nowiki>[Foobar]</nowiki>]]
15612 [[Foo|<nowiki>Foobar]</nowiki>]]
15613 [[Foo|x [Foobar] x]]
15614 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15615 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15616 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15617 [[Foo|<nowiki>|Bar</nowiki>]]
15618 [[Foo|<nowiki>]]bar</nowiki>]]
15619 [[Foo|<nowiki>[[bar</nowiki>]]
15620 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15622 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15623 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15624 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15625 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15626 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15627 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15628 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15629 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15630 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15631 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15635 Links 3. WikiLinks: No escapes needed
15642 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15643 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15647 Links 4. ExtLinks: Escapes needed
15651 [http://google.com <nowiki>[google]</nowiki>]
15652 [http://google.com <nowiki>google]</nowiki>]
15654 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15655 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15659 Links 5. ExtLinks: No escapes needed
15663 [http://google.com [google]
15665 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15668 #### --------------- Quotes ---------------
15669 #### 1. Quotes inside <b> and <i>
15670 #### 2. Link fragments separated by <i> and <b> tags
15671 #### 3. Link fragments inside <i> and <b>
15672 #### --------------------------------------
15674 1. Quotes inside <b> and <i>
15676 ''<nowiki>'foo'</nowiki>''
15677 ''<nowiki>''foo''</nowiki>''
15678 ''<nowiki>'''foo'''</nowiki>''
15679 ''foo''<nowiki>'s</nowiki>
15680 '''<nowiki>'foo'</nowiki>'''
15681 '''<nowiki>''foo''</nowiki>'''
15682 '''<nowiki>'''foo'''</nowiki>'''
15683 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15684 '''foo'''<nowiki>'s</nowiki>
15693 <b>foo'<i>bar'</i>baz</b>
15699 2. Link fragments separated by <i> and <b> tags
15701 [[''foo''<nowiki>hello]]</nowiki>
15703 [['''foo'''<nowiki>hello]]</nowiki>
15705 <p>[[<i>foo</i>hello]]
15706 </p><p>[[<b>foo</b>hello]]
15711 2. Link fragments inside <i> and <b>
15712 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15713 this is one of the shortcomings of this format)
15715 ''[[foo''<nowiki>]]</nowiki>
15717 '''[[foo'''<nowiki>]]</nowiki>
15720 </p><p><b>[[foo</b>]]
15724 #### ----------- Paragraphs ---------------
15725 #### 1. No unnecessary escapes
15726 #### --------------------------------------
15729 1. No unnecessary escapes
15731 bar <span><nowiki>[[foo]]</nowiki></span>
15733 =bar <span><nowiki>[[foo]]</nowiki></span>
15735 [[bar <span><nowiki>[[foo]]</nowiki></span>
15737 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15739 =bar <span>foo]]</span><nowiki>=</nowiki>
15741 <p>bar <span>[[foo]]</span>
15742 </p><p>=bar <span>[[foo]]</span>
15743 </p><p>[[bar <span>[[foo]]</span>
15744 </p><p>]]bar <span>[[foo]]</span>
15745 </p><p>=bar <span>foo]]</span>=
15749 #### ----------------------- PRE --------------------------
15750 #### 1. Leading whitespace in SOL context should be escaped
15751 #### ------------------------------------------------------
15753 1. Leading whitespace in SOL context should be escaped
15757 <nowiki> a</nowiki>
15759 <nowiki> a</nowiki>
15761 <nowiki> a(tab)</nowiki>
15763 <nowiki> a</nowiki>
15765 <nowiki> a</nowiki>
15780 <p><!--cmt--> a</p>
15789 #### --------------- HTML tags ---------------
15792 #### 3. multi-line html tag
15793 #### -----------------------------------------
15799 <a href="http://google.com">google</a>
15801 <a href="http://google.com">google</a>
15807 <nowiki><div>foo</div>
15808 <div style="color:red">foo</div></nowiki>
15810 <p><div>foo</div>
15811 <div style="color:red">foo</div>
15816 3. multi-line html tag
15831 <nowiki><ref>foo</ref></nowiki>
15833 <p><ref>foo</ref>
15837 #### --------------- Others ---------------
15841 <nowiki>foo</nowiki>
15843 <p><nowiki>foo</nowiki>
15848 Tag-like HTML structures are passed through as text
15870 </p><p>1<d e>f
15875 # This fails in the PHP parser (see bug 40670,
15876 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15878 Tag names followed by punctuation should not be recognized as tags
15884 <p><s.ome> text
15889 HTML tag with necessary entities in attributes
15891 <span title="&amp;">foo</span>
15893 <p><span title="&amp;">foo</span>
15898 HTML tag with 'unnecessary' entity encoding in attributes
15900 <span title="&">foo</span>
15902 <p><span title="&">foo</span>
15907 HTML tag with broken attribute value quoting
15909 <span title="Hello world>Foo</span>
15911 <p><span>Foo</span>
15916 Parsoid-only: HTML tag with broken attribute value quoting
15920 <span title="Hello world>Foo</span>
15922 <p><span title="Hello world">Foo</span>
15927 Table with broken attribute value quoting
15930 | title="Hello world|Foo
15941 Table with broken attribute value quoting on consecutive lines
15944 | title="Hello world|Foo
15945 | style="color:red|Bar
15958 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15963 | title="Hello world|Foo
15964 | style="color:red|Bar
15969 <td title="Hello world">Foo
15970 </td><td style="color: red">Bar
15971 </td></tr></tbody></table>
15976 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15986 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15996 Accept empty td cell attribute
15999 | align="center" | foo || |
16004 <td align="center"> foo </td>
16011 Non-empty attributes in th-cells
16014 ! Foo !! style="color: red" | Bar
16020 <th style="color: red"> Bar
16026 Accept empty attributes in th-cells
16041 Empty table rows go away
16062 ### Parsoid-centric tests for testing RTing of inter-element separators
16063 ### Edge cases not tested by existing parser tests and specific to
16064 ### Parsoid-specific serialization strategies.
16068 RT-ed inter-element separators should be valid separators
16081 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16082 (Parsoid-only since PHP parser relies on Tidy for correct output)
16098 Empty TD followed by TD with tpl-generated attribute
16103 |{{echo|style='color:red'}}|foo
16117 Indented table with an empty td
16136 Empty TR followed by a template-generated TR
16137 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16139 parsoid=wt2html,wt2wt
16143 {{echo|<tr><td>foo</td></tr>}}
16149 <tr typeof="mw:Transclusion">
16150 <td>foo</td></tr></tbody></table>
16153 ## PHP and parsoid output differ for this, and since this is primarily
16154 ## for testing Parsoid's serializer, marking this Parsoid only
16156 Empty TR followed by mixed-ws-comment line should RT correctly
16170 <td> <!--c--></td></tr>
16172 <td><!--c--> <!--d--></td></tr>
16178 Multi-line image caption generated by templates with/without trailing newlines
16182 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16183 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16185 <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>
16186 <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>
16190 ## PHP emits broken html for this, and since this is primarily
16191 ## a Parsoid serializer test, marking this Parsoid only
16193 Improperly nested inline or quotes tags with whitespace in between
16197 <span> <s>x</span> </s>
16200 <p><span> <s>x</s></span><s> </s>
16201 <b> <i>x</i></b><i> </i>
16205 # -----------------------------------------------------------------
16206 # The following section of tests are primarily to spec requirements
16207 # around serialization of new/edited content.
16209 # All these tests are marked Parsoid html2wt and html2html only
16210 # ----------------------------------------------------------------
16213 Image: Modifying size of an image
16217 [[Image:Wiki.png|230x230px]]
16219 <p data-parsoid='{"dsr":[0,24,0,0]}'><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"100px"}],"cacheKey":"[[Image:Wiki.png|100px]]","img":{"h":115,"w":100,"wdset":true},"dsr":[0,24,null,null]}'><a href="./File:Wiki.png" data-parsoid='{"a":{"href":"./File:Wiki.png"}}'><img resource="./File:Wiki.png" src="//upload.wikimedia.org/wikipedia/en/thumb/b/bc/Wiki.png/100px-Wiki.png" height="230" width="200" data-parsoid='{"a":{"resource":"./File:Wiki.png"},"sa":{"resource":"Image:Wiki.png"}}'></a></span></p>
16223 Image: New block level image should have \n before and after
16228 [[File:Wiki.png|right|thumb|150x150px]]
16231 <p>123</p><figure typeof="mw:Image/Thumb" class="mw-halign-right"><a href="./File:Wiki.png"><img src="http://192.168.142.128/mw/images/thumb/b/bc/Wiki.png/131px-Wiki.png" width="131" height="150" resource="./File:Wiki.png"></a></figure><p>456</p>
16235 Lists: Add space after bullets
16242 * <span> baz</span>
16247 <li><span> baz</span></li>
16257 Try for 100% code coverage