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 for pre
1007 1b. Pre and Comments
1020 1c. Pre and Comments
1070 3. Pre and block tags
1078 <pre><span> foo </span>
1083 4. Multiple spaces at start-of-line
1102 ### Definition lists
1109 <dl><dt> name </dt><dd> Definition
1115 Definition list for indentation only
1119 <dl><dd> Indented text
1125 Definition list with no space
1129 <dl><dt>name</dt><dd>Definition
1135 Definition list with URL link
1137 ; http://example.com/ : definition
1139 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1145 Definition list with bracketed URL link
1147 ;[http://www.example.com/ Example]:Something about it
1149 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1155 Definition list with wikilink containing colon
1157 ; [[Help:FAQ]]: The least-read page on Wikipedia
1159 <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
1164 # At Brion's and JeLuF's insistence... :)
1166 Definition list with news link containing colon
1168 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1170 <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!
1176 Malformed definition list with colon
1178 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1180 <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
1186 Definition lists: colon in external link text
1188 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1190 <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
1196 Definition lists: colon in HTML attribute
1198 ;<b style="display: inline">bold</b>
1200 <dl><dt><b style="display: inline">bold</b>
1207 Definition lists: self-closed tag
1209 ;one<br/>two : two-line fun
1211 <dl><dt>one<br />two </dt><dd> two-line fun
1217 Bug 11748: Literal closing tags
1223 <dd>test test test test test</dd>
1225 <dd>test test test test test</dd>
1230 <dd>test test test test test</dd>
1232 <dd>test test test test test</dd>
1237 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1240 ; term : description
1246 <dl><dt> term </dt><dd> description
1256 Definition list with empty definition and following paragraph
1261 <dl><dt> term</dt><dd>
1268 Definition Lists: No nesting: Multiple dd's
1282 Definition Lists: Indentation: Regular
1298 Definition Lists: Indentation: Missing 1st level
1312 Definition Lists: Indentation: Multi-level indent
1316 <dl><dd><dl><dd><dl><dd>i3
1324 Definition Lists: Hacky use to indent tables
1331 should be left alone
1333 <dl><dd><dl><dd><table>
1338 </td></tr></table></dd></dl></dd></dl>
1340 should be left alone
1343 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1344 ## as an empty dt item. It also ignores all but the last ";" when followed
1345 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1346 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1349 ## Ex: ";;t2 ::d2" is transformed into:
1361 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1362 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1373 ## All Parsoid only definition list tests have this difference.
1375 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1376 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1379 Definition Lists: Nesting: Multi-level (Parsoid only)
1409 Definition Lists: Nesting: Test 2 (Parsoid only)
1429 Definition Lists: Nesting: Test 3 (Parsoid only)
1457 Definition Lists: Nesting: Test 4
1462 <dl><dd><dl><dd><dl><dt>t3
1472 Definition Lists: Mixed Lists: Test 1
1478 <dl><dd><dl><dt><ul><li> foo
1490 Definition Lists: Mixed Lists: Test 2
1504 Definition Lists: Mixed Lists: Test 3
1509 <ul><li><dl><dd><dl><dd><dl><dd> d1
1520 Definition Lists: Mixed Lists: Test 4
1525 <ul><li><dl><dt>d1 </dt><dd>d2
1526 </dd><dt>d3 </dt><dd>d4
1534 Definition Lists: Mixed Lists: Test 5
1549 Definition Lists: Mixed Lists: Test 6
1554 <ol><li><ul><li><dl><dd>d1
1566 Definition Lists: Mixed Lists: Test 7
1580 Definition Lists: Mixed Lists: Test 8
1596 Definition Lists: Mixed Lists: Test 9
1600 <ul><li><dl><dt>foo </dt><dd>bar
1608 Definition Lists: Mixed Lists: Test 10
1612 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1621 Definition Lists: Mixed Lists: Test 11
1626 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1631 <dl><dt>boo </dt><dd>baz
1642 Definition Lists: Weird Ones: Test 1
1644 *#;*::;; foo : bar (who uses this?)
1646 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1662 External links: non-bracketed
1664 Non-bracketed: http://example.com
1666 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1671 External links: numbered
1673 Numbered: [http://example.com]
1674 Numbered: [http://example.net]
1675 Numbered: [http://example.com]
1677 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1678 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1679 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1684 External links: specified text
1686 Specified text: [http://example.com link]
1688 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1693 External links: trail
1695 Linktrails should not work for external links: [http://example.com link]s
1697 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1702 External links: dollar sign in URL
1704 http://example.com/1$2345
1706 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1711 External links: dollar sign in URL (named)
1713 [http://example.com/1$2345]
1715 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1720 External links: open square bracket forbidden in URL (bug 4377)
1722 http://example.com/1[2345
1724 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1729 External links: open square bracket forbidden in URL (named) (bug 4377)
1731 [http://example.com/1[2345]
1733 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1738 External links: nowiki in URL link text (bug 6230)
1740 [http://example.com/ <nowiki>''example site''</nowiki>]
1742 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1747 External links: newline forbidden in text (bug 6230 regression check)
1749 [http://example.com/ first
1752 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1758 External links: Pipe char between url and text
1760 [http://example.com | link]
1762 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1767 External links: protocol-relative URL in brackets
1769 [//example.com/ Test]
1771 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1776 External links: protocol-relative URL in brackets without text
1780 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1785 External links: protocol-relative URL in free text is left alone
1789 <p>//example.com/Foo
1794 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1796 foo//example.com/Foo
1798 <p>foo//example.com/Foo
1805 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1807 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1812 External image from https
1814 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1816 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1821 Link to non-http image, no img tag
1823 Link to non-http image, no img tag: ftp://example.com/test.jpg
1825 <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>
1830 External links: terminating separator
1832 Terminating separator: http://example.com/thing,
1834 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1839 External links: intervening separator
1841 Intervening separator: http://example.com/1,2,3
1843 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1848 External links: old bug with URL in query
1850 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1852 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1857 External links: old URL-in-URL bug, mixed protocols
1859 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1861 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1866 External links: URL in text
1868 URL in text: [http://example.com http://example.com]
1870 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1875 External links: Clickable images
1877 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1879 <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>
1884 External links: raw ampersand
1886 Old & use: http://x&y
1888 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1893 External links: encoded ampersand
1895 Old & use: http://x&y
1897 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1902 External links: encoded equals (bug 6102)
1904 http://example.com/?foo=bar
1906 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1911 External links: [raw ampersand]
1913 Old & use: [http://x&y]
1915 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1920 External links: [encoded ampersand]
1922 Old & use: [http://x&y]
1924 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1929 External links: [encoded equals] (bug 6102)
1931 [http://example.com/?foo=bar]
1933 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1938 External links: [IDN ignored character reference in hostname; strip it right off]
1940 [http://e‌xample.com/]
1942 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1946 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1947 # Where an external link could easily circumvent the sanitization of the text of
1948 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1949 # test demands a higher standard. That's a bit strange.
1953 # http://example.com -> [http://example.com|http://example.com]
1954 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1956 # The first example is sanitized, but the second is not. Any security benefits
1957 # from this production are trivial to circumvent. Either remove this test and
1958 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1959 # the test accordingly.
1964 External links: IDN ignored character reference in hostname; strip it right off
1966 http://e‌xample.com/
1968 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1973 External links: www.jpeg.org (bug 554)
1977 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1982 External links: URL within URL (original bug 2)
1984 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1986 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1991 BUG 361: URL inside bracketed URL
1993 [http://www.example.com/foo http://www.example.com/bar]
1995 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2000 BUG 361: URL within URL, not bracketed
2002 http://www.example.com/foo?=http://www.example.com/bar
2004 <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>
2009 BUG 289: ">"-token in URL-tail
2011 http://www.example.com/<hello>
2013 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2018 BUG 289: literal ">"-token in URL-tail
2020 http://www.example.com/<b>html</b>
2022 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2027 BUG 289: ">"-token in bracketed URL
2029 [http://www.example.com/<hello> stuff]
2031 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2036 BUG 289: literal ">"-token in bracketed URL
2038 [http://www.example.com/<b>html</b> stuff]
2040 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2045 BUG 289: literal double quote at end of URL
2047 http://www.example.com/"hello"
2049 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2054 BUG 289: literal double quote in bracketed URL
2056 [http://www.example.com/"hello" stuff]
2058 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2063 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2065 [http://www.example.com test]
2067 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2072 External links: wiki links within external link (Bug 3695)
2074 [http://example.com [[wikilink]] embedded in ext link]
2076 <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>
2081 BUG 787: Links with one slash after the url protocol are invalid
2085 [http:/example.com title]
2087 <p>http:/example.com
2088 </p><p>[http:/example.com title]
2093 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2095 ''[http://example.com text'']
2096 [http://example.com '''text]'''
2097 ''Something [http://example.com in italic'']
2098 ''Something [http://example.com mixed''''', even bold]'''
2099 '''''Now [http://example.com both''''']
2101 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2102 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2103 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2104 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2105 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2111 Bug 4781: %26 in URL
2113 http://www.example.com/?title=AT%26T
2115 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2119 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2120 # % is actually legal in HTML5. Any change in output would need testing though.
2122 Bug 4781, 5267: %25 in URL
2124 http://www.example.com/?title=100%25_Bran
2126 <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>
2131 Bug 4781, 5267: %28, %29 in URL
2133 http://www.example.com/?title=Ben-Hur_%281959_film%29
2135 <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>
2141 Bug 4781: %26 in autonumber URL
2143 [http://www.example.com/?title=AT%26T]
2145 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2150 Bug 4781, 5267: %26 in autonumber URL
2152 [http://www.example.com/?title=100%25_Bran]
2154 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2159 Bug 4781, 5267: %28, %29 in autonumber URL
2161 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2163 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2169 Bug 4781: %26 in bracketed URL
2171 [http://www.example.com/?title=AT%26T link]
2173 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2178 Bug 4781, 5267: %26 in bracketed URL
2180 [http://www.example.com/?title=100%25_Bran link]
2182 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2187 Bug 4781, 5267: %28, %29 in bracketed URL
2189 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2191 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2196 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2198 Some [http://example.com/ pretty ''italics'' and stuff]!
2200 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2205 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2207 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2209 <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>
2214 External link containing double-single-quotes with no space separating the url from text in italics
2216 [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]].]
2218 <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>
2223 URL-encoding in URL functions (single parameter)
2225 {{localurl:Some page|amp=&}}
2227 <p>/index.php?title=Some_page&amp=&
2232 URL-encoding in URL functions (multiple parameters)
2234 {{localurl:Some page|q=?&=&}}
2236 <p>/index.php?title=Some_page&q=?&amp=&
2243 http://example.com/index.php?foozoid%5B%5D=bar
2245 http://example.com/index.php?foozoid[]=bar
2247 <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>
2248 </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>
2253 IPv6 urls (bug 21261)
2257 http://[2404:130:0:1000::187:2]/index.php
2259 <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>
2270 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2272 Normal text. '''''Bold italic text.''''' Normal text.
2274 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2275 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2281 Unclosed and unmatched quotes
2283 '''''Bold italic text '''with bold deactivated''' in between.'''''
2285 '''''Bold italic text ''with italic deactivated'' in between.'''''
2289 ..spanning two paragraphs (should not work).'''
2291 '''Bold tag left open
2293 ''Italic tag left open
2297 <!-- Unmatching number of opening, closing tags: -->
2298 '''This year''''s election ''should'' beat '''last year''''s.
2300 ''Tom'''s car is bigger than ''Susan'''s.
2302 Plain ''italic'''s plain
2304 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2305 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2306 </p><p><b>Bold text..</b>
2307 </p><p>..spanning two paragraphs (should not work).
2308 </p><p><b>Bold tag left open</b>
2309 </p><p><i>Italic tag left open</i>
2311 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2312 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2313 </p><p>Plain <i>italic'</i>s plain
2320 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2323 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2324 # is the bare minimun required by the spec, see:
2325 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2327 A table with no data.
2333 # A table with nothing but a caption is invalid XHTML, we might want to render
2334 # this as <p>caption</p>
2336 A table with nothing but a caption
2344 </caption><tr><td></td></tr></table>
2370 Simple table but with multiple dashes for row wikitext
2388 Multiplication table
2390 {| border="1" cellpadding="2"
2391 |+Multiplication table
2393 ! × !! 1 !! 2 !! 3
2411 <table border="1" cellpadding="2">
2412 <caption>Multiplication table
2459 Allow +/- in 2nd and later cells in a row
2486 |rowspan=2| Cell 2, row 1 (and 2)
2497 <td rowspan="2"> Cell 2, row 1 (and 2)
2515 {| bgcolor=#ABCDEF border=2
2520 |the original table again
2528 <table bgcolor="#ABCDEF" border="2">
2536 <td>the original table again
2542 Invalid attributes in table cell (bug 1830)
2557 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2560 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2564 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2565 <td>]" onmouseover="alert(document.cookie)">test
2574 Indented table markup mixed with indented pre content (proposed in bug 6200)
2579 Text that should be rendered preformatted
2587 <pre>Text that should be rendered preformatted
2600 Plain link, capitalized
2604 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2609 Plain link, uncapitalized
2613 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2620 [[Main Page|The Main Page]]
2622 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2631 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2636 Broken link with fragment
2638 [[Zigzagzogzagzig#zug]]
2640 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2645 Special page link with fragment
2647 [[Special:Version#anchor]]
2649 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2654 Nonexistent special page link with fragment
2656 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2658 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2665 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2667 <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>
2674 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2676 <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>!!!
2681 Link with 3 brackets
2690 Piped link with 3 brackets
2692 [[[main page|the main page]]]
2694 <p>[[[main page|the main page]]]
2699 Link with multiple pipes
2701 [[Main Page|The|Main|Page]]
2703 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2710 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2712 <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>
2717 Piped link to namespace
2719 [[Meta:Disclaimers|The disclaimers]]
2721 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2728 [[Usually caused by a typo (oops}]]
2730 <p>[[Usually caused by a typo (oops}]]
2735 Link containing % (not as a hex sequence)
2739 <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>
2744 Link containing % as a single hex sequence interpreted to char
2748 <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>
2753 Link containing % as a double hex sequence interpreted to hex sequence
2757 <p>[[7%2525 Solution]]
2762 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2763 Example for such a section: == < ==
2765 [[%23%3c]][[%23%3e]]
2767 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2772 Link containing "<#" and ">#" as a hex sequences
2774 [[%3c%23]][[%3e%23]]
2776 <p>[[%3c%23]][[%3e%23]]
2781 Link containing double-single-quotes '' (bug 4598)
2783 [[Lista d''e paise d''o munno]]
2785 <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>
2790 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2792 Some [[Link|pretty ''italics'' and stuff]]!
2794 <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>!
2799 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2801 ''Some [[Link|pretty ''italics'' and stuff]]!
2803 <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>
2808 Link with double quotes in title part (literal) and alternate part (interpreted)
2810 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2814 [[''Pentecoste''|Pentecoste]]
2816 [[''Pentecoste''|''Pentecoste'']]
2818 <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>
2819 </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>
2820 </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>
2821 </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>
2826 Broken image links with HTML captions (bug 39700)
2828 [[File:Nonexistent|<script></script>]]
2829 [[File:Nonexistent|100px|<script></script>]]
2830 [[File:Nonexistent|<]]
2831 [[File:Nonexistent|a<i>b</i>c]]
2833 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2834 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2835 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2836 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2843 [[http://www.example.com]]
2845 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2850 Plain link to URL with link text
2852 [[http://www.example.com Link text]]
2854 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2859 Plain link to protocol-relative URL
2861 [[//www.example.com]]
2863 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2868 Plain link to protocol-relative URL with link text
2870 [[//www.example.com Link text]]
2872 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2877 # I'm fairly sure the expected result here is wrong.
2878 # We want these to be URL links, not pseudo-pages with URLs for titles....
2879 # However the current output is also pretty screwy.
2882 # I'm changing it to match the current output--it arguably makes more
2883 # sense in the light of the test above. Old expected result was:
2884 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2886 # But I think this test is bordering on "garbage in, garbage out" anyway.
2891 Piped link to URL: [[http://www.example.com|an example URL]]
2893 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2898 BUG 2: [[page|http://url/]] should link to page, not http://url/
2900 [[Main Page|http://url/]]
2902 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2907 BUG 337: Escaped self-links should be bold
2911 [[Bug462]] [[Bug462]]
2913 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2918 Self-link to section should not be bold
2922 [[Main Page#section]]
2924 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2935 Self-link to numeric title
2941 <p><strong class="selflink">0</strong>
2946 Link to numeric-equivalent title
2952 <p><a href="/wiki/00" title="00">00</a>
2957 <nowiki> inside a link
2959 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2961 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2966 Non-breaking spaces in title
2968 [[ Main Page ]]
2970 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2975 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2981 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2986 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2992 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2997 Internal link with en linktrail: no apostrophes (bug 27473)
3003 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3008 Internal link with ca linktrail with apostrophes (bug 27473)
3014 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3019 Internal link with kaa linktrail with apostrophes (bug 27473)
3025 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3030 ### Interwiki links (see maintenance/interwiki.sql)
3034 Inline interwiki link
3036 [[MeatBall:SoftSecurity]]
3038 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3043 Inline interwiki link with empty title (bug 2372)
3047 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3052 Interwiki link encoding conversion (bug 1636)
3054 *[[Wikipedia:ro:Olteniţa]]
3055 *[[Wikipedia:ro:Olteniţa]]
3057 <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>
3058 </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>
3064 Interwiki link with fragment (bug 2130)
3066 [[MeatBall:SoftSecurity#foo]]
3068 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3083 Double interlanguage link
3094 Interlanguage link, with prefix links
3106 Double interlanguage link, with prefix links (bug 8897)
3119 Parsoid-specific test: Wikilinks with should RT properly
3125 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3143 Incorrecly removing closing slashes from correctly formed XHTML
3145 <br style="clear:both;" />
3147 <p><br style="clear:both;" />
3152 Failing to transform badly formed HTML into correct XHTML
3154 <br style="clear: left;">
3155 <br style="clear: right;">
3156 <br style="clear: both;">
3158 <p><br style="clear: left;" />
3159 <br style="clear: right;" />
3160 <br style="clear: both;" />
3165 Handling html with a div self-closing tag
3174 <p><div title />
3178 <p><div title=bar />
3179 <div title=bar/>
3181 <div title="bar/"></div>
3187 Handling html with a br self-closing tag
3196 <p><br title="title" />
3197 <br title="title" />
3206 Horizontal ruler (should it add that extra space?)
3220 Horizontal ruler -- 4+ dashes render hr
3229 Horizontal ruler -- eats additional dashes on the same line
3238 Horizontal ruler -- does not collaps dashes on consecutive lines
3249 Horizontal ruler -- <4 dashes render as plain text
3258 ### Block-level elements
3281 <ol><li>Numbered list
3298 ***#Number on level 4
3300 **#Number on level 3
3301 **#Number on level 3
3305 #** Level 3, but ordered
3308 <ol><li> with numbers
3310 <ul><li> and bullets
3312 <ol><li> and numbers
3314 </li><li>bullets again
3315 <ul><li>bullet level 2
3316 <ul><li>bullet level 3
3317 <ol><li>Number on level 4
3320 </li><li>bullet level 2
3321 <ol><li>Number on level 3
3322 </li><li>Number on level 3
3325 <ol><li>number level 2
3328 <ul><li><ul><li> Level 3
3332 <ol><li><ul><li><ul><li> Level 3, but ordered
3366 Nested lists 3 (first element empty)
3379 Nested lists 4 (first element empty)
3392 Nested lists 5 (both elements empty)
3405 Nested lists 6 (both elements empty)
3418 Nested lists 7 (skip initial nesting levels)
3422 <ul><li><ul><li><ul><li> foo
3430 Nested lists 8 (multiple nesting transitions)
3438 <ul><li><ul><li> bar
3448 1. Lists with start-of-line-transparent tokens before bullets: Comments
3462 2. Lists with start-of-line-transparent tokens before bullets: Template close
3474 List items are not parsed correctly following a <pre> block (bug 785)
3480 <ul><li> <pre>foo</pre>
3481 </li><li> <pre>bar</pre>
3488 List items from template
3499 * notSOL{{inner list}}
3518 List interrupted by empty line or heading
3528 <ul><li><ul><li> bar
3531 <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>
3532 <ul><li> Another list item
3543 Magic Word: {{CURRENTDAY}}
3552 Magic Word: {{CURRENTDAY2}}
3561 Magic Word: {{CURRENTDAYNAME}}
3570 Magic Word: {{CURRENTDOW}}
3579 Magic Word: {{CURRENTMONTH}}
3588 Magic Word: {{CURRENTMONTHABBREV}}
3590 {{CURRENTMONTHABBREV}}
3597 Magic Word: {{CURRENTMONTHNAME}}
3599 {{CURRENTMONTHNAME}}
3606 Magic Word: {{CURRENTMONTHNAMEGEN}}
3608 {{CURRENTMONTHNAMEGEN}}
3615 Magic Word: {{CURRENTTIME}}
3624 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3633 Magic Word: {{CURRENTYEAR}}
3642 Magic Word: {{FULLPAGENAME}}
3644 title=[[User:Ævar Arnfjörð Bjarmason]]
3648 <p>User:Ævar Arnfjörð Bjarmason
3653 Magic Word: {{FULLPAGENAMEE}}
3655 title=[[User:Ævar Arnfjörð Bjarmason]]
3659 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3664 Magic Word: {{NAMESPACE}}
3666 title=[[User:Ævar Arnfjörð Bjarmason]]
3675 Magic Word: {{NAMESPACEE}}
3677 title=[[User:Ævar Arnfjörð Bjarmason]]
3686 Magic Word: {{NAMESPACENUMBER}}
3688 title=[[User:Ævar Arnfjörð Bjarmason]]
3697 Magic Word: {{NUMBEROFFILES}}
3706 Magic Word: {{PAGENAME}}
3708 title=[[User:Ævar Arnfjörð Bjarmason]]
3712 <p>Ævar Arnfjörð Bjarmason
3717 Magic Word: {{PAGENAME}} with metacharacters
3719 title=[['foo & bar = baz']]
3723 <p><i>'foo & bar = baz'</i>
3728 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3730 title=[[*RFC 1234 http://example.com/]]
3734 <p>*RFC 1234 http://example.com/
3739 Magic Word: {{PAGENAMEE}}
3741 title=[[User:Ævar Arnfjörð Bjarmason]]
3745 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3750 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3752 title=[[*RFC 1234 http://example.com/]]
3756 <p>*RFC_1234_http://example.com/
3761 Magic Word: {{REVISIONID}}
3770 Magic Word: {{SCRIPTPATH}}
3779 Magic Word: {{SERVER}}
3783 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3788 Magic Word: {{SERVERNAME}}
3797 Magic Word: {{SITENAME}}
3806 Namespace 1 {{ns:1}}
3815 Namespace 1 {{ns:01}}
3824 Namespace 0 {{ns:0}} (bug 4783)
3832 Namespace 0 {{ns:00}} (bug 4783)
3840 Namespace -1 {{ns:-1}}
3849 Namespace User {{ns:User}}
3858 Namespace User talk {{ns:User_talk}}
3867 Namespace User talk {{ns:uSeR tAlK}}
3876 Namespace File {{ns:File}}
3885 Namespace File {{ns:Image}}
3894 Namespace (lang=de) Benutzer {{ns:User}}
3905 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3911 <p>Benutzer Diskussion
3919 {{urlencode:hi world?!}}
3920 {{urlencode:hi world?!|WIKI}}
3921 {{urlencode:hi world?!|PATH}}
3922 {{urlencode:hi world?!|QUERY}}
3935 Magic links: internal link to RFC (bug 479)
3939 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3944 Magic links: RFC (bug 479)
3948 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3953 Magic links: ISBN (bug 1937)
3957 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3962 Magic links: PMID incorrectly converts space to underscore
3966 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3975 Nonexistent template
3977 {{thistemplatedoesnotexist}}
3979 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3986 This is a test template
3994 <p>This is a test template
3999 Template with explicit namespace
4003 <p>This is a test template
4011 This is a test template with parameter {{{param}}}
4017 {{paramtest|param=foo}}
4019 <p>This is a test template with parameter foo
4024 Template:paramtestnum
4030 Template unnamed parameter
4032 {{paramtestnum|Main Page|the main page}}
4034 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4039 Template:templatesimple
4045 Template:templateredirect
4047 #redirect [[Template:templatesimple]]
4051 Template:templateasargtestnum
4057 Template:templateasargtest
4059 {{template{{{templ}}}}}
4063 Template:templateasargtest2
4069 Template with template name as unnamed argument
4071 {{templateasargtestnum|templatesimple}}
4078 Template with template name as argument
4080 {{templateasargtest|templ=simple}}
4087 Template with template name as argument (2)
4089 {{templateasargtest2|templ=templatesimple}}
4096 Template:templateasargtestdefault
4098 {{{{{templ|templatesimple}}}}}
4108 Template with default value
4110 {{templateasargtestdefault}}
4117 Template with default value (value set)
4119 {{templateasargtestdefault|templ=templa}}
4128 {{templateredirect}}
4135 Template with argument in separate line
4137 {{ templateasargtest |
4145 Template with complex template as argument
4148 param ={{ templateasargtest |
4151 <p>This is a test template with parameter (test)
4156 Template with thumb image (with link in description)
4159 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4161 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>
4166 Template:complextemplate
4168 {{{1}}} {{paramtest|
4169 param ={{{param}}}}}
4173 Template with complex arguments
4176 param ={{ templateasargtest |
4177 templ = simple }}|[[Template:complextemplate|link]]}}
4179 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4184 BUG 553: link with two variables in a piped link
4187 |[[{{{1}}}|{{{2}}}]]
4192 <td>[[{{{1}}}|{{{2}}}]]
4198 Magic variable as template parameter
4200 {{paramtest|param={{SITENAME}}}}
4202 <p>This is a test template with parameter MediaWiki
4209 [[{{{param}}}|link]]
4213 Template parameter as link source
4215 {{linktest|param=Main Page}}
4217 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4222 Template-generated attribute string (k='v')
4224 <span {{attr_str|id|v1}}>bar</span>
4226 <p><span id="v1">bar</span>
4233 including another template, {{paramtest|param={{{arg}}}}}
4237 Template passing argument to another template
4239 {{paramtest2|arg='hmm'}}
4241 <p>including another template, This is a test template with parameter 'hmm'
4252 Template as link source
4256 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4274 Template infinite loop
4278 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4283 Template from main namespace
4302 BUG 529: Template with table, not included at beginning of line
4321 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4341 BUG 41: Template parameters shown as broken links
4353 ''None'' of '''this''' should be
4355 but rather passed unmodified
4359 # hmm, fix this or just deprecate msgnw and document its behavior?
4365 {{msgnw:MSGNW test}}
4367 <p>''None'' of '''this''' should be
4369 but rather passed unmodified
4377 {{int:youhavenewmessages|lots of money|not!}}
4379 <p>You have lots of money (not!).
4386 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4390 <includeonly> and <noinclude> being included
4401 <onlyinclude>Foo</onlyinclude>bar
4405 <onlyinclude> being included
4417 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4421 <onlyinclude> and <includeonly> being included
4430 <includeonly> and <noinclude> on a page
4432 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4439 <onlyinclude> on a page
4441 <onlyinclude>Foo</onlyinclude>bar
4448 Template:Includeonly section
4451 ==Includeonly section==
4457 Bug 6563: Edit link generation for section shown by <includeonly>
4459 {{includeonly section}}
4461 <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>
4462 <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>
4466 # Uses same input as the contents of [[Template:Includeonly section]]
4468 Bug 6563: Section extraction for section shown by <includeonly>
4473 ==Includeonly section==
4481 Bug 6563: Edit link generation for section suppressed by <includeonly>
4484 ==Includeonly section==
4488 <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>
4493 Bug 6563: Section extraction for section suppressed by <includeonly>
4498 ==Includeonly section==
4506 ### <includeonly> and <noinclude> in attributes
4509 0. includeonly around the entire attribute
4511 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4513 <p><span id="v2">bar</span>
4518 1. includeonly in html attr key
4520 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4522 <p><span id="foo">bar</span>
4527 2. includeonly in html attr value
4529 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4530 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4532 <p><span id="v1">bar</span>
4533 <span id="v1">bar</span>
4538 3. includeonly in part of an attr value
4540 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4542 <p><span style="color:red;">bar</span>
4547 ### Testing parsing of templates where a template arg
4548 ### has the same name as the template itself.
4558 Templates: Template Name/Arg clash: 1. Use of positional param
4567 Templates: Template Name/Arg clash: 2. Use of named param
4576 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4585 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4589 Templates: 1. Simple use
4598 Templates: 2. Inside a block tag
4600 <div>{{echo|Foo}}</div>
4607 Templates: P-wrapping: 1a. Templates on consecutive lines
4618 Templates: P-wrapping: 1b. Templates on consecutive lines
4632 Templates: P-wrapping: 1c. Templates on consecutive lines
4635 {{echo|bar}} <div>baz</div>
4644 Templates: Inline Text: 1. Multiple tmeplate uses
4646 {{echo|Foo}}bar{{echo|baz}}
4653 Templates: Inline Text: 2. Back-to-back template uses
4655 {{echo|Foo}}{{echo|bar}}
4662 Templates: Block Tags: 1. Multiple template uses
4664 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4666 <div>Foo</div><div>bar</div><div>baz</div>
4671 Templates: Block Tags: 2. Back-to-back template uses
4673 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4675 <div>Foo</div><div>bar</div>
4680 Templates: Links: 1. Simple example
4682 {{echo|[[Foo|bar]]}}
4684 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4689 Templates: Links: 2. Generation of link href
4691 [[{{echo|Foo}}|bar]]
4693 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4698 Templates: Links: 3. Generation of part of a link href
4700 [[Fo{{echo|o}}|bar]]
4702 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4707 Templates: Links: 4. Multiple templates generating link href
4709 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4711 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4716 Templates: Links: 5. Generation of link text
4718 [[Foo|{{echo|bar}}]]
4720 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4725 Templates: Links: 5. Nested templates (only outermost template should be marked)
4727 {{echo|[[{{echo|Foo}}|bar]]}}
4729 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4734 Templates: HTML Tag: 1. Generation of HTML attr. key
4736 <div {{echo|style}}="color:red;">foo</div>
4738 <div style="color:red;">foo</div>
4743 Templates: HTML Tag: 2. Generation of HTML attr. value
4745 <div style={{echo|'color:red;'}}>foo</div>
4747 <div style="color:red;">foo</div>
4752 Templates: HTML Tag: 3. Generation of HTML attr key and value
4754 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4756 <div style="color:red;">foo</div>
4761 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4763 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4765 <div title="This is a long title with just one piece templated">foo</div>
4770 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4772 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4774 <div title="This is a long title with just one piece templated">foo</div>
4779 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4781 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4783 <div title="This is a long title with just one piece templated">foo</div>
4788 Templates: Tables: 1. Generating start of a HTML table
4790 {{echo|<table><tr><td>foo</td>}}</tr></table>
4792 <table><tr><td>foo</td></tr></table>
4797 Templates: Tables: 2a. Generating middle of a HTML table
4799 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4801 <table><tr><td>foo</td></tr></table>
4806 Templates: Tables: 2b. Generating middle of a HTML table
4808 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4810 <table><tr><td>foo</td></tr></table>
4815 Templates: Tables: 3. Generating end of a HTML table
4817 <table><tr>{{echo|<td>foo</td></tr></table>}}
4819 <table><tr><td>foo</td></tr></table>
4824 Templates: Tables: 4a. Generating a single tag of a HTML table
4826 {{echo|<table>}}<tr><td>foo</td></tr></table>
4828 <table><tr><td>foo</td></tr></table>
4833 Templates: Tables: 4b. Generating a single tag of a HTML table
4835 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4837 <table><tr><td>foo</td></tr></table>
4842 Templates: Tables: 4c. Generating a single tag of a HTML table
4844 <table><tr>{{echo|<td>}}foo</td></tr></table>
4846 <table><tr><td>foo</td></tr></table>
4851 Templates: Tables: 4d. Generating a single tag of a HTML table
4853 <table><tr><td>foo{{echo|</td>}}</tr></table>
4855 <table><tr><td>foo</td></tr></table>
4860 Templates: Tables: 4e. Generating a single tag of a HTML table
4862 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4864 <table><tr><td>foo</td></tr></table>
4869 Templates: Tables: 4f. Generating a single tag of a HTML table
4871 <table><tr><td>foo</td></tr>{{echo|</table>}}
4873 <table><tr><td>foo</td></tr></table>
4878 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
4880 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
4882 <p><i>ab</i>c<i>d</i>e
4887 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
4888 (PHP parser generates misnested html)
4892 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
4894 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
4898 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
4899 (PHP parser generates misnested html)
4903 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
4906 <div><i>b</i>c<i>d</i></div>
4911 Templates: Ugly nesting: 4. Divs opened/closed across templates
4913 a<div>b{{echo|c</div>d}}e
4920 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
4926 |{{echo|foo</table>}}
4930 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
4931 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
4932 bar</span><span about="#mwt1">
4937 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
4947 <td>1. {{echo|foo </table>}}</td>
4949 <td>2. {{echo|baz </table>}}</td>
4962 <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">
4963 <tbody><tr data-parsoid="{"stx":"html"}">
4964 <td data-parsoid="{"stx":"html"}">
4965 <table data-parsoid="{"stx":"html"}">
4966 <tbody><tr data-parsoid="{"stx":"html"}">
4967 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
4968 <td data-parsoid="{"stx":"html"}"> bar </td>
4969 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
4970 </span><span about="#mwt1">
4972 abc</span><span about="#mwt1">
4973 </span><span about="#mwt1">
4974 </span><span about="#mwt1">
4975 </span><span about="#mwt1">
4976 </span><span about="#mwt1">
4978 xyz</span><span about="#mwt1">
4979 </span><span about="#mwt1">
4984 Parser Functions: 1. Simple example
4993 Parser Functions: 2. Nested use (only outermost should be marked up)
5002 ### Pre-save transform tests
5005 pre-save transform: subst:
5011 This is a test template
5015 pre-save transform: normal template
5025 pre-save transform: nonexistent template
5029 {{thistemplatedoesnotexist}}
5031 {{thistemplatedoesnotexist}}
5036 pre-save transform: subst magic variables
5045 # This is bug 89, which I fixed. -- wtm
5047 pre-save transform: subst: templates with parameters
5051 {{subst:paramtest|param="something else"}}
5053 This is a test template with parameter "something else"
5059 <nowiki>'''not wiki'''</nowiki>
5063 pre-save transform: nowiki in subst (bug 1188)
5067 {{subst:nowikitest}}
5069 <nowiki>'''not wiki'''</nowiki>
5074 Template:commenttest
5076 This template has <!-- a comment --> in it.
5080 pre-save transform: comment in subst (bug 1936)
5084 {{subst:commenttest}}
5086 This template has <!-- a comment --> in it.
5090 pre-save transform: unclosed tag
5094 <nowiki>'''not wiki'''
5096 <nowiki>'''not wiki'''
5100 pre-save transform: mixed tag case
5104 <NOwiki>'''not wiki'''</noWIKI>
5106 <NOwiki>'''not wiki'''</noWIKI>
5110 pre-save transform: unclosed comment in <nowiki>
5114 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5116 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5122 <span onmouseover="alert('crap')">Oh no</span>
5126 (confirming safety of fix for subst bug 1936)
5128 {{Template:dangerous}}
5130 <p><span>Oh no</span>
5135 pre-save transform: comment containing gallery (bug 5024)
5139 <!-- <gallery>data</gallery> -->
5141 <!-- <gallery>data</gallery> -->
5145 pre-save transform: comment containing extension
5149 <!-- <tag>data</tag> -->
5151 <!-- <tag>data</tag> -->
5155 pre-save transform: comment containing nowiki
5159 <!-- <nowiki>data</nowiki> -->
5161 <!-- <nowiki>data</nowiki> -->
5165 pre-save transform: <noinclude> in subst (bug 3298)
5175 pre-save transform: <onlyinclude> in subst (bug 3298)
5187 {{<includeonly>subst:</includeonly>Includes}}
5191 Template:SafeSubstTest
5193 {{<includeonly>safesubst:</includeonly>Includes}}
5197 bug 22297: safesubst: works during PST
5201 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5207 bug 22297: safesubst: works during normal parse
5216 subst: does not work during normal parse
5220 <p>{{subst:Includes}}
5225 pre-save transform: context links ("pipe trick")
5229 [[Article (context)|]]
5232 [[Bar:Article (context)|]]
5233 [[:Bar:Article (context)|]]
5235 [[|Article (context)]]
5239 [[Article (context)|Article]]
5240 [[Bar:Article|Article]]
5241 [[:Bar:Article|Article]]
5242 [[Bar:Article (context)|Article]]
5243 [[:Bar:Article (context)|Article]]
5245 [[Article (context)]]
5246 [[Bar:X (Y) Z|X (Y) Z]]
5247 [[:Bar:X (Y) Z|X (Y) Z]]
5251 pre-save transform: context links ("pipe trick") with interwiki prefix
5255 [[interwiki:Article|]]
5256 [[:interwiki:Article|]]
5257 [[interwiki:Bar:Article|]]
5258 [[:interwiki:Bar:Article|]]
5260 [[interwiki:Article|Article]]
5261 [[:interwiki:Article|Article]]
5262 [[interwiki:Bar:Article|Bar:Article]]
5263 [[:interwiki:Bar:Article|Bar:Article]]
5267 pre-save transform: context links ("pipe trick") with parens in title
5269 pst title=[[Somearticle (context)]]
5273 [[Article (context)|Article]]
5277 pre-save transform: context links ("pipe trick") with comma in title
5279 pst title=[[Someplace, Somewhere]]
5282 [[Otherplace, Elsewhere|]]
5283 [[Otherplace, Elsewhere, Anywhere|]]
5285 [[Otherplace, Somewhere|Otherplace]]
5286 [[Otherplace, Elsewhere|Otherplace]]
5287 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5291 pre-save transform: context links ("pipe trick") with parens and comma
5293 pst title=[[Someplace (IGNORED), Somewhere]]
5296 [[Otherplace (place), Elsewhere|]]
5298 [[Otherplace, Somewhere|Otherplace]]
5299 [[Otherplace (place), Elsewhere|Otherplace]]
5303 pre-save transform: context links ("pipe trick") with comma and parens
5305 pst title=[[Who, me? (context)]]
5308 [[Me, Myself, and I (1937 song)|]]
5310 [[Yes, you. (context)|Yes, you.]]
5311 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5315 pre-save transform: context links ("pipe trick") with namespace
5317 pst title=[[Ns:Somearticle]]
5321 [[Ns:Article|Article]]
5325 pre-save transform: context links ("pipe trick") with namespace and parens
5327 pst title=[[Ns:Somearticle (context)]]
5331 [[Ns:Article (context)|Article]]
5335 pre-save transform: context links ("pipe trick") with namespace and comma
5337 pst title=[[Ns:Somearticle, Context, Whatever]]
5341 [[Ns:Article, Context, Whatever|Article]]
5345 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5347 pst title=[[Ns:Somearticle, Context (context)]]
5351 [[Ns:Article (context)|Article]]
5355 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5357 pst title=[[Ns:Somearticle (IGNORED), Context]]
5361 [[Ns:Article, Context|Article]]
5365 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5369 [[Article(context)|]]
5370 [[Bar:Article(context)|]]
5371 [[:Bar:Article(context)|]]
5372 [[|Article(context)]]
5376 [[Article(context)|Article]]
5377 [[Bar:Article(context)|Article]]
5378 [[:Bar:Article(context)|Article]]
5379 [[Article(context)]]
5381 [[:Bar:X(Y)Z|X(Y)Z]]
5385 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5389 [[Article (context)|]]
5390 [[Bar:Article (context)|]]
5391 [[:Bar:Article (context)|]]
5392 [[|Article (context)]]
5396 [[Article (context)|Article]]
5397 [[Bar:Article (context)|Article]]
5398 [[:Bar:Article (context)|Article]]
5399 [[Article (context)]]
5400 [[Bar:X (Y) Z|X (Y) Z]]
5401 [[:Bar:X (Y) Z|X (Y) Z]]
5405 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5409 [[Article(context)|]]
5410 [[Bar:Article(context)|]]
5411 [[:Bar:Article(context)|]]
5412 [[|Article(context)]]
5416 [[Article(context)|Article]]
5417 [[Bar:Article(context)|Article]]
5418 [[:Bar:Article(context)|Article]]
5419 [[Article(context)]]
5421 [[:Bar:X(Y)Z|X(Y)Z]]
5425 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5429 [[Article (context), context|]]
5430 [[Article (context),context|]]
5431 [[Bar:Article (context), context|]]
5432 [[Bar:Article (context),context|]]
5433 [[:Bar:Article (context), context|]]
5434 [[:Bar:Article (context),context|]]
5436 [[Article (context), context|Article]]
5437 [[Article (context),context|Article]]
5438 [[Bar:Article (context), context|Article]]
5439 [[Bar:Article (context),context|Article]]
5440 [[:Bar:Article (context), context|Article]]
5441 [[:Bar:Article (context),context|Article]]
5445 pre-save transform: trim trailing empty lines
5449 Empty lines are trimmed
5455 Empty lines are trimmed
5459 pre-save transform: Signature expansion
5464 * <noinclude>~~~</noinclude>
5465 * <includeonly>~~~</includeonly>
5466 * <onlyinclude>~~~</onlyinclude>
5468 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5469 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5470 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5471 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5476 pre-save transform: Signature expansion in nowiki tags (bug 93)
5482 <nowiki>~~~~</nowiki>
5484 <includeonly><nowiki>~~~~</nowiki></includeonly>
5486 <noinclude><nowiki>~~~~</nowiki></noinclude>
5488 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5490 {{subst:Foo}} shall be converted to FOO
5492 As well as inside noinclude/onlyinclude
5493 <noinclude>{{subst:Foo}}</noinclude>
5494 <onlyinclude>{{subst:Foo}}</onlyinclude>
5496 But not inside includeonly
5497 <includeonly>{{subst:Foo}}</includeonly>
5501 <nowiki>~~~~</nowiki>
5503 <includeonly><nowiki>~~~~</nowiki></includeonly>
5505 <noinclude><nowiki>~~~~</nowiki></noinclude>
5507 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5509 FOO shall be converted to FOO
5511 As well as inside noinclude/onlyinclude
5512 <noinclude>FOO</noinclude>
5513 <onlyinclude>FOO</onlyinclude>
5515 But not inside includeonly
5516 <includeonly>{{subst:Foo}}</includeonly>
5520 ### Message transform tests
5523 message transform: magic variables
5533 message transform: should not transform wiki markup
5543 message transform: <noinclude> in transcluded template (bug 4926)
5553 message transform: <onlyinclude> in transcluded template (bug 4926)
5563 {{#special:}} page name, known
5567 {{#special:Recentchanges}}
5569 Special:RecentChanges
5573 {{#special:}} page name with subpage, known
5577 {{#special:Recentchanges/param}}
5579 Special:RecentChanges/param
5583 {{#special:}} page name, unknown
5587 {{#special:foobarnonexistent}}
5589 No such special page
5593 {{#speciale:}} page name, known
5597 {{#speciale:Recentchanges}}
5599 Special:RecentChanges
5603 {{#speciale:}} page name with subpage, known
5607 {{#speciale:Recentchanges/param}}
5609 Special:RecentChanges/param
5613 {{#speciale:}} page name, unknown
5617 {{#speciale:foobarnonexistent}}
5619 No_such_special_page
5628 [[Image:foobar.jpg]]
5630 <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>
5637 [[Image:foobar.jpg|right]]
5639 <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>
5644 Simple image (using File: namespace, now canonical)
5648 <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>
5655 [[Image:foobar.jpg|right|Caption text]]
5657 <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>
5662 Image with empty attribute
5664 [[Image:foobar.jpg|right||Caption text]]
5666 <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>
5671 Image with link tails
5673 123[[Image:foobar.jpg]]456
5674 123[[Image:foobar.jpg|right]]456
5675 123[[Image:foobar.jpg|thumb]]456
5677 <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
5679 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
5680 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
5685 Image with multiple captions -- only last one is accepted
5687 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5689 <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>
5694 Image with link parameter, wiki target
5696 [[Image:foobar.jpg|link=Target page]]
5698 <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>
5703 Image with link parameter, URL target
5705 [[Image:foobar.jpg|link=http://example.com/]]
5707 <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>
5712 Image with link parameter, wgExternalLinkTarget
5714 [[Image:foobar.jpg|link=http://example.com/]]
5716 wgExternalLinkTarget='foobar'
5718 <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>
5723 Image with link parameter, wgNoFollowLinks set to false
5725 [[Image:foobar.jpg|link=http://example.com/]]
5727 wgNoFollowLinks=false
5729 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5734 Image with link parameter, wgNoFollowDomainExceptions
5736 [[Image:foobar.jpg|link=http://example.com/]]
5738 wgNoFollowDomainExceptions='example.com'
5740 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5745 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5747 [[Image:foobar.jpg|link=http://example.com/|Title]]
5749 wgExternalLinkTarget='foobar'
5751 <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>
5756 Image with empty link parameter
5758 [[Image:foobar.jpg|link=]]
5760 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5765 Image with link parameter (wiki target) and unnamed parameter
5767 [[Image:foobar.jpg|link=Target page|Title]]
5769 <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>
5774 Image with link parameter (URL target) and unnamed parameter
5776 [[Image:foobar.jpg|link=http://example.com/|Title]]
5778 <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>
5783 Thumbnail image with link parameter
5785 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5787 <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>
5792 Image with frame and link
5794 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5796 <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>
5801 Image with frame and link and explicit alt
5803 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5805 <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>
5810 Image with wiki markup in implicit alt
5812 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5814 <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>
5819 Image with wiki markup in explicit alt
5821 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5823 <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>
5828 Link to image page- image page normally doesn't exists, hence edit link
5829 Add test with existing image page
5830 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5834 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5839 bug 18784 Link to non-existent image page with caption should use caption as link text
5841 [[:Image:test|caption]]
5843 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5848 Frameless image caption with a free URL
5850 [[Image:foobar.jpg|http://example.com]]
5852 <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>
5857 Thumbnail image caption with a free URL
5859 [[Image:foobar.jpg|thumb|http://example.com]]
5861 <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>
5866 Thumbnail image caption with a free URL and explicit alt
5868 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5870 <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>
5875 BUG 1887: A ISBN with a thumbnail
5877 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5879 <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>
5884 BUG 1887: A RFC with a thumbnail
5886 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5888 <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>
5893 BUG 1887: A mailto link with a thumbnail
5895 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5897 <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>
5901 # Pending resolution to bug 368
5903 BUG 648: Frameless image caption with a link
5905 [[Image:foobar.jpg|text with a [[link]] in it]]
5907 <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>
5912 BUG 648: Frameless image caption with a link (suffix)
5914 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5916 <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>
5921 BUG 648: Frameless image caption with an interwiki link
5923 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5925 <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>
5930 BUG 648: Frameless image caption with a piped interwiki link
5932 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5934 <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>
5939 Escape HTML special chars in image alt text
5941 [[Image:foobar.jpg|& < > "]]
5943 <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>
5948 BUG 499: Alt text should have Ӓ, not &1234;
5950 [[Image:foobar.jpg|♀]]
5952 <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>
5957 Broken image caption with link
5959 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5961 <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.
5966 Image caption containing another image
5968 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5970 <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>
5975 Image caption containing a newline
5977 [[Image:Foobar.jpg|This
5980 <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>
5986 Bug 3090: External links other than http: in image captions
5988 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5990 <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>
5997 [[Image:foobar.jpg|a|class=b]]
5999 <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>
6006 #REDIRECT [[File:Barfoo.jpg]]
6012 [[Image:Barfoo.jpg]]
6014 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6019 Missing image with uploads disabled
6023 [[Image:Foobaz.jpg]]
6025 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6034 Subpage test/subpage
6042 subpage title=[[Subpage test]]
6046 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6051 Subpage noslash link
6053 subpage title=[[Subpage test]]
6057 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6066 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6071 BUG 561: {{/Subpage}}
6073 subpage title=[[Page]]
6077 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6085 Category:MediaWiki User's Guide
6093 [[:Category:MediaWiki User's Guide]]
6095 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6104 [[Category:MediaWiki User's Guide]]
6106 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6110 PAGESINCATEGORY invalid title fatal (r33546 fix)
6112 {{PAGESINCATEGORY:<bogus>}}
6119 Category with different sort key
6123 [[Category:MediaWiki User's Guide|Foo]]
6125 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6129 Category with identical sort key
6133 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6135 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6139 Category with empty sort key
6144 [[Category:MediaWiki User's Guide|]]
6146 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6150 Category with empty sort key and parentheses
6155 [[Category:Foo (bar)|]]
6157 [[Category:Foo (bar)|Foo]]
6161 Category with link tail
6166 123[[Category:Foo]]456
6168 123[[Category:Foo]]456
6172 Category with template
6177 [[Category:{{echo|Foo}}]]
6179 [[Category:{{echo|Foo}}]]
6183 Category with template in sort key
6188 [[Category:Foo|{{echo|Bar}}]]
6190 [[Category:Foo|{{echo|Bar}}]]
6194 Category with template in sort key and title
6199 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6201 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6205 ### Inter-language links
6208 Inter-language links
6214 [[zh:食品]]
6216 es:Alimento fr:Nourriture zh:食品
6220 Duplicate interlanguage links (bug 24502)
6236 Basic section headings
6243 ===Smaller headline===
6246 <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>
6249 <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>
6252 <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>
6258 Section headings with TOC
6261 === Subheadline 1 ===
6262 ===== Skipping a level =====
6263 ====== Skipping a level ======
6267 ===Another headline===
6269 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6271 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6273 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6275 <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>
6277 <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>
6284 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6286 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6291 <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>
6292 <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>
6293 <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>
6294 <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>
6295 <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>
6298 <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>
6302 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6304 Handling of sections up to level 6 and beyond
6307 == Level 2 Heading==
6308 === Level 3 Heading===
6309 ==== Level 4 Heading====
6310 ===== Level 5 Heading=====
6311 ====== Level 6 Heading======
6312 ======= Level 7 Heading=======
6313 ======== Level 8 Heading========
6314 ========= Level 9 Heading=========
6315 ========== Level 10 Heading==========
6317 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6319 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6321 <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>
6323 <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>
6325 <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>
6327 <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>
6329 <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>
6330 <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>
6331 <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>
6332 <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>
6333 <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>
6346 <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>
6347 <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>
6348 <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>
6349 <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>
6350 <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>
6351 <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>
6352 <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>
6353 <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>
6354 <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>
6355 <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>
6360 TOC regression (bug 9764)
6364 ==== title 1.1.1 ====
6369 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6371 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6373 <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>
6375 <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>
6378 <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>
6381 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6383 <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>
6388 <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>
6389 <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>
6390 <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>
6391 <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>
6392 <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>
6393 <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>
6398 TOC with wgMaxTocLevel=3 (bug 6204)
6404 ==== title 1.1.1 ====
6409 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6411 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6413 <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>
6414 <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>
6417 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6419 <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>
6424 <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>
6425 <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>
6426 <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>
6427 <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>
6428 <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>
6429 <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>
6434 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6440 ====Section 1.1.1====
6441 ====Section 1.1.1.1====
6444 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6446 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6448 <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>
6451 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6454 <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>
6455 <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>
6456 <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>
6457 <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>
6458 <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>
6464 Resolving duplicate section names
6469 <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>
6470 <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>
6475 Resolving duplicate section names with differing case (bug 10721)
6480 <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>
6481 <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>
6493 Template with sections, __NOTOC__
6500 <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>
6501 <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>
6502 <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>
6503 <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>
6508 __NOEDITSECTION__ keyword
6514 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6515 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6520 Link inside a section heading
6522 ==Section with a [[Main Page|link]] in it==
6524 <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>
6529 TOC regression (bug 12077)
6536 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6538 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6540 <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>
6543 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6546 <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>
6547 <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>
6548 <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>
6553 BUG 1219 URL next to image (good)
6555 http://example.com [[Image:foobar.jpg]]
6557 <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>
6562 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6565 The line above must have a trailing space!
6568 But just in case it doesn't...
6570 <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>
6571 <p>The line above must have a trailing space!
6573 <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>
6574 <p>But just in case it doesn't...
6579 Header with special characters (bug 25462)
6581 The tooltips shall not show entities to the user (ie. be double escaped)
6598 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6600 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6602 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6603 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6604 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6605 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6606 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6609 <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>
6612 <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>
6615 <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>
6618 <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>
6621 <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>
6627 Headers with excess '=' characters
6628 (Are similar tests necessary beyond the 1st level?)
6632 =''italic'' heading==
6633 ==''italic'' heading=
6635 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6637 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6638 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6639 <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>
6640 <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>
6643 <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>
6644 <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>
6645 <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>
6646 <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>
6651 BUG 1219 URL next to image (broken)
6653 http://example.com[[Image:foobar.jpg]]
6655 <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>
6660 Bug 1186 news: in the middle of text
6662 http://en.wikinews.org/wiki/Wikinews:Workplace
6664 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6670 Namespaced link must have a title
6679 Namespaced link must have a title (bad fragment version)
6681 [[Project:#fragment]]
6683 <p>[[Project:#fragment]]
6689 div with no attributes
6691 <div>HTML rocks</div>
6693 <div>HTML rocks</div>
6698 div with double-quoted attribute
6700 <div id="rock">HTML rocks</div>
6702 <div id="rock">HTML rocks</div>
6707 div with single-quoted attribute
6709 <div id='rock'>HTML rocks</div>
6711 <div id="rock">HTML rocks</div>
6716 div with unquoted attribute
6718 <div id=rock>HTML rocks</div>
6720 <div id="rock">HTML rocks</div>
6725 div with illegal double attributes
6727 <div id="a" id="b">HTML rocks</div>
6729 <div id="b">HTML rocks</div>
6734 HTML multiple attributes correction
6736 <p class="error" class="awesome">Awesome!</p>
6738 <p class="awesome">Awesome!</p>
6743 Table multiple attributes correction
6746 !+ class="error" class="awesome"| status
6751 <th class="awesome"> status
6759 <DIV ID="x">HTML ROCKS</DIV>
6761 <div id="x">HTML ROCKS</div>
6767 text with amp in the middle of nowhere
6771 <p>Remember AT&T?
6776 text with character entity: eacute
6778 I always thought é was a cute letter.
6780 <p>I always thought é was a cute letter.
6785 text with undefined character entity: xacute
6787 I always thought &xacute; was a cute letter.
6789 <p>I always thought &xacute; was a cute letter.
6801 [[Media:Foobar.jpg]]
6803 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6808 Media link with text
6810 [[Media:Foobar.jpg|A neat file to look at]]
6812 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6816 # FIXME: this is still bad HTML tag nesting
6818 Media link with nasty text
6819 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6821 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6823 <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>
6828 Media link to nonexistent file (bug 1702)
6830 [[Media:No such.jpg]]
6832 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6837 Image link to nonexistent file (bug 1850 - good)
6839 [[Image:No such.jpg]]
6841 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6846 :Image link to nonexistent file (bug 1850 - bad)
6848 [[:Image:No such.jpg]]
6850 <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>
6857 Character reference normalization in link text (bug 1938)
6859 [[Main Page|this&that]]
6861 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6868 Test for unicode normalization
6870 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6874 (bug 19451) Links should refer to the normalized form.
6882 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6883 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6884 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6885 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6886 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6891 Empty attribute crash test (bug 2067)
6893 <font color="">foo</font>
6895 <p><font color="">foo</font>
6900 Empty attribute crash test single-quotes (bug 2067)
6902 <font color=''>foo</font>
6904 <p><font color="">foo</font>
6909 Attribute test: equals, then nothing
6911 <font color=>foo</font>
6918 Attribute test: unquoted value
6920 <font color=x>foo</font>
6922 <p><font color="x">foo</font>
6927 Attribute test: unquoted but illegal value (hash)
6929 <font color=#x>foo</font>
6931 <p><font color="#x">foo</font>
6936 Attribute test: no value
6938 <font color>foo</font>
6940 <p><font color="color">foo</font>
6945 Bug 2095: link with three closing brackets
6949 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6954 Bug 2095: link with pipe and three closing brackets
6958 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6963 Bug 2095: link with pipe and three closing brackets, version 2
6965 [[Main Page|[http://example.com/]]]
6967 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6977 Template:Dangerous attribute
6979 " onmouseover="alert(document.cookie)
6983 Template:Dangerous style attribute
6985 border-size: expression(alert(document.cookie))
6991 <div style="float: right; {{{1}}}">Magic div</div>
6995 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6997 <div title="{{test}}"></div>
6999 <div title="This is a test template"></div>
7004 Bug 2304: HTML attribute safety (dangerous template; 2309)
7006 <div title="{{dangerous attribute}}"></div>
7008 <div title=""></div>
7013 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7015 <div style="{{dangerous style attribute}}"></div>
7017 <div style="/* insecure input */"></div>
7022 Bug 2304: HTML attribute safety (safe parameter; 2309)
7024 {{div style|width: 200px}}
7026 <div style="float: right; width: 200px">Magic div</div>
7031 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7033 {{div style|width: expression(alert(document.cookie))}}
7035 <div style="/* insecure input */">Magic div</div>
7040 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7042 {{div style|"><script>alert(document.cookie)</script>}}
7044 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7049 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7051 {{div style|" ><script>alert(document.cookie)</script>}}
7053 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7058 Bug 2304: HTML attribute safety (link)
7060 <div title="[[Main Page]]"></div>
7062 <div title="[[Main Page]]"></div>
7067 Bug 2304: HTML attribute safety (italics)
7069 <div title="''foobar''"></div>
7071 <div title="''foobar''"></div>
7076 Bug 2304: HTML attribute safety (bold)
7078 <div title="'''foobar'''"></div>
7080 <div title="'''foobar'''"></div>
7086 Bug 2304: HTML attribute safety (ISBN)
7088 <div title="ISBN 1234567890"></div>
7090 <div title="ISBN 1234567890"></div>
7095 Bug 2304: HTML attribute safety (RFC)
7097 <div title="RFC 1234"></div>
7099 <div title="RFC 1234"></div>
7104 Bug 2304: HTML attribute safety (PMID)
7106 <div title="PMID 1234567890"></div>
7108 <div title="PMID 1234567890"></div>
7113 Bug 2304: HTML attribute safety (web link)
7115 <div title="http://example.com/"></div>
7117 <div title="http://example.com/"></div>
7122 Bug 2304: HTML attribute safety (named web link)
7124 <div title="[http://example.com/ link]"></div>
7126 <div title="[http://example.com/ link]"></div>
7131 Bug 3244: HTML attribute safety (extension; safe)
7133 <div style="<nowiki>background:blue</nowiki>"></div>
7135 <div style="background:blue"></div>
7140 Bug 3244: HTML attribute safety (extension; unsafe)
7142 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7144 <div style="/* insecure input */"></div>
7148 # More MSIE fun discovered by Tom Gilder
7151 MSIE CSS safety test: spurious slash
7153 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7155 <div style="/* insecure input */">evil</div>
7160 MSIE CSS safety test: hex code
7162 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7164 <div style="/* insecure input */">evil</div>
7169 MSIE CSS safety test: comment in url
7171 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7173 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7178 MSIE CSS safety test: comment in expression
7180 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7182 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7188 Table attribute legitimate extension
7191 !+ style="<nowiki>color:blue</nowiki>"| status
7196 <th style="color:blue"> status
7202 Table attribute safety
7205 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7210 <th style="/* insecure input */"> status
7216 CSS line continuation 1
7218 <div style="background-image: u\ rl(test.jpg);"></div>
7220 <div style="/* insecure input */"></div>
7225 CSS line continuation 2
7227 <div style="background-image: u\ rl(test.jpg); "></div>
7229 <div style="/* insecure input */"></div>
7240 Expansion of multi-line templates in attribute values (bug 6255)
7242 <div style="background: {{identity|#00FF00}}">-</div>
7244 <div style="background: #00FF00">-</div>
7250 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7252 <div style="background:
7255 <div style="background: #00FF00">-</div>
7260 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7262 <div style="background: #00FF00">-</div>
7264 <div style="background: #00FF00">-</div>
7269 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7272 Parser hook: empty input
7285 Parser hook: empty input using terminated empty elements
7298 Parser hook: empty input using terminated empty elements (space before)
7311 Parser hook: basic input
7325 Parser hook: case insensitive
7339 Parser hook: case insensitive, redux
7352 Parser hook: nested tags
7356 <tag><tag></tag></tag>
7367 Parser hook: basic arguments
7369 <tag width=200 height = "100" depth = '50' square></tag>
7377 'square' => 'square',
7384 Parser hook: argument containing a forward slash (bug 5344)
7386 <tag filename='/tmp/bla'></tag>
7391 'filename' => '/tmp/bla',
7398 Parser hook: empty input using terminated empty elements (bug 2374)
7411 # </tag> should be output literally since there is no matching tag that begins it
7413 Parser hook: basic arguments using terminated empty elements (bug 2374)
7415 <tag width=200 height = "100" depth = '50' square/>
7425 'square' => 'square',
7434 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7438 Parser hook: static parser hook not inside a comment
7440 <statictag>hello, world</statictag>
7441 <statictag action=flush/>
7449 Parser hook: static parser hook inside a comment
7451 <!-- <statictag>hello, world</statictag> -->
7452 <statictag action=flush/>
7458 # Nested template calls; this case was broken by Parser.php rev 1.506,
7462 Template:One-parameter
7464 (My parameter is: {{{1}}})
7468 Template:Map-one-parameter
7474 Nested template calls
7476 {{Map-one-parameter|One-parameter|param}}
7478 <p>(My parameter is: param)
7487 Sanitizer: Closing of open tags
7489 <s></s><table></table>
7491 <s></s><table></table>
7496 Sanitizer: Closing of open but not closed tags
7505 Sanitizer: Closing of closed but not open tags
7514 Sanitizer: Closing of closed but not open table tags
7516 Table not started</td></tr></table>
7518 <p>Table not started</td></tr></table>
7523 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7525 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7527 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7532 Sanitizer: Validating the contents of the id attribute (bug 4515)
7538 Something, but definitely not <br id="9" />...
7542 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7546 <br id="foo" /><br id="foo" />
7548 Something need to be done. foo-2 ?
7552 Language converter: output gets cut off unexpectedly (bug 5757)
7556 this bit is safe: }-
7558 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7560 then we get cut off here: }-
7562 all additional text is vanished
7564 <p>this bit is safe: }-
7565 </p><p>but if we add a conversion instance: xxx
7566 </p><p>then we get cut off here: }-
7567 </p><p>all additional text is vanished
7572 Self closed html pairs (bug 5487)
7575 <center><font id="bug" />Centered text</center>
7576 <div><font id="bug2" />In div text</div>
7578 <center><font id="bug" />Centered text</center>
7579 <div><font id="bug2" />In div text</div>
7588 Punctuation: nbsp before exclamation
7592 <p>C'est grave !
7597 Punctuation: CSS !important (bug 11874)
7599 <div style="width:50% !important">important</div>
7601 <div style="width:50% !important">important</div>
7606 Punctuation: CSS ! important (bug 11874; with space after)
7608 <div style="width:50% ! important">important</div>
7610 <div style="width:50% ! important">important</div>
7616 HTML bullet list, closed tags (bug 5497)
7631 HTML bullet list, unclosed tags (bug 5497)
7648 HTML ordered list, closed tags (bug 5497)
7663 HTML ordered list, unclosed tags (bug 5497)
7680 HTML nested bullet list, closed tags (bug 5497)
7705 HTML nested bullet list, open tags (bug 5497)
7730 HTML nested ordered list, closed tags (bug 5497)
7755 HTML nested ordered list, open tags (bug 5497)
7780 HTML ordered list item with parameters oddity
7782 <ol><li id="fragment">One</li></ol>
7784 <ol><li id="fragment">One</li></ol>
7789 bug 5918: autonumbering
7791 [http://first/] [http://second] [ftp://ftp]
7795 [mailto:enclosed@mail.tld With target]
7797 [mailto:enclosed@mail.tld]
7799 mailto:inline@mail.tld
7801 <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>
7802 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7803 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7804 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7805 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7811 # Security and HTML correctness
7812 # From Nick Jenkins' fuzz testing
7816 Fuzz testing: Parser13
7831 Fuzz testing: Parser14
7836 <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>
7837 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7839 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7846 Fuzz testing: Parser14-table
7851 <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>
7852 <table style="__TOC__">
7858 # Known to produce bogus xml (extra </td>)
7860 Fuzz testing: Parser16
7880 Fuzz testing: Parser21
7883 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7888 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7898 Fuzz testing: Parser22
7900 http://===r:::https://b
7904 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7912 # Known to produce bad XML for now
7914 Fuzz testing: Parser24
7921 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7922 <br style="onmouseover='alert(document.cookie);' " />
7924 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7929 <u class="|">}}}} >
7930 <br style="onmouseover='alert(document.cookie);'" />
7932 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7941 # Note: the current result listed for this is not what the original one was,
7942 # but the original bug was JavaScript injection, which is fixed in any case.
7943 # It's not clear that the original result listed was any more correct than the
7944 # current one. Original result:
7947 # <li class="||">
7948 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7950 Fuzz testing: Parser25 (bug 6055)
7956 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7958 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7963 Fuzz testing: URL adjacent extension (with space, clean)
7966 http://example.com <nowiki>junk</nowiki>
7968 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7973 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7976 http://example.com<nowiki>junk</nowiki>
7978 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7983 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7986 http://example.com<pre>junk</pre>
7988 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7993 Fuzz testing: image with bogus manual thumbnail
7995 [[Image:foobar.jpg|thumbnail= ]]
7997 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8002 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8004 <pre dir=" "></pre>
8006 <pre dir=" "></pre>
8011 Parsing optional HTML elements (Bug 6171)
8016 <td> Some tabular data</td>
8017 <td> More tabular data ...
8018 <td> And yet som tabular data</td>
8024 <td> Some tabular data</td>
8025 <td> More tabular data ...
8026 </td><td> And yet som tabular data</td>
8033 Correct handling of <td>, <tr> (Bug 6171)
8038 <td> Some tabular data</td>
8039 <td> More tabular data ...</td>
8040 <td> And yet som tabular data</td>
8046 <td> Some tabular data</td>
8047 <td> More tabular data ...</td>
8048 <td> And yet som tabular data</td>
8056 Parsing crashing regression (fr:JavaScript)
8060 <p></body></x>
8065 Inline wiki vs wiki block nesting
8071 <p><b>Bold paragraph</b>
8072 </p><p>New wiki paragraph
8077 Inline HTML vs wiki block nesting
8085 <p><b>Bold paragraph</b>
8086 </p><p>New wiki paragraph
8090 # Original result was this:
8091 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8093 # While that might be marginally more intuitive, maybe, the six-apostrophe
8094 # construct is clearly pathological and the result stated here (which is what
8095 # the parser actually does) is about as reasonable as anything.
8097 Mixing markup for italics and bold
8100 '''bold''''''bold''bolditalics'''''
8102 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8110 Article for special page transclusion test
8114 Special page transclusion
8117 {{Special:Prefixindex/Xyzzyx}}
8119 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8124 Special page transclusion twice (bug 5021)
8127 {{Special:Prefixindex/Xyzzyx}}
8128 {{Special:Prefixindex/Xyzzyx}}
8130 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8131 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8136 Transclusion of default MediaWiki message
8138 {{MediaWiki:Mainpage}}
8145 Transclusion of nonexistent MediaWiki message
8147 {{MediaWiki:Mainpagexxx}}
8149 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8154 Transclusion of MediaWiki message with underscore
8156 {{MediaWiki:history_short}}
8163 Transclusion of MediaWiki message with space
8165 {{MediaWiki:history short}}
8172 Invalid header with following text
8182 Section extraction test (section 0)
8202 Section extraction test (section 1)
8224 Section extraction test (section 2)
8245 Section extraction test (section 3)
8265 Section extraction test (section 4)
8289 Section extraction test (section 5)
8309 Section extraction test (section 6)
8330 Section extraction test (section 7)
8350 Section extraction test (section 8)
8370 Section extraction test (section 9)
8391 Section extraction test (section 10)
8411 Section extraction test (nonexistent section 11)
8430 Section extraction test with bogus heading (section 1)
8435 ==bogus== not a legal section
8439 ==bogus== not a legal section
8443 Section extraction test with bogus heading (section 2)
8448 ==bogus== not a legal section
8455 Section extraction test with comment after heading (section 1)
8467 Section extraction test with comment after heading (section 2)
8479 Section extraction test with bogus <nowiki> heading (section 1)
8484 ==bogus== <nowiki>not a legal section</nowiki>
8488 ==bogus== <nowiki>not a legal section</nowiki>
8492 Section extraction test with bogus <nowiki> heading (section 2)
8497 ==bogus== <nowiki>not a legal section</nowiki>
8504 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8505 # instead of respecting commented sections
8507 Section extraction prefixed by comment (section 1)
8518 Section extraction prefixed by comment (section 2)
8529 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8530 # instead of respecting HTML-style headings
8532 Section extraction, mixed wiki and html (section 1)
8548 Section extraction, mixed wiki and html (section 2)
8564 # Formerly testing for bug 3342
8566 Section extraction, heading surrounded by <noinclude>
8570 <noinclude>==unmarked==</noinclude>
8576 # Test behaviour of bug 19910
8578 Sectiion with all-equals
8583 The line above must have a trailing space
8586 But just in case it doesn't...
8590 But just in case it doesn't...
8594 Section replacement test (section 0)
8625 Section replacement test (section 1)
8654 Section replacement test (section 2)
8684 Section replacement test (section 3)
8715 Section replacement test (section 4)
8742 Section replacement test (section 5)
8773 Section replacement test (section 6)
8803 Section replacement test (section 7)
8834 Section replacement test (section 8)
8865 Section replacement test (section 9)
8894 Section replacement test (section 10)
8924 Section replacement test with initial whitespace (bug 13728)
8928 Preformatted initial line
8932 Preformatted initial line
8939 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8951 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8964 Section extraction, <pre> around bogus header (bug 10309)
8981 Section replacement, <pre> around bogus header (bug 10309)
8983 noxml replace=2,"xxx"
9004 Handling of 
 in URLs
9008 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9015 5 quotes, code coverage +1 line
9022 Special:Search page linking.
9026 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9041 * {{SUBJECTPAGENAME}}
9042 * {{SUBJECTPAGENAMEE}}
9049 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9051 <ul><li> Parser test
9052 </li><li> Parser test
9053 </li><li> Parser test
9054 </li><li> Parser_test
9055 </li><li> Parser test
9056 </li><li> Parser_test
9057 </li><li> Talk:Parser test
9058 </li><li> Talk:Parser_test
9059 </li><li> Parser test
9060 </li><li> Parser_test
9067 </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>
9071 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9081 image4 |300px| centre
9082 image5.svg| http://///////
9087 <ul class="gallery">
9088 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9089 <div style="height: 150px;">Image1.png</div>
9090 <div class="gallerytext">
9093 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9094 <div style="height: 150px;">Image2.gif</div>
9095 <div class="gallerytext">
9100 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9101 <div style="height: 150px;">Image3</div>
9102 <div class="gallerytext">
9105 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9106 <div style="height: 150px;">Image4</div>
9107 <div class="gallerytext">
9112 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9113 <div style="height: 150px;">Image5.svg</div>
9114 <div class="gallerytext">
9115 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9119 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9120 <div style="height: 150px;">* image6</div>
9121 <div class="gallerytext">
9129 Gallery (with options)
9131 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9132 File:Nonexistant.jpg|caption
9133 File:Nonexistant.jpg
9134 image:foobar.jpg|some '''caption''' [[Main Page]]
9136 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9139 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9140 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9141 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9142 <div style="height: 70px;">Nonexistant.jpg</div>
9143 <div class="gallerytext">
9148 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9149 <div style="height: 70px;">Nonexistant.jpg</div>
9150 <div class="gallerytext">
9153 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9154 <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>
9155 <div class="gallerytext">
9156 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9160 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9161 <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>
9162 <div class="gallerytext">
9165 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9166 <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>
9167 <div class="gallerytext">
9177 Gallery with wikitext inside caption
9180 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9181 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9184 <ul class="gallery">
9185 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9186 <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>
9187 <div class="gallerytext">
9188 <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>
9192 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9193 <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>
9194 <div class="gallerytext">
9195 <p>This is a test template
9204 gallery (with showfilename option)
9206 <gallery showfilename>
9207 File:Nonexistant.jpg|caption
9208 File:Nonexistant.jpg
9209 image:foobar.jpg|some '''caption''' [[Main Page]]
9213 <ul class="gallery">
9214 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9215 <div style="height: 150px;">Nonexistant.jpg</div>
9216 <div class="gallerytext">
9217 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9222 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9223 <div style="height: 150px;">Nonexistant.jpg</div>
9224 <div class="gallerytext">
9225 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9229 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9230 <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>
9231 <div class="gallerytext">
9232 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9233 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9237 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9238 <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>
9239 <div class="gallerytext">
9240 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9249 Gallery (with namespace-less filenames)
9252 File:Nonexistant.jpg
9258 <ul class="gallery">
9259 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9260 <div style="height: 150px;">Nonexistant.jpg</div>
9261 <div class="gallerytext">
9264 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9265 <div style="height: 150px;">Nonexistant.jpg</div>
9266 <div class="gallerytext">
9269 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9270 <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>
9271 <div class="gallerytext">
9274 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9275 <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>
9276 <div class="gallerytext">
9284 HTML Hex character encoding (spells the word "JavaScript")
9286 JavaScript
9288 <p>JavaScript
9293 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9297 <p>&#xsee;&#XSEE;
9302 HTML Hex character encoding mixed case
9311 __FORCETOC__ override
9323 ISBN 978-0-1234-56 789
9325 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9330 ISBN followed by 5 spaces
9341 ISBN ISBN 1234567890
9343 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9348 Bug 22905: <abbr> followed by ISBN followed by </a>
9350 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9352 <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>
9361 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9366 Double RFC with a wiki link
9370 <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>
9379 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9384 Centre-aligned image
9386 [[Image:foobar.jpg|centre]]
9388 <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>
9395 [[Image:foobar.jpg|none]]
9397 <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>
9402 Width + Height sized image (using px) (height is ignored)
9404 [[Image:foobar.jpg|640x480px]]
9406 <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>
9411 Width-sized image (using px, no following whitespace)
9413 [[Image:foobar.jpg|640px]]
9415 <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>
9420 Width-sized image (using px, with following whitespace - test regression from r39467)
9422 [[Image:foobar.jpg|640px ]]
9424 <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>
9429 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9431 [[Image:foobar.jpg| 640px]]
9433 <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>
9438 Another italics / bold test
9446 # Note the results may be incorrect, as parserTest output included this:
9447 # XML error: Mismatched tag at byte 6120:
9448 # ...<dd> </dt></dl> </dd...
9456 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9467 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9469 Images with the "|" character in the comment
9471 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9473 <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>
9478 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9480 <html><script>alert(1);</script></html>
9482 <p><html><script>alert(1);</script></html>
9487 HTML with raw HTML ($wgRawHtml==true)
9491 <html><script>alert(1);</script></html>
9493 <p><script>alert(1);</script>
9498 Parents of subpages, one level up
9500 subpage title=[[Subpage test/L1/L2/L3]]
9504 <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>
9510 Parents of subpages, one level up, not named
9512 subpage title=[[Subpage test/L1/L2/L3]]
9516 <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>
9523 Parents of subpages, two levels up
9525 subpage title=[[Subpage test/L1/L2/L3]]
9531 <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
9532 </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>
9537 Parents of subpages, two levels up, without trailing slash or name.
9539 subpage title=[[Subpage test/L1/L2/L3]]
9548 Parents of subpages, two levels up, with lots of extra trailing slashes.
9550 subpage title=[[Subpage test/L1/L2/L3]]
9554 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9559 Definition list code coverage
9565 <dl><dt> title  </dt><dd> def
9566 </dd><dt> title </dt><dd> def
9567 </dd><dt>title</dt><dd> def
9573 Don't fall for the self-closing div
9575 <div>hello world</div/>
9577 <div>hello world</div>
9586 <p>[[:Template:Msg]]
9595 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9599 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9601 Always escape literal '>' in output, not just after '<'
9615 <p>This is a test template
9616 This is a test template
9628 Inclusion of !userCanEdit() content
9632 <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>
9638 Out-of-order TOC heading levels
9647 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9649 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9651 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9652 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9655 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9657 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9658 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9663 <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>
9664 <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>
9665 <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>
9666 <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>
9667 <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>
9668 <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>
9674 ISBN with a dummy number
9684 ISBN with space-delimited number
9688 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9694 ISBN with multiple spaces, no number
9713 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9714 </p><p>ISBN 12345678901
9720 ISBN with trailing year (bug 8110)
9722 ISBN 1-234-56789-0 - 2006
9724 ISBN 1 234 56789 0 - 2006
9726 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9727 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9735 {{anchorencode:foo bar©#%n}}
9737 <p>foo_bar.C2.A9.23.25n
9742 anchorencode trims spaces
9744 {{anchorencode: __pretty__please__}}
9751 anchorencode deals with links
9753 {{anchorencode: [[hello|world]] [[hi]]}}
9760 anchorencode deals with templates
9762 {{anchorencode: {{Foo}} }}
9769 anchorencode encodes like the TOC generator: (bug 18431)
9771 === _ +:.3A%3A&&]] ===
9772 {{anchorencode: _ +:.3A%3A&&]] }}
9775 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9776 <p>.2B:.3A.253A.26.26.5D.5D
9780 # Expected output in the following test is not necessarily expected (there
9781 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9782 # only testing for well-formedness.
9784 Bug 6200: blockquotes and paragraph formatting
9804 Bug 8293: Use of center tag ruins paragraph formatting
9826 ### Language variants related tests
9829 Self-link in language variants
9831 title=[[Dunav]] language=sr
9833 Both [[Dunav]] and [[Дунав]] are names for this river.
9835 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9841 Link to pages in language variants
9845 Main Page can be written as [[Маин Паге]]
9847 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9853 Multiple links to pages in language variants
9857 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9859 <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>.
9865 Simple template in language variants
9871 <p>This is a test template
9877 Template with explicit namespace in language variants
9883 <p>This is a test template
9889 Basic test for template parameter in language variants
9893 {{парамтест|param=foo}}
9895 <p>This is a test template with parameter foo
9901 Simple category in language variants
9905 [[Category:МедиаWики Усер'с Гуиде]]
9907 <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>
9912 Stripping -{}- tags (language variants)
9916 Latin proverb: -{Ne nuntium necare}-
9918 <p>Latin proverb: Ne nuntium necare
9924 Prevent conversion with -{}- tags (language variants)
9926 language=sr variant=sr-ec
9928 Latinski: -{Ne nuntium necare}-
9930 <p>Латински: Ne nuntium necare
9936 Prevent conversion of text with -{}- tags (language variants)
9938 language=sr variant=sr-ec
9940 Latinski: -{Ne nuntium necare}-
9942 <p>Латински: Ne nuntium necare
9948 Prevent conversion of links with -{}- tags (language variants)
9950 language=sr variant=sr-ec
9954 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9960 -{}- tags within headlines (within html for parserConvert())
9962 language=sr variant=sr-ec
9966 <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>
9972 Explicit definition of language variant alternatives
9974 language=zh variant=zh-tw
9976 -{zh:China;zh-tw:Taiwan}-, not China
9978 <p>Taiwan, not China
9984 Explicit session-wise language variant mapping (A flag and - flag)
9986 language=zh variant=zh-tw
9988 Taiwan is not China.
9989 But -{A|zh:China;zh-tw:Taiwan}- is China,
9990 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9991 and -{China}- is China.
9993 <p>Taiwan is not China.
9994 But Taiwan is Taiwan,
9995 (This should be stripped!)
10001 Explicit session-wise language variant mapping (H flag for hide)
10003 language=zh variant=zh-tw
10005 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10008 <p>(This should be stripped!)
10014 Adding explicit conversion rule for title (T flag)
10016 language=zh variant=zh-tw showtitle
10018 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10021 <p>Should be stripped!
10026 Testing that changing the language variant here in the tests actually works
10028 language=zh variant=zh showtitle
10030 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10033 <p>Should be stripped!
10038 Bug 24072: more test on conversion rule for title
10040 language=zh variant=zh-tw showtitle
10042 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10043 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10046 <p>This should be stripped!
10047 This won't take interferes with the title rule.
10052 Raw output of variant escape tags (R flag)
10054 language=zh variant=zh-tw
10056 Raw: -{R|zh:China;zh-tw:Taiwan}-
10058 <p>Raw: zh:China;zh-tw:Taiwan
10063 Nested using of manual convert syntax
10065 language=zh variant=zh-hk
10067 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10069 <p>Nested: Hello Hong Kong!
10074 Do not convert roman numbers to language variants
10076 language=sr variant=sr-ec
10080 <p>Фридрих IV је цар.
10085 Unclosed language converter markup "-{"
10096 Don't convert raw rule "-{R|=>}-" to "=>"
10113 Bug 529: Uncovered bullet
10124 Bug 529: Uncovered table already at line-start
10147 Bug 529: Uncovered bullet in parser function result
10149 * Foo {{lc:{{bullet}} }}
10158 Bug 5678: Double-parsed template argument
10160 {{lc:{{{1}}}|hello}}
10167 Bug 5678: Double-parsed template invocation
10169 {{lc:{{paramtest {{!}} param = hello }} }}
10171 <p>{{paramtest | param = hello }}
10176 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10179 title=[[Main Page]]
10181 {{PRVNÍVELKÉ:ěščř}}
10182 {{prvnívelké:ěščř}}
10202 Morwen/13: Unclosed link followed by heading
10209 <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>
10214 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10221 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10226 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10233 <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>
10248 Paragraphs inside divs (no extra line breaks)
10260 Paragraphs inside divs (extra line break on open)
10275 Paragraphs inside divs (extra line break on close)
10290 Paragraphs inside divs (extra line break on open and close)
10307 Nesting tags, paragraphs on lines which begin with <div>
10311 <div></div><strong>A
10320 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10322 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10326 <blockquote>Line one
10328 Line two</blockquote>
10330 <blockquote>Line one
10331 Line two</blockquote>
10336 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10343 Line two</blockquote>
10348 Line two</blockquote>
10353 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10357 <blockquote>Line one
10362 <blockquote>Line one
10370 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10389 Paragraphs inside blockquotes/divs (no extra line breaks)
10391 <blockquote><div>Line one
10393 Line two</div></blockquote>
10395 <blockquote><div>Line one
10396 Line two</div></blockquote>
10401 Paragraphs inside blockquotes/divs (extra line break on open)
10406 Line two</div></blockquote>
10411 Line two</div></blockquote>
10416 Paragraphs inside blockquotes/divs (extra line break on close)
10418 <blockquote><div>Line one
10421 </div></blockquote>
10423 <blockquote><div>Line one
10426 </div></blockquote>
10431 Paragraphs inside blockquotes/divs (extra line break on open and close)
10437 </div></blockquote>
10443 </div></blockquote>
10448 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10450 wgLinkHolderBatchSize=0
10456 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10457 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10458 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10463 Free external link invading image caption
10465 [[Image:Foobar.jpg|thumb|http://x|hello]]
10467 <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>
10472 Bug 15196: localised external link numbers
10476 [http://en.wikipedia.org/]
10478 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10483 Multibyte character in padleft
10485 {{padleft:-Hello|7|Æ}}
10492 Multibyte character in padright
10494 {{padright:Hello-|7|Æ}}
10503 wgUseDynamicDates=1
10507 <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>
10512 formatdate parser function
10514 {{#formatdate:2009-03-24}}
10516 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10521 formatdate parser function, with default format
10523 {{#formatdate:2009-03-24|mdy}}
10525 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10530 Linked date with autoformatting disabled
10532 wgUseDynamicDates=false
10536 <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>
10541 Spacing of numbers in formatted dates
10543 {{#formatdate:January 15}}
10545 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10550 Spacing of numbers in formatted dates (linked)
10552 wgUseDynamicDates=true
10556 <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>
10561 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
10563 language=nl title=[[MediaWiki:Common.css]]
10565 {{#formatdate:2009-03-24|dmy}}
10567 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10580 Edit comment with link
10584 I like the [[Main Page]] a lot
10586 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10590 Edit comment with link and link text
10594 I like the [[Main Page|best pages]] a lot
10596 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10600 Edit comment with link and link text with suffix
10604 I like the [[Main Page|best page]]s a lot
10606 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10610 Edit comment with section link (non-local, eg in history list)
10612 comment title=[[Main Page]]
10614 /* External links */ removed bogus entries
10616 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10620 Edit comment with section link and text before it (non-local, eg in history list)
10622 comment title=[[Main Page]]
10624 pre-comment text /* External links */ removed bogus entries
10626 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>
10630 Edit comment with section link (local, eg in diff view)
10632 comment local title=[[Main Page]]
10634 /* External links */ removed bogus entries
10636 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10640 Edit comment with subpage link (bug 14080)
10644 title=[[Subpage test]]
10646 Poked at a [[/subpage]] here...
10648 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10652 Edit comment with subpage link and link text (bug 14080)
10656 title=[[Subpage test]]
10658 Poked at a [[/subpage|neat little page]] here...
10660 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10664 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10667 title=[[Subpage test]]
10669 Poked at a [[/subpage]] here...
10671 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10675 Edit comment with bare anchor link (local, as on diff)
10679 title=[[Main Page]]
10683 <a href="#section">#section</a>
10687 Edit comment with bare anchor link (non-local, as on history)
10690 title=[[Main Page]]
10694 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10698 Anchor starting with underscore
10702 <p><a href="#_ref">One</a>
10707 Id starting with underscore
10709 <div id="_ref"></div>
10711 <div id="_ref"></div>
10716 Space normalisation on autocomment (bug 22784)
10719 title=[[Main Page]]
10721 /* __hello__world__ */
10723 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10727 percent-encoding and + signs in comments (Bug 26410)
10731 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10733 <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>
10737 Bad images - basic functionality
10746 Bad images - bug 16039: text after bad image disappears
10760 Verify that displaytitle works (bug #22501) no displaytitle
10764 wgAllowDisplayTitle=true
10765 wgRestrictDisplayTitle=false
10767 this is not the the title
10770 <p>this is not the the title
10775 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10780 wgAllowDisplayTitle=true
10781 wgRestrictDisplayTitle=false
10783 this is not the the title
10784 {{DISPLAYTITLE:whatever}}
10787 <p>this is not the the title
10792 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10797 wgAllowDisplayTitle=true
10798 wgRestrictDisplayTitle=true
10800 this is not the the title
10801 {{DISPLAYTITLE:whatever}}
10804 <p>this is not the the title
10809 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10814 wgAllowDisplayTitle=true
10815 wgRestrictDisplayTitle=true
10817 this is not the the title
10818 {{DISPLAYTITLE:screen}}
10821 <p>this is not the the title
10826 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10831 wgAllowDisplayTitle=false
10833 this is not the the title
10834 {{DISPLAYTITLE:screen}}
10837 <p>this is not the the title
10838 <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>
10843 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10848 wgAllowDisplayTitle=false
10850 this is not the the title
10853 <p>this is not the the title
10858 preload: check <noinclude> and <includeonly>
10862 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10868 preload: check <onlyinclude>
10872 Goodbye <onlyinclude>Hello world</onlyinclude>
10878 preload: can pass tags through if we want to
10882 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10884 <includeonly>Hello world</includeonly>
10888 preload: check that it doesn't try to do tricks
10892 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10894 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10898 Play a bit with r67090 and bug 3158
10902 <div style="width:50% !important"> </div>
10903 <div style="width:50% !important"> </div>
10904 <div style="width:50% !important"> </div>
10905 <div style="border : solid;"> </div>
10907 <div style="width:50% !important"> </div>
10908 <div style="width:50% !important"> </div>
10909 <div style="width:50% !important"> </div>
10910 <div style="border : solid;"> </div>
10915 HTML5 data attributes
10917 <span data-foo="bar">Baz</span>
10918 <p data-abc-def_hij="">Quuz</p>
10920 <p><span data-foo="bar">Baz</span>
10922 <p data-abc-def_hij="">Quuz</p>
10927 percent-encoding and + signs in internal links (Bug 26410)
10929 [[User:+%]] [[Page+title%]]
10930 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10931 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10932 [[%33%45]] [[%33%45+]]
10934 <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>
10935 <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>
10936 <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>
10937 <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>
10942 Special characters in embedded file links (bug 27679)
10944 [[File:Contains & ampersand.jpg]]
10945 [[File:Does not exist.jpg|Title with & ampersand]]
10947 <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>
10948 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10954 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10956 Text's been normalized?
10958 <p>Text's been normalized?
10963 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10965 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10967 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10972 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10974 [http://www.example.org/ ideograms]
10976 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10981 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10983 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10985 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11009 Bug 31098 Template which includes system messages which includes the template
11013 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11014 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11019 Deprecated presentational attributes are converted to css
11022 | valign=top align=left width=100 height=25% | Asdf
11024 <ul type="disc"></ul>
11028 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11030 <ul style="list-style-type: disc;"></ul>
11035 Bug31490 Turkish: ucfirst 'blah'
11046 Bug31490 Turkish: ucfirst 'ix'
11057 Bug31490 Turkish: lcfirst 'BLAH'
11068 Bug31490 Turkish: ucfırst (with a dotless i)
11074 <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>
11079 Bug31490 ucfırst (with a dotless i) with English language
11085 <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>
11090 Bug 26375: TOC with italics
11092 title=[[Main Page]]
11095 == ''Lost'' episodes ==
11097 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11099 <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>
11102 <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>
11107 Bug 26375: TOC with bold
11109 title=[[Main Page]]
11112 == '''should be bold''' then normal text ==
11114 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11116 <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>
11119 <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>
11124 Bug 33845: Headings become cursive in TOC when they contain an image
11126 title=[[Main Page]]
11129 == Image [[Image:foobar.jpg]] ==
11131 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11133 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11136 <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>
11141 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11143 title=[[Main Page]]
11146 == <blockquote>Quote</blockquote> ==
11148 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11150 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11153 <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>
11158 Unclosed tags in TOC
11160 title=[[Main Page]]
11164 <small>Hanc marginis exiguitas non caperet.</small>
11167 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11169 <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>
11172 <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>
11173 <p><small>Hanc marginis exiguitas non caperet.</small>
11179 Multiple tags in TOC
11182 == <i>Foo</i> <b>Bar</b> ==
11184 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11186 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11188 <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>
11189 <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>
11192 <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>
11193 <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>
11198 Tags with parameters in TOC
11201 == <sup class="in-h2">Hello</sup> ==
11203 == <sup class="a > b">Evilbye</sup> ==
11205 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11207 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11208 <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>
11211 <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>
11212 <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>
11217 span tags with directionality in TOC
11220 == <span dir="ltr">C++</span> ==
11222 == <span dir="rtl">זבנג!</span> ==
11224 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11226 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11228 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11230 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11232 <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>
11233 <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>
11234 <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>
11235 <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>
11236 <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>
11239 <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>
11240 <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>
11241 <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>
11242 <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>
11243 <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>
11250 == {{int:headline_sample}} ==
11254 Bug 32057: Title needed when expanding <h> nodes.
11256 title=[[Main Page]]
11260 <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>
11265 Strip marker in urlencode
11267 {{urlencode:x<nowiki/>y}}
11268 {{urlencode:x<nowiki/>y|wiki}}
11269 {{urlencode:x<nowiki/>y|path}}
11296 Strip marker in formatNum
11298 {{formatnum:1<nowiki/>2}}
11299 {{formatnum:1<nowiki/>2|R}}
11307 Strip marker in grammar
11311 {{grammar:elative|foo<nowiki/>bar}}
11318 Strip marker in padleft
11320 {{padleft:|2|x<nowiki/>y}}
11327 Strip marker in padright
11329 {{padright:|2|x<nowiki/>y}}
11336 Strip marker in anchorencode
11338 {{anchorencode:x<nowiki/>y}}
11345 nowiki inside link inside heading (bug 18295)
11347 ==[[foo|x<nowiki>y</nowiki>z]]==
11349 <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>
11354 new support for bdi element (bug 31817)
11356 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11358 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11363 Ignore pipe between table row attributes
11367 |- id=foo | style='color: red'
11375 <tr id="foo" style="color: red">
11382 Gallery override link with WikiLink (bug 34852)
11385 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11388 <ul class="gallery">
11389 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11390 <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>
11391 <div class="gallerytext">
11401 Gallery override link with absolute external link (bug 34852)
11404 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11407 <ul class="gallery">
11408 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11409 <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>
11410 <div class="gallerytext">
11420 Gallery override link with malicious javascript (bug 34852)
11423 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11426 <ul class="gallery">
11427 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11428 <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>
11429 <div class="gallerytext">
11439 Language parser function
11448 Padleft and padright as substr
11450 {{padleft:|3|abcde}}
11451 {{padright:|3|abcde}}
11459 Bug 34939 - Case insensitive link parsing ([HttP://])
11461 [HttP://MediaWiki.Org/]
11463 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11468 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11470 [HttP://MediaWiki.Org/ MediaWiki]
11472 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11477 Bug 34939 - Case insensitive link parsing (HttP://)
11479 HttP://MediaWiki.Org/
11481 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11486 ### Parsoids-specific tests
11487 ### Parsoid-PHP parser incompatibilities
11490 1. SOL-sensitive wikitext tokens as template-args
11509 Try for 100% code coverage