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!-->
309 http://fr.wikipedia.org/wiki/🍺
310 <!-- EasterEgg we love beer, better be able be able to link to it -->
312 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
332 * plain''italic''plain
333 * plain''italic''plain''italic''plain
334 * plain'''bold'''plain
335 * plain'''bold'''plain'''bold'''plain
336 * plain''italic''plain'''bold'''plain
337 * plain'''bold'''plain''italic''plain
338 * plain''italic'''bold-italic'''italic''plain
339 * plain'''bold''bold-italic''bold'''plain
340 * plain'''''bold-italic'''italic''plain
341 * plain'''''bold-italic''bold'''plain
342 * plain''italic'''bold-italic'''''plain
343 * plain'''bold''bold-italic'''''plain
344 * plain l'''italic''plain
345 * plain l''''bold''' plain
348 </li><li> plain<i>italic</i>plain
349 </li><li> plain<i>italic</i>plain<i>italic</i>plain
350 </li><li> plain<b>bold</b>plain
351 </li><li> plain<b>bold</b>plain<b>bold</b>plain
352 </li><li> plain<i>italic</i>plain<b>bold</b>plain
353 </li><li> plain<b>bold</b>plain<i>italic</i>plain
354 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
355 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
356 </li><li> plain<i><b>bold-italic</b>italic</i>plain
357 </li><li> plain<b><i>bold-italic</i>bold</b>plain
358 </li><li> plain<i>italic<b>bold-italic</b></i>plain
359 </li><li> plain<b>bold<i>bold-italic</i></b>plain
360 </li><li> plain l'<i>italic</i>plain
361 </li><li> plain l'<b>bold</b> plain
367 ### 2-quote opening sequence tests
370 Italics and bold: 2-quote opening sequence: (2,2)
380 Italics and bold: 2-quote opening sequence: (2,3)
390 Italics and bold: 2-quote opening sequence: (2,4)
400 Italics and bold: 2-quote opening sequence: (2,5) (php)
409 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
411 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
423 ### 3-quote opening sequence tests
427 Italics and bold: 3-quote opening sequence: (3,2)
437 Italics and bold: 3-quote opening sequence: (3,3)
447 Italics and bold: 3-quote opening sequence: (3,4)
457 Italics and bold: 3-quote opening sequence: (3,5) (php)
466 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
468 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
480 ### 4-quote opening sequence tests
484 Italics and bold: 4-quote opening sequence: (4,2)
494 Italics and bold: 4-quote opening sequence: (4,3)
504 Italics and bold: 4-quote opening sequence: (4,4)
514 Italics and bold: 4-quote opening sequence: (4,5) (php)
523 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
525 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
531 <p>'<b>foo<i></i></b>
537 ### 5-quote opening sequence tests
541 Italics and bold: 5-quote opening sequence: (5,2) (php)
550 # Parsoid reverses the nesting order, compared to the PHP parser
552 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
564 Italics and bold: 5-quote opening sequence: (5,3)
574 Italics and bold: 5-quote opening sequence: (5,4)
578 <p><i><b>foo'</b></i>
584 Italics and bold: 5-quote opening sequence: (5,5)
593 ### multiple quote sequences in a line
596 Italics and bold: multiple quote sequences: (2,4,2)
600 <p><i>foo'<b>bar</b></i>
606 Italics and bold: multiple quote sequences: (2,4,3)
610 <p><i>foo'<b>bar</b></i>
616 Italics and bold: multiple quote sequences: (2,4,4)
620 <p><i>foo'<b>bar'</b></i>
626 Italics and bold: multiple quote sequences: (3,4,2) (php)
635 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
637 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
643 <p><b>foo'</b>bar<i></i>
649 Italics and bold: multiple quote sequences: (3,4,3) (php)
658 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
660 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
666 <p><b>foo'</b>bar<b></b>
671 ### other quote tests
674 Italics and bold: other quote tests: (2,3,5)
676 ''this is about '''foo's family'''''
678 <p><i>this is about <b>foo's family</b></i>
684 Italics and bold: other quote tests: (2,(3,3),2)
686 ''this is about '''foo's''' family''
688 <p><i>this is about <b>foo's</b> family</i>
694 Italics and bold: other quote tests: (3,2,3,2)
696 '''this is about ''foo'''s family''
698 <p><b>this is about <i>foo</i></b><i>s family</i>
703 # The Parsoid team believes the PHP parser's output on this test is wrong.
704 # It only checks for convert-to-bold-on-single-character-word when the word
705 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
706 # This means that the bold token in position 2 (0-indexed) gets converted by
707 # parsoid, but doesn't get changed by the PHP parser.
709 Italics and bold: other quote tests: (3,2,3,3) (php)
713 '''this is about ''foo'''s family'''
715 <p>'<i>this is about </i>foo<b>s family</b>
718 # This is the output the Parsoid team believes to be correct.
720 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
724 '''this is about ''foo'''s family'''
726 <p><b>this is about <i>foo'</i>s family</b>
732 Italics and bold: other quote tests: (3,(2,2),3)
734 '''this is about ''foo's'' family'''
736 <p><b>this is about <i>foo's</i> family</b>
742 Italicized possessive
744 The ''[[Main Page]]'''s talk page.
746 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
755 Non-html5 tags should be accepted
757 <center>''foo''</center>
760 <strike>''foo''</strike>
763 <center><i>foo</i></center>
764 <p><big><i>foo</i></big>
765 <font><i>foo</i></font>
766 <strike><i>foo</i></strike>
772 ### <nowiki> test cases
776 <nowiki> unordered list
778 <nowiki>* This is not an unordered list item.</nowiki>
780 <p>* This is not an unordered list item.
787 <nowiki>Lorem ipsum dolor
808 :There is not nowiki.
809 :There is <nowiki>nowiki</nowiki>.
811 #There is not nowiki.
812 #There is <nowiki>nowiki</nowiki>.
814 *There is not nowiki.
815 *There is <nowiki>nowiki</nowiki>.
817 <dl><dd>There is not nowiki.
818 </dd><dd>There is nowiki.
820 <ol><li>There is not nowiki.
821 </li><li>There is nowiki.
823 <ul><li>There is not nowiki.
824 </li><li>There is nowiki.
830 Entities inside <nowiki>
832 <nowiki><</nowiki>
843 Comments and Indent-Pre
845 <!-- comment 1 --> asdf
847 <!-- comment 1 --> asdf
850 <!-- comment 1 --> asdf
851 <!-- comment 2 -->xyz
853 <!-- comment 1 --> asdf
854 <!-- comment 2 --> xyz
910 asdf<!-- comment 1 -->jkl
920 <!-- foo --> b <!-- bar -->
934 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
940 Comment semantics and delimiters
942 <!-- --><!----><!-----><!------>
948 Comment semantics and delimiters, redux
950 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
951 -- foo -- funky huh? ... -->
957 Comment semantics and delimiters: directors cut
959 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
960 everything starting with < followed by !-- until the first -- and > we see,
961 that wouldn't be valid XML however, since in XML -- has to terminate a comment
969 Comment semantics: nesting
971 <!--<!-- no, we're not going to do anything fancy here -->-->
978 Comment semantics: unclosed comment at end
980 <!--This comment will run out to the end of the document
986 Comment in template title
995 Comment on its own line post-expand
1007 Comment on its own line post-expand with non-significant whitespace
1019 ### paragraph wraping tests
1033 Block tag on one line
1045 Block tag on both lines
1057 Multiple lines without block tags
1075 Empty lines between lines with block tags
1105 ### Preformatted text
1114 And a [[Main Page|link]]
1120 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1125 Ident preformatting with inline content
1136 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1153 Regression with preformatted in <center>
1166 # Expected output in the following test is not really expected (there should be
1167 # <pre> in the output) -- it's only testing for well-formedness.
1169 Bug 6200: Preformatted in <blockquote>
1182 <pre> with attributes (bug 3202)
1184 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1186 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1191 <pre> with width attribute (bug 3202)
1193 <pre width="8">Narrow screen goodies</pre>
1195 <pre width="8">Narrow screen goodies</pre>
1200 <pre> with forbidden attribute (bug 3202)
1202 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1204 <pre width="8">Narrow screen goodies</pre>
1209 Entities inside <pre>
1218 <pre> with forbidden attribute values (bug 3202)
1220 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1222 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1227 <nowiki> inside <pre> (bug 13238)
1235 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1243 <pre><nowiki>Foo</nowiki></pre>
1248 <nowiki> and <pre> preference (first one wins)
1279 </pre> inside nowiki
1281 <nowiki></pre></nowiki>
1288 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1296 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1306 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1318 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1339 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1343 {{echo| foo}}{{echo| bar}}
1348 {{echo|<!--cmt--> foo}}
1350 <!--cmt-->{{echo| foo}}
1352 {{echo|{{echo| }}bar}}
1370 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1407 Templates: Single-line variant of parameter whitespace stripping test
1413 {{echo|{{echo| a}}}}
1415 {{echo|1={{echo| a}}}}
1428 Templates: Strip whitespace from named parameters, but not positional ones
1456 ### Parsoid-centric tests for testing RT edge cases for pre
1460 1a. Indent-Pre and Comments
1473 1b. Indent-Pre and Comments
1486 1c. Indent-Pre and Comments
1499 2a. Indent-Pre and tables
1520 2b. Indent-Pre and tables
1536 2c. Indent-Pre and tables (bug 42252)
1553 3a. Indent-Pre and block tags (single-line html)
1561 <pre><span> foo </span>
1566 3b. Indent-Pre and block tags (pre-content on separate line)
1618 4. Multiple spaces at start-of-line
1637 5. White-space in indent-pre
1638 NOTE: the white-space char on 2nd line is significant
1651 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1655 HTML-pre: 1. embedded newlines
1691 HTML-pre: 2: indented text
1704 HTML-pre: 3: other wikitext
1725 ### Definition lists
1732 <dl><dt> name </dt><dd> Definition
1738 Definition list for indentation only
1742 <dl><dd> Indented text
1748 Definition list with no space
1752 <dl><dt>name</dt><dd>Definition
1758 Definition list with URL link
1760 ; http://example.com/ : definition
1762 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1768 Definition list with bracketed URL link
1770 ;[http://www.example.com/ Example]:Something about it
1772 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1778 Definition list with wikilink containing colon
1780 ; [[Help:FAQ]]: The least-read page on Wikipedia
1782 <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
1787 # At Brion's and JeLuF's insistence... :)
1789 Definition list with news link containing colon
1791 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1793 <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!
1799 Malformed definition list with colon
1801 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1803 <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
1809 Definition lists: colon in external link text
1811 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1813 <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
1819 Definition lists: colon in HTML attribute
1821 ;<b style="display: inline">bold</b>
1823 <dl><dt><b style="display: inline">bold</b>
1829 Definition lists: self-closed tag
1831 ;one<br/>two : two-line fun
1833 <dl><dt>one<br />two </dt><dd> two-line fun
1839 Bug 11748: Literal closing tags
1843 <dd>test test test test test</dd>
1845 <dd>test test test test test</dd>
1850 <dd>test test test test test</dd>
1852 <dd>test test test test test</dd>
1858 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1861 ; term : description
1867 <dl><dt> term </dt><dd> description
1878 Definition list with empty definition and following paragraph
1883 <dl><dt> term</dt><dd>
1890 Nested definition lists using html syntax
1907 Definition Lists: No nesting: Multiple dd's
1921 Definition Lists: Indentation: Regular
1937 Definition Lists: Indentation: Missing 1st level
1951 Definition Lists: Indentation: Multi-level indent
1955 <dl><dd><dl><dd><dl><dd>i3
1963 Definition Lists: Hacky use to indent tables
1970 should be left alone
1972 <dl><dd><dl><dd><table>
1977 </td></tr></table></dd></dl></dd></dl>
1979 should be left alone
1982 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1983 ## as an empty dt item. It also ignores all but the last ";" when followed
1984 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1985 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1988 ## Ex: ";;t2 ::d2" is transformed into:
2000 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2001 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2012 ## All Parsoid only definition list tests have this difference.
2014 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2015 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2018 Table / list interaction: indented table with lists in table contents
2040 </td></tr></table></dd></dl>
2045 Table / list interaction: lists nested in tables nested in indented lists
2070 </td></tr></table></dd></dl>
2078 Definition Lists: Nesting: Multi-level (Parsoid only)
2108 Definition Lists: Nesting: Test 2 (Parsoid only)
2128 Definition Lists: Nesting: Test 3 (Parsoid only)
2156 Definition Lists: Nesting: Test 4
2161 <dl><dd><dl><dd><dl><dt>t3
2170 ## The Parsoid team believes the following three test exposes a
2171 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2172 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2174 Definition Lists: Mixed Lists: Test 1 (php)
2182 <dl><dd><dl><dt><ul><li> foo
2192 Definition Lists: Mixed Lists: Test 1 (parsoid)
2200 <dl><dd><dl><dt><ul><li> foo
2201 </li></ul></dt><dd><ul><li> bar
2202 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2206 Definition Lists: Mixed Lists: Test 2
2220 Definition Lists: Mixed Lists: Test 3
2225 <ul><li><dl><dd><dl><dd><dl><dd> d1
2236 Definition Lists: Mixed Lists: Test 4
2241 <ul><li><dl><dt>d1 </dt><dd>d2
2242 </dd><dt>d3 </dt><dd>d4
2250 Definition Lists: Mixed Lists: Test 5
2265 Definition Lists: Mixed Lists: Test 6
2270 <ol><li><ul><li><dl><dd>d1
2282 Definition Lists: Mixed Lists: Test 7
2296 Definition Lists: Mixed Lists: Test 8
2312 Definition Lists: Mixed Lists: Test 9
2316 <ul><li><dl><dt>foo </dt><dd>bar
2324 Definition Lists: Mixed Lists: Test 10
2328 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2335 # The Parsoid team disagrees with the PHP parser's seemingly-random
2336 # rules regarding dd/dt on the next two tests. Parsoid is more
2337 # consistent, and recognizes the shared nesting and keeps the
2338 # still-open tags around until the nesting is complete.
2341 Definition Lists: Mixed Lists: Test 11 (php)
2348 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2353 <dl><dt>boo </dt><dd>baz
2362 Definition Lists: Mixed Lists: Test 11 (parsoid)
2369 <ul><li><ol><li><ul><li><ol><li><dl><dt><ul><li><dl><dt><dl><dt>foo </dt><dd>bar
2370 </dd></dl></dt></dl></li></ul></dt><dt>boo </dt><dd>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2375 Definition Lists: Weird Ones: Test 1 (php)
2379 *#;*::;; foo : bar (who uses this?)
2381 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2393 Definition Lists: Weird Ones: Test 1 (parsoid)
2397 *#;*::;; foo : bar (who uses this?)
2399 <ul><li><ol><li><dl><dt><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> foo </dt><dd> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2406 External links: non-bracketed
2408 Non-bracketed: http://example.com
2410 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2415 External links: numbered
2417 Numbered: [http://example.com]
2418 Numbered: [http://example.net]
2419 Numbered: [http://example.com]
2421 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2422 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2423 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2428 External links: specified text
2430 Specified text: [http://example.com link]
2432 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2437 External links: trail
2439 Linktrails should not work for external links: [http://example.com link]s
2441 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2446 External links: dollar sign in URL
2448 http://example.com/1$2345
2450 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2455 External links: dollar sign in URL (named)
2457 [http://example.com/1$2345]
2459 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2464 External links: open square bracket forbidden in URL (bug 4377)
2466 http://example.com/1[2345
2468 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2473 External links: open square bracket forbidden in URL (named) (bug 4377)
2475 [http://example.com/1[2345]
2477 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2482 External links: nowiki in URL link text (bug 6230)
2484 [http://example.com/ <nowiki>''example site''</nowiki>]
2486 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2491 External links: newline forbidden in text (bug 6230 regression check)
2493 [http://example.com/ first
2496 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2502 External links: Pipe char between url and text
2504 [http://example.com | link]
2506 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2511 External links: protocol-relative URL in brackets
2513 [//example.com/ Test]
2515 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2520 External links: protocol-relative URL in brackets without text
2524 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2529 External links: protocol-relative URL in free text is left alone
2533 <p>//example.com/Foo
2538 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2540 foo//example.com/Foo
2542 <p>foo//example.com/Foo
2549 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2551 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2556 External image from https
2558 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2560 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2565 Link to non-http image, no img tag
2567 Link to non-http image, no img tag: ftp://example.com/test.jpg
2569 <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>
2574 External links: terminating separator
2576 Terminating separator: http://example.com/thing,
2578 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2583 External links: intervening separator
2585 Intervening separator: http://example.com/1,2,3
2587 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2592 External links: old bug with URL in query
2594 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2596 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2601 External links: old URL-in-URL bug, mixed protocols
2603 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2605 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2610 External links: URL in text
2612 URL in text: [http://example.com http://example.com]
2614 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2619 External links: Clickable images
2621 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2623 <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>
2628 External links: raw ampersand
2630 Old & use: http://x&y
2632 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2637 External links: encoded ampersand
2639 Old & use: http://x&y
2641 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2646 External links: encoded equals (bug 6102)
2648 http://example.com/?foo=bar
2650 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2655 External links: [raw ampersand]
2657 Old & use: [http://x&y]
2659 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2664 External links: [encoded ampersand]
2666 Old & use: [http://x&y]
2668 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2673 External links: [encoded equals] (bug 6102)
2675 [http://example.com/?foo=bar]
2677 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2682 External links: [IDN ignored character reference in hostname; strip it right off]
2684 [http://e‌xample.com/]
2686 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2690 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2691 # Where an external link could easily circumvent the sanitization of the text of
2692 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2693 # test demands a higher standard. That's a bit strange.
2697 # http://example.com -> [http://example.com|http://example.com]
2698 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2700 # The first example is sanitized, but the second is not. Any security benefits
2701 # from this production are trivial to circumvent. Either remove this test and
2702 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2703 # the test accordingly.
2708 External links: IDN ignored character reference in hostname; strip it right off
2710 http://e‌xample.com/
2712 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2717 External links: www.jpeg.org (bug 554)
2721 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2726 External links: URL within URL (original bug 2)
2728 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2730 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2735 BUG 361: URL inside bracketed URL
2737 [http://www.example.com/foo http://www.example.com/bar]
2739 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2744 BUG 361: URL within URL, not bracketed
2746 http://www.example.com/foo?=http://www.example.com/bar
2748 <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>
2753 BUG 289: ">"-token in URL-tail
2755 http://www.example.com/<hello>
2757 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2762 BUG 289: literal ">"-token in URL-tail
2764 http://www.example.com/<b>html</b>
2766 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2771 BUG 289: ">"-token in bracketed URL
2773 [http://www.example.com/<hello> stuff]
2775 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2780 BUG 289: literal ">"-token in bracketed URL
2782 [http://www.example.com/<b>html</b> stuff]
2784 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2789 BUG 289: literal double quote at end of URL
2791 http://www.example.com/"hello"
2793 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2798 BUG 289: literal double quote in bracketed URL
2800 [http://www.example.com/"hello" stuff]
2802 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2807 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2809 [http://www.example.com test]
2811 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2816 External links: link text with spaces
2818 [http://www.example.com a b c]
2819 [http://www.example.com ''a'' ''b'']
2821 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2822 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2827 External links: wiki links within external link (Bug 3695)
2829 [http://example.com [[wikilink]] embedded in ext link]
2831 <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>
2836 BUG 787: Links with one slash after the url protocol are invalid
2840 [http:/example.com title]
2842 <p>http:/example.com
2843 </p><p>[http:/example.com title]
2848 Bracketed external links with template-generated invalid target
2850 [{{echo|http:/example.com}} title]
2852 <p>[http:/example.com title]
2857 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2859 ''[http://example.com text'']
2860 [http://example.com '''text]'''
2861 ''Something [http://example.com in italic'']
2862 ''Something [http://example.com mixed''''', even bold]'''
2863 '''''Now [http://example.com both''''']
2865 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2866 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2867 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2868 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2869 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2875 Bug 4781: %26 in URL
2877 http://www.example.com/?title=AT%26T
2879 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2883 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2884 # % is actually legal in HTML5. Any change in output would need testing though.
2886 Bug 4781, 5267: %25 in URL
2888 http://www.example.com/?title=100%25_Bran
2890 <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>
2895 Bug 4781, 5267: %28, %29 in URL
2897 http://www.example.com/?title=Ben-Hur_%281959_film%29
2899 <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>
2905 Bug 4781: %26 in autonumber URL
2907 [http://www.example.com/?title=AT%26T]
2909 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2914 Bug 4781, 5267: %26 in autonumber URL
2916 [http://www.example.com/?title=100%25_Bran]
2918 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2923 Bug 4781, 5267: %28, %29 in autonumber URL
2925 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2927 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2933 Bug 4781: %26 in bracketed URL
2935 [http://www.example.com/?title=AT%26T link]
2937 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2942 Bug 4781, 5267: %26 in bracketed URL
2944 [http://www.example.com/?title=100%25_Bran link]
2946 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2951 Bug 4781, 5267: %28, %29 in bracketed URL
2953 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2955 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2960 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2962 Some [http://example.com/ pretty ''italics'' and stuff]!
2964 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2969 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2971 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2973 <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>
2978 External link containing double-single-quotes with no space separating the url from text in italics
2980 [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]].]
2982 <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>
2987 URL-encoding in URL functions (single parameter)
2989 {{localurl:Some page|amp=&}}
2991 <p>/index.php?title=Some_page&amp=&
2996 URL-encoding in URL functions (multiple parameters)
2998 {{localurl:Some page|q=?&=&}}
3000 <p>/index.php?title=Some_page&q=?&amp=&
3007 http://example.com/index.php?foozoid%5B%5D=bar
3009 http://example.com/index.php?foozoid[]=bar
3011 <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>
3012 </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>
3017 IPv6 urls (bug 21261)
3021 http://[2404:130:0:1000::187:2]/index.php
3023 <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>
3028 Non-extlinks in brackets
3037 [{{echo|foo}} ''bar'']
3038 [{{echo|foo}}l's] errand
3039 [{{echo|foo}}l's errand]
3041 [url=http://example.com]
3054 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3065 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3067 Normal text. '''''Bold italic text.''''' Normal text.
3069 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3070 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3076 Unclosed and unmatched quotes (php)
3080 '''''Bold italic text '''with bold deactivated''' in between.'''''
3082 '''''Bold italic text ''with italic deactivated'' in between.'''''
3086 ..spanning two paragraphs (should not work).'''
3088 '''Bold tag left open
3090 ''Italic tag left open
3094 <!-- Unmatching number of opening, closing tags: -->
3095 '''This year''''s election ''should'' beat '''last year''''s.
3097 ''Tom'''s car is bigger than ''Susan'''s.
3099 Plain ''italic'''s plain
3101 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3102 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3103 </p><p><b>Bold text..</b>
3104 </p><p>..spanning two paragraphs (should not work).
3105 </p><p><b>Bold tag left open</b>
3106 </p><p><i>Italic tag left open</i>
3108 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3109 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3110 </p><p>Plain <i>italic'</i>s plain
3113 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3114 # parser strips. The wikitext contains just the first half of the bold
3115 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3116 # differently than the PHP parser.)
3118 Unclosed and unmatched quotes (parsoid)
3122 '''''Bold italic text '''with bold deactivated''' in between.'''''
3124 '''''Bold italic text ''with italic deactivated'' in between.'''''
3128 ..spanning two paragraphs (should not work).'''
3130 '''Bold tag left open
3132 ''Italic tag left open
3136 <!-- Unmatching number of opening, closing tags: -->
3137 '''This year''''s election ''should'' beat '''last year''''s.
3139 ''Tom'''s car is bigger than ''Susan'''s.
3141 Plain ''italic'''s plain
3143 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3144 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3145 </p><p><b>Bold text..</b>
3146 </p><p>..spanning two paragraphs (should not work).<b></b>
3147 </p><p><b>Bold tag left open</b>
3148 </p><p><i>Italic tag left open</i>
3150 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3151 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3152 </p><p>Plain <i>italic'</i>s plain
3159 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3162 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3163 # is the bare minimun required by the spec, see:
3164 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3166 A table with no data. (php)
3173 # Parsoid team replies: empty table tags are legal in HTML5
3175 A table with no data. (parsoid)
3184 # A table with nothing but a caption is invalid XHTML, we might want to render
3185 # this as <p>caption</p>
3187 A table with nothing but a caption (php)
3197 </caption><tr><td></td></tr></table>
3200 # Parsoid team replies: table with only a caption is legal in HTML5
3202 A table with nothing but a caption (parsoid)
3210 <table><caption> caption</caption></table>
3214 A table with caption with default-spaced attributes and a table row
3217 |+ style="color: red;" | caption1
3223 <caption style="color: red;"> caption1
3232 A table with captions with non-default spaced attributes and a table row
3235 |+style="color: red;"|caption2
3236 |+ style="color: red;"| caption3
3242 <caption style="color: red;">caption2
3244 <caption style="color: red;"> caption3
3253 Table td-cell syntax variations
3257 | foo bar foo || baz
3258 | style='color:red;' | baz
3259 | style='color:red;' || baz
3266 <td> foo bar foo </td>
3269 <td style="color:red;"> baz
3271 <td> style='color:red;' </td>
3299 Simple table but with multiple dashes for row wikitext
3317 Multiplication table
3319 {| border="1" cellpadding="2"
3320 |+Multiplication table
3322 ! × !! 1 !! 2 !! 3
3340 <table border="1" cellpadding="2">
3341 <caption>Multiplication table
3388 Accept "||" in table headings
3403 Accept "||" in indented table headings
3413 </th></tr></table></dd></dl>
3418 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3435 Accept "| !" at start of line in tables (ignore !-attribute)
3439 | !style="color:red" | bar
3451 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 +/-
3455 |style='color:red;'|+1
3456 |style='color:blue;'|-1
3468 <td style="color:red;">+1
3470 <td style="color:blue;">-1
3494 |rowspan=2| Cell 2, row 1 (and 2)
3505 <td rowspan="2"> Cell 2, row 1 (and 2)
3523 {| bgcolor=#ABCDEF border=2
3528 |the original table again
3536 <table bgcolor="#ABCDEF" border="2">
3544 <td>the original table again
3550 Invalid attributes in table cell (bug 1830)
3565 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3568 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3572 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3573 <td>]" onmouseover="alert(document.cookie)">test
3582 Indented table markup mixed with indented pre content (proposed in bug 6200)
3587 Text that should be rendered preformatted
3595 <pre>Text that should be rendered preformatted
3604 Template-generated table cell attributes and cell content
3612 <td style="color: red"> Foo
3618 Table with row followed by newlines and table heading
3636 Table with empty line following the start tag
3653 # FIXME: Preserve the attribute properly (with an empty string as value) in
3654 # the PHP parser. Parsoid implements the behavior below.
3656 Table attributes with empty value
3672 Wikitext table with a lot of comments
3695 Wikitext table with double-line table cell
3712 Table cell with a single comment
3728 # The expected HTML structure in this test is debatable. The PHP parser does
3729 # not parse this kind of table at all. The main focus for Parsoid is on
3730 # round-tripping, so this output is ok for now. TODO: revisit!
3732 Wikitext table with html-syntax row (Parsoid)
3745 <td>foo</td></tr></tbody></table>
3752 Plain link, capitalized
3756 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3761 Plain link, uncapitalized
3765 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3772 [[Main Page|The Main Page]]
3774 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3783 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3788 Broken link with fragment
3790 [[Zigzagzogzagzig#zug]]
3792 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3797 Special page link with fragment
3799 [[Special:Version#anchor]]
3801 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3806 Nonexistent special page link with fragment
3808 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3810 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3817 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3819 <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>
3826 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3828 <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>!!!
3839 Bug 43661: Piped links with identical prefixes
3841 [[prefixed article|prefixed articles with spaces]]
3843 [[prefixed article|prefixed articlesaoeu]]
3845 [[Main Page|Main Page test]]
3847 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3848 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3849 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3855 Link with HTML entity in suffix / tail
3857 [[Main Page]]", [[Main Page]]a
3859 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3864 Link with 3 brackets
3873 Piped link with 3 brackets
3875 [[[main page|the main page]]]
3877 <p>[[[main page|the main page]]]
3882 Link with multiple pipes
3884 [[Main Page|The|Main|Page]]
3886 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3893 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3895 <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>
3900 Piped link to namespace
3902 [[Meta:Disclaimers|The disclaimers]]
3904 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3911 [[Usually caused by a typo (oops}]]
3913 <p>[[Usually caused by a typo (oops}]]
3918 Link containing % (not as a hex sequence)
3922 <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>
3927 Link containing % as a single hex sequence interpreted to char
3931 <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>
3936 Link containing % as a double hex sequence interpreted to hex sequence
3940 <p>[[7%2525 Solution]]
3945 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3946 Example for such a section: == < ==
3948 [[%23%3c]][[%23%3e]]
3950 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3955 Link containing "<#" and ">#" as a hex sequences
3957 [[%3c%23]][[%3e%23]]
3959 <p>[[%3c%23]][[%3e%23]]
3964 Link containing double-single-quotes '' (bug 4598)
3966 [[Lista d''e paise d''o munno]]
3968 <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>
3973 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3975 Some [[Link|pretty ''italics'' and stuff]]!
3977 <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>!
3982 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3984 ''Some [[Link|pretty ''italics'' and stuff]]!
3986 <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>
3991 Link with double quotes in title part (literal) and alternate part (interpreted)
3993 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3997 [[''Pentecoste''|Pentecoste]]
3999 [[''Pentecoste''|''Pentecoste'']]
4001 <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>
4002 </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>
4003 </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>
4004 </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>
4009 Broken image links with HTML captions (bug 39700)
4011 [[File:Nonexistent|<script></script>]]
4012 [[File:Nonexistent|100px|<script></script>]]
4013 [[File:Nonexistent|<]]
4014 [[File:Nonexistent|a<i>b</i>c]]
4016 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4017 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4018 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4019 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4026 [[http://www.example.com]]
4028 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4033 Plain link to URL with link text
4035 [[http://www.example.com Link text]]
4037 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4042 Plain link to protocol-relative URL
4044 [[//www.example.com]]
4046 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4051 Plain link to protocol-relative URL with link text
4053 [[//www.example.com Link text]]
4055 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4060 Plain link to page with question mark in title
4066 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4067 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4072 # I'm fairly sure the expected result here is wrong.
4073 # We want these to be URL links, not pseudo-pages with URLs for titles....
4074 # However the current output is also pretty screwy.
4077 # I'm changing it to match the current output--it arguably makes more
4078 # sense in the light of the test above. Old expected result was:
4079 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4081 # But I think this test is bordering on "garbage in, garbage out" anyway.
4086 Piped link to URL: [[http://www.example.com|an example URL]]
4088 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4093 BUG 2: [[page|http://url/]] should link to page, not http://url/
4095 [[Main Page|http://url/]]
4097 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4102 BUG 337: Escaped self-links should be bold
4106 [[Bug462]] [[Bug462]]
4108 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4113 Self-link to section should not be bold
4117 [[Main Page#section]]
4119 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4130 Self-link to numeric title
4136 <p><strong class="selflink">0</strong>
4141 Link to numeric-equivalent title
4147 <p><a href="/wiki/00" title="00">00</a>
4152 <nowiki> inside a link
4154 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4156 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4161 Non-breaking spaces in title
4163 [[ Main Page ]]
4165 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4170 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4176 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4181 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4187 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4192 Internal link with en linktrail: no apostrophes (bug 27473)
4198 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4203 Internal link with ca linktrail with apostrophes (bug 27473)
4209 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4214 Internal link with kaa linktrail with apostrophes (bug 27473)
4220 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4225 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4233 [http://wp.org ''foo'']
4235 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4236 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4237 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4238 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4243 ### Interwiki links (see maintenance/interwiki.sql)
4247 Inline interwiki link
4249 [[MeatBall:SoftSecurity]]
4251 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4256 Inline interwiki link with empty title (bug 2372)
4260 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4265 Interwiki link encoding conversion (bug 1636)
4267 *[[Wikipedia:ro:Olteniţa]]
4268 *[[Wikipedia:ro:Olteniţa]]
4270 <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>
4271 </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>
4277 Interwiki link with fragment (bug 2130)
4279 [[MeatBall:SoftSecurity#foo]]
4281 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4296 Double interlanguage link
4307 Interlanguage link, with prefix links
4319 Double interlanguage link, with prefix links (bug 8897)
4332 Parsoid-specific test: Wikilinks with should RT properly
4338 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4356 Broken br tag sanitization
4365 Incorrecly removing closing slashes from correctly formed XHTML
4367 <br style="clear:both;" />
4369 <p><br style="clear:both;" />
4374 Failing to transform badly formed HTML into correct XHTML
4376 <br style="clear: left;">
4377 <br style="clear: right;">
4378 <br style="clear: both;">
4380 <p><br style="clear: left;" />
4381 <br style="clear: right;" />
4382 <br style="clear: both;" />
4387 Handling html with a div self-closing tag
4396 <p><div title />
4400 <p><div title=bar />
4401 <div title=bar/>
4403 <div title="bar/"></div>
4409 Handling html with a br self-closing tag
4418 <p><br title="title" />
4419 <br title="title" />
4428 Horizontal ruler (should it add that extra space?)
4442 Horizontal ruler -- 4+ dashes render hr
4451 Horizontal ruler -- eats additional dashes on the same line
4460 Horizontal ruler -- does not collaps dashes on consecutive lines
4471 Horizontal ruler -- <4 dashes render as plain text
4480 Horizontal ruler -- Supports content following dashes on same line
4489 ### Block-level elements
4512 <ol><li>Numbered list
4529 ***#Number on level 4
4531 **#Number on level 3
4532 **#Number on level 3
4536 #** Level 3, but ordered
4539 <ol><li> with numbers
4541 <ul><li> and bullets
4543 <ol><li> and numbers
4545 </li><li>bullets again
4546 <ul><li>bullet level 2
4547 <ul><li>bullet level 3
4548 <ol><li>Number on level 4
4551 </li><li>bullet level 2
4552 <ol><li>Number on level 3
4553 </li><li>Number on level 3
4556 <ol><li>number level 2
4559 <ul><li><ul><li> Level 3
4563 <ol><li><ul><li><ul><li> Level 3, but ordered
4597 Nested lists 3 (first element empty)
4610 Nested lists 4 (first element empty)
4623 Nested lists 5 (both elements empty)
4636 Nested lists 6 (both elements empty)
4649 Nested lists 7 (skip initial nesting levels)
4653 <ul><li><ul><li><ul><li> foo
4661 Nested lists 8 (multiple nesting transitions)
4669 <ul><li><ul><li> bar
4679 1. Lists with start-of-line-transparent tokens before bullets: Comments
4693 2. Lists with start-of-line-transparent tokens before bullets: Template close
4705 Unbalanced closing block tags break a list
4706 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4716 </li></ul></div><div>
4722 Unbalanced closing non-block tags don't break a list
4723 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4733 <ul><li>a<span></span>
4739 Unclosed formatting tags that straddle lists are closed and reopened
4740 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4748 </li><li> <s> b </s>
4753 List embedded in a non-block tag
4754 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4762 <p><small></small></p>
4768 <p><small></small></p>
4772 List items are not parsed correctly following a <pre> block (bug 785)
4778 <ul><li> <pre>foo</pre>
4779 </li><li> <pre>bar</pre>
4786 List items from template
4797 * notSOL{{inner list}}
4816 List interrupted by empty line or heading
4826 <ul><li><ul><li> bar
4829 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading">A heading</span></h2>
4830 <ul><li> Another list item
4836 Multiple list tags generated by templates
4851 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
4854 <!--This line will NOT split the list-->
4856 <!--This line will NOT split the list either-->
4858 <!--foo--> <!--This line with more than 1 comment will split the list-->
4875 Magic Word: {{CURRENTDAY}}
4884 Magic Word: {{CURRENTDAY2}}
4893 Magic Word: {{CURRENTDAYNAME}}
4902 Magic Word: {{CURRENTDOW}}
4911 Magic Word: {{CURRENTMONTH}}
4920 Magic Word: {{CURRENTMONTHABBREV}}
4922 {{CURRENTMONTHABBREV}}
4929 Magic Word: {{CURRENTMONTHNAME}}
4931 {{CURRENTMONTHNAME}}
4938 Magic Word: {{CURRENTMONTHNAMEGEN}}
4940 {{CURRENTMONTHNAMEGEN}}
4947 Magic Word: {{CURRENTTIME}}
4956 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4965 Magic Word: {{CURRENTYEAR}}
4974 Magic Word: {{FULLPAGENAME}}
4976 title=[[User:Ævar Arnfjörð Bjarmason]]
4980 <p>User:Ævar Arnfjörð Bjarmason
4985 Magic Word: {{FULLPAGENAMEE}}
4987 title=[[User:Ævar Arnfjörð Bjarmason]]
4991 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4996 Magic Word: {{NAMESPACE}}
4998 title=[[User:Ævar Arnfjörð Bjarmason]]
5007 Magic Word: {{NAMESPACEE}}
5009 title=[[User:Ævar Arnfjörð Bjarmason]]
5018 Magic Word: {{NAMESPACENUMBER}}
5020 title=[[User:Ævar Arnfjörð Bjarmason]]
5029 Magic Word: {{NUMBEROFFILES}}
5038 Magic Word: {{PAGENAME}}
5040 title=[[User:Ævar Arnfjörð Bjarmason]]
5044 <p>Ævar Arnfjörð Bjarmason
5049 Magic Word: {{PAGENAME}} with metacharacters
5051 title=[['foo & bar = baz']]
5055 <p><i>'foo & bar = baz'</i>
5060 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5062 title=[[*RFC 1234 http://example.com/]]
5066 <p>*RFC 1234 http://example.com/
5071 Magic Word: {{PAGENAMEE}}
5073 title=[[User:Ævar Arnfjörð Bjarmason]]
5077 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5082 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5084 title=[[*RFC 1234 http://example.com/]]
5088 <p>*RFC_1234_http://example.com/
5093 Magic Word: {{REVISIONID}}
5102 Magic Word: {{SCRIPTPATH}}
5111 Magic Word: {{SERVER}}
5115 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5120 Magic Word: {{SERVERNAME}}
5129 Magic Word: {{SITENAME}}
5138 Case-sensitive magic words, when cased differently, should just be template transclusions
5145 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5146 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5147 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5148 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5153 Case-insensitive magic words should still work with weird casing.
5163 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5168 Namespace 1 {{ns:1}}
5177 Namespace 1 {{ns:01}}
5186 Namespace 0 {{ns:0}} (bug 4783)
5194 Namespace 0 {{ns:00}} (bug 4783)
5202 Namespace -1 {{ns:-1}}
5211 Namespace User {{ns:User}}
5220 Namespace User talk {{ns:User_talk}}
5229 Namespace User talk {{ns:uSeR tAlK}}
5238 Namespace File {{ns:File}}
5247 Namespace File {{ns:Image}}
5256 Namespace (lang=de) Benutzer {{ns:User}}
5267 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5273 <p>Benutzer Diskussion
5281 {{urlencode:hi world?!}}
5282 {{urlencode:hi world?!|WIKI}}
5283 {{urlencode:hi world?!|PATH}}
5284 {{urlencode:hi world?!|QUERY}}
5297 Magic links: internal link to RFC (bug 479)
5301 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5306 Magic links: RFC (bug 479)
5310 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5315 Magic links: ISBN (bug 1937)
5319 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5324 Magic links: PMID incorrectly converts space to underscore
5328 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5337 Nonexistent template
5339 {{thistemplatedoesnotexist}}
5341 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5346 Template with invalid target containing tags
5348 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5350 <p>{{a<b>b</b>|foo|a=b|a = b}}
5355 Template with invalid target containing unclosed tag
5357 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5359 <p>{{a<b>|foo|a=b|a = b}}</b>
5366 This is a test template
5374 <p>This is a test template
5379 Template with explicit namespace
5383 <p>This is a test template
5391 This is a test template with parameter {{{param}}}
5397 {{paramtest|param=foo}}
5399 <p>This is a test template with parameter foo
5404 Template:paramtestnum
5410 Template unnamed parameter
5412 {{paramtestnum|Main Page|the main page}}
5414 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5419 Template:templatesimple
5425 Template:templateredirect
5427 #redirect [[Template:templatesimple]]
5431 Template:templateasargtestnum
5437 Template:templateasargtest
5439 {{template{{{templ}}}}}
5443 Template:templateasargtest2
5449 Template with template name as unnamed argument
5451 {{templateasargtestnum|templatesimple}}
5458 Template with template name as argument
5460 {{templateasargtest|templ=simple}}
5467 Template with template name as argument (2)
5469 {{templateasargtest2|templ=templatesimple}}
5476 Template:templateasargtestdefault
5478 {{{{{templ|templatesimple}}}}}
5488 Template with default value
5490 {{templateasargtestdefault}}
5497 Template with default value (value set)
5499 {{templateasargtestdefault|templ=templa}}
5508 {{templateredirect}}
5515 Template with argument in separate line
5517 {{ templateasargtest |
5525 Template with complex template as argument
5528 param ={{ templateasargtest |
5531 <p>This is a test template with parameter (test)
5536 Template with thumb image (with link in description)
5539 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5541 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>
5546 Template:complextemplate
5548 {{{1}}} {{paramtest|
5549 param ={{{param}}}}}
5553 Template with complex arguments
5556 param ={{ templateasargtest |
5557 templ = simple }}|[[Template:complextemplate|link]]}}
5559 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5564 BUG 553: link with two variables in a piped link
5567 |[[{{{1}}}|{{{2}}}]]
5572 <td>[[{{{1}}}|{{{2}}}]]
5578 Magic variable as template parameter
5580 {{paramtest|param={{SITENAME}}}}
5582 <p>This is a test template with parameter MediaWiki
5589 [[{{{param}}}|link]]
5593 Template parameter as link source
5595 {{linktest|param=Main Page}}
5597 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5602 Template-generated attribute string (k='v')
5604 <span {{attr_str|id|v1}}>bar</span>
5606 <p><span id="v1">bar</span>
5613 including another template, {{paramtest|param={{{arg}}}}}
5617 Template passing argument to another template
5619 {{paramtest2|arg='hmm'}}
5621 <p>including another template, This is a test template with parameter 'hmm'
5632 Template as link source
5636 [[{{linktest2}}|Main Page]]
5638 [[{{linktest2}}]]Page
5640 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5641 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5642 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5660 Template infinite loop
5664 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5669 Template from main namespace
5688 BUG 529: Template with table, not included at beginning of line
5707 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5727 BUG 41: Template parameters shown as broken links
5736 Template with targets containing wikilinks
5740 {{[[{{echo|foo}}]]}}
5742 {{{{echo|[[foo}}]]}}
5744 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5745 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5753 ''None'' of '''this''' should be
5755 but rather passed unmodified
5759 # hmm, fix this or just deprecate msgnw and document its behavior?
5765 {{msgnw:MSGNW test}}
5767 <p>''None'' of '''this''' should be
5769 but rather passed unmodified
5777 {{int:youhavenewmessages|lots of money|not!}}
5779 <p>You have lots of money (not!).
5786 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5790 <includeonly> and <noinclude> being included
5801 <onlyinclude>Foo</onlyinclude>bar
5805 <onlyinclude> being included
5817 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5821 <onlyinclude> and <includeonly> being included
5830 <includeonly> and <noinclude> on a page
5832 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5839 Un-closed <noinclude>
5846 <onlyinclude> on a page
5848 <onlyinclude>Foo</onlyinclude>bar
5855 Un-closed <onlyinclude>
5862 Self-closed noinclude, includeonly, onlyinclude tags
5873 Unbalanced includeonly and noinclude tags
5877 |b</noinclude></noinclude>
5878 |c</noinclude></includeonly>
5879 |d</includeonly></includeonly>
5888 <td>c</includeonly>
5890 <td>d</includeonly></includeonly>
5896 Template:Includeonly section
5899 ==Includeonly section==
5905 Bug 6563: Edit link generation for section shown by <includeonly>
5907 {{includeonly section}}
5909 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
5910 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
5914 # Uses same input as the contents of [[Template:Includeonly section]]
5916 Bug 6563: Section extraction for section shown by <includeonly>
5921 ==Includeonly section==
5929 Bug 6563: Edit link generation for section suppressed by <includeonly>
5932 ==Includeonly section==
5936 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5941 Bug 6563: Section extraction for section suppressed by <includeonly>
5946 ==Includeonly section==
5954 Un-closed <includeonly>
5961 ### <includeonly> and <noinclude> in attributes
5964 0. includeonly around the entire attribute
5966 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5968 <p><span id="v2">bar</span>
5973 1. includeonly in html attr key
5975 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5977 <p><span id="foo">bar</span>
5982 2. includeonly in html attr value
5984 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5985 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5987 <p><span id="v1">bar</span>
5988 <span id="v1">bar</span>
5993 3. includeonly in part of an attr value
5995 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5997 <p><span style="color:red;">bar</span>
6002 ### Testing parsing of templates where a template arg
6003 ### has the same name as the template itself.
6013 Templates: Template Name/Arg clash: 1. Use of positional param
6022 Templates: Template Name/Arg clash: 2. Use of named param
6031 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6040 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6044 Templates: 1. Simple use
6053 Templates: 2. Inside a block tag
6055 <div>{{echo|Foo}}</div>
6062 Templates: P-wrapping: 1a. Templates on consecutive lines
6073 Templates: P-wrapping: 1b. Templates on consecutive lines
6087 Templates: P-wrapping: 1c. Templates on consecutive lines
6090 {{echo|bar}} <div>baz</div>
6099 Templates: Inline Text: 1. Multiple tmeplate uses
6101 {{echo|Foo}}bar{{echo|baz}}
6108 Templates: Inline Text: 2. Back-to-back template uses
6110 {{echo|Foo}}{{echo|bar}}
6117 Templates: Block Tags: 1. Multiple template uses
6119 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6121 <div>Foo</div><div>bar</div><div>baz</div>
6126 Templates: Block Tags: 2. Back-to-back template uses
6128 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6130 <div>Foo</div><div>bar</div>
6135 Templates: Links: 1. Simple example
6137 {{echo|[[Foo|bar]]}}
6139 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6144 Templates: Links: 2. Generation of link href
6146 [[{{echo|Foo}}|bar]]
6148 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6153 Templates: Links: 3. Generation of part of a link href
6155 [[Fo{{echo|o}}|bar]]
6159 [[Foo{{echo|bar}}baz]]
6161 [[Foo{{echo|bar}}|bar]]
6163 [[:Foo{{echo|bar}}]]
6165 [[:Foo{{echo|bar}}|bar]]
6167 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6168 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6169 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6170 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6171 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6172 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6177 Templates: Links: 4. Multiple templates generating link href
6179 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6181 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6186 Templates: Links: 5. Generation of link text
6188 [[Foo|{{echo|bar}}]]
6190 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6195 Templates: Links: 5. Nested templates (only outermost template should be marked)
6197 {{echo|[[{{echo|Foo}}|bar]]}}
6199 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6204 Templates: HTML Tag: 1. Generation of HTML attr. key
6206 <div {{echo|style}}="color:red;">foo</div>
6208 <div style="color:red;">foo</div>
6213 Templates: HTML Tag: 2. Generation of HTML attr. value
6215 <div style={{echo|'color:red;'}}>foo</div>
6217 <div style="color:red;">foo</div>
6222 Templates: HTML Tag: 3. Generation of HTML attr key and value
6224 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6226 <div style="color:red;">foo</div>
6231 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6233 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6235 <div title="This is a long title with just one piece templated">foo</div>
6240 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6242 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6244 <div title="This is a long title with just one piece templated">foo</div>
6249 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6251 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6253 <div title="This is a long title with just one piece templated">foo</div>
6258 Templates: HTML Tag: 7. Generation of partial attribute key string
6260 <div st{{echo|yle}}="color:red;">foo</div>
6262 <div style="color:red;">foo</div>
6267 Templates: HTML Tables: 1. Generating start of a HTML table
6269 {{echo|<table><tr><td>foo</td>}}</tr></table>
6271 <table><tr><td>foo</td></tr></table>
6276 Templates: HTML Tables: 2a. Generating middle of a HTML table
6278 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6280 <table><tr><td>foo</td></tr></table>
6285 Templates: HTML Tables: 2b. Generating middle of a HTML table
6287 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6289 <table><tr><td>foo</td></tr></table>
6294 Templates: HTML Tables: 3. Generating end of a HTML table
6296 <table><tr>{{echo|<td>foo</td></tr></table>}}
6298 <table><tr><td>foo</td></tr></table>
6303 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6305 {{echo|<table>}}<tr><td>foo</td></tr></table>
6307 <table><tr><td>foo</td></tr></table>
6312 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6314 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6316 <table><tr><td>foo</td></tr></table>
6321 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6323 <table><tr>{{echo|<td>}}foo</td></tr></table>
6325 <table><tr><td>foo</td></tr></table>
6330 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6332 <table><tr><td>foo{{echo|</td>}}</tr></table>
6334 <table><tr><td>foo</td></tr></table>
6339 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6341 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6343 <table><tr><td>foo</td></tr></table>
6348 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6350 <table><tr><td>foo</td></tr>{{echo|</table>}}
6352 <table><tr><td>foo</td></tr></table>
6357 Templates: Wiki Tables: 1a. Fostering of entire template content
6365 <tr><td></td></tr></table>
6370 Templates: Wiki Tables: 1b. Fostering of entire template content
6383 <tr><td></td></tr></table>
6388 Templates: Wiki Tables: 2. Fostering of partial template content
6398 <tr><td></td></tr></table>
6403 Templates: Wiki Tables: 3. td-content via multiple templates
6406 {{echo|{{pipe}}a}}{{echo|b}}
6417 Templates: Wiki Tables: 4. Templated tags, no content
6423 <tr><td></td></tr></table>
6428 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6442 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6456 Templates: Lists: Multi-line list-items via templates
6458 *{{echo|a {{nonexistent|
6460 *{{echo|b {{nonexistent|
6463 <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>
6464 </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>
6470 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6472 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6474 <p><i>ab</i>c<i>d</i>e
6479 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6480 (PHP parser generates misnested html)
6484 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6486 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
6490 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6491 (PHP parser generates misnested html)
6495 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6498 <div><i>b</i>c<i>d</i></div>
6503 Templates: Ugly nesting: 4. Divs opened/closed across templates
6505 a<div>b{{echo|c</div>d}}e
6512 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6518 |{{echo|foo</table>}}
6522 <table about="#mwt1" typeof="mw:Object/Template ">
6523 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
6524 bar</span><span about="#mwt1">
6529 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6539 <td>1. {{echo|foo </table>}}</td>
6541 <td>2. {{echo|baz </table>}}</td>
6554 <table about="#mwt1" typeof="mw:Object/Template">
6559 <td >1. foo </td></tr></tbody></table></td>
6561 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6562 </span><span about="#mwt1">
6564 abc</span><span about="#mwt1">
6565 </span><span about="#mwt1">
6566 </span><span about="#mwt1">
6567 </span><span about="#mwt1">
6568 </span><span about="#mwt1">
6570 xyz</span><span about="#mwt1">
6571 </span><span about="#mwt1">
6576 Templates: Ugly templates: 3. newline-only template parameter
6585 # This looks like a bug: a single newline triggers p/br for some reason.
6587 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6598 Parser Functions: 1. Simple example
6607 Parser Functions: 2. Nested use (only outermost should be marked up)
6616 ### Pre-save transform tests
6619 pre-save transform: subst:
6625 This is a test template
6629 pre-save transform: normal template
6639 pre-save transform: nonexistent template
6643 {{thistemplatedoesnotexist}}
6645 {{thistemplatedoesnotexist}}
6650 pre-save transform: subst magic variables
6659 # This is bug 89, which I fixed. -- wtm
6661 pre-save transform: subst: templates with parameters
6665 {{subst:paramtest|param="something else"}}
6667 This is a test template with parameter "something else"
6673 <nowiki>'''not wiki'''</nowiki>
6677 pre-save transform: nowiki in subst (bug 1188)
6681 {{subst:nowikitest}}
6683 <nowiki>'''not wiki'''</nowiki>
6688 Template:commenttest
6690 This template has <!-- a comment --> in it.
6694 pre-save transform: comment in subst (bug 1936)
6698 {{subst:commenttest}}
6700 This template has <!-- a comment --> in it.
6704 pre-save transform: unclosed tag
6708 <nowiki>'''not wiki'''
6710 <nowiki>'''not wiki'''
6714 pre-save transform: mixed tag case
6718 <NOwiki>'''not wiki'''</noWIKI>
6720 <NOwiki>'''not wiki'''</noWIKI>
6724 pre-save transform: unclosed comment in <nowiki>
6728 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6730 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6736 <span onmouseover="alert('crap')">Oh no</span>
6740 (confirming safety of fix for subst bug 1936)
6742 {{Template:dangerous}}
6744 <p><span>Oh no</span>
6749 pre-save transform: comment containing gallery (bug 5024)
6753 <!-- <gallery>data</gallery> -->
6755 <!-- <gallery>data</gallery> -->
6759 pre-save transform: comment containing extension
6763 <!-- <tag>data</tag> -->
6765 <!-- <tag>data</tag> -->
6769 pre-save transform: comment containing nowiki
6773 <!-- <nowiki>data</nowiki> -->
6775 <!-- <nowiki>data</nowiki> -->
6779 pre-save transform: <noinclude> in subst (bug 3298)
6789 pre-save transform: <onlyinclude> in subst (bug 3298)
6801 {{<includeonly>subst:</includeonly>Includes}}
6805 Template:SafeSubstTest
6807 {{<includeonly>safesubst:</includeonly>Includes}}
6811 bug 22297: safesubst: works during PST
6815 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6821 bug 22297: safesubst: works during normal parse
6830 subst: does not work during normal parse
6834 <p>{{subst:Includes}}
6839 pre-save transform: context links ("pipe trick")
6843 [[Article (context)|]]
6846 [[Bar:Article (context)|]]
6847 [[:Bar:Article (context)|]]
6849 [[|Article (context)]]
6853 [[Article (context)|Article]]
6854 [[Bar:Article|Article]]
6855 [[:Bar:Article|Article]]
6856 [[Bar:Article (context)|Article]]
6857 [[:Bar:Article (context)|Article]]
6859 [[Article (context)]]
6860 [[Bar:X (Y) Z|X (Y) Z]]
6861 [[:Bar:X (Y) Z|X (Y) Z]]
6865 pre-save transform: context links ("pipe trick") with interwiki prefix
6869 [[interwiki:Article|]]
6870 [[:interwiki:Article|]]
6871 [[interwiki:Bar:Article|]]
6872 [[:interwiki:Bar:Article|]]
6874 [[interwiki:Article|Article]]
6875 [[:interwiki:Article|Article]]
6876 [[interwiki:Bar:Article|Bar:Article]]
6877 [[:interwiki:Bar:Article|Bar:Article]]
6881 pre-save transform: context links ("pipe trick") with parens in title
6883 pst title=[[Somearticle (context)]]
6887 [[Article (context)|Article]]
6891 pre-save transform: context links ("pipe trick") with comma in title
6893 pst title=[[Someplace, Somewhere]]
6896 [[Otherplace, Elsewhere|]]
6897 [[Otherplace, Elsewhere, Anywhere|]]
6899 [[Otherplace, Somewhere|Otherplace]]
6900 [[Otherplace, Elsewhere|Otherplace]]
6901 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6905 pre-save transform: context links ("pipe trick") with parens and comma
6907 pst title=[[Someplace (IGNORED), Somewhere]]
6910 [[Otherplace (place), Elsewhere|]]
6912 [[Otherplace, Somewhere|Otherplace]]
6913 [[Otherplace (place), Elsewhere|Otherplace]]
6917 pre-save transform: context links ("pipe trick") with comma and parens
6919 pst title=[[Who, me? (context)]]
6922 [[Me, Myself, and I (1937 song)|]]
6924 [[Yes, you. (context)|Yes, you.]]
6925 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6929 pre-save transform: context links ("pipe trick") with namespace
6931 pst title=[[Ns:Somearticle]]
6935 [[Ns:Article|Article]]
6939 pre-save transform: context links ("pipe trick") with namespace and parens
6941 pst title=[[Ns:Somearticle (context)]]
6945 [[Ns:Article (context)|Article]]
6949 pre-save transform: context links ("pipe trick") with namespace and comma
6951 pst title=[[Ns:Somearticle, Context, Whatever]]
6955 [[Ns:Article, Context, Whatever|Article]]
6959 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6961 pst title=[[Ns:Somearticle, Context (context)]]
6965 [[Ns:Article (context)|Article]]
6969 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6971 pst title=[[Ns:Somearticle (IGNORED), Context]]
6975 [[Ns:Article, Context|Article]]
6979 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6983 [[Article(context)|]]
6984 [[Bar:Article(context)|]]
6985 [[:Bar:Article(context)|]]
6986 [[|Article(context)]]
6990 [[Article(context)|Article]]
6991 [[Bar:Article(context)|Article]]
6992 [[:Bar:Article(context)|Article]]
6993 [[Article(context)]]
6995 [[:Bar:X(Y)Z|X(Y)Z]]
6999 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7003 [[Article (context)|]]
7004 [[Bar:Article (context)|]]
7005 [[:Bar:Article (context)|]]
7006 [[|Article (context)]]
7010 [[Article (context)|Article]]
7011 [[Bar:Article (context)|Article]]
7012 [[:Bar:Article (context)|Article]]
7013 [[Article (context)]]
7014 [[Bar:X (Y) Z|X (Y) Z]]
7015 [[:Bar:X (Y) Z|X (Y) Z]]
7019 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7023 [[Article(context)|]]
7024 [[Bar:Article(context)|]]
7025 [[:Bar:Article(context)|]]
7026 [[|Article(context)]]
7030 [[Article(context)|Article]]
7031 [[Bar:Article(context)|Article]]
7032 [[:Bar:Article(context)|Article]]
7033 [[Article(context)]]
7035 [[:Bar:X(Y)Z|X(Y)Z]]
7039 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7043 [[Article (context), context|]]
7044 [[Article (context),context|]]
7045 [[Bar:Article (context), context|]]
7046 [[Bar:Article (context),context|]]
7047 [[:Bar:Article (context), context|]]
7048 [[:Bar:Article (context),context|]]
7050 [[Article (context), context|Article]]
7051 [[Article (context),context|Article]]
7052 [[Bar:Article (context), context|Article]]
7053 [[Bar:Article (context),context|Article]]
7054 [[:Bar:Article (context), context|Article]]
7055 [[:Bar:Article (context),context|Article]]
7059 pre-save transform: trim trailing empty lines
7063 Empty lines are trimmed
7069 Empty lines are trimmed
7073 pre-save transform: Signature expansion
7078 * <noinclude>~~~</noinclude>
7079 * <includeonly>~~~</includeonly>
7080 * <onlyinclude>~~~</onlyinclude>
7082 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7083 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7084 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7085 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7090 pre-save transform: Signature expansion in nowiki tags (bug 93)
7096 <nowiki>~~~~</nowiki>
7098 <includeonly><nowiki>~~~~</nowiki></includeonly>
7100 <noinclude><nowiki>~~~~</nowiki></noinclude>
7102 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7104 {{subst:Foo}} shall be converted to FOO
7106 As well as inside noinclude/onlyinclude
7107 <noinclude>{{subst:Foo}}</noinclude>
7108 <onlyinclude>{{subst:Foo}}</onlyinclude>
7110 But not inside includeonly
7111 <includeonly>{{subst:Foo}}</includeonly>
7115 <nowiki>~~~~</nowiki>
7117 <includeonly><nowiki>~~~~</nowiki></includeonly>
7119 <noinclude><nowiki>~~~~</nowiki></noinclude>
7121 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7123 FOO shall be converted to FOO
7125 As well as inside noinclude/onlyinclude
7126 <noinclude>FOO</noinclude>
7127 <onlyinclude>FOO</onlyinclude>
7129 But not inside includeonly
7130 <includeonly>{{subst:Foo}}</includeonly>
7134 ### Message transform tests
7137 message transform: magic variables
7147 message transform: should not transform wiki markup
7157 message transform: <noinclude> in transcluded template (bug 4926)
7167 message transform: <onlyinclude> in transcluded template (bug 4926)
7177 {{#special:}} page name, known
7181 {{#special:Recentchanges}}
7183 Special:RecentChanges
7187 {{#special:}} page name with subpage, known
7191 {{#special:Recentchanges/param}}
7193 Special:RecentChanges/param
7197 {{#special:}} page name, unknown
7201 {{#special:foobarnonexistent}}
7203 No such special page
7207 {{#speciale:}} page name, known
7211 {{#speciale:Recentchanges}}
7213 Special:RecentChanges
7217 {{#speciale:}} page name with subpage, known
7221 {{#speciale:Recentchanges/param}}
7223 Special:RecentChanges/param
7227 {{#speciale:}} page name, unknown
7231 {{#speciale:foobarnonexistent}}
7233 No_such_special_page
7242 [[Image:foobar.jpg]]
7244 <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>
7251 [[Image:foobar.jpg|right]]
7253 <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>
7258 Simple image (using File: namespace, now canonical)
7262 <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>
7269 [[Image:foobar.jpg|right|Caption text]]
7271 <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>
7276 Image with empty attribute
7278 [[Image:foobar.jpg|right||Caption text]]
7280 <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>
7285 Image with link tails
7287 123[[Image:foobar.jpg]]456
7288 123[[Image:foobar.jpg|right]]456
7289 123[[Image:foobar.jpg|thumb]]456
7291 <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
7293 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
7294 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
7299 Image with multiple captions -- only last one is accepted
7301 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7303 <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>
7308 Image with width attribute at different positions
7310 [[Image:foobar.jpg|200px|right|Caption]]
7311 [[Image:foobar.jpg|right|200px|Caption]]
7312 [[Image:foobar.jpg|right|Caption|200px]]
7314 <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>
7315 <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>
7316 <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>
7321 Image with link parameter, wiki target
7323 [[Image:foobar.jpg|link=Target page]]
7325 <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>
7330 Image with link parameter, URL target
7332 [[Image:foobar.jpg|link=http://example.com/]]
7334 <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>
7339 Image with link parameter, wgExternalLinkTarget
7341 [[Image:foobar.jpg|link=http://example.com/]]
7343 wgExternalLinkTarget='foobar'
7345 <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>
7350 Image with link parameter, wgNoFollowLinks set to false
7352 [[Image:foobar.jpg|link=http://example.com/]]
7354 wgNoFollowLinks=false
7356 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7361 Image with link parameter, wgNoFollowDomainExceptions
7363 [[Image:foobar.jpg|link=http://example.com/]]
7365 wgNoFollowDomainExceptions='example.com'
7367 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7372 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7374 [[Image:foobar.jpg|link=http://example.com/|Title]]
7376 wgExternalLinkTarget='foobar'
7378 <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>
7383 Image with empty link parameter
7385 [[Image:foobar.jpg|link=]]
7387 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7392 Image with link parameter (wiki target) and unnamed parameter
7394 [[Image:foobar.jpg|link=Target page|Title]]
7396 <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>
7401 Image with link parameter (URL target) and unnamed parameter
7403 [[Image:foobar.jpg|link=http://example.com/|Title]]
7405 <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>
7410 Thumbnail image with link parameter
7414 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7416 <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>
7421 Manually-specified thumbnail image
7425 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7427 <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>
7432 Manually-specified thumbnail image with explicit link to wiki page
7436 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7438 <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>
7443 Manually-specified thumbnail image with explicit link to url
7447 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7449 <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>
7454 Manually-specified thumbnail image with explicit no link
7458 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7460 <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>
7465 Manually-specified thumbnail image with explicit link and alt text
7469 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7471 <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>
7476 Image with frame and link
7478 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
7480 <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>
7485 Image with frame and link and explicit alt
7487 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7489 <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>
7494 Image with wiki markup in implicit alt
7496 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7498 <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>
7503 Image with wiki markup in explicit alt
7505 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7507 <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>
7512 Link to image page- image page normally doesn't exists, hence edit link
7513 Add test with existing image page
7514 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7518 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7523 bug 18784 Link to non-existent image page with caption should use caption as link text
7525 [[:Image:test|caption]]
7527 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7532 Frameless image caption with a free URL
7534 [[Image:foobar.jpg|http://example.com]]
7536 <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>
7541 Thumbnail image caption with a free URL
7543 [[Image:foobar.jpg|thumb|http://example.com]]
7545 <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>
7550 Thumbnail image caption with a free URL and explicit alt
7552 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7554 <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>
7559 BUG 1887: A ISBN with a thumbnail
7561 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7563 <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>
7568 BUG 1887: A RFC with a thumbnail
7570 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7572 <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>
7577 BUG 1887: A mailto link with a thumbnail
7579 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7581 <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>
7585 # Pending resolution to bug 368
7587 BUG 648: Frameless image caption with a link
7589 [[Image:foobar.jpg|text with a [[link]] in it]]
7591 <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>
7596 BUG 648: Frameless image caption with a link (suffix)
7598 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7600 <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>
7605 BUG 648: Frameless image caption with an interwiki link
7607 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7609 <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>
7614 BUG 648: Frameless image caption with a piped interwiki link
7616 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7618 <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>
7623 Escape HTML special chars in image alt text
7625 [[Image:foobar.jpg|& < > "]]
7627 <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>
7632 BUG 499: Alt text should have Ӓ, not &1234;
7634 [[Image:foobar.jpg|♀]]
7636 <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>
7641 Broken image caption with link
7643 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7645 <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.
7650 Image caption containing another image
7652 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7654 <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>
7659 Image caption containing a newline
7661 [[Image:Foobar.jpg|This
7664 <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>
7669 Parsoid: Image caption containing leading space
7670 (The leading space should not trigger nowiki escaping in wt2wt mode)
7672 [[Image:Foobar.jpg|thumb| bar]]
7674 <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>
7679 Bug 3090: External links other than http: in image captions
7681 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7683 <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>
7690 [[Image:foobar.jpg|a|class=b]]
7692 <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>
7697 Localized image handling (1).
7701 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7703 <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>
7708 Localized image handling (2).
7712 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7714 <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>
7719 "border", "frameless" and "class" attributes on an image.
7721 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7723 <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>
7730 #REDIRECT [[File:Barfoo.jpg]]
7736 [[Image:Barfoo.jpg]]
7738 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7743 Missing image with uploads disabled
7747 [[Image:Foobaz.jpg]]
7749 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7758 Subpage test/subpage
7766 subpage title=[[Subpage test]]
7770 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7775 Subpage noslash link
7777 subpage title=[[Subpage test]]
7781 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7790 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7795 BUG 561: {{/Subpage}}
7797 subpage title=[[Page]]
7801 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7809 Category:MediaWiki User's Guide
7817 [[:Category:MediaWiki User's Guide]]
7819 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7828 [[Category:MediaWiki User's Guide]]
7830 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7834 PAGESINCATEGORY invalid title fatal (r33546 fix)
7836 {{PAGESINCATEGORY:<bogus>}}
7843 Category with different sort key
7847 [[Category:MediaWiki User's Guide|Foo]]
7849 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7853 Category with identical sort key
7857 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7859 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7863 Category with empty sort key
7868 [[Category:MediaWiki User's Guide|]]
7870 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7874 Category with empty sort key and parentheses
7879 [[Category:Foo (bar)|]]
7881 [[Category:Foo (bar)|Foo]]
7885 Category with link tail
7890 123[[Category:Foo]]456
7892 123[[Category:Foo]]456
7896 Category with template
7901 [[Category:{{echo|Foo}}]]
7903 [[Category:{{echo|Foo}}]]
7907 Category with template in sort key
7912 [[Category:Foo|{{echo|Bar}}]]
7914 [[Category:Foo|{{echo|Bar}}]]
7918 Category with template in sort key and title
7923 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7925 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7929 Category / paragraph interactions
7931 Foo [[Category:Baz]] Bar
7933 Foo [[Category:Baz]]
7941 [[Category:Baz]] Bar
7954 {{echo|[[Category:Baz]]}}
7969 ### Inter-language links
7972 Inter-language links
7978 [[zh:食品]]
7980 es:Alimento fr:Nourriture zh:食品
7984 Duplicate interlanguage links (bug 24502)
8000 Basic section headings
8007 ===Smaller headline===
8010 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1">Headline 1</span></h2>
8013 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
8016 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3>
8022 Section headings with TOC
8025 === Subheadline 1 ===
8026 ===== Skipping a level =====
8027 ====== Skipping a level ======
8031 ===Another headline===
8033 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8035 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8037 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8039 <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>
8041 <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>
8048 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8050 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8055 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1">Headline 1</span></h2>
8056 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1">Subheadline 1</span></h3>
8057 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level">Skipping a level</span></h5>
8058 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2">Skipping a level</span></h6>
8059 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
8062 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3>
8066 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8068 Handling of sections up to level 6 and beyond
8071 == Level 2 Heading==
8072 === Level 3 Heading===
8073 ==== Level 4 Heading====
8074 ===== Level 5 Heading=====
8075 ====== Level 6 Heading======
8076 ======= Level 7 Heading=======
8077 ======== Level 8 Heading========
8078 ========= Level 9 Heading=========
8079 ========== Level 10 Heading==========
8081 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8083 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8085 <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>
8087 <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>
8089 <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>
8091 <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>
8093 <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>
8094 <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>
8095 <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>
8096 <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>
8097 <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>
8110 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading">Level 1 Heading</span></h1>
8111 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading">Level 2 Heading</span></h2>
8112 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading">Level 3 Heading</span></h3>
8113 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading">Level 4 Heading</span></h4>
8114 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading">Level 5 Heading</span></h5>
8115 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading">Level 6 Heading</span></h6>
8116 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6>
8117 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6>
8118 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6>
8119 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6>
8124 TOC regression (bug 9764)
8128 ==== title 1.1.1 ====
8133 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8135 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8137 <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>
8139 <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>
8142 <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>
8145 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8147 <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>
8152 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1">title 1</span></h2>
8153 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1">title 1.1</span></h3>
8154 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1">title 1.1.1</span></h4>
8155 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2">title 1.2</span></h3>
8156 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2">title 2</span></h2>
8157 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1">title 2.1</span></h3>
8162 TOC with wgMaxTocLevel=3 (bug 6204)
8168 ==== title 1.1.1 ====
8173 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8175 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8177 <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>
8178 <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>
8181 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8183 <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>
8188 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1">title 1</span></h2>
8189 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1">title 1.1</span></h3>
8190 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1">title 1.1.1</span></h4>
8191 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2">title 1.2</span></h3>
8192 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2">title 2</span></h2>
8193 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1">title 2.1</span></h3>
8198 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8204 ====Section 1.1.1====
8205 ====Section 1.1.1.1====
8208 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8210 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8212 <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>
8215 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8218 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
8219 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3>
8220 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4>
8221 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span></h4>
8222 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
8228 Resolving duplicate section names
8233 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar">Foo bar</span></h2>
8234 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2">Foo bar</span></h2>
8239 Resolving duplicate section names with differing case (bug 10721)
8244 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar">Foo bar</span></h2>
8245 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2">Foo Bar</span></h2>
8257 Template with sections, __NOTOC__
8264 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2>
8265 <h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
8266 <h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
8267 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2>
8272 __NOEDITSECTION__ keyword
8278 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
8279 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
8284 Link inside a section heading
8286 ==Section with a [[Main Page|link]] in it==
8288 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <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></h2>
8293 TOC regression (bug 12077)
8300 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8302 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8304 <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>
8307 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8310 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1">title 1</span></h2>
8311 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1">title 1.1</span></h3>
8312 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2">title 2</span></h2>
8317 BUG 1219 URL next to image (good)
8319 http://example.com [[Image:foobar.jpg]]
8321 <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>
8326 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8329 The line above must have a trailing space!
8332 But just in case it doesn't...
8334 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1>
8335 <p>The line above must have a trailing space!
8337 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1>
8338 <p>But just in case it doesn't...
8343 Header with special characters (bug 25462)
8345 The tooltips shall not show entities to the user (ie. be double escaped)
8362 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8364 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8366 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8367 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8368 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8369 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8370 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8373 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text">text > text</span></h2>
8376 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span> <span class="mw-headline" id="text_.3C_text">text < text</span></h2>
8379 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span> <span class="mw-headline" id="text_.26_text">text & text</span></h2>
8382 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span> <span class="mw-headline" id="text_.27_text">text ' text</span></h2>
8385 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span> <span class="mw-headline" id="text_.22_text">text " text</span></h2>
8391 Headers with excess '=' characters
8392 (Are similar tests necessary beyond the 1st level?)
8396 =''italic'' heading==
8397 ==''italic'' heading=
8399 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8401 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8402 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8403 <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>
8404 <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>
8407 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a>]</span> <span class="mw-headline" id="foo.3D">foo=</span></h1>
8408 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a>]</span> <span class="mw-headline" id=".3Dfoo">=foo</span></h1>
8409 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a>]</span> <span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span></h1>
8410 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a>]</span> <span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span></h1>
8415 HTML headers vs TOC (bug 23393)
8416 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8428 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8430 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8432 <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>
8433 <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>
8436 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8438 <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>
8439 <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>
8444 <h1> <span class="mw-headline" id="Header_1">Header 1</span></h1>
8445 <h2> <span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
8446 <h2> <span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
8447 <h1> <span class="mw-headline" id="Header_2">Header 2</span></h1>
8448 <h2> <span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
8449 <h2> <span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
8454 BUG 1219 URL next to image (broken)
8456 http://example.com[[Image:foobar.jpg]]
8458 <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>
8463 Bug 1186 news: in the middle of text
8465 http://en.wikinews.org/wiki/Wikinews:Workplace
8467 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8473 Namespaced link must have a title
8482 Namespaced link must have a title (bad fragment version)
8484 [[Project:#fragment]]
8486 <p>[[Project:#fragment]]
8492 ### HTML tags and HTML attributes
8496 div with no attributes
8498 <div>HTML rocks</div>
8500 <div>HTML rocks</div>
8505 div with double-quoted attribute
8507 <div id="rock">HTML rocks</div>
8509 <div id="rock">HTML rocks</div>
8514 div with single-quoted attribute
8516 <div id='rock'>HTML rocks</div>
8518 <div id="rock">HTML rocks</div>
8523 div with unquoted attribute
8525 <div id=rock>HTML rocks</div>
8527 <div id="rock">HTML rocks</div>
8532 div with illegal double attributes
8534 <div id="a" id="b">HTML rocks</div>
8536 <div id="b">HTML rocks</div>
8540 # FIXME: produce empty string instead of "class" in the PHP parser, following
8543 div with empty attribute value, space before equals
8547 <div class =>HTML rocks</div>
8549 <div class="">HTML rocks</div>
8553 # The PHP parser escapes the opening brace to { for some reason, so
8554 # disabled this test for it.
8556 div with braces in attribute value
8560 <div title="{}">Foo</div>
8562 <div title="{}">Foo</div>
8565 # This it very inconsistent in the PHP parser: it returns
8566 # class="class" if there is a space between the name and the equal sign (see
8567 # 'div with empty attribute value, space before equals'), but strips the
8568 # attribute completely if the space is missing. We hope that not much content
8569 # depends on this, so are implementing the behavior below in Parsoid for
8570 # consistencies' sake. Disabled for the PHP parser.
8571 # FIXME: fix this behavior in the PHP parser?
8573 div with empty attribute value, no space before equals
8577 <div class=>HTML rocks</div>
8579 <div class="">HTML rocks</div>
8584 HTML multiple attributes correction
8586 <p class="error" class="awesome">Awesome!</p>
8588 <p class="awesome">Awesome!</p>
8593 Table multiple attributes correction
8596 !+ class="error" class="awesome"| status
8601 <th class="awesome"> status
8609 <DIV ID="x">HTML ROCKS</DIV>
8611 <div id="x">HTML ROCKS</div>
8616 Non-ASCII pseudo-tags are rendered as text
8625 Pseudo-tag with URL 'name' renders as url link
8627 <http://example.com/>
8629 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8634 text with amp in the middle of nowhere
8638 <p>Remember AT&T?
8643 text with character entity: eacute
8645 I always thought é was a cute letter.
8647 <p>I always thought é was a cute letter.
8652 text with entity-escaped character entity-like string: eacute
8654 I always thought &eacute; was a cute letter.
8656 <p>I always thought &eacute; was a cute letter.
8661 text with undefined character entity: xacute
8663 I always thought &xacute; was a cute letter.
8665 <p>I always thought &xacute; was a cute letter.
8677 [[Media:Foobar.jpg]]
8679 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8684 Media link with text
8686 [[Media:Foobar.jpg|A neat file to look at]]
8688 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8692 # FIXME: this is still bad HTML tag nesting
8694 Media link with nasty text
8695 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8697 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8699 <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>
8704 Media link to nonexistent file (bug 1702)
8706 [[Media:No such.jpg]]
8708 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8713 Image link to nonexistent file (bug 1850 - good)
8715 [[Image:No such.jpg]]
8717 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8722 :Image link to nonexistent file (bug 1850 - bad)
8724 [[:Image:No such.jpg]]
8726 <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>
8733 Character reference normalization in link text (bug 1938)
8735 [[Main Page|this&that]]
8737 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8744 Test for unicode normalization
8746 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8750 (bug 19451) Links should refer to the normalized form.
8758 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8759 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8760 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8761 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8762 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8767 Empty attribute crash test (bug 2067)
8769 <font color="">foo</font>
8771 <p><font color="">foo</font>
8776 Empty attribute crash test single-quotes (bug 2067)
8778 <font color=''>foo</font>
8780 <p><font color="">foo</font>
8785 Attribute test: equals, then nothing
8787 <font color=>foo</font>
8794 Attribute test: unquoted value
8796 <font color=x>foo</font>
8798 <p><font color="x">foo</font>
8803 Attribute test: unquoted but illegal value (hash)
8805 <font color=#x>foo</font>
8807 <p><font color="#x">foo</font>
8812 Attribute test: no value
8814 <font color>foo</font>
8816 <p><font color="color">foo</font>
8821 Bug 2095: link with three closing brackets
8825 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8830 Bug 2095: link with pipe and three closing brackets
8834 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8839 Bug 2095: link with pipe and three closing brackets, version 2
8841 [[Main Page|[http://example.com/]]]
8843 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8853 Template:Dangerous attribute
8855 " onmouseover="alert(document.cookie)
8859 Template:Dangerous style attribute
8861 border-size: expression(alert(document.cookie))
8867 <div style="float: right; {{{1}}}">Magic div</div>
8871 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8873 <div title="{{test}}"></div>
8875 <div title="This is a test template"></div>
8880 Bug 2304: HTML attribute safety (dangerous template; 2309)
8882 <div title="{{dangerous attribute}}"></div>
8884 <div title=""></div>
8889 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8891 <div style="{{dangerous style attribute}}"></div>
8893 <div style="/* insecure input */"></div>
8898 Bug 2304: HTML attribute safety (safe parameter; 2309)
8900 {{div style|width: 200px}}
8902 <div style="float: right; width: 200px">Magic div</div>
8907 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8909 {{div style|width: expression(alert(document.cookie))}}
8911 <div style="/* insecure input */">Magic div</div>
8916 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8918 {{div style|"><script>alert(document.cookie)</script>}}
8920 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8925 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8927 {{div style|" ><script>alert(document.cookie)</script>}}
8929 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8934 Bug 2304: HTML attribute safety (link)
8936 <div title="[[Main Page]]"></div>
8938 <div title="[[Main Page]]"></div>
8943 Bug 2304: HTML attribute safety (italics)
8945 <div title="''foobar''"></div>
8947 <div title="''foobar''"></div>
8952 Bug 2304: HTML attribute safety (bold)
8954 <div title="'''foobar'''"></div>
8956 <div title="'''foobar'''"></div>
8962 Bug 2304: HTML attribute safety (ISBN)
8964 <div title="ISBN 1234567890"></div>
8966 <div title="ISBN 1234567890"></div>
8971 Bug 2304: HTML attribute safety (RFC)
8973 <div title="RFC 1234"></div>
8975 <div title="RFC 1234"></div>
8980 Bug 2304: HTML attribute safety (PMID)
8982 <div title="PMID 1234567890"></div>
8984 <div title="PMID 1234567890"></div>
8989 Bug 2304: HTML attribute safety (web link)
8991 <div title="http://example.com/"></div>
8993 <div title="http://example.com/"></div>
8998 Bug 2304: HTML attribute safety (named web link)
9000 <div title="[http://example.com/ link]"></div>
9002 <div title="[http://example.com/ link]"></div>
9007 Bug 3244: HTML attribute safety (extension; safe)
9009 <div style="<nowiki>background:blue</nowiki>"></div>
9011 <div style="background:blue"></div>
9016 Bug 3244: HTML attribute safety (extension; unsafe)
9018 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9020 <div style="/* insecure input */"></div>
9024 # More MSIE fun discovered by Tom Gilder
9027 MSIE CSS safety test: spurious slash
9029 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9031 <div style="/* insecure input */">evil</div>
9036 MSIE CSS safety test: hex code
9038 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9040 <div style="/* insecure input */">evil</div>
9045 MSIE CSS safety test: comment in url
9047 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9049 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9054 MSIE CSS safety test: comment in expression
9056 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9058 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9064 Table attribute legitimate extension
9067 !+ style="<nowiki>color:blue</nowiki>"| status
9072 <th style="color:blue"> status
9078 Table attribute safety
9081 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9086 <th style="/* insecure input */"> status
9092 CSS line continuation 1
9094 <div style="background-image: u\ rl(test.jpg);"></div>
9096 <div style="/* insecure input */"></div>
9101 CSS line continuation 2
9103 <div style="background-image: u\ rl(test.jpg); "></div>
9105 <div style="/* insecure input */"></div>
9116 Expansion of multi-line templates in attribute values (bug 6255)
9118 <div style="background: {{identity|#00FF00}}">-</div>
9120 <div style="background: #00FF00">-</div>
9126 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9128 <div style="background:
9131 <div style="background: #00FF00">-</div>
9136 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9138 <div style="background: #00FF00">-</div>
9140 <div style="background: #00FF00">-</div>
9145 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9148 Parser hook: empty input
9161 Parser hook: empty input using terminated empty elements
9174 Parser hook: empty input using terminated empty elements (space before)
9187 Parser hook: basic input
9201 Parser hook: case insensitive
9215 Parser hook: case insensitive, redux
9228 Parser hook: nested tags
9232 <tag><tag></tag></tag>
9243 Parser hook: basic arguments
9245 <tag width=200 height = "100" depth = '50' square></tag>
9253 'square' => 'square',
9260 Parser hook: argument containing a forward slash (bug 5344)
9262 <tag filename='/tmp/bla'></tag>
9267 'filename' => '/tmp/bla',
9274 Parser hook: empty input using terminated empty elements (bug 2374)
9287 # </tag> should be output literally since there is no matching tag that begins it
9289 Parser hook: basic arguments using terminated empty elements (bug 2374)
9291 <tag width=200 height = "100" depth = '50' square/>
9301 'square' => 'square',
9310 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9314 Parser hook: static parser hook not inside a comment
9316 <statictag>hello, world</statictag>
9317 <statictag action=flush/>
9325 Parser hook: static parser hook inside a comment
9327 <!-- <statictag>hello, world</statictag> -->
9328 <statictag action=flush/>
9334 # Nested template calls; this case was broken by Parser.php rev 1.506,
9338 Template:One-parameter
9340 (My parameter is: {{{1}}})
9344 Template:Map-one-parameter
9350 Nested template calls
9352 {{Map-one-parameter|One-parameter|param}}
9354 <p>(My parameter is: param)
9363 Sanitizer: Closing of open tags
9365 <s></s><table></table>
9367 <s></s><table></table>
9372 Sanitizer: Closing of open but not closed tags
9381 Sanitizer: Closing of closed but not open tags
9390 Sanitizer: Closing of closed but not open table tags
9392 Table not started</td></tr></table>
9394 <p>Table not started</td></tr></table>
9399 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9401 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9403 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9408 Sanitizer: Validating the contents of the id attribute (bug 4515)
9414 Something, but definitely not <br id="9" />...
9418 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9422 <br id="foo" /><br id="foo" />
9424 Something need to be done. foo-2 ?
9428 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9431 <meta itemprop="hello" content="world">
9432 <meta http-equiv="refresh" content="5">
9433 <meta itemprop="hello" http-equiv="refresh" content="5">
9434 <link itemprop="hello" href="{{SERVER}}">
9435 <link rel="stylesheet" href="{{SERVER}}">
9436 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9439 <div itemscope="itemscope">
9440 <p> <meta itemprop="hello" content="world" />
9441 <meta http-equiv="refresh" content="5">
9442 <meta itemprop="hello" content="5" />
9444 <link itemprop="hello" href="http://example.org" />
9445 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9446 <link itemprop="hello" href="http://example.org" />
9452 Language converter: output gets cut off unexpectedly (bug 5757)
9456 this bit is safe: }-
9458 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9460 then we get cut off here: }-
9462 all additional text is vanished
9464 <p>this bit is safe: }-
9465 </p><p>but if we add a conversion instance: xxx
9466 </p><p>then we get cut off here: }-
9467 </p><p>all additional text is vanished
9472 Self closed html pairs (bug 5487)
9475 <center><font id="bug" />Centered text</center>
9476 <div><font id="bug2" />In div text</div>
9478 <center><font id="bug" />Centered text</center>
9479 <div><font id="bug2" />In div text</div>
9488 Punctuation: nbsp before exclamation
9492 <p>C'est grave !
9497 Punctuation: CSS !important (bug 11874)
9499 <div style="width:50% !important">important</div>
9501 <div style="width:50% !important">important</div>
9506 Punctuation: CSS ! important (bug 11874; with space after)
9508 <div style="width:50% ! important">important</div>
9510 <div style="width:50% ! important">important</div>
9516 HTML bullet list, closed tags (bug 5497)
9531 HTML bullet list, unclosed tags (bug 5497)
9548 HTML ordered list, closed tags (bug 5497)
9563 HTML ordered list, unclosed tags (bug 5497)
9580 HTML nested bullet list, closed tags (bug 5497)
9605 HTML nested bullet list, open tags (bug 5497)
9630 HTML nested ordered list, closed tags (bug 5497)
9655 HTML nested ordered list, open tags (bug 5497)
9680 HTML ordered list item with parameters oddity
9682 <ol><li id="fragment">One</li></ol>
9684 <ol><li id="fragment">One</li></ol>
9689 bug 5918: autonumbering
9691 [http://first/] [http://second] [ftp://ftp]
9695 [mailto:enclosed@mail.tld With target]
9697 [mailto:enclosed@mail.tld]
9699 mailto:inline@mail.tld
9701 <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>
9702 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9703 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9704 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9705 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9711 # Security and HTML correctness
9712 # From Nick Jenkins' fuzz testing
9716 Fuzz testing: Parser13
9731 Fuzz testing: Parser14
9736 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D">onmouseover=</span></h2>
9737 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9739 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9746 Fuzz testing: Parser14-table
9751 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
9752 <table style="__TOC__">
9758 # Known to produce bogus xml (extra </td>)
9760 Fuzz testing: Parser16
9780 Fuzz testing: Parser21
9783 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9788 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9798 Fuzz testing: Parser22
9800 http://===r:::https://b
9804 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9812 # Known to produce bad XML for now
9814 Fuzz testing: Parser24
9821 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9822 <br style="onmouseover='alert(document.cookie);' " />
9824 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9829 <u class="|">}}}} >
9830 <br style="onmouseover='alert(document.cookie);'" />
9832 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9841 # Note: the current result listed for this is not what the original one was,
9842 # but the original bug was JavaScript injection, which is fixed in any case.
9843 # It's not clear that the original result listed was any more correct than the
9844 # current one. Original result:
9847 # <li class="||">
9848 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9850 Fuzz testing: Parser25 (bug 6055)
9856 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9858 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9863 Fuzz testing: URL adjacent extension (with space, clean)
9866 http://example.com <nowiki>junk</nowiki>
9868 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9873 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9876 http://example.com<nowiki>junk</nowiki>
9878 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9883 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9886 http://example.com<pre>junk</pre>
9888 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9893 Fuzz testing: image with bogus manual thumbnail
9895 [[Image:foobar.jpg|thumbnail= ]]
9897 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9902 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9904 <pre dir=" "></pre>
9906 <pre dir=" "></pre>
9911 Parsing optional HTML elements (Bug 6171)
9916 <td> Some tabular data</td>
9917 <td> More tabular data ...
9918 <td> And yet som tabular data</td>
9924 <td> Some tabular data</td>
9925 <td> More tabular data ...
9926 </td><td> And yet som tabular data</td>
9933 Correct handling of <td>, <tr> (Bug 6171)
9938 <td> Some tabular data</td>
9939 <td> More tabular data ...</td>
9940 <td> And yet som tabular data</td>
9946 <td> Some tabular data</td>
9947 <td> More tabular data ...</td>
9948 <td> And yet som tabular data</td>
9956 Parsing crashing regression (fr:JavaScript)
9960 <p></body></x>
9965 Inline wiki vs wiki block nesting
9971 <p><b>Bold paragraph</b>
9972 </p><p>New wiki paragraph
9977 Inline HTML vs wiki block nesting
9985 <p><b>Bold paragraph</b>
9986 </p><p>New wiki paragraph
9990 # Original result was this:
9991 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9993 # While that might be marginally more intuitive, maybe, the six-apostrophe
9994 # construct is clearly pathological and the result stated here (which is what
9995 # the parser actually does) is about as reasonable as anything.
9997 Mixing markup for italics and bold
10000 '''bold''''''bold''bolditalics'''''
10002 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10010 Article for special page transclusion test
10014 Special page transclusion
10017 {{Special:Prefixindex/Xyzzyx}}
10019 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10024 Special page transclusion twice (bug 5021)
10027 {{Special:Prefixindex/Xyzzyx}}
10028 {{Special:Prefixindex/Xyzzyx}}
10030 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10031 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10036 Transclusion of default MediaWiki message
10038 {{MediaWiki:Mainpage}}
10045 Transclusion of nonexistent MediaWiki message
10047 {{MediaWiki:Mainpagexxx}}
10049 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10054 Transclusion of MediaWiki message with underscore
10056 {{MediaWiki:history_short}}
10063 Transclusion of MediaWiki message with space
10065 {{MediaWiki:history short}}
10072 Invalid header with following text
10082 Section extraction test (section 0)
10102 Section extraction test (section 1)
10124 Section extraction test (section 2)
10145 Section extraction test (section 3)
10165 Section extraction test (section 4)
10189 Section extraction test (section 5)
10209 Section extraction test (section 6)
10230 Section extraction test (section 7)
10250 Section extraction test (section 8)
10270 Section extraction test (section 9)
10291 Section extraction test (section 10)
10311 Section extraction test (nonexistent section 11)
10330 Section extraction test with bogus heading (section 1)
10335 ==bogus== not a legal section
10339 ==bogus== not a legal section
10343 Section extraction test with bogus heading (section 2)
10348 ==bogus== not a legal section
10355 Section extraction test with comment after heading (section 1)
10367 Section extraction test with comment after heading (section 2)
10379 Section extraction test with bogus <nowiki> heading (section 1)
10384 ==bogus== <nowiki>not a legal section</nowiki>
10388 ==bogus== <nowiki>not a legal section</nowiki>
10392 Section extraction test with bogus <nowiki> heading (section 2)
10397 ==bogus== <nowiki>not a legal section</nowiki>
10404 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10405 # instead of respecting commented sections
10407 Section extraction prefixed by comment (section 1)
10418 Section extraction prefixed by comment (section 2)
10429 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10430 # instead of respecting HTML-style headings
10432 Section extraction, mixed wiki and html (section 1)
10448 Section extraction, mixed wiki and html (section 2)
10464 # Formerly testing for bug 3342
10466 Section extraction, heading surrounded by <noinclude>
10470 <noinclude>==unmarked==</noinclude>
10476 # Test behavior of bug 19910
10478 Sectiion with all-equals
10483 The line above must have a trailing space
10486 But just in case it doesn't...
10490 But just in case it doesn't...
10494 Section replacement test (section 0)
10525 Section replacement test (section 1)
10554 Section replacement test (section 2)
10584 Section replacement test (section 3)
10615 Section replacement test (section 4)
10642 Section replacement test (section 5)
10673 Section replacement test (section 6)
10703 Section replacement test (section 7)
10734 Section replacement test (section 8)
10765 Section replacement test (section 9)
10794 Section replacement test (section 10)
10824 Section replacement test with initial whitespace (bug 13728)
10828 Preformatted initial line
10832 Preformatted initial line
10839 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10851 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10864 Section extraction, <pre> around bogus header (bug 10309)
10881 Section replacement, <pre> around bogus header (bug 10309)
10883 noxml replace=2,"xxx"
10904 Handling of 
 in URLs
10908 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10915 5 quotes, code coverage +1 line (php)
10922 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
10924 5 quotes, code coverage +1 line (parsoid)
10930 <p><i><b></b></i></p>
10934 Special:Search page linking.
10938 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10950 * {{BASEPAGENAMEE}}
10952 * {{TALKPAGENAMEE}}
10953 * {{SUBJECTPAGENAME}}
10954 * {{SUBJECTPAGENAMEE}}
10960 * {{SUBJECTSPACEE}}
10961 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10963 <ul><li> Parser test
10964 </li><li> Parser test
10965 </li><li> Parser test
10966 </li><li> Parser_test
10967 </li><li> Parser test
10968 </li><li> Parser_test
10969 </li><li> Talk:Parser test
10970 </li><li> Talk:Parser_test
10971 </li><li> Parser test
10972 </li><li> Parser_test
10979 </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>
10983 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10993 image4 |300px| centre
10994 image5.svg| http://///////
10999 <ul class="gallery">
11000 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11001 <div style="height: 150px;">Image1.png</div>
11002 <div class="gallerytext">
11005 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11006 <div style="height: 150px;">Image2.gif</div>
11007 <div class="gallerytext">
11012 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11013 <div style="height: 150px;">Image3</div>
11014 <div class="gallerytext">
11017 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11018 <div style="height: 150px;">Image4</div>
11019 <div class="gallerytext">
11024 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11025 <div style="height: 150px;">Image5.svg</div>
11026 <div class="gallerytext">
11027 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11031 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11032 <div style="height: 150px;">* image6</div>
11033 <div class="gallerytext">
11041 Gallery (with options)
11043 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11044 File:Nonexistant.jpg|caption
11045 File:Nonexistant.jpg
11046 image:foobar.jpg|some '''caption''' [[Main Page]]
11048 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11051 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11052 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11053 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11054 <div style="height: 70px;">Nonexistant.jpg</div>
11055 <div class="gallerytext">
11060 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11061 <div style="height: 70px;">Nonexistant.jpg</div>
11062 <div class="gallerytext">
11065 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11066 <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>
11067 <div class="gallerytext">
11068 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11072 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11073 <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>
11074 <div class="gallerytext">
11077 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11078 <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>
11079 <div class="gallerytext">
11089 Gallery with wikitext inside caption
11092 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11093 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11096 <ul class="gallery">
11097 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11098 <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>
11099 <div class="gallerytext">
11100 <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>
11104 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11105 <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>
11106 <div class="gallerytext">
11107 <p>This is a test template
11116 gallery (with showfilename option)
11118 <gallery showfilename>
11119 File:Nonexistant.jpg|caption
11120 File:Nonexistant.jpg
11121 image:foobar.jpg|some '''caption''' [[Main Page]]
11125 <ul class="gallery">
11126 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11127 <div style="height: 150px;">Nonexistant.jpg</div>
11128 <div class="gallerytext">
11129 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11134 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11135 <div style="height: 150px;">Nonexistant.jpg</div>
11136 <div class="gallerytext">
11137 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11141 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11142 <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>
11143 <div class="gallerytext">
11144 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11145 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11149 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11150 <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>
11151 <div class="gallerytext">
11152 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11161 Gallery (with namespace-less filenames)
11164 File:Nonexistant.jpg
11170 <ul class="gallery">
11171 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11172 <div style="height: 150px;">Nonexistant.jpg</div>
11173 <div class="gallerytext">
11176 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11177 <div style="height: 150px;">Nonexistant.jpg</div>
11178 <div class="gallerytext">
11181 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11182 <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>
11183 <div class="gallerytext">
11186 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11187 <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>
11188 <div class="gallerytext">
11196 HTML Hex character encoding (spells the word "JavaScript")
11198 JavaScript
11200 <p>JavaScript
11205 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11209 <p>&#xsee;&#XSEE;
11214 HTML Hex character encoding mixed case
11223 __FORCETOC__ override
11235 ISBN 978-0-1234-56 789
11237 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11242 ISBN followed by 5 spaces
11253 ISBN ISBN 1234567890
11255 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11260 Bug 22905: <abbr> followed by ISBN followed by </a>
11262 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11264 <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>
11273 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11278 Double RFC with a wiki link
11282 <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>
11291 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11296 Centre-aligned image
11298 [[Image:foobar.jpg|centre]]
11300 <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>
11307 [[Image:foobar.jpg|none]]
11309 <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>
11314 Width + Height sized image (using px) (height is ignored)
11316 [[Image:foobar.jpg|640x480px]]
11318 <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>
11323 Width-sized image (using px, no following whitespace)
11325 [[Image:foobar.jpg|640px]]
11327 <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>
11332 Width-sized image (using px, with following whitespace - test regression from r39467)
11334 [[Image:foobar.jpg|640px ]]
11336 <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>
11341 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11343 [[Image:foobar.jpg| 640px]]
11345 <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>
11350 Another italics / bold test
11358 # Note the results may be incorrect, as parserTest output included this:
11359 # XML error: Mismatched tag at byte 6120:
11360 # ...<dd> </dt></dl> </dd...
11368 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11379 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11381 Images with the "|" character in the comment
11383 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11385 <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>
11390 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11392 <html><script>alert(1);</script></html>
11394 <p><html><script>alert(1);</script></html>
11399 HTML with raw HTML ($wgRawHtml==true)
11403 <html><script>alert(1);</script></html>
11405 <p><script>alert(1);</script>
11410 Parents of subpages, one level up
11412 subpage title=[[Subpage test/L1/L2/L3]]
11416 <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>
11422 Parents of subpages, one level up, not named
11424 subpage title=[[Subpage test/L1/L2/L3]]
11428 <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>
11435 Parents of subpages, two levels up
11437 subpage title=[[Subpage test/L1/L2/L3]]
11443 <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
11444 </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>
11449 Parents of subpages, two levels up, without trailing slash or name.
11451 subpage title=[[Subpage test/L1/L2/L3]]
11460 Parents of subpages, two levels up, with lots of extra trailing slashes.
11462 subpage title=[[Subpage test/L1/L2/L3]]
11466 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11471 Definition list code coverage
11477 <dl><dt> title  </dt><dd> def
11478 </dd><dt> title </dt><dd> def
11479 </dd><dt>title</dt><dd> def
11485 Don't fall for the self-closing div
11487 <div>hello world</div/>
11489 <div>hello world</div>
11498 <p>[[:Template:Msg]]
11507 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11511 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11513 Always escape literal '>' in output, not just after '<'
11527 <p>This is a test template
11528 This is a test template
11540 Inclusion of !userCanEdit() content
11544 <h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
11550 Out-of-order TOC heading levels
11559 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11561 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11563 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11564 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11567 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11569 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11570 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
11575 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
11576 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
11577 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
11578 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
11579 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
11580 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
11586 ISBN with a dummy number
11596 ISBN with space-delimited number
11600 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
11606 ISBN with multiple spaces, no number
11625 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11626 </p><p>ISBN 12345678901
11632 ISBN with trailing year (bug 8110)
11634 ISBN 1-234-56789-0 - 2006
11636 ISBN 1 234 56789 0 - 2006
11638 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11639 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11647 {{anchorencode:foo bar©#%n}}
11649 <p>foo_bar.C2.A9.23.25n
11654 anchorencode trims spaces
11656 {{anchorencode: __pretty__please__}}
11663 anchorencode deals with links
11665 {{anchorencode: [[hello|world]] [[hi]]}}
11672 anchorencode deals with templates
11674 {{anchorencode: {{Foo}} }}
11681 anchorencode encodes like the TOC generator: (bug 18431)
11683 === _ +:.3A%3A&&]] ===
11684 {{anchorencode: _ +:.3A%3A&&]] }}
11687 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
11688 <p>.2B:.3A.253A.26.26.5D.5D
11692 # Expected output in the following test is not necessarily expected (there
11693 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11694 # only testing for well-formedness.
11696 Bug 6200: blockquotes and paragraph formatting
11716 Bug 8293: Use of center tag ruins paragraph formatting
11738 ### Language variants related tests
11741 Self-link in language variants
11743 title=[[Dunav]] language=sr
11745 Both [[Dunav]] and [[Дунав]] are names for this river.
11747 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11758 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11760 title=[[Duna]] language=sr
11762 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11764 <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.
11769 Link to pages in language variants
11773 Main Page can be written as [[Маин Паге]]
11775 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11781 Multiple links to pages in language variants
11785 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11787 <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>.
11793 Simple template in language variants
11799 <p>This is a test template
11805 Template with explicit namespace in language variants
11811 <p>This is a test template
11817 Basic test for template parameter in language variants
11821 {{парамтест|param=foo}}
11823 <p>This is a test template with parameter foo
11829 Simple category in language variants
11833 [[Category:МедиаWики Усер'с Гуиде]]
11835 <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>
11852 Don't convert blue categorylinks to another variant (bug 33210)
11856 [[A]][[Category:分类]]
11858 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11863 Stripping -{}- tags (language variants)
11867 Latin proverb: -{Ne nuntium necare}-
11869 <p>Latin proverb: Ne nuntium necare
11875 Prevent conversion with -{}- tags (language variants)
11877 language=sr variant=sr-ec
11879 Latinski: -{Ne nuntium necare}-
11881 <p>Латински: Ne nuntium necare
11887 Prevent conversion of text with -{}- tags (language variants)
11889 language=sr variant=sr-ec
11891 Latinski: -{Ne nuntium necare}-
11893 <p>Латински: Ne nuntium necare
11899 Prevent conversion of links with -{}- tags (language variants)
11901 language=sr variant=sr-ec
11905 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11911 -{}- tags within headlines (within html for parserConvert())
11913 language=sr variant=sr-ec
11917 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-">Naslov</span></h2>
11923 Explicit definition of language variant alternatives
11925 language=zh variant=zh-tw
11927 -{zh:China;zh-tw:Taiwan}-, not China
11929 <p>Taiwan, not China
11935 Conversion around HTML tags
11937 language=sr variant=sr-ec
11939 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11940 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11943 <span title="ЛаCтин">ски</span>
11949 Explicit session-wise language variant mapping (A flag and - flag)
11951 language=zh variant=zh-tw
11953 Taiwan is not China.
11954 But -{A|zh:China;zh-tw:Taiwan}- is China,
11955 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11956 and -{China}- is China.
11958 <p>Taiwan is not China.
11959 But Taiwan is Taiwan,
11960 (This should be stripped!)
11961 and China is China.
11966 Explicit session-wise language variant mapping (H flag for hide)
11968 language=zh variant=zh-tw
11970 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11973 <p>(This should be stripped!)
11979 Adding explicit conversion rule for title (T flag)
11981 language=zh variant=zh-tw showtitle
11983 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11986 <p>Should be stripped!
11991 Testing that changing the language variant here in the tests actually works
11993 language=zh variant=zh showtitle
11995 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11998 <p>Should be stripped!
12003 Recursive conversion of alt and title attrs shouldn't clear converter state
12005 language=zh variant=zh-cn showtitle
12007 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12008 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12012 Should be stripped<span title="Exclamation">!</span>
12017 Bug 24072: more test on conversion rule for title
12019 language=zh variant=zh-tw showtitle
12021 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12022 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12025 <p>This should be stripped!
12026 This won't take interferes with the title rule.
12031 Raw output of variant escape tags (R flag)
12033 language=zh variant=zh-tw
12035 Raw: -{R|zh:China;zh-tw:Taiwan}-
12037 <p>Raw: zh:China;zh-tw:Taiwan
12042 Nested using of manual convert syntax
12044 language=zh variant=zh-hk
12046 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12048 <p>Nested: Hello Hong Kong!
12053 Proper conversion of text in external links
12055 language=sr variant=sr-ec
12057 http://www.google.com
12058 gopher://www.google.com
12059 [http://www.google.com http://www.google.com]
12060 [gopher://www.google.com gopher://www.google.com]
12061 [https://www.google.com irc://www.google.com]
12062 [ftp://www.google.com www.google.com/ftp://dir]
12063 [//www.google.com www.google.com]
12065 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12066 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12067 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12068 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12069 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12070 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12071 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12076 Do not convert roman numbers to language variants
12078 language=sr variant=sr-ec
12082 <p>Фридрих IV је цар.
12087 Unclosed language converter markup "-{"
12098 Don't convert raw rule "-{R|=>}-" to "=>"
12115 Bug 529: Uncovered bullet
12125 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12126 # Templates in Wikipedia rely on this behavior, as tidy has always been
12127 # enabled there. These tests are normally run *without* tidy, so specify the
12128 # full output here.
12129 # To test realistic parsing behavior, apply a tidy-like transformation to both
12130 # the expected output and your parser's output.
12132 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12134 ******* Foo {{bullet}}
12136 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12149 Bug 529: Uncovered table already at line-start
12172 Bug 529: Uncovered bullet in parser function result
12174 * Foo {{lc:{{bullet}} }}
12183 Bug 5678: Double-parsed template argument
12185 {{lc:{{{1}}}|hello}}
12192 Bug 5678: Double-parsed template invocation
12194 {{lc:{{paramtest {{!}} param = hello }} }}
12196 <p>{{paramtest | param = hello }}
12201 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12204 title=[[Main Page]]
12206 {{PRVNÍVELKÉ:ěščř}}
12207 {{prvnívelké:ěščř}}
12227 Morwen/13: Unclosed link followed by heading
12234 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
12239 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12246 <h1> <span class="mw-headline" id="heading">heading</span></h1>
12251 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12258 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
12273 Paragraphs inside divs (no extra line breaks)
12285 Paragraphs inside divs (extra line break on open)
12300 Paragraphs inside divs (extra line break on close)
12315 Paragraphs inside divs (extra line break on open and close)
12332 Nesting tags, paragraphs on lines which begin with <div>
12336 <div></div><strong>A
12345 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12347 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12351 <blockquote>Line one
12353 Line two</blockquote>
12355 <blockquote>Line one
12356 Line two</blockquote>
12361 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12368 Line two</blockquote>
12373 Line two</blockquote>
12378 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12382 <blockquote>Line one
12387 <blockquote>Line one
12395 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12414 Paragraphs inside blockquotes/divs (no extra line breaks)
12416 <blockquote><div>Line one
12418 Line two</div></blockquote>
12420 <blockquote><div>Line one
12421 Line two</div></blockquote>
12426 Paragraphs inside blockquotes/divs (extra line break on open)
12431 Line two</div></blockquote>
12436 Line two</div></blockquote>
12441 Paragraphs inside blockquotes/divs (extra line break on close)
12443 <blockquote><div>Line one
12446 </div></blockquote>
12448 <blockquote><div>Line one
12451 </div></blockquote>
12456 Paragraphs inside blockquotes/divs (extra line break on open and close)
12462 </div></blockquote>
12468 </div></blockquote>
12473 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12475 wgLinkHolderBatchSize=0
12481 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
12482 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
12483 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
12488 Free external link invading image caption
12490 [[Image:Foobar.jpg|thumb|http://x|hello]]
12492 <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>
12497 Bug 15196: localised external link numbers
12501 [http://en.wikipedia.org/]
12503 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
12508 Multibyte character in padleft
12510 {{padleft:-Hello|7|Æ}}
12517 Multibyte character in padright
12519 {{padright:Hello-|7|Æ}}
12526 formatdate parser function
12528 {{#formatdate:2009-03-24}}
12530 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
12535 formatdate parser function, with default format
12537 {{#formatdate:2009-03-24|mdy}}
12539 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
12544 Spacing of numbers in formatted dates
12546 {{#formatdate:January 15}}
12548 <p><span class="mw-formatted-date" title="01-15">January 15</span>
12553 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
12555 language=nl title=[[MediaWiki:Common.css]]
12557 {{#formatdate:2009-03-24|dmy}}
12559 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
12572 Edit comment with link
12576 I like the [[Main Page]] a lot
12578 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
12582 Edit comment with link and link text
12586 I like the [[Main Page|best pages]] a lot
12588 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12592 Edit comment with link and link text with suffix
12596 I like the [[Main Page|best page]]s a lot
12598 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12602 Edit comment with section link (non-local, eg in history list)
12604 comment title=[[Main Page]]
12606 /* External links */ removed bogus entries
12608 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12612 Edit comment with section link and text before it (non-local, eg in history list)
12614 comment title=[[Main Page]]
12616 pre-comment text /* External links */ removed bogus entries
12618 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>
12622 Edit comment with section link (local, eg in diff view)
12624 comment local title=[[Main Page]]
12626 /* External links */ removed bogus entries
12628 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12632 Edit comment with subpage link (bug 14080)
12636 title=[[Subpage test]]
12638 Poked at a [[/subpage]] here...
12640 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12644 Edit comment with subpage link and link text (bug 14080)
12648 title=[[Subpage test]]
12650 Poked at a [[/subpage|neat little page]] here...
12652 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12656 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12659 title=[[Subpage test]]
12661 Poked at a [[/subpage]] here...
12663 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12667 Edit comment with bare anchor link (local, as on diff)
12671 title=[[Main Page]]
12675 <a href="#section">#section</a>
12679 Edit comment with bare anchor link (non-local, as on history)
12682 title=[[Main Page]]
12686 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12690 Anchor starting with underscore
12694 <p><a href="#_ref">One</a>
12699 Id starting with underscore
12701 <div id="_ref"></div>
12703 <div id="_ref"></div>
12708 Space normalisation on autocomment (bug 22784)
12711 title=[[Main Page]]
12713 /* __hello__world__ */
12715 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12719 percent-encoding and + signs in comments (Bug 26410)
12723 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12725 <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>
12729 Bad images - basic functionality
12738 Bad images - bug 16039: text after bad image disappears
12752 Verify that displaytitle works (bug #22501) no displaytitle
12756 wgAllowDisplayTitle=true
12757 wgRestrictDisplayTitle=false
12759 this is not the the title
12762 <p>this is not the the title
12767 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12772 wgAllowDisplayTitle=true
12773 wgRestrictDisplayTitle=false
12775 this is not the the title
12776 {{DISPLAYTITLE:whatever}}
12779 <p>this is not the the title
12784 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12789 wgAllowDisplayTitle=true
12790 wgRestrictDisplayTitle=true
12792 this is not the the title
12793 {{DISPLAYTITLE:whatever}}
12796 <p>this is not the the title
12801 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12806 wgAllowDisplayTitle=true
12807 wgRestrictDisplayTitle=true
12809 this is not the the title
12810 {{DISPLAYTITLE:screen}}
12813 <p>this is not the the title
12818 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12823 wgAllowDisplayTitle=false
12825 this is not the the title
12826 {{DISPLAYTITLE:screen}}
12829 <p>this is not the the title
12830 <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>
12835 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12840 wgAllowDisplayTitle=false
12842 this is not the the title
12845 <p>this is not the the title
12850 preload: check <noinclude> and <includeonly>
12854 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12860 preload: check <onlyinclude>
12864 Goodbye <onlyinclude>Hello world</onlyinclude>
12870 preload: can pass tags through if we want to
12874 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12876 <includeonly>Hello world</includeonly>
12880 preload: check that it doesn't try to do tricks
12884 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12886 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12890 Play a bit with r67090 and bug 3158
12894 <div style="width:50% !important"> </div>
12895 <div style="width:50% !important"> </div>
12896 <div style="width:50% !important"> </div>
12897 <div style="border : solid;"> </div>
12899 <div style="width:50% !important"> </div>
12900 <div style="width:50% !important"> </div>
12901 <div style="width:50% !important"> </div>
12902 <div style="border : solid;"> </div>
12907 HTML5 data attributes
12909 <span data-foo="bar">Baz</span>
12910 <p data-abc-def_hij="">Quuz</p>
12912 <p><span data-foo="bar">Baz</span>
12914 <p data-abc-def_hij="">Quuz</p>
12919 percent-encoding and + signs in internal links (Bug 26410)
12921 [[User:+%]] [[Page+title%]]
12922 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12923 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12924 [[%33%45]] [[%33%45+]]
12926 <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>
12927 <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>
12928 <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>
12929 <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>
12934 Special characters in embedded file links (bug 27679)
12936 [[File:Contains & ampersand.jpg]]
12937 [[File:Does not exist.jpg|Title with & ampersand]]
12939 <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>
12940 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12946 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12948 Text's been normalized?
12950 <p>Text's been normalized?
12955 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12957 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12959 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12964 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12966 [http://www.example.org/ ideograms]
12968 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12973 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12975 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12977 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13001 Bug 31098 Template which includes system messages which includes the template
13005 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13006 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13011 Bug31490 Turkish: ucfirst 'blah'
13022 Bug31490 Turkish: ucfirst 'ix'
13033 Bug31490 Turkish: lcfirst 'BLAH'
13044 Bug31490 Turkish: ucfırst (with a dotless i)
13050 <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>
13055 Bug31490 ucfırst (with a dotless i) with English language
13061 <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>
13066 Bug 26375: TOC with italics
13068 title=[[Main Page]]
13071 == ''Lost'' episodes ==
13073 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13075 <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>
13078 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span> <span class="mw-headline" id="Lost_episodes"><i>Lost</i> episodes</span></h2>
13083 Bug 26375: TOC with bold
13085 title=[[Main Page]]
13088 == '''should be bold''' then normal text ==
13090 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13092 <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>
13095 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span> <span class="mw-headline" id="should_be_bold_then_normal_text"><b>should be bold</b> then normal text</span></h2>
13100 Bug 33845: Headings become cursive in TOC when they contain an image
13102 title=[[Main Page]]
13105 == Image [[Image:foobar.jpg]] ==
13107 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13109 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13112 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span> <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></h2>
13117 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13119 title=[[Main Page]]
13122 == <blockquote>Quote</blockquote> ==
13124 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13126 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13129 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span> <span class="mw-headline" id="Quote"><blockquote>Quote</blockquote></span></h2>
13134 Unclosed tags in TOC
13136 title=[[Main Page]]
13140 <small>Hanc marginis exiguitas non caperet.</small>
13143 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13145 <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>
13148 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span> <span class="mw-headline" id="Proof:_2_.3C_3">Proof: 2 < 3</span></h2>
13149 <p><small>Hanc marginis exiguitas non caperet.</small>
13155 Multiple tags in TOC
13158 == <i>Foo</i> <b>Bar</b> ==
13160 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13162 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13164 <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>
13165 <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>
13168 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar"><i>Foo</i> <b>Bar</b></span></h2>
13169 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"><i>Foo</i> <blockquote>Bar</blockquote></span></h2>
13174 Tags with parameters in TOC
13177 == <sup class="in-h2">Hello</sup> ==
13179 == <sup class="a > b">Evilbye</sup> ==
13181 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13183 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13184 <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>
13187 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span> <span class="mw-headline" id="Hello"><sup class="in-h2">Hello</sup></span></h2>
13188 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span> <span class="mw-headline" id="b.22.3EEvilbye"><sup> b">Evilbye</sup></span></h2>
13193 span tags with directionality in TOC
13196 == <span dir="ltr">C++</span> ==
13198 == <span dir="rtl">זבנג!</span> ==
13200 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13202 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13204 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13206 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13208 <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>
13209 <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>
13210 <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>
13211 <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>
13212 <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>
13215 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a>]</span> <span class="mw-headline" id="C.2B.2B"><span dir="ltr">C++</span></span></h2>
13216 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a>]</span> <span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"><span dir="rtl">זבנג!</span></span></h2>
13217 <h2><span class="editsection">[<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> <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></h2>
13218 <h2><span class="editsection">[<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> <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></h2>
13219 <h2><span class="editsection">[<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> <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></h2>
13226 == {{int:headline_sample}} ==
13230 Bug 32057: Title needed when expanding <h> nodes.
13232 title=[[Main Page]]
13236 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span> <span class="mw-headline" id="Headline_text">Headline text</span></h2>
13241 Strip marker in urlencode
13243 {{urlencode:x<nowiki/>y}}
13244 {{urlencode:x<nowiki/>y|wiki}}
13245 {{urlencode:x<nowiki/>y|path}}
13272 Strip marker in formatNum
13274 {{formatnum:1<nowiki/>2}}
13275 {{formatnum:1<nowiki/>2|R}}
13283 Check noCommafy in formatNum
13287 {{formatnum:123456.78}}
13288 {{formatnum:123456.78|NOSEP}}
13296 Strip marker in grammar
13300 {{grammar:elative|foo<nowiki/>bar}}
13307 Strip marker in padleft
13309 {{padleft:|2|x<nowiki/>y}}
13316 Strip marker in padright
13318 {{padright:|2|x<nowiki/>y}}
13325 Strip marker in anchorencode
13327 {{anchorencode:x<nowiki/>y}}
13334 nowiki inside link inside heading (bug 18295)
13336 ==[[foo|x<nowiki>y</nowiki>z]]==
13338 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span> <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></h2>
13343 new support for bdi element (bug 31817)
13345 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13347 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13352 Ignore pipe between table row attributes
13356 |- id=foo | style='color: red'
13364 <tr id="foo" style="color: red">
13371 Gallery override link with WikiLink (bug 34852)
13374 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13377 <ul class="gallery">
13378 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13379 <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>
13380 <div class="gallerytext">
13390 Gallery override link with absolute external link (bug 34852)
13393 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13396 <ul class="gallery">
13397 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13398 <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>
13399 <div class="gallerytext">
13409 Gallery override link with malicious javascript (bug 34852)
13412 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13415 <ul class="gallery">
13416 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13417 <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>
13418 <div class="gallerytext">
13428 Gallery with invalid title as link (bug 43964)
13431 File:foobar.jpg|link=<
13434 <ul class="gallery">
13435 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13436 <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>
13437 <div class="gallerytext">
13445 Language parser function
13454 Padleft and padright as substr
13456 {{padleft:|3|abcde}}
13457 {{padright:|3|abcde}}
13465 Bug 34939 - Case insensitive link parsing ([HttP://])
13467 [HttP://MediaWiki.Org/]
13469 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
13474 Bug 34939 - Case insensitive link parsing ([HttP:// title])
13476 [HttP://MediaWiki.Org/ MediaWiki]
13478 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
13483 Bug 34939 - Case insensitive link parsing (HttP://)
13485 HttP://MediaWiki.Org/
13487 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
13492 ### Parsoids-specific tests
13493 ### Parsoid-PHP parser incompatibilities
13496 1. SOL-sensitive wikitext tokens as template-args
13510 #### The following section of tests are primarily to test
13511 #### wikitext escaping capabilities of Parsoid.
13512 #### A lot of the tests are disabled for the PHP parser either
13513 #### because of minor newline diffs or other reasons.
13514 #### As Parsoid serializer can handle newlines and other HTML
13515 #### more robustly, some of these tests might get reenabled
13516 #### for the PHP parser.
13518 #### --------------- Headings ---------------
13520 #### 1. Nested inside html <h1>=foo=</h1>
13521 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
13522 #### 3. Nested inside html with wikitext split by html tags
13523 #### 4. No escape needed
13524 #### 5. Empty headings <h1></h1>
13525 #### 6. Heading chars in SOL context
13526 #### ----------------------------------------
13528 Headings: 0. Unnested
13530 <nowiki>=foo=</nowiki>
13532 <nowiki>=foo</nowiki>''a''=
13535 </p><p>=foo<i>a</i>=
13540 Headings: 1. Nested inside html
13544 =<nowiki>=foo=</nowiki>=
13545 ==<nowiki>=foo=</nowiki>==
13546 ===<nowiki>=foo=</nowiki>===
13547 ====<nowiki>=foo=</nowiki>====
13548 =====<nowiki>=foo=</nowiki>=====
13549 ======<nowiki>=foo=</nowiki>======
13560 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
13565 <nowiki>*bar</nowiki>
13569 <nowiki>=bar=</nowiki>
13577 Headings: 3. Nested inside html with wikitext split by html tags
13581 =<nowiki>=</nowiki>'''bold'''foo==
13583 <h1>=<b>bold</b>foo=</h1>
13587 Headings: 4. No escaping needed (testing just h1 and h2)
13602 <h1><i>=</i>foo=</h1>
13607 Headings: 5. Empty headings
13611 =<nowiki></nowiki>=
13612 ==<nowiki></nowiki>==
13613 ===<nowiki></nowiki>===
13614 ====<nowiki></nowiki>====
13615 =====<nowiki></nowiki>=====
13616 ======<nowiki></nowiki>======
13627 Headings: 6. Heading chars in SOL context
13631 <!--cmt--><nowiki>=h1=</nowiki>
13637 #### --------------- Lists ---------------
13638 #### 0. Outside nests (*foo, etc.)
13639 #### 1. Nested inside html <ul><li>*foo</li></ul>
13640 #### 2. Inside definition lists
13641 #### 3. Only bullets at start should be escaped
13642 #### 4. No escapes needed
13643 #### 5. No unnecessary escapes
13644 #### 6. Escape bullets in SOL position
13645 #### 7. Escape bullets in a multi-line context
13646 #### ----------------------------------------
13649 Lists: 0. Outside nests
13651 <nowiki>*foo</nowiki>
13653 <nowiki>#foo</nowiki>
13661 Lists: 1. Nested inside html
13663 *<nowiki>*foo</nowiki>
13665 *<nowiki>#foo</nowiki>
13667 *<nowiki>:foo</nowiki>
13669 *<nowiki>;foo</nowiki>
13671 #<nowiki>*foo</nowiki>
13673 #<nowiki>#foo</nowiki>
13675 #<nowiki>:foo</nowiki>
13677 #<nowiki>;foo</nowiki>
13699 Lists: 2. Inside definition lists
13701 ;<nowiki>;foo</nowiki>
13703 ;<nowiki>:foo</nowiki>
13705 ;<nowiki>:foo</nowiki>
13708 :<nowiki>:foo</nowiki>
13723 Lists: 3. Only bullets at start of text should be escaped
13725 *<nowiki>*foo*bar</nowiki>
13727 *<nowiki>*foo</nowiki>''it''*bar
13731 <ul><li>*foo<i>it</i>*bar
13737 Lists: 4. No escapes needed
13749 <ul><li><i>foo</i>*bar
13751 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13756 Lists: 5. No unnecessary escapes
13758 * bar <span><nowiki>[[foo]]</nowiki></span>
13760 *=bar <span><nowiki>[[foo]]</nowiki></span>
13762 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13764 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13766 *=bar <span>foo]]</span>=
13768 <ul><li> bar <span>[[foo]]</span>
13770 <ul><li>=bar <span>[[foo]]</span>
13772 <ul><li>[[bar <span>[[foo]]</span>
13774 <ul><li>]]bar <span>[[foo]]</span>
13776 <ul><li>=bar <span>foo]]</span>=
13782 Lists: 6. Escape bullets in SOL position
13786 <!--cmt--><nowiki>*foo</nowiki>
13793 Lists: 7. Escape bullets in a multi-line context
13803 #### --------------- HRs ---------------
13804 #### 1. Single line
13805 #### -----------------------------------
13808 HRs: 1. Single line
13813 <nowiki>----</nowiki>
13815 <nowiki>=foo=</nowiki>
13817 <nowiki>*foo</nowiki>
13824 #### --------------- Tables ---------------
13825 #### 1a. Simple example
13826 #### 1b. No escaping needed (!foo)
13827 #### 1c. No escaping needed (|foo)
13828 #### 1d. No escaping needed (|}foo)
13830 #### 2a. Nested in td (<td>foo|bar</td>)
13831 #### 2b. Nested in td (<td>foo||bar</td>)
13832 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13834 #### 3a. Nested in th (<th>foo!bar</th>)
13835 #### 3b. Nested in th (<th>foo!!bar</th>)
13836 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13840 #### 4c. No escaping needed
13841 #### --------------------------------------
13844 Tables: 1a. Simple example
13855 Tables: 1b. No escaping needed
13864 Tables: 1c. No escaping needed
13873 Tables: 1d. No escaping needed
13882 Tables: 2a. Nested in td
13887 |<nowiki>foo|bar</nowiki>
13897 Tables: 2b. Nested in td
13902 |<nowiki>foo||bar</nowiki>
13903 |''it''<nowiki>foo||bar</nowiki>
13908 </td><td><i>it</i>foo||bar
13914 Tables: 2c. Nested in td -- no escaping needed
13929 Tables: 3a. Nested in th
13944 Tables: 3b. Nested in th
13949 !<nowiki>foo!!bar</nowiki>
13959 Tables: 3c. Nested in th -- no escaping needed
13974 Tables: 4a. Escape -
13982 |<nowiki>-bar</nowiki>
13986 <tr><th>-bar</th></tr>
13987 <tr><td>-bar</td></tr>
13992 Tables: 4b. Escape +
14000 |<nowiki>+bar</nowiki>
14004 <tr><th>+bar</th></tr>
14005 <tr><td>+bar</td></tr>
14010 Tables: 4c. No escaping needed
14024 <tr><td>foo-bar</td><td>foo+bar</td></tr>
14025 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
14030 Tables: 4d. No escaping needed
14046 #### --------------- Links ---------------
14047 #### 1. Quote marks in link text
14048 #### 2. Wikilinks: Escapes needed
14049 #### 3. Wikilinks: No escapes needed
14050 #### 4. Extlinks: Escapes needed
14051 #### 5. Extlinks: No escapes needed
14052 #### --------------------------------------
14054 Links 1. Quote marks in link text
14058 [[Foo|<nowiki>Foo''boo''</nowiki>]]
14060 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
14064 Links 2. WikiLinks: Escapes needed
14068 [[Foo|<nowiki>[Foobar]</nowiki>]]
14069 [[Foo|<nowiki>Foobar]</nowiki>]]
14070 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
14071 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
14072 [[Foo|<nowiki>[[Bar]]</nowiki>]]
14073 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
14074 [[Foo|<nowiki>|Bar</nowiki>]]
14076 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
14077 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
14078 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
14079 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
14080 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
14081 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
14082 <a href="Foo" rel="mw:WikiLink">|Bar</a>
14086 Links 3. WikiLinks: No escapes needed
14093 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
14094 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
14098 Links 4. ExtLinks: Escapes needed
14102 [http://google.com <nowiki>[google]</nowiki>]
14103 [http://google.com <nowiki>google]</nowiki>]
14105 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
14106 <a href="http://google.com" rel="mw:ExtLink">google]</a>
14110 Links 5. ExtLinks: No escapes needed
14114 [http://google.com [google]
14116 <a href="http://google.com" rel="mw:ExtLink">[google</a>
14119 #### --------------- Quotes ---------------
14120 #### 1. Quotes inside <b> and <i>
14121 #### 2. Link fragments separated by <i> and <b> tags
14122 #### 3. Link fragments inside <i> and <b>
14123 #### --------------------------------------
14125 1. Quotes inside <b> and <i>
14127 ''<nowiki>'foo'</nowiki>''
14128 ''<nowiki>''foo''</nowiki>''
14129 ''<nowiki>'''foo'''</nowiki>''
14130 '''<nowiki>'foo'</nowiki>'''
14131 '''<nowiki>''foo''</nowiki>'''
14132 '''<nowiki>'''foo'''</nowiki>'''
14133 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
14141 <b>foo'<i>bar'</i>baz</b>
14146 2. Link fragments separated by <i> and <b> tags
14148 [[''foo''<nowiki>hello]]</nowiki>
14150 [['''foo'''<nowiki>hello]]</nowiki>
14152 <p>[[<i>foo</i>hello]]
14153 </p><p>[[<b>foo</b>hello]]
14158 2. Link fragments inside <i> and <b>
14159 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
14160 this is one of the shortcomings of this format)
14162 ''[[foo''<nowiki>]]</nowiki>
14164 '''[[foo'''<nowiki>]]</nowiki>
14167 </p><p><b>[[foo</b>]]
14171 #### --------------- Paragraphs ---------------
14172 #### 1. No unnecessary escapes
14173 #### --------------------------------------
14176 1. No unnecessary escapes
14178 bar <span><nowiki>[[foo]]</nowiki></span>
14180 =bar <span><nowiki>[[foo]]</nowiki></span>
14182 [[bar <span><nowiki>[[foo]]</nowiki></span>
14184 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
14186 <nowiki>=bar </nowiki><span>foo]]</span>=
14188 <p>bar <span>[[foo]]</span>
14189 </p><p>=bar <span>[[foo]]</span>
14190 </p><p>[[bar <span>[[foo]]</span>
14191 </p><p>]]bar <span>[[foo]]</span>
14192 </p><p>=bar <span>foo]]</span>=
14196 #### --------------- PRE ------------------
14197 #### 1. Leading space in SOL context should be escaped
14198 #### --------------------------------------
14200 1. Leading space in SOL context should be escaped
14204 <nowiki> foo</nowiki>
14205 <!--cmt--><nowiki> foo</nowiki>
14212 #### --------------- HTML tags ---------------
14215 #### 3. multi-line html tag
14216 #### --------------------------------------
14222 <a href="http://google.com">google</a>
14224 <a href="http://google.com">google</a>
14230 <nowiki><div>foo</div>
14231 <div style="color:red">foo</div></nowiki>
14233 <p><div>foo</div>
14234 <div style="color:red">foo</div>
14239 3. multi-line html tag
14251 #### --------------- Others ---------------
14255 <nowiki>foo</nowiki>
14257 <p><nowiki>foo</nowiki>
14262 Tag-like HTML structures are passed through as text
14284 </p><p>1<d e>f
14289 # This fails in the PHP parser (see bug 40670,
14290 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
14292 Tag names followed by punctuation should not be recognized as tags
14298 <p><s.ome> text
14303 HTML tag with necessary entities in attributes
14305 <span title="&amp;">foo</span>
14307 <p><span title="&amp;">foo</span>
14312 HTML tag with 'unnecessary' entity encoding in attributes
14314 <span title="&">foo</span>
14316 <p><span title="&">foo</span>
14321 HTML tag with broken attribute value quoting
14323 <span title="Hello world>Foo</span>
14325 <p><span>Foo</span>
14330 Parsoid-only: HTML tag with broken attribute value quoting
14334 <span title="Hello world>Foo</span>
14336 <p><span title="Hello world">Foo</span>
14341 Table with broken attribute value quoting
14344 | title="Hello world|Foo
14355 Table with broken attribute value quoting on consecutive lines
14358 | title="Hello world|Foo
14359 | style="color:red|Bar
14372 Parsoid-only: Table with broken attribute value quoting on consecutive lines
14377 | title="Hello world|Foo
14378 | style="color:red|Bar
14383 <td title="Hello world">Foo
14384 </td><td style="color: red">Bar
14390 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14400 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14410 Accept empty td cell attribute
14413 | align="center" | foo || |
14418 <td align="center"> foo </td>
14425 Non-empty attributes in th-cells
14428 ! Foo !! style="color: red" | Bar
14434 <th style="color: red"> Bar
14440 Accept empty attributes in th-cells
14455 Empty table rows go away
14476 ### Parsoid-centric tests for testing RTing of inter-element separators
14477 ### Edge cases not tested by existing parser tests and specific to
14478 ### Parsoid-specific serialization strategies.
14482 RT-ed inter-element separators should be valid separators
14495 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
14496 (Parsoid-only since PHP parser relies on Tidy for correct output)
14512 Empty TD followed by TD with tpl-generated attribute
14517 |{{echo|style='color:red'}}|foo
14531 Empty TR followed by a template-generated TR
14532 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
14538 {{echo|<tr><td>foo</td></tr>}}
14546 <td>foo</td></tr></tbody></table>
14550 Multi-line image caption generated by templates with/without trailing newlines
14554 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
14555 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
14557 <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>
14558 <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>
14567 Try for 100% code coverage