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 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 Template:echo_with_span
81 Template:echo_with_div
105 This is a simple paragraph.
107 <p>This is a simple paragraph.
112 Paragraphs with extra newline spacing
150 * plain''italic''plain
151 * plain''italic''plain''italic''plain
152 * plain'''bold'''plain
153 * plain'''bold'''plain'''bold'''plain
154 * plain''italic''plain'''bold'''plain
155 * plain'''bold'''plain''italic''plain
156 * plain''italic'''bold-italic'''italic''plain
157 * plain'''bold''bold-italic''bold'''plain
158 * plain'''''bold-italic'''italic''plain
159 * plain'''''bold-italic''bold'''plain
160 * plain''italic'''bold-italic'''''plain
161 * plain'''bold''bold-italic'''''plain
162 * plain l'''italic''plain
163 * plain l''''bold''' plain
166 </li><li> plain<i>italic</i>plain
167 </li><li> plain<i>italic</i>plain<i>italic</i>plain
168 </li><li> plain<b>bold</b>plain
169 </li><li> plain<b>bold</b>plain<b>bold</b>plain
170 </li><li> plain<i>italic</i>plain<b>bold</b>plain
171 </li><li> plain<b>bold</b>plain<i>italic</i>plain
172 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
173 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
174 </li><li> plain<i><b>bold-italic</b>italic</i>plain
175 </li><li> plain<b><i>bold-italic</i>bold</b>plain
176 </li><li> plain<i>italic<b>bold-italic</b></i>plain
177 </li><li> plain<b>bold<i>bold-italic</i></b>plain
178 </li><li> plain l'<i>italic</i>plain
179 </li><li> plain l'<b>bold</b> plain
185 ### 2-quote opening sequence tests
188 Italics and bold: 2-quote opening sequence: (2,2)
198 Italics and bold: 2-quote opening sequence: (2,3)
208 Italics and bold: 2-quote opening sequence: (2,4)
218 Italics and bold: 2-quote opening sequence: (2,5)
228 ### 3-quote opening sequence tests
232 Italics and bold: 3-quote opening sequence: (3,2)
242 Italics and bold: 3-quote opening sequence: (3,3)
252 Italics and bold: 3-quote opening sequence: (3,4)
262 Italics and bold: 3-quote opening sequence: (3,5)
272 ### 4-quote opening sequence tests
276 Italics and bold: 4-quote opening sequence: (4,2)
286 Italics and bold: 4-quote opening sequence: (4,3)
296 Italics and bold: 4-quote opening sequence: (4,4)
306 Italics and bold: 4-quote opening sequence: (4,5)
316 ### 5-quote opening sequence tests
320 Italics and bold: 5-quote opening sequence: (5,2)
330 Italics and bold: 5-quote opening sequence: (5,3)
340 Italics and bold: 5-quote opening sequence: (5,4)
344 <p><i><b>foo'</b></i>
350 Italics and bold: 5-quote opening sequence: (5,5)
359 ### multiple quote sequences in a line
362 Italics and bold: multiple quote sequences: (2,4,2)
366 <p><i>foo'<b>bar</b></i>
372 Italics and bold: multiple quote sequences: (2,4,3)
376 <p><i>foo'<b>bar</b></i>
382 Italics and bold: multiple quote sequences: (2,4,4)
386 <p><i>foo'<b>bar'</b></i>
392 Italics and bold: multiple quote sequences: (3,4,2)
402 Italics and bold: multiple quote sequences: (3,4,3)
411 ### other quote tests
414 Italics and bold: other quote tests: (2,3,5)
416 ''this is about '''foo's family'''''
418 <p><i>this is about <b>foo's family</b></i>
424 Italics and bold: other quote tests: (2,(3,3),2)
426 ''this is about '''foo's''' family''
428 <p><i>this is about <b>foo's</b> family</i>
434 Italics and bold: other quote tests: (3,2,3,2)
436 '''this is about ''foo'''s family''
438 <p><b>this is about <i>foo</i></b><i>s family</i>
444 Italics and bold: other quote tests: (3,2,3,3)
446 '''this is about ''foo'''s family'''
448 <p>'<i>this is about </i>foo<b>s family</b>
455 Italics and bold: other quote tests: (3,(2,2),3)
457 '''this is about ''foo's'' family'''
459 <p><b>this is about <i>foo's</i> family</b>
464 ### <nowiki> test cases
468 <nowiki> unordered list
470 <nowiki>* This is not an unordered list item.</nowiki>
472 <p>* This is not an unordered list item.
479 <nowiki>Lorem ipsum dolor
500 :There is not nowiki.
501 :There is <nowiki>nowiki</nowiki>.
503 #There is not nowiki.
504 #There is <nowiki>nowiki</nowiki>.
506 *There is not nowiki.
507 *There is <nowiki>nowiki</nowiki>.
509 <dl><dd>There is not nowiki.
510 </dd><dd>There is nowiki.
512 <ol><li>There is not nowiki.
513 </li><li>There is nowiki.
515 <ul><li>There is not nowiki.
516 </li><li>There is nowiki.
528 <!-- comment 1 --> asdf
530 <!-- comment 1 --> asdf
533 <!-- comment 1 --> asdf
534 <!-- comment 2 -->xyz
536 <!-- comment 1 --> asdf
537 <!-- comment 2 --> xyz
593 asdf<!-- comment 1 -->jkl
603 <!-- foo --> b <!-- bar -->
617 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
623 Comment semantics and delimiters
625 <!-- --><!----><!-----><!------>
631 Comment semantics and delimiters, redux
633 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
634 -- foo -- funky huh? ... -->
640 Comment semantics and delimiters: directors cut
642 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
643 everything starting with < followed by !-- until the first -- and > we see,
644 that wouldn't be valid XML however, since in XML -- has to terminate a comment
652 Comment semantics: nesting
654 <!--<!-- no, we're not going to do anything fancy here -->-->
661 Comment semantics: unclosed comment at end
663 <!--This comment will run out to the end of the document
669 Comment in template title
678 Comment on its own line post-expand
690 Comment on its own line post-expand with non-significant whitespace
702 ### paragraph wraping tests
716 Block tag on one line
728 Block tag on both lines
740 Multiple lines without block tags
758 ### Preformatted text
767 And a [[Main Page|link]]
773 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
778 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
795 Regression with preformatted in <center>
808 # Expected output in the following test is not really expected (there should be
809 # <pre> in the output) -- it's only testing for well-formedness.
811 Bug 6200: Preformatted in <blockquote>
824 <pre> with attributes (bug 3202)
826 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
828 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
833 <pre> with width attribute (bug 3202)
835 <pre width="8">Narrow screen goodies</pre>
837 <pre width="8">Narrow screen goodies</pre>
842 <pre> with forbidden attribute (bug 3202)
844 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
846 <pre width="8">Narrow screen goodies</pre>
851 <pre> with forbidden attribute values (bug 3202)
853 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
855 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
860 <nowiki> inside <pre> (bug 13238)
868 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
876 <pre><nowiki>Foo</nowiki></pre>
881 <nowiki> and <pre> preference (first one wins)
912 Templates: Pre: 1a. Templates that break a line should suppress <pre>
920 Templates: Pre: 1b. Templates that break a line should suppress <pre>
930 Templates: Pre: 1c: Wrapping should be based on expanded content
942 Templates: Pre: 1d: Wrapping should be based on expanded content
963 Templates: Pre: 1e. Wrapping should be based on expanded content
970 {{echo|<!--cmt--> foo}}
972 <!--cmt-->{{echo| foo}}
974 {{echo|{{echo| }}bar}}
990 ### Parsoid-centric tests for testing RT edge cases
991 ### around comments and white-space inside pre blocks
1008 1b. Pre and Comments
1021 1c. Pre and Comments
1034 ### Definition lists
1041 <dl><dt> name </dt><dd> Definition
1047 Definition list for indentation only
1051 <dl><dd> Indented text
1057 Definition list with no space
1061 <dl><dt>name</dt><dd>Definition
1067 Definition list with URL link
1069 ; http://example.com/ : definition
1071 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1077 Definition list with bracketed URL link
1079 ;[http://www.example.com/ Example]:Something about it
1081 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1087 Definition list with wikilink containing colon
1089 ; [[Help:FAQ]]: The least-read page on Wikipedia
1091 <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
1096 # At Brion's and JeLuF's insistence... :)
1098 Definition list with news link containing colon
1100 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1102 <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!
1108 Malformed definition list with colon
1110 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1112 <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
1118 Definition lists: colon in external link text
1120 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1122 <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
1128 Definition lists: colon in HTML attribute
1130 ;<b style="display: inline">bold</b>
1132 <dl><dt><b style="display: inline">bold</b>
1139 Definition lists: self-closed tag
1141 ;one<br/>two : two-line fun
1143 <dl><dt>one<br />two </dt><dd> two-line fun
1149 Bug 11748: Literal closing tags
1155 <dd>test test test test test</dd>
1157 <dd>test test test test test</dd>
1162 <dd>test test test test test</dd>
1164 <dd>test test test test test</dd>
1169 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1172 ; term : description
1178 <dl><dt> term </dt><dd> description
1188 Definition list with empty definition and following paragraph
1193 <dl><dt> term</dt><dd>
1200 Definition Lists: No nesting: Multiple dd's
1214 Definition Lists: Indentation: Regular
1230 Definition Lists: Indentation: Missing 1st level
1244 Definition Lists: Indentation: Multi-level indent
1248 <dl><dd><dl><dd><dl><dd>i3
1255 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1256 ## as an empty dt item. It also ignores all but the last ";" when followed
1257 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1258 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1261 ## Ex: ";;t2 ::d2" is transformed into:
1273 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1274 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1285 ## All Parsoid only definition list tests have this difference.
1287 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1288 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1291 Definition Lists: Nesting: Multi-level (Parsoid only)
1321 Definition Lists: Nesting: Test 2 (Parsoid only)
1341 Definition Lists: Nesting: Test 3 (Parsoid only)
1369 Definition Lists: Nesting: Test 4
1374 <dl><dd><dl><dd><dl><dt>t3
1384 Definition Lists: Mixed Lists: Test 1
1390 <dl><dd><dl><dt><ul><li> foo
1402 Definition Lists: Mixed Lists: Test 2
1416 Definition Lists: Mixed Lists: Test 3
1421 <ul><li><dl><dd><dl><dd><dl><dd> d1
1432 Definition Lists: Mixed Lists: Test 4
1437 <ul><li><dl><dt>d1 </dt><dd>d2
1438 </dd><dt>d3 </dt><dd>d4
1446 Definition Lists: Mixed Lists: Test 5
1461 Definition Lists: Mixed Lists: Test 6
1466 <ol><li><ul><li><dl><dd>d1
1478 Definition Lists: Mixed Lists: Test 7
1492 Definition Lists: Mixed Lists: Test 8
1508 Definition Lists: Mixed Lists: Test 9
1512 <ul><li><dl><dt>foo </dt><dd>bar
1520 Definition Lists: Mixed Lists: Test 10
1524 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1533 Definition Lists: Mixed Lists: Test 11
1538 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1543 <dl><dt>boo </dt><dd>baz
1554 Definition Lists: Weird Ones: Test 1
1556 *#;*::;; foo : bar (who uses this?)
1558 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1574 External links: non-bracketed
1576 Non-bracketed: http://example.com
1578 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1583 External links: numbered
1585 Numbered: [http://example.com]
1586 Numbered: [http://example.net]
1587 Numbered: [http://example.com]
1589 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1590 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1591 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1596 External links: specified text
1598 Specified text: [http://example.com link]
1600 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1605 External links: trail
1607 Linktrails should not work for external links: [http://example.com link]s
1609 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1614 External links: dollar sign in URL
1616 http://example.com/1$2345
1618 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1623 External links: dollar sign in URL (named)
1625 [http://example.com/1$2345]
1627 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1632 External links: open square bracket forbidden in URL (bug 4377)
1634 http://example.com/1[2345
1636 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1641 External links: open square bracket forbidden in URL (named) (bug 4377)
1643 [http://example.com/1[2345]
1645 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1650 External links: nowiki in URL link text (bug 6230)
1652 [http://example.com/ <nowiki>''example site''</nowiki>]
1654 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1659 External links: newline forbidden in text (bug 6230 regression check)
1661 [http://example.com/ first
1664 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1670 External links: Pipe char between url and text
1672 [http://example.com | link]
1674 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1679 External links: protocol-relative URL in brackets
1681 [//example.com/ Test]
1683 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1688 External links: protocol-relative URL in brackets without text
1692 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1697 External links: protocol-relative URL in free text is left alone
1701 <p>//example.com/Foo
1706 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1708 foo//example.com/Foo
1710 <p>foo//example.com/Foo
1717 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1719 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1724 External image from https
1726 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1728 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1733 Link to non-http image, no img tag
1735 Link to non-http image, no img tag: ftp://example.com/test.jpg
1737 <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>
1742 External links: terminating separator
1744 Terminating separator: http://example.com/thing,
1746 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1751 External links: intervening separator
1753 Intervening separator: http://example.com/1,2,3
1755 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1760 External links: old bug with URL in query
1762 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1764 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1769 External links: old URL-in-URL bug, mixed protocols
1771 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1773 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1778 External links: URL in text
1780 URL in text: [http://example.com http://example.com]
1782 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1787 External links: Clickable images
1789 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1791 <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>
1796 External links: raw ampersand
1798 Old & use: http://x&y
1800 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1805 External links: encoded ampersand
1807 Old & use: http://x&y
1809 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1814 External links: encoded equals (bug 6102)
1816 http://example.com/?foo=bar
1818 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1823 External links: [raw ampersand]
1825 Old & use: [http://x&y]
1827 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1832 External links: [encoded ampersand]
1834 Old & use: [http://x&y]
1836 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1841 External links: [encoded equals] (bug 6102)
1843 [http://example.com/?foo=bar]
1845 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1850 External links: [IDN ignored character reference in hostname; strip it right off]
1852 [http://e‌xample.com/]
1854 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1858 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1859 # Where an external link could easily circumvent the sanitization of the text of
1860 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1861 # test demands a higher standard. That's a bit strange.
1865 # http://example.com -> [http://example.com|http://example.com]
1866 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1868 # The first example is sanitized, but the second is not. Any security benefits
1869 # from this production are trivial to circumvent. Either remove this test and
1870 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1871 # the test accordingly.
1876 External links: IDN ignored character reference in hostname; strip it right off
1878 http://e‌xample.com/
1880 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1885 External links: www.jpeg.org (bug 554)
1889 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1894 External links: URL within URL (original bug 2)
1896 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1898 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1903 BUG 361: URL inside bracketed URL
1905 [http://www.example.com/foo http://www.example.com/bar]
1907 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1912 BUG 361: URL within URL, not bracketed
1914 http://www.example.com/foo?=http://www.example.com/bar
1916 <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>
1921 BUG 289: ">"-token in URL-tail
1923 http://www.example.com/<hello>
1925 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1930 BUG 289: literal ">"-token in URL-tail
1932 http://www.example.com/<b>html</b>
1934 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1939 BUG 289: ">"-token in bracketed URL
1941 [http://www.example.com/<hello> stuff]
1943 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1948 BUG 289: literal ">"-token in bracketed URL
1950 [http://www.example.com/<b>html</b> stuff]
1952 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1957 BUG 289: literal double quote at end of URL
1959 http://www.example.com/"hello"
1961 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1966 BUG 289: literal double quote in bracketed URL
1968 [http://www.example.com/"hello" stuff]
1970 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1975 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1977 [http://www.example.com test]
1979 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1984 External links: wiki links within external link (Bug 3695)
1986 [http://example.com [[wikilink]] embedded in ext link]
1988 <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>
1993 BUG 787: Links with one slash after the url protocol are invalid
1997 [http:/example.com title]
1999 <p>http:/example.com
2000 </p><p>[http:/example.com title]
2005 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2007 ''[http://example.com text'']
2008 [http://example.com '''text]'''
2009 ''Something [http://example.com in italic'']
2010 ''Something [http://example.com mixed''''', even bold]'''
2011 '''''Now [http://example.com both''''']
2013 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2014 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2015 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2016 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2017 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2023 Bug 4781: %26 in URL
2025 http://www.example.com/?title=AT%26T
2027 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2031 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2032 # % is actually legal in HTML5. Any change in output would need testing though.
2034 Bug 4781, 5267: %25 in URL
2036 http://www.example.com/?title=100%25_Bran
2038 <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>
2043 Bug 4781, 5267: %28, %29 in URL
2045 http://www.example.com/?title=Ben-Hur_%281959_film%29
2047 <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>
2053 Bug 4781: %26 in autonumber URL
2055 [http://www.example.com/?title=AT%26T]
2057 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2062 Bug 4781, 5267: %26 in autonumber URL
2064 [http://www.example.com/?title=100%25_Bran]
2066 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2071 Bug 4781, 5267: %28, %29 in autonumber URL
2073 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2075 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2081 Bug 4781: %26 in bracketed URL
2083 [http://www.example.com/?title=AT%26T link]
2085 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2090 Bug 4781, 5267: %26 in bracketed URL
2092 [http://www.example.com/?title=100%25_Bran link]
2094 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2099 Bug 4781, 5267: %28, %29 in bracketed URL
2101 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2103 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2108 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2110 Some [http://example.com/ pretty ''italics'' and stuff]!
2112 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2117 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2119 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2121 <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>
2126 External link containing double-single-quotes with no space separating the url from text in italics
2128 [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]].]
2130 <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>
2135 URL-encoding in URL functions (single parameter)
2137 {{localurl:Some page|amp=&}}
2139 <p>/index.php?title=Some_page&amp=&
2144 URL-encoding in URL functions (multiple parameters)
2146 {{localurl:Some page|q=?&=&}}
2148 <p>/index.php?title=Some_page&q=?&amp=&
2155 http://example.com/index.php?foozoid%5B%5D=bar
2157 http://example.com/index.php?foozoid[]=bar
2159 <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>
2160 </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>
2165 IPv6 urls (bug 21261)
2169 http://[2404:130:0:1000::187:2]/index.php
2171 <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>
2182 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2184 Normal text. '''''Bold italic text.''''' Normal text.
2186 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2187 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2193 Unclosed and unmatched quotes
2195 '''''Bold italic text '''with bold deactivated''' in between.'''''
2197 '''''Bold italic text ''with italic deactivated'' in between.'''''
2201 ..spanning two paragraphs (should not work).'''
2203 '''Bold tag left open
2205 ''Italic tag left open
2209 <!-- Unmatching number of opening, closing tags: -->
2210 '''This year''''s election ''should'' beat '''last year''''s.
2212 ''Tom'''s car is bigger than ''Susan'''s.
2214 Plain ''italic'''s plain
2216 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2217 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2218 </p><p><b>Bold text..</b>
2219 </p><p>..spanning two paragraphs (should not work).
2220 </p><p><b>Bold tag left open</b>
2221 </p><p><i>Italic tag left open</i>
2223 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2224 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2225 </p><p>Plain <i>italic'</i>s plain
2232 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2235 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2236 # is the bare minimun required by the spec, see:
2237 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2239 A table with no data.
2245 # A table with nothing but a caption is invalid XHTML, we might want to render
2246 # this as <p>caption</p>
2248 A table with nothing but a caption
2256 </caption><tr><td></td></tr></table>
2282 Simple table but with multiple dashes for row wikitext
2300 Multiplication table
2302 {| border="1" cellpadding="2"
2303 |+Multiplication table
2305 ! × !! 1 !! 2 !! 3
2323 <table border="1" cellpadding="2">
2324 <caption>Multiplication table
2375 |rowspan=2| Cell 2, row 1 (and 2)
2386 <td rowspan="2"> Cell 2, row 1 (and 2)
2404 {| bgcolor=#ABCDEF border=2
2409 |the original table again
2417 <table bgcolor="#ABCDEF" border="2">
2425 <td>the original table again
2431 Invalid attributes in table cell (bug 1830)
2446 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2449 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2453 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2454 <td>]" onmouseover="alert(document.cookie)">test
2463 Indented table markup mixed with indented pre content (proposed in bug 6200)
2468 Text that should be rendered preformatted
2476 <pre>Text that should be rendered preformatted
2489 Plain link, capitalized
2493 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2498 Plain link, uncapitalized
2502 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2509 [[Main Page|The Main Page]]
2511 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2520 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2525 Broken link with fragment
2527 [[Zigzagzogzagzig#zug]]
2529 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2534 Special page link with fragment
2536 [[Special:Version#anchor]]
2538 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2543 Nonexistent special page link with fragment
2545 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2547 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2554 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2556 <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>
2563 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2565 <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>!!!
2570 Link with 3 brackets
2579 Piped link with 3 brackets
2581 [[[main page|the main page]]]
2583 <p>[[[main page|the main page]]]
2588 Link with multiple pipes
2590 [[Main Page|The|Main|Page]]
2592 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2599 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2601 <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>
2606 Piped link to namespace
2608 [[Meta:Disclaimers|The disclaimers]]
2610 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2617 [[Usually caused by a typo (oops}]]
2619 <p>[[Usually caused by a typo (oops}]]
2624 Link containing % (not as a hex sequence)
2628 <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>
2633 Link containing % as a single hex sequence interpreted to char
2637 <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>
2642 Link containing % as a double hex sequence interpreted to hex sequence
2646 <p>[[7%2525 Solution]]
2651 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2652 Example for such a section: == < ==
2654 [[%23%3c]][[%23%3e]]
2656 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2661 Link containing "<#" and ">#" as a hex sequences
2663 [[%3c%23]][[%3e%23]]
2665 <p>[[%3c%23]][[%3e%23]]
2670 Link containing double-single-quotes '' (bug 4598)
2672 [[Lista d''e paise d''o munno]]
2674 <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>
2679 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2681 Some [[Link|pretty ''italics'' and stuff]]!
2683 <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>!
2688 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2690 ''Some [[Link|pretty ''italics'' and stuff]]!
2692 <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>
2697 Link with double quotes in title part (literal) and alternate part (interpreted)
2699 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2703 [[''Pentecoste''|Pentecoste]]
2705 [[''Pentecoste''|''Pentecoste'']]
2707 <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>
2708 </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>
2709 </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>
2710 </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>
2715 Broken image links with HTML captions (bug 39700)
2717 [[File:Nonexistent|<script></script>]]
2718 [[File:Nonexistent|100px|<script></script>]]
2719 [[File:Nonexistent|<]]
2720 [[File:Nonexistent|a<i>b</i>c]]
2722 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2723 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2724 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2725 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2732 [[http://www.example.com]]
2734 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2739 Plain link to URL with link text
2741 [[http://www.example.com Link text]]
2743 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2748 Plain link to protocol-relative URL
2750 [[//www.example.com]]
2752 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2757 Plain link to protocol-relative URL with link text
2759 [[//www.example.com Link text]]
2761 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2766 # I'm fairly sure the expected result here is wrong.
2767 # We want these to be URL links, not pseudo-pages with URLs for titles....
2768 # However the current output is also pretty screwy.
2771 # I'm changing it to match the current output--it arguably makes more
2772 # sense in the light of the test above. Old expected result was:
2773 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2775 # But I think this test is bordering on "garbage in, garbage out" anyway.
2780 Piped link to URL: [[http://www.example.com|an example URL]]
2782 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2787 BUG 2: [[page|http://url/]] should link to page, not http://url/
2789 [[Main Page|http://url/]]
2791 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2796 BUG 337: Escaped self-links should be bold
2800 [[Bug462]] [[Bug462]]
2802 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2807 Self-link to section should not be bold
2811 [[Main Page#section]]
2813 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2824 Self-link to numeric title
2830 <p><strong class="selflink">0</strong>
2835 Link to numeric-equivalent title
2841 <p><a href="/wiki/00" title="00">00</a>
2846 <nowiki> inside a link
2848 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2850 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2855 Non-breaking spaces in title
2857 [[ Main Page ]]
2859 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2864 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2870 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2875 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2881 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2886 Internal link with en linktrail: no apostrophes (bug 27473)
2892 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2897 Internal link with ca linktrail with apostrophes (bug 27473)
2903 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2908 Internal link with kaa linktrail with apostrophes (bug 27473)
2914 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2919 ### Interwiki links (see maintenance/interwiki.sql)
2923 Inline interwiki link
2925 [[MeatBall:SoftSecurity]]
2927 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2932 Inline interwiki link with empty title (bug 2372)
2936 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2941 Interwiki link encoding conversion (bug 1636)
2943 *[[Wikipedia:ro:Olteniţa]]
2944 *[[Wikipedia:ro:Olteniţa]]
2946 <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>
2947 </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>
2953 Interwiki link with fragment (bug 2130)
2955 [[MeatBall:SoftSecurity#foo]]
2957 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2972 Double interlanguage link
2983 Interlanguage link, with prefix links
2995 Double interlanguage link, with prefix links (bug 8897)
3008 Parsoid-specific test: Wikilinks with should RT properly
3014 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3032 Incorrecly removing closing slashes from correctly formed XHTML
3034 <br style="clear:both;" />
3036 <p><br style="clear:both;" />
3041 Failing to transform badly formed HTML into correct XHTML
3043 <br style="clear: left;">
3044 <br style="clear: right;">
3045 <br style="clear: both;">
3047 <p><br style="clear: left;" />
3048 <br style="clear: right;" />
3049 <br style="clear: both;" />
3054 Handling html with a div self-closing tag
3063 <p><div title />
3067 <p><div title=bar />
3068 <div title=bar/>
3070 <div title="bar/"></div>
3076 Handling html with a br self-closing tag
3085 <p><br title="title" />
3086 <br title="title" />
3095 Horizontal ruler (should it add that extra space?)
3109 Horizontal ruler -- 4+ dashes render hr
3118 Horizontal ruler -- eats additional dashes on the same line
3127 Horizontal ruler -- does not collaps dashes on consecutive lines
3138 Horizontal ruler -- <4 dashes render as plain text
3147 ### Block-level elements
3170 <ol><li>Numbered list
3187 ***#Number on level 4
3189 **#Number on level 3
3190 **#Number on level 3
3194 #** Level 3, but ordered
3197 <ol><li> with numbers
3199 <ul><li> and bullets
3201 <ol><li> and numbers
3203 </li><li>bullets again
3204 <ul><li>bullet level 2
3205 <ul><li>bullet level 3
3206 <ol><li>Number on level 4
3209 </li><li>bullet level 2
3210 <ol><li>Number on level 3
3211 </li><li>Number on level 3
3214 <ol><li>number level 2
3217 <ul><li><ul><li> Level 3
3221 <ol><li><ul><li><ul><li> Level 3, but ordered
3255 Nested lists 3 (first element empty)
3268 Nested lists 4 (first element empty)
3281 Nested lists 5 (both elements empty)
3294 Nested lists 6 (both elements empty)
3307 Nested lists 7 (skip initial nesting levels)
3311 <ul><li><ul><li><ul><li> foo
3319 Nested lists 8 (multiple nesting transitions)
3327 <ul><li><ul><li> bar
3337 1. Lists with start-of-line-transparent tokens before bullets: Comments
3351 2. Lists with start-of-line-transparent tokens before bullets: Template close
3363 List items are not parsed correctly following a <pre> block (bug 785)
3369 <ul><li> <pre>foo</pre>
3370 </li><li> <pre>bar</pre>
3377 List items from template
3388 * notSOL{{inner list}}
3407 List interrupted by empty line or heading
3417 <ul><li><ul><li> bar
3420 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading"> A heading </span></h2>
3421 <ul><li> Another list item
3432 Magic Word: {{CURRENTDAY}}
3441 Magic Word: {{CURRENTDAY2}}
3450 Magic Word: {{CURRENTDAYNAME}}
3459 Magic Word: {{CURRENTDOW}}
3468 Magic Word: {{CURRENTMONTH}}
3477 Magic Word: {{CURRENTMONTHABBREV}}
3479 {{CURRENTMONTHABBREV}}
3486 Magic Word: {{CURRENTMONTHNAME}}
3488 {{CURRENTMONTHNAME}}
3495 Magic Word: {{CURRENTMONTHNAMEGEN}}
3497 {{CURRENTMONTHNAMEGEN}}
3504 Magic Word: {{CURRENTTIME}}
3513 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3522 Magic Word: {{CURRENTYEAR}}
3531 Magic Word: {{FULLPAGENAME}}
3533 title=[[User:Ævar Arnfjörð Bjarmason]]
3537 <p>User:Ævar Arnfjörð Bjarmason
3542 Magic Word: {{FULLPAGENAMEE}}
3544 title=[[User:Ævar Arnfjörð Bjarmason]]
3548 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3553 Magic Word: {{NAMESPACE}}
3555 title=[[User:Ævar Arnfjörð Bjarmason]]
3564 Magic Word: {{NAMESPACEE}}
3566 title=[[User:Ævar Arnfjörð Bjarmason]]
3575 Magic Word: {{NAMESPACENUMBER}}
3577 title=[[User:Ævar Arnfjörð Bjarmason]]
3586 Magic Word: {{NUMBEROFFILES}}
3595 Magic Word: {{PAGENAME}}
3597 title=[[User:Ævar Arnfjörð Bjarmason]]
3601 <p>Ævar Arnfjörð Bjarmason
3606 Magic Word: {{PAGENAME}} with metacharacters
3608 title=[['foo & bar = baz']]
3612 <p><i>'foo & bar = baz'</i>
3617 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3619 title=[[*RFC 1234 http://example.com/]]
3623 <p>*RFC 1234 http://example.com/
3628 Magic Word: {{PAGENAMEE}}
3630 title=[[User:Ævar Arnfjörð Bjarmason]]
3634 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3639 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3641 title=[[*RFC 1234 http://example.com/]]
3645 <p>*RFC_1234_http://example.com/
3650 Magic Word: {{REVISIONID}}
3659 Magic Word: {{SCRIPTPATH}}
3668 Magic Word: {{SERVER}}
3672 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3677 Magic Word: {{SERVERNAME}}
3686 Magic Word: {{SITENAME}}
3695 Namespace 1 {{ns:1}}
3704 Namespace 1 {{ns:01}}
3713 Namespace 0 {{ns:0}} (bug 4783)
3721 Namespace 0 {{ns:00}} (bug 4783)
3729 Namespace -1 {{ns:-1}}
3738 Namespace User {{ns:User}}
3747 Namespace User talk {{ns:User_talk}}
3756 Namespace User talk {{ns:uSeR tAlK}}
3765 Namespace File {{ns:File}}
3774 Namespace File {{ns:Image}}
3783 Namespace (lang=de) Benutzer {{ns:User}}
3794 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3800 <p>Benutzer Diskussion
3808 {{urlencode:hi world?!}}
3809 {{urlencode:hi world?!|WIKI}}
3810 {{urlencode:hi world?!|PATH}}
3811 {{urlencode:hi world?!|QUERY}}
3824 Magic links: internal link to RFC (bug 479)
3828 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3833 Magic links: RFC (bug 479)
3837 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3842 Magic links: ISBN (bug 1937)
3846 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3851 Magic links: PMID incorrectly converts space to underscore
3855 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3864 Nonexistent template
3866 {{thistemplatedoesnotexist}}
3868 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3875 This is a test template
3883 <p>This is a test template
3888 Template with explicit namespace
3892 <p>This is a test template
3900 This is a test template with parameter {{{param}}}
3906 {{paramtest|param=foo}}
3908 <p>This is a test template with parameter foo
3913 Template:paramtestnum
3919 Template unnamed parameter
3921 {{paramtestnum|Main Page|the main page}}
3923 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3928 Template:templatesimple
3934 Template:templateredirect
3936 #redirect [[Template:templatesimple]]
3940 Template:templateasargtestnum
3946 Template:templateasargtest
3948 {{template{{{templ}}}}}
3952 Template:templateasargtest2
3958 Template with template name as unnamed argument
3960 {{templateasargtestnum|templatesimple}}
3967 Template with template name as argument
3969 {{templateasargtest|templ=simple}}
3976 Template with template name as argument (2)
3978 {{templateasargtest2|templ=templatesimple}}
3985 Template:templateasargtestdefault
3987 {{{{{templ|templatesimple}}}}}
3997 Template with default value
3999 {{templateasargtestdefault}}
4006 Template with default value (value set)
4008 {{templateasargtestdefault|templ=templa}}
4017 {{templateredirect}}
4024 Template with argument in separate line
4026 {{ templateasargtest |
4034 Template with complex template as argument
4037 param ={{ templateasargtest |
4040 <p>This is a test template with parameter (test)
4045 Template with thumb image (with link in description)
4048 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4050 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>
4055 Template:complextemplate
4057 {{{1}}} {{paramtest|
4058 param ={{{param}}}}}
4062 Template with complex arguments
4065 param ={{ templateasargtest |
4066 templ = simple }}|[[Template:complextemplate|link]]}}
4068 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4073 BUG 553: link with two variables in a piped link
4076 |[[{{{1}}}|{{{2}}}]]
4081 <td>[[{{{1}}}|{{{2}}}]]
4087 Magic variable as template parameter
4089 {{paramtest|param={{SITENAME}}}}
4091 <p>This is a test template with parameter MediaWiki
4098 [[{{{param}}}|link]]
4102 Template parameter as link source
4104 {{linktest|param=Main Page}}
4106 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4111 Template-generated attribute string (k='v')
4113 <span {{attr_str|id|v1}}>bar</span>
4115 <p><span id="v1">bar</span>
4122 including another template, {{paramtest|param={{{arg}}}}}
4126 Template passing argument to another template
4128 {{paramtest2|arg='hmm'}}
4130 <p>including another template, This is a test template with parameter 'hmm'
4141 Template as link source
4145 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4163 Template infinite loop
4167 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4172 Template from main namespace
4191 BUG 529: Template with table, not included at beginning of line
4210 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4230 BUG 41: Template parameters shown as broken links
4242 ''None'' of '''this''' should be
4244 but rather passed unmodified
4248 # hmm, fix this or just deprecate msgnw and document its behavior?
4254 {{msgnw:MSGNW test}}
4256 <p>''None'' of '''this''' should be
4258 but rather passed unmodified
4266 {{int:youhavenewmessages|lots of money|not!}}
4268 <p>You have lots of money (not!).
4275 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4279 <includeonly> and <noinclude> being included
4290 <onlyinclude>Foo</onlyinclude>bar
4294 <onlyinclude> being included
4306 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4310 <onlyinclude> and <includeonly> being included
4319 <includeonly> and <noinclude> on a page
4321 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4328 <onlyinclude> on a page
4330 <onlyinclude>Foo</onlyinclude>bar
4337 Template:Includeonly section
4340 ==Includeonly section==
4346 Bug 6563: Edit link generation for section shown by <includeonly>
4348 {{includeonly section}}
4350 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
4351 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
4355 # Uses same input as the contents of [[Template:Includeonly section]]
4357 Bug 6563: Section extraction for section shown by <includeonly>
4362 ==Includeonly section==
4370 Bug 6563: Edit link generation for section suppressed by <includeonly>
4373 ==Includeonly section==
4377 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4382 Bug 6563: Section extraction for section suppressed by <includeonly>
4387 ==Includeonly section==
4395 ### <includeonly> and <noinclude> in attributes
4398 0. includeonly around the entire attribute
4400 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4402 <p><span id="v2">bar</span>
4407 1. includeonly in html attr key
4409 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4411 <p><span id="foo">bar</span>
4416 2. includeonly in html attr value
4418 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4419 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4421 <p><span id="v1">bar</span>
4422 <span id="v1">bar</span>
4427 3. includeonly in part of an attr value
4429 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4431 <p><span style="color:red;">bar</span>
4436 ### Testing parsing of templates where a template arg
4437 ### has the same name as the template itself.
4447 Templates: Template Name/Arg clash: 1. Use of positional param
4456 Templates: Template Name/Arg clash: 2. Use of named param
4465 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4474 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4478 Templates: 1. Simple use
4487 Templates: 2. Inside a block tag
4489 <div>{{echo|Foo}}</div>
4496 Templates: P-wrapping: 1a. Templates on consecutive lines
4507 Templates: P-wrapping: 1b. Templates on consecutive lines
4521 Templates: P-wrapping: 1c. Templates on consecutive lines
4524 {{echo|bar}} <div>baz</div>
4533 Templates: Inline Text: 1. Multiple tmeplate uses
4535 {{echo|Foo}}bar{{echo|baz}}
4542 Templates: Inline Text: 2. Back-to-back template uses
4544 {{echo|Foo}}{{echo|bar}}
4551 Templates: Block Tags: 1. Multiple template uses
4553 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4555 <div>Foo</div><div>bar</div><div>baz</div>
4560 Templates: Block Tags: 2. Back-to-back template uses
4562 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4564 <div>Foo</div><div>bar</div>
4569 Templates: Links: 1. Simple example
4571 {{echo|[[Foo|bar]]}}
4573 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4578 Templates: Links: 2. Generation of link href
4580 [[{{echo|Foo}}|bar]]
4582 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4587 Templates: Links: 3. Generation of part of a link href
4589 [[Fo{{echo|o}}|bar]]
4591 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4596 Templates: Links: 4. Multiple templates generating link href
4598 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4600 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4605 Templates: Links: 5. Generation of link text
4607 [[Foo|{{echo|bar}}]]
4609 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4614 Templates: Links: 5. Nested templates (only outermost template should be marked)
4616 {{echo|[[{{echo|Foo}}|bar]]}}
4618 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4623 Templates: HTML Tag: 1. Generation of HTML attr. key
4625 <div {{echo|style}}="color:red;">foo</div>
4627 <div style="color:red;">foo</div>
4632 Templates: HTML Tag: 2. Generation of HTML attr. value
4634 <div style={{echo|'color:red;'}}>foo</div>
4636 <div style="color:red;">foo</div>
4641 Templates: HTML Tag: 3. Generation of HTML attr key and value
4643 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4645 <div style="color:red;">foo</div>
4650 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4652 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4654 <div title="This is a long title with just one piece templated">foo</div>
4659 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4661 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4663 <div title="This is a long title with just one piece templated">foo</div>
4668 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4670 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4672 <div title="This is a long title with just one piece templated">foo</div>
4677 Templates: Tables: 1. Generating start of a HTML table
4679 {{echo|<table><tr><td>foo</td>}}</tr></table>
4681 <table><tr><td>foo</td></tr></table>
4686 Templates: Tables: 2a. Generating middle of a HTML table
4688 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4690 <table><tr><td>foo</td></tr></table>
4695 Templates: Tables: 2b. Generating middle of a HTML table
4697 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4699 <table><tr><td>foo</td></tr></table>
4704 Templates: Tables: 3. Generating end of a HTML table
4706 <table><tr>{{echo|<td>foo</td></tr></table>}}
4708 <table><tr><td>foo</td></tr></table>
4713 Templates: Tables: 4a. Generating a single tag of a HTML table
4715 {{echo|<table>}}<tr><td>foo</td></tr></table>
4717 <table><tr><td>foo</td></tr></table>
4722 Templates: Tables: 4b. Generating a single tag of a HTML table
4724 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4726 <table><tr><td>foo</td></tr></table>
4731 Templates: Tables: 4c. Generating a single tag of a HTML table
4733 <table><tr>{{echo|<td>}}foo</td></tr></table>
4735 <table><tr><td>foo</td></tr></table>
4740 Templates: Tables: 4d. Generating a single tag of a HTML table
4742 <table><tr><td>foo{{echo|</td>}}</tr></table>
4744 <table><tr><td>foo</td></tr></table>
4749 Templates: Tables: 4e. Generating a single tag of a HTML table
4751 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4753 <table><tr><td>foo</td></tr></table>
4758 Templates: Tables: 4f. Generating a single tag of a HTML table
4760 <table><tr><td>foo</td></tr>{{echo|</table>}}
4762 <table><tr><td>foo</td></tr></table>
4767 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
4769 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
4771 <p><i>ab</i>c<i>d</i>e
4776 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
4777 (PHP parser generates misnested html)
4781 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
4783 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
4787 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
4788 (PHP parser generates misnested html)
4792 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
4795 <div><i>b</i>c<i>d</i></div>
4800 Templates: Ugly nesting: 4. Divs opened/closed across templates
4802 a<div>b{{echo|c</div>d}}e
4809 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
4815 |{{echo|foo</table>}}
4819 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
4820 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
4821 bar</span><span about="#mwt1">
4826 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
4836 <td>1. {{echo|foo </table>}}</td>
4838 <td>2. {{echo|baz </table>}}</td>
4851 <table data-parsoid="{"src":"<table>\n <tr>\n <td>\n <table>\n <tr>\n <td>1. {{echo|foo </table>}}</td>\n <td> bar </td>\n <td>2. {{echo|baz </table>}}</td>\n </tr>\n <tr>\n <td>abc</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>xyz</td>\n </tr>\n</table>"}" about="#mwt1" typeof="mw:Object/Template">
4852 <tbody><tr data-parsoid="{"stx":"html"}">
4853 <td data-parsoid="{"stx":"html"}">
4854 <table data-parsoid="{"stx":"html"}">
4855 <tbody><tr data-parsoid="{"stx":"html"}">
4856 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
4857 <td data-parsoid="{"stx":"html"}"> bar </td>
4858 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
4859 </span><span about="#mwt1">
4861 abc</span><span about="#mwt1">
4862 </span><span about="#mwt1">
4863 </span><span about="#mwt1">
4864 </span><span about="#mwt1">
4865 </span><span about="#mwt1">
4867 xyz</span><span about="#mwt1">
4868 </span><span about="#mwt1">
4873 Parser Functions: 1. Simple example
4882 Parser Functions: 2. Nested use (only outermost should be marked up)
4891 ### Pre-save transform tests
4894 pre-save transform: subst:
4900 This is a test template
4904 pre-save transform: normal template
4914 pre-save transform: nonexistent template
4918 {{thistemplatedoesnotexist}}
4920 {{thistemplatedoesnotexist}}
4925 pre-save transform: subst magic variables
4934 # This is bug 89, which I fixed. -- wtm
4936 pre-save transform: subst: templates with parameters
4940 {{subst:paramtest|param="something else"}}
4942 This is a test template with parameter "something else"
4948 <nowiki>'''not wiki'''</nowiki>
4952 pre-save transform: nowiki in subst (bug 1188)
4956 {{subst:nowikitest}}
4958 <nowiki>'''not wiki'''</nowiki>
4963 Template:commenttest
4965 This template has <!-- a comment --> in it.
4969 pre-save transform: comment in subst (bug 1936)
4973 {{subst:commenttest}}
4975 This template has <!-- a comment --> in it.
4979 pre-save transform: unclosed tag
4983 <nowiki>'''not wiki'''
4985 <nowiki>'''not wiki'''
4989 pre-save transform: mixed tag case
4993 <NOwiki>'''not wiki'''</noWIKI>
4995 <NOwiki>'''not wiki'''</noWIKI>
4999 pre-save transform: unclosed comment in <nowiki>
5003 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5005 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5011 <span onmouseover="alert('crap')">Oh no</span>
5015 (confirming safety of fix for subst bug 1936)
5017 {{Template:dangerous}}
5019 <p><span>Oh no</span>
5024 pre-save transform: comment containing gallery (bug 5024)
5028 <!-- <gallery>data</gallery> -->
5030 <!-- <gallery>data</gallery> -->
5034 pre-save transform: comment containing extension
5038 <!-- <tag>data</tag> -->
5040 <!-- <tag>data</tag> -->
5044 pre-save transform: comment containing nowiki
5048 <!-- <nowiki>data</nowiki> -->
5050 <!-- <nowiki>data</nowiki> -->
5054 pre-save transform: <noinclude> in subst (bug 3298)
5064 pre-save transform: <onlyinclude> in subst (bug 3298)
5076 {{<includeonly>subst:</includeonly>Includes}}
5080 Template:SafeSubstTest
5082 {{<includeonly>safesubst:</includeonly>Includes}}
5086 bug 22297: safesubst: works during PST
5090 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5096 bug 22297: safesubst: works during normal parse
5105 subst: does not work during normal parse
5109 <p>{{subst:Includes}}
5114 pre-save transform: context links ("pipe trick")
5118 [[Article (context)|]]
5121 [[Bar:Article (context)|]]
5122 [[:Bar:Article (context)|]]
5124 [[|Article (context)]]
5128 [[Article (context)|Article]]
5129 [[Bar:Article|Article]]
5130 [[:Bar:Article|Article]]
5131 [[Bar:Article (context)|Article]]
5132 [[:Bar:Article (context)|Article]]
5134 [[Article (context)]]
5135 [[Bar:X (Y) Z|X (Y) Z]]
5136 [[:Bar:X (Y) Z|X (Y) Z]]
5140 pre-save transform: context links ("pipe trick") with interwiki prefix
5144 [[interwiki:Article|]]
5145 [[:interwiki:Article|]]
5146 [[interwiki:Bar:Article|]]
5147 [[:interwiki:Bar:Article|]]
5149 [[interwiki:Article|Article]]
5150 [[:interwiki:Article|Article]]
5151 [[interwiki:Bar:Article|Bar:Article]]
5152 [[:interwiki:Bar:Article|Bar:Article]]
5156 pre-save transform: context links ("pipe trick") with parens in title
5158 pst title=[[Somearticle (context)]]
5162 [[Article (context)|Article]]
5166 pre-save transform: context links ("pipe trick") with comma in title
5168 pst title=[[Someplace, Somewhere]]
5171 [[Otherplace, Elsewhere|]]
5172 [[Otherplace, Elsewhere, Anywhere|]]
5174 [[Otherplace, Somewhere|Otherplace]]
5175 [[Otherplace, Elsewhere|Otherplace]]
5176 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5180 pre-save transform: context links ("pipe trick") with parens and comma
5182 pst title=[[Someplace (IGNORED), Somewhere]]
5185 [[Otherplace (place), Elsewhere|]]
5187 [[Otherplace, Somewhere|Otherplace]]
5188 [[Otherplace (place), Elsewhere|Otherplace]]
5192 pre-save transform: context links ("pipe trick") with comma and parens
5194 pst title=[[Who, me? (context)]]
5197 [[Me, Myself, and I (1937 song)|]]
5199 [[Yes, you. (context)|Yes, you.]]
5200 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5204 pre-save transform: context links ("pipe trick") with namespace
5206 pst title=[[Ns:Somearticle]]
5210 [[Ns:Article|Article]]
5214 pre-save transform: context links ("pipe trick") with namespace and parens
5216 pst title=[[Ns:Somearticle (context)]]
5220 [[Ns:Article (context)|Article]]
5224 pre-save transform: context links ("pipe trick") with namespace and comma
5226 pst title=[[Ns:Somearticle, Context, Whatever]]
5230 [[Ns:Article, Context, Whatever|Article]]
5234 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5236 pst title=[[Ns:Somearticle, Context (context)]]
5240 [[Ns:Article (context)|Article]]
5244 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5246 pst title=[[Ns:Somearticle (IGNORED), Context]]
5250 [[Ns:Article, Context|Article]]
5254 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5258 [[Article(context)|]]
5259 [[Bar:Article(context)|]]
5260 [[:Bar:Article(context)|]]
5261 [[|Article(context)]]
5265 [[Article(context)|Article]]
5266 [[Bar:Article(context)|Article]]
5267 [[:Bar:Article(context)|Article]]
5268 [[Article(context)]]
5270 [[:Bar:X(Y)Z|X(Y)Z]]
5274 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5278 [[Article (context)|]]
5279 [[Bar:Article (context)|]]
5280 [[:Bar:Article (context)|]]
5281 [[|Article (context)]]
5285 [[Article (context)|Article]]
5286 [[Bar:Article (context)|Article]]
5287 [[:Bar:Article (context)|Article]]
5288 [[Article (context)]]
5289 [[Bar:X (Y) Z|X (Y) Z]]
5290 [[:Bar:X (Y) Z|X (Y) Z]]
5294 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5298 [[Article(context)|]]
5299 [[Bar:Article(context)|]]
5300 [[:Bar:Article(context)|]]
5301 [[|Article(context)]]
5305 [[Article(context)|Article]]
5306 [[Bar:Article(context)|Article]]
5307 [[:Bar:Article(context)|Article]]
5308 [[Article(context)]]
5310 [[:Bar:X(Y)Z|X(Y)Z]]
5314 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5318 [[Article (context), context|]]
5319 [[Article (context),context|]]
5320 [[Bar:Article (context), context|]]
5321 [[Bar:Article (context),context|]]
5322 [[:Bar:Article (context), context|]]
5323 [[:Bar:Article (context),context|]]
5325 [[Article (context), context|Article]]
5326 [[Article (context),context|Article]]
5327 [[Bar:Article (context), context|Article]]
5328 [[Bar:Article (context),context|Article]]
5329 [[:Bar:Article (context), context|Article]]
5330 [[:Bar:Article (context),context|Article]]
5334 pre-save transform: trim trailing empty lines
5338 Empty lines are trimmed
5344 Empty lines are trimmed
5348 pre-save transform: Signature expansion
5353 * <noinclude>~~~</noinclude>
5354 * <includeonly>~~~</includeonly>
5355 * <onlyinclude>~~~</onlyinclude>
5357 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5358 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5359 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5360 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5365 pre-save transform: Signature expansion in nowiki tags (bug 93)
5371 <nowiki>~~~~</nowiki>
5373 <includeonly><nowiki>~~~~</nowiki></includeonly>
5375 <noinclude><nowiki>~~~~</nowiki></noinclude>
5377 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5379 {{subst:Foo}} shall be converted to FOO
5381 As well as inside noinclude/onlyinclude
5382 <noinclude>{{subst:Foo}}</noinclude>
5383 <onlyinclude>{{subst:Foo}}</onlyinclude>
5385 But not inside includeonly
5386 <includeonly>{{subst:Foo}}</includeonly>
5390 <nowiki>~~~~</nowiki>
5392 <includeonly><nowiki>~~~~</nowiki></includeonly>
5394 <noinclude><nowiki>~~~~</nowiki></noinclude>
5396 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5398 FOO shall be converted to FOO
5400 As well as inside noinclude/onlyinclude
5401 <noinclude>FOO</noinclude>
5402 <onlyinclude>FOO</onlyinclude>
5404 But not inside includeonly
5405 <includeonly>{{subst:Foo}}</includeonly>
5409 ### Message transform tests
5412 message transform: magic variables
5422 message transform: should not transform wiki markup
5432 message transform: <noinclude> in transcluded template (bug 4926)
5442 message transform: <onlyinclude> in transcluded template (bug 4926)
5452 {{#special:}} page name, known
5456 {{#special:Recentchanges}}
5458 Special:RecentChanges
5462 {{#special:}} page name with subpage, known
5466 {{#special:Recentchanges/param}}
5468 Special:RecentChanges/param
5472 {{#special:}} page name, unknown
5476 {{#special:foobarnonexistent}}
5478 No such special page
5482 {{#speciale:}} page name, known
5486 {{#speciale:Recentchanges}}
5488 Special:RecentChanges
5492 {{#speciale:}} page name with subpage, known
5496 {{#speciale:Recentchanges/param}}
5498 Special:RecentChanges/param
5502 {{#speciale:}} page name, unknown
5506 {{#speciale:foobarnonexistent}}
5508 No_such_special_page
5517 [[Image:foobar.jpg]]
5519 <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>
5526 [[Image:foobar.jpg|right]]
5528 <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>
5533 Simple image (using File: namespace, now canonical)
5537 <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>
5544 [[Image:foobar.jpg|right|Caption text]]
5546 <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>
5551 Image with empty attribute
5553 [[Image:foobar.jpg|right||Caption text]]
5555 <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>
5560 Image with link tails
5562 123[[Image:foobar.jpg]]456
5563 123[[Image:foobar.jpg|right]]456
5564 123[[Image:foobar.jpg|thumb]]456
5566 <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
5568 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
5569 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
5574 Image with multiple captions -- only last one is accepted
5576 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5578 <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>
5583 Image with link parameter, wiki target
5585 [[Image:foobar.jpg|link=Target page]]
5587 <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>
5592 Image with link parameter, URL target
5594 [[Image:foobar.jpg|link=http://example.com/]]
5596 <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>
5601 Image with link parameter, wgExternalLinkTarget
5603 [[Image:foobar.jpg|link=http://example.com/]]
5605 wgExternalLinkTarget='foobar'
5607 <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>
5612 Image with link parameter, wgNoFollowLinks set to false
5614 [[Image:foobar.jpg|link=http://example.com/]]
5616 wgNoFollowLinks=false
5618 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5623 Image with link parameter, wgNoFollowDomainExceptions
5625 [[Image:foobar.jpg|link=http://example.com/]]
5627 wgNoFollowDomainExceptions='example.com'
5629 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5634 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5636 [[Image:foobar.jpg|link=http://example.com/|Title]]
5638 wgExternalLinkTarget='foobar'
5640 <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>
5645 Image with empty link parameter
5647 [[Image:foobar.jpg|link=]]
5649 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5654 Image with link parameter (wiki target) and unnamed parameter
5656 [[Image:foobar.jpg|link=Target page|Title]]
5658 <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>
5663 Image with link parameter (URL target) and unnamed parameter
5665 [[Image:foobar.jpg|link=http://example.com/|Title]]
5667 <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>
5672 Thumbnail image with link parameter
5674 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5676 <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>
5681 Image with frame and link
5683 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5685 <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>
5690 Image with frame and link and explicit alt
5692 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5694 <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>
5699 Image with wiki markup in implicit alt
5701 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5703 <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>
5708 Image with wiki markup in explicit alt
5710 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5712 <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>
5717 Link to image page- image page normally doesn't exists, hence edit link
5718 Add test with existing image page
5719 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5723 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5728 bug 18784 Link to non-existent image page with caption should use caption as link text
5730 [[:Image:test|caption]]
5732 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5737 Frameless image caption with a free URL
5739 [[Image:foobar.jpg|http://example.com]]
5741 <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>
5746 Thumbnail image caption with a free URL
5748 [[Image:foobar.jpg|thumb|http://example.com]]
5750 <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>
5755 Thumbnail image caption with a free URL and explicit alt
5757 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5759 <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>
5764 BUG 1887: A ISBN with a thumbnail
5766 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5768 <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>
5773 BUG 1887: A RFC with a thumbnail
5775 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5777 <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" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
5782 BUG 1887: A mailto link with a thumbnail
5784 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5786 <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>
5790 # Pending resolution to bug 368
5792 BUG 648: Frameless image caption with a link
5794 [[Image:foobar.jpg|text with a [[link]] in it]]
5796 <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>
5801 BUG 648: Frameless image caption with a link (suffix)
5803 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5805 <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>
5810 BUG 648: Frameless image caption with an interwiki link
5812 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5814 <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>
5819 BUG 648: Frameless image caption with a piped interwiki link
5821 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5823 <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>
5828 Escape HTML special chars in image alt text
5830 [[Image:foobar.jpg|& < > "]]
5832 <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>
5837 BUG 499: Alt text should have Ӓ, not &1234;
5839 [[Image:foobar.jpg|♀]]
5841 <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>
5846 Broken image caption with link
5848 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5850 <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.
5855 Image caption containing another image
5857 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5859 <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>
5864 Image caption containing a newline
5866 [[Image:Foobar.jpg|This
5869 <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>
5875 Bug 3090: External links other than http: in image captions
5877 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5879 <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>
5886 [[Image:foobar.jpg|a|class=b]]
5888 <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>
5895 #REDIRECT [[File:Barfoo.jpg]]
5901 [[Image:Barfoo.jpg]]
5903 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5908 Missing image with uploads disabled
5912 [[Image:Foobaz.jpg]]
5914 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5923 Subpage test/subpage
5931 subpage title=[[Subpage test]]
5935 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5940 Subpage noslash link
5942 subpage title=[[Subpage test]]
5946 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5955 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5960 BUG 561: {{/Subpage}}
5962 subpage title=[[Page]]
5966 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5974 Category:MediaWiki User's Guide
5982 [[:Category:MediaWiki User's Guide]]
5984 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5993 [[Category:MediaWiki User's Guide]]
5995 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5999 PAGESINCATEGORY invalid title fatal (r33546 fix)
6001 {{PAGESINCATEGORY:<bogus>}}
6008 Category with different sort key
6012 [[Category:MediaWiki User's Guide|Foo]]
6014 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6018 Category with identical sort key
6022 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6024 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6028 Category with empty sort key
6033 [[Category:MediaWiki User's Guide|]]
6035 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6039 Category with empty sort key and parentheses
6044 [[Category:Foo (bar)|]]
6046 [[Category:Foo (bar)|Foo]]
6050 Category with link tail
6055 123[[Category:Foo]]456
6057 123[[Category:Foo]]456
6061 Category with template
6066 [[Category:{{echo|Foo}}]]
6068 [[Category:{{echo|Foo}}]]
6072 Category with template in sort key
6077 [[Category:Foo|{{echo|Bar}}]]
6079 [[Category:Foo|{{echo|Bar}}]]
6083 Category with template in sort key and title
6088 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6090 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6094 ### Inter-language links
6097 Inter-language links
6103 [[zh:食品]]
6105 es:Alimento fr:Nourriture zh:食品
6109 Duplicate interlanguage links (bug 24502)
6125 Basic section headings
6132 ===Smaller headline===
6135 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
6138 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
6141 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3>
6147 Section headings with TOC
6150 === Subheadline 1 ===
6151 ===== Skipping a level =====
6152 ====== Skipping a level ======
6156 ===Another headline===
6158 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6160 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6162 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6164 <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>
6166 <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>
6173 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6175 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6180 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
6181 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span></h3>
6182 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level"> Skipping a level </span></h5>
6183 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2"> Skipping a level </span></h6>
6184 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2"> Headline 2 </span></h2>
6187 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3>
6191 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6193 Handling of sections up to level 6 and beyond
6196 == Level 2 Heading==
6197 === Level 3 Heading===
6198 ==== Level 4 Heading====
6199 ===== Level 5 Heading=====
6200 ====== Level 6 Heading======
6201 ======= Level 7 Heading=======
6202 ======== Level 8 Heading========
6203 ========= Level 9 Heading=========
6204 ========== Level 10 Heading==========
6206 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6208 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6210 <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>
6212 <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>
6214 <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>
6216 <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>
6218 <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>
6219 <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>
6220 <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>
6221 <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>
6222 <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>
6235 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span></h1>
6236 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span></h2>
6237 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span></h3>
6238 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading"> Level 4 Heading</span></h4>
6239 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading"> Level 5 Heading</span></h5>
6240 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading"> Level 6 Heading</span></h6>
6241 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6>
6242 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6>
6243 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6>
6244 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6>
6249 TOC regression (bug 9764)
6253 ==== title 1.1.1 ====
6258 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6260 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6262 <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>
6264 <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>
6267 <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>
6270 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6272 <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>
6277 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
6278 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
6279 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
6280 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
6281 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
6282 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
6287 TOC with wgMaxTocLevel=3 (bug 6204)
6293 ==== title 1.1.1 ====
6298 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6300 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6302 <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>
6303 <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>
6306 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6308 <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>
6313 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
6314 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
6315 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
6316 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
6317 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
6318 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
6323 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6329 ====Section 1.1.1====
6330 ====Section 1.1.1.1====
6333 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6335 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6337 <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>
6340 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6343 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6344 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3>
6345 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4>
6346 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span></h4>
6347 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6353 Resolving duplicate section names
6358 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
6359 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2"> Foo bar </span></h2>
6364 Resolving duplicate section names with differing case (bug 10721)
6369 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
6370 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span></h2>
6382 Template with sections, __NOTOC__
6389 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2>
6390 <h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
6391 <h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6392 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2>
6397 __NOEDITSECTION__ keyword
6403 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6404 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6409 Link inside a section heading
6411 ==Section with a [[Main Page|link]] in it==
6413 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
6418 TOC regression (bug 12077)
6425 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6427 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6429 <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>
6432 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6435 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
6436 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
6437 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
6442 BUG 1219 URL next to image (good)
6444 http://example.com [[Image:foobar.jpg]]
6446 <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>
6451 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6454 The line above must have a trailing space!
6457 But just in case it doesn't...
6459 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1>
6460 <p>The line above must have a trailing space!
6462 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1>
6463 <p>But just in case it doesn't...
6468 Header with special characters (bug 25462)
6470 The tooltips shall not show entities to the user (ie. be double escaped)
6487 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6489 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6491 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6492 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6493 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6494 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6495 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6498 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text"> text > text </span></h2>
6501 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span> <span class="mw-headline" id="text_.3C_text"> text < text </span></h2>
6504 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span> <span class="mw-headline" id="text_.26_text"> text & text </span></h2>
6507 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span> <span class="mw-headline" id="text_.27_text"> text ' text </span></h2>
6510 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span> <span class="mw-headline" id="text_.22_text"> text " text </span></h2>
6516 Headers with excess '=' characters
6517 (Are similar tests necessary beyond the 1st level?)
6521 =''italic'' heading==
6522 ==''italic'' heading=
6524 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6526 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6527 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6528 <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>
6529 <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>
6532 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a>]</span> <span class="mw-headline" id="foo.3D">foo=</span></h1>
6533 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a>]</span> <span class="mw-headline" id=".3Dfoo">=foo</span></h1>
6534 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a>]</span> <span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span></h1>
6535 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a>]</span> <span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span></h1>
6540 BUG 1219 URL next to image (broken)
6542 http://example.com[[Image:foobar.jpg]]
6544 <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>
6549 Bug 1186 news: in the middle of text
6551 http://en.wikinews.org/wiki/Wikinews:Workplace
6553 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6559 Namespaced link must have a title
6568 Namespaced link must have a title (bad fragment version)
6570 [[Project:#fragment]]
6572 <p>[[Project:#fragment]]
6578 div with no attributes
6580 <div>HTML rocks</div>
6582 <div>HTML rocks</div>
6587 div with double-quoted attribute
6589 <div id="rock">HTML rocks</div>
6591 <div id="rock">HTML rocks</div>
6596 div with single-quoted attribute
6598 <div id='rock'>HTML rocks</div>
6600 <div id="rock">HTML rocks</div>
6605 div with unquoted attribute
6607 <div id=rock>HTML rocks</div>
6609 <div id="rock">HTML rocks</div>
6614 div with illegal double attributes
6616 <div id="a" id="b">HTML rocks</div>
6618 <div id="b">HTML rocks</div>
6623 HTML multiple attributes correction
6625 <p class="error" class="awesome">Awesome!</p>
6627 <p class="awesome">Awesome!</p>
6632 Table multiple attributes correction
6635 !+ class="error" class="awesome"| status
6640 <th class="awesome"> status
6648 <DIV ID="x">HTML ROCKS</DIV>
6650 <div id="x">HTML ROCKS</div>
6656 text with amp in the middle of nowhere
6660 <p>Remember AT&T?
6665 text with character entity: eacute
6667 I always thought é was a cute letter.
6669 <p>I always thought é was a cute letter.
6674 text with undefined character entity: xacute
6676 I always thought &xacute; was a cute letter.
6678 <p>I always thought &xacute; was a cute letter.
6690 [[Media:Foobar.jpg]]
6692 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6697 Media link with text
6699 [[Media:Foobar.jpg|A neat file to look at]]
6701 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6705 # FIXME: this is still bad HTML tag nesting
6707 Media link with nasty text
6708 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6710 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6712 <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>
6717 Media link to nonexistent file (bug 1702)
6719 [[Media:No such.jpg]]
6721 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6726 Image link to nonexistent file (bug 1850 - good)
6728 [[Image:No such.jpg]]
6730 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6735 :Image link to nonexistent file (bug 1850 - bad)
6737 [[:Image:No such.jpg]]
6739 <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>
6746 Character reference normalization in link text (bug 1938)
6748 [[Main Page|this&that]]
6750 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6757 Test for unicode normalization
6759 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6763 (bug 19451) Links should refer to the normalized form.
6771 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6772 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6773 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6774 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6775 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6780 Empty attribute crash test (bug 2067)
6782 <font color="">foo</font>
6784 <p><font color="">foo</font>
6789 Empty attribute crash test single-quotes (bug 2067)
6791 <font color=''>foo</font>
6793 <p><font color="">foo</font>
6798 Attribute test: equals, then nothing
6800 <font color=>foo</font>
6807 Attribute test: unquoted value
6809 <font color=x>foo</font>
6811 <p><font color="x">foo</font>
6816 Attribute test: unquoted but illegal value (hash)
6818 <font color=#x>foo</font>
6820 <p><font color="#x">foo</font>
6825 Attribute test: no value
6827 <font color>foo</font>
6829 <p><font color="color">foo</font>
6834 Bug 2095: link with three closing brackets
6838 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6843 Bug 2095: link with pipe and three closing brackets
6847 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6852 Bug 2095: link with pipe and three closing brackets, version 2
6854 [[Main Page|[http://example.com/]]]
6856 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6866 Template:Dangerous attribute
6868 " onmouseover="alert(document.cookie)
6872 Template:Dangerous style attribute
6874 border-size: expression(alert(document.cookie))
6880 <div style="float: right; {{{1}}}">Magic div</div>
6884 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6886 <div title="{{test}}"></div>
6888 <div title="This is a test template"></div>
6893 Bug 2304: HTML attribute safety (dangerous template; 2309)
6895 <div title="{{dangerous attribute}}"></div>
6897 <div title=""></div>
6902 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6904 <div style="{{dangerous style attribute}}"></div>
6906 <div style="/* insecure input */"></div>
6911 Bug 2304: HTML attribute safety (safe parameter; 2309)
6913 {{div style|width: 200px}}
6915 <div style="float: right; width: 200px">Magic div</div>
6920 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6922 {{div style|width: expression(alert(document.cookie))}}
6924 <div style="/* insecure input */">Magic div</div>
6929 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6931 {{div style|"><script>alert(document.cookie)</script>}}
6933 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6938 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6940 {{div style|" ><script>alert(document.cookie)</script>}}
6942 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6947 Bug 2304: HTML attribute safety (link)
6949 <div title="[[Main Page]]"></div>
6951 <div title="[[Main Page]]"></div>
6956 Bug 2304: HTML attribute safety (italics)
6958 <div title="''foobar''"></div>
6960 <div title="''foobar''"></div>
6965 Bug 2304: HTML attribute safety (bold)
6967 <div title="'''foobar'''"></div>
6969 <div title="'''foobar'''"></div>
6975 Bug 2304: HTML attribute safety (ISBN)
6977 <div title="ISBN 1234567890"></div>
6979 <div title="ISBN 1234567890"></div>
6984 Bug 2304: HTML attribute safety (RFC)
6986 <div title="RFC 1234"></div>
6988 <div title="RFC 1234"></div>
6993 Bug 2304: HTML attribute safety (PMID)
6995 <div title="PMID 1234567890"></div>
6997 <div title="PMID 1234567890"></div>
7002 Bug 2304: HTML attribute safety (web link)
7004 <div title="http://example.com/"></div>
7006 <div title="http://example.com/"></div>
7011 Bug 2304: HTML attribute safety (named web link)
7013 <div title="[http://example.com/ link]"></div>
7015 <div title="[http://example.com/ link]"></div>
7020 Bug 3244: HTML attribute safety (extension; safe)
7022 <div style="<nowiki>background:blue</nowiki>"></div>
7024 <div style="background:blue"></div>
7029 Bug 3244: HTML attribute safety (extension; unsafe)
7031 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7033 <div style="/* insecure input */"></div>
7037 # More MSIE fun discovered by Tom Gilder
7040 MSIE CSS safety test: spurious slash
7042 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7044 <div style="/* insecure input */">evil</div>
7049 MSIE CSS safety test: hex code
7051 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7053 <div style="/* insecure input */">evil</div>
7058 MSIE CSS safety test: comment in url
7060 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7062 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7067 MSIE CSS safety test: comment in expression
7069 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7071 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7077 Table attribute legitimate extension
7080 !+ style="<nowiki>color:blue</nowiki>"| status
7085 <th style="color:blue"> status
7091 Table attribute safety
7094 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7099 <th style="/* insecure input */"> status
7105 CSS line continuation 1
7107 <div style="background-image: u\ rl(test.jpg);"></div>
7109 <div style="/* insecure input */"></div>
7114 CSS line continuation 2
7116 <div style="background-image: u\ rl(test.jpg); "></div>
7118 <div style="/* insecure input */"></div>
7129 Expansion of multi-line templates in attribute values (bug 6255)
7131 <div style="background: {{identity|#00FF00}}">-</div>
7133 <div style="background: #00FF00">-</div>
7139 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7141 <div style="background:
7144 <div style="background: #00FF00">-</div>
7149 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7151 <div style="background: #00FF00">-</div>
7153 <div style="background: #00FF00">-</div>
7158 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7161 Parser hook: empty input
7174 Parser hook: empty input using terminated empty elements
7187 Parser hook: empty input using terminated empty elements (space before)
7200 Parser hook: basic input
7214 Parser hook: case insensitive
7228 Parser hook: case insensitive, redux
7241 Parser hook: nested tags
7245 <tag><tag></tag></tag>
7256 Parser hook: basic arguments
7258 <tag width=200 height = "100" depth = '50' square></tag>
7266 'square' => 'square',
7273 Parser hook: argument containing a forward slash (bug 5344)
7275 <tag filename='/tmp/bla'></tag>
7280 'filename' => '/tmp/bla',
7287 Parser hook: empty input using terminated empty elements (bug 2374)
7300 # </tag> should be output literally since there is no matching tag that begins it
7302 Parser hook: basic arguments using terminated empty elements (bug 2374)
7304 <tag width=200 height = "100" depth = '50' square/>
7314 'square' => 'square',
7323 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7327 Parser hook: static parser hook not inside a comment
7329 <statictag>hello, world</statictag>
7330 <statictag action=flush/>
7338 Parser hook: static parser hook inside a comment
7340 <!-- <statictag>hello, world</statictag> -->
7341 <statictag action=flush/>
7347 # Nested template calls; this case was broken by Parser.php rev 1.506,
7351 Template:One-parameter
7353 (My parameter is: {{{1}}})
7357 Template:Map-one-parameter
7363 Nested template calls
7365 {{Map-one-parameter|One-parameter|param}}
7367 <p>(My parameter is: param)
7376 Sanitizer: Closing of open tags
7378 <s></s><table></table>
7380 <s></s><table></table>
7385 Sanitizer: Closing of open but not closed tags
7394 Sanitizer: Closing of closed but not open tags
7403 Sanitizer: Closing of closed but not open table tags
7405 Table not started</td></tr></table>
7407 <p>Table not started</td></tr></table>
7412 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7414 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7416 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7421 Sanitizer: Validating the contents of the id attribute (bug 4515)
7427 Something, but definitely not <br id="9" />...
7431 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7435 <br id="foo" /><br id="foo" />
7437 Something need to be done. foo-2 ?
7441 Language converter: output gets cut off unexpectedly (bug 5757)
7445 this bit is safe: }-
7447 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7449 then we get cut off here: }-
7451 all additional text is vanished
7453 <p>this bit is safe: }-
7454 </p><p>but if we add a conversion instance: xxx
7455 </p><p>then we get cut off here: }-
7456 </p><p>all additional text is vanished
7461 Self closed html pairs (bug 5487)
7464 <center><font id="bug" />Centered text</center>
7465 <div><font id="bug2" />In div text</div>
7467 <center><font id="bug" />Centered text</center>
7468 <div><font id="bug2" />In div text</div>
7477 Punctuation: nbsp before exclamation
7481 <p>C'est grave !
7486 Punctuation: CSS !important (bug 11874)
7488 <div style="width:50% !important">important</div>
7490 <div style="width:50% !important">important</div>
7495 Punctuation: CSS ! important (bug 11874; with space after)
7497 <div style="width:50% ! important">important</div>
7499 <div style="width:50% ! important">important</div>
7505 HTML bullet list, closed tags (bug 5497)
7520 HTML bullet list, unclosed tags (bug 5497)
7537 HTML ordered list, closed tags (bug 5497)
7552 HTML ordered list, unclosed tags (bug 5497)
7569 HTML nested bullet list, closed tags (bug 5497)
7594 HTML nested bullet list, open tags (bug 5497)
7619 HTML nested ordered list, closed tags (bug 5497)
7644 HTML nested ordered list, open tags (bug 5497)
7669 HTML ordered list item with parameters oddity
7671 <ol><li id="fragment">One</li></ol>
7673 <ol><li id="fragment">One</li></ol>
7678 bug 5918: autonumbering
7680 [http://first/] [http://second] [ftp://ftp]
7684 [mailto:enclosed@mail.tld With target]
7686 [mailto:enclosed@mail.tld]
7688 mailto:inline@mail.tld
7690 <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>
7691 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7692 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7693 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7694 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7700 # Security and HTML correctness
7701 # From Nick Jenkins' fuzz testing
7705 Fuzz testing: Parser13
7720 Fuzz testing: Parser14
7725 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2>
7726 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7728 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7735 Fuzz testing: Parser14-table
7740 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
7741 <table style="__TOC__">
7747 # Known to produce bogus xml (extra </td>)
7749 Fuzz testing: Parser16
7769 Fuzz testing: Parser21
7772 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7777 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7787 Fuzz testing: Parser22
7789 http://===r:::https://b
7793 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7801 # Known to produce bad XML for now
7803 Fuzz testing: Parser24
7810 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7811 <br style="onmouseover='alert(document.cookie);' " />
7813 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7818 <u class="|">}}}} >
7819 <br style="onmouseover='alert(document.cookie);'" />
7821 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7830 # Note: the current result listed for this is not what the original one was,
7831 # but the original bug was JavaScript injection, which is fixed in any case.
7832 # It's not clear that the original result listed was any more correct than the
7833 # current one. Original result:
7836 # <li class="||">
7837 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7839 Fuzz testing: Parser25 (bug 6055)
7845 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7847 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7852 Fuzz testing: URL adjacent extension (with space, clean)
7855 http://example.com <nowiki>junk</nowiki>
7857 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7862 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7865 http://example.com<nowiki>junk</nowiki>
7867 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7872 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7875 http://example.com<pre>junk</pre>
7877 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7882 Fuzz testing: image with bogus manual thumbnail
7884 [[Image:foobar.jpg|thumbnail= ]]
7886 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7891 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7893 <pre dir=" "></pre>
7895 <pre dir=" "></pre>
7900 Parsing optional HTML elements (Bug 6171)
7905 <td> Some tabular data</td>
7906 <td> More tabular data ...
7907 <td> And yet som tabular data</td>
7913 <td> Some tabular data</td>
7914 <td> More tabular data ...
7915 </td><td> And yet som tabular data</td>
7922 Correct handling of <td>, <tr> (Bug 6171)
7927 <td> Some tabular data</td>
7928 <td> More tabular data ...</td>
7929 <td> And yet som tabular data</td>
7935 <td> Some tabular data</td>
7936 <td> More tabular data ...</td>
7937 <td> And yet som tabular data</td>
7945 Parsing crashing regression (fr:JavaScript)
7949 <p></body></x>
7954 Inline wiki vs wiki block nesting
7960 <p><b>Bold paragraph</b>
7961 </p><p>New wiki paragraph
7966 Inline HTML vs wiki block nesting
7974 <p><b>Bold paragraph</b>
7975 </p><p>New wiki paragraph
7979 # Original result was this:
7980 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7982 # While that might be marginally more intuitive, maybe, the six-apostrophe
7983 # construct is clearly pathological and the result stated here (which is what
7984 # the parser actually does) is about as reasonable as anything.
7986 Mixing markup for italics and bold
7989 '''bold''''''bold''bolditalics'''''
7991 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7999 Article for special page transclusion test
8003 Special page transclusion
8006 {{Special:Prefixindex/Xyzzyx}}
8008 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8013 Special page transclusion twice (bug 5021)
8016 {{Special:Prefixindex/Xyzzyx}}
8017 {{Special:Prefixindex/Xyzzyx}}
8019 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8020 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8025 Transclusion of default MediaWiki message
8027 {{MediaWiki:Mainpage}}
8034 Transclusion of nonexistent MediaWiki message
8036 {{MediaWiki:Mainpagexxx}}
8038 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8043 Transclusion of MediaWiki message with underscore
8045 {{MediaWiki:history_short}}
8052 Transclusion of MediaWiki message with space
8054 {{MediaWiki:history short}}
8061 Invalid header with following text
8071 Section extraction test (section 0)
8091 Section extraction test (section 1)
8113 Section extraction test (section 2)
8134 Section extraction test (section 3)
8154 Section extraction test (section 4)
8178 Section extraction test (section 5)
8198 Section extraction test (section 6)
8219 Section extraction test (section 7)
8239 Section extraction test (section 8)
8259 Section extraction test (section 9)
8280 Section extraction test (section 10)
8300 Section extraction test (nonexistent section 11)
8319 Section extraction test with bogus heading (section 1)
8324 ==bogus== not a legal section
8328 ==bogus== not a legal section
8332 Section extraction test with bogus heading (section 2)
8337 ==bogus== not a legal section
8344 Section extraction test with comment after heading (section 1)
8356 Section extraction test with comment after heading (section 2)
8368 Section extraction test with bogus <nowiki> heading (section 1)
8373 ==bogus== <nowiki>not a legal section</nowiki>
8377 ==bogus== <nowiki>not a legal section</nowiki>
8381 Section extraction test with bogus <nowiki> heading (section 2)
8386 ==bogus== <nowiki>not a legal section</nowiki>
8393 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8394 # instead of respecting commented sections
8396 Section extraction prefixed by comment (section 1)
8407 Section extraction prefixed by comment (section 2)
8418 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8419 # instead of respecting HTML-style headings
8421 Section extraction, mixed wiki and html (section 1)
8437 Section extraction, mixed wiki and html (section 2)
8453 # Formerly testing for bug 3342
8455 Section extraction, heading surrounded by <noinclude>
8459 <noinclude>==unmarked==</noinclude>
8465 # Test behaviour of bug 19910
8467 Sectiion with all-equals
8472 The line above must have a trailing space
8475 But just in case it doesn't...
8479 But just in case it doesn't...
8483 Section replacement test (section 0)
8514 Section replacement test (section 1)
8543 Section replacement test (section 2)
8573 Section replacement test (section 3)
8604 Section replacement test (section 4)
8631 Section replacement test (section 5)
8662 Section replacement test (section 6)
8692 Section replacement test (section 7)
8723 Section replacement test (section 8)
8754 Section replacement test (section 9)
8783 Section replacement test (section 10)
8813 Section replacement test with initial whitespace (bug 13728)
8817 Preformatted initial line
8821 Preformatted initial line
8828 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8840 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8853 Section extraction, <pre> around bogus header (bug 10309)
8870 Section replacement, <pre> around bogus header (bug 10309)
8872 noxml replace=2,"xxx"
8893 Handling of 
 in URLs
8897 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8904 5 quotes, code coverage +1 line
8911 Special:Search page linking.
8915 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8930 * {{SUBJECTPAGENAME}}
8931 * {{SUBJECTPAGENAMEE}}
8938 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8940 <ul><li> Parser test
8941 </li><li> Parser test
8942 </li><li> Parser test
8943 </li><li> Parser_test
8944 </li><li> Parser test
8945 </li><li> Parser_test
8946 </li><li> Talk:Parser test
8947 </li><li> Talk:Parser_test
8948 </li><li> Parser test
8949 </li><li> Parser_test
8956 </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>
8960 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8970 image4 |300px| centre
8971 image5.svg| http://///////
8976 <ul class="gallery">
8977 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8978 <div style="height: 150px;">Image1.png</div>
8979 <div class="gallerytext">
8982 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8983 <div style="height: 150px;">Image2.gif</div>
8984 <div class="gallerytext">
8989 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8990 <div style="height: 150px;">Image3</div>
8991 <div class="gallerytext">
8994 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8995 <div style="height: 150px;">Image4</div>
8996 <div class="gallerytext">
9001 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9002 <div style="height: 150px;">Image5.svg</div>
9003 <div class="gallerytext">
9004 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9008 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9009 <div style="height: 150px;">* image6</div>
9010 <div class="gallerytext">
9018 Gallery (with options)
9020 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9021 File:Nonexistant.jpg|caption
9022 File:Nonexistant.jpg
9023 image:foobar.jpg|some '''caption''' [[Main Page]]
9025 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9028 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9029 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9030 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9031 <div style="height: 70px;">Nonexistant.jpg</div>
9032 <div class="gallerytext">
9037 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9038 <div style="height: 70px;">Nonexistant.jpg</div>
9039 <div class="gallerytext">
9042 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9043 <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>
9044 <div class="gallerytext">
9045 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9049 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9050 <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>
9051 <div class="gallerytext">
9054 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9055 <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>
9056 <div class="gallerytext">
9066 Gallery with wikitext inside caption
9069 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9070 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9073 <ul class="gallery">
9074 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9075 <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>
9076 <div class="gallerytext">
9077 <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>
9081 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9082 <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>
9083 <div class="gallerytext">
9084 <p>This is a test template
9093 gallery (with showfilename option)
9095 <gallery showfilename>
9096 File:Nonexistant.jpg|caption
9097 File:Nonexistant.jpg
9098 image:foobar.jpg|some '''caption''' [[Main Page]]
9102 <ul class="gallery">
9103 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9104 <div style="height: 150px;">Nonexistant.jpg</div>
9105 <div class="gallerytext">
9106 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9111 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9112 <div style="height: 150px;">Nonexistant.jpg</div>
9113 <div class="gallerytext">
9114 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9118 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9119 <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>
9120 <div class="gallerytext">
9121 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9122 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9126 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9127 <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>
9128 <div class="gallerytext">
9129 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9138 Gallery (with namespace-less filenames)
9141 File:Nonexistant.jpg
9147 <ul class="gallery">
9148 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9149 <div style="height: 150px;">Nonexistant.jpg</div>
9150 <div class="gallerytext">
9153 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9154 <div style="height: 150px;">Nonexistant.jpg</div>
9155 <div class="gallerytext">
9158 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9159 <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>
9160 <div class="gallerytext">
9163 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9164 <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>
9165 <div class="gallerytext">
9173 HTML Hex character encoding (spells the word "JavaScript")
9175 JavaScript
9177 <p>JavaScript
9182 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9186 <p>&#xsee;&#XSEE;
9191 HTML Hex character encoding mixed case
9200 __FORCETOC__ override
9212 ISBN 978-0-1234-56 789
9214 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9219 ISBN followed by 5 spaces
9230 ISBN ISBN 1234567890
9232 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9237 Bug 22905: <abbr> followed by ISBN followed by </a>
9239 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9241 <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>
9250 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9255 Double RFC with a wiki link
9259 <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>
9268 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9273 Centre-aligned image
9275 [[Image:foobar.jpg|centre]]
9277 <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>
9284 [[Image:foobar.jpg|none]]
9286 <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>
9291 Width + Height sized image (using px) (height is ignored)
9293 [[Image:foobar.jpg|640x480px]]
9295 <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>
9300 Width-sized image (using px, no following whitespace)
9302 [[Image:foobar.jpg|640px]]
9304 <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>
9309 Width-sized image (using px, with following whitespace - test regression from r39467)
9311 [[Image:foobar.jpg|640px ]]
9313 <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>
9318 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9320 [[Image:foobar.jpg| 640px]]
9322 <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>
9327 Another italics / bold test
9335 # Note the results may be incorrect, as parserTest output included this:
9336 # XML error: Mismatched tag at byte 6120:
9337 # ...<dd> </dt></dl> </dd...
9345 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9356 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9358 Images with the "|" character in the comment
9360 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9362 <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>
9367 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9369 <html><script>alert(1);</script></html>
9371 <p><html><script>alert(1);</script></html>
9376 HTML with raw HTML ($wgRawHtml==true)
9380 <html><script>alert(1);</script></html>
9382 <p><script>alert(1);</script>
9387 Parents of subpages, one level up
9389 subpage title=[[Subpage test/L1/L2/L3]]
9393 <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>
9399 Parents of subpages, one level up, not named
9401 subpage title=[[Subpage test/L1/L2/L3]]
9405 <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>
9412 Parents of subpages, two levels up
9414 subpage title=[[Subpage test/L1/L2/L3]]
9420 <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
9421 </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>
9426 Parents of subpages, two levels up, without trailing slash or name.
9428 subpage title=[[Subpage test/L1/L2/L3]]
9437 Parents of subpages, two levels up, with lots of extra trailing slashes.
9439 subpage title=[[Subpage test/L1/L2/L3]]
9443 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9448 Definition list code coverage
9454 <dl><dt> title  </dt><dd> def
9455 </dd><dt> title </dt><dd> def
9456 </dd><dt>title</dt><dd> def
9462 Don't fall for the self-closing div
9464 <div>hello world</div/>
9466 <div>hello world</div>
9475 <p>[[:Template:Msg]]
9484 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9488 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9490 Always escape literal '>' in output, not just after '<'
9504 <p>This is a test template
9505 This is a test template
9517 Inclusion of !userCanEdit() content
9521 <h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
9527 Out-of-order TOC heading levels
9536 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9538 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9540 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9541 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9544 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9546 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9547 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9552 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
9553 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
9554 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
9555 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
9556 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
9557 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
9563 ISBN with a dummy number
9573 ISBN with space-delimited number
9577 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9583 ISBN with multiple spaces, no number
9602 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9603 </p><p>ISBN 12345678901
9609 ISBN with trailing year (bug 8110)
9611 ISBN 1-234-56789-0 - 2006
9613 ISBN 1 234 56789 0 - 2006
9615 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9616 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9624 {{anchorencode:foo bar©#%n}}
9626 <p>foo_bar.C2.A9.23.25n
9631 anchorencode trims spaces
9633 {{anchorencode: __pretty__please__}}
9640 anchorencode deals with links
9642 {{anchorencode: [[hello|world]] [[hi]]}}
9649 anchorencode deals with templates
9651 {{anchorencode: {{Foo}} }}
9658 anchorencode encodes like the TOC generator: (bug 18431)
9660 === _ +:.3A%3A&&]] ===
9661 {{anchorencode: _ +:.3A%3A&&]] }}
9664 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9665 <p>.2B:.3A.253A.26.26.5D.5D
9669 # Expected output in the following test is not necessarily expected (there
9670 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9671 # only testing for well-formedness.
9673 Bug 6200: blockquotes and paragraph formatting
9693 Bug 8293: Use of center tag ruins paragraph formatting
9715 ### Language variants related tests
9718 Self-link in language variants
9720 title=[[Dunav]] language=sr
9722 Both [[Dunav]] and [[Дунав]] are names for this river.
9724 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9730 Link to pages in language variants
9734 Main Page can be written as [[Маин Паге]]
9736 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9742 Multiple links to pages in language variants
9746 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9748 <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>.
9754 Simple template in language variants
9760 <p>This is a test template
9766 Template with explicit namespace in language variants
9772 <p>This is a test template
9778 Basic test for template parameter in language variants
9782 {{парамтест|param=foo}}
9784 <p>This is a test template with parameter foo
9790 Simple category in language variants
9794 [[Category:МедиаWики Усер'с Гуиде]]
9796 <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>
9801 Stripping -{}- tags (language variants)
9805 Latin proverb: -{Ne nuntium necare}-
9807 <p>Latin proverb: Ne nuntium necare
9813 Prevent conversion with -{}- tags (language variants)
9815 language=sr variant=sr-ec
9817 Latinski: -{Ne nuntium necare}-
9819 <p>Латински: Ne nuntium necare
9825 Prevent conversion of text with -{}- tags (language variants)
9827 language=sr variant=sr-ec
9829 Latinski: -{Ne nuntium necare}-
9831 <p>Латински: Ne nuntium necare
9837 Prevent conversion of links with -{}- tags (language variants)
9839 language=sr variant=sr-ec
9843 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9849 -{}- tags within headlines (within html for parserConvert())
9851 language=sr variant=sr-ec
9855 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2>
9861 Explicit definition of language variant alternatives
9863 language=zh variant=zh-tw
9865 -{zh:China;zh-tw:Taiwan}-, not China
9867 <p>Taiwan, not China
9873 Explicit session-wise language variant mapping (A flag and - flag)
9875 language=zh variant=zh-tw
9877 Taiwan is not China.
9878 But -{A|zh:China;zh-tw:Taiwan}- is China,
9879 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9880 and -{China}- is China.
9882 <p>Taiwan is not China.
9883 But Taiwan is Taiwan,
9884 (This should be stripped!)
9890 Explicit session-wise language variant mapping (H flag for hide)
9892 language=zh variant=zh-tw
9894 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9897 <p>(This should be stripped!)
9903 Adding explicit conversion rule for title (T flag)
9905 language=zh variant=zh-tw showtitle
9907 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9910 <p>Should be stripped!
9915 Testing that changing the language variant here in the tests actually works
9917 language=zh variant=zh showtitle
9919 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9922 <p>Should be stripped!
9927 Bug 24072: more test on conversion rule for title
9929 language=zh variant=zh-tw showtitle
9931 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9932 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9935 <p>This should be stripped!
9936 This won't take interferes with the title rule.
9941 Raw output of variant escape tags (R flag)
9943 language=zh variant=zh-tw
9945 Raw: -{R|zh:China;zh-tw:Taiwan}-
9947 <p>Raw: zh:China;zh-tw:Taiwan
9952 Nested using of manual convert syntax
9954 language=zh variant=zh-hk
9956 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9958 <p>Nested: Hello Hong Kong!
9963 Do not convert roman numbers to language variants
9965 language=sr variant=sr-ec
9969 <p>Фридрих IV је цар.
9974 Unclosed language converter markup "-{"
9985 Don't convert raw rule "-{R|=>}-" to "=>"
10002 Bug 529: Uncovered bullet
10013 Bug 529: Uncovered table already at line-start
10036 Bug 529: Uncovered bullet in parser function result
10038 * Foo {{lc:{{bullet}} }}
10047 Bug 5678: Double-parsed template argument
10049 {{lc:{{{1}}}|hello}}
10056 Bug 5678: Double-parsed template invocation
10058 {{lc:{{paramtest {{!}} param = hello }} }}
10060 <p>{{paramtest | param = hello }}
10065 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10068 title=[[Main Page]]
10070 {{PRVNÍVELKÉ:ěščř}}
10071 {{prvnívelké:ěščř}}
10091 Morwen/13: Unclosed link followed by heading
10098 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
10103 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10110 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10115 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10122 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
10137 Paragraphs inside divs (no extra line breaks)
10149 Paragraphs inside divs (extra line break on open)
10164 Paragraphs inside divs (extra line break on close)
10179 Paragraphs inside divs (extra line break on open and close)
10196 Nesting tags, paragraphs on lines which begin with <div>
10200 <div></div><strong>A
10209 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10211 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10215 <blockquote>Line one
10217 Line two</blockquote>
10219 <blockquote>Line one
10220 Line two</blockquote>
10225 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10232 Line two</blockquote>
10237 Line two</blockquote>
10242 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10246 <blockquote>Line one
10251 <blockquote>Line one
10259 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10278 Paragraphs inside blockquotes/divs (no extra line breaks)
10280 <blockquote><div>Line one
10282 Line two</div></blockquote>
10284 <blockquote><div>Line one
10285 Line two</div></blockquote>
10290 Paragraphs inside blockquotes/divs (extra line break on open)
10295 Line two</div></blockquote>
10300 Line two</div></blockquote>
10305 Paragraphs inside blockquotes/divs (extra line break on close)
10307 <blockquote><div>Line one
10310 </div></blockquote>
10312 <blockquote><div>Line one
10315 </div></blockquote>
10320 Paragraphs inside blockquotes/divs (extra line break on open and close)
10326 </div></blockquote>
10332 </div></blockquote>
10337 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10339 wgLinkHolderBatchSize=0
10345 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10346 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10347 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10352 Free external link invading image caption
10354 [[Image:Foobar.jpg|thumb|http://x|hello]]
10356 <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>
10361 Bug 15196: localised external link numbers
10365 [http://en.wikipedia.org/]
10367 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10372 Multibyte character in padleft
10374 {{padleft:-Hello|7|Æ}}
10381 Multibyte character in padright
10383 {{padright:Hello-|7|Æ}}
10392 wgUseDynamicDates=1
10396 <p><span class="mw-formatted-date" title="2009-03-24"><a href="/index.php?title=2009&action=edit&redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="/index.php?title=March_24&action=edit&redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
10401 formatdate parser function
10403 {{#formatdate:2009-03-24}}
10405 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10410 formatdate parser function, with default format
10412 {{#formatdate:2009-03-24|mdy}}
10414 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10419 Linked date with autoformatting disabled
10421 wgUseDynamicDates=false
10425 <p><a href="/index.php?title=2009-03-24&action=edit&redlink=1" class="new" title="2009-03-24 (page does not exist)">2009-03-24</a>
10430 Spacing of numbers in formatted dates
10432 {{#formatdate:January 15}}
10434 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10439 Spacing of numbers in formatted dates (linked)
10441 wgUseDynamicDates=true
10445 <p><span class="mw-formatted-date" title="01-15"><a href="/index.php?title=January_15&action=edit&redlink=1" class="new" title="January 15 (page does not exist)">January 15</a></span>
10450 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
10452 language=nl title=[[MediaWiki:Common.css]]
10454 {{#formatdate:2009-03-24|dmy}}
10456 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10469 Edit comment with link
10473 I like the [[Main Page]] a lot
10475 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10479 Edit comment with link and link text
10483 I like the [[Main Page|best pages]] a lot
10485 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10489 Edit comment with link and link text with suffix
10493 I like the [[Main Page|best page]]s a lot
10495 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10499 Edit comment with section link (non-local, eg in history list)
10501 comment title=[[Main Page]]
10503 /* External links */ removed bogus entries
10505 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10509 Edit comment with section link and text before it (non-local, eg in history list)
10511 comment title=[[Main Page]]
10513 pre-comment text /* External links */ removed bogus entries
10515 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>
10519 Edit comment with section link (local, eg in diff view)
10521 comment local title=[[Main Page]]
10523 /* External links */ removed bogus entries
10525 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10529 Edit comment with subpage link (bug 14080)
10533 title=[[Subpage test]]
10535 Poked at a [[/subpage]] here...
10537 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10541 Edit comment with subpage link and link text (bug 14080)
10545 title=[[Subpage test]]
10547 Poked at a [[/subpage|neat little page]] here...
10549 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10553 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10556 title=[[Subpage test]]
10558 Poked at a [[/subpage]] here...
10560 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10564 Edit comment with bare anchor link (local, as on diff)
10568 title=[[Main Page]]
10572 <a href="#section">#section</a>
10576 Edit comment with bare anchor link (non-local, as on history)
10579 title=[[Main Page]]
10583 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10587 Anchor starting with underscore
10591 <p><a href="#_ref">One</a>
10596 Id starting with underscore
10598 <div id="_ref"></div>
10600 <div id="_ref"></div>
10605 Space normalisation on autocomment (bug 22784)
10608 title=[[Main Page]]
10610 /* __hello__world__ */
10612 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10616 percent-encoding and + signs in comments (Bug 26410)
10620 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10622 <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>
10626 Bad images - basic functionality
10635 Bad images - bug 16039: text after bad image disappears
10649 Verify that displaytitle works (bug #22501) no displaytitle
10653 wgAllowDisplayTitle=true
10654 wgRestrictDisplayTitle=false
10656 this is not the the title
10659 <p>this is not the the title
10664 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10669 wgAllowDisplayTitle=true
10670 wgRestrictDisplayTitle=false
10672 this is not the the title
10673 {{DISPLAYTITLE:whatever}}
10676 <p>this is not the the title
10681 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10686 wgAllowDisplayTitle=true
10687 wgRestrictDisplayTitle=true
10689 this is not the the title
10690 {{DISPLAYTITLE:whatever}}
10693 <p>this is not the the title
10698 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10703 wgAllowDisplayTitle=true
10704 wgRestrictDisplayTitle=true
10706 this is not the the title
10707 {{DISPLAYTITLE:screen}}
10710 <p>this is not the the title
10715 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10720 wgAllowDisplayTitle=false
10722 this is not the the title
10723 {{DISPLAYTITLE:screen}}
10726 <p>this is not the the title
10727 <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>
10732 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10737 wgAllowDisplayTitle=false
10739 this is not the the title
10742 <p>this is not the the title
10747 preload: check <noinclude> and <includeonly>
10751 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10757 preload: check <onlyinclude>
10761 Goodbye <onlyinclude>Hello world</onlyinclude>
10767 preload: can pass tags through if we want to
10771 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10773 <includeonly>Hello world</includeonly>
10777 preload: check that it doesn't try to do tricks
10781 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10783 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10787 Play a bit with r67090 and bug 3158
10791 <div style="width:50% !important"> </div>
10792 <div style="width:50% !important"> </div>
10793 <div style="width:50% !important"> </div>
10794 <div style="border : solid;"> </div>
10796 <div style="width:50% !important"> </div>
10797 <div style="width:50% !important"> </div>
10798 <div style="width:50% !important"> </div>
10799 <div style="border : solid;"> </div>
10804 HTML5 data attributes
10806 <span data-foo="bar">Baz</span>
10807 <p data-abc-def_hij="">Quuz</p>
10809 <p><span data-foo="bar">Baz</span>
10811 <p data-abc-def_hij="">Quuz</p>
10816 percent-encoding and + signs in internal links (Bug 26410)
10818 [[User:+%]] [[Page+title%]]
10819 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10820 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10821 [[%33%45]] [[%33%45+]]
10823 <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>
10824 <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>
10825 <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>
10826 <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>
10831 Special characters in embedded file links (bug 27679)
10833 [[File:Contains & ampersand.jpg]]
10834 [[File:Does not exist.jpg|Title with & ampersand]]
10836 <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>
10837 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10843 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10845 Text's been normalized?
10847 <p>Text's been normalized?
10852 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10854 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10856 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10861 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10863 [http://www.example.org/ ideograms]
10865 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10870 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10872 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10874 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10898 Bug 31098 Template which includes system messages which includes the template
10902 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10903 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10908 Deprecated presentational attributes are converted to css
10911 | valign=top align=left width=100 height=25% | Asdf
10913 <ul type="disc"></ul>
10917 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10919 <ul style="list-style-type: disc;"></ul>
10924 Bug31490 Turkish: ucfirst 'blah'
10935 Bug31490 Turkish: ucfirst 'ix'
10946 Bug31490 Turkish: lcfirst 'BLAH'
10957 Bug31490 Turkish: ucfırst (with a dotless i)
10963 <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>
10968 Bug31490 ucfırst (with a dotless i) with English language
10974 <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>
10979 Bug 26375: TOC with italics
10981 title=[[Main Page]]
10984 == ''Lost'' episodes ==
10986 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10988 <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>
10991 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span> <span class="mw-headline" id="Lost_episodes"> <i>Lost</i> episodes </span></h2>
10996 Bug 26375: TOC with bold
10998 title=[[Main Page]]
11001 == '''should be bold''' then normal text ==
11003 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11005 <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>
11008 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span> <span class="mw-headline" id="should_be_bold_then_normal_text"> <b>should be bold</b> then normal text </span></h2>
11013 Bug 33845: Headings become cursive in TOC when they contain an image
11015 title=[[Main Page]]
11018 == Image [[Image:foobar.jpg]] ==
11020 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11022 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11025 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span> <span class="mw-headline" id="Image"> Image <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> </span></h2>
11030 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11032 title=[[Main Page]]
11035 == <blockquote>Quote</blockquote> ==
11037 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11039 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11042 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span> <span class="mw-headline" id="Quote"> <blockquote>Quote</blockquote> </span></h2>
11047 Unclosed tags in TOC
11049 title=[[Main Page]]
11053 <small>Hanc marginis exiguitas non caperet.</small>
11056 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11058 <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>
11061 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span> <span class="mw-headline" id="Proof:_2_.3C_3"> Proof: 2 < 3 </span></h2>
11062 <p><small>Hanc marginis exiguitas non caperet.</small>
11068 Multiple tags in TOC
11071 == <i>Foo</i> <b>Bar</b> ==
11073 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11075 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11077 <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>
11078 <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>
11081 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar"> <i>Foo</i> <b>Bar</b> </span></h2>
11082 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> <i>Foo</i> <blockquote>Bar</blockquote> </span></h2>
11087 Tags with parameters in TOC
11090 == <sup class="in-h2">Hello</sup> ==
11092 == <sup class="a > b">Evilbye</sup> ==
11094 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11096 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11097 <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>
11100 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span> <span class="mw-headline" id="Hello"> <sup class="in-h2">Hello</sup> </span></h2>
11101 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span> <span class="mw-headline" id="b.22.3EEvilbye"> <sup> b">Evilbye</sup> </span></h2>
11106 span tags with directionality in TOC
11109 == <span dir="ltr">C++</span> ==
11111 == <span dir="rtl">זבנג!</span> ==
11113 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11115 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11117 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11119 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11121 <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>
11122 <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>
11123 <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>
11124 <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>
11125 <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>
11128 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a>]</span> <span class="mw-headline" id="C.2B.2B"> <span dir="ltr">C++</span> </span></h2>
11129 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a>]</span> <span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"> <span dir="rtl">זבנג!</span> </span></h2>
11130 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: The attributes on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"> <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> </span></h2>
11131 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: All attributes on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"> <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> </span></h2>
11132 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Attributes after dir on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"> <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> </span></h2>
11139 == {{int:headline_sample}} ==
11143 Bug 32057: Title needed when expanding <h> nodes.
11145 title=[[Main Page]]
11149 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span> <span class="mw-headline" id="Headline_text"> Headline text </span></h2>
11154 Strip marker in urlencode
11156 {{urlencode:x<nowiki/>y}}
11157 {{urlencode:x<nowiki/>y|wiki}}
11158 {{urlencode:x<nowiki/>y|path}}
11185 Strip marker in formatNum
11187 {{formatnum:1<nowiki/>2}}
11188 {{formatnum:1<nowiki/>2|R}}
11196 Strip marker in grammar
11200 {{grammar:elative|foo<nowiki/>bar}}
11207 Strip marker in padleft
11209 {{padleft:|2|x<nowiki/>y}}
11216 Strip marker in padright
11218 {{padright:|2|x<nowiki/>y}}
11225 Strip marker in anchorencode
11227 {{anchorencode:x<nowiki/>y}}
11234 nowiki inside link inside heading (bug 18295)
11236 ==[[foo|x<nowiki>y</nowiki>z]]==
11238 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span> <span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span></h2>
11243 new support for bdi element (bug 31817)
11245 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11247 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11252 Ignore pipe between table row attributes
11256 |- id=foo | style='color: red'
11264 <tr id="foo" style="color: red">
11271 Gallery override link with WikiLink (bug 34852)
11274 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11277 <ul class="gallery">
11278 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11279 <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>
11280 <div class="gallerytext">
11290 Gallery override link with absolute external link (bug 34852)
11293 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11296 <ul class="gallery">
11297 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11298 <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>
11299 <div class="gallerytext">
11309 Gallery override link with malicious javascript (bug 34852)
11312 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11315 <ul class="gallery">
11316 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11317 <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>
11318 <div class="gallerytext">
11328 Language parser function
11337 Padleft and padright as substr
11339 {{padleft:|3|abcde}}
11340 {{padright:|3|abcde}}
11348 Bug 34939 - Case insensitive link parsing ([HttP://])
11350 [HttP://MediaWiki.Org/]
11352 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11357 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11359 [HttP://MediaWiki.Org/ MediaWiki]
11361 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11366 Bug 34939 - Case insensitive link parsing (HttP://)
11368 HttP://MediaWiki.Org/
11370 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11375 ### Parsoids-specific tests
11376 ### Parsoid-PHP parser incompatibilities
11379 1. SOL-sensitive wikitext tokens as template-args
11398 Try for 100% code coverage