1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # For testing purposes, temporary articles can created:
31 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
32 # where '/' denotes a newline.
34 # This is the standard article assumed to exist.
59 MediaWiki:bad image list
61 * [[File:Bad.jpg]] except [[Nasty page]]
95 Template:echo_with_span
101 Template:echo_with_div
113 Template:table_attribs
116 |</noinclude>style="color: red"| Foo
138 This is a simple paragraph.
140 <p>This is a simple paragraph.
145 Paragraphs with extra newline spacing
168 Paragraphs with newline spacing with comment lines in between
176 <!--foo--><!--More than 1 comment disables stripping of this line!-->
233 Paragraphs with newline spacing with non-empty white-space lines in between
260 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
268 <!--foo--><!--More than 1 comment disables stripping of this line!-->
307 Extra newlines: More paragraphs with indented comment
322 Extra newlines followed by heading
337 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a>]</span></h1>
338 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
341 <h1><span class="mw-headline" id="b_2">b</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">edit</a>]</span></h1>
346 Extra newlines between heading and content are swallowed
354 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a>]</span></h1>
355 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
362 http://fr.wikipedia.org/wiki/🍺
363 <!-- EasterEgg we love beer, better be able be able to link to it -->
365 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
385 * plain''italic''plain
386 * plain''italic''plain''italic''plain
387 * plain'''bold'''plain
388 * plain'''bold'''plain'''bold'''plain
389 * plain''italic''plain'''bold'''plain
390 * plain'''bold'''plain''italic''plain
391 * plain''italic'''bold-italic'''italic''plain
392 * plain'''bold''bold-italic''bold'''plain
393 * plain'''''bold-italic'''italic''plain
394 * plain'''''bold-italic''bold'''plain
395 * plain''italic'''bold-italic'''''plain
396 * plain'''bold''bold-italic'''''plain
397 * plain l'''italic''plain
398 * plain l''''bold''' plain
401 </li><li> plain<i>italic</i>plain
402 </li><li> plain<i>italic</i>plain<i>italic</i>plain
403 </li><li> plain<b>bold</b>plain
404 </li><li> plain<b>bold</b>plain<b>bold</b>plain
405 </li><li> plain<i>italic</i>plain<b>bold</b>plain
406 </li><li> plain<b>bold</b>plain<i>italic</i>plain
407 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
408 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
409 </li><li> plain<i><b>bold-italic</b>italic</i>plain
410 </li><li> plain<b><i>bold-italic</i>bold</b>plain
411 </li><li> plain<i>italic<b>bold-italic</b></i>plain
412 </li><li> plain<b>bold<i>bold-italic</i></b>plain
413 </li><li> plain l'<i>italic</i>plain
414 </li><li> plain l'<b>bold</b> plain
419 # this example taken from the simple/Moon article
421 Italics and possessives
423 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
425 <p>obtained by <i><a href="/index.php?title=Lunar_Prospector&action=edit&redlink=1" class="new" title="Lunar Prospector (page does not exist)">Lunar Prospector</a>'</i>s gamma-ray spectrometer
430 ### 2-quote opening sequence tests
433 Italics and bold: 2-quote opening sequence: (2,2)
443 Italics and bold: 2-quote opening sequence: (2,3)
453 Italics and bold: 2-quote opening sequence: (2,4)
463 Italics and bold: 2-quote opening sequence: (2,5) (php)
472 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
474 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
486 ### 3-quote opening sequence tests
490 Italics and bold: 3-quote opening sequence: (3,2)
500 Italics and bold: 3-quote opening sequence: (3,3)
510 Italics and bold: 3-quote opening sequence: (3,4)
520 Italics and bold: 3-quote opening sequence: (3,5) (php)
529 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
531 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
543 ### 4-quote opening sequence tests
547 Italics and bold: 4-quote opening sequence: (4,2)
557 Italics and bold: 4-quote opening sequence: (4,3)
567 Italics and bold: 4-quote opening sequence: (4,4)
577 Italics and bold: 4-quote opening sequence: (4,5) (php)
586 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
588 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
594 <p>'<b>foo<i></i></b>
600 ### 5-quote opening sequence tests
604 Italics and bold: 5-quote opening sequence: (5,2) (php)
613 # Parsoid reverses the nesting order, compared to the PHP parser
615 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
627 Italics and bold: 5-quote opening sequence: (5,3)
637 Italics and bold: 5-quote opening sequence: (5,4)
641 <p><i><b>foo'</b></i>
647 Italics and bold: 5-quote opening sequence: (5,5)
656 ### multiple quote sequences in a line
659 Italics and bold: multiple quote sequences: (2,4,2)
663 <p><i>foo'<b>bar</b></i>
669 Italics and bold: multiple quote sequences: (2,4,3)
673 <p><i>foo'<b>bar</b></i>
679 Italics and bold: multiple quote sequences: (2,4,4)
683 <p><i>foo'<b>bar'</b></i>
689 Italics and bold: multiple quote sequences: (3,4,2) (php)
698 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
700 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
706 <p><b>foo'</b>bar<i></i>
712 Italics and bold: multiple quote sequences: (3,4,3) (php)
721 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
723 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
729 <p><b>foo'</b>bar<b></b>
734 ### other quote tests
737 Italics and bold: other quote tests: (2,3,5)
739 ''this is about '''foo's family'''''
741 <p><i>this is about <b>foo's family</b></i>
747 Italics and bold: other quote tests: (2,(3,3),2)
749 ''this is about '''foo's''' family''
751 <p><i>this is about <b>foo's</b> family</i>
757 Italics and bold: other quote tests: (3,2,3,2)
759 '''this is about ''foo'''s family''
761 <p><b>this is about <i>foo</i></b><i>s family</i>
766 # The Parsoid team believes the PHP parser's output on this test is wrong.
767 # It only checks for convert-to-bold-on-single-character-word when the word
768 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
769 # This means that the bold token in position 2 (0-indexed) gets converted by
770 # parsoid, but doesn't get changed by the PHP parser.
772 Italics and bold: other quote tests: (3,2,3,3) (php)
776 '''this is about ''foo'''s family'''
778 <p>'<i>this is about </i>foo<b>s family</b>
781 # This is the output the Parsoid team believes to be correct.
783 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
787 '''this is about ''foo'''s family'''
789 <p><b>this is about <i>foo'</i>s family</b>
795 Italics and bold: other quote tests: (3,(2,2),3)
797 '''this is about ''foo's'' family'''
799 <p><b>this is about <i>foo's</i> family</b>
805 Italicized possessive
807 The ''[[Main Page]]'''s talk page.
809 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
818 Non-html5 tags should be accepted
820 <center>''foo''</center>
823 <strike>''foo''</strike>
826 <center><i>foo</i></center>
827 <p><big><i>foo</i></big>
828 <font><i>foo</i></font>
829 <strike><i>foo</i></strike>
835 ### <nowiki> test cases
839 <nowiki> unordered list
841 <nowiki>* This is not an unordered list item.</nowiki>
843 <p>* This is not an unordered list item.
850 <nowiki>Lorem ipsum dolor
871 :There is not nowiki.
872 :There is <nowiki>nowiki</nowiki>.
874 #There is not nowiki.
875 #There is <nowiki>nowiki</nowiki>.
877 *There is not nowiki.
878 *There is <nowiki>nowiki</nowiki>.
880 <dl><dd>There is not nowiki.
881 </dd><dd>There is nowiki.
883 <ol><li>There is not nowiki.
884 </li><li>There is nowiki.
886 <ul><li>There is not nowiki.
887 </li><li>There is nowiki.
893 Entities inside <nowiki>
895 <nowiki><</nowiki>
906 Comments and Indent-Pre
908 <!-- comment 1 --> asdf
910 <!-- comment 1 --> asdf
913 <!-- comment 1 --> asdf
914 <!-- comment 2 -->xyz
916 <!-- comment 1 --> asdf
917 <!-- comment 2 --> xyz
973 asdf<!-- comment 1 -->jkl
983 <!-- foo --> b <!-- bar -->
997 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1003 Comment semantics and delimiters
1005 <!-- --><!----><!-----><!------>
1011 Comment semantics and delimiters, redux
1013 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1014 -- foo -- funky huh? ... -->
1020 Comment semantics and delimiters: directors cut
1022 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1023 everything starting with < followed by !-- until the first -- and > we see,
1024 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1032 Comment semantics: nesting
1034 <!--<!-- no, we're not going to do anything fancy here -->-->
1041 Comment semantics: unclosed comment at end
1043 <!--This comment will run out to the end of the document
1049 Comment in template title
1058 Comment on its own line post-expand
1070 Comment on its own line post-expand with non-significant whitespace
1082 ### paragraph wraping tests
1096 Block tag on one line
1108 Block tag on both lines
1120 Multiple lines without block tags
1138 Empty lines between lines with block tags
1168 ### Preformatted text
1177 And a [[Main Page|link]]
1183 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1188 Ident preformatting with inline content
1199 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1216 Regression with preformatted in <center>
1229 # Expected output in the following test is not really expected (there should be
1230 # <pre> in the output) -- it's only testing for well-formedness.
1232 Bug 6200: Preformatted in <blockquote>
1245 <pre> with attributes (bug 3202)
1247 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1249 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1254 <pre> with width attribute (bug 3202)
1256 <pre width="8">Narrow screen goodies</pre>
1258 <pre width="8">Narrow screen goodies</pre>
1263 <pre> with forbidden attribute (bug 3202)
1265 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1267 <pre width="8">Narrow screen goodies</pre>
1272 Entities inside <pre>
1281 <pre> with forbidden attribute values (bug 3202)
1283 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1285 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1290 <nowiki> inside <pre> (bug 13238)
1298 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1306 <pre><nowiki>Foo</nowiki></pre>
1311 <nowiki> and <pre> preference (first one wins)
1342 </pre> inside nowiki
1344 <nowiki></pre></nowiki>
1351 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1359 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1369 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1381 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1402 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1406 {{echo| foo}}{{echo| bar}}
1411 {{echo|<!--cmt--> foo}}
1413 <!--cmt-->{{echo| foo}}
1415 {{echo|{{echo| }}bar}}
1433 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1470 Templates: Single-line variant of parameter whitespace stripping test
1476 {{echo|{{echo| a}}}}
1478 {{echo|1={{echo| a}}}}
1491 Templates: Strip whitespace from named parameters, but not positional ones
1519 ### Parsoid-centric tests for testing RT edge cases for pre
1523 1a. Indent-Pre and Comments
1536 1b. Indent-Pre and Comments
1549 1c. Indent-Pre and Comments
1562 2a. Indent-Pre and tables
1583 2b. Indent-Pre and tables
1599 2c. Indent-Pre and tables (bug 42252)
1616 3a. Indent-Pre and block tags (single-line html)
1624 <pre><span> foo </span>
1629 3b. Indent-Pre and block tags (pre-content on separate line)
1681 4. Multiple spaces at start-of-line
1700 5. White-space in indent-pre
1701 NOTE: the white-space char on 2nd line is significant
1714 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1718 HTML-pre: 1. embedded newlines
1754 HTML-pre: 2: indented text
1767 HTML-pre: 3: other wikitext
1788 ### Definition lists
1795 <dl><dt> name </dt><dd> Definition
1801 Definition list for indentation only
1805 <dl><dd> Indented text
1811 Definition list with no space
1815 <dl><dt>name</dt><dd>Definition
1821 Definition list with URL link
1823 ; http://example.com/ : definition
1825 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1831 Definition list with bracketed URL link
1833 ;[http://www.example.com/ Example]:Something about it
1835 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1841 Definition list with wikilink containing colon
1843 ; [[Help:FAQ]]: The least-read page on Wikipedia
1845 <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
1850 # At Brion's and JeLuF's insistence... :)
1852 Definition list with news link containing colon
1854 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1856 <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!
1862 Malformed definition list with colon
1864 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1866 <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
1872 Definition lists: colon in external link text
1874 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1876 <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
1882 Definition lists: colon in HTML attribute
1884 ;<b style="display: inline">bold</b>
1886 <dl><dt><b style="display: inline">bold</b>
1892 Definition lists: self-closed tag
1894 ;one<br/>two : two-line fun
1896 <dl><dt>one<br />two </dt><dd> two-line fun
1902 Bug 11748: Literal closing tags
1906 <dd>test test test test test</dd>
1908 <dd>test test test test test</dd>
1913 <dd>test test test test test</dd>
1915 <dd>test test test test test</dd>
1921 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1924 ; term : description
1930 <dl><dt> term </dt><dd> description
1941 Definition list with empty definition and following paragraph
1946 <dl><dt> term</dt><dd>
1953 Nested definition lists using html syntax
1970 Definition Lists: No nesting: Multiple dd's
1984 Definition Lists: Indentation: Regular
2000 Definition Lists: Indentation: Missing 1st level
2014 Definition Lists: Indentation: Multi-level indent
2018 <dl><dd><dl><dd><dl><dd>i3
2026 Definition Lists: Hacky use to indent tables
2033 should be left alone
2035 <dl><dd><dl><dd><table>
2040 </td></tr></table></dd></dl></dd></dl>
2042 should be left alone
2045 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2046 ## as an empty dt item. It also ignores all but the last ";" when followed
2047 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2048 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2051 ## Ex: ";;t2 ::d2" is transformed into:
2063 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2064 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2075 ## All Parsoid only definition list tests have this difference.
2077 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2078 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2081 Table / list interaction: indented table with lists in table contents
2103 </td></tr></table></dd></dl>
2108 Table / list interaction: lists nested in tables nested in indented lists
2133 </td></tr></table></dd></dl>
2141 Definition Lists: Nesting: Multi-level (Parsoid only)
2171 Definition Lists: Nesting: Test 2 (Parsoid only)
2191 Definition Lists: Nesting: Test 3 (Parsoid only)
2219 Definition Lists: Nesting: Test 4
2224 <dl><dd><dl><dd><dl><dt>t3
2233 ## The Parsoid team believes the following three test exposes a
2234 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2235 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2237 Definition Lists: Mixed Lists: Test 1 (php)
2245 <dl><dd><dl><dt><ul><li> foo
2255 Definition Lists: Mixed Lists: Test 1 (parsoid)
2263 <dl><dd><dl><dt><ul><li> foo
2264 </li></ul></dt><dd><ul><li> bar
2265 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2269 Definition Lists: Mixed Lists: Test 2
2283 Definition Lists: Mixed Lists: Test 3
2288 <ul><li><dl><dd><dl><dd><dl><dd> d1
2299 Definition Lists: Mixed Lists: Test 4
2304 <ul><li><dl><dt>d1 </dt><dd>d2
2305 </dd><dt>d3 </dt><dd>d4
2313 Definition Lists: Mixed Lists: Test 5
2328 Definition Lists: Mixed Lists: Test 6
2333 <ol><li><ul><li><dl><dd>d1
2345 Definition Lists: Mixed Lists: Test 7
2359 Definition Lists: Mixed Lists: Test 8
2375 Definition Lists: Mixed Lists: Test 9
2379 <ul><li><dl><dt>foo </dt><dd>bar
2387 Definition Lists: Mixed Lists: Test 10
2391 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2398 # The Parsoid team disagrees with the PHP parser's seemingly-random
2399 # rules regarding dd/dt on the next two tests. Parsoid is more
2400 # consistent, and recognizes the shared nesting and keeps the
2401 # still-open tags around until the nesting is complete.
2404 Definition Lists: Mixed Lists: Test 11 (php)
2411 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2416 <dl><dt>boo </dt><dd>baz
2425 Definition Lists: Mixed Lists: Test 11 (parsoid)
2447 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2448 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2449 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2450 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2455 Definition Lists: Weird Ones: Test 1 (php)
2459 *#;*::;; foo : bar (who uses this?)
2461 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2473 Definition Lists: Weird Ones: Test 1 (parsoid)
2477 *#;*::;; foo : bar (who uses this?)
2494 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2495 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2502 External links: non-bracketed
2504 Non-bracketed: http://example.com
2506 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2511 External links: numbered
2513 Numbered: [http://example.com]
2514 Numbered: [http://example.net]
2515 Numbered: [http://example.com]
2517 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2518 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2519 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2524 External links: specified text
2526 Specified text: [http://example.com link]
2528 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2533 External links: trail
2535 Linktrails should not work for external links: [http://example.com link]s
2537 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2542 External links: dollar sign in URL
2544 http://example.com/1$2345
2546 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2551 External links: dollar sign in URL (named)
2553 [http://example.com/1$2345]
2555 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2560 External links: open square bracket forbidden in URL (bug 4377)
2562 http://example.com/1[2345
2564 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2569 External links: open square bracket forbidden in URL (named) (bug 4377)
2571 [http://example.com/1[2345]
2573 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2578 External links: nowiki in URL link text (bug 6230)
2580 [http://example.com/ <nowiki>''example site''</nowiki>]
2582 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2587 External links: newline forbidden in text (bug 6230 regression check)
2589 [http://example.com/ first
2592 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2598 External links: Pipe char between url and text
2600 [http://example.com | link]
2602 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2607 External links: protocol-relative URL in brackets
2609 [//example.com/ Test]
2611 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2616 External links: protocol-relative URL in brackets without text
2620 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2625 External links: protocol-relative URL in free text is left alone
2629 <p>//example.com/Foo
2634 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2636 foo//example.com/Foo
2638 <p>foo//example.com/Foo
2645 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2647 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2652 External image from https
2654 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2656 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2661 Link to non-http image, no img tag
2663 Link to non-http image, no img tag: ftp://example.com/test.jpg
2665 <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>
2670 External links: terminating separator
2672 Terminating separator: http://example.com/thing,
2674 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2679 External links: intervening separator
2681 Intervening separator: http://example.com/1,2,3
2683 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2688 External links: old bug with URL in query
2690 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2692 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2697 External links: old URL-in-URL bug, mixed protocols
2699 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2701 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2706 External links: URL in text
2708 URL in text: [http://example.com http://example.com]
2710 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2715 External links: Clickable images
2717 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2719 <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>
2724 External links: raw ampersand
2726 Old & use: http://x&y
2728 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2733 External links: encoded ampersand
2735 Old & use: http://x&y
2737 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2742 External links: encoded equals (bug 6102)
2744 http://example.com/?foo=bar
2746 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2751 External links: [raw ampersand]
2753 Old & use: [http://x&y]
2755 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2760 External links: [encoded ampersand]
2762 Old & use: [http://x&y]
2764 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2769 External links: [encoded equals] (bug 6102)
2771 [http://example.com/?foo=bar]
2773 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2778 External links: [IDN ignored character reference in hostname; strip it right off]
2780 [http://e‌xample.com/]
2782 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2786 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2787 # Where an external link could easily circumvent the sanitization of the text of
2788 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2789 # test demands a higher standard. That's a bit strange.
2793 # http://example.com -> [http://example.com|http://example.com]
2794 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2796 # The first example is sanitized, but the second is not. Any security benefits
2797 # from this production are trivial to circumvent. Either remove this test and
2798 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2799 # the test accordingly.
2804 External links: IDN ignored character reference in hostname; strip it right off
2806 http://e‌xample.com/
2808 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2813 External links: www.jpeg.org (bug 554)
2817 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2822 External links: URL within URL (original bug 2)
2824 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2826 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2831 BUG 361: URL inside bracketed URL
2833 [http://www.example.com/foo http://www.example.com/bar]
2835 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2840 BUG 361: URL within URL, not bracketed
2842 http://www.example.com/foo?=http://www.example.com/bar
2844 <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>
2849 BUG 289: ">"-token in URL-tail
2851 http://www.example.com/<hello>
2853 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2858 BUG 289: literal ">"-token in URL-tail
2860 http://www.example.com/<b>html</b>
2862 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2867 BUG 289: ">"-token in bracketed URL
2869 [http://www.example.com/<hello> stuff]
2871 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2876 BUG 289: literal ">"-token in bracketed URL
2878 [http://www.example.com/<b>html</b> stuff]
2880 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2885 BUG 289: literal double quote at end of URL
2887 http://www.example.com/"hello"
2889 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2894 BUG 289: literal double quote in bracketed URL
2896 [http://www.example.com/"hello" stuff]
2898 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2903 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2905 [http://www.example.com test]
2907 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2912 External links: link text with spaces
2914 [http://www.example.com a b c]
2915 [http://www.example.com ''a'' ''b'']
2917 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2918 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2923 External links: wiki links within external link (Bug 3695)
2925 [http://example.com [[wikilink]] embedded in ext link]
2927 <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>
2932 BUG 787: Links with one slash after the url protocol are invalid
2936 [http:/example.com title]
2938 <p>http:/example.com
2939 </p><p>[http:/example.com title]
2944 Bracketed external links with template-generated invalid target
2946 [{{echo|http:/example.com}} title]
2948 <p>[http:/example.com title]
2953 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2955 ''[http://example.com text'']
2956 [http://example.com '''text]'''
2957 ''Something [http://example.com in italic'']
2958 ''Something [http://example.com mixed''''', even bold]'''
2959 '''''Now [http://example.com both''''']
2961 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2962 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2963 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2964 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2965 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2971 Bug 4781: %26 in URL
2973 http://www.example.com/?title=AT%26T
2975 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2979 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2980 # % is actually legal in HTML5. Any change in output would need testing though.
2982 Bug 4781, 5267: %25 in URL
2984 http://www.example.com/?title=100%25_Bran
2986 <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>
2991 Bug 4781, 5267: %28, %29 in URL
2993 http://www.example.com/?title=Ben-Hur_%281959_film%29
2995 <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>
3001 Bug 4781: %26 in autonumber URL
3003 [http://www.example.com/?title=AT%26T]
3005 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3010 Bug 4781, 5267: %26 in autonumber URL
3012 [http://www.example.com/?title=100%25_Bran]
3014 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3019 Bug 4781, 5267: %28, %29 in autonumber URL
3021 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3023 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3029 Bug 4781: %26 in bracketed URL
3031 [http://www.example.com/?title=AT%26T link]
3033 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3038 Bug 4781, 5267: %26 in bracketed URL
3040 [http://www.example.com/?title=100%25_Bran link]
3042 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3047 Bug 4781, 5267: %28, %29 in bracketed URL
3049 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3051 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3056 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3058 Some [http://example.com/ pretty ''italics'' and stuff]!
3060 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3065 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3067 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3069 <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>
3074 External link containing double-single-quotes with no space separating the url from text in italics
3076 [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]].]
3078 <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>
3083 URL-encoding in URL functions (single parameter)
3085 {{localurl:Some page|amp=&}}
3087 <p>/index.php?title=Some_page&amp=&
3092 URL-encoding in URL functions (multiple parameters)
3094 {{localurl:Some page|q=?&=&}}
3096 <p>/index.php?title=Some_page&q=?&amp=&
3103 http://example.com/index.php?foozoid%5B%5D=bar
3105 http://example.com/index.php?foozoid[]=bar
3107 <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>
3108 </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>
3113 IPv6 urls (bug 21261)
3117 http://[2404:130:0:1000::187:2]/index.php
3119 <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>
3124 Non-extlinks in brackets
3133 [{{echo|foo}} ''bar'']
3134 [{{echo|foo}}l's] errand
3135 [{{echo|foo}}l's errand]
3137 [url=http://example.com]
3150 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3161 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3163 Normal text. '''''Bold italic text.''''' Normal text.
3165 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3166 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3172 Unclosed and unmatched quotes (php)
3176 '''''Bold italic text '''with bold deactivated''' in between.'''''
3178 '''''Bold italic text ''with italic deactivated'' in between.'''''
3182 ..spanning two paragraphs (should not work).'''
3184 '''Bold tag left open
3186 ''Italic tag left open
3190 <!-- Unmatching number of opening, closing tags: -->
3191 '''This year''''s election ''should'' beat '''last year''''s.
3193 ''Tom'''s car is bigger than ''Susan'''s.
3195 Plain ''italic'''s plain
3197 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3198 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3199 </p><p><b>Bold text..</b>
3200 </p><p>..spanning two paragraphs (should not work).
3201 </p><p><b>Bold tag left open</b>
3202 </p><p><i>Italic tag left open</i>
3204 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3205 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3206 </p><p>Plain <i>italic'</i>s plain
3209 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3210 # parser strips. The wikitext contains just the first half of the bold
3211 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3212 # differently than the PHP parser.)
3214 Unclosed and unmatched quotes (parsoid)
3218 '''''Bold italic text '''with bold deactivated''' in between.'''''
3220 '''''Bold italic text ''with italic deactivated'' in between.'''''
3224 ..spanning two paragraphs (should not work).'''
3226 '''Bold tag left open
3228 ''Italic tag left open
3232 <!-- Unmatching number of opening, closing tags: -->
3233 '''This year''''s election ''should'' beat '''last year''''s.
3235 ''Tom'''s car is bigger than ''Susan'''s.
3237 Plain ''italic'''s plain
3239 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3240 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3241 </p><p><b>Bold text..</b>
3242 </p><p>..spanning two paragraphs (should not work).<b></b>
3243 </p><p><b>Bold tag left open</b>
3244 </p><p><i>Italic tag left open</i>
3246 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3247 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3248 </p><p>Plain <i>italic'</i>s plain
3255 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3258 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3259 # is the bare minimun required by the spec, see:
3260 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3262 A table with no data. (php)
3269 # Parsoid team replies: empty table tags are legal in HTML5
3271 A table with no data. (parsoid)
3280 # A table with nothing but a caption is invalid XHTML, we might want to render
3281 # this as <p>caption</p>
3283 A table with nothing but a caption (php)
3293 </caption><tr><td></td></tr></table>
3296 # Parsoid team replies: table with only a caption is legal in HTML5
3298 A table with nothing but a caption (parsoid)
3306 <table><caption> caption</caption></table>
3310 A table with caption with default-spaced attributes and a table row
3313 |+ style="color: red;" | caption1
3319 <caption style="color: red;"> caption1
3328 A table with captions with non-default spaced attributes and a table row
3331 |+style="color: red;"|caption2
3332 |+ style="color: red;"| caption3
3338 <caption style="color: red;">caption2
3340 <caption style="color: red;"> caption3
3349 Table td-cell syntax variations
3353 | foo bar foo || baz
3354 | style='color:red;' | baz
3355 | style='color:red;' || baz
3362 <td> foo bar foo </td>
3365 <td style="color:red;"> baz
3367 <td> style='color:red;' </td>
3395 Simple table but with multiple dashes for row wikitext
3413 Multiplication table
3415 {| border="1" cellpadding="2"
3416 |+Multiplication table
3418 ! × !! 1 !! 2 !! 3
3436 <table border="1" cellpadding="2">
3437 <caption>Multiplication table
3484 Accept "||" in table headings
3499 Accept "||" in indented table headings
3509 </th></tr></table></dd></dl>
3514 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3531 Accept "| !" at start of line in tables (ignore !-attribute)
3535 | !style="color:red" | bar
3547 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 +/-
3551 |style='color:red;'|+1
3552 |style='color:blue;'|-1
3564 <td style="color:red;">+1
3566 <td style="color:blue;">-1
3590 |rowspan=2| Cell 2, row 1 (and 2)
3601 <td rowspan="2"> Cell 2, row 1 (and 2)
3619 {| bgcolor=#ABCDEF border=2
3624 |the original table again
3632 <table bgcolor="#ABCDEF" border="2">
3640 <td>the original table again
3646 Invalid attributes in table cell (bug 1830)
3661 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3664 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3668 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3669 <td>]" onmouseover="alert(document.cookie)">test
3678 Indented table markup mixed with indented pre content (proposed in bug 6200)
3683 Text that should be rendered preformatted
3691 <pre>Text that should be rendered preformatted
3700 Template-generated table cell attributes and cell content
3708 <td style="color: red"> Foo
3714 Table with row followed by newlines and table heading
3732 Table with empty line following the start tag
3749 # FIXME: Preserve the attribute properly (with an empty string as value) in
3750 # the PHP parser. Parsoid implements the behavior below.
3752 Table attributes with empty value
3764 </td></tr></tbody></table>
3769 Wikitext table with a lot of comments
3792 Wikitext table with double-line table cell
3809 Table cell with a single comment
3825 # The expected HTML structure in this test is debatable. The PHP parser does
3826 # not parse this kind of table at all. The main focus for Parsoid is on
3827 # round-tripping, so this output is ok for now. TODO: revisit!
3829 Wikitext table with html-syntax row (Parsoid)
3841 <td>foo</td></tr></tbody></table>
3848 Plain link, capitalized
3852 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3857 Plain link, uncapitalized
3861 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3868 [[Main Page|The Main Page]]
3870 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3879 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3884 Broken link with fragment
3886 [[Zigzagzogzagzig#zug]]
3888 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3893 Special page link with fragment
3895 [[Special:Version#anchor]]
3897 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3902 Nonexistent special page link with fragment
3904 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3906 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3913 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3915 <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>
3922 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3924 <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>!!!
3935 Bug 43661: Piped links with identical prefixes
3937 [[prefixed article|prefixed articles with spaces]]
3939 [[prefixed article|prefixed articlesaoeu]]
3941 [[Main Page|Main Page test]]
3943 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3944 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3945 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3951 Link with HTML entity in suffix / tail
3953 [[Main Page]]", [[Main Page]]a
3955 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3960 Link with 3 brackets
3969 Piped link with 3 brackets
3971 [[[main page|the main page]]]
3973 <p>[[[main page|the main page]]]
3978 Link with multiple pipes
3980 [[Main Page|The|Main|Page]]
3982 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3989 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3991 <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>
3996 Piped link to namespace
3998 [[Meta:Disclaimers|The disclaimers]]
4000 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4007 [[Usually caused by a typo (oops}]]
4009 <p>[[Usually caused by a typo (oops}]]
4014 Link containing % (not as a hex sequence)
4018 <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>
4023 Link containing % as a single hex sequence interpreted to char
4027 <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>
4032 Link containing % as a double hex sequence interpreted to hex sequence
4036 <p>[[7%2525 Solution]]
4041 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4042 Example for such a section: == < ==
4044 [[%23%3c]][[%23%3e]]
4046 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4051 Link containing "<#" and ">#" as a hex sequences
4053 [[%3c%23]][[%3e%23]]
4055 <p>[[%3c%23]][[%3e%23]]
4060 Link containing an equals sign
4062 [[Special:BookSources/isbn=4-00-026157-6]]
4064 <p><a href="/wiki/Special:BookSources/isbn%3D4-00-026157-6" title="Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a>
4071 Just a test of an article title containing a tilde.
4074 # note that links containing signatures, like [[Foo~~~~]], are
4075 # massaged by the pre-save transform (PST) and so the tildes are never
4076 # seen by the parser.
4078 Link containing a tilde
4082 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4087 Link containing double-single-quotes '' (bug 4598)
4089 [[Lista d''e paise d''o munno]]
4091 <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>
4096 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4098 Some [[Link|pretty ''italics'' and stuff]]!
4100 <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>!
4105 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4107 ''Some [[Link|pretty ''italics'' and stuff]]!
4109 <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>
4114 Link with double quotes in title part (literal) and alternate part (interpreted)
4116 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4120 [[''Pentecoste''|Pentecoste]]
4122 [[''Pentecoste''|''Pentecoste'']]
4124 <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>
4125 </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>
4126 </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>
4127 </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>
4132 Broken image links with HTML captions (bug 39700)
4134 [[File:Nonexistent|<script></script>]]
4135 [[File:Nonexistent|100px|<script></script>]]
4136 [[File:Nonexistent|<]]
4137 [[File:Nonexistent|a<i>b</i>c]]
4139 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4140 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4141 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4142 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4149 [[http://www.example.com]]
4151 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4156 Plain link to URL with link text
4158 [[http://www.example.com Link text]]
4160 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4165 Plain link to protocol-relative URL
4167 [[//www.example.com]]
4169 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4174 Plain link to protocol-relative URL with link text
4176 [[//www.example.com Link text]]
4178 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4183 Plain link to page with question mark in title
4189 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4190 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4195 # I'm fairly sure the expected result here is wrong.
4196 # We want these to be URL links, not pseudo-pages with URLs for titles....
4197 # However the current output is also pretty screwy.
4200 # I'm changing it to match the current output--it arguably makes more
4201 # sense in the light of the test above. Old expected result was:
4202 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4204 # But I think this test is bordering on "garbage in, garbage out" anyway.
4209 Piped link to URL: [[http://www.example.com|an example URL]]
4211 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4216 BUG 2: [[page|http://url/]] should link to page, not http://url/
4218 [[Main Page|http://url/]]
4220 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4225 BUG 337: Escaped self-links should be bold
4229 [[Bug462]] [[Bug462]]
4231 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4236 Self-link to section should not be bold
4240 [[Main Page#section]]
4242 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4253 Self-link to numeric title
4259 <p><strong class="selflink">0</strong>
4264 Link to numeric-equivalent title
4270 <p><a href="/wiki/00" title="00">00</a>
4275 <nowiki> inside a link
4277 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4279 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4284 Non-breaking spaces in title
4286 [[ Main Page ]]
4288 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4293 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4299 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4304 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4310 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4315 Internal link with en linktrail: no apostrophes (bug 27473)
4321 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4326 Internal link with ca linktrail with apostrophes (bug 27473)
4332 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4337 Internal link with kaa linktrail with apostrophes (bug 27473)
4343 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4354 Internal link with is link prefix
4358 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4360 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4371 Internal link with is link trail and link prefix
4375 [[mótmælendatrú|xxx]]ar
4377 mótmælenda[[söfnuður]]
4378 mótmælenda[[söfnuður|söfnuðir]]
4379 mótmælenda[[söfnuður|söfnuðir]]xxx
4381 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4382 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4383 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4384 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4385 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4390 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4398 [http://wp.org ''foo'']
4400 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4401 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4402 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4403 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4408 ### Interwiki links (see maintenance/interwiki.sql)
4412 Inline interwiki link
4414 [[MeatBall:SoftSecurity]]
4416 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4421 Inline interwiki link with empty title (bug 2372)
4425 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4430 Interwiki link encoding conversion (bug 1636)
4432 *[[Wikipedia:ro:Olteniţa]]
4433 *[[Wikipedia:ro:Olteniţa]]
4435 <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>
4436 </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>
4442 Interwiki link with fragment (bug 2130)
4444 [[MeatBall:SoftSecurity#foo]]
4446 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4461 Double interlanguage link
4472 Interlanguage link, with prefix links
4484 Double interlanguage link, with prefix links (bug 8897)
4497 Parsoid-specific test: Wikilinks with should RT properly
4503 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4521 Broken br tag sanitization
4530 Incorrecly removing closing slashes from correctly formed XHTML
4532 <br style="clear:both;" />
4534 <p><br style="clear:both;" />
4539 Failing to transform badly formed HTML into correct XHTML
4541 <br style="clear: left;">
4542 <br style="clear: right;">
4543 <br style="clear: both;">
4545 <p><br style="clear: left;" />
4546 <br style="clear: right;" />
4547 <br style="clear: both;" />
4552 Handling html with a div self-closing tag
4561 <p><div title />
4565 <p><div title=bar />
4566 <div title=bar/>
4568 <div title="bar/"></div>
4574 Handling html with a br self-closing tag
4583 <p><br title="title" />
4584 <br title="title" />
4593 Horizontal ruler (should it add that extra space?)
4607 Horizontal ruler -- 4+ dashes render hr
4616 Horizontal ruler -- eats additional dashes on the same line
4625 Horizontal ruler -- does not collapse dashes on consecutive lines
4636 Horizontal ruler -- <4 dashes render as plain text
4645 Horizontal ruler -- Supports content following dashes on same line
4654 ### Block-level elements
4677 <ol><li>Numbered list
4694 ***#Number on level 4
4696 **#Number on level 3
4697 **#Number on level 3
4701 #** Level 3, but ordered
4704 <ol><li> with numbers
4706 <ul><li> and bullets
4708 <ol><li> and numbers
4710 </li><li>bullets again
4711 <ul><li>bullet level 2
4712 <ul><li>bullet level 3
4713 <ol><li>Number on level 4
4716 </li><li>bullet level 2
4717 <ol><li>Number on level 3
4718 </li><li>Number on level 3
4721 <ol><li>number level 2
4724 <ul><li><ul><li> Level 3
4728 <ol><li><ul><li><ul><li> Level 3, but ordered
4762 Nested lists 3 (first element empty)
4775 Nested lists 4 (first element empty)
4788 Nested lists 5 (both elements empty)
4801 Nested lists 6 (both elements empty)
4814 Nested lists 7 (skip initial nesting levels)
4818 <ul><li><ul><li><ul><li> foo
4826 Nested lists 8 (multiple nesting transitions)
4834 <ul><li><ul><li> bar
4844 1. Lists with start-of-line-transparent tokens before bullets: Comments
4858 2. Lists with start-of-line-transparent tokens before bullets: Template close
4870 Unbalanced closing block tags break a list
4871 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4881 </li></ul></div><div>
4887 Unbalanced closing non-block tags don't break a list
4888 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4898 <ul><li>a<span></span>
4904 Unclosed formatting tags that straddle lists are closed and reopened
4905 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4913 </li><li> <s> b </s>
4918 List embedded in a non-block tag
4919 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4927 <p><small></small></p>
4933 <p><small></small></p>
4937 List items are not parsed correctly following a <pre> block (bug 785)
4943 <ul><li> <pre>foo</pre>
4944 </li><li> <pre>bar</pre>
4951 List items from template
4962 * notSOL{{inner list}}
4981 List interrupted by empty line or heading
4991 <ul><li><ul><li> bar
4994 <h2><span class="mw-headline" id="A_heading">A heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span></h2>
4995 <ul><li> Another list item
5001 Multiple list tags generated by templates
5016 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5019 <!--This line will NOT split the list-->
5021 <!--This line will NOT split the list either-->
5023 <!--foo--> <!--This line with more than 1 comment will split the list-->
5040 Magic Word: {{CURRENTDAY}}
5049 Magic Word: {{CURRENTDAY2}}
5058 Magic Word: {{CURRENTDAYNAME}}
5067 Magic Word: {{CURRENTDOW}}
5076 Magic Word: {{CURRENTMONTH}}
5085 Magic Word: {{CURRENTMONTHABBREV}}
5087 {{CURRENTMONTHABBREV}}
5094 Magic Word: {{CURRENTMONTHNAME}}
5096 {{CURRENTMONTHNAME}}
5103 Magic Word: {{CURRENTMONTHNAMEGEN}}
5105 {{CURRENTMONTHNAMEGEN}}
5112 Magic Word: {{CURRENTTIME}}
5121 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5130 Magic Word: {{CURRENTYEAR}}
5139 Magic Word: {{FULLPAGENAME}}
5141 title=[[User:Ævar Arnfjörð Bjarmason]]
5145 <p>User:Ævar Arnfjörð Bjarmason
5150 Magic Word: {{FULLPAGENAMEE}}
5152 title=[[User:Ævar Arnfjörð Bjarmason]]
5156 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5161 Magic Word: {{NAMESPACE}}
5163 title=[[User:Ævar Arnfjörð Bjarmason]]
5172 Magic Word: {{NAMESPACEE}}
5174 title=[[User:Ævar Arnfjörð Bjarmason]]
5183 Magic Word: {{NAMESPACENUMBER}}
5185 title=[[User:Ævar Arnfjörð Bjarmason]]
5194 Magic Word: {{NUMBEROFFILES}}
5203 Magic Word: {{PAGENAME}}
5205 title=[[User:Ævar Arnfjörð Bjarmason]]
5209 <p>Ævar Arnfjörð Bjarmason
5214 Magic Word: {{PAGENAME}} with metacharacters
5216 title=[['foo & bar = baz']]
5220 <p><i>'foo & bar = baz'</i>
5225 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5227 title=[[*RFC 1234 http://example.com/]]
5231 <p>*RFC 1234 http://example.com/
5236 Magic Word: {{PAGENAMEE}}
5238 title=[[User:Ævar Arnfjörð Bjarmason]]
5242 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5247 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5249 title=[[*RFC 1234 http://example.com/]]
5253 <p>*RFC_1234_http://example.com/
5258 Magic Word: {{REVISIONID}}
5267 Magic Word: {{SCRIPTPATH}}
5276 Magic Word: {{SERVER}}
5280 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5285 Magic Word: {{SERVERNAME}}
5294 Magic Word: {{SITENAME}}
5303 Case-sensitive magic words, when cased differently, should just be template transclusions
5310 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5311 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5312 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5313 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5318 Case-insensitive magic words should still work with weird casing.
5328 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5333 Namespace 1 {{ns:1}}
5342 Namespace 1 {{ns:01}}
5351 Namespace 0 {{ns:0}} (bug 4783)
5359 Namespace 0 {{ns:00}} (bug 4783)
5367 Namespace -1 {{ns:-1}}
5376 Namespace User {{ns:User}}
5385 Namespace User talk {{ns:User_talk}}
5394 Namespace User talk {{ns:uSeR tAlK}}
5403 Namespace File {{ns:File}}
5412 Namespace File {{ns:Image}}
5421 Namespace (lang=de) Benutzer {{ns:User}}
5432 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5438 <p>Benutzer Diskussion
5446 {{urlencode:hi world?!}}
5447 {{urlencode:hi world?!|WIKI}}
5448 {{urlencode:hi world?!|PATH}}
5449 {{urlencode:hi world?!|QUERY}}
5462 Magic links: internal link to RFC (bug 479)
5466 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5471 Magic links: RFC (bug 479)
5475 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5480 Magic links: ISBN (bug 1937)
5484 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5489 Magic links: PMID incorrectly converts space to underscore
5493 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5502 Nonexistent template
5504 {{thistemplatedoesnotexist}}
5506 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5511 Template with invalid target containing tags
5513 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5515 <p>{{a<b>b</b>|foo|a=b|a = b}}
5520 Template with invalid target containing unclosed tag
5522 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5524 <p>{{a<b>|foo|a=b|a = b}}</b>
5531 This is a test template
5539 <p>This is a test template
5544 Template with explicit namespace
5548 <p>This is a test template
5556 This is a test template with parameter {{{param}}}
5562 {{paramtest|param=foo}}
5564 <p>This is a test template with parameter foo
5569 Template:paramtestnum
5575 Template unnamed parameter
5577 {{paramtestnum|Main Page|the main page}}
5579 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5584 Template:templatesimple
5590 Template:templateredirect
5592 #redirect [[Template:templatesimple]]
5596 Template:templateasargtestnum
5602 Template:templateasargtest
5604 {{template{{{templ}}}}}
5608 Template:templateasargtest2
5614 Template with template name as unnamed argument
5616 {{templateasargtestnum|templatesimple}}
5623 Template with template name as argument
5625 {{templateasargtest|templ=simple}}
5632 Template with template name as argument (2)
5634 {{templateasargtest2|templ=templatesimple}}
5641 Template:templateasargtestdefault
5643 {{{{{templ|templatesimple}}}}}
5653 Template with default value
5655 {{templateasargtestdefault}}
5662 Template with default value (value set)
5664 {{templateasargtestdefault|templ=templa}}
5673 {{templateredirect}}
5680 Template with argument in separate line
5682 {{ templateasargtest |
5690 Template with complex template as argument
5693 param ={{ templateasargtest |
5696 <p>This is a test template with parameter (test)
5701 Template with thumb image (with link in description)
5704 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5706 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>
5711 Template:complextemplate
5713 {{{1}}} {{paramtest|
5714 param ={{{param}}}}}
5718 Template with complex arguments
5721 param ={{ templateasargtest |
5722 templ = simple }}|[[Template:complextemplate|link]]}}
5724 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5729 BUG 553: link with two variables in a piped link
5732 |[[{{{1}}}|{{{2}}}]]
5737 <td>[[{{{1}}}|{{{2}}}]]
5743 Magic variable as template parameter
5745 {{paramtest|param={{SITENAME}}}}
5747 <p>This is a test template with parameter MediaWiki
5754 [[{{{param}}}|link]]
5758 Template parameter as link source
5760 {{linktest|param=Main Page}}
5762 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5767 Template-generated attribute string (k='v')
5769 <span {{attr_str|id|v1}}>bar</span>
5771 <p><span id="v1">bar</span>
5778 including another template, {{paramtest|param={{{arg}}}}}
5782 Template passing argument to another template
5784 {{paramtest2|arg='hmm'}}
5786 <p>including another template, This is a test template with parameter 'hmm'
5797 Template as link source
5801 [[{{linktest2}}|Main Page]]
5803 [[{{linktest2}}]]Page
5805 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5806 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5807 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5825 Template infinite loop
5829 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5834 Template from main namespace
5853 BUG 529: Template with table, not included at beginning of line
5872 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5892 BUG 41: Template parameters shown as broken links
5901 Template with targets containing wikilinks
5905 {{[[{{echo|foo}}]]}}
5907 {{{{echo|[[foo}}]]}}
5909 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5910 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5918 ''None'' of '''this''' should be
5920 but rather passed unmodified
5924 # hmm, fix this or just deprecate msgnw and document its behavior?
5930 {{msgnw:MSGNW test}}
5932 <p>''None'' of '''this''' should be
5934 but rather passed unmodified
5942 {{int:youhavenewmessages|lots of money|not!}}
5944 <p>You have lots of money (not!).
5951 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5955 <includeonly> and <noinclude> being included
5966 <onlyinclude>Foo</onlyinclude>bar
5970 <onlyinclude> being included
5982 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5986 <onlyinclude> and <includeonly> being included
5995 <includeonly> and <noinclude> on a page
5997 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6004 Un-closed <noinclude>
6011 <onlyinclude> on a page
6013 <onlyinclude>Foo</onlyinclude>bar
6020 Un-closed <onlyinclude>
6027 Self-closed noinclude, includeonly, onlyinclude tags
6038 Unbalanced includeonly and noinclude tags
6042 |b</noinclude></noinclude>
6043 |c</noinclude></includeonly>
6044 |d</includeonly></includeonly>
6053 <td>c</includeonly>
6055 <td>d</includeonly></includeonly>
6061 Template:Includeonly section
6064 ==Includeonly section==
6070 Bug 6563: Edit link generation for section shown by <includeonly>
6072 {{includeonly section}}
6074 <h2><span class="mw-headline" id="Includeonly_section">Includeonly section</span><span class="mw-editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span></h2>
6075 <h2><span class="mw-headline" id="Section_T-1">Section T-1</span><span class="mw-editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span></h2>
6079 # Uses same input as the contents of [[Template:Includeonly section]]
6081 Bug 6563: Section extraction for section shown by <includeonly>
6086 ==Includeonly section==
6094 Bug 6563: Edit link generation for section suppressed by <includeonly>
6097 ==Includeonly section==
6101 <h2><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span></h2>
6106 Bug 6563: Section extraction for section suppressed by <includeonly>
6111 ==Includeonly section==
6119 Un-closed <includeonly>
6126 ### <includeonly> and <noinclude> in attributes
6129 0. includeonly around the entire attribute
6131 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6133 <p><span id="v2">bar</span>
6138 1. includeonly in html attr key
6140 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6142 <p><span id="foo">bar</span>
6147 2. includeonly in html attr value
6149 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6150 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6152 <p><span id="v1">bar</span>
6153 <span id="v1">bar</span>
6158 3. includeonly in part of an attr value
6160 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6162 <p><span style="color:red;">bar</span>
6167 ### Testing parsing of templates where a template arg
6168 ### has the same name as the template itself.
6178 Templates: Template Name/Arg clash: 1. Use of positional param
6187 Templates: Template Name/Arg clash: 2. Use of named param
6196 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6205 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6209 Templates: 1. Simple use
6218 Templates: 2. Inside a block tag
6220 <div>{{echo|Foo}}</div>
6227 Templates: P-wrapping: 1a. Templates on consecutive lines
6238 Templates: P-wrapping: 1b. Templates on consecutive lines
6252 Templates: P-wrapping: 1c. Templates on consecutive lines
6255 {{echo|bar}} <div>baz</div>
6264 Templates: P-wrapping: 1d. Template preceded by comment-only line
6266 parsoid=wt2html,wt2wt
6272 <p typeof="mw:Object/Template">Bar
6277 Templates: Inline Text: 1. Multiple tmeplate uses
6279 {{echo|Foo}}bar{{echo|baz}}
6286 Templates: Inline Text: 2. Back-to-back template uses
6288 {{echo|Foo}}{{echo|bar}}
6295 Templates: Block Tags: 1. Multiple template uses
6297 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6299 <div>Foo</div><div>bar</div><div>baz</div>
6304 Templates: Block Tags: 2. Back-to-back template uses
6306 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6308 <div>Foo</div><div>bar</div>
6313 Templates: Links: 1. Simple example
6315 {{echo|[[Foo|bar]]}}
6317 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6322 Templates: Links: 2. Generation of link href
6324 [[{{echo|Foo}}|bar]]
6326 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6331 Templates: Links: 3. Generation of part of a link href
6333 [[Fo{{echo|o}}|bar]]
6337 [[Foo{{echo|bar}}baz]]
6339 [[Foo{{echo|bar}}|bar]]
6341 [[:Foo{{echo|bar}}]]
6343 [[:Foo{{echo|bar}}|bar]]
6345 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6346 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6347 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6348 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6349 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6350 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6355 Templates: Links: 4. Multiple templates generating link href
6357 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6359 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6364 Templates: Links: 5. Generation of link text
6366 [[Foo|{{echo|bar}}]]
6368 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6373 Templates: Links: 5. Nested templates (only outermost template should be marked)
6375 {{echo|[[{{echo|Foo}}|bar]]}}
6377 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6382 Templates: HTML Tag: 1. Generation of HTML attr. key
6384 <div {{echo|style}}="color:red;">foo</div>
6386 <div style="color:red;">foo</div>
6391 Templates: HTML Tag: 2. Generation of HTML attr. value
6393 <div style={{echo|'color:red;'}}>foo</div>
6395 <div style="color:red;">foo</div>
6400 Templates: HTML Tag: 3. Generation of HTML attr key and value
6402 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6404 <div style="color:red;">foo</div>
6409 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6411 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6413 <div title="This is a long title with just one piece templated">foo</div>
6418 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6420 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6422 <div title="This is a long title with just one piece templated">foo</div>
6427 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6429 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6431 <div title="This is a long title with just one piece templated">foo</div>
6436 Templates: HTML Tag: 7. Generation of partial attribute key string
6438 <div st{{echo|yle}}="color:red;">foo</div>
6440 <div style="color:red;">foo</div>
6445 Templates: HTML Tables: 1. Generating start of a HTML table
6447 {{echo|<table><tr><td>foo</td>}}</tr></table>
6449 <table><tr><td>foo</td></tr></table>
6454 Templates: HTML Tables: 2a. Generating middle of a HTML table
6456 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6458 <table><tr><td>foo</td></tr></table>
6463 Templates: HTML Tables: 2b. Generating middle of a HTML table
6465 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6467 <table><tr><td>foo</td></tr></table>
6472 Templates: HTML Tables: 3. Generating end of a HTML table
6474 <table><tr>{{echo|<td>foo</td></tr></table>}}
6476 <table><tr><td>foo</td></tr></table>
6481 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6483 {{echo|<table>}}<tr><td>foo</td></tr></table>
6485 <table><tr><td>foo</td></tr></table>
6490 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6492 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6494 <table><tr><td>foo</td></tr></table>
6499 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6501 <table><tr>{{echo|<td>}}foo</td></tr></table>
6503 <table><tr><td>foo</td></tr></table>
6508 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6510 <table><tr><td>foo{{echo|</td>}}</tr></table>
6512 <table><tr><td>foo</td></tr></table>
6517 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6519 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6521 <table><tr><td>foo</td></tr></table>
6526 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6528 <table><tr><td>foo</td></tr>{{echo|</table>}}
6530 <table><tr><td>foo</td></tr></table>
6535 Templates: Wiki Tables: 1a. Fostering of entire template content
6543 <tr><td></td></tr></table>
6548 Templates: Wiki Tables: 1b. Fostering of entire template content
6561 <tr><td></td></tr></table>
6566 Templates: Wiki Tables: 2. Fostering of partial template content
6576 <tr><td></td></tr></table>
6581 Templates: Wiki Tables: 3. td-content via multiple templates
6584 {{echo|{{pipe}}a}}{{echo|b}}
6595 Templates: Wiki Tables: 4. Templated tags, no content
6601 <tr><td></td></tr></table>
6606 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6620 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6634 Templates: Lists: Multi-line list-items via templates
6636 *{{echo|a {{nonexistent|
6638 *{{echo|b {{nonexistent|
6641 <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>
6642 </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>
6648 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6650 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6652 <p><i>ab</i>c<i>d</i>e
6657 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6658 (PHP parser generates misnested html)
6660 parsoid=wt2html,wt2wt
6662 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6664 <p><span typeof="mw:Object/Template"><i>a</i></span><i typeof="mw:Object/Template"><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
6668 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6669 (PHP parser generates misnested html)
6671 parsoid=wt2html,wt2wt
6673 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6675 <div typeof="mw:Object/Template"><i>a</i></div>
6676 <div typeof="mw:Object/Template"><i>b</i>c<i>d</i></div>
6677 <div typeof="mw:Object/Template">e</div>
6681 Templates: Ugly nesting: 4. Divs opened/closed across templates
6683 a<div>b{{echo|c</div>d}}e
6690 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6696 |{{echo|foo</table>}}
6700 <table typeof="mw:Object/Template">
6703 <td>foo</td></tr></tbody></table><span>bar</span>
6707 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6717 <td>1. {{echo|foo </table>}}</td>
6719 <td>2. {{echo|baz </table>}}</td>
6732 <table about="#mwt1" typeof="mw:Object/Template">
6737 <td >1. foo </td></tr></tbody></table></td>
6739 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6740 </span><span about="#mwt1">
6742 abc</span><span about="#mwt1">
6743 </span><span about="#mwt1">
6744 </span><span about="#mwt1">
6745 </span><span about="#mwt1">
6746 </span><span about="#mwt1">
6748 xyz</span><span about="#mwt1">
6749 </span><span about="#mwt1">
6754 Templates: Ugly templates: 3. newline-only template parameter
6763 # This looks like a bug: a single newline triggers p/br for some reason.
6765 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6776 Parser Functions: 1. Simple example
6785 Parser Functions: 2. Nested use (only outermost should be marked up)
6794 ### Pre-save transform tests
6797 pre-save transform: subst:
6803 This is a test template
6807 pre-save transform: normal template
6817 pre-save transform: nonexistent template
6821 {{thistemplatedoesnotexist}}
6823 {{thistemplatedoesnotexist}}
6828 pre-save transform: subst magic variables
6837 # This is bug 89, which I fixed. -- wtm
6839 pre-save transform: subst: templates with parameters
6843 {{subst:paramtest|param="something else"}}
6845 This is a test template with parameter "something else"
6851 <nowiki>'''not wiki'''</nowiki>
6855 pre-save transform: nowiki in subst (bug 1188)
6859 {{subst:nowikitest}}
6861 <nowiki>'''not wiki'''</nowiki>
6866 Template:commenttest
6868 This template has <!-- a comment --> in it.
6872 pre-save transform: comment in subst (bug 1936)
6876 {{subst:commenttest}}
6878 This template has <!-- a comment --> in it.
6882 pre-save transform: unclosed tag
6886 <nowiki>'''not wiki'''
6888 <nowiki>'''not wiki'''
6892 pre-save transform: mixed tag case
6896 <NOwiki>'''not wiki'''</noWIKI>
6898 <NOwiki>'''not wiki'''</noWIKI>
6902 pre-save transform: unclosed comment in <nowiki>
6906 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6908 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6911 # Leading @ in this template definition works around a limitation
6912 # in parsoid's parserTests which otherwise strips the <span> from the
6913 # result (confusing it for a template wrapper)
6917 @<span onmouseover="alert('crap')">Oh no</span>
6921 (confirming safety of fix for subst bug 1936)
6923 {{Template:dangerous}}
6925 <p>@<span>Oh no</span>
6930 pre-save transform: comment containing gallery (bug 5024)
6934 <!-- <gallery>data</gallery> -->
6936 <!-- <gallery>data</gallery> -->
6940 pre-save transform: comment containing extension
6944 <!-- <tag>data</tag> -->
6946 <!-- <tag>data</tag> -->
6950 pre-save transform: comment containing nowiki
6954 <!-- <nowiki>data</nowiki> -->
6956 <!-- <nowiki>data</nowiki> -->
6960 pre-save transform: <noinclude> in subst (bug 3298)
6970 pre-save transform: <onlyinclude> in subst (bug 3298)
6982 {{<includeonly>subst:</includeonly>Includes}}
6986 Template:SafeSubstTest
6988 {{<includeonly>safesubst:</includeonly>Includes}}
6992 bug 22297: safesubst: works during PST
6996 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7002 bug 22297: safesubst: works during normal parse
7011 subst: does not work during normal parse
7015 <p>{{subst:Includes}}
7020 pre-save transform: context links ("pipe trick")
7024 [[Article (context)|]]
7027 [[Bar:Article (context)|]]
7028 [[:Bar:Article (context)|]]
7030 [[|Article (context)]]
7034 [[Article (context)|Article]]
7035 [[Bar:Article|Article]]
7036 [[:Bar:Article|Article]]
7037 [[Bar:Article (context)|Article]]
7038 [[:Bar:Article (context)|Article]]
7040 [[Article (context)]]
7041 [[Bar:X (Y) Z|X (Y) Z]]
7042 [[:Bar:X (Y) Z|X (Y) Z]]
7046 pre-save transform: context links ("pipe trick") with interwiki prefix
7050 [[interwiki:Article|]]
7051 [[:interwiki:Article|]]
7052 [[interwiki:Bar:Article|]]
7053 [[:interwiki:Bar:Article|]]
7055 [[interwiki:Article|Article]]
7056 [[:interwiki:Article|Article]]
7057 [[interwiki:Bar:Article|Bar:Article]]
7058 [[:interwiki:Bar:Article|Bar:Article]]
7062 pre-save transform: context links ("pipe trick") with parens in title
7064 pst title=[[Somearticle (context)]]
7068 [[Article (context)|Article]]
7072 pre-save transform: context links ("pipe trick") with comma in title
7074 pst title=[[Someplace, Somewhere]]
7077 [[Otherplace, Elsewhere|]]
7078 [[Otherplace, Elsewhere, Anywhere|]]
7080 [[Otherplace, Somewhere|Otherplace]]
7081 [[Otherplace, Elsewhere|Otherplace]]
7082 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7086 pre-save transform: context links ("pipe trick") with parens and comma
7088 pst title=[[Someplace (IGNORED), Somewhere]]
7091 [[Otherplace (place), Elsewhere|]]
7093 [[Otherplace, Somewhere|Otherplace]]
7094 [[Otherplace (place), Elsewhere|Otherplace]]
7098 pre-save transform: context links ("pipe trick") with comma and parens
7100 pst title=[[Who, me? (context)]]
7103 [[Me, Myself, and I (1937 song)|]]
7105 [[Yes, you. (context)|Yes, you.]]
7106 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7110 pre-save transform: context links ("pipe trick") with namespace
7112 pst title=[[Ns:Somearticle]]
7116 [[Ns:Article|Article]]
7120 pre-save transform: context links ("pipe trick") with namespace and parens
7122 pst title=[[Ns:Somearticle (context)]]
7126 [[Ns:Article (context)|Article]]
7130 pre-save transform: context links ("pipe trick") with namespace and comma
7132 pst title=[[Ns:Somearticle, Context, Whatever]]
7136 [[Ns:Article, Context, Whatever|Article]]
7140 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7142 pst title=[[Ns:Somearticle, Context (context)]]
7146 [[Ns:Article (context)|Article]]
7150 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7152 pst title=[[Ns:Somearticle (IGNORED), Context]]
7156 [[Ns:Article, Context|Article]]
7160 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7164 [[Article(context)|]]
7165 [[Bar:Article(context)|]]
7166 [[:Bar:Article(context)|]]
7167 [[|Article(context)]]
7171 [[Article(context)|Article]]
7172 [[Bar:Article(context)|Article]]
7173 [[:Bar:Article(context)|Article]]
7174 [[Article(context)]]
7176 [[:Bar:X(Y)Z|X(Y)Z]]
7180 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7184 [[Article (context)|]]
7185 [[Bar:Article (context)|]]
7186 [[:Bar:Article (context)|]]
7187 [[|Article (context)]]
7191 [[Article (context)|Article]]
7192 [[Bar:Article (context)|Article]]
7193 [[:Bar:Article (context)|Article]]
7194 [[Article (context)]]
7195 [[Bar:X (Y) Z|X (Y) Z]]
7196 [[:Bar:X (Y) Z|X (Y) Z]]
7200 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7204 [[Article(context)|]]
7205 [[Bar:Article(context)|]]
7206 [[:Bar:Article(context)|]]
7207 [[|Article(context)]]
7211 [[Article(context)|Article]]
7212 [[Bar:Article(context)|Article]]
7213 [[:Bar:Article(context)|Article]]
7214 [[Article(context)]]
7216 [[:Bar:X(Y)Z|X(Y)Z]]
7220 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7224 [[Article (context), context|]]
7225 [[Article (context),context|]]
7226 [[Bar:Article (context), context|]]
7227 [[Bar:Article (context),context|]]
7228 [[:Bar:Article (context), context|]]
7229 [[:Bar:Article (context),context|]]
7231 [[Article (context), context|Article]]
7232 [[Article (context),context|Article]]
7233 [[Bar:Article (context), context|Article]]
7234 [[Bar:Article (context),context|Article]]
7235 [[:Bar:Article (context), context|Article]]
7236 [[:Bar:Article (context),context|Article]]
7240 pre-save transform: trim trailing empty lines
7244 Empty lines are trimmed
7250 Empty lines are trimmed
7254 pre-save transform: Signature expansion
7259 * <noinclude>~~~</noinclude>
7260 * <includeonly>~~~</includeonly>
7261 * <onlyinclude>~~~</onlyinclude>
7263 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7264 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7265 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7266 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7271 pre-save transform: Signature expansion in nowiki tags (bug 93)
7277 <nowiki>~~~~</nowiki>
7279 <includeonly><nowiki>~~~~</nowiki></includeonly>
7281 <noinclude><nowiki>~~~~</nowiki></noinclude>
7283 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7285 {{subst:Foo}} shall be converted to FOO
7287 As well as inside noinclude/onlyinclude
7288 <noinclude>{{subst:Foo}}</noinclude>
7289 <onlyinclude>{{subst:Foo}}</onlyinclude>
7291 But not inside includeonly
7292 <includeonly>{{subst:Foo}}</includeonly>
7296 <nowiki>~~~~</nowiki>
7298 <includeonly><nowiki>~~~~</nowiki></includeonly>
7300 <noinclude><nowiki>~~~~</nowiki></noinclude>
7302 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7304 FOO shall be converted to FOO
7306 As well as inside noinclude/onlyinclude
7307 <noinclude>FOO</noinclude>
7308 <onlyinclude>FOO</onlyinclude>
7310 But not inside includeonly
7311 <includeonly>{{subst:Foo}}</includeonly>
7315 ### Message transform tests
7318 message transform: magic variables
7328 message transform: should not transform wiki markup
7338 message transform: <noinclude> in transcluded template (bug 4926)
7348 message transform: <onlyinclude> in transcluded template (bug 4926)
7358 {{#special:}} page name, known
7362 {{#special:Recentchanges}}
7364 Special:RecentChanges
7368 {{#special:}} page name with subpage, known
7372 {{#special:Recentchanges/param}}
7374 Special:RecentChanges/param
7378 {{#special:}} page name, unknown
7382 {{#special:foobarnonexistent}}
7384 No such special page
7388 {{#speciale:}} page name, known
7392 {{#speciale:Recentchanges}}
7394 Special:RecentChanges
7398 {{#speciale:}} page name with subpage, known
7402 {{#speciale:Recentchanges/param}}
7404 Special:RecentChanges/param
7408 {{#speciale:}} page name, unknown
7412 {{#speciale:foobarnonexistent}}
7414 No_such_special_page
7423 [[Image:foobar.jpg]]
7425 <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>
7432 [[Image:foobar.jpg|right]]
7434 <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>
7439 Simple image (using File: namespace, now canonical)
7443 <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>
7450 [[Image:foobar.jpg|right|Caption text]]
7452 <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>
7457 Image with empty attribute
7459 [[Image:foobar.jpg|right||Caption text]]
7461 <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>
7466 Image with link tails
7468 123[[Image:foobar.jpg]]456
7469 123[[Image:foobar.jpg|right]]456
7470 123[[Image:foobar.jpg|thumb]]456
7472 <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
7474 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
7475 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
7480 Image with multiple captions -- only last one is accepted
7482 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7484 <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>
7489 Image with width attribute at different positions
7491 [[Image:foobar.jpg|200px|right|Caption]]
7492 [[Image:foobar.jpg|right|200px|Caption]]
7493 [[Image:foobar.jpg|right|Caption|200px]]
7495 <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>
7496 <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>
7497 <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>
7502 Image with link parameter, wiki target
7504 [[Image:foobar.jpg|link=Target page]]
7506 <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>
7511 Image with link parameter, URL target
7513 [[Image:foobar.jpg|link=http://example.com/]]
7515 <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>
7520 Image with link parameter, wgExternalLinkTarget
7522 [[Image:foobar.jpg|link=http://example.com/]]
7524 wgExternalLinkTarget='foobar'
7526 <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>
7531 Image with link parameter, wgNoFollowLinks set to false
7533 [[Image:foobar.jpg|link=http://example.com/]]
7535 wgNoFollowLinks=false
7537 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7542 Image with link parameter, wgNoFollowDomainExceptions
7544 [[Image:foobar.jpg|link=http://example.com/]]
7546 wgNoFollowDomainExceptions='example.com'
7548 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7553 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7555 [[Image:foobar.jpg|link=http://example.com/|Title]]
7557 wgExternalLinkTarget='foobar'
7559 <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>
7564 Image with empty link parameter
7566 [[Image:foobar.jpg|link=]]
7568 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7573 Image with link parameter (wiki target) and unnamed parameter
7575 [[Image:foobar.jpg|link=Target page|Title]]
7577 <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>
7582 Image with link parameter (URL target) and unnamed parameter
7584 [[Image:foobar.jpg|link=http://example.com/|Title]]
7586 <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>
7591 Thumbnail image with link parameter
7595 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7597 <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>
7602 Manually-specified thumbnail image
7606 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7608 <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>
7613 Manually-specified thumbnail image with explicit link to wiki page
7617 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7619 <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>
7624 Manually-specified thumbnail image with explicit link to url
7628 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7630 <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>
7635 Manually-specified thumbnail image with explicit no link
7639 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7641 <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>
7646 Manually-specified thumbnail image with explicit link and alt text
7650 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7652 <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>
7657 Image with frame and link
7659 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
7661 <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>
7666 Image with frame and link and explicit alt
7668 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7670 <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>
7675 Image with wiki markup in implicit alt
7677 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7679 <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>
7684 Image with wiki markup in explicit alt
7686 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7688 <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>
7693 Link to image page- image page normally doesn't exists, hence edit link
7694 Add test with existing image page
7695 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7699 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7704 bug 18784 Link to non-existent image page with caption should use caption as link text
7706 [[:Image:test|caption]]
7708 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7713 Frameless image caption with a free URL
7715 [[Image:foobar.jpg|http://example.com]]
7717 <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>
7722 Thumbnail image caption with a free URL
7724 [[Image:foobar.jpg|thumb|http://example.com]]
7726 <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>
7731 Thumbnail image caption with a free URL and explicit alt
7733 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7735 <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>
7740 BUG 1887: A ISBN with a thumbnail
7742 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7744 <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>
7749 BUG 1887: A RFC with a thumbnail
7751 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7753 <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>
7758 BUG 1887: A mailto link with a thumbnail
7760 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7762 <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>
7766 # Pending resolution to bug 368
7768 BUG 648: Frameless image caption with a link
7770 [[Image:foobar.jpg|text with a [[link]] in it]]
7772 <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>
7777 BUG 648: Frameless image caption with a link (suffix)
7779 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7781 <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>
7786 BUG 648: Frameless image caption with an interwiki link
7788 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7790 <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>
7795 BUG 648: Frameless image caption with a piped interwiki link
7797 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7799 <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>
7804 Escape HTML special chars in image alt text
7806 [[Image:foobar.jpg|& < > "]]
7808 <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>
7813 BUG 499: Alt text should have Ӓ, not &1234;
7815 [[Image:foobar.jpg|♀]]
7817 <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>
7822 Broken image caption with link
7824 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7826 <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.
7831 Image caption containing another image
7833 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7835 <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>
7840 Image caption containing a newline
7842 [[Image:Foobar.jpg|This
7845 <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>
7850 Parsoid: Image caption containing leading space
7851 (The leading space should not trigger nowiki escaping in wt2wt mode)
7853 [[Image:Foobar.jpg|thumb| bar]]
7855 <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>
7860 Bug 3090: External links other than http: in image captions
7862 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7864 <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>
7871 [[Image:foobar.jpg|a|class=b]]
7873 <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>
7878 Localized image handling (1).
7882 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7884 <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>
7889 Localized image handling (2).
7893 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7895 <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>
7900 "border", "frameless" and "class" attributes on an image.
7902 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7904 <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>
7911 #REDIRECT [[File:Barfoo.jpg]]
7917 [[Image:Barfoo.jpg]]
7919 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7924 Missing image with uploads disabled
7928 [[Image:Foobaz.jpg]]
7930 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7939 Subpage test/subpage
7947 subpage title=[[Subpage test]]
7951 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7956 Subpage noslash link
7958 subpage title=[[Subpage test]]
7962 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7971 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7976 BUG 561: {{/Subpage}}
7978 subpage title=[[Page]]
7982 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7990 Category:MediaWiki User's Guide
7998 [[:Category:MediaWiki User's Guide]]
8000 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8009 [[Category:MediaWiki User's Guide]]
8011 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8015 PAGESINCATEGORY invalid title fatal (r33546 fix)
8017 {{PAGESINCATEGORY:<bogus>}}
8024 Category with different sort key
8028 [[Category:MediaWiki User's Guide|Foo]]
8030 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8034 Category with identical sort key
8038 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8040 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8044 Category with empty sort key
8049 [[Category:MediaWiki User's Guide|]]
8051 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8055 Category with empty sort key and parentheses
8060 [[Category:Foo (bar)|]]
8062 [[Category:Foo (bar)|Foo]]
8066 Category with link tail
8071 123[[Category:Foo]]456
8073 123[[Category:Foo]]456
8077 Category with template
8082 [[Category:{{echo|Foo}}]]
8084 [[Category:{{echo|Foo}}]]
8088 Category with template in sort key
8093 [[Category:Foo|{{echo|Bar}}]]
8095 [[Category:Foo|{{echo|Bar}}]]
8099 Category with template in sort key and title
8104 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8106 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8110 Category / paragraph interactions
8112 Foo [[Category:Baz]] Bar
8114 Foo [[Category:Baz]]
8122 [[Category:Baz]] Bar
8135 {{echo|[[Category:Baz]]}}
8150 ### Inter-language links
8153 Inter-language links
8159 [[zh:食品]]
8161 es:Alimento fr:Nourriture zh:食品
8165 Duplicate interlanguage links (bug 24502)
8181 Basic section headings
8188 ===Smaller headline===
8191 <h2><span class="mw-headline" id="Headline_1">Headline 1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span></h2>
8194 <h2><span class="mw-headline" id="Headline_2">Headline 2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span></h2>
8197 <h3><span class="mw-headline" id="Smaller_headline">Smaller headline</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span></h3>
8203 Section headings with TOC
8206 === Subheadline 1 ===
8207 ===== Skipping a level =====
8208 ====== Skipping a level ======
8212 ===Another headline===
8214 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8216 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8218 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8220 <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>
8222 <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>
8229 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8231 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8236 <h2><span class="mw-headline" id="Headline_1">Headline 1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span></h2>
8237 <h3><span class="mw-headline" id="Subheadline_1">Subheadline 1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span></h3>
8238 <h5><span class="mw-headline" id="Skipping_a_level">Skipping a level</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span></h5>
8239 <h6><span class="mw-headline" id="Skipping_a_level_2">Skipping a level</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span></h6>
8240 <h2><span class="mw-headline" id="Headline_2">Headline 2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span></h2>
8243 <h3><span class="mw-headline" id="Another_headline">Another headline</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span></h3>
8247 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8249 Handling of sections up to level 6 and beyond
8252 == Level 2 Heading==
8253 === Level 3 Heading===
8254 ==== Level 4 Heading====
8255 ===== Level 5 Heading=====
8256 ====== Level 6 Heading======
8257 ======= Level 7 Heading=======
8258 ======== Level 8 Heading========
8259 ========= Level 9 Heading=========
8260 ========== Level 10 Heading==========
8262 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8264 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8266 <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>
8268 <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>
8270 <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>
8272 <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>
8274 <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>
8275 <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>
8276 <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>
8277 <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>
8278 <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>
8291 <h1><span class="mw-headline" id="Level_1_Heading">Level 1 Heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span></h1>
8292 <h2><span class="mw-headline" id="Level_2_Heading">Level 2 Heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span></h2>
8293 <h3><span class="mw-headline" id="Level_3_Heading">Level 3 Heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span></h3>
8294 <h4><span class="mw-headline" id="Level_4_Heading">Level 4 Heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span></h4>
8295 <h5><span class="mw-headline" id="Level_5_Heading">Level 5 Heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span></h5>
8296 <h6><span class="mw-headline" id="Level_6_Heading">Level 6 Heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span></h6>
8297 <h6><span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span></h6>
8298 <h6><span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span></h6>
8299 <h6><span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span></h6>
8300 <h6><span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span></h6>
8305 TOC regression (bug 9764)
8309 ==== title 1.1.1 ====
8314 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8316 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8318 <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>
8320 <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>
8323 <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>
8326 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8328 <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>
8333 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2>
8334 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3>
8335 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span></h4>
8336 <h3><span class="mw-headline" id="title_1.2">title 1.2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span></h3>
8337 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span></h2>
8338 <h3><span class="mw-headline" id="title_2.1">title 2.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span></h3>
8343 TOC with wgMaxTocLevel=3 (bug 6204)
8349 ==== title 1.1.1 ====
8354 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8356 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8358 <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>
8359 <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>
8362 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8364 <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>
8369 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2>
8370 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3>
8371 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span></h4>
8372 <h3><span class="mw-headline" id="title_1.2">title 1.2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span></h3>
8373 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span></h2>
8374 <h3><span class="mw-headline" id="title_2.1">title 2.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span></h3>
8379 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8385 ====Section 1.1.1====
8386 ====Section 1.1.1.1====
8389 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8391 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8393 <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>
8396 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8399 <h2><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span></h2>
8400 <h3><span class="mw-headline" id="Section_1.1">Section 1.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span></h3>
8401 <h4><span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span></h4>
8402 <h4><span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span></h4>
8403 <h2><span class="mw-headline" id="Section_2">Section 2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span></h2>
8409 Resolving duplicate section names
8414 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span></h2>
8415 <h2><span class="mw-headline" id="Foo_bar_2">Foo bar</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span></h2>
8420 Resolving duplicate section names with differing case (bug 10721)
8425 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span></h2>
8426 <h2><span class="mw-headline" id="Foo_Bar_2">Foo Bar</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span></h2>
8438 Template with sections, __NOTOC__
8445 <h2><span class="mw-headline" id="Section_0">Section 0</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span></h2>
8446 <h3><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span></h3>
8447 <h2><span class="mw-headline" id="Section_2">Section 2</span><span class="mw-editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span></h2>
8448 <h2><span class="mw-headline" id="Section_4">Section 4</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span></h2>
8453 __NOEDITSECTION__ keyword
8459 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
8460 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
8465 Link inside a section heading
8467 ==Section with a [[Main Page|link]] in it==
8469 <h2><span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span></h2>
8474 TOC regression (bug 12077)
8481 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8483 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8485 <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>
8488 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8491 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2>
8492 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3>
8493 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span></h2>
8498 BUG 1219 URL next to image (good)
8500 http://example.com [[Image:foobar.jpg]]
8502 <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>
8507 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8510 The line above must have a trailing space!
8513 But just in case it doesn't...
8515 <h1><span class="mw-headline" id=".3D">=</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span></h1>
8516 <p>The line above must have a trailing space!
8518 <h1><span class="mw-headline" id=".3D_2">=</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span></h1>
8519 <p>But just in case it doesn't...
8524 Header with special characters (bug 25462)
8526 The tooltips shall not show entities to the user (ie. be double escaped)
8543 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8545 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8547 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8548 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8549 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8550 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8551 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8554 <h2><span class="mw-headline" id="text_.3E_text">text > text</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span></h2>
8557 <h2><span class="mw-headline" id="text_.3C_text">text < text</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span></h2>
8560 <h2><span class="mw-headline" id="text_.26_text">text & text</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span></h2>
8563 <h2><span class="mw-headline" id="text_.27_text">text ' text</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span></h2>
8566 <h2><span class="mw-headline" id="text_.22_text">text " text</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span></h2>
8572 Headers with excess '=' characters
8573 (Are similar tests necessary beyond the 1st level?)
8577 =''italic'' heading==
8578 ==''italic'' heading=
8580 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8582 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8583 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8584 <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>
8585 <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>
8588 <h1><span class="mw-headline" id="foo.3D">foo=</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a>]</span></h1>
8589 <h1><span class="mw-headline" id=".3Dfoo">=foo</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a>]</span></h1>
8590 <h1><span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a>]</span></h1>
8591 <h1><span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a>]</span></h1>
8596 HTML headers vs TOC (bug 23393)
8597 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8609 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8611 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8613 <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>
8614 <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>
8617 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8619 <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>
8620 <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>
8625 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
8626 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
8627 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
8628 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
8629 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
8630 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
8635 BUG 1219 URL next to image (broken)
8637 http://example.com[[Image:foobar.jpg]]
8639 <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>
8644 Bug 1186 news: in the middle of text
8646 http://en.wikinews.org/wiki/Wikinews:Workplace
8648 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8654 Namespaced link must have a title
8663 Namespaced link must have a title (bad fragment version)
8665 [[Project:#fragment]]
8667 <p>[[Project:#fragment]]
8673 ### HTML tags and HTML attributes
8677 div with no attributes
8679 <div>HTML rocks</div>
8681 <div>HTML rocks</div>
8686 div with double-quoted attribute
8688 <div id="rock">HTML rocks</div>
8690 <div id="rock">HTML rocks</div>
8695 div with single-quoted attribute
8697 <div id='rock'>HTML rocks</div>
8699 <div id="rock">HTML rocks</div>
8704 div with unquoted attribute
8706 <div id=rock>HTML rocks</div>
8708 <div id="rock">HTML rocks</div>
8713 div with illegal double attributes
8715 <div id="a" id="b">HTML rocks</div>
8717 <div id="b">HTML rocks</div>
8721 # FIXME: produce empty string instead of "class" in the PHP parser, following
8724 div with empty attribute value, space before equals
8728 <div class =>HTML rocks</div>
8730 <div class="">HTML rocks</div>
8734 # The PHP parser escapes the opening brace to { for some reason, so
8735 # disabled this test for it.
8737 div with braces in attribute value
8741 <div title="{}">Foo</div>
8743 <div title="{}">Foo</div>
8746 # This it very inconsistent in the PHP parser: it returns
8747 # class="class" if there is a space between the name and the equal sign (see
8748 # 'div with empty attribute value, space before equals'), but strips the
8749 # attribute completely if the space is missing. We hope that not much content
8750 # depends on this, so are implementing the behavior below in Parsoid for
8751 # consistencies' sake. Disabled for the PHP parser.
8752 # FIXME: fix this behavior in the PHP parser?
8754 div with empty attribute value, no space before equals
8758 <div class=>HTML rocks</div>
8760 <div class="">HTML rocks</div>
8765 HTML multiple attributes correction
8767 <p class="error" class="awesome">Awesome!</p>
8769 <p class="awesome">Awesome!</p>
8774 Table multiple attributes correction
8777 !+ class="error" class="awesome"| status
8782 <th class="awesome"> status
8790 <DIV ID="x">HTML ROCKS</DIV>
8792 <div id="x">HTML ROCKS</div>
8797 Non-ASCII pseudo-tags are rendered as text
8806 Pseudo-tag with URL 'name' renders as url link
8808 <http://example.com/>
8810 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8815 text with amp in the middle of nowhere
8819 <p>Remember AT&T?
8824 text with character entity: eacute
8826 I always thought é was a cute letter.
8828 <p>I always thought é was a cute letter.
8833 text with entity-escaped character entity-like string: eacute
8835 I always thought &eacute; was a cute letter.
8837 <p>I always thought &eacute; was a cute letter.
8842 text with undefined character entity: xacute
8844 I always thought &xacute; was a cute letter.
8846 <p>I always thought &xacute; was a cute letter.
8858 [[Media:Foobar.jpg]]
8860 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8865 Media link with text
8867 [[Media:Foobar.jpg|A neat file to look at]]
8869 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8873 # FIXME: this is still bad HTML tag nesting
8875 Media link with nasty text
8876 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8878 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8880 <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>
8885 Media link to nonexistent file (bug 1702)
8887 [[Media:No such.jpg]]
8889 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8894 Image link to nonexistent file (bug 1850 - good)
8896 [[Image:No such.jpg]]
8898 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8903 :Image link to nonexistent file (bug 1850 - bad)
8905 [[:Image:No such.jpg]]
8907 <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>
8914 Character reference normalization in link text (bug 1938)
8916 [[Main Page|this&that]]
8918 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8925 Test for unicode normalization
8927 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8931 (bug 19451) Links should refer to the normalized form.
8939 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8940 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8941 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8942 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8943 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8948 Empty attribute crash test (bug 2067)
8950 <font color="">foo</font>
8952 <p><font color="">foo</font>
8957 Empty attribute crash test single-quotes (bug 2067)
8959 <font color=''>foo</font>
8961 <p><font color="">foo</font>
8966 Attribute test: equals, then nothing
8968 <font color=>foo</font>
8975 Attribute test: unquoted value
8977 <font color=x>foo</font>
8979 <p><font color="x">foo</font>
8984 Attribute test: unquoted but illegal value (hash)
8986 <font color=#x>foo</font>
8988 <p><font color="#x">foo</font>
8993 Attribute test: no value
8995 <font color>foo</font>
8997 <p><font color="color">foo</font>
9002 Bug 2095: link with three closing brackets
9006 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9011 Bug 2095: link with pipe and three closing brackets
9015 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9020 Bug 2095: link with pipe and three closing brackets, version 2
9022 [[Main Page|[http://example.com/]]]
9024 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9034 Template:Dangerous attribute
9036 " onmouseover="alert(document.cookie)
9040 Template:Dangerous style attribute
9042 border-size: expression(alert(document.cookie))
9048 <div style="float: right; {{{1}}}">Magic div</div>
9052 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9054 <div title="{{test}}"></div>
9056 <div title="This is a test template"></div>
9061 Bug 2304: HTML attribute safety (dangerous template; 2309)
9063 <div title="{{dangerous attribute}}"></div>
9065 <div title=""></div>
9070 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9072 <div style="{{dangerous style attribute}}"></div>
9074 <div style="/* insecure input */"></div>
9079 Bug 2304: HTML attribute safety (safe parameter; 2309)
9081 {{div style|width: 200px}}
9083 <div style="float: right; width: 200px">Magic div</div>
9088 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9090 {{div style|width: expression(alert(document.cookie))}}
9092 <div style="/* insecure input */">Magic div</div>
9097 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9099 {{div style|"><script>alert(document.cookie)</script>}}
9101 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9106 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9108 {{div style|" ><script>alert(document.cookie)</script>}}
9110 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9115 Bug 2304: HTML attribute safety (link)
9117 <div title="[[Main Page]]"></div>
9119 <div title="[[Main Page]]"></div>
9124 Bug 2304: HTML attribute safety (italics)
9126 <div title="''foobar''"></div>
9128 <div title="''foobar''"></div>
9133 Bug 2304: HTML attribute safety (bold)
9135 <div title="'''foobar'''"></div>
9137 <div title="'''foobar'''"></div>
9143 Bug 2304: HTML attribute safety (ISBN)
9145 <div title="ISBN 1234567890"></div>
9147 <div title="ISBN 1234567890"></div>
9152 Bug 2304: HTML attribute safety (RFC)
9154 <div title="RFC 1234"></div>
9156 <div title="RFC 1234"></div>
9161 Bug 2304: HTML attribute safety (PMID)
9163 <div title="PMID 1234567890"></div>
9165 <div title="PMID 1234567890"></div>
9170 Bug 2304: HTML attribute safety (web link)
9172 <div title="http://example.com/"></div>
9174 <div title="http://example.com/"></div>
9179 Bug 2304: HTML attribute safety (named web link)
9181 <div title="[http://example.com/ link]"></div>
9183 <div title="[http://example.com/ link]"></div>
9188 Bug 3244: HTML attribute safety (extension; safe)
9190 <div style="<nowiki>background:blue</nowiki>"></div>
9192 <div style="background:blue"></div>
9197 Bug 3244: HTML attribute safety (extension; unsafe)
9199 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9201 <div style="/* insecure input */"></div>
9205 # More MSIE fun discovered by Tom Gilder
9208 MSIE CSS safety test: spurious slash
9210 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9212 <div style="/* insecure input */">evil</div>
9217 MSIE CSS safety test: hex code
9219 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9221 <div style="/* insecure input */">evil</div>
9226 MSIE CSS safety test: comment in url
9228 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9230 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9235 MSIE CSS safety test: comment in expression
9237 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9239 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9245 Table attribute legitimate extension
9248 !+ style="<nowiki>color:blue</nowiki>"| status
9253 <th style="color:blue"> status
9259 Table attribute safety
9262 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9267 <th style="/* insecure input */"> status
9273 CSS line continuation 1
9275 <div style="background-image: u\ rl(test.jpg);"></div>
9277 <div style="/* insecure input */"></div>
9282 CSS line continuation 2
9284 <div style="background-image: u\ rl(test.jpg); "></div>
9286 <div style="/* insecure input */"></div>
9297 Expansion of multi-line templates in attribute values (bug 6255)
9299 <div style="background: {{identity|#00FF00}}">-</div>
9301 <div style="background: #00FF00">-</div>
9307 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9309 <div style="background:
9312 <div style="background: #00FF00">-</div>
9317 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9319 <div style="background: #00FF00">-</div>
9321 <div style="background: #00FF00">-</div>
9326 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9329 Parser hook: empty input
9342 Parser hook: empty input using terminated empty elements
9355 Parser hook: empty input using terminated empty elements (space before)
9368 Parser hook: basic input
9382 Parser hook: case insensitive
9396 Parser hook: case insensitive, redux
9409 Parser hook: nested tags
9413 <tag><tag></tag></tag>
9424 Parser hook: basic arguments
9426 <tag width=200 height = "100" depth = '50' square></tag>
9434 'square' => 'square',
9441 Parser hook: argument containing a forward slash (bug 5344)
9443 <tag filename='/tmp/bla'></tag>
9448 'filename' => '/tmp/bla',
9455 Parser hook: empty input using terminated empty elements (bug 2374)
9468 # </tag> should be output literally since there is no matching tag that begins it
9470 Parser hook: basic arguments using terminated empty elements (bug 2374)
9472 <tag width=200 height = "100" depth = '50' square/>
9482 'square' => 'square',
9491 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9495 Parser hook: static parser hook not inside a comment
9497 <statictag>hello, world</statictag>
9498 <statictag action=flush/>
9506 Parser hook: static parser hook inside a comment
9508 <!-- <statictag>hello, world</statictag> -->
9509 <statictag action=flush/>
9515 # Nested template calls; this case was broken by Parser.php rev 1.506,
9519 Template:One-parameter
9521 (My parameter is: {{{1}}})
9525 Template:Map-one-parameter
9531 Nested template calls
9533 {{Map-one-parameter|One-parameter|param}}
9535 <p>(My parameter is: param)
9544 Sanitizer: Closing of open tags
9546 <s></s><table></table>
9548 <s></s><table></table>
9553 Sanitizer: Closing of open but not closed tags
9562 Sanitizer: Closing of closed but not open tags
9571 Sanitizer: Closing of closed but not open table tags
9573 Table not started</td></tr></table>
9575 <p>Table not started</td></tr></table>
9580 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9582 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9584 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9589 Sanitizer: Validating the contents of the id attribute (bug 4515)
9595 Something, but definitely not <br id="9" />...
9599 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9603 <br id="foo" /><br id="foo" />
9605 Something need to be done. foo-2 ?
9609 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9612 <meta itemprop="hello" content="world">
9613 <meta http-equiv="refresh" content="5">
9614 <meta itemprop="hello" http-equiv="refresh" content="5">
9615 <link itemprop="hello" href="{{SERVER}}">
9616 <link rel="stylesheet" href="{{SERVER}}">
9617 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9620 <div itemscope="itemscope">
9621 <p> <meta itemprop="hello" content="world" />
9622 <meta http-equiv="refresh" content="5">
9623 <meta itemprop="hello" content="5" />
9625 <link itemprop="hello" href="http://example.org" />
9626 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9627 <link itemprop="hello" href="http://example.org" />
9633 Language converter: output gets cut off unexpectedly (bug 5757)
9637 this bit is safe: }-
9639 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9641 then we get cut off here: }-
9643 all additional text is vanished
9645 <p>this bit is safe: }-
9646 </p><p>but if we add a conversion instance: xxx
9647 </p><p>then we get cut off here: }-
9648 </p><p>all additional text is vanished
9653 Self closed html pairs (bug 5487)
9656 <center><font id="bug" />Centered text</center>
9657 <div><font id="bug2" />In div text</div>
9659 <center><font id="bug" />Centered text</center>
9660 <div><font id="bug2" />In div text</div>
9669 Punctuation: nbsp before exclamation
9673 <p>C'est grave !
9678 Punctuation: CSS !important (bug 11874)
9680 <div style="width:50% !important">important</div>
9682 <div style="width:50% !important">important</div>
9687 Punctuation: CSS ! important (bug 11874; with space after)
9689 <div style="width:50% ! important">important</div>
9691 <div style="width:50% ! important">important</div>
9697 HTML bullet list, closed tags (bug 5497)
9712 HTML bullet list, unclosed tags (bug 5497)
9729 HTML ordered list, closed tags (bug 5497)
9744 HTML ordered list, unclosed tags (bug 5497)
9761 HTML nested bullet list, closed tags (bug 5497)
9786 HTML nested bullet list, open tags (bug 5497)
9811 HTML nested ordered list, closed tags (bug 5497)
9836 HTML nested ordered list, open tags (bug 5497)
9861 HTML ordered list item with parameters oddity
9863 <ol><li id="fragment">One</li></ol>
9865 <ol><li id="fragment">One</li></ol>
9870 bug 5918: autonumbering
9872 [http://first/] [http://second] [ftp://ftp]
9876 [mailto:enclosed@mail.tld With target]
9878 [mailto:enclosed@mail.tld]
9880 mailto:inline@mail.tld
9882 <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>
9883 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9884 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9885 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9886 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9892 # Security and HTML correctness
9893 # From Nick Jenkins' fuzz testing
9897 Fuzz testing: Parser13
9912 Fuzz testing: Parser14
9917 <h2><span class="mw-headline" id="onmouseover.3D">onmouseover=</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span></h2>
9918 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9920 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9927 Fuzz testing: Parser14-table
9932 <h2><span class="mw-headline" id="a">a</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span></h2>
9933 <table style="__TOC__">
9939 # Known to produce bogus xml (extra </td>)
9941 Fuzz testing: Parser16
9961 Fuzz testing: Parser21
9964 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9969 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9979 Fuzz testing: Parser22
9981 http://===r:::https://b
9985 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9993 # Known to produce bad XML for now
9995 Fuzz testing: Parser24
10002 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10003 <br style="onmouseover='alert(document.cookie);' " />
10005 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10010 <u class="|">}}}} >
10011 <br style="onmouseover='alert(document.cookie);'" />
10013 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10022 # Note: the current result listed for this is not what the original one was,
10023 # but the original bug was JavaScript injection, which is fixed in any case.
10024 # It's not clear that the original result listed was any more correct than the
10025 # current one. Original result:
10028 # <li class="||">
10029 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10031 Fuzz testing: Parser25 (bug 6055)
10037 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10039 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10044 Fuzz testing: URL adjacent extension (with space, clean)
10047 http://example.com <nowiki>junk</nowiki>
10049 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10054 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10057 http://example.com<nowiki>junk</nowiki>
10059 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10064 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10067 http://example.com<pre>junk</pre>
10069 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10074 Fuzz testing: image with bogus manual thumbnail
10076 [[Image:foobar.jpg|thumbnail= ]]
10078 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10083 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10085 <pre dir=" "></pre>
10087 <pre dir=" "></pre>
10092 Parsing optional HTML elements (Bug 6171)
10097 <td> Some tabular data</td>
10098 <td> More tabular data ...
10099 <td> And yet som tabular data</td>
10105 <td> Some tabular data</td>
10106 <td> More tabular data ...
10107 </td><td> And yet som tabular data</td>
10114 Correct handling of <td>, <tr> (Bug 6171)
10119 <td> Some tabular data</td>
10120 <td> More tabular data ...</td>
10121 <td> And yet som tabular data</td>
10127 <td> Some tabular data</td>
10128 <td> More tabular data ...</td>
10129 <td> And yet som tabular data</td>
10137 Parsing crashing regression (fr:JavaScript)
10141 <p></body></x>
10146 Inline wiki vs wiki block nesting
10152 <p><b>Bold paragraph</b>
10153 </p><p>New wiki paragraph
10158 Inline HTML vs wiki block nesting
10166 <p><b>Bold paragraph</b>
10167 </p><p>New wiki paragraph
10171 # Original result was this:
10172 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10174 # While that might be marginally more intuitive, maybe, the six-apostrophe
10175 # construct is clearly pathological and the result stated here (which is what
10176 # the parser actually does) is about as reasonable as anything.
10178 Mixing markup for italics and bold
10181 '''bold''''''bold''bolditalics'''''
10183 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10191 Article for special page transclusion test
10195 Special page transclusion
10198 {{Special:Prefixindex/Xyzzyx}}
10200 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10205 Special page transclusion twice (bug 5021)
10208 {{Special:Prefixindex/Xyzzyx}}
10209 {{Special:Prefixindex/Xyzzyx}}
10211 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10212 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10217 Transclusion of default MediaWiki message
10219 {{MediaWiki:Mainpage}}
10226 Transclusion of nonexistent MediaWiki message
10228 {{MediaWiki:Mainpagexxx}}
10230 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10235 Transclusion of MediaWiki message with underscore
10237 {{MediaWiki:history_short}}
10244 Transclusion of MediaWiki message with space
10246 {{MediaWiki:history short}}
10253 Invalid header with following text
10263 Section extraction test (section 0)
10283 Section extraction test (section 1)
10305 Section extraction test (section 2)
10326 Section extraction test (section 3)
10346 Section extraction test (section 4)
10370 Section extraction test (section 5)
10390 Section extraction test (section 6)
10411 Section extraction test (section 7)
10431 Section extraction test (section 8)
10451 Section extraction test (section 9)
10472 Section extraction test (section 10)
10492 Section extraction test (nonexistent section 11)
10511 Section extraction test with bogus heading (section 1)
10516 ==bogus== not a legal section
10520 ==bogus== not a legal section
10524 Section extraction test with bogus heading (section 2)
10529 ==bogus== not a legal section
10536 Section extraction test with comment after heading (section 1)
10548 Section extraction test with comment after heading (section 2)
10560 Section extraction test with bogus <nowiki> heading (section 1)
10565 ==bogus== <nowiki>not a legal section</nowiki>
10569 ==bogus== <nowiki>not a legal section</nowiki>
10573 Section extraction test with bogus <nowiki> heading (section 2)
10578 ==bogus== <nowiki>not a legal section</nowiki>
10585 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10586 # instead of respecting commented sections
10588 Section extraction prefixed by comment (section 1)
10599 Section extraction prefixed by comment (section 2)
10610 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10611 # instead of respecting HTML-style headings
10613 Section extraction, mixed wiki and html (section 1)
10629 Section extraction, mixed wiki and html (section 2)
10645 # Formerly testing for bug 3342
10647 Section extraction, heading surrounded by <noinclude>
10651 <noinclude>==unmarked==</noinclude>
10657 # Test behavior of bug 19910
10659 Sectiion with all-equals
10664 The line above must have a trailing space
10667 But just in case it doesn't...
10671 But just in case it doesn't...
10675 Section replacement test (section 0)
10706 Section replacement test (section 1)
10735 Section replacement test (section 2)
10765 Section replacement test (section 3)
10796 Section replacement test (section 4)
10823 Section replacement test (section 5)
10854 Section replacement test (section 6)
10884 Section replacement test (section 7)
10915 Section replacement test (section 8)
10946 Section replacement test (section 9)
10975 Section replacement test (section 10)
11005 Section replacement test with initial whitespace (bug 13728)
11009 Preformatted initial line
11013 Preformatted initial line
11020 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11032 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11045 Section extraction, <pre> around bogus header (bug 10309)
11062 Section replacement, <pre> around bogus header (bug 10309)
11064 noxml replace=2,"xxx"
11085 Handling of 
 in URLs
11089 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11096 5 quotes, code coverage +1 line (php)
11103 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11105 5 quotes, code coverage +1 line (parsoid)
11111 <p><i><b></b></i></p>
11115 Special:Search page linking.
11119 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11131 * {{ROOTPAGENAMEE}}
11133 * {{BASEPAGENAMEE}}
11135 * {{TALKPAGENAMEE}}
11136 * {{SUBJECTPAGENAME}}
11137 * {{SUBJECTPAGENAMEE}}
11143 * {{SUBJECTSPACEE}}
11144 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11146 <ul><li> Parser test
11147 </li><li> Parser test
11148 </li><li> Parser test
11149 </li><li> Parser_test
11150 </li><li> Parser test
11151 </li><li> Parser_test
11152 </li><li> Parser test
11153 </li><li> Parser_test
11154 </li><li> Talk:Parser test
11155 </li><li> Talk:Parser_test
11156 </li><li> Parser test
11157 </li><li> Parser_test
11164 </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>
11168 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11178 image4 |300px| centre
11179 image5.svg| http://///////
11184 <ul class="gallery">
11185 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11186 <div style="height: 150px;">Image1.png</div>
11187 <div class="gallerytext">
11190 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11191 <div style="height: 150px;">Image2.gif</div>
11192 <div class="gallerytext">
11197 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11198 <div style="height: 150px;">Image3</div>
11199 <div class="gallerytext">
11202 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11203 <div style="height: 150px;">Image4</div>
11204 <div class="gallerytext">
11209 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11210 <div style="height: 150px;">Image5.svg</div>
11211 <div class="gallerytext">
11212 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11216 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11217 <div style="height: 150px;">* image6</div>
11218 <div class="gallerytext">
11226 Gallery (with options)
11228 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11229 File:Nonexistant.jpg|caption
11230 File:Nonexistant.jpg
11231 image:foobar.jpg|some '''caption''' [[Main Page]]
11233 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11236 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11237 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11238 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11239 <div style="height: 70px;">Nonexistant.jpg</div>
11240 <div class="gallerytext">
11245 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11246 <div style="height: 70px;">Nonexistant.jpg</div>
11247 <div class="gallerytext">
11250 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11251 <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>
11252 <div class="gallerytext">
11253 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11257 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11258 <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>
11259 <div class="gallerytext">
11262 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11263 <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>
11264 <div class="gallerytext">
11274 Gallery with wikitext inside caption
11277 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11278 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11281 <ul class="gallery">
11282 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11283 <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>
11284 <div class="gallerytext">
11285 <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>
11289 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11290 <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>
11291 <div class="gallerytext">
11292 <p>This is a test template
11301 gallery (with showfilename option)
11303 <gallery showfilename>
11304 File:Nonexistant.jpg|caption
11305 File:Nonexistant.jpg
11306 image:foobar.jpg|some '''caption''' [[Main Page]]
11310 <ul class="gallery">
11311 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11312 <div style="height: 150px;">Nonexistant.jpg</div>
11313 <div class="gallerytext">
11314 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11319 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11320 <div style="height: 150px;">Nonexistant.jpg</div>
11321 <div class="gallerytext">
11322 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11326 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11327 <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>
11328 <div class="gallerytext">
11329 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11330 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11334 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11335 <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>
11336 <div class="gallerytext">
11337 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11346 Gallery (with namespace-less filenames)
11349 File:Nonexistant.jpg
11355 <ul class="gallery">
11356 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11357 <div style="height: 150px;">Nonexistant.jpg</div>
11358 <div class="gallerytext">
11361 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11362 <div style="height: 150px;">Nonexistant.jpg</div>
11363 <div class="gallerytext">
11366 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11367 <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>
11368 <div class="gallerytext">
11371 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11372 <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>
11373 <div class="gallerytext">
11381 HTML Hex character encoding (spells the word "JavaScript")
11383 JavaScript
11385 <p>JavaScript
11390 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11394 <p>&#xsee;&#XSEE;
11399 HTML Hex character encoding mixed case
11408 __FORCETOC__ override
11420 ISBN 978-0-1234-56 789
11422 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11427 ISBN followed by 5 spaces
11438 ISBN ISBN 1234567890
11440 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11445 Bug 22905: <abbr> followed by ISBN followed by </a>
11447 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11449 <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>
11458 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11463 Double RFC with a wiki link
11467 <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>
11476 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11481 Centre-aligned image
11483 [[Image:foobar.jpg|centre]]
11485 <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>
11492 [[Image:foobar.jpg|none]]
11494 <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>
11499 Width + Height sized image (using px) (height is ignored)
11501 [[Image:foobar.jpg|640x480px]]
11503 <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>
11508 Width-sized image (using px, no following whitespace)
11510 [[Image:foobar.jpg|640px]]
11512 <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>
11517 Width-sized image (using px, with following whitespace - test regression from r39467)
11519 [[Image:foobar.jpg|640px ]]
11521 <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>
11526 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11528 [[Image:foobar.jpg| 640px]]
11530 <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>
11535 Another italics / bold test
11543 # Note the results may be incorrect, as parserTest output included this:
11544 # XML error: Mismatched tag at byte 6120:
11545 # ...<dd> </dt></dl> </dd...
11553 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11564 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11566 Images with the "|" character in the comment
11568 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11570 <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>
11575 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11577 <html><script>alert(1);</script></html>
11579 <p><html><script>alert(1);</script></html>
11584 HTML with raw HTML ($wgRawHtml==true)
11588 <html><script>alert(1);</script></html>
11590 <p><script>alert(1);</script>
11595 Parents of subpages, one level up
11597 subpage title=[[Subpage test/L1/L2/L3]]
11601 <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>
11607 Parents of subpages, one level up, not named
11609 subpage title=[[Subpage test/L1/L2/L3]]
11613 <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>
11620 Parents of subpages, two levels up
11622 subpage title=[[Subpage test/L1/L2/L3]]
11628 <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
11629 </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>
11634 Parents of subpages, two levels up, without trailing slash or name.
11636 subpage title=[[Subpage test/L1/L2/L3]]
11645 Parents of subpages, two levels up, with lots of extra trailing slashes.
11647 subpage title=[[Subpage test/L1/L2/L3]]
11651 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11656 Definition list code coverage
11662 <dl><dt> title  </dt><dd> def
11663 </dd><dt> title </dt><dd> def
11664 </dd><dt>title</dt><dd> def
11670 Don't fall for the self-closing div
11672 <div>hello world</div/>
11674 <div>hello world</div>
11683 <p>[[:Template:Msg]]
11692 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11696 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11698 Always escape literal '>' in output, not just after '<'
11712 <p>This is a test template
11713 This is a test template
11725 Inclusion of !userCanEdit() content
11729 <h2><span class="mw-headline" id="header">header</span><span class="mw-editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span></h2>
11735 Out-of-order TOC heading levels
11744 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11746 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11748 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11749 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11752 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11754 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11755 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
11760 <h2><span class="mw-headline" id="2">2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span></h2>
11761 <h6><span class="mw-headline" id="6">6</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span></h6>
11762 <h3><span class="mw-headline" id="3">3</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span></h3>
11763 <h1><span class="mw-headline" id="1">1</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span></h1>
11764 <h5><span class="mw-headline" id="5">5</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span></h5>
11765 <h2><span class="mw-headline" id="2_2">2</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span></h2>
11771 ISBN with a dummy number
11781 ISBN with space-delimited number
11785 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
11791 ISBN with multiple spaces, no number
11810 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11811 </p><p>ISBN 12345678901
11817 ISBN with trailing year (bug 8110)
11819 ISBN 1-234-56789-0 - 2006
11821 ISBN 1 234 56789 0 - 2006
11823 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11824 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11832 {{anchorencode:foo bar©#%n}}
11834 <p>foo_bar.C2.A9.23.25n
11839 anchorencode trims spaces
11841 {{anchorencode: __pretty__please__}}
11848 anchorencode deals with links
11850 {{anchorencode: [[hello|world]] [[hi]]}}
11857 anchorencode deals with templates
11859 {{anchorencode: {{Foo}} }}
11866 anchorencode encodes like the TOC generator: (bug 18431)
11868 === _ +:.3A%3A&&]] ===
11869 {{anchorencode: _ +:.3A%3A&&]] }}
11872 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
11873 <p>.2B:.3A.253A.26.26.5D.5D
11877 # Expected output in the following test is not necessarily expected (there
11878 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11879 # only testing for well-formedness.
11881 Bug 6200: blockquotes and paragraph formatting
11901 Bug 8293: Use of center tag ruins paragraph formatting
11922 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
11926 <span><s>x</span></s>
11928 <p><span><s>x</span></s></span>
11933 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
11937 <span><s>x</span></s>
11939 <p><span><s>x</s></span><s></s>
11944 ### Language variants related tests
11947 Self-link in language variants
11949 title=[[Dunav]] language=sr
11951 Both [[Dunav]] and [[Дунав]] are names for this river.
11953 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11964 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11966 title=[[Duna]] language=sr
11968 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11970 <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.
11975 Link to pages in language variants
11979 Main Page can be written as [[Маин Паге]]
11981 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11987 Multiple links to pages in language variants
11991 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11993 <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>.
11999 Simple template in language variants
12005 <p>This is a test template
12011 Template with explicit namespace in language variants
12017 <p>This is a test template
12023 Basic test for template parameter in language variants
12027 {{парамтест|param=foo}}
12029 <p>This is a test template with parameter foo
12035 Simple category in language variants
12039 [[Category:МедиаWики Усер'с Гуиде]]
12041 <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>
12058 Don't convert blue categorylinks to another variant (bug 33210)
12062 [[A]][[Category:分类]]
12064 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12069 Stripping -{}- tags (language variants)
12073 Latin proverb: -{Ne nuntium necare}-
12075 <p>Latin proverb: Ne nuntium necare
12081 Prevent conversion with -{}- tags (language variants)
12083 language=sr variant=sr-ec
12085 Latinski: -{Ne nuntium necare}-
12087 <p>Латински: Ne nuntium necare
12093 Prevent conversion of text with -{}- tags (language variants)
12095 language=sr variant=sr-ec
12097 Latinski: -{Ne nuntium necare}-
12099 <p>Латински: Ne nuntium necare
12105 Prevent conversion of links with -{}- tags (language variants)
12107 language=sr variant=sr-ec
12111 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12117 -{}- tags within headlines (within html for parserConvert())
12119 language=sr variant=sr-ec
12123 <h2><span class="mw-headline" id="-.7BNaslov.7D-">Naslov</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span></h2>
12129 Explicit definition of language variant alternatives
12131 language=zh variant=zh-tw
12133 -{zh:China;zh-tw:Taiwan}-, not China
12135 <p>Taiwan, not China
12141 Conversion around HTML tags
12143 language=sr variant=sr-ec
12145 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12146 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12149 <span title="ЛаCтин">ски</span>
12155 Explicit session-wise language variant mapping (A flag and - flag)
12157 language=zh variant=zh-tw
12159 Taiwan is not China.
12160 But -{A|zh:China;zh-tw:Taiwan}- is China,
12161 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12162 and -{China}- is China.
12164 <p>Taiwan is not China.
12165 But Taiwan is Taiwan,
12166 (This should be stripped!)
12167 and China is China.
12172 Explicit session-wise language variant mapping (H flag for hide)
12174 language=zh variant=zh-tw
12176 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12179 <p>(This should be stripped!)
12185 Adding explicit conversion rule for title (T flag)
12187 language=zh variant=zh-tw showtitle
12189 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12192 <p>Should be stripped!
12197 Testing that changing the language variant here in the tests actually works
12199 language=zh variant=zh showtitle
12201 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12204 <p>Should be stripped!
12209 Recursive conversion of alt and title attrs shouldn't clear converter state
12211 language=zh variant=zh-cn showtitle
12213 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12214 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12218 Should be stripped<span title="Exclamation">!</span>
12223 Bug 24072: more test on conversion rule for title
12225 language=zh variant=zh-tw showtitle
12227 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12228 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12231 <p>This should be stripped!
12232 This won't take interferes with the title rule.
12237 Partly disable title conversion if variant == main language code
12239 language=zh variant=zh title=[[ZH]] showtitle
12241 -{T|zh-cn:CN;zh-tw:TW}-
12249 Partly disable title conversion if variant == main language code, more
12251 language=zh variant=zh title=[[ZH]] showtitle
12261 Raw output of variant escape tags (R flag)
12263 language=zh variant=zh-tw
12265 Raw: -{R|zh:China;zh-tw:Taiwan}-
12267 <p>Raw: zh:China;zh-tw:Taiwan
12272 Nested using of manual convert syntax
12274 language=zh variant=zh-hk
12276 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12278 <p>Nested: Hello Hong Kong!
12283 Proper conversion of text in external links
12285 language=sr variant=sr-ec
12287 http://www.google.com
12288 gopher://www.google.com
12289 [http://www.google.com http://www.google.com]
12290 [gopher://www.google.com gopher://www.google.com]
12291 [https://www.google.com irc://www.google.com]
12292 [ftp://www.google.com www.google.com/ftp://dir]
12293 [//www.google.com www.google.com]
12295 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12296 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12297 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12298 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12299 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12300 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12301 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12306 Do not convert roman numbers to language variants
12308 language=sr variant=sr-ec
12312 <p>Фридрих IV је цар.
12317 Unclosed language converter markup "-{"
12328 Don't convert raw rule "-{R|=>}-" to "=>"
12345 Bug 529: Uncovered bullet
12355 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12356 # Templates in Wikipedia rely on this behavior, as tidy has always been
12357 # enabled there. These tests are normally run *without* tidy, so specify the
12358 # full output here.
12359 # To test realistic parsing behavior, apply a tidy-like transformation to both
12360 # the expected output and your parser's output.
12362 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12364 ******* Foo {{bullet}}
12366 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12379 Bug 529: Uncovered table already at line-start
12402 Bug 529: Uncovered bullet in parser function result
12404 * Foo {{lc:{{bullet}} }}
12413 Bug 5678: Double-parsed template argument
12415 {{lc:{{{1}}}|hello}}
12422 Bug 5678: Double-parsed template invocation
12424 {{lc:{{paramtest {{!}} param = hello }} }}
12426 <p>{{paramtest | param = hello }}
12431 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12434 title=[[Main Page]]
12436 {{PRVNÍVELKÉ:ěščř}}
12437 {{prvnívelké:ěščř}}
12457 Morwen/13: Unclosed link followed by heading
12464 <h2><span class="mw-headline" id="heading">heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span></h2>
12469 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12476 <h1><span class="mw-headline" id="heading">heading</span></h1>
12481 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12488 <h2><span class="mw-headline" id="heading">heading</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span></h2>
12503 Paragraphs inside divs (no extra line breaks)
12515 Paragraphs inside divs (extra line break on open)
12530 Paragraphs inside divs (extra line break on close)
12545 Paragraphs inside divs (extra line break on open and close)
12562 Nesting tags, paragraphs on lines which begin with <div>
12566 <div></div><strong>A
12575 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12577 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12581 <blockquote>Line one
12583 Line two</blockquote>
12585 <blockquote>Line one
12586 Line two</blockquote>
12591 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12598 Line two</blockquote>
12603 Line two</blockquote>
12608 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12612 <blockquote>Line one
12617 <blockquote>Line one
12625 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12644 Paragraphs inside blockquotes/divs (no extra line breaks)
12646 <blockquote><div>Line one
12648 Line two</div></blockquote>
12650 <blockquote><div>Line one
12651 Line two</div></blockquote>
12656 Paragraphs inside blockquotes/divs (extra line break on open)
12661 Line two</div></blockquote>
12666 Line two</div></blockquote>
12671 Paragraphs inside blockquotes/divs (extra line break on close)
12673 <blockquote><div>Line one
12676 </div></blockquote>
12678 <blockquote><div>Line one
12681 </div></blockquote>
12686 Paragraphs inside blockquotes/divs (extra line break on open and close)
12692 </div></blockquote>
12698 </div></blockquote>
12703 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12705 wgLinkHolderBatchSize=0
12711 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
12712 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
12713 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
12718 Free external link invading image caption
12720 [[Image:Foobar.jpg|thumb|http://x|hello]]
12722 <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>
12727 Bug 15196: localised external link numbers
12731 [http://en.wikipedia.org/]
12733 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
12738 Multibyte character in padleft
12740 {{padleft:-Hello|7|Æ}}
12747 Multibyte character in padright
12749 {{padright:Hello-|7|Æ}}
12756 formatdate parser function
12758 {{#formatdate:2009-03-24}}
12760 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
12765 formatdate parser function, with default format
12767 {{#formatdate:2009-03-24|mdy}}
12769 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
12774 Spacing of numbers in formatted dates
12776 {{#formatdate:January 15}}
12778 <p><span class="mw-formatted-date" title="01-15">January 15</span>
12783 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
12785 language=nl title=[[MediaWiki:Common.css]]
12787 {{#formatdate:2009-03-24|dmy}}
12789 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
12802 Edit comment with link
12806 I like the [[Main Page]] a lot
12808 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
12812 Edit comment with link and link text
12816 I like the [[Main Page|best pages]] a lot
12818 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12822 Edit comment with link and link text with suffix
12826 I like the [[Main Page|best page]]s a lot
12828 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12832 Edit comment with section link (non-local, eg in history list)
12834 comment title=[[Main Page]]
12836 /* External links */ removed bogus entries
12838 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12842 Edit comment with section link and text before it (non-local, eg in history list)
12844 comment title=[[Main Page]]
12846 pre-comment text /* External links */ removed bogus entries
12848 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>
12852 Edit comment with section link (local, eg in diff view)
12854 comment local title=[[Main Page]]
12856 /* External links */ removed bogus entries
12858 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12862 Edit comment with subpage link (bug 14080)
12866 title=[[Subpage test]]
12868 Poked at a [[/subpage]] here...
12870 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12874 Edit comment with subpage link and link text (bug 14080)
12878 title=[[Subpage test]]
12880 Poked at a [[/subpage|neat little page]] here...
12882 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12886 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12889 title=[[Subpage test]]
12891 Poked at a [[/subpage]] here...
12893 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12897 Edit comment with bare anchor link (local, as on diff)
12901 title=[[Main Page]]
12905 <a href="#section">#section</a>
12909 Edit comment with bare anchor link (non-local, as on history)
12912 title=[[Main Page]]
12916 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12920 Anchor starting with underscore
12924 <p><a href="#_ref">One</a>
12929 Id starting with underscore
12931 <div id="_ref"></div>
12933 <div id="_ref"></div>
12938 Space normalisation on autocomment (bug 22784)
12941 title=[[Main Page]]
12943 /* __hello__world__ */
12945 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12949 percent-encoding and + signs in comments (Bug 26410)
12953 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12955 <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>
12959 Bad images - basic functionality
12968 Bad images - bug 16039: text after bad image disappears
12982 Verify that displaytitle works (bug #22501) no displaytitle
12986 wgAllowDisplayTitle=true
12987 wgRestrictDisplayTitle=false
12989 this is not the the title
12992 <p>this is not the the title
12997 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13002 wgAllowDisplayTitle=true
13003 wgRestrictDisplayTitle=false
13005 this is not the the title
13006 {{DISPLAYTITLE:whatever}}
13009 <p>this is not the the title
13014 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13019 wgAllowDisplayTitle=true
13020 wgRestrictDisplayTitle=true
13022 this is not the the title
13023 {{DISPLAYTITLE:whatever}}
13026 <p>this is not the the title
13031 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13036 wgAllowDisplayTitle=true
13037 wgRestrictDisplayTitle=true
13039 this is not the the title
13040 {{DISPLAYTITLE:screen}}
13043 <p>this is not the the title
13048 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13053 wgAllowDisplayTitle=false
13055 this is not the the title
13056 {{DISPLAYTITLE:screen}}
13059 <p>this is not the the title
13060 <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>
13065 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13070 wgAllowDisplayTitle=false
13072 this is not the the title
13075 <p>this is not the the title
13080 preload: check <noinclude> and <includeonly>
13084 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13090 preload: check <onlyinclude>
13094 Goodbye <onlyinclude>Hello world</onlyinclude>
13100 preload: can pass tags through if we want to
13104 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13106 <includeonly>Hello world</includeonly>
13110 preload: check that it doesn't try to do tricks
13114 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13116 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13120 Play a bit with r67090 and bug 3158
13124 <div style="width:50% !important"> </div>
13125 <div style="width:50% !important"> </div>
13126 <div style="width:50% !important"> </div>
13127 <div style="border : solid;"> </div>
13129 <div style="width:50% !important"> </div>
13130 <div style="width:50% !important"> </div>
13131 <div style="width:50% !important"> </div>
13132 <div style="border : solid;"> </div>
13137 HTML5 data attributes
13139 <span data-foo="bar">Baz</span>
13140 <p data-abc-def_hij="">Quuz</p>
13142 <p><span data-foo="bar">Baz</span>
13144 <p data-abc-def_hij="">Quuz</p>
13149 percent-encoding and + signs in internal links (Bug 26410)
13151 [[User:+%]] [[Page+title%]]
13152 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13153 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13154 [[%33%45]] [[%33%45+]]
13156 <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>
13157 <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>
13158 <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>
13159 <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>
13164 Special characters in embedded file links (bug 27679)
13166 [[File:Contains & ampersand.jpg]]
13167 [[File:Does not exist.jpg|Title with & ampersand]]
13169 <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>
13170 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13176 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13178 Text's been normalized?
13180 <p>Text's been normalized?
13185 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13187 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13189 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13194 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13196 [http://www.example.org/ ideograms]
13198 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13203 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13205 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13207 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13231 Bug 31098 Template which includes system messages which includes the template
13235 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13236 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13241 Bug31490 Turkish: ucfirst 'blah'
13252 Bug31490 Turkish: ucfirst 'ix'
13263 Bug31490 Turkish: lcfirst 'BLAH'
13274 Bug31490 Turkish: ucfırst (with a dotless i)
13280 <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>
13285 Bug31490 ucfırst (with a dotless i) with English language
13291 <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>
13296 Bug 26375: TOC with italics
13298 title=[[Main Page]]
13301 == ''Lost'' episodes ==
13303 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13305 <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>
13308 <h2><span class="mw-headline" id="Lost_episodes"><i>Lost</i> episodes</span><span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span></h2>
13313 Bug 26375: TOC with bold
13315 title=[[Main Page]]
13318 == '''should be bold''' then normal text ==
13320 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13322 <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>
13325 <h2><span class="mw-headline" id="should_be_bold_then_normal_text"><b>should be bold</b> then normal text</span><span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span></h2>
13330 Bug 33845: Headings become cursive in TOC when they contain an image
13332 title=[[Main Page]]
13335 == Image [[Image:foobar.jpg]] ==
13337 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13339 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13342 <h2><span class="mw-headline" id="Image">Image <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></span><span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span></h2>
13347 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13349 title=[[Main Page]]
13352 == <blockquote>Quote</blockquote> ==
13354 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13356 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13359 <h2><span class="mw-headline" id="Quote"><blockquote>Quote</blockquote></span><span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span></h2>
13364 Unclosed tags in TOC
13366 title=[[Main Page]]
13370 <small>Hanc marginis exiguitas non caperet.</small>
13373 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13375 <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>
13378 <h2><span class="mw-headline" id="Proof:_2_.3C_3">Proof: 2 < 3</span><span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span></h2>
13379 <p><small>Hanc marginis exiguitas non caperet.</small>
13385 Multiple tags in TOC
13388 == <i>Foo</i> <b>Bar</b> ==
13390 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13392 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13394 <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>
13395 <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>
13398 <h2><span class="mw-headline" id="Foo_Bar"><i>Foo</i> <b>Bar</b></span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a>]</span></h2>
13399 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i> <blockquote>Bar</blockquote></span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span></h2>
13404 Tags with parameters in TOC
13407 == <sup class="in-h2">Hello</sup> ==
13409 == <sup class="a > b">Evilbye</sup> ==
13411 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13413 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13414 <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>
13417 <h2><span class="mw-headline" id="Hello"><sup class="in-h2">Hello</sup></span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span></h2>
13418 <h2><span class="mw-headline" id="b.22.3EEvilbye"><sup> b">Evilbye</sup></span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span></h2>
13423 span tags with directionality in TOC
13426 == <span dir="ltr">C++</span> ==
13428 == <span dir="rtl">זבנג!</span> ==
13430 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13432 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13434 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13436 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13438 <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>
13439 <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>
13440 <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>
13441 <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>
13442 <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>
13445 <h2><span class="mw-headline" id="C.2B.2B"><span dir="ltr">C++</span></span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a>]</span></h2>
13446 <h2><span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"><span dir="rtl">זבנג!</span></span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a>]</span></h2>
13447 <h2><span class="mw-headline" id="The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span></span><span class="mw-editsection">[<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></h2>
13448 <h2><span class="mw-headline" id="All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span></span><span class="mw-editsection">[<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></h2>
13449 <h2><span class="mw-headline" id="Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span></span><span class="mw-editsection">[<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></h2>
13456 == {{int:headline_sample}} ==
13460 Bug 32057: Title needed when expanding <h> nodes.
13462 title=[[Main Page]]
13466 <h2><span class="mw-headline" id="Headline_text">Headline text</span><span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span></h2>
13471 Strip marker in urlencode
13473 {{urlencode:x<nowiki/>y}}
13474 {{urlencode:x<nowiki/>y|wiki}}
13475 {{urlencode:x<nowiki/>y|path}}
13502 Strip marker in formatNum
13504 {{formatnum:1<nowiki/>2}}
13505 {{formatnum:1<nowiki/>2|R}}
13513 Check noCommafy in formatNum
13517 {{formatnum:123456.78}}
13518 {{formatnum:123456.78|NOSEP}}
13526 Strip marker in grammar
13530 {{grammar:elative|foo<nowiki/>bar}}
13537 Strip marker in padleft
13539 {{padleft:|2|x<nowiki/>y}}
13546 Strip marker in padright
13548 {{padright:|2|x<nowiki/>y}}
13555 Strip marker in anchorencode
13557 {{anchorencode:x<nowiki/>y}}
13564 nowiki inside link inside heading (bug 18295)
13566 ==[[foo|x<nowiki>y</nowiki>z]]==
13568 <h2><span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span></h2>
13573 new support for bdi element (bug 31817)
13575 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13577 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13582 Ignore pipe between table row attributes
13586 |- id=foo | style='color: red'
13594 <tr id="foo" style="color: red">
13601 Gallery override link with WikiLink (bug 34852)
13604 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13607 <ul class="gallery">
13608 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13609 <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>
13610 <div class="gallerytext">
13620 Gallery override link with absolute external link (bug 34852)
13623 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13626 <ul class="gallery">
13627 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13628 <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>
13629 <div class="gallerytext">
13639 Gallery override link with malicious javascript (bug 34852)
13642 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13645 <ul class="gallery">
13646 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13647 <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>
13648 <div class="gallerytext">
13658 Gallery with invalid title as link (bug 43964)
13661 File:foobar.jpg|link=<
13664 <ul class="gallery">
13665 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13666 <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>
13667 <div class="gallerytext">
13675 Language parser function
13684 Padleft and padright as substr
13686 {{padleft:|3|abcde}}
13687 {{padright:|3|abcde}}
13695 Bug 34939 - Case insensitive link parsing ([HttP://])
13697 [HttP://MediaWiki.Org/]
13699 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
13704 Bug 34939 - Case insensitive link parsing ([HttP:// title])
13706 [HttP://MediaWiki.Org/ MediaWiki]
13708 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
13713 Bug 34939 - Case insensitive link parsing (HttP://)
13715 HttP://MediaWiki.Org/
13717 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
13722 ### Parsoids-specific tests
13723 ### Parsoid-PHP parser incompatibilities
13726 1. SOL-sensitive wikitext tokens as template-args
13728 parsoid=wt2html,wt2wt
13734 <span about="#mwt1" typeof="mw:Object/Template">
13735 </span><ul about="#mwt1"><li>a</li></ul>
13736 <span about="#mwt2" typeof="mw:Object/Template">
13737 </span><ol about="#mwt2"><li>a</li></ol>
13738 <span about="#mwt3" typeof="mw:Object/Template">
13739 </span><dl about="#mwt3"><dd>a</dd></dl>
13742 #### The following section of tests are primarily to test
13743 #### wikitext escaping capabilities of Parsoid. Given that
13744 #### escaping can be done any number of ways, the wikitext (input)
13745 #### is always adjusted to reflect how Parsoid adds nowiki
13748 #### We are marking several tests as parsoid-only since the
13749 #### HTML in the result section is different from what the
13750 #### PHP parser generates for it.
13753 #### --------------- Headings ---------------
13755 #### 1. Nested inside html <h1>=foo=</h1>
13756 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
13757 #### 3. Nested inside html with wikitext split by html tags
13758 #### 4. No escape needed
13759 #### 5. Empty headings <h1></h1>
13760 #### 6. Heading chars in SOL context
13761 #### ----------------------------------------
13763 Headings: 0. Unnested
13767 <nowiki>=foo=</nowiki>
13769 <nowiki> =foo= </nowiki>
13771 <nowiki>=foo=</nowiki>
13773 =foo''a''<nowiki>=</nowiki>
13775 <p><span typeof="mw:Nowiki">=foo=</span></p>
13777 <p><span typeof="mw:Nowiki"> =foo= </span>
13779 <span typeof="mw:Nowiki">=foo=</span></p>
13781 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
13785 Headings: 1. Nested inside html
13789 =<nowiki>=foo=</nowiki>=
13790 ==<nowiki>=foo=</nowiki>==
13791 ===<nowiki>=foo=</nowiki>===
13792 ====<nowiki>=foo=</nowiki>====
13793 =====<nowiki>=foo=</nowiki>=====
13794 ======<nowiki>=foo=</nowiki>======
13796 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
13797 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
13798 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
13799 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
13800 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
13801 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
13805 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
13810 <nowiki>*bar</nowiki>
13814 <nowiki>=bar=</nowiki>
13822 Headings: 3. Nested inside html with wikitext split by html tags
13826 =='''bold'''<nowiki>foo=</nowiki>=
13828 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
13832 Headings: 4a. No escaping needed (testing just h1 and h2)
13843 =<nowiki>=</nowiki>=
13851 <h1><i>=</i>foo=</h1>
13852 <h1><span typeof="mw:Nowiki">=</span></h1>
13856 Headings: 4b. No escaping needed (inside p-tags)
13871 Headings: 5. Empty headings
13879 =====<nowiki/>=====
13880 ======<nowiki/>======
13891 Headings: 6. Heading chars in SOL context
13895 <!--cmt--><nowiki>=h1=</nowiki>
13896 <!--cmt--><nowiki> =h1= </nowiki>
13898 <p><!--cmt--><span typeof="mw:Nowiki">=h1=</span>
13899 <!--cmt--><span typeof="mw:Nowiki"> =h1= </span></p>
13902 #### --------------- Lists ---------------
13903 #### 0. Outside nests (*foo, etc.)
13904 #### 1. Nested inside html <ul><li>*foo</li></ul>
13905 #### 2. Inside definition lists
13906 #### 3. Only bullets at start should be escaped
13907 #### 4. No escapes needed
13908 #### 5. No unnecessary escapes
13909 #### 6. Escape bullets in SOL position
13910 #### 7. Escape bullets in a multi-line context
13911 #### ----------------------------------------
13914 Lists: 0. Outside nests
13916 <nowiki>*foo</nowiki>
13918 <nowiki>#foo</nowiki>
13926 Lists: 1. Nested inside html
13928 *<nowiki>*foo</nowiki>
13930 *<nowiki>#foo</nowiki>
13932 *<nowiki>:foo</nowiki>
13934 *<nowiki>;foo</nowiki>
13936 #<nowiki>*foo</nowiki>
13938 #<nowiki>#foo</nowiki>
13940 #<nowiki>:foo</nowiki>
13942 #<nowiki>;foo</nowiki>
13964 Lists: 2. Inside definition lists
13966 ;<nowiki>;foo</nowiki>
13968 ;<nowiki>:foo</nowiki>
13970 ;<nowiki>:foo</nowiki>
13973 :<nowiki>:foo</nowiki>
13988 Lists: 3. Only bullets at start of text should be escaped
13990 *<nowiki>*foo*bar</nowiki>
13992 *<nowiki>*foo</nowiki>''it''*bar
13996 <ul><li>*foo<i>it</i>*bar
14002 Lists: 4. No escapes needed
14014 <ul><li><i>foo</i>*bar
14016 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
14021 Lists: 5. No unnecessary escapes
14023 * bar <span><nowiki>[[foo]]</nowiki></span>
14025 *=bar <span><nowiki>[[foo]]</nowiki></span>
14027 *[[bar <span><nowiki>[[foo]]</nowiki></span>
14029 *]]bar <span><nowiki>[[foo]]</nowiki></span>
14031 *=bar <span>foo]]</span>=
14035 <ul><li> bar <span>[[foo]]</span>
14037 <ul><li>=bar <span>[[foo]]</span>
14039 <ul><li>[[bar <span>[[foo]]</span>
14041 <ul><li>]]bar <span>[[foo]]</span>
14043 <ul><li>=bar <span>foo]]</span>=
14045 <ul><li> <s></s>: a
14051 Lists: 6. Escape bullets in SOL position
14055 <!--cmt--><nowiki>*foo</nowiki>
14057 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
14061 Lists: 7. Escape bullets in a multi-line context
14071 #### --------------- HRs ---------------
14072 #### 1. Single line
14073 #### -----------------------------------
14076 HRs: 1. Single line
14080 ----<nowiki>----</nowiki>
14084 <hr><span typeof="mw:Nowiki">----</span>
14089 #### --------------- Tables ---------------
14090 #### 1a. Simple example
14091 #### 1b. No escaping needed (!foo)
14092 #### 1c. No escaping needed (|foo)
14093 #### 1d. No escaping needed (|}foo)
14095 #### 2a. Nested in td (<td>foo|bar</td>)
14096 #### 2b. Nested in td (<td>foo||bar</td>)
14097 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
14099 #### 3a. Nested in th (<th>foo!bar</th>)
14100 #### 3b. Nested in th (<th>foo!!bar</th>)
14101 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
14105 #### 4c. No escaping needed
14106 #### --------------------------------------
14109 Tables: 1a. Simple example
14120 Tables: 1b. No escaping needed
14129 Tables: 1c. No escaping needed
14138 Tables: 1d. No escaping needed
14147 Tables: 2a. Nested in td
14152 |<nowiki>foo|bar</nowiki>
14156 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
14160 Tables: 2b. Nested in td
14165 |<nowiki>foo||bar</nowiki>
14166 |''it''<nowiki>foo||bar</nowiki>
14170 <td><span typeof="mw:Nowiki">foo||bar</span></td>
14171 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
14175 Tables: 2c. Nested in td -- no escaping needed
14183 <table><tbody><tr><td>foo!!bar
14184 </td></tr></tbody></table>
14189 Tables: 3a. Nested in th
14197 <table><tbody><tr><th>foo!bar
14198 </th></tr></tbody></table>
14203 Tables: 3b. Nested in th
14208 !<nowiki>foo!!bar</nowiki>
14212 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
14217 Tables: 3c. Nested in th -- no escaping needed
14222 !<nowiki>foo||bar</nowiki>
14226 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
14230 Tables: 4a. Escape -
14238 |<nowiki>-bar</nowiki>
14242 <tr><th>-bar</th></tr>
14244 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
14248 Tables: 4b. Escape +
14256 |<nowiki>+bar</nowiki>
14260 <tr><th>+bar</th></tr>
14262 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
14266 Tables: 4c. No escaping needed
14280 <tr><td>foo-bar</td><td>foo+bar</td></tr>
14281 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
14285 ### SSS FIXME: Disabled right now because accurate html2wt
14286 ### on this snippet requires data-parsoid flags that we've
14287 ### stripped out of these tests. We should scheme how we
14288 ### we want to handle these kind of tests that require
14289 ### data-parsoid flags for accurate html2wt serialization
14292 Tables: 4d. No escaping needed
14310 #### --------------- Links ---------------
14311 #### 1. Quote marks in link text
14312 #### 2. Wikilinks: Escapes needed
14313 #### 3. Wikilinks: No escapes needed
14314 #### 4. Extlinks: Escapes needed
14315 #### 5. Extlinks: No escapes needed
14316 #### --------------------------------------
14318 Links 1. Quote marks in link text
14322 [[Foo|<nowiki>Foo''boo''</nowiki>]]
14324 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
14328 Links 2. WikiLinks: Escapes needed
14332 [[Foo|<nowiki>[Foobar]</nowiki>]]
14333 [[Foo|<nowiki>Foobar]</nowiki>]]
14334 [[Foo|x [Foobar] x]]
14335 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
14336 [[Foo|<nowiki>[[Bar]]</nowiki>]]
14337 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
14338 [[Foo|<nowiki>|Bar</nowiki>]]
14339 [[Foo|<nowiki>]]bar</nowiki>]]
14340 [[Foo|<nowiki>[[bar</nowiki>]]
14341 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
14343 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
14344 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
14345 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
14346 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
14347 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
14348 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
14349 <a href="Foo" rel="mw:WikiLink">|Bar</a>
14350 <a href="Foo" rel="mw:WikiLink">]]bar</a>
14351 <a href="Foo" rel="mw:WikiLink">[[bar</a>
14352 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
14356 Links 3. WikiLinks: No escapes needed
14363 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
14364 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
14368 Links 4. ExtLinks: Escapes needed
14372 [http://google.com <nowiki>[google]</nowiki>]
14373 [http://google.com <nowiki>google]</nowiki>]
14375 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
14376 <a href="http://google.com" rel="mw:ExtLink">google]</a>
14380 Links 5. ExtLinks: No escapes needed
14384 [http://google.com [google]
14386 <a href="http://google.com" rel="mw:ExtLink">[google</a>
14389 #### --------------- Quotes ---------------
14390 #### 1. Quotes inside <b> and <i>
14391 #### 2. Link fragments separated by <i> and <b> tags
14392 #### 3. Link fragments inside <i> and <b>
14393 #### --------------------------------------
14395 1. Quotes inside <b> and <i>
14397 ''<nowiki>'foo'</nowiki>''
14398 ''<nowiki>''foo''</nowiki>''
14399 ''<nowiki>'''foo'''</nowiki>''
14400 '''<nowiki>'foo'</nowiki>'''
14401 '''<nowiki>''foo''</nowiki>'''
14402 '''<nowiki>'''foo'''</nowiki>'''
14403 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
14411 <b>foo'<i>bar'</i>baz</b>
14416 2. Link fragments separated by <i> and <b> tags
14418 [[''foo''<nowiki>hello]]</nowiki>
14420 [['''foo'''<nowiki>hello]]</nowiki>
14422 <p>[[<i>foo</i>hello]]
14423 </p><p>[[<b>foo</b>hello]]
14428 2. Link fragments inside <i> and <b>
14429 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
14430 this is one of the shortcomings of this format)
14432 ''[[foo''<nowiki>]]</nowiki>
14434 '''[[foo'''<nowiki>]]</nowiki>
14437 </p><p><b>[[foo</b>]]
14441 #### --------------- Paragraphs ---------------
14442 #### 1. No unnecessary escapes
14443 #### --------------------------------------
14446 1. No unnecessary escapes
14448 bar <span><nowiki>[[foo]]</nowiki></span>
14450 =bar <span><nowiki>[[foo]]</nowiki></span>
14452 [[bar <span><nowiki>[[foo]]</nowiki></span>
14454 ]]bar <span><nowiki>[[foo]]</nowiki></span>
14456 =bar <span>foo]]</span><nowiki>=</nowiki>
14458 <p>bar <span>[[foo]]</span>
14459 </p><p>=bar <span>[[foo]]</span>
14460 </p><p>[[bar <span>[[foo]]</span>
14461 </p><p>]]bar <span>[[foo]]</span>
14462 </p><p>=bar <span>foo]]</span>=
14466 #### --------------- PRE ------------------
14467 #### 1. Leading space in SOL context should be escaped
14468 #### --------------------------------------
14470 1. Leading space in SOL context should be escaped
14474 <nowiki> foo</nowiki>
14475 <!--cmt--><nowiki> foo</nowiki>
14482 #### --------------- HTML tags ---------------
14485 #### 3. multi-line html tag
14486 #### --------------------------------------
14492 <a href="http://google.com">google</a>
14494 <a href="http://google.com">google</a>
14500 <nowiki><div>foo</div>
14501 <div style="color:red">foo</div></nowiki>
14503 <p><div>foo</div>
14504 <div style="color:red">foo</div>
14509 3. multi-line html tag
14521 #### --------------- Others ---------------
14525 <nowiki>foo</nowiki>
14527 <p><nowiki>foo</nowiki>
14532 Tag-like HTML structures are passed through as text
14554 </p><p>1<d e>f
14559 # This fails in the PHP parser (see bug 40670,
14560 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
14562 Tag names followed by punctuation should not be recognized as tags
14568 <p><s.ome> text
14573 HTML tag with necessary entities in attributes
14575 <span title="&amp;">foo</span>
14577 <p><span title="&amp;">foo</span>
14582 HTML tag with 'unnecessary' entity encoding in attributes
14584 <span title="&">foo</span>
14586 <p><span title="&">foo</span>
14591 HTML tag with broken attribute value quoting
14593 <span title="Hello world>Foo</span>
14595 <p><span>Foo</span>
14600 Parsoid-only: HTML tag with broken attribute value quoting
14604 <span title="Hello world>Foo</span>
14606 <p><span title="Hello world">Foo</span>
14611 Table with broken attribute value quoting
14614 | title="Hello world|Foo
14625 Table with broken attribute value quoting on consecutive lines
14628 | title="Hello world|Foo
14629 | style="color:red|Bar
14642 Parsoid-only: Table with broken attribute value quoting on consecutive lines
14647 | title="Hello world|Foo
14648 | style="color:red|Bar
14653 <td title="Hello world">Foo
14654 </td><td style="color: red">Bar
14655 </td></tr></tbody></table>
14660 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14670 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14680 Accept empty td cell attribute
14683 | align="center" | foo || |
14688 <td align="center"> foo </td>
14695 Non-empty attributes in th-cells
14698 ! Foo !! style="color: red" | Bar
14704 <th style="color: red"> Bar
14710 Accept empty attributes in th-cells
14725 Empty table rows go away
14746 ### Parsoid-centric tests for testing RTing of inter-element separators
14747 ### Edge cases not tested by existing parser tests and specific to
14748 ### Parsoid-specific serialization strategies.
14752 RT-ed inter-element separators should be valid separators
14765 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
14766 (Parsoid-only since PHP parser relies on Tidy for correct output)
14782 Empty TD followed by TD with tpl-generated attribute
14787 |{{echo|style='color:red'}}|foo
14801 Indented table with an empty td
14820 Empty TR followed by a template-generated TR
14821 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
14823 parsoid=wt2html,wt2wt
14827 {{echo|<tr><td>foo</td></tr>}}
14833 <tr typeof="mw:Object/Template">
14834 <td>foo</td></tr></tbody></table>
14837 ## PHP and parsoid output differ for this, and since this is primarily
14838 ## for testing Parsoid's serializer, marking this Parsoid only
14840 Empty TR followed by mixed-ws-comment line should RT correctly
14854 <td> <!--c--></td></tr>
14856 <td><!--c--> <!--d--></td></tr>
14862 Multi-line image caption generated by templates with/without trailing newlines
14866 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
14867 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
14869 <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>
14870 <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>
14874 ## PHP emits broken html for this, and since this is primarily
14875 ## a Parsoid serializer test, marking this Parsoid only
14877 Improperly nested inline or quotes tags with whitespace in between
14881 <span> <s>x</span> </s>
14884 <p><span> <s>x</s></span><s> </s>
14885 <b> <i>x</i></b><i> </i>
14894 Try for 100% code coverage