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 # For testing purposes, temporary articles can created:
31 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
32 # where '/' denotes a newline.
34 # This is the standard article assumed to exist.
59 MediaWiki:bad image list
61 * [[File:Bad.jpg]] except [[Nasty page]]
95 Template:echo_with_span
101 Template:echo_with_div
113 Template:table_attribs
116 |</noinclude>style="color: red"| Foo
138 This is a simple paragraph.
140 <p>This is a simple paragraph.
145 Paragraphs with extra newline spacing
168 Paragraphs with newline spacing with comment lines in between
176 <!--foo--><!--More than 1 comment disables stripping of this line!-->
233 Paragraphs with newline spacing with non-empty white-space lines in between
260 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
268 <!--foo--><!--More than 1 comment disables stripping of this line!-->
307 Extra newlines: More paragraphs with indented comment
322 Extra newlines followed by heading
337 <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>
338 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
341 <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>
346 Extra newlines between heading and content are swallowed
354 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
355 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
362 http://fr.wikipedia.org/wiki/🍺
363 <!-- EasterEgg we love beer, better be able be able to link to it -->
365 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
385 * plain''italic''plain
386 * plain''italic''plain''italic''plain
387 * plain'''bold'''plain
388 * plain'''bold'''plain'''bold'''plain
389 * plain''italic''plain'''bold'''plain
390 * plain'''bold'''plain''italic''plain
391 * plain''italic'''bold-italic'''italic''plain
392 * plain'''bold''bold-italic''bold'''plain
393 * plain'''''bold-italic'''italic''plain
394 * plain'''''bold-italic''bold'''plain
395 * plain''italic'''bold-italic'''''plain
396 * plain'''bold''bold-italic'''''plain
397 * plain l'''italic''plain
398 * plain l''''bold''' plain
401 </li><li> plain<i>italic</i>plain
402 </li><li> plain<i>italic</i>plain<i>italic</i>plain
403 </li><li> plain<b>bold</b>plain
404 </li><li> plain<b>bold</b>plain<b>bold</b>plain
405 </li><li> plain<i>italic</i>plain<b>bold</b>plain
406 </li><li> plain<b>bold</b>plain<i>italic</i>plain
407 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
408 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
409 </li><li> plain<i><b>bold-italic</b>italic</i>plain
410 </li><li> plain<b><i>bold-italic</i>bold</b>plain
411 </li><li> plain<i>italic<b>bold-italic</b></i>plain
412 </li><li> plain<b>bold<i>bold-italic</i></b>plain
413 </li><li> plain l'<i>italic</i>plain
414 </li><li> plain l'<b>bold</b> plain
419 # this example taken from the simple/Moon article
421 Italics and possessives
423 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
425 <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
430 ### 2-quote opening sequence tests
433 Italics and bold: 2-quote opening sequence: (2,2)
443 Italics and bold: 2-quote opening sequence: (2,3)
453 Italics and bold: 2-quote opening sequence: (2,4)
463 Italics and bold: 2-quote opening sequence: (2,5) (php)
472 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
474 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
486 ### 3-quote opening sequence tests
490 Italics and bold: 3-quote opening sequence: (3,2)
500 Italics and bold: 3-quote opening sequence: (3,3)
510 Italics and bold: 3-quote opening sequence: (3,4)
520 Italics and bold: 3-quote opening sequence: (3,5) (php)
529 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
531 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
543 ### 4-quote opening sequence tests
547 Italics and bold: 4-quote opening sequence: (4,2)
557 Italics and bold: 4-quote opening sequence: (4,3)
567 Italics and bold: 4-quote opening sequence: (4,4)
577 Italics and bold: 4-quote opening sequence: (4,5) (php)
586 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
588 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
594 <p>'<b>foo<i></i></b>
600 ### 5-quote opening sequence tests
604 Italics and bold: 5-quote opening sequence: (5,2) (php)
613 # Parsoid reverses the nesting order, compared to the PHP parser
615 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
627 Italics and bold: 5-quote opening sequence: (5,3)
637 Italics and bold: 5-quote opening sequence: (5,4)
641 <p><i><b>foo'</b></i>
647 Italics and bold: 5-quote opening sequence: (5,5)
656 ### multiple quote sequences in a line
659 Italics and bold: multiple quote sequences: (2,4,2)
663 <p><i>foo'<b>bar</b></i>
669 Italics and bold: multiple quote sequences: (2,4,3)
673 <p><i>foo'<b>bar</b></i>
679 Italics and bold: multiple quote sequences: (2,4,4)
683 <p><i>foo'<b>bar'</b></i>
689 Italics and bold: multiple quote sequences: (3,4,2) (php)
698 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
700 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
706 <p><b>foo'</b>bar<i></i>
712 Italics and bold: multiple quote sequences: (3,4,3) (php)
721 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
723 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
729 <p><b>foo'</b>bar<b></b>
734 ### other quote tests
737 Italics and bold: other quote tests: (2,3,5)
739 ''this is about '''foo's family'''''
741 <p><i>this is about <b>foo's family</b></i>
747 Italics and bold: other quote tests: (2,(3,3),2)
749 ''this is about '''foo's''' family''
751 <p><i>this is about <b>foo's</b> family</i>
757 Italics and bold: other quote tests: (3,2,3,2)
759 '''this is about ''foo'''s family''
761 <p><b>this is about <i>foo</i></b><i>s family</i>
766 # The Parsoid team believes the PHP parser's output on this test is wrong.
767 # It only checks for convert-to-bold-on-single-character-word when the word
768 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
769 # This means that the bold token in position 2 (0-indexed) gets converted by
770 # parsoid, but doesn't get changed by the PHP parser.
772 Italics and bold: other quote tests: (3,2,3,3) (php)
776 '''this is about ''foo'''s family'''
778 <p>'<i>this is about </i>foo<b>s family</b>
781 # This is the output the Parsoid team believes to be correct.
783 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
787 '''this is about ''foo'''s family'''
789 <p><b>this is about <i>foo'</i>s family</b>
795 Italics and bold: other quote tests: (3,(2,2),3)
797 '''this is about ''foo's'' family'''
799 <p><b>this is about <i>foo's</i> family</b>
805 Italicized possessive
807 The ''[[Main Page]]'''s talk page.
809 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
818 Non-html5 tags should be accepted
820 <center>''foo''</center>
823 <strike>''foo''</strike>
826 <center><i>foo</i></center>
827 <p><big><i>foo</i></big>
828 <font><i>foo</i></font>
829 <strike><i>foo</i></strike>
835 ### <nowiki> test cases
839 <nowiki> unordered list
841 <nowiki>* This is not an unordered list item.</nowiki>
843 <p>* This is not an unordered list item.
850 <nowiki>Lorem ipsum dolor
871 :There is not nowiki.
872 :There is <nowiki>nowiki</nowiki>.
874 #There is not nowiki.
875 #There is <nowiki>nowiki</nowiki>.
877 *There is not nowiki.
878 *There is <nowiki>nowiki</nowiki>.
880 <dl><dd>There is not nowiki.
881 </dd><dd>There is nowiki.
883 <ol><li>There is not nowiki.
884 </li><li>There is nowiki.
886 <ul><li>There is not nowiki.
887 </li><li>There is nowiki.
893 Entities inside <nowiki>
895 <nowiki><</nowiki>
906 Comments and Indent-Pre
908 <!-- comment 1 --> asdf
910 <!-- comment 1 --> asdf
913 <!-- comment 1 --> asdf
914 <!-- comment 2 -->xyz
916 <!-- comment 1 --> asdf
917 <!-- comment 2 --> xyz
973 asdf<!-- comment 1 -->jkl
983 <!-- foo --> b <!-- bar -->
997 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1003 Comment semantics and delimiters
1005 <!-- --><!----><!-----><!------>
1011 Comment semantics and delimiters, redux
1013 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1014 -- foo -- funky huh? ... -->
1020 Comment semantics and delimiters: directors cut
1022 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1023 everything starting with < followed by !-- until the first -- and > we see,
1024 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1032 Comment semantics: nesting
1034 <!--<!-- no, we're not going to do anything fancy here -->-->
1041 Comment semantics: unclosed comment at end
1043 <!--This comment will run out to the end of the document
1049 Comment in template title
1058 Comment on its own line post-expand
1070 Comment on its own line post-expand with non-significant whitespace
1082 ### paragraph wraping tests
1096 Block tag on one line
1108 Block tag on both lines
1120 Multiple lines without block tags
1138 Empty lines between lines with block tags
1168 ### Preformatted text
1177 And a [[Main Page|link]]
1183 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1188 Ident preformatting with inline content
1199 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1216 Regression with preformatted in <center>
1229 # Expected output in the following test is not really expected (there should be
1230 # <pre> in the output) -- it's only testing for well-formedness.
1232 Bug 6200: Preformatted in <blockquote>
1245 <pre> with attributes (bug 3202)
1247 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1249 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1254 <pre> with width attribute (bug 3202)
1256 <pre width="8">Narrow screen goodies</pre>
1258 <pre width="8">Narrow screen goodies</pre>
1263 <pre> with forbidden attribute (bug 3202)
1265 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1267 <pre width="8">Narrow screen goodies</pre>
1272 Entities inside <pre>
1281 <pre> with forbidden attribute values (bug 3202)
1283 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1285 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1290 <nowiki> inside <pre> (bug 13238)
1298 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1306 <pre><nowiki>Foo</nowiki></pre>
1311 <nowiki> and <pre> preference (first one wins)
1342 </pre> inside nowiki
1344 <nowiki></pre></nowiki>
1351 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1359 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1369 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1381 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1402 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1406 {{echo| foo}}{{echo| bar}}
1411 {{echo|<!--cmt--> foo}}
1413 <!--cmt-->{{echo| foo}}
1415 {{echo|{{echo| }}bar}}
1433 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1470 Templates: Single-line variant of parameter whitespace stripping test
1476 {{echo|{{echo| a}}}}
1478 {{echo|1={{echo| a}}}}
1491 Templates: Strip whitespace from named parameters, but not positional ones
1519 Templates: Parsoid parameter escaping test 1
1523 {{echo|[foo]|{{echo|[bar]}}}}
1525 <p about="#mwt1" typeof="mw:Transclusion"
1526 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1529 ### Parsoid-centric tests for testing RT edge cases for pre
1533 1a. Indent-Pre and Comments
1546 1b. Indent-Pre and Comments
1559 1c. Indent-Pre and Comments
1572 2a. Indent-Pre and tables
1593 2b. Indent-Pre and tables
1609 2c. Indent-Pre and tables (bug 42252)
1626 3a. Indent-Pre and block tags (single-line html)
1634 <pre><span> foo </span>
1639 3b. Indent-Pre and block tags (pre-content on separate line)
1691 4. Multiple spaces at start-of-line
1710 5. White-space in indent-pre
1711 NOTE: the white-space char on 2nd line is significant
1724 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1728 HTML-pre: 1. embedded newlines
1764 HTML-pre: 2: indented text
1777 HTML-pre: 3: other wikitext
1798 ### Definition lists
1805 <dl><dt> name </dt><dd> Definition
1811 Definition list for indentation only
1815 <dl><dd> Indented text
1821 Definition list with no space
1825 <dl><dt>name</dt><dd>Definition
1831 Definition list with URL link
1833 ; http://example.com/ : definition
1835 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1841 Definition list with bracketed URL link
1843 ;[http://www.example.com/ Example]:Something about it
1845 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1851 Definition list with wikilink containing colon
1853 ; [[Help:FAQ]]: The least-read page on Wikipedia
1855 <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
1860 # At Brion's and JeLuF's insistence... :)
1862 Definition list with news link containing colon
1864 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1866 <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!
1872 Malformed definition list with colon
1874 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1876 <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
1882 Definition lists: colon in external link text
1884 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1886 <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
1892 Definition lists: colon in HTML attribute
1894 ;<b style="display: inline">bold</b>
1896 <dl><dt><b style="display: inline">bold</b>
1902 Definition lists: self-closed tag
1904 ;one<br/>two : two-line fun
1906 <dl><dt>one<br />two </dt><dd> two-line fun
1912 Bug 11748: Literal closing tags
1916 <dd>test test test test test</dd>
1918 <dd>test test test test test</dd>
1923 <dd>test test test test test</dd>
1925 <dd>test test test test test</dd>
1931 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1934 ; term : description
1940 <dl><dt> term </dt><dd> description
1951 Definition list with empty definition and following paragraph
1956 <dl><dt> term</dt><dd>
1963 Nested definition lists using html syntax
1980 Definition Lists: No nesting: Multiple dd's
1994 Definition Lists: Indentation: Regular
2010 Definition Lists: Indentation: Missing 1st level
2024 Definition Lists: Indentation: Multi-level indent
2028 <dl><dd><dl><dd><dl><dd>i3
2036 Definition Lists: Hacky use to indent tables
2043 should be left alone
2045 <dl><dd><dl><dd><table>
2050 </td></tr></table></dd></dl></dd></dl>
2052 should be left alone
2055 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2056 ## as an empty dt item. It also ignores all but the last ";" when followed
2057 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2058 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2061 ## Ex: ";;t2 ::d2" is transformed into:
2073 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2074 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2085 ## All Parsoid only definition list tests have this difference.
2087 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2088 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2091 Table / list interaction: indented table with lists in table contents
2113 </td></tr></table></dd></dl>
2118 Table / list interaction: lists nested in tables nested in indented lists
2143 </td></tr></table></dd></dl>
2151 Definition Lists: Nesting: Multi-level (Parsoid only)
2181 Definition Lists: Nesting: Test 2 (Parsoid only)
2201 Definition Lists: Nesting: Test 3 (Parsoid only)
2229 Definition Lists: Nesting: Test 4
2234 <dl><dd><dl><dd><dl><dt>t3
2243 ## The Parsoid team believes the following three test exposes a
2244 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2245 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2247 Definition Lists: Mixed Lists: Test 1 (php)
2255 <dl><dd><dl><dt><ul><li> foo
2265 Definition Lists: Mixed Lists: Test 1 (parsoid)
2273 <dl><dd><dl><dt><ul><li> foo
2274 </li></ul></dt><dd><ul><li> bar
2275 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2279 Definition Lists: Mixed Lists: Test 2
2293 Definition Lists: Mixed Lists: Test 3
2298 <ul><li><dl><dd><dl><dd><dl><dd> d1
2309 Definition Lists: Mixed Lists: Test 4
2314 <ul><li><dl><dt>d1 </dt><dd>d2
2315 </dd><dt>d3 </dt><dd>d4
2323 Definition Lists: Mixed Lists: Test 5
2338 Definition Lists: Mixed Lists: Test 6
2343 <ol><li><ul><li><dl><dd>d1
2355 Definition Lists: Mixed Lists: Test 7
2369 Definition Lists: Mixed Lists: Test 8
2385 Definition Lists: Mixed Lists: Test 9
2389 <ul><li><dl><dt>foo </dt><dd>bar
2397 Definition Lists: Mixed Lists: Test 10
2401 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2408 # The Parsoid team disagrees with the PHP parser's seemingly-random
2409 # rules regarding dd/dt on the next two tests. Parsoid is more
2410 # consistent, and recognizes the shared nesting and keeps the
2411 # still-open tags around until the nesting is complete.
2414 Definition Lists: Mixed Lists: Test 11 (php)
2421 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2426 <dl><dt>boo </dt><dd>baz
2435 Definition Lists: Mixed Lists: Test 11 (parsoid)
2457 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2458 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2459 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2460 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2465 Definition Lists: Weird Ones: Test 1 (php)
2469 *#;*::;; foo : bar (who uses this?)
2471 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2483 Definition Lists: Weird Ones: Test 1 (parsoid)
2487 *#;*::;; foo : bar (who uses this?)
2504 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2505 <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>
2512 External links: non-bracketed
2514 Non-bracketed: http://example.com
2516 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2521 External links: numbered
2523 Numbered: [http://example.com]
2524 Numbered: [http://example.net]
2525 Numbered: [http://example.com]
2527 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2528 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2529 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2534 External links: specified text
2536 Specified text: [http://example.com link]
2538 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2543 External links: trail
2545 Linktrails should not work for external links: [http://example.com link]s
2547 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2552 External links: dollar sign in URL
2554 http://example.com/1$2345
2556 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2561 External links: dollar sign in URL (named)
2563 [http://example.com/1$2345]
2565 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2570 External links: open square bracket forbidden in URL (bug 4377)
2572 http://example.com/1[2345
2574 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2579 External links: open square bracket forbidden in URL (named) (bug 4377)
2581 [http://example.com/1[2345]
2583 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2588 External links: nowiki in URL link text (bug 6230)
2590 [http://example.com/ <nowiki>''example site''</nowiki>]
2592 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2597 External links: newline forbidden in text (bug 6230 regression check)
2599 [http://example.com/ first
2602 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2608 External links: Pipe char between url and text
2610 [http://example.com | link]
2612 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2617 External links: protocol-relative URL in brackets
2619 [//example.com/ Test]
2621 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2626 External links: protocol-relative URL in brackets without text
2630 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2635 External links: protocol-relative URL in free text is left alone
2639 <p>//example.com/Foo
2644 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2646 foo//example.com/Foo
2648 <p>foo//example.com/Foo
2655 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2657 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2662 External image from https
2664 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2666 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2671 Link to non-http image, no img tag
2673 Link to non-http image, no img tag: ftp://example.com/test.jpg
2675 <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>
2680 External links: terminating separator
2682 Terminating separator: http://example.com/thing,
2684 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2689 External links: intervening separator
2691 Intervening separator: http://example.com/1,2,3
2693 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2698 External links: old bug with URL in query
2700 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2702 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2707 External links: old URL-in-URL bug, mixed protocols
2709 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2711 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2716 External links: URL in text
2718 URL in text: [http://example.com http://example.com]
2720 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2725 External links: Clickable images
2727 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2729 <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>
2734 External links: raw ampersand
2736 Old & use: http://x&y
2738 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2743 External links: encoded ampersand
2745 Old & use: http://x&y
2747 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2752 External links: encoded equals (bug 6102)
2754 http://example.com/?foo=bar
2756 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2761 External links: [raw ampersand]
2763 Old & use: [http://x&y]
2765 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2770 External links: [encoded ampersand]
2772 Old & use: [http://x&y]
2774 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2779 External links: [encoded equals] (bug 6102)
2781 [http://example.com/?foo=bar]
2783 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2788 External links: [IDN ignored character reference in hostname; strip it right off]
2790 [http://e‌xample.com/]
2792 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2796 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2797 # Where an external link could easily circumvent the sanitization of the text of
2798 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2799 # test demands a higher standard. That's a bit strange.
2803 # http://example.com -> [http://example.com|http://example.com]
2804 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2806 # The first example is sanitized, but the second is not. Any security benefits
2807 # from this production are trivial to circumvent. Either remove this test and
2808 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2809 # the test accordingly.
2814 External links: IDN ignored character reference in hostname; strip it right off
2816 http://e‌xample.com/
2818 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2823 External links: www.jpeg.org (bug 554)
2827 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2832 External links: URL within URL (original bug 2)
2834 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2836 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2841 BUG 361: URL inside bracketed URL
2843 [http://www.example.com/foo http://www.example.com/bar]
2845 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2850 BUG 361: URL within URL, not bracketed
2852 http://www.example.com/foo?=http://www.example.com/bar
2854 <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>
2859 BUG 289: ">"-token in URL-tail
2861 http://www.example.com/<hello>
2863 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2868 BUG 289: literal ">"-token in URL-tail
2870 http://www.example.com/<b>html</b>
2872 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2877 BUG 289: ">"-token in bracketed URL
2879 [http://www.example.com/<hello> stuff]
2881 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2886 BUG 289: literal ">"-token in bracketed URL
2888 [http://www.example.com/<b>html</b> stuff]
2890 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2895 BUG 289: literal double quote at end of URL
2897 http://www.example.com/"hello"
2899 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2904 BUG 289: literal double quote in bracketed URL
2906 [http://www.example.com/"hello" stuff]
2908 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2913 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2915 [http://www.example.com test]
2917 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2922 External links: link text with spaces
2924 [http://www.example.com a b c]
2925 [http://www.example.com ''a'' ''b'']
2927 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2928 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2933 External links: wiki links within external link (Bug 3695)
2935 [http://example.com [[wikilink]] embedded in ext link]
2937 <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>
2942 BUG 787: Links with one slash after the url protocol are invalid
2946 [http:/example.com title]
2948 <p>http:/example.com
2949 </p><p>[http:/example.com title]
2954 Bracketed external links with template-generated invalid target
2956 [{{echo|http:/example.com}} title]
2958 <p>[http:/example.com title]
2963 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2965 ''[http://example.com text'']
2966 [http://example.com '''text]'''
2967 ''Something [http://example.com in italic'']
2968 ''Something [http://example.com mixed''''', even bold]'''
2969 '''''Now [http://example.com both''''']
2971 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2972 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2973 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2974 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2975 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2981 Bug 4781: %26 in URL
2983 http://www.example.com/?title=AT%26T
2985 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2989 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2990 # % is actually legal in HTML5. Any change in output would need testing though.
2992 Bug 4781, 5267: %25 in URL
2994 http://www.example.com/?title=100%25_Bran
2996 <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>
3001 Bug 4781, 5267: %28, %29 in URL
3003 http://www.example.com/?title=Ben-Hur_%281959_film%29
3005 <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>
3011 Bug 4781: %26 in autonumber URL
3013 [http://www.example.com/?title=AT%26T]
3015 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3020 Bug 4781, 5267: %26 in autonumber URL
3022 [http://www.example.com/?title=100%25_Bran]
3024 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3029 Bug 4781, 5267: %28, %29 in autonumber URL
3031 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3033 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3039 Bug 4781: %26 in bracketed URL
3041 [http://www.example.com/?title=AT%26T link]
3043 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3048 Bug 4781, 5267: %26 in bracketed URL
3050 [http://www.example.com/?title=100%25_Bran link]
3052 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3057 Bug 4781, 5267: %28, %29 in bracketed URL
3059 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3061 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3066 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3068 Some [http://example.com/ pretty ''italics'' and stuff]!
3070 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3075 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3077 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3079 <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>
3084 External link containing double-single-quotes with no space separating the url from text in italics
3086 [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]].]
3088 <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>
3093 External link with comments in link text
3095 [http://www.google.com Google <!-- comment -->]
3097 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3102 URL-encoding in URL functions (single parameter)
3104 {{localurl:Some page|amp=&}}
3106 <p>/index.php?title=Some_page&amp=&
3111 URL-encoding in URL functions (multiple parameters)
3113 {{localurl:Some page|q=?&=&}}
3115 <p>/index.php?title=Some_page&q=?&amp=&
3122 http://example.com/index.php?foozoid%5B%5D=bar
3124 http://example.com/index.php?foozoid[]=bar
3126 <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>
3127 </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>
3132 IPv6 urls (bug 21261)
3136 http://[2404:130:0:1000::187:2]/index.php
3138 <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>
3143 Non-extlinks in brackets
3152 [{{echo|foo}} ''bar'']
3153 [{{echo|foo}}l's] errand
3154 [{{echo|foo}}l's errand]
3156 [url=http://example.com]
3169 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3180 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3182 Normal text. '''''Bold italic text.''''' Normal text.
3184 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3185 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3191 Unclosed and unmatched quotes (php)
3195 '''''Bold italic text '''with bold deactivated''' in between.'''''
3197 '''''Bold italic text ''with italic deactivated'' in between.'''''
3201 ..spanning two paragraphs (should not work).'''
3203 '''Bold tag left open
3205 ''Italic tag left open
3209 <!-- Unmatching number of opening, closing tags: -->
3210 '''This year''''s election ''should'' beat '''last year''''s.
3212 ''Tom'''s car is bigger than ''Susan'''s.
3214 Plain ''italic'''s plain
3216 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3217 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3218 </p><p><b>Bold text..</b>
3219 </p><p>..spanning two paragraphs (should not work).
3220 </p><p><b>Bold tag left open</b>
3221 </p><p><i>Italic tag left open</i>
3223 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3224 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3225 </p><p>Plain <i>italic'</i>s plain
3228 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3229 # parser strips. The wikitext contains just the first half of the bold
3230 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3231 # differently than the PHP parser.)
3233 Unclosed and unmatched quotes (parsoid)
3237 '''''Bold italic text '''with bold deactivated''' in between.'''''
3239 '''''Bold italic text ''with italic deactivated'' in between.'''''
3243 ..spanning two paragraphs (should not work).'''
3245 '''Bold tag left open
3247 ''Italic tag left open
3251 <!-- Unmatching number of opening, closing tags: -->
3252 '''This year''''s election ''should'' beat '''last year''''s.
3254 ''Tom'''s car is bigger than ''Susan'''s.
3256 Plain ''italic'''s plain
3258 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3259 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3260 </p><p><b>Bold text..</b>
3261 </p><p>..spanning two paragraphs (should not work).<b></b>
3262 </p><p><b>Bold tag left open</b>
3263 </p><p><i>Italic tag left open</i>
3265 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3266 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3267 </p><p>Plain <i>italic'</i>s plain
3274 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3277 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3278 # is the bare minimun required by the spec, see:
3279 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3281 A table with no data. (php)
3288 # Parsoid team replies: empty table tags are legal in HTML5
3290 A table with no data. (parsoid)
3299 # A table with nothing but a caption is invalid XHTML, we might want to render
3300 # this as <p>caption</p>
3302 A table with nothing but a caption (php)
3312 </caption><tr><td></td></tr></table>
3315 # Parsoid team replies: table with only a caption is legal in HTML5
3317 A table with nothing but a caption (parsoid)
3325 <table><caption> caption</caption></table>
3329 A table with caption with default-spaced attributes and a table row
3332 |+ style="color: red;" | caption1
3338 <caption style="color: red;"> caption1
3347 A table with captions with non-default spaced attributes and a table row
3350 |+style="color: red;"|caption2
3351 |+ style="color: red;"| caption3
3357 <caption style="color: red;">caption2
3359 <caption style="color: red;"> caption3
3368 Table td-cell syntax variations
3372 | foo bar foo || baz
3373 | style='color:red;' | baz
3374 | style='color:red;' || baz
3381 <td> foo bar foo </td>
3384 <td style="color:red;"> baz
3386 <td> style='color:red;' </td>
3414 Simple table but with multiple dashes for row wikitext
3432 Multiplication table
3434 {| border="1" cellpadding="2"
3435 |+Multiplication table
3437 ! × !! 1 !! 2 !! 3
3455 <table border="1" cellpadding="2">
3456 <caption>Multiplication table
3503 Accept "||" in table headings
3518 Accept "||" in indented table headings
3528 </th></tr></table></dd></dl>
3533 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3550 Accept "| !" at start of line in tables (ignore !-attribute)
3554 | !style="color:red" | bar
3566 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 +/-
3570 |style='color:red;'|+1
3571 |style='color:blue;'|-1
3583 <td style="color:red;">+1
3585 <td style="color:blue;">-1
3609 |rowspan=2| Cell 2, row 1 (and 2)
3620 <td rowspan="2"> Cell 2, row 1 (and 2)
3638 {| bgcolor=#ABCDEF border=2
3643 |the original table again
3651 <table bgcolor="#ABCDEF" border="2">
3659 <td>the original table again
3665 Invalid attributes in table cell (bug 1830)
3680 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3683 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3687 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3688 <td>]" onmouseover="alert(document.cookie)">test
3697 Indented table markup mixed with indented pre content (proposed in bug 6200)
3702 Text that should be rendered preformatted
3710 <pre>Text that should be rendered preformatted
3719 Template-generated table cell attributes and cell content
3727 <td style="color: red"> Foo
3733 Table with row followed by newlines and table heading
3751 Table with empty line following the start tag
3768 # FIXME: Preserve the attribute properly (with an empty string as value) in
3769 # the PHP parser. Parsoid implements the behavior below.
3771 Table attributes with empty value
3783 </td></tr></tbody></table>
3788 Wikitext table with a lot of comments
3811 Wikitext table with double-line table cell
3828 Table cell with a single comment
3844 # The expected HTML structure in this test is debatable. The PHP parser does
3845 # not parse this kind of table at all. The main focus for Parsoid is on
3846 # round-tripping, so this output is ok for now. TODO: revisit!
3848 Wikitext table with html-syntax row (Parsoid)
3860 <td>foo</td></tr></tbody></table>
3867 Plain link, capitalized
3871 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3876 Plain link, uncapitalized
3880 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3887 [[Main Page|The Main Page]]
3889 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3894 Piped link with comment in link text
3896 [[Main Page|The Main<!--front--> Page]]
3898 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3907 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3912 Broken link with fragment
3914 [[Zigzagzogzagzig#zug]]
3916 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3921 Special page link with fragment
3923 [[Special:Version#anchor]]
3925 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3930 Nonexistent special page link with fragment
3932 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3934 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3941 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3943 <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>
3950 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3952 <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>!!!
3963 Bug 43661: Piped links with identical prefixes
3965 [[prefixed article|prefixed articles with spaces]]
3967 [[prefixed article|prefixed articlesaoeu]]
3969 [[Main Page|Main Page test]]
3971 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3972 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3973 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3979 Link with HTML entity in suffix / tail
3981 [[Main Page]]", [[Main Page]]a
3983 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3988 Link with 3 brackets
3997 Piped link with 3 brackets
3999 [[[main page|the main page]]]
4001 <p>[[[main page|the main page]]]
4006 Link with multiple pipes
4008 [[Main Page|The|Main|Page]]
4010 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4017 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4019 <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>
4024 Piped link to namespace
4026 [[Meta:Disclaimers|The disclaimers]]
4028 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4035 [[Usually caused by a typo (oops}]]
4037 <p>[[Usually caused by a typo (oops}]]
4042 Link containing % (not as a hex sequence)
4046 <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>
4051 Link containing % as a single hex sequence interpreted to char
4055 <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>
4060 Link containing % as a double hex sequence interpreted to hex sequence
4064 <p>[[7%2525 Solution]]
4069 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4070 Example for such a section: == < ==
4072 [[%23%3c]][[%23%3e]]
4074 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4079 Link containing "<#" and ">#" as a hex sequences
4081 [[%3c%23]][[%3e%23]]
4083 <p>[[%3c%23]][[%3e%23]]
4088 Link containing an equals sign
4090 [[Special:BookSources/isbn=4-00-026157-6]]
4092 <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>
4099 Just a test of an article title containing a tilde.
4102 # note that links containing signatures, like [[Foo~~~~]], are
4103 # massaged by the pre-save transform (PST) and so the tildes are never
4104 # seen by the parser.
4106 Link containing a tilde
4110 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4115 Link containing double-single-quotes '' (bug 4598)
4117 [[Lista d''e paise d''o munno]]
4119 <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>
4124 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4126 Some [[Link|pretty ''italics'' and stuff]]!
4128 <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>!
4133 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4135 ''Some [[Link|pretty ''italics'' and stuff]]!
4137 <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>
4142 Link with double quotes in title part (literal) and alternate part (interpreted)
4144 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4148 [[''Pentecoste''|Pentecoste]]
4150 [[''Pentecoste''|''Pentecoste'']]
4152 <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>
4153 </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>
4154 </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>
4155 </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>
4160 Broken image links with HTML captions (bug 39700)
4162 [[File:Nonexistent|<script></script>]]
4163 [[File:Nonexistent|100px|<script></script>]]
4164 [[File:Nonexistent|<]]
4165 [[File:Nonexistent|a<i>b</i>c]]
4167 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4168 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4169 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4170 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4177 [[http://www.example.com]]
4179 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4184 Plain link to URL with link text
4186 [[http://www.example.com Link text]]
4188 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4193 Plain link to protocol-relative URL
4195 [[//www.example.com]]
4197 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4202 Plain link to protocol-relative URL with link text
4204 [[//www.example.com Link text]]
4206 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4211 Plain link to page with question mark in title
4217 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4218 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4223 # I'm fairly sure the expected result here is wrong.
4224 # We want these to be URL links, not pseudo-pages with URLs for titles....
4225 # However the current output is also pretty screwy.
4228 # I'm changing it to match the current output--it arguably makes more
4229 # sense in the light of the test above. Old expected result was:
4230 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4232 # But I think this test is bordering on "garbage in, garbage out" anyway.
4237 Piped link to URL: [[http://www.example.com|an example URL]]
4239 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4244 BUG 2: [[page|http://url/]] should link to page, not http://url/
4246 [[Main Page|http://url/]]
4248 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4253 BUG 337: Escaped self-links should be bold
4257 [[Bug462]] [[Bug462]]
4259 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4264 Self-link to section should not be bold
4268 [[Main Page#section]]
4270 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4281 Self-link to numeric title
4287 <p><strong class="selflink">0</strong>
4292 Link to numeric-equivalent title
4298 <p><a href="/wiki/00" title="00">00</a>
4303 <nowiki> inside a link
4305 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4307 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4312 Non-breaking spaces in title
4314 [[ Main Page ]]
4316 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4321 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4327 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4332 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4338 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4343 Internal link with en linktrail: no apostrophes (bug 27473)
4349 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4354 Internal link with ca linktrail with apostrophes (bug 27473)
4360 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4365 Internal link with kaa linktrail with apostrophes (bug 27473)
4371 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4382 Internal link with is link prefix
4386 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4388 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4399 Internal link with is link trail and link prefix
4403 [[mótmælendatrú|xxx]]ar
4405 mótmælenda[[söfnuður]]
4406 mótmælenda[[söfnuður|söfnuðir]]
4407 mótmælenda[[söfnuður|söfnuðir]]xxx
4409 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4410 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4411 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4412 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4413 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4418 Parsoid link trail escaping
4420 parsoid=html2wt,html2html
4424 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4428 Parsoid link prefix escaping
4431 parsoid=html2wt,html2html
4433 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4435 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4439 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4447 [http://wp.org ''foo'']
4449 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4450 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4451 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4452 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4457 ### Interwiki links (see maintenance/interwiki.sql)
4461 Inline interwiki link
4463 [[MeatBall:SoftSecurity]]
4465 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4470 Inline interwiki link with empty title (bug 2372)
4474 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4479 Interwiki link encoding conversion (bug 1636)
4481 *[[Wikipedia:ro:Olteniţa]]
4482 *[[Wikipedia:ro:Olteniţa]]
4484 <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>
4485 </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>
4491 Interwiki link with fragment (bug 2130)
4493 [[MeatBall:SoftSecurity#foo]]
4495 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4510 Double interlanguage link
4521 Interlanguage link, with prefix links
4533 Double interlanguage link, with prefix links (bug 8897)
4546 Parsoid-specific test: Wikilinks with should RT properly
4552 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4557 Parsoid: handle constructor well
4565 <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>
4568 <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>
4572 ## Redirects, Parsoid-only
4575 Simple redirect to page
4579 #REDIRECT [[Main Page]]
4581 <link rel="mw:PageProp/redirect" href="./Main_Page">
4585 Redirect to category
4589 #REDIRECT [[Category:Foo]]
4591 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4595 Redirect to category page
4597 parsoid=wt2html,html2html
4599 #REDIRECT [[:Category:Foo]]
4601 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4605 Redirect to image page
4609 #REDIRECT [[File:Wiki.png]]
4611 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4615 Redirect to language
4619 #REDIRECT [[en:File:Wiki.png]]
4621 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4625 Redirect to interwiki
4629 #REDIRECT [[meatball:File:Wiki.png]]
4631 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4647 Broken br tag sanitization
4656 Incorrecly removing closing slashes from correctly formed XHTML
4658 <br style="clear:both;" />
4660 <p><br style="clear:both;" />
4665 Failing to transform badly formed HTML into correct XHTML
4667 <br style="clear: left;">
4668 <br style="clear: right;">
4669 <br style="clear: both;">
4671 <p><br style="clear: left;" />
4672 <br style="clear: right;" />
4673 <br style="clear: both;" />
4678 Handling html with a div self-closing tag
4687 <p><div title />
4691 <p><div title=bar />
4692 <div title=bar/>
4694 <div title="bar/"></div>
4700 Handling html with a br self-closing tag
4709 <p><br title="title" />
4710 <br title="title" />
4719 Horizontal ruler (should it add that extra space?)
4733 Horizontal ruler -- 4+ dashes render hr
4742 Horizontal ruler -- eats additional dashes on the same line
4751 Horizontal ruler -- does not collapse dashes on consecutive lines
4762 Horizontal ruler -- <4 dashes render as plain text
4771 Horizontal ruler -- Supports content following dashes on same line
4780 ### Block-level elements
4803 <ol><li>Numbered list
4820 ***#Number on level 4
4822 **#Number on level 3
4823 **#Number on level 3
4827 #** Level 3, but ordered
4830 <ol><li> with numbers
4832 <ul><li> and bullets
4834 <ol><li> and numbers
4836 </li><li>bullets again
4837 <ul><li>bullet level 2
4838 <ul><li>bullet level 3
4839 <ol><li>Number on level 4
4842 </li><li>bullet level 2
4843 <ol><li>Number on level 3
4844 </li><li>Number on level 3
4847 <ol><li>number level 2
4850 <ul><li><ul><li> Level 3
4854 <ol><li><ul><li><ul><li> Level 3, but ordered
4888 Nested lists 3 (first element empty)
4901 Nested lists 4 (first element empty)
4914 Nested lists 5 (both elements empty)
4927 Nested lists 6 (both elements empty)
4940 Nested lists 7 (skip initial nesting levels)
4944 <ul><li><ul><li><ul><li> foo
4952 Nested lists 8 (multiple nesting transitions)
4960 <ul><li><ul><li> bar
4970 1. Lists with start-of-line-transparent tokens before bullets: Comments
4984 2. Lists with start-of-line-transparent tokens before bullets: Template close
4996 Unbalanced closing block tags break a list
4997 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5007 </li></ul></div><div>
5013 Unbalanced closing non-block tags don't break a list
5014 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5024 <ul><li>a<span></span>
5030 Unclosed formatting tags that straddle lists are closed and reopened
5031 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5039 </li><li> <s> b </s>
5044 List embedded in a non-block tag
5045 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5053 <p><small></small></p>
5059 <p><small></small></p>
5063 List items are not parsed correctly following a <pre> block (bug 785)
5069 <ul><li> <pre>foo</pre>
5070 </li><li> <pre>bar</pre>
5077 List items from template
5088 * notSOL{{inner list}}
5107 List interrupted by empty line or heading
5117 <ul><li><ul><li> bar
5120 <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>
5121 <ul><li> Another list item
5127 Multiple list tags generated by templates
5142 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5145 <!--This line will NOT split the list-->
5147 <!--This line will NOT split the list either-->
5149 <!--foo--> <!--This line with more than 1 comment will split the list-->
5163 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5165 parsoid=wt2html,wt2wt
5169 * {{echo|<li>templated li-hack}}
5170 * <!--foo--> <li> unsupported li-hack with preceding comments
5173 <li><li>not a li-hack
5179 <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>
5180 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5183 <li></li><li>not a li-hack
5192 Magic Word: {{CURRENTDAY}}
5201 Magic Word: {{CURRENTDAY2}}
5210 Magic Word: {{CURRENTDAYNAME}}
5219 Magic Word: {{CURRENTDOW}}
5228 Magic Word: {{CURRENTMONTH}}
5237 Magic Word: {{CURRENTMONTHABBREV}}
5239 {{CURRENTMONTHABBREV}}
5246 Magic Word: {{CURRENTMONTHNAME}}
5248 {{CURRENTMONTHNAME}}
5255 Magic Word: {{CURRENTMONTHNAMEGEN}}
5257 {{CURRENTMONTHNAMEGEN}}
5264 Magic Word: {{CURRENTTIME}}
5273 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5282 Magic Word: {{CURRENTYEAR}}
5291 Magic Word: {{FULLPAGENAME}}
5293 title=[[User:Ævar Arnfjörð Bjarmason]]
5297 <p>User:Ævar Arnfjörð Bjarmason
5302 Magic Word: {{FULLPAGENAMEE}}
5304 title=[[User:Ævar Arnfjörð Bjarmason]]
5308 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5313 Magic Word: {{NAMESPACE}}
5315 title=[[User:Ævar Arnfjörð Bjarmason]]
5324 Magic Word: {{NAMESPACEE}}
5326 title=[[User:Ævar Arnfjörð Bjarmason]]
5335 Magic Word: {{NAMESPACENUMBER}}
5337 title=[[User:Ævar Arnfjörð Bjarmason]]
5346 Magic Word: {{NUMBEROFFILES}}
5355 Magic Word: {{PAGENAME}}
5357 title=[[User:Ævar Arnfjörð Bjarmason]]
5361 <p>Ævar Arnfjörð Bjarmason
5366 Magic Word: {{PAGENAME}} with metacharacters
5368 title=[['foo & bar = baz']]
5372 <p><i>'foo & bar = baz'</i>
5377 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5379 title=[[*RFC 1234 http://example.com/]]
5383 <p>*RFC 1234 http://example.com/
5388 Magic Word: {{PAGENAMEE}}
5390 title=[[User:Ævar Arnfjörð Bjarmason]]
5394 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5399 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5401 title=[[*RFC 1234 http://example.com/]]
5405 <p>*RFC_1234_http://example.com/
5410 Magic Word: {{REVISIONID}}
5419 Magic Word: {{SCRIPTPATH}}
5428 Magic Word: {{SERVER}}
5432 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5437 Magic Word: {{SERVERNAME}}
5446 Magic Word: {{SITENAME}}
5455 Case-sensitive magic words, when cased differently, should just be template transclusions
5462 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5463 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5464 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5465 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5470 Case-insensitive magic words should still work with weird casing.
5480 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5485 Namespace 1 {{ns:1}}
5494 Namespace 1 {{ns:01}}
5503 Namespace 0 {{ns:0}} (bug 4783)
5511 Namespace 0 {{ns:00}} (bug 4783)
5519 Namespace -1 {{ns:-1}}
5528 Namespace User {{ns:User}}
5537 Namespace User talk {{ns:User_talk}}
5546 Namespace User talk {{ns:uSeR tAlK}}
5555 Namespace File {{ns:File}}
5564 Namespace File {{ns:Image}}
5573 Namespace (lang=de) Benutzer {{ns:User}}
5584 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5590 <p>Benutzer Diskussion
5598 {{urlencode:hi world?!}}
5599 {{urlencode:hi world?!|WIKI}}
5600 {{urlencode:hi world?!|PATH}}
5601 {{urlencode:hi world?!|QUERY}}
5614 Magic links: internal link to RFC (bug 479)
5618 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5623 Magic links: RFC (bug 479)
5627 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5632 Magic links: ISBN (bug 1937)
5636 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5641 Magic links: PMID incorrectly converts space to underscore
5645 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5654 Nonexistent template
5656 {{thistemplatedoesnotexist}}
5658 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5663 Template with invalid target containing tags
5665 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5667 <p>{{a<b>b</b>|foo|a=b|a = b}}
5672 Template with invalid target containing unclosed tag
5674 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5676 <p>{{a<b>|foo|a=b|a = b}}</b>
5683 This is a test template
5691 <p>This is a test template
5696 Template with explicit namespace
5700 <p>This is a test template
5708 This is a test template with parameter {{{param}}}
5714 {{paramtest|param=foo}}
5716 <p>This is a test template with parameter foo
5721 Template:paramtestnum
5727 Template unnamed parameter
5729 {{paramtestnum|Main Page|the main page}}
5731 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5736 Template:templatesimple
5742 Template:templateredirect
5744 #redirect [[Template:templatesimple]]
5748 Template:templateasargtestnum
5754 Template:templateasargtest
5756 {{template{{{templ}}}}}
5760 Template:templateasargtest2
5766 Template with template name as unnamed argument
5768 {{templateasargtestnum|templatesimple}}
5775 Template with template name as argument
5777 {{templateasargtest|templ=simple}}
5784 Template with template name as argument (2)
5786 {{templateasargtest2|templ=templatesimple}}
5793 Template:templateasargtestdefault
5795 {{{{{templ|templatesimple}}}}}
5805 Template with default value
5807 {{templateasargtestdefault}}
5814 Template with default value (value set)
5816 {{templateasargtestdefault|templ=templa}}
5825 {{templateredirect}}
5832 Template with argument in separate line
5834 {{ templateasargtest |
5842 Template with complex template as argument
5845 param ={{ templateasargtest |
5848 <p>This is a test template with parameter (test)
5853 Template with thumb image (with link in description)
5856 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5858 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>
5863 Template:complextemplate
5865 {{{1}}} {{paramtest|
5866 param ={{{param}}}}}
5870 Template with complex arguments
5873 param ={{ templateasargtest |
5874 templ = simple }}|[[Template:complextemplate|link]]}}
5876 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5881 BUG 553: link with two variables in a piped link
5884 |[[{{{1}}}|{{{2}}}]]
5889 <td>[[{{{1}}}|{{{2}}}]]
5895 Magic variable as template parameter
5897 {{paramtest|param={{SITENAME}}}}
5899 <p>This is a test template with parameter MediaWiki
5906 [[{{{param}}}|link]]
5910 Template parameter as link source
5912 {{linktest|param=Main Page}}
5914 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5919 Template-generated attribute string (k='v')
5921 <span {{attr_str|id|v1}}>bar</span>
5923 <p><span id="v1">bar</span>
5930 including another template, {{paramtest|param={{{arg}}}}}
5934 Template passing argument to another template
5936 {{paramtest2|arg='hmm'}}
5938 <p>including another template, This is a test template with parameter 'hmm'
5949 Template as link source
5953 [[{{linktest2}}|Main Page]]
5955 [[{{linktest2}}]]Page
5957 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5958 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5959 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5977 Template infinite loop
5981 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5986 Template from main namespace
6005 BUG 529: Template with table, not included at beginning of line
6024 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6044 BUG 41: Template parameters shown as broken links
6053 Template with targets containing wikilinks
6057 {{[[{{echo|foo}}]]}}
6059 {{{{echo|[[foo}}]]}}
6061 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6062 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6070 ''None'' of '''this''' should be
6072 but rather passed unmodified
6076 # hmm, fix this or just deprecate msgnw and document its behavior?
6082 {{msgnw:MSGNW test}}
6084 <p>''None'' of '''this''' should be
6086 but rather passed unmodified
6094 {{int:youhavenewmessages|lots of money|not!}}
6096 <p>You have lots of money (not!).
6103 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6107 <includeonly> and <noinclude> being included
6118 <onlyinclude>Foo</onlyinclude>bar
6122 <onlyinclude> being included
6134 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6138 <onlyinclude> and <includeonly> being included
6147 <includeonly> and <noinclude> on a page
6149 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6156 Un-closed <noinclude>
6163 <onlyinclude> on a page
6165 <onlyinclude>Foo</onlyinclude>bar
6172 Un-closed <onlyinclude>
6179 Self-closed noinclude, includeonly, onlyinclude tags
6190 Unbalanced includeonly and noinclude tags
6194 |b</noinclude></noinclude>
6195 |c</noinclude></includeonly>
6196 |d</includeonly></includeonly>
6205 <td>c</includeonly>
6207 <td>d</includeonly></includeonly>
6213 Template:Includeonly section
6216 ==Includeonly section==
6222 Bug 6563: Edit link generation for section shown by <includeonly>
6224 {{includeonly section}}
6226 <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>
6227 <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>
6231 # Uses same input as the contents of [[Template:Includeonly section]]
6233 Bug 6563: Section extraction for section shown by <includeonly>
6238 ==Includeonly section==
6246 Bug 6563: Edit link generation for section suppressed by <includeonly>
6249 ==Includeonly section==
6253 <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>
6258 Bug 6563: Section extraction for section suppressed by <includeonly>
6263 ==Includeonly section==
6271 Un-closed <includeonly>
6278 ### <includeonly> and <noinclude> in attributes
6281 0. includeonly around the entire attribute
6283 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6285 <p><span id="v2">bar</span>
6290 1. includeonly in html attr key
6292 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6294 <p><span id="foo">bar</span>
6299 2. includeonly in html attr value
6301 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6302 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6304 <p><span id="v1">bar</span>
6305 <span id="v1">bar</span>
6310 3. includeonly in part of an attr value
6312 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6314 <p><span style="color:red;">bar</span>
6319 ### Testing parsing of templates where a template arg
6320 ### has the same name as the template itself.
6330 Templates: Template Name/Arg clash: 1. Use of positional param
6339 Templates: Template Name/Arg clash: 2. Use of named param
6348 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6357 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6361 Templates: 1. Simple use
6370 Templates: 2. Inside a block tag
6372 <div>{{echo|Foo}}</div>
6379 Templates: P-wrapping: 1a. Templates on consecutive lines
6390 Templates: P-wrapping: 1b. Templates on consecutive lines
6404 Templates: P-wrapping: 1c. Templates on consecutive lines
6407 {{echo|bar}} <div>baz</div>
6416 Templates: P-wrapping: 1d. Template preceded by comment-only line
6418 parsoid=wt2html,wt2wt
6424 <p typeof="mw:Transclusion">Bar
6429 Templates: Inline Text: 1. Multiple tmeplate uses
6431 {{echo|Foo}}bar{{echo|baz}}
6438 Templates: Inline Text: 2. Back-to-back template uses
6440 {{echo|Foo}}{{echo|bar}}
6447 Templates: Block Tags: 1. Multiple template uses
6449 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6451 <div>Foo</div><div>bar</div><div>baz</div>
6456 Templates: Block Tags: 2. Back-to-back template uses
6458 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6460 <div>Foo</div><div>bar</div>
6465 Templates: Links: 1. Simple example
6467 {{echo|[[Foo|bar]]}}
6469 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6474 Templates: Links: 2. Generation of link href
6476 [[{{echo|Foo}}|bar]]
6478 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6483 Templates: Links: 3. Generation of part of a link href
6485 [[Fo{{echo|o}}|bar]]
6489 [[Foo{{echo|bar}}baz]]
6491 [[Foo{{echo|bar}}|bar]]
6493 [[:Foo{{echo|bar}}]]
6495 [[:Foo{{echo|bar}}|bar]]
6497 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6498 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6499 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6500 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6501 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6502 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6507 Templates: Links: 4. Multiple templates generating link href
6509 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6511 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6516 Templates: Links: 5. Generation of link text
6518 [[Foo|{{echo|bar}}]]
6520 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6525 Templates: Links: 5. Nested templates (only outermost template should be marked)
6527 {{echo|[[{{echo|Foo}}|bar]]}}
6529 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6534 Templates: HTML Tag: 1. Generation of HTML attr. key
6536 <div {{echo|style}}="color:red;">foo</div>
6538 <div style="color:red;">foo</div>
6543 Templates: HTML Tag: 2. Generation of HTML attr. value
6545 <div style={{echo|'color:red;'}}>foo</div>
6547 <div style="color:red;">foo</div>
6552 Templates: HTML Tag: 3. Generation of HTML attr key and value
6554 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6556 <div style="color:red;">foo</div>
6561 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6563 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6565 <div title="This is a long title with just one piece templated">foo</div>
6570 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6572 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6574 <div title="This is a long title with just one piece templated">foo</div>
6579 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6581 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6583 <div title="This is a long title with just one piece templated">foo</div>
6588 Templates: HTML Tag: 7. Generation of partial attribute key string
6590 <div st{{echo|yle}}="color:red;">foo</div>
6592 <div style="color:red;">foo</div>
6597 Templates: HTML Tables: 1. Generating start of a HTML table
6599 {{echo|<table><tr><td>foo</td>}}</tr></table>
6601 <table><tr><td>foo</td></tr></table>
6606 Templates: HTML Tables: 2a. Generating middle of a HTML table
6608 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6610 <table><tr><td>foo</td></tr></table>
6615 Templates: HTML Tables: 2b. Generating middle of a HTML table
6617 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6619 <table><tr><td>foo</td></tr></table>
6624 Templates: HTML Tables: 3. Generating end of a HTML table
6626 <table><tr>{{echo|<td>foo</td></tr></table>}}
6628 <table><tr><td>foo</td></tr></table>
6633 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6635 {{echo|<table>}}<tr><td>foo</td></tr></table>
6637 <table><tr><td>foo</td></tr></table>
6642 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6644 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6646 <table><tr><td>foo</td></tr></table>
6651 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6653 <table><tr>{{echo|<td>}}foo</td></tr></table>
6655 <table><tr><td>foo</td></tr></table>
6660 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6662 <table><tr><td>foo{{echo|</td>}}</tr></table>
6664 <table><tr><td>foo</td></tr></table>
6669 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6671 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6673 <table><tr><td>foo</td></tr></table>
6678 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6680 <table><tr><td>foo</td></tr>{{echo|</table>}}
6682 <table><tr><td>foo</td></tr></table>
6687 Templates: Wiki Tables: 1a. Fostering of entire template content
6695 <tr><td></td></tr></table>
6700 Templates: Wiki Tables: 1b. Fostering of entire template content
6713 <tr><td></td></tr></table>
6718 Templates: Wiki Tables: 2. Fostering of partial template content
6728 <tr><td></td></tr></table>
6733 Templates: Wiki Tables: 3. td-content via multiple templates
6736 {{echo|{{pipe}}a}}{{echo|b}}
6747 Templates: Wiki Tables: 4. Templated tags, no content
6753 <tr><td></td></tr></table>
6758 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6772 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6786 Templates: Lists: Multi-line list-items via templates
6788 *{{echo|a {{nonexistent|
6790 *{{echo|b {{nonexistent|
6793 <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>
6794 </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>
6800 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6802 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6804 <p><i>ab</i>c<i>d</i>e
6809 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6810 (PHP parser generates misnested html)
6812 parsoid=wt2html,wt2wt
6814 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6816 <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>
6820 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6821 (PHP parser generates misnested html)
6823 parsoid=wt2html,wt2wt
6825 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6827 <div typeof="mw:Transclusion"><i>a</i></div>
6828 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
6829 <div typeof="mw:Transclusion">e</div>
6833 Templates: Ugly nesting: 4. Divs opened/closed across templates
6835 a<div>b{{echo|c</div>d}}e
6842 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6848 |{{echo|foo</table>}}
6852 <table typeof="mw:Transclusion">
6855 <td>foo</td></tr></tbody></table><span>bar</span>
6859 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6869 <td>1. {{echo|foo </table>}}</td>
6871 <td>2. {{echo|baz </table>}}</td>
6884 <table about="#mwt1" typeof="mw:Transclusion">
6889 <td >1. foo </td></tr></tbody></table></td>
6891 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6892 </span><span about="#mwt1">
6894 abc</span><span about="#mwt1">
6895 </span><span about="#mwt1">
6896 </span><span about="#mwt1">
6897 </span><span about="#mwt1">
6898 </span><span about="#mwt1">
6900 xyz</span><span about="#mwt1">
6901 </span><span about="#mwt1">
6906 Templates: Ugly templates: 3. newline-only template parameter
6915 # This looks like a bug: a single newline triggers p/br for some reason.
6917 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6928 Parser Functions: 1. Simple example
6937 Parser Functions: 2. Nested use (only outermost should be marked up)
6946 ### Pre-save transform tests
6949 pre-save transform: subst:
6955 This is a test template
6959 pre-save transform: normal template
6969 pre-save transform: nonexistent template
6973 {{thistemplatedoesnotexist}}
6975 {{thistemplatedoesnotexist}}
6980 pre-save transform: subst magic variables
6989 # This is bug 89, which I fixed. -- wtm
6991 pre-save transform: subst: templates with parameters
6995 {{subst:paramtest|param="something else"}}
6997 This is a test template with parameter "something else"
7003 <nowiki>'''not wiki'''</nowiki>
7007 pre-save transform: nowiki in subst (bug 1188)
7011 {{subst:nowikitest}}
7013 <nowiki>'''not wiki'''</nowiki>
7018 Template:commenttest
7020 This template has <!-- a comment --> in it.
7024 pre-save transform: comment in subst (bug 1936)
7028 {{subst:commenttest}}
7030 This template has <!-- a comment --> in it.
7034 pre-save transform: unclosed tag
7038 <nowiki>'''not wiki'''
7040 <nowiki>'''not wiki'''
7044 pre-save transform: mixed tag case
7048 <NOwiki>'''not wiki'''</noWIKI>
7050 <NOwiki>'''not wiki'''</noWIKI>
7054 pre-save transform: unclosed comment in <nowiki>
7058 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7060 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7063 # Leading @ in this template definition works around a limitation
7064 # in parsoid's parserTests which otherwise strips the <span> from the
7065 # result (confusing it for a template wrapper)
7069 @<span onmouseover="alert('crap')">Oh no</span>
7073 (confirming safety of fix for subst bug 1936)
7075 {{Template:dangerous}}
7077 <p>@<span>Oh no</span>
7082 pre-save transform: comment containing gallery (bug 5024)
7086 <!-- <gallery>data</gallery> -->
7088 <!-- <gallery>data</gallery> -->
7092 pre-save transform: comment containing extension
7096 <!-- <tag>data</tag> -->
7098 <!-- <tag>data</tag> -->
7102 pre-save transform: comment containing nowiki
7106 <!-- <nowiki>data</nowiki> -->
7108 <!-- <nowiki>data</nowiki> -->
7112 pre-save transform: <noinclude> in subst (bug 3298)
7122 pre-save transform: <onlyinclude> in subst (bug 3298)
7134 {{<includeonly>subst:</includeonly>Includes}}
7138 Template:SafeSubstTest
7140 {{<includeonly>safesubst:</includeonly>Includes}}
7144 bug 22297: safesubst: works during PST
7148 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7154 bug 22297: safesubst: works during normal parse
7163 subst: does not work during normal parse
7167 <p>{{subst:Includes}}
7172 pre-save transform: context links ("pipe trick")
7176 [[Article (context)|]]
7179 [[Bar:Article (context)|]]
7180 [[:Bar:Article (context)|]]
7182 [[|Article (context)]]
7186 [[Article (context)|Article]]
7187 [[Bar:Article|Article]]
7188 [[:Bar:Article|Article]]
7189 [[Bar:Article (context)|Article]]
7190 [[:Bar:Article (context)|Article]]
7192 [[Article (context)]]
7193 [[Bar:X (Y) Z|X (Y) Z]]
7194 [[:Bar:X (Y) Z|X (Y) Z]]
7198 pre-save transform: context links ("pipe trick") with interwiki prefix
7202 [[interwiki:Article|]]
7203 [[:interwiki:Article|]]
7204 [[interwiki:Bar:Article|]]
7205 [[:interwiki:Bar:Article|]]
7207 [[interwiki:Article|Article]]
7208 [[:interwiki:Article|Article]]
7209 [[interwiki:Bar:Article|Bar:Article]]
7210 [[:interwiki:Bar:Article|Bar:Article]]
7214 pre-save transform: context links ("pipe trick") with parens in title
7216 pst title=[[Somearticle (context)]]
7220 [[Article (context)|Article]]
7224 pre-save transform: context links ("pipe trick") with comma in title
7226 pst title=[[Someplace, Somewhere]]
7229 [[Otherplace, Elsewhere|]]
7230 [[Otherplace, Elsewhere, Anywhere|]]
7232 [[Otherplace, Somewhere|Otherplace]]
7233 [[Otherplace, Elsewhere|Otherplace]]
7234 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7238 pre-save transform: context links ("pipe trick") with parens and comma
7240 pst title=[[Someplace (IGNORED), Somewhere]]
7243 [[Otherplace (place), Elsewhere|]]
7245 [[Otherplace, Somewhere|Otherplace]]
7246 [[Otherplace (place), Elsewhere|Otherplace]]
7250 pre-save transform: context links ("pipe trick") with comma and parens
7252 pst title=[[Who, me? (context)]]
7255 [[Me, Myself, and I (1937 song)|]]
7257 [[Yes, you. (context)|Yes, you.]]
7258 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7262 pre-save transform: context links ("pipe trick") with namespace
7264 pst title=[[Ns:Somearticle]]
7268 [[Ns:Article|Article]]
7272 pre-save transform: context links ("pipe trick") with namespace and parens
7274 pst title=[[Ns:Somearticle (context)]]
7278 [[Ns:Article (context)|Article]]
7282 pre-save transform: context links ("pipe trick") with namespace and comma
7284 pst title=[[Ns:Somearticle, Context, Whatever]]
7288 [[Ns:Article, Context, Whatever|Article]]
7292 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7294 pst title=[[Ns:Somearticle, Context (context)]]
7298 [[Ns:Article (context)|Article]]
7302 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7304 pst title=[[Ns:Somearticle (IGNORED), Context]]
7308 [[Ns:Article, Context|Article]]
7312 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7316 [[Article(context)|]]
7317 [[Bar:Article(context)|]]
7318 [[:Bar:Article(context)|]]
7319 [[|Article(context)]]
7323 [[Article(context)|Article]]
7324 [[Bar:Article(context)|Article]]
7325 [[:Bar:Article(context)|Article]]
7326 [[Article(context)]]
7328 [[:Bar:X(Y)Z|X(Y)Z]]
7332 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7336 [[Article (context)|]]
7337 [[Bar:Article (context)|]]
7338 [[:Bar:Article (context)|]]
7339 [[|Article (context)]]
7343 [[Article (context)|Article]]
7344 [[Bar:Article (context)|Article]]
7345 [[:Bar:Article (context)|Article]]
7346 [[Article (context)]]
7347 [[Bar:X (Y) Z|X (Y) Z]]
7348 [[:Bar:X (Y) Z|X (Y) Z]]
7352 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7356 [[Article(context)|]]
7357 [[Bar:Article(context)|]]
7358 [[:Bar:Article(context)|]]
7359 [[|Article(context)]]
7363 [[Article(context)|Article]]
7364 [[Bar:Article(context)|Article]]
7365 [[:Bar:Article(context)|Article]]
7366 [[Article(context)]]
7368 [[:Bar:X(Y)Z|X(Y)Z]]
7372 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7376 [[Article (context), context|]]
7377 [[Article (context),context|]]
7378 [[Bar:Article (context), context|]]
7379 [[Bar:Article (context),context|]]
7380 [[:Bar:Article (context), context|]]
7381 [[:Bar:Article (context),context|]]
7383 [[Article (context), context|Article]]
7384 [[Article (context),context|Article]]
7385 [[Bar:Article (context), context|Article]]
7386 [[Bar:Article (context),context|Article]]
7387 [[:Bar:Article (context), context|Article]]
7388 [[:Bar:Article (context),context|Article]]
7392 pre-save transform: trim trailing empty lines
7396 Empty lines are trimmed
7402 Empty lines are trimmed
7406 pre-save transform: Signature expansion
7411 * <noinclude>~~~</noinclude>
7412 * <includeonly>~~~</includeonly>
7413 * <onlyinclude>~~~</onlyinclude>
7415 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7416 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7417 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7418 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7423 pre-save transform: Signature expansion in nowiki tags (bug 93)
7429 <nowiki>~~~~</nowiki>
7431 <includeonly><nowiki>~~~~</nowiki></includeonly>
7433 <noinclude><nowiki>~~~~</nowiki></noinclude>
7435 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7437 {{subst:Foo}} shall be converted to FOO
7439 As well as inside noinclude/onlyinclude
7440 <noinclude>{{subst:Foo}}</noinclude>
7441 <onlyinclude>{{subst:Foo}}</onlyinclude>
7443 But not inside includeonly
7444 <includeonly>{{subst:Foo}}</includeonly>
7448 <nowiki>~~~~</nowiki>
7450 <includeonly><nowiki>~~~~</nowiki></includeonly>
7452 <noinclude><nowiki>~~~~</nowiki></noinclude>
7454 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7456 FOO shall be converted to FOO
7458 As well as inside noinclude/onlyinclude
7459 <noinclude>FOO</noinclude>
7460 <onlyinclude>FOO</onlyinclude>
7462 But not inside includeonly
7463 <includeonly>{{subst:Foo}}</includeonly>
7467 ### Message transform tests
7470 message transform: magic variables
7480 message transform: should not transform wiki markup
7490 message transform: <noinclude> in transcluded template (bug 4926)
7500 message transform: <onlyinclude> in transcluded template (bug 4926)
7510 {{#special:}} page name, known
7514 {{#special:Recentchanges}}
7516 Special:RecentChanges
7520 {{#special:}} page name with subpage, known
7524 {{#special:Recentchanges/param}}
7526 Special:RecentChanges/param
7530 {{#special:}} page name, unknown
7534 {{#special:foobar nonexistent}}
7536 Special:Foobar nonexistent
7540 {{#speciale:}} page name, known
7544 {{#speciale:Recentchanges}}
7546 Special:RecentChanges
7550 {{#speciale:}} page name with subpage, known
7554 {{#speciale:Recentchanges/param}}
7556 Special:RecentChanges/param
7560 {{#speciale:}} page name, unknown
7564 {{#speciale:foobar nonexistent}}
7566 Special:Foobar_nonexistent
7575 [[Image:foobar.jpg]]
7577 <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>
7584 [[Image:foobar.jpg|right]]
7586 <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>
7591 Simple image (using File: namespace, now canonical)
7595 <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>
7602 [[Image:foobar.jpg|right|Caption text]]
7604 <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>
7609 Image with empty attribute
7611 [[Image:foobar.jpg|right||Caption text]]
7613 <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>
7618 Image with link tails
7620 123[[Image:foobar.jpg]]456
7621 123[[Image:foobar.jpg|right]]456
7622 123[[Image:foobar.jpg|thumb]]456
7624 <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
7626 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
7627 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
7632 Image with multiple captions -- only last one is accepted
7634 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7636 <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>
7641 Image with width attribute at different positions
7643 [[Image:foobar.jpg|200px|right|Caption]]
7644 [[Image:foobar.jpg|right|200px|Caption]]
7645 [[Image:foobar.jpg|right|Caption|200px]]
7647 <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>
7648 <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>
7649 <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>
7654 Image with link parameter, wiki target
7656 [[Image:foobar.jpg|link=Target page]]
7658 <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>
7663 Image with link parameter, URL target
7665 [[Image:foobar.jpg|link=http://example.com/]]
7667 <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>
7672 Image with link parameter, wgExternalLinkTarget
7674 [[Image:foobar.jpg|link=http://example.com/]]
7676 wgExternalLinkTarget='foobar'
7678 <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>
7683 Image with link parameter, wgNoFollowLinks set to false
7685 [[Image:foobar.jpg|link=http://example.com/]]
7687 wgNoFollowLinks=false
7689 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7694 Image with link parameter, wgNoFollowDomainExceptions
7696 [[Image:foobar.jpg|link=http://example.com/]]
7698 wgNoFollowDomainExceptions='example.com'
7700 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7705 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7707 [[Image:foobar.jpg|link=http://example.com/|Title]]
7709 wgExternalLinkTarget='foobar'
7711 <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>
7716 Image with empty link parameter
7718 [[Image:foobar.jpg|link=]]
7720 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7725 Image with link parameter (wiki target) and unnamed parameter
7727 [[Image:foobar.jpg|link=Target page|Title]]
7729 <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>
7734 Image with link parameter (URL target) and unnamed parameter
7736 [[Image:foobar.jpg|link=http://example.com/|Title]]
7738 <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>
7743 Thumbnail image with link parameter
7747 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7749 <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>
7754 Manually-specified thumbnail image
7758 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7760 <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>
7765 Manually-specified thumbnail image with explicit link to wiki page
7769 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7771 <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>
7776 Manually-specified thumbnail image with explicit link to url
7780 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7782 <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>
7787 Manually-specified thumbnail image with explicit no link
7791 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7793 <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>
7798 Manually-specified thumbnail image with explicit link and alt text
7802 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7804 <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>
7809 Image with frame and link
7811 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
7813 <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>
7818 Image with frame and link and explicit alt
7820 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7822 <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>
7827 Image with wiki markup in implicit alt
7829 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7831 <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>
7836 Image with wiki markup in explicit alt
7838 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7840 <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>
7845 Link to image page- image page normally doesn't exists, hence edit link
7846 Add test with existing image page
7847 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7851 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7856 bug 18784 Link to non-existent image page with caption should use caption as link text
7858 [[:Image:test|caption]]
7860 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7865 Frameless image caption with a free URL
7867 [[Image:foobar.jpg|http://example.com]]
7869 <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>
7874 Thumbnail image caption with a free URL
7876 [[Image:foobar.jpg|thumb|http://example.com]]
7878 <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>
7883 Thumbnail image caption with a free URL and explicit alt
7885 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7887 <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>
7892 SVG thumbnails with no language set
7895 [[File:Foobar.svg|thumb|width=200]]
7897 <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>
7902 SVG thumbnails with language de
7905 [[File:Foobar.svg|thumb|width=200|lang=de]]
7907 <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>
7912 SVG thumbnails with invalid language code
7915 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
7917 <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>
7921 BUG 1887: A ISBN with a thumbnail
7923 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7925 <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>
7930 BUG 1887: A RFC with a thumbnail
7932 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7934 <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>
7939 BUG 1887: A mailto link with a thumbnail
7941 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7943 <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>
7947 # Pending resolution to bug 368
7949 BUG 648: Frameless image caption with a link
7951 [[Image:foobar.jpg|text with a [[link]] in it]]
7953 <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>
7958 BUG 648: Frameless image caption with a link (suffix)
7960 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7962 <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>
7967 BUG 648: Frameless image caption with an interwiki link
7969 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7971 <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>
7976 BUG 648: Frameless image caption with a piped interwiki link
7978 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7980 <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>
7985 Escape HTML special chars in image alt text
7987 [[Image:foobar.jpg|& < > "]]
7989 <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>
7994 BUG 499: Alt text should have Ӓ, not &1234;
7996 [[Image:foobar.jpg|♀]]
7998 <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>
8003 Broken image caption with link
8005 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8007 <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.
8012 Image caption containing another image
8014 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8016 <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>
8021 Image caption containing a newline
8023 [[Image:Foobar.jpg|This
8026 <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>
8031 Parsoid: Image caption containing leading space
8032 (The leading space should not trigger nowiki escaping in wt2wt mode)
8034 [[Image:Foobar.jpg|thumb| bar]]
8036 <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>
8041 Bug 3090: External links other than http: in image captions
8043 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8045 <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>
8052 [[Image:foobar.jpg|a|class=b]]
8054 <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>
8059 Localized image handling (1).
8063 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8065 <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>
8070 Localized image handling (2).
8074 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8076 <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>
8081 "border", "frameless" and "class" attributes on an image.
8083 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8085 <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>
8092 #REDIRECT [[File:Barfoo.jpg]]
8098 [[Image:Barfoo.jpg]]
8100 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8105 Missing image with uploads disabled
8109 [[Image:Foobaz.jpg]]
8111 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8115 # Parsoid-specific testing for images
8116 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8117 # Currently imperfect due to a flaw in the Parsoid testrunner
8121 Parsoid-specific image handling - simple image
8125 [[Image:Foobar.jpg]]
8128 <span class="mw-default-size" typeof="mw:Image">
8129 <a href="File:Foobar.jpg">
8130 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8137 Parsoid-specific image handling - simple image without link
8141 [[Image:Foobar.jpg|link=]]
8144 <span class="mw-default-size" typeof="mw:Image">
8146 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8153 Parsoid-specific image handling - simple image with specific link
8157 [[Image:Foobar.jpg|link=Main Page]]
8160 <span class="mw-default-size" typeof="mw:Image">
8161 <a href="Main_Page">
8162 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8169 Parsoid-specific image handling - simple image with size and middle alignment
8173 [[Image:Foobar.jpg|50px|middle]]
8176 <span class="mw-valign-middle" typeof="mw:Image">
8177 <a href="File:Foobar.jpg">
8178 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8185 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8189 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8192 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8193 <a href="File:Foobar.jpg">
8194 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8201 Parsoid-specific image handling - simple image with border and size spec
8205 [[Image:Foobar.jpg|50px|border|caption]]
8208 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8209 <a href="File:Foobar.jpg">
8210 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8217 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8221 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8223 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8224 <a href="File:Foobar.jpg">
8225 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8227 <figcaption>caption content</figcaption>
8232 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8236 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8238 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8239 <a href="File:Foobar.jpg">
8240 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8242 <figcaption>caption</figcaption>
8247 Parsoid-specific image handling - framed image with specific size and caption
8251 [[Image:Foobar.jpg|500x50px|frame|caption]]
8253 <figure typeof="mw:Image/Frame">
8254 <a href="File:Foobar.jpg">
8255 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8257 <figcaption>caption</figcaption>
8262 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8266 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8268 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8269 <a href="File:Foobar.jpg">
8270 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8272 <figcaption>caption</figcaption>
8277 Parsoid-specific image handling - frameless image with specific size, border, and caption
8281 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8284 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8285 <a href="File:Foobar.jpg">
8286 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8292 #Parsoid-specific image handling - simple image with a formatted caption
8296 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8299 #<span typeof="mw:Image">
8300 #<a class="mw-default-size" href="Image:Foobar.jpg">
8301 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8311 Subpage test/subpage
8319 subpage title=[[Subpage test]]
8323 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8328 Subpage noslash link
8330 subpage title=[[Subpage test]]
8334 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8343 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8348 BUG 561: {{/Subpage}}
8350 subpage title=[[Page]]
8354 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8362 Category:MediaWiki User's Guide
8370 [[:Category:MediaWiki User's Guide]]
8372 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8381 [[Category:MediaWiki User's Guide]]
8383 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8387 PAGESINCATEGORY invalid title fatal (r33546 fix)
8389 {{PAGESINCATEGORY:<bogus>}}
8396 Category with different sort key
8400 [[Category:MediaWiki User's Guide|Foo]]
8402 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8406 Category with identical sort key
8410 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8412 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8416 Category with empty sort key
8421 [[Category:MediaWiki User's Guide|]]
8423 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8427 Category with empty sort key and parentheses
8432 [[Category:Foo (bar)|]]
8434 [[Category:Foo (bar)|Foo]]
8438 Category with link tail
8443 123[[Category:Foo]]456
8445 123[[Category:Foo]]456
8449 Category with template
8454 [[Category:{{echo|Foo}}]]
8456 [[Category:{{echo|Foo}}]]
8460 Category with template in sort key
8465 [[Category:Foo|{{echo|Bar}}]]
8467 [[Category:Foo|{{echo|Bar}}]]
8471 Category with template in sort key and title
8476 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8478 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8482 Category / paragraph interactions
8484 Foo [[Category:Baz]] Bar
8486 Foo [[Category:Baz]]
8494 [[Category:Baz]] Bar
8507 {{echo|[[Category:Baz]]}}
8522 Parsoid: Serialize link to category page with colon escape
8528 [[:Category:Foo|Bar]]
8531 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8532 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8537 Parsoid: Serialize link to file page with colon escape
8543 [[:File:Foo.png|Bar]]
8546 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8547 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8552 Parsoid: Serialize a genuine category link without colon escape
8557 [[Category:Foo|Bar]]
8559 <link rel="mw:WikiLink/Category" href="Category:Foo">
8560 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8563 ### Inter-language links
8566 Inter-language links
8572 [[zh:食品]]
8574 es:Alimento fr:Nourriture zh:食品
8578 Duplicate interlanguage links (bug 24502)
8594 Basic section headings
8601 ===Smaller headline===
8604 <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>
8607 <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>
8610 <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>
8616 Section headings with TOC
8619 === Subheadline 1 ===
8620 ===== Skipping a level =====
8621 ====== Skipping a level ======
8625 ===Another headline===
8627 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8629 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8631 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8633 <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>
8635 <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>
8642 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8644 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8649 <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>
8650 <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>
8651 <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>
8652 <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>
8653 <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>
8656 <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>
8660 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8662 Handling of sections up to level 6 and beyond
8665 == Level 2 Heading==
8666 === Level 3 Heading===
8667 ==== Level 4 Heading====
8668 ===== Level 5 Heading=====
8669 ====== Level 6 Heading======
8670 ======= Level 7 Heading=======
8671 ======== Level 8 Heading========
8672 ========= Level 9 Heading=========
8673 ========== Level 10 Heading==========
8675 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8677 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8679 <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>
8681 <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>
8683 <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>
8685 <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>
8687 <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>
8688 <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>
8689 <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>
8690 <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>
8691 <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>
8704 <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>
8705 <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>
8706 <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>
8707 <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>
8708 <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>
8709 <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>
8710 <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>
8711 <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>
8712 <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>
8713 <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>
8718 TOC regression (bug 9764)
8722 ==== title 1.1.1 ====
8727 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8729 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8731 <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>
8733 <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>
8736 <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>
8739 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8741 <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>
8746 <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>
8747 <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>
8748 <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>
8749 <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>
8750 <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>
8751 <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>
8756 TOC with wgMaxTocLevel=3 (bug 6204)
8762 ==== title 1.1.1 ====
8767 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8769 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8771 <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>
8772 <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>
8775 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8777 <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>
8782 <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>
8783 <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>
8784 <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>
8785 <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>
8786 <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>
8787 <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>
8792 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8798 ====Section 1.1.1====
8799 ====Section 1.1.1.1====
8802 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8804 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8806 <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>
8809 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8812 <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>
8813 <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>
8814 <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>
8815 <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>
8816 <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>
8822 Resolving duplicate section names
8827 <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>
8828 <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>
8833 Resolving duplicate section names with differing case (bug 10721)
8838 <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>
8839 <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>
8851 Template with sections, __NOTOC__
8858 <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>
8859 <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>
8860 <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>
8861 <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>
8866 __NOEDITSECTION__ keyword
8872 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
8873 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
8878 Link inside a section heading
8880 ==Section with a [[Main Page|link]] in it==
8882 <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>
8887 TOC regression (bug 12077)
8894 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8896 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8898 <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>
8901 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8904 <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>
8905 <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>
8906 <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>
8911 BUG 1219 URL next to image (good)
8913 http://example.com [[Image:foobar.jpg]]
8915 <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>
8920 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8923 The line above must have a trailing space!
8926 But just in case it doesn't...
8928 <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>
8929 <p>The line above must have a trailing space!
8931 <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>
8932 <p>But just in case it doesn't...
8937 Header with special characters (bug 25462)
8939 The tooltips shall not show entities to the user (ie. be double escaped)
8956 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8958 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8960 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8961 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8962 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8963 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8964 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8967 <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>
8970 <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>
8973 <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>
8976 <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>
8979 <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>
8985 Headers with excess '=' characters
8986 (Are similar tests necessary beyond the 1st level?)
8990 =''italic'' heading==
8991 ==''italic'' heading=
8993 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8995 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8996 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8997 <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>
8998 <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>
9001 <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>
9002 <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>
9003 <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>
9004 <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>
9009 HTML headers vs TOC (bug 23393)
9010 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9022 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9024 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9026 <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>
9027 <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>
9030 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9032 <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>
9033 <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>
9038 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9039 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9040 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9041 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9042 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9043 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9048 BUG 1219 URL next to image (broken)
9050 http://example.com[[Image:foobar.jpg]]
9052 <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>
9057 Bug 1186 news: in the middle of text
9059 http://en.wikinews.org/wiki/Wikinews:Workplace
9061 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9067 Namespaced link must have a title
9076 Namespaced link must have a title (bad fragment version)
9078 [[Project:#fragment]]
9080 <p>[[Project:#fragment]]
9086 ### HTML tags and HTML attributes
9090 div with no attributes
9092 <div>HTML rocks</div>
9094 <div>HTML rocks</div>
9099 div with double-quoted attribute
9101 <div id="rock">HTML rocks</div>
9103 <div id="rock">HTML rocks</div>
9108 div with single-quoted attribute
9110 <div id='rock'>HTML rocks</div>
9112 <div id="rock">HTML rocks</div>
9117 div with unquoted attribute
9119 <div id=rock>HTML rocks</div>
9121 <div id="rock">HTML rocks</div>
9126 div with illegal double attributes
9128 <div id="a" id="b">HTML rocks</div>
9130 <div id="b">HTML rocks</div>
9134 # FIXME: produce empty string instead of "class" in the PHP parser, following
9137 div with empty attribute value, space before equals
9141 <div class =>HTML rocks</div>
9143 <div class="">HTML rocks</div>
9147 # The PHP parser escapes the opening brace to { for some reason, so
9148 # disabled this test for it.
9150 div with braces in attribute value
9154 <div title="{}">Foo</div>
9156 <div title="{}">Foo</div>
9159 # This it very inconsistent in the PHP parser: it returns
9160 # class="class" if there is a space between the name and the equal sign (see
9161 # 'div with empty attribute value, space before equals'), but strips the
9162 # attribute completely if the space is missing. We hope that not much content
9163 # depends on this, so are implementing the behavior below in Parsoid for
9164 # consistencies' sake. Disabled for the PHP parser.
9165 # FIXME: fix this behavior in the PHP parser?
9167 div with empty attribute value, no space before equals
9171 <div class=>HTML rocks</div>
9173 <div class="">HTML rocks</div>
9178 HTML multiple attributes correction
9180 <p class="error" class="awesome">Awesome!</p>
9182 <p class="awesome">Awesome!</p>
9187 Table multiple attributes correction
9190 !+ class="error" class="awesome"| status
9195 <th class="awesome"> status
9203 <DIV ID="x">HTML ROCKS</DIV>
9205 <div id="x">HTML ROCKS</div>
9210 Non-ASCII pseudo-tags are rendered as text
9219 Pseudo-tag with URL 'name' renders as url link
9221 <http://example.com/>
9223 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9228 text with amp in the middle of nowhere
9232 <p>Remember AT&T?
9237 text with character entity: eacute
9239 I always thought é was a cute letter.
9241 <p>I always thought é was a cute letter.
9246 text with entity-escaped character entity-like string: eacute
9248 I always thought &eacute; was a cute letter.
9250 <p>I always thought &eacute; was a cute letter.
9255 text with undefined character entity: xacute
9257 I always thought &xacute; was a cute letter.
9259 <p>I always thought &xacute; was a cute letter.
9271 [[Media:Foobar.jpg]]
9273 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9278 Media link with text
9280 [[Media:Foobar.jpg|A neat file to look at]]
9282 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9286 # FIXME: this is still bad HTML tag nesting
9288 Media link with nasty text
9289 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9291 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9293 <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>
9298 Media link to nonexistent file (bug 1702)
9300 [[Media:No such.jpg]]
9302 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9307 Image link to nonexistent file (bug 1850 - good)
9309 [[Image:No such.jpg]]
9311 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9316 :Image link to nonexistent file (bug 1850 - bad)
9318 [[:Image:No such.jpg]]
9320 <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>
9327 Character reference normalization in link text (bug 1938)
9329 [[Main Page|this&that]]
9331 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9338 Test for unicode normalization
9340 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9344 (bug 19451) Links should refer to the normalized form.
9352 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9353 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9354 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9355 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9356 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9361 Empty attribute crash test (bug 2067)
9363 <font color="">foo</font>
9365 <p><font color="">foo</font>
9370 Empty attribute crash test single-quotes (bug 2067)
9372 <font color=''>foo</font>
9374 <p><font color="">foo</font>
9379 Attribute test: equals, then nothing
9381 <font color=>foo</font>
9388 Attribute test: unquoted value
9390 <font color=x>foo</font>
9392 <p><font color="x">foo</font>
9397 Attribute test: unquoted but illegal value (hash)
9399 <font color=#x>foo</font>
9401 <p><font color="#x">foo</font>
9406 Attribute test: no value
9408 <font color>foo</font>
9410 <p><font color="color">foo</font>
9415 Bug 2095: link with three closing brackets
9419 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9424 Bug 2095: link with pipe and three closing brackets
9428 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9433 Bug 2095: link with pipe and three closing brackets, version 2
9435 [[Main Page|[http://example.com/]]]
9437 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9447 Template:Dangerous attribute
9449 " onmouseover="alert(document.cookie)
9453 Template:Dangerous style attribute
9455 border-size: expression(alert(document.cookie))
9461 <div style="float: right; {{{1}}}">Magic div</div>
9465 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9467 <div title="{{test}}"></div>
9469 <div title="This is a test template"></div>
9474 Bug 2304: HTML attribute safety (dangerous template; 2309)
9476 <div title="{{dangerous attribute}}"></div>
9478 <div title=""></div>
9483 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9485 <div style="{{dangerous style attribute}}"></div>
9487 <div style="/* insecure input */"></div>
9492 Bug 2304: HTML attribute safety (safe parameter; 2309)
9494 {{div style|width: 200px}}
9496 <div style="float: right; width: 200px">Magic div</div>
9501 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9503 {{div style|width: expression(alert(document.cookie))}}
9505 <div style="/* insecure input */">Magic div</div>
9510 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9512 {{div style|"><script>alert(document.cookie)</script>}}
9514 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9519 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9521 {{div style|" ><script>alert(document.cookie)</script>}}
9523 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9528 Bug 2304: HTML attribute safety (link)
9530 <div title="[[Main Page]]"></div>
9532 <div title="[[Main Page]]"></div>
9537 Bug 2304: HTML attribute safety (italics)
9539 <div title="''foobar''"></div>
9541 <div title="''foobar''"></div>
9546 Bug 2304: HTML attribute safety (bold)
9548 <div title="'''foobar'''"></div>
9550 <div title="'''foobar'''"></div>
9556 Bug 2304: HTML attribute safety (ISBN)
9558 <div title="ISBN 1234567890"></div>
9560 <div title="ISBN 1234567890"></div>
9565 Bug 2304: HTML attribute safety (RFC)
9567 <div title="RFC 1234"></div>
9569 <div title="RFC 1234"></div>
9574 Bug 2304: HTML attribute safety (PMID)
9576 <div title="PMID 1234567890"></div>
9578 <div title="PMID 1234567890"></div>
9583 Bug 2304: HTML attribute safety (web link)
9585 <div title="http://example.com/"></div>
9587 <div title="http://example.com/"></div>
9592 Bug 2304: HTML attribute safety (named web link)
9594 <div title="[http://example.com/ link]"></div>
9596 <div title="[http://example.com/ link]"></div>
9601 Bug 3244: HTML attribute safety (extension; safe)
9603 <div style="<nowiki>background:blue</nowiki>"></div>
9605 <div style="background:blue"></div>
9610 Bug 3244: HTML attribute safety (extension; unsafe)
9612 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9614 <div style="/* insecure input */"></div>
9618 # More MSIE fun discovered by Tom Gilder
9621 MSIE CSS safety test: spurious slash
9623 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9625 <div style="/* insecure input */">evil</div>
9630 MSIE CSS safety test: hex code
9632 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9634 <div style="/* insecure input */">evil</div>
9639 MSIE CSS safety test: comment in url
9641 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9643 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9648 MSIE CSS safety test: comment in expression
9650 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9652 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9658 Table attribute legitimate extension
9661 !+ style="<nowiki>color:blue</nowiki>"| status
9666 <th style="color:blue"> status
9672 Table attribute safety
9675 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9680 <th style="/* insecure input */"> status
9686 CSS line continuation 1
9688 <div style="background-image: u\ rl(test.jpg);"></div>
9690 <div style="/* insecure input */"></div>
9695 CSS line continuation 2
9697 <div style="background-image: u\ rl(test.jpg); "></div>
9699 <div style="/* insecure input */"></div>
9710 Expansion of multi-line templates in attribute values (bug 6255)
9712 <div style="background: {{identity|#00FF00}}">-</div>
9714 <div style="background: #00FF00">-</div>
9720 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9722 <div style="background:
9725 <div style="background: #00FF00">-</div>
9730 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9732 <div style="background: #00FF00">-</div>
9734 <div style="background: #00FF00">-</div>
9739 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9742 Parser hook: empty input
9755 Parser hook: empty input using terminated empty elements
9768 Parser hook: empty input using terminated empty elements (space before)
9781 Parser hook: basic input
9795 Parser hook: case insensitive
9809 Parser hook: case insensitive, redux
9822 Parser hook: nested tags
9826 <tag><tag></tag></tag>
9837 Parser hook: basic arguments
9839 <tag width=200 height = "100" depth = '50' square></tag>
9847 'square' => 'square',
9854 Parser hook: argument containing a forward slash (bug 5344)
9856 <tag filename='/tmp/bla'></tag>
9861 'filename' => '/tmp/bla',
9868 Parser hook: empty input using terminated empty elements (bug 2374)
9881 # </tag> should be output literally since there is no matching tag that begins it
9883 Parser hook: basic arguments using terminated empty elements (bug 2374)
9885 <tag width=200 height = "100" depth = '50' square/>
9895 'square' => 'square',
9904 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9908 Parser hook: static parser hook not inside a comment
9910 <statictag>hello, world</statictag>
9911 <statictag action=flush/>
9919 Parser hook: static parser hook inside a comment
9921 <!-- <statictag>hello, world</statictag> -->
9922 <statictag action=flush/>
9928 # Nested template calls; this case was broken by Parser.php rev 1.506,
9932 Template:One-parameter
9934 (My parameter is: {{{1}}})
9938 Template:Map-one-parameter
9944 Nested template calls
9946 {{Map-one-parameter|One-parameter|param}}
9948 <p>(My parameter is: param)
9957 Sanitizer: Closing of open tags
9959 <s></s><table></table>
9961 <s></s><table></table>
9966 Sanitizer: Closing of open but not closed tags
9975 Sanitizer: Closing of closed but not open tags
9984 Sanitizer: Closing of closed but not open table tags
9986 Table not started</td></tr></table>
9988 <p>Table not started</td></tr></table>
9993 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9995 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9997 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10002 Sanitizer: Validating the contents of the id attribute (bug 4515)
10008 Something, but definitely not <br id="9" />...
10012 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10016 <br id="foo" /><br id="foo" />
10018 Something need to be done. foo-2 ?
10022 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10025 <meta itemprop="hello" content="world">
10026 <meta http-equiv="refresh" content="5">
10027 <meta itemprop="hello" http-equiv="refresh" content="5">
10028 <link itemprop="hello" href="{{SERVER}}">
10029 <link rel="stylesheet" href="{{SERVER}}">
10030 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10033 <div itemscope="itemscope">
10034 <p> <meta itemprop="hello" content="world" />
10035 <meta http-equiv="refresh" content="5">
10036 <meta itemprop="hello" content="5" />
10038 <link itemprop="hello" href="http://example.org" />
10039 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10040 <link itemprop="hello" href="http://example.org" />
10046 Language converter: output gets cut off unexpectedly (bug 5757)
10050 this bit is safe: }-
10052 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10054 then we get cut off here: }-
10056 all additional text is vanished
10058 <p>this bit is safe: }-
10059 </p><p>but if we add a conversion instance: xxx
10060 </p><p>then we get cut off here: }-
10061 </p><p>all additional text is vanished
10066 Self closed html pairs (bug 5487)
10069 <center><font id="bug" />Centered text</center>
10070 <div><font id="bug2" />In div text</div>
10072 <center><font id="bug" />Centered text</center>
10073 <div><font id="bug2" />In div text</div>
10082 Punctuation: nbsp before exclamation
10086 <p>C'est grave !
10091 Punctuation: CSS !important (bug 11874)
10093 <div style="width:50% !important">important</div>
10095 <div style="width:50% !important">important</div>
10100 Punctuation: CSS ! important (bug 11874; with space after)
10102 <div style="width:50% ! important">important</div>
10104 <div style="width:50% ! important">important</div>
10110 HTML bullet list, closed tags (bug 5497)
10125 HTML bullet list, unclosed tags (bug 5497)
10142 HTML ordered list, closed tags (bug 5497)
10157 HTML ordered list, unclosed tags (bug 5497)
10174 HTML nested bullet list, closed tags (bug 5497)
10199 HTML nested bullet list, open tags (bug 5497)
10224 HTML nested ordered list, closed tags (bug 5497)
10249 HTML nested ordered list, open tags (bug 5497)
10274 HTML ordered list item with parameters oddity
10276 <ol><li id="fragment">One</li></ol>
10278 <ol><li id="fragment">One</li></ol>
10283 bug 5918: autonumbering
10285 [http://first/] [http://second] [ftp://ftp]
10289 [mailto:enclosed@mail.tld With target]
10291 [mailto:enclosed@mail.tld]
10293 mailto:inline@mail.tld
10295 <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>
10296 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10297 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10298 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10299 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10305 # Security and HTML correctness
10306 # From Nick Jenkins' fuzz testing
10310 Fuzz testing: Parser13
10325 Fuzz testing: Parser14
10330 <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>
10331 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10333 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10340 Fuzz testing: Parser14-table
10345 <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>
10346 <table style="__TOC__">
10352 # Known to produce bogus xml (extra </td>)
10354 Fuzz testing: Parser16
10374 Fuzz testing: Parser21
10377 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10382 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10392 Fuzz testing: Parser22
10394 http://===r:::https://b
10398 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10406 # Known to produce bad XML for now
10408 Fuzz testing: Parser24
10415 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10416 <br style="onmouseover='alert(document.cookie);' " />
10418 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10423 <u class="|">}}}} >
10424 <br style="onmouseover='alert(document.cookie);'" />
10426 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10435 # Note: the current result listed for this is not what the original one was,
10436 # but the original bug was JavaScript injection, which is fixed in any case.
10437 # It's not clear that the original result listed was any more correct than the
10438 # current one. Original result:
10441 # <li class="||">
10442 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10444 Fuzz testing: Parser25 (bug 6055)
10450 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10452 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10457 Fuzz testing: URL adjacent extension (with space, clean)
10460 http://example.com <nowiki>junk</nowiki>
10462 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10467 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10470 http://example.com<nowiki>junk</nowiki>
10472 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10477 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10480 http://example.com<pre>junk</pre>
10482 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10487 Fuzz testing: image with bogus manual thumbnail
10489 [[Image:foobar.jpg|thumbnail= ]]
10491 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10496 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10498 <pre dir=" "></pre>
10500 <pre dir=" "></pre>
10505 Parsing optional HTML elements (Bug 6171)
10510 <td> Some tabular data</td>
10511 <td> More tabular data ...
10512 <td> And yet som tabular data</td>
10518 <td> Some tabular data</td>
10519 <td> More tabular data ...
10520 </td><td> And yet som tabular data</td>
10527 Correct handling of <td>, <tr> (Bug 6171)
10532 <td> Some tabular data</td>
10533 <td> More tabular data ...</td>
10534 <td> And yet som tabular data</td>
10540 <td> Some tabular data</td>
10541 <td> More tabular data ...</td>
10542 <td> And yet som tabular data</td>
10550 Parsing crashing regression (fr:JavaScript)
10554 <p></body></x>
10559 Inline wiki vs wiki block nesting
10565 <p><b>Bold paragraph</b>
10566 </p><p>New wiki paragraph
10571 Inline HTML vs wiki block nesting
10579 <p><b>Bold paragraph</b>
10580 </p><p>New wiki paragraph
10584 # Original result was this:
10585 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10587 # While that might be marginally more intuitive, maybe, the six-apostrophe
10588 # construct is clearly pathological and the result stated here (which is what
10589 # the parser actually does) is about as reasonable as anything.
10591 Mixing markup for italics and bold
10594 '''bold''''''bold''bolditalics'''''
10596 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10604 Article for special page transclusion test
10608 Special page transclusion
10611 {{Special:Prefixindex/Xyzzyx}}
10613 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10618 Special page transclusion twice (bug 5021)
10621 {{Special:Prefixindex/Xyzzyx}}
10622 {{Special:Prefixindex/Xyzzyx}}
10624 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10625 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10630 Transclusion of default MediaWiki message
10632 {{MediaWiki:Mainpage}}
10639 Transclusion of nonexistent MediaWiki message
10641 {{MediaWiki:Mainpagexxx}}
10643 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10648 Transclusion of MediaWiki message with underscore
10650 {{MediaWiki:history_short}}
10657 Transclusion of MediaWiki message with space
10659 {{MediaWiki:history short}}
10666 Invalid header with following text
10676 Section extraction test (section 0)
10696 Section extraction test (section 1)
10718 Section extraction test (section 2)
10739 Section extraction test (section 3)
10759 Section extraction test (section 4)
10783 Section extraction test (section 5)
10803 Section extraction test (section 6)
10824 Section extraction test (section 7)
10844 Section extraction test (section 8)
10864 Section extraction test (section 9)
10885 Section extraction test (section 10)
10905 Section extraction test (nonexistent section 11)
10924 Section extraction test with bogus heading (section 1)
10929 ==bogus== not a legal section
10933 ==bogus== not a legal section
10937 Section extraction test with bogus heading (section 2)
10942 ==bogus== not a legal section
10949 Section extraction test with comment after heading (section 1)
10961 Section extraction test with comment after heading (section 2)
10973 Section extraction test with bogus <nowiki> heading (section 1)
10978 ==bogus== <nowiki>not a legal section</nowiki>
10982 ==bogus== <nowiki>not a legal section</nowiki>
10986 Section extraction test with bogus <nowiki> heading (section 2)
10991 ==bogus== <nowiki>not a legal section</nowiki>
10998 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10999 # instead of respecting commented sections
11001 Section extraction prefixed by comment (section 1)
11012 Section extraction prefixed by comment (section 2)
11023 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11024 # instead of respecting HTML-style headings
11026 Section extraction, mixed wiki and html (section 1)
11042 Section extraction, mixed wiki and html (section 2)
11058 # Formerly testing for bug 3342
11060 Section extraction, heading surrounded by <noinclude>
11064 <noinclude>==unmarked==</noinclude>
11070 # Test behavior of bug 19910
11072 Sectiion with all-equals
11077 The line above must have a trailing space
11080 But just in case it doesn't...
11084 But just in case it doesn't...
11088 Section replacement test (section 0)
11119 Section replacement test (section 1)
11148 Section replacement test (section 2)
11178 Section replacement test (section 3)
11209 Section replacement test (section 4)
11236 Section replacement test (section 5)
11267 Section replacement test (section 6)
11297 Section replacement test (section 7)
11328 Section replacement test (section 8)
11359 Section replacement test (section 9)
11388 Section replacement test (section 10)
11418 Section replacement test with initial whitespace (bug 13728)
11422 Preformatted initial line
11426 Preformatted initial line
11433 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11445 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11458 Section extraction, <pre> around bogus header (bug 10309)
11475 Section replacement, <pre> around bogus header (bug 10309)
11477 noxml replace=2,"xxx"
11498 Handling of 
 in URLs
11502 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11509 5 quotes, code coverage +1 line (php)
11516 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11518 5 quotes, code coverage +1 line (parsoid)
11524 <p><i><b></b></i></p>
11528 Special:Search page linking.
11532 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11544 * {{ROOTPAGENAMEE}}
11546 * {{BASEPAGENAMEE}}
11548 * {{TALKPAGENAMEE}}
11549 * {{SUBJECTPAGENAME}}
11550 * {{SUBJECTPAGENAMEE}}
11556 * {{SUBJECTSPACEE}}
11557 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11559 <ul><li> Parser test
11560 </li><li> Parser test
11561 </li><li> Parser test
11562 </li><li> Parser_test
11563 </li><li> Parser test
11564 </li><li> Parser_test
11565 </li><li> Parser test
11566 </li><li> Parser_test
11567 </li><li> Talk:Parser test
11568 </li><li> Talk:Parser_test
11569 </li><li> Parser test
11570 </li><li> Parser_test
11577 </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>
11581 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11591 image4 |300px| centre
11592 image5.svg| http://///////
11597 <ul class="gallery">
11598 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11599 <div style="height: 150px;">Image1.png</div>
11600 <div class="gallerytext">
11603 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11604 <div style="height: 150px;">Image2.gif</div>
11605 <div class="gallerytext">
11610 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11611 <div style="height: 150px;">Image3</div>
11612 <div class="gallerytext">
11615 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11616 <div style="height: 150px;">Image4</div>
11617 <div class="gallerytext">
11622 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11623 <div style="height: 150px;">Image5.svg</div>
11624 <div class="gallerytext">
11625 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11629 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11630 <div style="height: 150px;">* image6</div>
11631 <div class="gallerytext">
11639 Gallery (with options)
11641 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11642 File:Nonexistant.jpg|caption
11643 File:Nonexistant.jpg
11644 image:foobar.jpg|some '''caption''' [[Main Page]]
11646 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11649 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11650 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11651 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11652 <div style="height: 70px;">Nonexistant.jpg</div>
11653 <div class="gallerytext">
11658 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11659 <div style="height: 70px;">Nonexistant.jpg</div>
11660 <div class="gallerytext">
11663 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11664 <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>
11665 <div class="gallerytext">
11666 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11670 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11671 <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>
11672 <div class="gallerytext">
11675 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11676 <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>
11677 <div class="gallerytext">
11687 Gallery with wikitext inside caption
11690 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11691 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11694 <ul class="gallery">
11695 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11696 <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>
11697 <div class="gallerytext">
11698 <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>
11702 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11703 <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>
11704 <div class="gallerytext">
11705 <p>This is a test template
11714 gallery (with showfilename option)
11716 <gallery showfilename>
11717 File:Nonexistant.jpg|caption
11718 File:Nonexistant.jpg
11719 image:foobar.jpg|some '''caption''' [[Main Page]]
11723 <ul class="gallery">
11724 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11725 <div style="height: 150px;">Nonexistant.jpg</div>
11726 <div class="gallerytext">
11727 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11732 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11733 <div style="height: 150px;">Nonexistant.jpg</div>
11734 <div class="gallerytext">
11735 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11739 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11740 <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>
11741 <div class="gallerytext">
11742 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11743 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11747 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11748 <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>
11749 <div class="gallerytext">
11750 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11759 Gallery (with namespace-less filenames)
11762 File:Nonexistant.jpg
11768 <ul class="gallery">
11769 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11770 <div style="height: 150px;">Nonexistant.jpg</div>
11771 <div class="gallerytext">
11774 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11775 <div style="height: 150px;">Nonexistant.jpg</div>
11776 <div class="gallerytext">
11779 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11780 <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>
11781 <div class="gallerytext">
11784 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11785 <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>
11786 <div class="gallerytext">
11794 HTML Hex character encoding (spells the word "JavaScript")
11796 JavaScript
11798 <p>JavaScript
11803 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11807 <p>&#xsee;&#XSEE;
11812 HTML Hex character encoding mixed case
11821 __FORCETOC__ override
11833 ISBN 978-0-1234-56 789
11835 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11840 ISBN followed by 5 spaces
11851 ISBN ISBN 1234567890
11853 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11858 Bug 22905: <abbr> followed by ISBN followed by </a>
11860 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11862 <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>
11871 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11876 Double RFC with a wiki link
11880 <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>
11889 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11894 Centre-aligned image
11896 [[Image:foobar.jpg|centre]]
11898 <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>
11905 [[Image:foobar.jpg|none]]
11907 <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>
11912 Width + Height sized image (using px) (height is ignored)
11914 [[Image:foobar.jpg|640x480px]]
11916 <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>
11921 Width-sized image (using px, no following whitespace)
11923 [[Image:foobar.jpg|640px]]
11925 <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>
11930 Width-sized image (using px, with following whitespace - test regression from r39467)
11932 [[Image:foobar.jpg|640px ]]
11934 <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>
11939 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11941 [[Image:foobar.jpg| 640px]]
11943 <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>
11948 Another italics / bold test
11956 # Note the results may be incorrect, as parserTest output included this:
11957 # XML error: Mismatched tag at byte 6120:
11958 # ...<dd> </dt></dl> </dd...
11966 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11977 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11979 Images with the "|" character in the comment
11981 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11983 <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>
11988 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11990 <html><script>alert(1);</script></html>
11992 <p><html><script>alert(1);</script></html>
11997 HTML with raw HTML ($wgRawHtml==true)
12001 <html><script>alert(1);</script></html>
12003 <p><script>alert(1);</script>
12008 Parents of subpages, one level up
12010 subpage title=[[Subpage test/L1/L2/L3]]
12014 <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>
12020 Parents of subpages, one level up, not named
12022 subpage title=[[Subpage test/L1/L2/L3]]
12026 <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>
12033 Parents of subpages, two levels up
12035 subpage title=[[Subpage test/L1/L2/L3]]
12041 <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
12042 </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>
12047 Parents of subpages, two levels up, without trailing slash or name.
12049 subpage title=[[Subpage test/L1/L2/L3]]
12058 Parents of subpages, two levels up, with lots of extra trailing slashes.
12060 subpage title=[[Subpage test/L1/L2/L3]]
12064 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12069 Definition list code coverage
12075 <dl><dt> title  </dt><dd> def
12076 </dd><dt> title </dt><dd> def
12077 </dd><dt>title</dt><dd> def
12083 Don't fall for the self-closing div
12085 <div>hello world</div/>
12087 <div>hello world</div>
12096 <p>[[:Template:Msg]]
12105 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12109 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12111 Always escape literal '>' in output, not just after '<'
12125 <p>This is a test template
12126 This is a test template
12138 Inclusion of !userCanEdit() content
12142 <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>
12148 Out-of-order TOC heading levels
12157 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12159 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12161 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12162 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12165 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12167 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12168 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12173 <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>
12174 <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>
12175 <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>
12176 <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>
12177 <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>
12178 <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>
12184 ISBN with a dummy number
12194 ISBN with space-delimited number
12198 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12204 ISBN with multiple spaces, no number
12223 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12224 </p><p>ISBN 12345678901
12230 ISBN with trailing year (bug 8110)
12232 ISBN 1-234-56789-0 - 2006
12234 ISBN 1 234 56789 0 - 2006
12236 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12237 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12245 {{anchorencode:foo bar©#%n}}
12247 <p>foo_bar.C2.A9.23.25n
12252 anchorencode trims spaces
12254 {{anchorencode: __pretty__please__}}
12261 anchorencode deals with links
12263 {{anchorencode: [[hello|world]] [[hi]]}}
12270 anchorencode deals with templates
12272 {{anchorencode: {{Foo}} }}
12279 anchorencode encodes like the TOC generator: (bug 18431)
12281 === _ +:.3A%3A&&]] ===
12282 {{anchorencode: _ +:.3A%3A&&]] }}
12285 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12286 <p>.2B:.3A.253A.26.26.5D.5D
12290 # Expected output in the following test is not necessarily expected (there
12291 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12292 # only testing for well-formedness.
12294 Bug 6200: blockquotes and paragraph formatting
12314 Bug 8293: Use of center tag ruins paragraph formatting
12335 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12339 <span><s>x</span></s>
12341 <p><span><s>x</span></s></span>
12346 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12350 <span><s>x</span></s>
12352 <p><span><s>x</s></span><s></s>
12357 ### Language variants related tests
12360 Self-link in language variants
12362 title=[[Dunav]] language=sr
12364 Both [[Dunav]] and [[Дунав]] are names for this river.
12366 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12377 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12379 title=[[Duna]] language=sr
12381 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12383 <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.
12388 Link to pages in language variants
12392 Main Page can be written as [[Маин Паге]]
12394 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12400 Multiple links to pages in language variants
12404 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12406 <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>.
12412 Simple template in language variants
12418 <p>This is a test template
12424 Template with explicit namespace in language variants
12430 <p>This is a test template
12436 Basic test for template parameter in language variants
12440 {{парамтест|param=foo}}
12442 <p>This is a test template with parameter foo
12448 Simple category in language variants
12452 [[Category:МедиаWики Усер'с Гуиде]]
12454 <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>
12471 Don't convert blue categorylinks to another variant (bug 33210)
12475 [[A]][[Category:分类]]
12477 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12482 Stripping -{}- tags (language variants)
12486 Latin proverb: -{Ne nuntium necare}-
12488 <p>Latin proverb: Ne nuntium necare
12494 Prevent conversion with -{}- tags (language variants)
12496 language=sr variant=sr-ec
12498 Latinski: -{Ne nuntium necare}-
12500 <p>Латински: Ne nuntium necare
12506 Prevent conversion of text with -{}- tags (language variants)
12508 language=sr variant=sr-ec
12510 Latinski: -{Ne nuntium necare}-
12512 <p>Латински: Ne nuntium necare
12518 Prevent conversion of links with -{}- tags (language variants)
12520 language=sr variant=sr-ec
12524 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12530 -{}- tags within headlines (within html for parserConvert())
12532 language=sr variant=sr-ec
12536 <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>
12542 Explicit definition of language variant alternatives
12544 language=zh variant=zh-tw
12546 -{zh:China;zh-tw:Taiwan}-, not China
12548 <p>Taiwan, not China
12554 Conversion around HTML tags
12556 language=sr variant=sr-ec
12558 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12559 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12562 <span title="ЛаCтин">ски</span>
12568 Explicit session-wise language variant mapping (A flag and - flag)
12570 language=zh variant=zh-tw
12572 Taiwan is not China.
12573 But -{A|zh:China;zh-tw:Taiwan}- is China,
12574 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12575 and -{China}- is China.
12577 <p>Taiwan is not China.
12578 But Taiwan is Taiwan,
12579 (This should be stripped!)
12580 and China is China.
12585 Explicit session-wise language variant mapping (H flag for hide)
12587 language=zh variant=zh-tw
12589 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12592 <p>(This should be stripped!)
12598 Adding explicit conversion rule for title (T flag)
12600 language=zh variant=zh-tw showtitle
12602 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12605 <p>Should be stripped!
12610 Testing that changing the language variant here in the tests actually works
12612 language=zh variant=zh showtitle
12614 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12617 <p>Should be stripped!
12622 Recursive conversion of alt and title attrs shouldn't clear converter state
12624 language=zh variant=zh-cn showtitle
12626 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12627 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12631 Should be stripped<span title="Exclamation">!</span>
12636 Bug 24072: more test on conversion rule for title
12638 language=zh variant=zh-tw showtitle
12640 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12641 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12644 <p>This should be stripped!
12645 This won't take interferes with the title rule.
12650 Partly disable title conversion if variant == main language code
12652 language=zh variant=zh title=[[ZH]] showtitle
12654 -{T|zh-cn:CN;zh-tw:TW}-
12662 Partly disable title conversion if variant == main language code, more
12664 language=zh variant=zh title=[[ZH]] showtitle
12674 Raw output of variant escape tags (R flag)
12676 language=zh variant=zh-tw
12678 Raw: -{R|zh:China;zh-tw:Taiwan}-
12680 <p>Raw: zh:China;zh-tw:Taiwan
12685 Nested using of manual convert syntax
12687 language=zh variant=zh-hk
12689 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12691 <p>Nested: Hello Hong Kong!
12696 Proper conversion of text in external links
12698 language=sr variant=sr-ec
12700 http://www.google.com
12701 gopher://www.google.com
12702 [http://www.google.com http://www.google.com]
12703 [gopher://www.google.com gopher://www.google.com]
12704 [https://www.google.com irc://www.google.com]
12705 [ftp://www.google.com www.google.com/ftp://dir]
12706 [//www.google.com www.google.com]
12708 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12709 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12710 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12711 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12712 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12713 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12714 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12719 Do not convert roman numbers to language variants
12721 language=sr variant=sr-ec
12725 <p>Фридрих IV је цар.
12730 Unclosed language converter markup "-{"
12741 Don't convert raw rule "-{R|=>}-" to "=>"
12758 Bug 529: Uncovered bullet
12768 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12769 # Templates in Wikipedia rely on this behavior, as tidy has always been
12770 # enabled there. These tests are normally run *without* tidy, so specify the
12771 # full output here.
12772 # To test realistic parsing behavior, apply a tidy-like transformation to both
12773 # the expected output and your parser's output.
12775 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12777 ******* Foo {{bullet}}
12779 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12792 Bug 529: Uncovered table already at line-start
12815 Bug 529: Uncovered bullet in parser function result
12817 * Foo {{lc:{{bullet}} }}
12826 Bug 5678: Double-parsed template argument
12828 {{lc:{{{1}}}|hello}}
12835 Bug 5678: Double-parsed template invocation
12837 {{lc:{{paramtest {{!}} param = hello }} }}
12839 <p>{{paramtest | param = hello }}
12844 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12847 title=[[Main Page]]
12849 {{PRVNÍVELKÉ:ěščř}}
12850 {{prvnívelké:ěščř}}
12870 Morwen/13: Unclosed link followed by heading
12877 <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>
12882 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12889 <h1><span class="mw-headline" id="heading">heading</span></h1>
12894 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12901 <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>
12916 Paragraphs inside divs (no extra line breaks)
12928 Paragraphs inside divs (extra line break on open)
12943 Paragraphs inside divs (extra line break on close)
12958 Paragraphs inside divs (extra line break on open and close)
12975 Nesting tags, paragraphs on lines which begin with <div>
12979 <div></div><strong>A
12988 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12990 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12994 <blockquote>Line one
12996 Line two</blockquote>
12998 <blockquote>Line one
12999 Line two</blockquote>
13004 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13011 Line two</blockquote>
13016 Line two</blockquote>
13021 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13025 <blockquote>Line one
13030 <blockquote>Line one
13038 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13057 Paragraphs inside blockquotes/divs (no extra line breaks)
13059 <blockquote><div>Line one
13061 Line two</div></blockquote>
13063 <blockquote><div>Line one
13064 Line two</div></blockquote>
13069 Paragraphs inside blockquotes/divs (extra line break on open)
13074 Line two</div></blockquote>
13079 Line two</div></blockquote>
13084 Paragraphs inside blockquotes/divs (extra line break on close)
13086 <blockquote><div>Line one
13089 </div></blockquote>
13091 <blockquote><div>Line one
13094 </div></blockquote>
13099 Paragraphs inside blockquotes/divs (extra line break on open and close)
13105 </div></blockquote>
13111 </div></blockquote>
13116 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13118 wgLinkHolderBatchSize=0
13124 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13125 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13126 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13131 Free external link invading image caption
13133 [[Image:Foobar.jpg|thumb|http://x|hello]]
13135 <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>
13140 Bug 15196: localised external link numbers
13144 [http://en.wikipedia.org/]
13146 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13151 Multibyte character in padleft
13153 {{padleft:-Hello|7|Æ}}
13160 Multibyte character in padright
13162 {{padright:Hello-|7|Æ}}
13169 formatdate parser function
13171 {{#formatdate:2009-03-24}}
13173 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13178 formatdate parser function, with default format
13180 {{#formatdate:2009-03-24|mdy}}
13182 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13187 Spacing of numbers in formatted dates
13189 {{#formatdate:January 15}}
13191 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13196 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
13198 language=nl title=[[MediaWiki:Common.css]]
13200 {{#formatdate:2009-03-24|dmy}}
13202 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13215 Edit comment with link
13219 I like the [[Main Page]] a lot
13221 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13225 Edit comment with link and link text
13229 I like the [[Main Page|best pages]] a lot
13231 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13235 Edit comment with link and link text with suffix
13239 I like the [[Main Page|best page]]s a lot
13241 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13245 Edit comment with section link (non-local, eg in history list)
13247 comment title=[[Main Page]]
13249 /* External links */ removed bogus entries
13251 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13255 Edit comment with section link and text before it (non-local, eg in history list)
13257 comment title=[[Main Page]]
13259 pre-comment text /* External links */ removed bogus entries
13261 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>
13265 Edit comment with section link (local, eg in diff view)
13267 comment local title=[[Main Page]]
13269 /* External links */ removed bogus entries
13271 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13275 Edit comment with subpage link (bug 14080)
13279 title=[[Subpage test]]
13281 Poked at a [[/subpage]] here...
13283 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13287 Edit comment with subpage link and link text (bug 14080)
13291 title=[[Subpage test]]
13293 Poked at a [[/subpage|neat little page]] here...
13295 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13299 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13302 title=[[Subpage test]]
13304 Poked at a [[/subpage]] here...
13306 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13310 Edit comment with bare anchor link (local, as on diff)
13314 title=[[Main Page]]
13318 <a href="#section">#section</a>
13322 Edit comment with bare anchor link (non-local, as on history)
13325 title=[[Main Page]]
13329 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13333 Anchor starting with underscore
13337 <p><a href="#_ref">One</a>
13342 Id starting with underscore
13344 <div id="_ref"></div>
13346 <div id="_ref"></div>
13351 Space normalisation on autocomment (bug 22784)
13354 title=[[Main Page]]
13356 /* __hello__world__ */
13358 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13362 percent-encoding and + signs in comments (Bug 26410)
13366 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13368 <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>
13372 Bad images - basic functionality
13381 Bad images - bug 16039: text after bad image disappears
13395 Verify that displaytitle works (bug #22501) no displaytitle
13399 wgAllowDisplayTitle=true
13400 wgRestrictDisplayTitle=false
13402 this is not the the title
13405 <p>this is not the the title
13410 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13415 wgAllowDisplayTitle=true
13416 wgRestrictDisplayTitle=false
13418 this is not the the title
13419 {{DISPLAYTITLE:whatever}}
13422 <p>this is not the the title
13427 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13432 wgAllowDisplayTitle=true
13433 wgRestrictDisplayTitle=true
13435 this is not the the title
13436 {{DISPLAYTITLE:whatever}}
13439 <p>this is not the the title
13444 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13449 wgAllowDisplayTitle=true
13450 wgRestrictDisplayTitle=true
13452 this is not the the title
13453 {{DISPLAYTITLE:screen}}
13456 <p>this is not the the title
13461 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13466 wgAllowDisplayTitle=false
13468 this is not the the title
13469 {{DISPLAYTITLE:screen}}
13472 <p>this is not the the title
13473 <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>
13478 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13483 wgAllowDisplayTitle=false
13485 this is not the the title
13488 <p>this is not the the title
13493 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13498 wgAllowDisplayTitle=true
13499 wgRestrictDisplayTitle=true
13501 this is not the the title
13502 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13504 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13505 <p>this is not the the title
13510 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13515 wgAllowDisplayTitle=true
13516 wgRestrictDisplayTitle=true
13518 this is not the the title
13519 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13521 <span style="color: red;">s</span>creen
13522 <p>this is not the the title
13527 preload: check <noinclude> and <includeonly>
13531 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13537 preload: check <onlyinclude>
13541 Goodbye <onlyinclude>Hello world</onlyinclude>
13547 preload: can pass tags through if we want to
13551 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13553 <includeonly>Hello world</includeonly>
13557 preload: check that it doesn't try to do tricks
13561 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13563 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13567 Play a bit with r67090 and bug 3158
13571 <div style="width:50% !important"> </div>
13572 <div style="width:50% !important"> </div>
13573 <div style="width:50% !important"> </div>
13574 <div style="border : solid;"> </div>
13576 <div style="width:50% !important"> </div>
13577 <div style="width:50% !important"> </div>
13578 <div style="width:50% !important"> </div>
13579 <div style="border : solid;"> </div>
13584 HTML5 data attributes
13586 <span data-foo="bar">Baz</span>
13587 <p data-abc-def_hij="">Quuz</p>
13589 <p><span data-foo="bar">Baz</span>
13591 <p data-abc-def_hij="">Quuz</p>
13596 percent-encoding and + signs in internal links (Bug 26410)
13598 [[User:+%]] [[Page+title%]]
13599 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13600 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13601 [[%33%45]] [[%33%45+]]
13603 <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>
13604 <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>
13605 <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>
13606 <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>
13611 Special characters in embedded file links (bug 27679)
13613 [[File:Contains & ampersand.jpg]]
13614 [[File:Does not exist.jpg|Title with & ampersand]]
13616 <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>
13617 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13623 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13625 Text's been normalized?
13627 <p>Text's been normalized?
13632 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13634 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13636 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13641 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13643 [http://www.example.org/ ideograms]
13645 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13650 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13652 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13654 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13678 Bug 31098 Template which includes system messages which includes the template
13682 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13683 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13688 Bug31490 Turkish: ucfirst 'blah'
13699 Bug31490 Turkish: ucfirst 'ix'
13710 Bug31490 Turkish: lcfirst 'BLAH'
13721 Bug31490 Turkish: ucfırst (with a dotless i)
13727 <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>
13732 Bug31490 ucfırst (with a dotless i) with English language
13738 <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>
13743 Bug 26375: TOC with italics
13745 title=[[Main Page]]
13748 == ''Lost'' episodes ==
13750 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13752 <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>
13755 <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>
13760 Bug 26375: TOC with bold
13762 title=[[Main Page]]
13765 == '''should be bold''' then normal text ==
13767 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13769 <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>
13772 <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>
13777 Bug 33845: Headings become cursive in TOC when they contain an image
13779 title=[[Main Page]]
13782 == Image [[Image:foobar.jpg]] ==
13784 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13786 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13789 <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>
13794 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13796 title=[[Main Page]]
13799 == <blockquote>Quote</blockquote> ==
13801 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13803 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13806 <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>
13811 Unclosed tags in TOC
13813 title=[[Main Page]]
13817 <small>Hanc marginis exiguitas non caperet.</small>
13820 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13822 <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>
13825 <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>
13826 <p><small>Hanc marginis exiguitas non caperet.</small>
13832 Multiple tags in TOC
13835 == <i>Foo</i> <b>Bar</b> ==
13837 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13839 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13841 <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>
13842 <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>
13845 <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>
13846 <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>
13851 Tags with parameters in TOC
13854 == <sup class="in-h2">Hello</sup> ==
13856 == <sup class="a > b">Evilbye</sup> ==
13858 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13860 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13861 <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>
13864 <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>
13865 <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>
13870 span tags with directionality in TOC
13873 == <span dir="ltr">C++</span> ==
13875 == <span dir="rtl">זבנג!</span> ==
13877 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13879 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13881 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13883 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13885 <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>
13886 <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>
13887 <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>
13888 <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>
13889 <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>
13892 <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>
13893 <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>
13894 <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>
13895 <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>
13896 <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>
13903 == {{int:headline_sample}} ==
13907 Bug 32057: Title needed when expanding <h> nodes.
13909 title=[[Main Page]]
13913 <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>
13918 Strip marker in urlencode
13920 {{urlencode:x<nowiki/>y}}
13921 {{urlencode:x<nowiki/>y|wiki}}
13922 {{urlencode:x<nowiki/>y|path}}
13949 Strip marker in formatNum
13951 {{formatnum:1<nowiki/>2}}
13952 {{formatnum:1<nowiki/>2|R}}
13960 Check noCommafy in formatNum
13964 {{formatnum:123456.78}}
13965 {{formatnum:123456.78|NOSEP}}
13973 Strip marker in grammar
13977 {{grammar:elative|foo<nowiki/>bar}}
13984 Strip marker in padleft
13986 {{padleft:|2|x<nowiki/>y}}
13993 Strip marker in padright
13995 {{padright:|2|x<nowiki/>y}}
14002 Strip marker in anchorencode
14004 {{anchorencode:x<nowiki/>y}}
14011 nowiki inside link inside heading (bug 18295)
14013 ==[[foo|x<nowiki>y</nowiki>z]]==
14015 <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>
14020 new support for bdi element (bug 31817)
14022 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14024 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14029 Ignore pipe between table row attributes
14033 |- id=foo | style='color: red'
14041 <tr id="foo" style="color: red">
14048 Gallery override link with WikiLink (bug 34852)
14051 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14054 <ul class="gallery">
14055 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14056 <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>
14057 <div class="gallerytext">
14067 Gallery override link with absolute external link (bug 34852)
14070 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14073 <ul class="gallery">
14074 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14075 <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>
14076 <div class="gallerytext">
14086 Gallery override link with malicious javascript (bug 34852)
14089 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14092 <ul class="gallery">
14093 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14094 <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>
14095 <div class="gallerytext">
14105 Gallery with invalid title as link (bug 43964)
14108 File:foobar.jpg|link=<
14111 <ul class="gallery">
14112 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14113 <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>
14114 <div class="gallerytext">
14122 Language parser function
14131 Padleft and padright as substr
14133 {{padleft:|3|abcde}}
14134 {{padright:|3|abcde}}
14142 Special parser function
14144 {{#special:RandomPage}}
14145 {{#special:BaDtItLe}}
14146 {{#special:Foobar}}
14155 Bug 34939 - Case insensitive link parsing ([HttP://])
14157 [HttP://MediaWiki.Org/]
14159 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14164 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14166 [HttP://MediaWiki.Org/ MediaWiki]
14168 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14173 Bug 34939 - Case insensitive link parsing (HttP://)
14175 HttP://MediaWiki.Org/
14177 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14182 ### Parsoids-specific tests
14183 ### Parsoid-PHP parser incompatibilities
14186 1. SOL-sensitive wikitext tokens as template-args
14188 parsoid=wt2html,wt2wt
14194 <span about="#mwt1" typeof="mw:Transclusion">
14195 </span><ul about="#mwt1"><li>a</li></ul>
14196 <span about="#mwt2" typeof="mw:Transclusion">
14197 </span><ol about="#mwt2"><li>a</li></ol>
14198 <span about="#mwt3" typeof="mw:Transclusion">
14199 </span><dl about="#mwt3"><dd>a</dd></dl>
14202 #### ----------------------------------------------------------------
14203 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14204 #### tags. Parsoid's output for these tags differs from that of the
14206 #### ----------------------------------------------------------------
14209 Ref: 1. ref-location should be replaced with an index span
14214 B <ref name="x">foo</ref>
14217 <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>
14218 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>
14219 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>
14223 Ref: 2. ref-tags with identical names should all get the same index
14227 A <ref name="x">foo</ref>
14230 <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>
14231 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>
14235 Ref: 3. spaces in ref-names should be ignored
14239 A <ref name="x">foo</ref>
14240 B <ref name=" x " />
14243 <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>
14244 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>
14245 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>
14249 Ref: 4. 'constructor' should be accepted as a valid ref-name
14250 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14254 A <ref name="constructor">foo</ref>
14256 <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>
14260 Ref: 5. body should accept generic wikitext
14265 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14270 <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>
14272 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14273 <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>
14278 Ref: 6. indent-pres should not be output in ref-body
14290 <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>
14292 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14293 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14300 Ref: 6. No p-wrapping in ref-body
14319 <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>
14321 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14322 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14336 Ref: 8. transclusion wikitext has lower precedence
14340 A <ref> foo {{echo|</ref> B C}}
14344 <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>
14346 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14347 <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>
14351 Ref: 9. unclosed comments should not leak out of ref-body
14355 A <ref> foo <!--</ref> B C
14359 <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>
14361 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14362 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14366 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14370 A <ref> <b> foo </ref> B C
14374 <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>
14376 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14377 <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>
14381 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14388 <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
14389 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>
14393 Ref: 12. ref-tags act as trailing newline migration barrier
14397 <!--the newline at the end of this line moves out of the p-tag-->a
14399 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14404 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14407 <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>
14408 <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>
14415 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14423 <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
14424 <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>
14428 Ref: 14. A nested ref-tag should be emitted as plain text
14432 <ref>foo <ref>bar</ref> baz</ref>
14436 <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>
14438 <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>
14442 Ref: 15. ref-tags with identical names should get identical indexes
14446 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14447 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14451 <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>
14452 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>
14454 <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>
14458 References: 1. references tag without any refs should be handled properly
14464 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14468 References: 2. references tag with group only outputs references from that group
14472 A <ref group="a">foo</ref>
14473 B <ref group="b">bar</ref>
14475 <references group='a' />
14477 <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>
14478 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>
14480 <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>
14484 References: 3. ref list should be cleared after processing references
14496 <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>
14498 <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>
14500 <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>
14502 <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>
14506 References: 4. only referenced group should be cleared after processing references
14510 A <ref group="a">afoo</ref>
14513 <references group="a"/>
14519 <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>
14520 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>
14522 <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>
14524 <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>
14526 <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>
14530 References: 5. ref tags in references should be processed while ignoring all other content
14535 B <ref name="b">bar</ref>
14538 <ref name="a">foo</ref>
14539 This should just get lost.
14542 <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>
14543 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>
14545 <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>
14548 #### ----------------------------------------------------------------
14549 #### The following section of tests are primarily to test
14550 #### wikitext escaping capabilities of Parsoid. Given that
14551 #### escaping can be done any number of ways, the wikitext (input)
14552 #### is always adjusted to reflect how Parsoid adds nowiki
14555 #### We are marking several tests as parsoid-only since the
14556 #### HTML in the result section is different from what the
14557 #### PHP parser generates for it.
14558 #### ----------------------------------------------------------------
14561 #### --------------- Headings ---------------
14563 #### 1. Nested inside html <h1>=foo=</h1>
14564 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14565 #### 3. Nested inside html with wikitext split by html tags
14566 #### 4. No escape needed
14567 #### 5. Empty headings <h1></h1>
14568 #### 6. Heading chars in SOL context
14569 #### ----------------------------------------
14571 Headings: 0. Unnested
14575 <nowiki>=foo=</nowiki>
14577 <nowiki> =foo= </nowiki>
14579 <nowiki>=foo=</nowiki>
14581 =foo''a''<nowiki>=</nowiki>
14583 <p><span typeof="mw:Nowiki">=foo=</span></p>
14585 <p><span typeof="mw:Nowiki"> =foo= </span>
14587 <span typeof="mw:Nowiki">=foo=</span></p>
14589 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14593 Headings: 1. Nested inside html
14597 =<nowiki>=foo=</nowiki>=
14598 ==<nowiki>=foo=</nowiki>==
14599 ===<nowiki>=foo=</nowiki>===
14600 ====<nowiki>=foo=</nowiki>====
14601 =====<nowiki>=foo=</nowiki>=====
14602 ======<nowiki>=foo=</nowiki>======
14604 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14605 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14606 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14607 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14608 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14609 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
14613 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
14618 <nowiki>*bar</nowiki>
14622 <nowiki>=bar=</nowiki>
14630 Headings: 3. Nested inside html with wikitext split by html tags
14634 =='''bold'''<nowiki>foo=</nowiki>=
14636 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
14640 Headings: 4a. No escaping needed (testing just h1 and h2)
14651 =<nowiki>=</nowiki>=
14659 <h1><i>=</i>foo=</h1>
14660 <h1><span typeof="mw:Nowiki">=</span></h1>
14664 Headings: 4b. No escaping needed (inside p-tags)
14679 Headings: 5. Empty headings
14687 =====<nowiki/>=====
14688 ======<nowiki/>======
14699 Headings: 6a. Heading chars in SOL context (with trailing spaces)
14703 <nowiki>=a=</nowiki>
14705 <nowiki>=a= </nowiki>
14707 <nowiki>=a= </nowiki>
14709 <nowiki>=a= </nowiki>
14718 Headings: 6b. Heading chars in SOL context (with trailing newlines)
14746 Headings: 6c. Heading chars in SOL context (leading newline break)
14758 Headings: 6d. Heading chars in SOL context (with interspersed comments)
14762 <!--c0--><nowiki>=a=</nowiki>
14764 <nowiki>=a= </nowiki><!--c2--> <!--c3-->
14766 <p><!--c0-->=a=</p>
14767 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
14771 Headings: 6d. Heading chars in SOL context (No escaping needed)
14780 #### --------------- Lists ---------------
14781 #### 0. Outside nests (*foo, etc.)
14782 #### 1. Nested inside html <ul><li>*foo</li></ul>
14783 #### 2. Inside definition lists
14784 #### 3. Only bullets at start should be escaped
14785 #### 4. No escapes needed
14786 #### 5. No unnecessary escapes
14787 #### 6. Escape bullets in SOL position
14788 #### 7. Escape bullets in a multi-line context
14789 #### ----------------------------------------
14792 Lists: 0. Outside nests
14794 <nowiki>*foo</nowiki>
14796 <nowiki>#foo</nowiki>
14804 Lists: 1. Nested inside html
14806 *<nowiki>*foo</nowiki>
14808 *<nowiki>#foo</nowiki>
14810 *<nowiki>:foo</nowiki>
14812 *<nowiki>;foo</nowiki>
14814 #<nowiki>*foo</nowiki>
14816 #<nowiki>#foo</nowiki>
14818 #<nowiki>:foo</nowiki>
14820 #<nowiki>;foo</nowiki>
14842 Lists: 2. Inside definition lists
14844 ;<nowiki>;foo</nowiki>
14846 ;<nowiki>:foo</nowiki>
14848 ;<nowiki>:foo</nowiki>
14851 :<nowiki>:foo</nowiki>
14866 Lists: 3. Only bullets at start of text should be escaped
14868 *<nowiki>*foo*bar</nowiki>
14870 *<nowiki>*foo</nowiki>''it''*bar
14874 <ul><li>*foo<i>it</i>*bar
14880 Lists: 4. No escapes needed
14892 <ul><li><i>foo</i>*bar
14894 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
14899 Lists: 5. No unnecessary escapes
14901 * bar <span><nowiki>[[foo]]</nowiki></span>
14903 *=bar <span><nowiki>[[foo]]</nowiki></span>
14905 *[[bar <span><nowiki>[[foo]]</nowiki></span>
14907 *]]bar <span><nowiki>[[foo]]</nowiki></span>
14909 *=bar <span>foo]]</span>=
14913 <ul><li> bar <span>[[foo]]</span>
14915 <ul><li>=bar <span>[[foo]]</span>
14917 <ul><li>[[bar <span>[[foo]]</span>
14919 <ul><li>]]bar <span>[[foo]]</span>
14921 <ul><li>=bar <span>foo]]</span>=
14923 <ul><li> <s></s>: a
14929 Lists: 6. Escape bullets in SOL position
14933 <!--cmt--><nowiki>*foo</nowiki>
14935 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
14939 Lists: 7. Escape bullets in a multi-line context
14949 #### --------------- HRs ---------------
14950 #### 1. Single line
14951 #### -----------------------------------
14954 HRs: 1. Single line
14958 ----<nowiki>----</nowiki>
14962 <hr><span typeof="mw:Nowiki">----</span>
14967 #### --------------- Tables ---------------
14968 #### 1a. Simple example
14969 #### 1b. No escaping needed (!foo)
14970 #### 1c. No escaping needed (|foo)
14971 #### 1d. No escaping needed (|}foo)
14973 #### 2a. Nested in td (<td>foo|bar</td>)
14974 #### 2b. Nested in td (<td>foo||bar</td>)
14975 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
14977 #### 3a. Nested in th (<th>foo!bar</th>)
14978 #### 3b. Nested in th (<th>foo!!bar</th>)
14979 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
14983 #### 4c. No escaping needed
14984 #### --------------------------------------
14987 Tables: 1a. Simple example
14998 Tables: 1b. No escaping needed
15007 Tables: 1c. No escaping needed
15016 Tables: 1d. No escaping needed
15025 Tables: 2a. Nested in td
15030 |<nowiki>foo|bar</nowiki>
15034 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15038 Tables: 2b. Nested in td
15043 |<nowiki>foo||bar</nowiki>
15044 |''it''<nowiki>foo||bar</nowiki>
15048 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15049 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15053 Tables: 2c. Nested in td -- no escaping needed
15061 <table><tbody><tr><td>foo!!bar
15062 </td></tr></tbody></table>
15067 Tables: 3a. Nested in th
15075 <table><tbody><tr><th>foo!bar
15076 </th></tr></tbody></table>
15081 Tables: 3b. Nested in th
15086 !<nowiki>foo!!bar</nowiki>
15090 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15095 Tables: 3c. Nested in th -- no escaping needed
15100 !<nowiki>foo||bar</nowiki>
15104 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15108 Tables: 4a. Escape -
15116 |<nowiki>-bar</nowiki>
15120 <tr><th>-bar</th></tr>
15122 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15126 Tables: 4b. Escape +
15134 |<nowiki>+bar</nowiki>
15138 <tr><th>+bar</th></tr>
15140 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15144 Tables: 4c. No escaping needed
15158 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15159 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15163 ### SSS FIXME: Disabled right now because accurate html2wt
15164 ### on this snippet requires data-parsoid flags that we've
15165 ### stripped out of these tests. We should scheme how we
15166 ### we want to handle these kind of tests that require
15167 ### data-parsoid flags for accurate html2wt serialization
15170 Tables: 4d. No escaping needed
15188 #### --------------- Links ----------------
15189 #### 1. Quote marks in link text
15190 #### 2. Wikilinks: Escapes needed
15191 #### 3. Wikilinks: No escapes needed
15192 #### 4. Extlinks: Escapes needed
15193 #### 5. Extlinks: No escapes needed
15194 #### --------------------------------------
15196 Links 1. Quote marks in link text
15200 [[Foo|<nowiki>Foo''boo''</nowiki>]]
15202 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15206 Links 2. WikiLinks: Escapes needed
15210 [[Foo|<nowiki>[Foobar]</nowiki>]]
15211 [[Foo|<nowiki>Foobar]</nowiki>]]
15212 [[Foo|x [Foobar] x]]
15213 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15214 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15215 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15216 [[Foo|<nowiki>|Bar</nowiki>]]
15217 [[Foo|<nowiki>]]bar</nowiki>]]
15218 [[Foo|<nowiki>[[bar</nowiki>]]
15219 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15221 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15222 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15223 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15224 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15225 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15226 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15227 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15228 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15229 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15230 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15234 Links 3. WikiLinks: No escapes needed
15241 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15242 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15246 Links 4. ExtLinks: Escapes needed
15250 [http://google.com <nowiki>[google]</nowiki>]
15251 [http://google.com <nowiki>google]</nowiki>]
15253 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15254 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15258 Links 5. ExtLinks: No escapes needed
15262 [http://google.com [google]
15264 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15267 #### --------------- Quotes ---------------
15268 #### 1. Quotes inside <b> and <i>
15269 #### 2. Link fragments separated by <i> and <b> tags
15270 #### 3. Link fragments inside <i> and <b>
15271 #### --------------------------------------
15273 1. Quotes inside <b> and <i>
15275 ''<nowiki>'foo'</nowiki>''
15276 ''<nowiki>''foo''</nowiki>''
15277 ''<nowiki>'''foo'''</nowiki>''
15278 ''foo''<nowiki>'s</nowiki>
15279 '''<nowiki>'foo'</nowiki>'''
15280 '''<nowiki>''foo''</nowiki>'''
15281 '''<nowiki>'''foo'''</nowiki>'''
15282 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15283 '''foo'''<nowiki>'s</nowiki>
15292 <b>foo'<i>bar'</i>baz</b>
15298 2. Link fragments separated by <i> and <b> tags
15300 [[''foo''<nowiki>hello]]</nowiki>
15302 [['''foo'''<nowiki>hello]]</nowiki>
15304 <p>[[<i>foo</i>hello]]
15305 </p><p>[[<b>foo</b>hello]]
15310 2. Link fragments inside <i> and <b>
15311 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15312 this is one of the shortcomings of this format)
15314 ''[[foo''<nowiki>]]</nowiki>
15316 '''[[foo'''<nowiki>]]</nowiki>
15319 </p><p><b>[[foo</b>]]
15323 #### ----------- Paragraphs ---------------
15324 #### 1. No unnecessary escapes
15325 #### --------------------------------------
15328 1. No unnecessary escapes
15330 bar <span><nowiki>[[foo]]</nowiki></span>
15332 =bar <span><nowiki>[[foo]]</nowiki></span>
15334 [[bar <span><nowiki>[[foo]]</nowiki></span>
15336 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15338 =bar <span>foo]]</span><nowiki>=</nowiki>
15340 <p>bar <span>[[foo]]</span>
15341 </p><p>=bar <span>[[foo]]</span>
15342 </p><p>[[bar <span>[[foo]]</span>
15343 </p><p>]]bar <span>[[foo]]</span>
15344 </p><p>=bar <span>foo]]</span>=
15348 #### ----------------------- PRE --------------------------
15349 #### 1. Leading whitespace in SOL context should be escaped
15350 #### ------------------------------------------------------
15352 1. Leading whitespace in SOL context should be escaped
15356 <nowiki> a</nowiki>
15358 <nowiki> a</nowiki>
15360 <nowiki> a(tab)</nowiki>
15362 <nowiki> a</nowiki>
15364 <nowiki> a</nowiki>
15379 <p><!--cmt--> a</p>
15388 #### --------------- HTML tags ---------------
15391 #### 3. multi-line html tag
15392 #### -----------------------------------------
15398 <a href="http://google.com">google</a>
15400 <a href="http://google.com">google</a>
15406 <nowiki><div>foo</div>
15407 <div style="color:red">foo</div></nowiki>
15409 <p><div>foo</div>
15410 <div style="color:red">foo</div>
15415 3. multi-line html tag
15427 #### --------------- Others ---------------
15431 <nowiki>foo</nowiki>
15433 <p><nowiki>foo</nowiki>
15438 Tag-like HTML structures are passed through as text
15460 </p><p>1<d e>f
15465 # This fails in the PHP parser (see bug 40670,
15466 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15468 Tag names followed by punctuation should not be recognized as tags
15474 <p><s.ome> text
15479 HTML tag with necessary entities in attributes
15481 <span title="&amp;">foo</span>
15483 <p><span title="&amp;">foo</span>
15488 HTML tag with 'unnecessary' entity encoding in attributes
15490 <span title="&">foo</span>
15492 <p><span title="&">foo</span>
15497 HTML tag with broken attribute value quoting
15499 <span title="Hello world>Foo</span>
15501 <p><span>Foo</span>
15506 Parsoid-only: HTML tag with broken attribute value quoting
15510 <span title="Hello world>Foo</span>
15512 <p><span title="Hello world">Foo</span>
15517 Table with broken attribute value quoting
15520 | title="Hello world|Foo
15531 Table with broken attribute value quoting on consecutive lines
15534 | title="Hello world|Foo
15535 | style="color:red|Bar
15548 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15553 | title="Hello world|Foo
15554 | style="color:red|Bar
15559 <td title="Hello world">Foo
15560 </td><td style="color: red">Bar
15561 </td></tr></tbody></table>
15566 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15576 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15586 Accept empty td cell attribute
15589 | align="center" | foo || |
15594 <td align="center"> foo </td>
15601 Non-empty attributes in th-cells
15604 ! Foo !! style="color: red" | Bar
15610 <th style="color: red"> Bar
15616 Accept empty attributes in th-cells
15631 Empty table rows go away
15652 ### Parsoid-centric tests for testing RTing of inter-element separators
15653 ### Edge cases not tested by existing parser tests and specific to
15654 ### Parsoid-specific serialization strategies.
15658 RT-ed inter-element separators should be valid separators
15671 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
15672 (Parsoid-only since PHP parser relies on Tidy for correct output)
15688 Empty TD followed by TD with tpl-generated attribute
15693 |{{echo|style='color:red'}}|foo
15707 Indented table with an empty td
15726 Empty TR followed by a template-generated TR
15727 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
15729 parsoid=wt2html,wt2wt
15733 {{echo|<tr><td>foo</td></tr>}}
15739 <tr typeof="mw:Transclusion">
15740 <td>foo</td></tr></tbody></table>
15743 ## PHP and parsoid output differ for this, and since this is primarily
15744 ## for testing Parsoid's serializer, marking this Parsoid only
15746 Empty TR followed by mixed-ws-comment line should RT correctly
15760 <td> <!--c--></td></tr>
15762 <td><!--c--> <!--d--></td></tr>
15768 Multi-line image caption generated by templates with/without trailing newlines
15772 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
15773 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
15775 <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>
15776 <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>
15780 ## PHP emits broken html for this, and since this is primarily
15781 ## a Parsoid serializer test, marking this Parsoid only
15783 Improperly nested inline or quotes tags with whitespace in between
15787 <span> <s>x</span> </s>
15790 <p><span> <s>x</s></span><s> </s>
15791 <b> <i>x</i></b><i> </i>
15800 Try for 100% code coverage