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>
1206 Definition lists: self-closed tag
1208 ;one<br/>two : two-line fun
1210 <dl><dt>one<br />two </dt><dd> two-line fun
1216 Bug 11748: Literal closing tags
1220 <dd>test test test test test</dd>
1222 <dd>test test test test test</dd>
1227 <dd>test test test test test</dd>
1229 <dd>test test test test test</dd>
1235 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1238 ; term : description
1244 <dl><dt> term </dt><dd> description
1255 Definition list with empty definition and following paragraph
1260 <dl><dt> term</dt><dd>
1267 Nested definition lists using html syntax
1284 Definition Lists: No nesting: Multiple dd's
1298 Definition Lists: Indentation: Regular
1314 Definition Lists: Indentation: Missing 1st level
1328 Definition Lists: Indentation: Multi-level indent
1332 <dl><dd><dl><dd><dl><dd>i3
1340 Definition Lists: Hacky use to indent tables
1347 should be left alone
1349 <dl><dd><dl><dd><table>
1354 </td></tr></table></dd></dl></dd></dl>
1356 should be left alone
1359 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1360 ## as an empty dt item. It also ignores all but the last ";" when followed
1361 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1362 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1365 ## Ex: ";;t2 ::d2" is transformed into:
1377 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1378 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1389 ## All Parsoid only definition list tests have this difference.
1391 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1392 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1395 Definition Lists: Nesting: Multi-level (Parsoid only)
1425 Definition Lists: Nesting: Test 2 (Parsoid only)
1445 Definition Lists: Nesting: Test 3 (Parsoid only)
1473 Definition Lists: Nesting: Test 4
1478 <dl><dd><dl><dd><dl><dt>t3
1488 Definition Lists: Mixed Lists: Test 1
1494 <dl><dd><dl><dt><ul><li> foo
1506 Definition Lists: Mixed Lists: Test 2
1520 Definition Lists: Mixed Lists: Test 3
1525 <ul><li><dl><dd><dl><dd><dl><dd> d1
1536 Definition Lists: Mixed Lists: Test 4
1541 <ul><li><dl><dt>d1 </dt><dd>d2
1542 </dd><dt>d3 </dt><dd>d4
1550 Definition Lists: Mixed Lists: Test 5
1565 Definition Lists: Mixed Lists: Test 6
1570 <ol><li><ul><li><dl><dd>d1
1582 Definition Lists: Mixed Lists: Test 7
1596 Definition Lists: Mixed Lists: Test 8
1612 Definition Lists: Mixed Lists: Test 9
1616 <ul><li><dl><dt>foo </dt><dd>bar
1624 Definition Lists: Mixed Lists: Test 10
1628 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1637 Definition Lists: Mixed Lists: Test 11
1642 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1647 <dl><dt>boo </dt><dd>baz
1658 Definition Lists: Weird Ones: Test 1
1660 *#;*::;; foo : bar (who uses this?)
1662 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1678 External links: non-bracketed
1680 Non-bracketed: http://example.com
1682 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1687 External links: numbered
1689 Numbered: [http://example.com]
1690 Numbered: [http://example.net]
1691 Numbered: [http://example.com]
1693 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1694 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1695 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1700 External links: specified text
1702 Specified text: [http://example.com link]
1704 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1709 External links: trail
1711 Linktrails should not work for external links: [http://example.com link]s
1713 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1718 External links: dollar sign in URL
1720 http://example.com/1$2345
1722 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1727 External links: dollar sign in URL (named)
1729 [http://example.com/1$2345]
1731 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1736 External links: open square bracket forbidden in URL (bug 4377)
1738 http://example.com/1[2345
1740 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1745 External links: open square bracket forbidden in URL (named) (bug 4377)
1747 [http://example.com/1[2345]
1749 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1754 External links: nowiki in URL link text (bug 6230)
1756 [http://example.com/ <nowiki>''example site''</nowiki>]
1758 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1763 External links: newline forbidden in text (bug 6230 regression check)
1765 [http://example.com/ first
1768 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1774 External links: Pipe char between url and text
1776 [http://example.com | link]
1778 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1783 External links: protocol-relative URL in brackets
1785 [//example.com/ Test]
1787 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1792 External links: protocol-relative URL in brackets without text
1796 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1801 External links: protocol-relative URL in free text is left alone
1805 <p>//example.com/Foo
1810 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1812 foo//example.com/Foo
1814 <p>foo//example.com/Foo
1821 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1823 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1828 External image from https
1830 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1832 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1837 Link to non-http image, no img tag
1839 Link to non-http image, no img tag: ftp://example.com/test.jpg
1841 <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>
1846 External links: terminating separator
1848 Terminating separator: http://example.com/thing,
1850 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1855 External links: intervening separator
1857 Intervening separator: http://example.com/1,2,3
1859 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1864 External links: old bug with URL in query
1866 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1868 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1873 External links: old URL-in-URL bug, mixed protocols
1875 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1877 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1882 External links: URL in text
1884 URL in text: [http://example.com http://example.com]
1886 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1891 External links: Clickable images
1893 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1895 <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>
1900 External links: raw ampersand
1902 Old & use: http://x&y
1904 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1909 External links: encoded ampersand
1911 Old & use: http://x&y
1913 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1918 External links: encoded equals (bug 6102)
1920 http://example.com/?foo=bar
1922 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1927 External links: [raw ampersand]
1929 Old & use: [http://x&y]
1931 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1936 External links: [encoded ampersand]
1938 Old & use: [http://x&y]
1940 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1945 External links: [encoded equals] (bug 6102)
1947 [http://example.com/?foo=bar]
1949 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1954 External links: [IDN ignored character reference in hostname; strip it right off]
1956 [http://e‌xample.com/]
1958 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1962 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1963 # Where an external link could easily circumvent the sanitization of the text of
1964 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1965 # test demands a higher standard. That's a bit strange.
1969 # http://example.com -> [http://example.com|http://example.com]
1970 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1972 # The first example is sanitized, but the second is not. Any security benefits
1973 # from this production are trivial to circumvent. Either remove this test and
1974 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1975 # the test accordingly.
1980 External links: IDN ignored character reference in hostname; strip it right off
1982 http://e‌xample.com/
1984 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1989 External links: www.jpeg.org (bug 554)
1993 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1998 External links: URL within URL (original bug 2)
2000 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2002 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2007 BUG 361: URL inside bracketed URL
2009 [http://www.example.com/foo http://www.example.com/bar]
2011 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2016 BUG 361: URL within URL, not bracketed
2018 http://www.example.com/foo?=http://www.example.com/bar
2020 <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>
2025 BUG 289: ">"-token in URL-tail
2027 http://www.example.com/<hello>
2029 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2034 BUG 289: literal ">"-token in URL-tail
2036 http://www.example.com/<b>html</b>
2038 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2043 BUG 289: ">"-token in bracketed URL
2045 [http://www.example.com/<hello> stuff]
2047 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2052 BUG 289: literal ">"-token in bracketed URL
2054 [http://www.example.com/<b>html</b> stuff]
2056 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2061 BUG 289: literal double quote at end of URL
2063 http://www.example.com/"hello"
2065 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2070 BUG 289: literal double quote in bracketed URL
2072 [http://www.example.com/"hello" stuff]
2074 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2079 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2081 [http://www.example.com test]
2083 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2088 External links: wiki links within external link (Bug 3695)
2090 [http://example.com [[wikilink]] embedded in ext link]
2092 <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>
2097 BUG 787: Links with one slash after the url protocol are invalid
2101 [http:/example.com title]
2103 <p>http:/example.com
2104 </p><p>[http:/example.com title]
2109 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2111 ''[http://example.com text'']
2112 [http://example.com '''text]'''
2113 ''Something [http://example.com in italic'']
2114 ''Something [http://example.com mixed''''', even bold]'''
2115 '''''Now [http://example.com both''''']
2117 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2118 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2119 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2120 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2121 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2127 Bug 4781: %26 in URL
2129 http://www.example.com/?title=AT%26T
2131 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2135 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2136 # % is actually legal in HTML5. Any change in output would need testing though.
2138 Bug 4781, 5267: %25 in URL
2140 http://www.example.com/?title=100%25_Bran
2142 <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>
2147 Bug 4781, 5267: %28, %29 in URL
2149 http://www.example.com/?title=Ben-Hur_%281959_film%29
2151 <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>
2157 Bug 4781: %26 in autonumber URL
2159 [http://www.example.com/?title=AT%26T]
2161 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2166 Bug 4781, 5267: %26 in autonumber URL
2168 [http://www.example.com/?title=100%25_Bran]
2170 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2175 Bug 4781, 5267: %28, %29 in autonumber URL
2177 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2179 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2185 Bug 4781: %26 in bracketed URL
2187 [http://www.example.com/?title=AT%26T link]
2189 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2194 Bug 4781, 5267: %26 in bracketed URL
2196 [http://www.example.com/?title=100%25_Bran link]
2198 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2203 Bug 4781, 5267: %28, %29 in bracketed URL
2205 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2207 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2212 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2214 Some [http://example.com/ pretty ''italics'' and stuff]!
2216 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2221 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2223 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2225 <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>
2230 External link containing double-single-quotes with no space separating the url from text in italics
2232 [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]].]
2234 <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>
2239 URL-encoding in URL functions (single parameter)
2241 {{localurl:Some page|amp=&}}
2243 <p>/index.php?title=Some_page&amp=&
2248 URL-encoding in URL functions (multiple parameters)
2250 {{localurl:Some page|q=?&=&}}
2252 <p>/index.php?title=Some_page&q=?&amp=&
2259 http://example.com/index.php?foozoid%5B%5D=bar
2261 http://example.com/index.php?foozoid[]=bar
2263 <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>
2264 </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>
2269 IPv6 urls (bug 21261)
2273 http://[2404:130:0:1000::187:2]/index.php
2275 <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>
2286 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2288 Normal text. '''''Bold italic text.''''' Normal text.
2290 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2291 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2297 Unclosed and unmatched quotes
2299 '''''Bold italic text '''with bold deactivated''' in between.'''''
2301 '''''Bold italic text ''with italic deactivated'' in between.'''''
2305 ..spanning two paragraphs (should not work).'''
2307 '''Bold tag left open
2309 ''Italic tag left open
2313 <!-- Unmatching number of opening, closing tags: -->
2314 '''This year''''s election ''should'' beat '''last year''''s.
2316 ''Tom'''s car is bigger than ''Susan'''s.
2318 Plain ''italic'''s plain
2320 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2321 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2322 </p><p><b>Bold text..</b>
2323 </p><p>..spanning two paragraphs (should not work).
2324 </p><p><b>Bold tag left open</b>
2325 </p><p><i>Italic tag left open</i>
2327 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2328 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2329 </p><p>Plain <i>italic'</i>s plain
2336 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2339 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2340 # is the bare minimun required by the spec, see:
2341 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2343 A table with no data.
2349 # A table with nothing but a caption is invalid XHTML, we might want to render
2350 # this as <p>caption</p>
2352 A table with nothing but a caption
2360 </caption><tr><td></td></tr></table>
2386 Simple table but with multiple dashes for row wikitext
2404 Multiplication table
2406 {| border="1" cellpadding="2"
2407 |+Multiplication table
2409 ! × !! 1 !! 2 !! 3
2427 <table border="1" cellpadding="2">
2428 <caption>Multiplication table
2475 Allow +/- in 2nd and later cells in a row
2502 |rowspan=2| Cell 2, row 1 (and 2)
2513 <td rowspan="2"> Cell 2, row 1 (and 2)
2531 {| bgcolor=#ABCDEF border=2
2536 |the original table again
2544 <table bgcolor="#ABCDEF" border="2">
2552 <td>the original table again
2558 Invalid attributes in table cell (bug 1830)
2573 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2576 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2580 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2581 <td>]" onmouseover="alert(document.cookie)">test
2590 Indented table markup mixed with indented pre content (proposed in bug 6200)
2595 Text that should be rendered preformatted
2603 <pre>Text that should be rendered preformatted
2616 Plain link, capitalized
2620 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2625 Plain link, uncapitalized
2629 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2636 [[Main Page|The Main Page]]
2638 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2647 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2652 Broken link with fragment
2654 [[Zigzagzogzagzig#zug]]
2656 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2661 Special page link with fragment
2663 [[Special:Version#anchor]]
2665 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2670 Nonexistent special page link with fragment
2672 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2674 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2681 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2683 <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>
2690 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2692 <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>!!!
2697 Link with 3 brackets
2706 Piped link with 3 brackets
2708 [[[main page|the main page]]]
2710 <p>[[[main page|the main page]]]
2715 Link with multiple pipes
2717 [[Main Page|The|Main|Page]]
2719 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2726 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2728 <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>
2733 Piped link to namespace
2735 [[Meta:Disclaimers|The disclaimers]]
2737 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2744 [[Usually caused by a typo (oops}]]
2746 <p>[[Usually caused by a typo (oops}]]
2751 Link containing % (not as a hex sequence)
2755 <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>
2760 Link containing % as a single hex sequence interpreted to char
2764 <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>
2769 Link containing % as a double hex sequence interpreted to hex sequence
2773 <p>[[7%2525 Solution]]
2778 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2779 Example for such a section: == < ==
2781 [[%23%3c]][[%23%3e]]
2783 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2788 Link containing "<#" and ">#" as a hex sequences
2790 [[%3c%23]][[%3e%23]]
2792 <p>[[%3c%23]][[%3e%23]]
2797 Link containing double-single-quotes '' (bug 4598)
2799 [[Lista d''e paise d''o munno]]
2801 <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>
2806 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2808 Some [[Link|pretty ''italics'' and stuff]]!
2810 <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>!
2815 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2817 ''Some [[Link|pretty ''italics'' and stuff]]!
2819 <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>
2824 Link with double quotes in title part (literal) and alternate part (interpreted)
2826 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2830 [[''Pentecoste''|Pentecoste]]
2832 [[''Pentecoste''|''Pentecoste'']]
2834 <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>
2835 </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>
2836 </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>
2837 </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>
2842 Broken image links with HTML captions (bug 39700)
2844 [[File:Nonexistent|<script></script>]]
2845 [[File:Nonexistent|100px|<script></script>]]
2846 [[File:Nonexistent|<]]
2847 [[File:Nonexistent|a<i>b</i>c]]
2849 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2850 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2851 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2852 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2859 [[http://www.example.com]]
2861 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2866 Plain link to URL with link text
2868 [[http://www.example.com Link text]]
2870 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2875 Plain link to protocol-relative URL
2877 [[//www.example.com]]
2879 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2884 Plain link to protocol-relative URL with link text
2886 [[//www.example.com Link text]]
2888 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2893 # I'm fairly sure the expected result here is wrong.
2894 # We want these to be URL links, not pseudo-pages with URLs for titles....
2895 # However the current output is also pretty screwy.
2898 # I'm changing it to match the current output--it arguably makes more
2899 # sense in the light of the test above. Old expected result was:
2900 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2902 # But I think this test is bordering on "garbage in, garbage out" anyway.
2907 Piped link to URL: [[http://www.example.com|an example URL]]
2909 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2914 BUG 2: [[page|http://url/]] should link to page, not http://url/
2916 [[Main Page|http://url/]]
2918 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2923 BUG 337: Escaped self-links should be bold
2927 [[Bug462]] [[Bug462]]
2929 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2934 Self-link to section should not be bold
2938 [[Main Page#section]]
2940 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2951 Self-link to numeric title
2957 <p><strong class="selflink">0</strong>
2962 Link to numeric-equivalent title
2968 <p><a href="/wiki/00" title="00">00</a>
2973 <nowiki> inside a link
2975 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2977 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2982 Non-breaking spaces in title
2984 [[ Main Page ]]
2986 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2991 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2997 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3002 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3008 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3013 Internal link with en linktrail: no apostrophes (bug 27473)
3019 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3024 Internal link with ca linktrail with apostrophes (bug 27473)
3030 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3035 Internal link with kaa linktrail with apostrophes (bug 27473)
3041 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3046 ### Interwiki links (see maintenance/interwiki.sql)
3050 Inline interwiki link
3052 [[MeatBall:SoftSecurity]]
3054 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3059 Inline interwiki link with empty title (bug 2372)
3063 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3068 Interwiki link encoding conversion (bug 1636)
3070 *[[Wikipedia:ro:Olteniţa]]
3071 *[[Wikipedia:ro:Olteniţa]]
3073 <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>
3074 </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>
3080 Interwiki link with fragment (bug 2130)
3082 [[MeatBall:SoftSecurity#foo]]
3084 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3099 Double interlanguage link
3110 Interlanguage link, with prefix links
3122 Double interlanguage link, with prefix links (bug 8897)
3135 Parsoid-specific test: Wikilinks with should RT properly
3141 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3159 Incorrecly removing closing slashes from correctly formed XHTML
3161 <br style="clear:both;" />
3163 <p><br style="clear:both;" />
3168 Failing to transform badly formed HTML into correct XHTML
3170 <br style="clear: left;">
3171 <br style="clear: right;">
3172 <br style="clear: both;">
3174 <p><br style="clear: left;" />
3175 <br style="clear: right;" />
3176 <br style="clear: both;" />
3181 Handling html with a div self-closing tag
3190 <p><div title />
3194 <p><div title=bar />
3195 <div title=bar/>
3197 <div title="bar/"></div>
3203 Handling html with a br self-closing tag
3212 <p><br title="title" />
3213 <br title="title" />
3222 Horizontal ruler (should it add that extra space?)
3236 Horizontal ruler -- 4+ dashes render hr
3245 Horizontal ruler -- eats additional dashes on the same line
3254 Horizontal ruler -- does not collaps dashes on consecutive lines
3265 Horizontal ruler -- <4 dashes render as plain text
3274 ### Block-level elements
3297 <ol><li>Numbered list
3314 ***#Number on level 4
3316 **#Number on level 3
3317 **#Number on level 3
3321 #** Level 3, but ordered
3324 <ol><li> with numbers
3326 <ul><li> and bullets
3328 <ol><li> and numbers
3330 </li><li>bullets again
3331 <ul><li>bullet level 2
3332 <ul><li>bullet level 3
3333 <ol><li>Number on level 4
3336 </li><li>bullet level 2
3337 <ol><li>Number on level 3
3338 </li><li>Number on level 3
3341 <ol><li>number level 2
3344 <ul><li><ul><li> Level 3
3348 <ol><li><ul><li><ul><li> Level 3, but ordered
3382 Nested lists 3 (first element empty)
3395 Nested lists 4 (first element empty)
3408 Nested lists 5 (both elements empty)
3421 Nested lists 6 (both elements empty)
3434 Nested lists 7 (skip initial nesting levels)
3438 <ul><li><ul><li><ul><li> foo
3446 Nested lists 8 (multiple nesting transitions)
3454 <ul><li><ul><li> bar
3464 1. Lists with start-of-line-transparent tokens before bullets: Comments
3478 2. Lists with start-of-line-transparent tokens before bullets: Template close
3490 List items are not parsed correctly following a <pre> block (bug 785)
3496 <ul><li> <pre>foo</pre>
3497 </li><li> <pre>bar</pre>
3504 List items from template
3515 * notSOL{{inner list}}
3534 List interrupted by empty line or heading
3544 <ul><li><ul><li> bar
3547 <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>
3548 <ul><li> Another list item
3559 Magic Word: {{CURRENTDAY}}
3568 Magic Word: {{CURRENTDAY2}}
3577 Magic Word: {{CURRENTDAYNAME}}
3586 Magic Word: {{CURRENTDOW}}
3595 Magic Word: {{CURRENTMONTH}}
3604 Magic Word: {{CURRENTMONTHABBREV}}
3606 {{CURRENTMONTHABBREV}}
3613 Magic Word: {{CURRENTMONTHNAME}}
3615 {{CURRENTMONTHNAME}}
3622 Magic Word: {{CURRENTMONTHNAMEGEN}}
3624 {{CURRENTMONTHNAMEGEN}}
3631 Magic Word: {{CURRENTTIME}}
3640 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3649 Magic Word: {{CURRENTYEAR}}
3658 Magic Word: {{FULLPAGENAME}}
3660 title=[[User:Ævar Arnfjörð Bjarmason]]
3664 <p>User:Ævar Arnfjörð Bjarmason
3669 Magic Word: {{FULLPAGENAMEE}}
3671 title=[[User:Ævar Arnfjörð Bjarmason]]
3675 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3680 Magic Word: {{NAMESPACE}}
3682 title=[[User:Ævar Arnfjörð Bjarmason]]
3691 Magic Word: {{NAMESPACEE}}
3693 title=[[User:Ævar Arnfjörð Bjarmason]]
3702 Magic Word: {{NAMESPACENUMBER}}
3704 title=[[User:Ævar Arnfjörð Bjarmason]]
3713 Magic Word: {{NUMBEROFFILES}}
3722 Magic Word: {{PAGENAME}}
3724 title=[[User:Ævar Arnfjörð Bjarmason]]
3728 <p>Ævar Arnfjörð Bjarmason
3733 Magic Word: {{PAGENAME}} with metacharacters
3735 title=[['foo & bar = baz']]
3739 <p><i>'foo & bar = baz'</i>
3744 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3746 title=[[*RFC 1234 http://example.com/]]
3750 <p>*RFC 1234 http://example.com/
3755 Magic Word: {{PAGENAMEE}}
3757 title=[[User:Ævar Arnfjörð Bjarmason]]
3761 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3766 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3768 title=[[*RFC 1234 http://example.com/]]
3772 <p>*RFC_1234_http://example.com/
3777 Magic Word: {{REVISIONID}}
3786 Magic Word: {{SCRIPTPATH}}
3795 Magic Word: {{SERVER}}
3799 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3804 Magic Word: {{SERVERNAME}}
3813 Magic Word: {{SITENAME}}
3822 Namespace 1 {{ns:1}}
3831 Namespace 1 {{ns:01}}
3840 Namespace 0 {{ns:0}} (bug 4783)
3848 Namespace 0 {{ns:00}} (bug 4783)
3856 Namespace -1 {{ns:-1}}
3865 Namespace User {{ns:User}}
3874 Namespace User talk {{ns:User_talk}}
3883 Namespace User talk {{ns:uSeR tAlK}}
3892 Namespace File {{ns:File}}
3901 Namespace File {{ns:Image}}
3910 Namespace (lang=de) Benutzer {{ns:User}}
3921 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3927 <p>Benutzer Diskussion
3935 {{urlencode:hi world?!}}
3936 {{urlencode:hi world?!|WIKI}}
3937 {{urlencode:hi world?!|PATH}}
3938 {{urlencode:hi world?!|QUERY}}
3951 Magic links: internal link to RFC (bug 479)
3955 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3960 Magic links: RFC (bug 479)
3964 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3969 Magic links: ISBN (bug 1937)
3973 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3978 Magic links: PMID incorrectly converts space to underscore
3982 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3991 Nonexistent template
3993 {{thistemplatedoesnotexist}}
3995 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4002 This is a test template
4010 <p>This is a test template
4015 Template with explicit namespace
4019 <p>This is a test template
4027 This is a test template with parameter {{{param}}}
4033 {{paramtest|param=foo}}
4035 <p>This is a test template with parameter foo
4040 Template:paramtestnum
4046 Template unnamed parameter
4048 {{paramtestnum|Main Page|the main page}}
4050 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4055 Template:templatesimple
4061 Template:templateredirect
4063 #redirect [[Template:templatesimple]]
4067 Template:templateasargtestnum
4073 Template:templateasargtest
4075 {{template{{{templ}}}}}
4079 Template:templateasargtest2
4085 Template with template name as unnamed argument
4087 {{templateasargtestnum|templatesimple}}
4094 Template with template name as argument
4096 {{templateasargtest|templ=simple}}
4103 Template with template name as argument (2)
4105 {{templateasargtest2|templ=templatesimple}}
4112 Template:templateasargtestdefault
4114 {{{{{templ|templatesimple}}}}}
4124 Template with default value
4126 {{templateasargtestdefault}}
4133 Template with default value (value set)
4135 {{templateasargtestdefault|templ=templa}}
4144 {{templateredirect}}
4151 Template with argument in separate line
4153 {{ templateasargtest |
4161 Template with complex template as argument
4164 param ={{ templateasargtest |
4167 <p>This is a test template with parameter (test)
4172 Template with thumb image (with link in description)
4175 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4177 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>
4182 Template:complextemplate
4184 {{{1}}} {{paramtest|
4185 param ={{{param}}}}}
4189 Template with complex arguments
4192 param ={{ templateasargtest |
4193 templ = simple }}|[[Template:complextemplate|link]]}}
4195 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4200 BUG 553: link with two variables in a piped link
4203 |[[{{{1}}}|{{{2}}}]]
4208 <td>[[{{{1}}}|{{{2}}}]]
4214 Magic variable as template parameter
4216 {{paramtest|param={{SITENAME}}}}
4218 <p>This is a test template with parameter MediaWiki
4225 [[{{{param}}}|link]]
4229 Template parameter as link source
4231 {{linktest|param=Main Page}}
4233 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4238 Template-generated attribute string (k='v')
4240 <span {{attr_str|id|v1}}>bar</span>
4242 <p><span id="v1">bar</span>
4249 including another template, {{paramtest|param={{{arg}}}}}
4253 Template passing argument to another template
4255 {{paramtest2|arg='hmm'}}
4257 <p>including another template, This is a test template with parameter 'hmm'
4268 Template as link source
4272 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4290 Template infinite loop
4294 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4299 Template from main namespace
4318 BUG 529: Template with table, not included at beginning of line
4337 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4357 BUG 41: Template parameters shown as broken links
4369 ''None'' of '''this''' should be
4371 but rather passed unmodified
4375 # hmm, fix this or just deprecate msgnw and document its behavior?
4381 {{msgnw:MSGNW test}}
4383 <p>''None'' of '''this''' should be
4385 but rather passed unmodified
4393 {{int:youhavenewmessages|lots of money|not!}}
4395 <p>You have lots of money (not!).
4402 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4406 <includeonly> and <noinclude> being included
4417 <onlyinclude>Foo</onlyinclude>bar
4421 <onlyinclude> being included
4433 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4437 <onlyinclude> and <includeonly> being included
4446 <includeonly> and <noinclude> on a page
4448 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4455 <onlyinclude> on a page
4457 <onlyinclude>Foo</onlyinclude>bar
4464 Template:Includeonly section
4467 ==Includeonly section==
4473 Bug 6563: Edit link generation for section shown by <includeonly>
4475 {{includeonly section}}
4477 <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>
4478 <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>
4482 # Uses same input as the contents of [[Template:Includeonly section]]
4484 Bug 6563: Section extraction for section shown by <includeonly>
4489 ==Includeonly section==
4497 Bug 6563: Edit link generation for section suppressed by <includeonly>
4500 ==Includeonly section==
4504 <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>
4509 Bug 6563: Section extraction for section suppressed by <includeonly>
4514 ==Includeonly section==
4522 ### <includeonly> and <noinclude> in attributes
4525 0. includeonly around the entire attribute
4527 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4529 <p><span id="v2">bar</span>
4534 1. includeonly in html attr key
4536 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4538 <p><span id="foo">bar</span>
4543 2. includeonly in html attr value
4545 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4546 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4548 <p><span id="v1">bar</span>
4549 <span id="v1">bar</span>
4554 3. includeonly in part of an attr value
4556 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4558 <p><span style="color:red;">bar</span>
4563 ### Testing parsing of templates where a template arg
4564 ### has the same name as the template itself.
4574 Templates: Template Name/Arg clash: 1. Use of positional param
4583 Templates: Template Name/Arg clash: 2. Use of named param
4592 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4601 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4605 Templates: 1. Simple use
4614 Templates: 2. Inside a block tag
4616 <div>{{echo|Foo}}</div>
4623 Templates: P-wrapping: 1a. Templates on consecutive lines
4634 Templates: P-wrapping: 1b. Templates on consecutive lines
4648 Templates: P-wrapping: 1c. Templates on consecutive lines
4651 {{echo|bar}} <div>baz</div>
4660 Templates: Inline Text: 1. Multiple tmeplate uses
4662 {{echo|Foo}}bar{{echo|baz}}
4669 Templates: Inline Text: 2. Back-to-back template uses
4671 {{echo|Foo}}{{echo|bar}}
4678 Templates: Block Tags: 1. Multiple template uses
4680 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4682 <div>Foo</div><div>bar</div><div>baz</div>
4687 Templates: Block Tags: 2. Back-to-back template uses
4689 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4691 <div>Foo</div><div>bar</div>
4696 Templates: Links: 1. Simple example
4698 {{echo|[[Foo|bar]]}}
4700 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4705 Templates: Links: 2. Generation of link href
4707 [[{{echo|Foo}}|bar]]
4709 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4714 Templates: Links: 3. Generation of part of a link href
4716 [[Fo{{echo|o}}|bar]]
4718 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4723 Templates: Links: 4. Multiple templates generating link href
4725 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4727 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4732 Templates: Links: 5. Generation of link text
4734 [[Foo|{{echo|bar}}]]
4736 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4741 Templates: Links: 5. Nested templates (only outermost template should be marked)
4743 {{echo|[[{{echo|Foo}}|bar]]}}
4745 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4750 Templates: HTML Tag: 1. Generation of HTML attr. key
4752 <div {{echo|style}}="color:red;">foo</div>
4754 <div style="color:red;">foo</div>
4759 Templates: HTML Tag: 2. Generation of HTML attr. value
4761 <div style={{echo|'color:red;'}}>foo</div>
4763 <div style="color:red;">foo</div>
4768 Templates: HTML Tag: 3. Generation of HTML attr key and value
4770 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4772 <div style="color:red;">foo</div>
4777 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4779 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4781 <div title="This is a long title with just one piece templated">foo</div>
4786 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4788 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4790 <div title="This is a long title with just one piece templated">foo</div>
4795 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4797 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4799 <div title="This is a long title with just one piece templated">foo</div>
4804 Templates: Tables: 1. Generating start of a HTML table
4806 {{echo|<table><tr><td>foo</td>}}</tr></table>
4808 <table><tr><td>foo</td></tr></table>
4813 Templates: Tables: 2a. Generating middle of a HTML table
4815 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4817 <table><tr><td>foo</td></tr></table>
4822 Templates: Tables: 2b. Generating middle of a HTML table
4824 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4826 <table><tr><td>foo</td></tr></table>
4831 Templates: Tables: 3. Generating end of a HTML table
4833 <table><tr>{{echo|<td>foo</td></tr></table>}}
4835 <table><tr><td>foo</td></tr></table>
4840 Templates: Tables: 4a. Generating a single tag of a HTML table
4842 {{echo|<table>}}<tr><td>foo</td></tr></table>
4844 <table><tr><td>foo</td></tr></table>
4849 Templates: Tables: 4b. Generating a single tag of a HTML table
4851 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4853 <table><tr><td>foo</td></tr></table>
4858 Templates: Tables: 4c. Generating a single tag of a HTML table
4860 <table><tr>{{echo|<td>}}foo</td></tr></table>
4862 <table><tr><td>foo</td></tr></table>
4867 Templates: Tables: 4d. Generating a single tag of a HTML table
4869 <table><tr><td>foo{{echo|</td>}}</tr></table>
4871 <table><tr><td>foo</td></tr></table>
4876 Templates: Tables: 4e. Generating a single tag of a HTML table
4878 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4880 <table><tr><td>foo</td></tr></table>
4885 Templates: Tables: 4f. Generating a single tag of a HTML table
4887 <table><tr><td>foo</td></tr>{{echo|</table>}}
4889 <table><tr><td>foo</td></tr></table>
4894 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
4896 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
4898 <p><i>ab</i>c<i>d</i>e
4903 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
4904 (PHP parser generates misnested html)
4908 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
4910 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
4914 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
4915 (PHP parser generates misnested html)
4919 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
4922 <div><i>b</i>c<i>d</i></div>
4927 Templates: Ugly nesting: 4. Divs opened/closed across templates
4929 a<div>b{{echo|c</div>d}}e
4936 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
4942 |{{echo|foo</table>}}
4946 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
4947 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
4948 bar</span><span about="#mwt1">
4953 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
4963 <td>1. {{echo|foo </table>}}</td>
4965 <td>2. {{echo|baz </table>}}</td>
4978 <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">
4979 <tbody><tr data-parsoid="{"stx":"html"}">
4980 <td data-parsoid="{"stx":"html"}">
4981 <table data-parsoid="{"stx":"html"}">
4982 <tbody><tr data-parsoid="{"stx":"html"}">
4983 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
4984 <td data-parsoid="{"stx":"html"}"> bar </td>
4985 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
4986 </span><span about="#mwt1">
4988 abc</span><span about="#mwt1">
4989 </span><span about="#mwt1">
4990 </span><span about="#mwt1">
4991 </span><span about="#mwt1">
4992 </span><span about="#mwt1">
4994 xyz</span><span about="#mwt1">
4995 </span><span about="#mwt1">
5000 Parser Functions: 1. Simple example
5009 Parser Functions: 2. Nested use (only outermost should be marked up)
5018 ### Pre-save transform tests
5021 pre-save transform: subst:
5027 This is a test template
5031 pre-save transform: normal template
5041 pre-save transform: nonexistent template
5045 {{thistemplatedoesnotexist}}
5047 {{thistemplatedoesnotexist}}
5052 pre-save transform: subst magic variables
5061 # This is bug 89, which I fixed. -- wtm
5063 pre-save transform: subst: templates with parameters
5067 {{subst:paramtest|param="something else"}}
5069 This is a test template with parameter "something else"
5075 <nowiki>'''not wiki'''</nowiki>
5079 pre-save transform: nowiki in subst (bug 1188)
5083 {{subst:nowikitest}}
5085 <nowiki>'''not wiki'''</nowiki>
5090 Template:commenttest
5092 This template has <!-- a comment --> in it.
5096 pre-save transform: comment in subst (bug 1936)
5100 {{subst:commenttest}}
5102 This template has <!-- a comment --> in it.
5106 pre-save transform: unclosed tag
5110 <nowiki>'''not wiki'''
5112 <nowiki>'''not wiki'''
5116 pre-save transform: mixed tag case
5120 <NOwiki>'''not wiki'''</noWIKI>
5122 <NOwiki>'''not wiki'''</noWIKI>
5126 pre-save transform: unclosed comment in <nowiki>
5130 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5132 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5138 <span onmouseover="alert('crap')">Oh no</span>
5142 (confirming safety of fix for subst bug 1936)
5144 {{Template:dangerous}}
5146 <p><span>Oh no</span>
5151 pre-save transform: comment containing gallery (bug 5024)
5155 <!-- <gallery>data</gallery> -->
5157 <!-- <gallery>data</gallery> -->
5161 pre-save transform: comment containing extension
5165 <!-- <tag>data</tag> -->
5167 <!-- <tag>data</tag> -->
5171 pre-save transform: comment containing nowiki
5175 <!-- <nowiki>data</nowiki> -->
5177 <!-- <nowiki>data</nowiki> -->
5181 pre-save transform: <noinclude> in subst (bug 3298)
5191 pre-save transform: <onlyinclude> in subst (bug 3298)
5203 {{<includeonly>subst:</includeonly>Includes}}
5207 Template:SafeSubstTest
5209 {{<includeonly>safesubst:</includeonly>Includes}}
5213 bug 22297: safesubst: works during PST
5217 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5223 bug 22297: safesubst: works during normal parse
5232 subst: does not work during normal parse
5236 <p>{{subst:Includes}}
5241 pre-save transform: context links ("pipe trick")
5245 [[Article (context)|]]
5248 [[Bar:Article (context)|]]
5249 [[:Bar:Article (context)|]]
5251 [[|Article (context)]]
5255 [[Article (context)|Article]]
5256 [[Bar:Article|Article]]
5257 [[:Bar:Article|Article]]
5258 [[Bar:Article (context)|Article]]
5259 [[:Bar:Article (context)|Article]]
5261 [[Article (context)]]
5262 [[Bar:X (Y) Z|X (Y) Z]]
5263 [[:Bar:X (Y) Z|X (Y) Z]]
5267 pre-save transform: context links ("pipe trick") with interwiki prefix
5271 [[interwiki:Article|]]
5272 [[:interwiki:Article|]]
5273 [[interwiki:Bar:Article|]]
5274 [[:interwiki:Bar:Article|]]
5276 [[interwiki:Article|Article]]
5277 [[:interwiki:Article|Article]]
5278 [[interwiki:Bar:Article|Bar:Article]]
5279 [[:interwiki:Bar:Article|Bar:Article]]
5283 pre-save transform: context links ("pipe trick") with parens in title
5285 pst title=[[Somearticle (context)]]
5289 [[Article (context)|Article]]
5293 pre-save transform: context links ("pipe trick") with comma in title
5295 pst title=[[Someplace, Somewhere]]
5298 [[Otherplace, Elsewhere|]]
5299 [[Otherplace, Elsewhere, Anywhere|]]
5301 [[Otherplace, Somewhere|Otherplace]]
5302 [[Otherplace, Elsewhere|Otherplace]]
5303 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5307 pre-save transform: context links ("pipe trick") with parens and comma
5309 pst title=[[Someplace (IGNORED), Somewhere]]
5312 [[Otherplace (place), Elsewhere|]]
5314 [[Otherplace, Somewhere|Otherplace]]
5315 [[Otherplace (place), Elsewhere|Otherplace]]
5319 pre-save transform: context links ("pipe trick") with comma and parens
5321 pst title=[[Who, me? (context)]]
5324 [[Me, Myself, and I (1937 song)|]]
5326 [[Yes, you. (context)|Yes, you.]]
5327 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5331 pre-save transform: context links ("pipe trick") with namespace
5333 pst title=[[Ns:Somearticle]]
5337 [[Ns:Article|Article]]
5341 pre-save transform: context links ("pipe trick") with namespace and parens
5343 pst title=[[Ns:Somearticle (context)]]
5347 [[Ns:Article (context)|Article]]
5351 pre-save transform: context links ("pipe trick") with namespace and comma
5353 pst title=[[Ns:Somearticle, Context, Whatever]]
5357 [[Ns:Article, Context, Whatever|Article]]
5361 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5363 pst title=[[Ns:Somearticle, Context (context)]]
5367 [[Ns:Article (context)|Article]]
5371 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5373 pst title=[[Ns:Somearticle (IGNORED), Context]]
5377 [[Ns:Article, Context|Article]]
5381 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5385 [[Article(context)|]]
5386 [[Bar:Article(context)|]]
5387 [[:Bar:Article(context)|]]
5388 [[|Article(context)]]
5392 [[Article(context)|Article]]
5393 [[Bar:Article(context)|Article]]
5394 [[:Bar:Article(context)|Article]]
5395 [[Article(context)]]
5397 [[:Bar:X(Y)Z|X(Y)Z]]
5401 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5405 [[Article (context)|]]
5406 [[Bar:Article (context)|]]
5407 [[:Bar:Article (context)|]]
5408 [[|Article (context)]]
5412 [[Article (context)|Article]]
5413 [[Bar:Article (context)|Article]]
5414 [[:Bar:Article (context)|Article]]
5415 [[Article (context)]]
5416 [[Bar:X (Y) Z|X (Y) Z]]
5417 [[:Bar:X (Y) Z|X (Y) Z]]
5421 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5425 [[Article(context)|]]
5426 [[Bar:Article(context)|]]
5427 [[:Bar:Article(context)|]]
5428 [[|Article(context)]]
5432 [[Article(context)|Article]]
5433 [[Bar:Article(context)|Article]]
5434 [[:Bar:Article(context)|Article]]
5435 [[Article(context)]]
5437 [[:Bar:X(Y)Z|X(Y)Z]]
5441 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5445 [[Article (context), context|]]
5446 [[Article (context),context|]]
5447 [[Bar:Article (context), context|]]
5448 [[Bar:Article (context),context|]]
5449 [[:Bar:Article (context), context|]]
5450 [[:Bar:Article (context),context|]]
5452 [[Article (context), context|Article]]
5453 [[Article (context),context|Article]]
5454 [[Bar:Article (context), context|Article]]
5455 [[Bar:Article (context),context|Article]]
5456 [[:Bar:Article (context), context|Article]]
5457 [[:Bar:Article (context),context|Article]]
5461 pre-save transform: trim trailing empty lines
5465 Empty lines are trimmed
5471 Empty lines are trimmed
5475 pre-save transform: Signature expansion
5480 * <noinclude>~~~</noinclude>
5481 * <includeonly>~~~</includeonly>
5482 * <onlyinclude>~~~</onlyinclude>
5484 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5485 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5486 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5487 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5492 pre-save transform: Signature expansion in nowiki tags (bug 93)
5498 <nowiki>~~~~</nowiki>
5500 <includeonly><nowiki>~~~~</nowiki></includeonly>
5502 <noinclude><nowiki>~~~~</nowiki></noinclude>
5504 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5506 {{subst:Foo}} shall be converted to FOO
5508 As well as inside noinclude/onlyinclude
5509 <noinclude>{{subst:Foo}}</noinclude>
5510 <onlyinclude>{{subst:Foo}}</onlyinclude>
5512 But not inside includeonly
5513 <includeonly>{{subst:Foo}}</includeonly>
5517 <nowiki>~~~~</nowiki>
5519 <includeonly><nowiki>~~~~</nowiki></includeonly>
5521 <noinclude><nowiki>~~~~</nowiki></noinclude>
5523 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5525 FOO shall be converted to FOO
5527 As well as inside noinclude/onlyinclude
5528 <noinclude>FOO</noinclude>
5529 <onlyinclude>FOO</onlyinclude>
5531 But not inside includeonly
5532 <includeonly>{{subst:Foo}}</includeonly>
5536 ### Message transform tests
5539 message transform: magic variables
5549 message transform: should not transform wiki markup
5559 message transform: <noinclude> in transcluded template (bug 4926)
5569 message transform: <onlyinclude> in transcluded template (bug 4926)
5579 {{#special:}} page name, known
5583 {{#special:Recentchanges}}
5585 Special:RecentChanges
5589 {{#special:}} page name with subpage, known
5593 {{#special:Recentchanges/param}}
5595 Special:RecentChanges/param
5599 {{#special:}} page name, unknown
5603 {{#special:foobarnonexistent}}
5605 No such special page
5609 {{#speciale:}} page name, known
5613 {{#speciale:Recentchanges}}
5615 Special:RecentChanges
5619 {{#speciale:}} page name with subpage, known
5623 {{#speciale:Recentchanges/param}}
5625 Special:RecentChanges/param
5629 {{#speciale:}} page name, unknown
5633 {{#speciale:foobarnonexistent}}
5635 No_such_special_page
5644 [[Image:foobar.jpg]]
5646 <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>
5653 [[Image:foobar.jpg|right]]
5655 <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>
5660 Simple image (using File: namespace, now canonical)
5664 <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>
5671 [[Image:foobar.jpg|right|Caption text]]
5673 <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>
5678 Image with empty attribute
5680 [[Image:foobar.jpg|right||Caption text]]
5682 <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>
5687 Image with link tails
5689 123[[Image:foobar.jpg]]456
5690 123[[Image:foobar.jpg|right]]456
5691 123[[Image:foobar.jpg|thumb]]456
5693 <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
5695 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
5696 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
5701 Image with multiple captions -- only last one is accepted
5703 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5705 <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>
5710 Image with link parameter, wiki target
5712 [[Image:foobar.jpg|link=Target page]]
5714 <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>
5719 Image with link parameter, URL target
5721 [[Image:foobar.jpg|link=http://example.com/]]
5723 <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>
5728 Image with link parameter, wgExternalLinkTarget
5730 [[Image:foobar.jpg|link=http://example.com/]]
5732 wgExternalLinkTarget='foobar'
5734 <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>
5739 Image with link parameter, wgNoFollowLinks set to false
5741 [[Image:foobar.jpg|link=http://example.com/]]
5743 wgNoFollowLinks=false
5745 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5750 Image with link parameter, wgNoFollowDomainExceptions
5752 [[Image:foobar.jpg|link=http://example.com/]]
5754 wgNoFollowDomainExceptions='example.com'
5756 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5761 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5763 [[Image:foobar.jpg|link=http://example.com/|Title]]
5765 wgExternalLinkTarget='foobar'
5767 <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>
5772 Image with empty link parameter
5774 [[Image:foobar.jpg|link=]]
5776 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5781 Image with link parameter (wiki target) and unnamed parameter
5783 [[Image:foobar.jpg|link=Target page|Title]]
5785 <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>
5790 Image with link parameter (URL target) and unnamed parameter
5792 [[Image:foobar.jpg|link=http://example.com/|Title]]
5794 <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>
5799 Thumbnail image with link parameter
5801 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5803 <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>
5808 Image with frame and link
5810 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5812 <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>
5817 Image with frame and link and explicit alt
5819 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5821 <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>
5826 Image with wiki markup in implicit alt
5828 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5830 <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>
5835 Image with wiki markup in explicit alt
5837 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5839 <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>
5844 Link to image page- image page normally doesn't exists, hence edit link
5845 Add test with existing image page
5846 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5850 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5855 bug 18784 Link to non-existent image page with caption should use caption as link text
5857 [[:Image:test|caption]]
5859 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5864 Frameless image caption with a free URL
5866 [[Image:foobar.jpg|http://example.com]]
5868 <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>
5873 Thumbnail image caption with a free URL
5875 [[Image:foobar.jpg|thumb|http://example.com]]
5877 <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>
5882 Thumbnail image caption with a free URL and explicit alt
5884 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5886 <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>
5891 BUG 1887: A ISBN with a thumbnail
5893 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5895 <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>
5900 BUG 1887: A RFC with a thumbnail
5902 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5904 <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>
5909 BUG 1887: A mailto link with a thumbnail
5911 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5913 <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>
5917 # Pending resolution to bug 368
5919 BUG 648: Frameless image caption with a link
5921 [[Image:foobar.jpg|text with a [[link]] in it]]
5923 <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>
5928 BUG 648: Frameless image caption with a link (suffix)
5930 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5932 <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>
5937 BUG 648: Frameless image caption with an interwiki link
5939 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5941 <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>
5946 BUG 648: Frameless image caption with a piped interwiki link
5948 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5950 <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>
5955 Escape HTML special chars in image alt text
5957 [[Image:foobar.jpg|& < > "]]
5959 <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>
5964 BUG 499: Alt text should have Ӓ, not &1234;
5966 [[Image:foobar.jpg|♀]]
5968 <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>
5973 Broken image caption with link
5975 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5977 <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.
5982 Image caption containing another image
5984 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5986 <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>
5991 Image caption containing a newline
5993 [[Image:Foobar.jpg|This
5996 <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>
6002 Bug 3090: External links other than http: in image captions
6004 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6006 <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>
6013 [[Image:foobar.jpg|a|class=b]]
6015 <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>
6022 #REDIRECT [[File:Barfoo.jpg]]
6028 [[Image:Barfoo.jpg]]
6030 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6035 Missing image with uploads disabled
6039 [[Image:Foobaz.jpg]]
6041 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6050 Subpage test/subpage
6058 subpage title=[[Subpage test]]
6062 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6067 Subpage noslash link
6069 subpage title=[[Subpage test]]
6073 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6082 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6087 BUG 561: {{/Subpage}}
6089 subpage title=[[Page]]
6093 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6101 Category:MediaWiki User's Guide
6109 [[:Category:MediaWiki User's Guide]]
6111 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6120 [[Category:MediaWiki User's Guide]]
6122 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6126 PAGESINCATEGORY invalid title fatal (r33546 fix)
6128 {{PAGESINCATEGORY:<bogus>}}
6135 Category with different sort key
6139 [[Category:MediaWiki User's Guide|Foo]]
6141 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6145 Category with identical sort key
6149 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6151 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6155 Category with empty sort key
6160 [[Category:MediaWiki User's Guide|]]
6162 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6166 Category with empty sort key and parentheses
6171 [[Category:Foo (bar)|]]
6173 [[Category:Foo (bar)|Foo]]
6177 Category with link tail
6182 123[[Category:Foo]]456
6184 123[[Category:Foo]]456
6188 Category with template
6193 [[Category:{{echo|Foo}}]]
6195 [[Category:{{echo|Foo}}]]
6199 Category with template in sort key
6204 [[Category:Foo|{{echo|Bar}}]]
6206 [[Category:Foo|{{echo|Bar}}]]
6210 Category with template in sort key and title
6215 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6217 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6221 ### Inter-language links
6224 Inter-language links
6230 [[zh:食品]]
6232 es:Alimento fr:Nourriture zh:食品
6236 Duplicate interlanguage links (bug 24502)
6252 Basic section headings
6259 ===Smaller headline===
6262 <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>
6265 <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>
6268 <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>
6274 Section headings with TOC
6277 === Subheadline 1 ===
6278 ===== Skipping a level =====
6279 ====== Skipping a level ======
6283 ===Another headline===
6285 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6287 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6289 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6291 <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>
6293 <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>
6300 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6302 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6307 <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>
6308 <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>
6309 <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>
6310 <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>
6311 <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>
6314 <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>
6318 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6320 Handling of sections up to level 6 and beyond
6323 == Level 2 Heading==
6324 === Level 3 Heading===
6325 ==== Level 4 Heading====
6326 ===== Level 5 Heading=====
6327 ====== Level 6 Heading======
6328 ======= Level 7 Heading=======
6329 ======== Level 8 Heading========
6330 ========= Level 9 Heading=========
6331 ========== Level 10 Heading==========
6333 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6335 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6337 <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>
6339 <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>
6341 <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>
6343 <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>
6345 <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>
6346 <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>
6347 <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>
6348 <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>
6349 <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>
6362 <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>
6363 <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>
6364 <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>
6365 <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>
6366 <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>
6367 <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>
6368 <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>
6369 <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>
6370 <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>
6371 <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>
6376 TOC regression (bug 9764)
6380 ==== title 1.1.1 ====
6385 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6387 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6389 <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>
6391 <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>
6394 <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>
6397 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6399 <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>
6404 <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>
6405 <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>
6406 <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>
6407 <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>
6408 <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>
6409 <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>
6414 TOC with wgMaxTocLevel=3 (bug 6204)
6420 ==== title 1.1.1 ====
6425 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6427 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6429 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
6430 <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>
6433 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6435 <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>
6440 <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>
6441 <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>
6442 <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>
6443 <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>
6444 <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>
6445 <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>
6450 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6456 ====Section 1.1.1====
6457 ====Section 1.1.1.1====
6460 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6462 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6464 <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>
6467 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6470 <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>
6471 <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>
6472 <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>
6473 <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>
6474 <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>
6480 Resolving duplicate section names
6485 <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>
6486 <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>
6491 Resolving duplicate section names with differing case (bug 10721)
6496 <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>
6497 <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>
6509 Template with sections, __NOTOC__
6516 <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>
6517 <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>
6518 <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>
6519 <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>
6524 __NOEDITSECTION__ keyword
6530 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6531 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6536 Link inside a section heading
6538 ==Section with a [[Main Page|link]] in it==
6540 <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>
6545 TOC regression (bug 12077)
6552 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6554 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6556 <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>
6559 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6562 <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>
6563 <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>
6564 <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>
6569 BUG 1219 URL next to image (good)
6571 http://example.com [[Image:foobar.jpg]]
6573 <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>
6578 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6581 The line above must have a trailing space!
6584 But just in case it doesn't...
6586 <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>
6587 <p>The line above must have a trailing space!
6589 <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>
6590 <p>But just in case it doesn't...
6595 Header with special characters (bug 25462)
6597 The tooltips shall not show entities to the user (ie. be double escaped)
6614 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6616 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6618 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6619 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6620 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6621 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6622 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6625 <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>
6628 <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>
6631 <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>
6634 <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>
6637 <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>
6643 Headers with excess '=' characters
6644 (Are similar tests necessary beyond the 1st level?)
6648 =''italic'' heading==
6649 ==''italic'' heading=
6651 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6653 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6654 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6655 <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>
6656 <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>
6659 <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>
6660 <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>
6661 <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>
6662 <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>
6667 BUG 1219 URL next to image (broken)
6669 http://example.com[[Image:foobar.jpg]]
6671 <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>
6676 Bug 1186 news: in the middle of text
6678 http://en.wikinews.org/wiki/Wikinews:Workplace
6680 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6686 Namespaced link must have a title
6695 Namespaced link must have a title (bad fragment version)
6697 [[Project:#fragment]]
6699 <p>[[Project:#fragment]]
6705 div with no attributes
6707 <div>HTML rocks</div>
6709 <div>HTML rocks</div>
6714 div with double-quoted attribute
6716 <div id="rock">HTML rocks</div>
6718 <div id="rock">HTML rocks</div>
6723 div with single-quoted attribute
6725 <div id='rock'>HTML rocks</div>
6727 <div id="rock">HTML rocks</div>
6732 div with unquoted attribute
6734 <div id=rock>HTML rocks</div>
6736 <div id="rock">HTML rocks</div>
6741 div with illegal double attributes
6743 <div id="a" id="b">HTML rocks</div>
6745 <div id="b">HTML rocks</div>
6750 HTML multiple attributes correction
6752 <p class="error" class="awesome">Awesome!</p>
6754 <p class="awesome">Awesome!</p>
6759 Table multiple attributes correction
6762 !+ class="error" class="awesome"| status
6767 <th class="awesome"> status
6775 <DIV ID="x">HTML ROCKS</DIV>
6777 <div id="x">HTML ROCKS</div>
6783 text with amp in the middle of nowhere
6787 <p>Remember AT&T?
6792 text with character entity: eacute
6794 I always thought é was a cute letter.
6796 <p>I always thought é was a cute letter.
6801 text with undefined character entity: xacute
6803 I always thought &xacute; was a cute letter.
6805 <p>I always thought &xacute; was a cute letter.
6817 [[Media:Foobar.jpg]]
6819 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6824 Media link with text
6826 [[Media:Foobar.jpg|A neat file to look at]]
6828 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6832 # FIXME: this is still bad HTML tag nesting
6834 Media link with nasty text
6835 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6837 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6839 <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>
6844 Media link to nonexistent file (bug 1702)
6846 [[Media:No such.jpg]]
6848 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6853 Image link to nonexistent file (bug 1850 - good)
6855 [[Image:No such.jpg]]
6857 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6862 :Image link to nonexistent file (bug 1850 - bad)
6864 [[:Image:No such.jpg]]
6866 <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>
6873 Character reference normalization in link text (bug 1938)
6875 [[Main Page|this&that]]
6877 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6884 Test for unicode normalization
6886 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6890 (bug 19451) Links should refer to the normalized form.
6898 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6899 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6900 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6901 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6902 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6907 Empty attribute crash test (bug 2067)
6909 <font color="">foo</font>
6911 <p><font color="">foo</font>
6916 Empty attribute crash test single-quotes (bug 2067)
6918 <font color=''>foo</font>
6920 <p><font color="">foo</font>
6925 Attribute test: equals, then nothing
6927 <font color=>foo</font>
6934 Attribute test: unquoted value
6936 <font color=x>foo</font>
6938 <p><font color="x">foo</font>
6943 Attribute test: unquoted but illegal value (hash)
6945 <font color=#x>foo</font>
6947 <p><font color="#x">foo</font>
6952 Attribute test: no value
6954 <font color>foo</font>
6956 <p><font color="color">foo</font>
6961 Bug 2095: link with three closing brackets
6965 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6970 Bug 2095: link with pipe and three closing brackets
6974 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6979 Bug 2095: link with pipe and three closing brackets, version 2
6981 [[Main Page|[http://example.com/]]]
6983 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6993 Template:Dangerous attribute
6995 " onmouseover="alert(document.cookie)
6999 Template:Dangerous style attribute
7001 border-size: expression(alert(document.cookie))
7007 <div style="float: right; {{{1}}}">Magic div</div>
7011 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7013 <div title="{{test}}"></div>
7015 <div title="This is a test template"></div>
7020 Bug 2304: HTML attribute safety (dangerous template; 2309)
7022 <div title="{{dangerous attribute}}"></div>
7024 <div title=""></div>
7029 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7031 <div style="{{dangerous style attribute}}"></div>
7033 <div style="/* insecure input */"></div>
7038 Bug 2304: HTML attribute safety (safe parameter; 2309)
7040 {{div style|width: 200px}}
7042 <div style="float: right; width: 200px">Magic div</div>
7047 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7049 {{div style|width: expression(alert(document.cookie))}}
7051 <div style="/* insecure input */">Magic div</div>
7056 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7058 {{div style|"><script>alert(document.cookie)</script>}}
7060 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7065 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7067 {{div style|" ><script>alert(document.cookie)</script>}}
7069 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7074 Bug 2304: HTML attribute safety (link)
7076 <div title="[[Main Page]]"></div>
7078 <div title="[[Main Page]]"></div>
7083 Bug 2304: HTML attribute safety (italics)
7085 <div title="''foobar''"></div>
7087 <div title="''foobar''"></div>
7092 Bug 2304: HTML attribute safety (bold)
7094 <div title="'''foobar'''"></div>
7096 <div title="'''foobar'''"></div>
7102 Bug 2304: HTML attribute safety (ISBN)
7104 <div title="ISBN 1234567890"></div>
7106 <div title="ISBN 1234567890"></div>
7111 Bug 2304: HTML attribute safety (RFC)
7113 <div title="RFC 1234"></div>
7115 <div title="RFC 1234"></div>
7120 Bug 2304: HTML attribute safety (PMID)
7122 <div title="PMID 1234567890"></div>
7124 <div title="PMID 1234567890"></div>
7129 Bug 2304: HTML attribute safety (web link)
7131 <div title="http://example.com/"></div>
7133 <div title="http://example.com/"></div>
7138 Bug 2304: HTML attribute safety (named web link)
7140 <div title="[http://example.com/ link]"></div>
7142 <div title="[http://example.com/ link]"></div>
7147 Bug 3244: HTML attribute safety (extension; safe)
7149 <div style="<nowiki>background:blue</nowiki>"></div>
7151 <div style="background:blue"></div>
7156 Bug 3244: HTML attribute safety (extension; unsafe)
7158 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7160 <div style="/* insecure input */"></div>
7164 # More MSIE fun discovered by Tom Gilder
7167 MSIE CSS safety test: spurious slash
7169 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7171 <div style="/* insecure input */">evil</div>
7176 MSIE CSS safety test: hex code
7178 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7180 <div style="/* insecure input */">evil</div>
7185 MSIE CSS safety test: comment in url
7187 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7189 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7194 MSIE CSS safety test: comment in expression
7196 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7198 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7204 Table attribute legitimate extension
7207 !+ style="<nowiki>color:blue</nowiki>"| status
7212 <th style="color:blue"> status
7218 Table attribute safety
7221 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7226 <th style="/* insecure input */"> status
7232 CSS line continuation 1
7234 <div style="background-image: u\ rl(test.jpg);"></div>
7236 <div style="/* insecure input */"></div>
7241 CSS line continuation 2
7243 <div style="background-image: u\ rl(test.jpg); "></div>
7245 <div style="/* insecure input */"></div>
7256 Expansion of multi-line templates in attribute values (bug 6255)
7258 <div style="background: {{identity|#00FF00}}">-</div>
7260 <div style="background: #00FF00">-</div>
7266 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7268 <div style="background:
7271 <div style="background: #00FF00">-</div>
7276 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7278 <div style="background: #00FF00">-</div>
7280 <div style="background: #00FF00">-</div>
7285 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7288 Parser hook: empty input
7301 Parser hook: empty input using terminated empty elements
7314 Parser hook: empty input using terminated empty elements (space before)
7327 Parser hook: basic input
7341 Parser hook: case insensitive
7355 Parser hook: case insensitive, redux
7368 Parser hook: nested tags
7372 <tag><tag></tag></tag>
7383 Parser hook: basic arguments
7385 <tag width=200 height = "100" depth = '50' square></tag>
7393 'square' => 'square',
7400 Parser hook: argument containing a forward slash (bug 5344)
7402 <tag filename='/tmp/bla'></tag>
7407 'filename' => '/tmp/bla',
7414 Parser hook: empty input using terminated empty elements (bug 2374)
7427 # </tag> should be output literally since there is no matching tag that begins it
7429 Parser hook: basic arguments using terminated empty elements (bug 2374)
7431 <tag width=200 height = "100" depth = '50' square/>
7441 'square' => 'square',
7450 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7454 Parser hook: static parser hook not inside a comment
7456 <statictag>hello, world</statictag>
7457 <statictag action=flush/>
7465 Parser hook: static parser hook inside a comment
7467 <!-- <statictag>hello, world</statictag> -->
7468 <statictag action=flush/>
7474 # Nested template calls; this case was broken by Parser.php rev 1.506,
7478 Template:One-parameter
7480 (My parameter is: {{{1}}})
7484 Template:Map-one-parameter
7490 Nested template calls
7492 {{Map-one-parameter|One-parameter|param}}
7494 <p>(My parameter is: param)
7503 Sanitizer: Closing of open tags
7505 <s></s><table></table>
7507 <s></s><table></table>
7512 Sanitizer: Closing of open but not closed tags
7521 Sanitizer: Closing of closed but not open tags
7530 Sanitizer: Closing of closed but not open table tags
7532 Table not started</td></tr></table>
7534 <p>Table not started</td></tr></table>
7539 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7541 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7543 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7548 Sanitizer: Validating the contents of the id attribute (bug 4515)
7554 Something, but definitely not <br id="9" />...
7558 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7562 <br id="foo" /><br id="foo" />
7564 Something need to be done. foo-2 ?
7568 Language converter: output gets cut off unexpectedly (bug 5757)
7572 this bit is safe: }-
7574 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7576 then we get cut off here: }-
7578 all additional text is vanished
7580 <p>this bit is safe: }-
7581 </p><p>but if we add a conversion instance: xxx
7582 </p><p>then we get cut off here: }-
7583 </p><p>all additional text is vanished
7588 Self closed html pairs (bug 5487)
7591 <center><font id="bug" />Centered text</center>
7592 <div><font id="bug2" />In div text</div>
7594 <center><font id="bug" />Centered text</center>
7595 <div><font id="bug2" />In div text</div>
7604 Punctuation: nbsp before exclamation
7608 <p>C'est grave !
7613 Punctuation: CSS !important (bug 11874)
7615 <div style="width:50% !important">important</div>
7617 <div style="width:50% !important">important</div>
7622 Punctuation: CSS ! important (bug 11874; with space after)
7624 <div style="width:50% ! important">important</div>
7626 <div style="width:50% ! important">important</div>
7632 HTML bullet list, closed tags (bug 5497)
7647 HTML bullet list, unclosed tags (bug 5497)
7664 HTML ordered list, closed tags (bug 5497)
7679 HTML ordered list, unclosed tags (bug 5497)
7696 HTML nested bullet list, closed tags (bug 5497)
7721 HTML nested bullet list, open tags (bug 5497)
7746 HTML nested ordered list, closed tags (bug 5497)
7771 HTML nested ordered list, open tags (bug 5497)
7796 HTML ordered list item with parameters oddity
7798 <ol><li id="fragment">One</li></ol>
7800 <ol><li id="fragment">One</li></ol>
7805 bug 5918: autonumbering
7807 [http://first/] [http://second] [ftp://ftp]
7811 [mailto:enclosed@mail.tld With target]
7813 [mailto:enclosed@mail.tld]
7815 mailto:inline@mail.tld
7817 <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>
7818 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7819 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7820 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7821 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7827 # Security and HTML correctness
7828 # From Nick Jenkins' fuzz testing
7832 Fuzz testing: Parser13
7847 Fuzz testing: Parser14
7852 <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>
7853 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7855 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7862 Fuzz testing: Parser14-table
7867 <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>
7868 <table style="__TOC__">
7874 # Known to produce bogus xml (extra </td>)
7876 Fuzz testing: Parser16
7896 Fuzz testing: Parser21
7899 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7904 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7914 Fuzz testing: Parser22
7916 http://===r:::https://b
7920 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7928 # Known to produce bad XML for now
7930 Fuzz testing: Parser24
7937 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7938 <br style="onmouseover='alert(document.cookie);' " />
7940 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7945 <u class="|">}}}} >
7946 <br style="onmouseover='alert(document.cookie);'" />
7948 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7957 # Note: the current result listed for this is not what the original one was,
7958 # but the original bug was JavaScript injection, which is fixed in any case.
7959 # It's not clear that the original result listed was any more correct than the
7960 # current one. Original result:
7963 # <li class="||">
7964 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7966 Fuzz testing: Parser25 (bug 6055)
7972 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7974 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7979 Fuzz testing: URL adjacent extension (with space, clean)
7982 http://example.com <nowiki>junk</nowiki>
7984 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7989 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7992 http://example.com<nowiki>junk</nowiki>
7994 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7999 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8002 http://example.com<pre>junk</pre>
8004 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8009 Fuzz testing: image with bogus manual thumbnail
8011 [[Image:foobar.jpg|thumbnail= ]]
8013 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8018 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8020 <pre dir=" "></pre>
8022 <pre dir=" "></pre>
8027 Parsing optional HTML elements (Bug 6171)
8032 <td> Some tabular data</td>
8033 <td> More tabular data ...
8034 <td> And yet som tabular data</td>
8040 <td> Some tabular data</td>
8041 <td> More tabular data ...
8042 </td><td> And yet som tabular data</td>
8049 Correct handling of <td>, <tr> (Bug 6171)
8054 <td> Some tabular data</td>
8055 <td> More tabular data ...</td>
8056 <td> And yet som tabular data</td>
8062 <td> Some tabular data</td>
8063 <td> More tabular data ...</td>
8064 <td> And yet som tabular data</td>
8072 Parsing crashing regression (fr:JavaScript)
8076 <p></body></x>
8081 Inline wiki vs wiki block nesting
8087 <p><b>Bold paragraph</b>
8088 </p><p>New wiki paragraph
8093 Inline HTML vs wiki block nesting
8101 <p><b>Bold paragraph</b>
8102 </p><p>New wiki paragraph
8106 # Original result was this:
8107 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8109 # While that might be marginally more intuitive, maybe, the six-apostrophe
8110 # construct is clearly pathological and the result stated here (which is what
8111 # the parser actually does) is about as reasonable as anything.
8113 Mixing markup for italics and bold
8116 '''bold''''''bold''bolditalics'''''
8118 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8126 Article for special page transclusion test
8130 Special page transclusion
8133 {{Special:Prefixindex/Xyzzyx}}
8135 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8140 Special page transclusion twice (bug 5021)
8143 {{Special:Prefixindex/Xyzzyx}}
8144 {{Special:Prefixindex/Xyzzyx}}
8146 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8147 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8152 Transclusion of default MediaWiki message
8154 {{MediaWiki:Mainpage}}
8161 Transclusion of nonexistent MediaWiki message
8163 {{MediaWiki:Mainpagexxx}}
8165 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8170 Transclusion of MediaWiki message with underscore
8172 {{MediaWiki:history_short}}
8179 Transclusion of MediaWiki message with space
8181 {{MediaWiki:history short}}
8188 Invalid header with following text
8198 Section extraction test (section 0)
8218 Section extraction test (section 1)
8240 Section extraction test (section 2)
8261 Section extraction test (section 3)
8281 Section extraction test (section 4)
8305 Section extraction test (section 5)
8325 Section extraction test (section 6)
8346 Section extraction test (section 7)
8366 Section extraction test (section 8)
8386 Section extraction test (section 9)
8407 Section extraction test (section 10)
8427 Section extraction test (nonexistent section 11)
8446 Section extraction test with bogus heading (section 1)
8451 ==bogus== not a legal section
8455 ==bogus== not a legal section
8459 Section extraction test with bogus heading (section 2)
8464 ==bogus== not a legal section
8471 Section extraction test with comment after heading (section 1)
8483 Section extraction test with comment after heading (section 2)
8495 Section extraction test with bogus <nowiki> heading (section 1)
8500 ==bogus== <nowiki>not a legal section</nowiki>
8504 ==bogus== <nowiki>not a legal section</nowiki>
8508 Section extraction test with bogus <nowiki> heading (section 2)
8513 ==bogus== <nowiki>not a legal section</nowiki>
8520 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8521 # instead of respecting commented sections
8523 Section extraction prefixed by comment (section 1)
8534 Section extraction prefixed by comment (section 2)
8545 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8546 # instead of respecting HTML-style headings
8548 Section extraction, mixed wiki and html (section 1)
8564 Section extraction, mixed wiki and html (section 2)
8580 # Formerly testing for bug 3342
8582 Section extraction, heading surrounded by <noinclude>
8586 <noinclude>==unmarked==</noinclude>
8592 # Test behaviour of bug 19910
8594 Sectiion with all-equals
8599 The line above must have a trailing space
8602 But just in case it doesn't...
8606 But just in case it doesn't...
8610 Section replacement test (section 0)
8641 Section replacement test (section 1)
8670 Section replacement test (section 2)
8700 Section replacement test (section 3)
8731 Section replacement test (section 4)
8758 Section replacement test (section 5)
8789 Section replacement test (section 6)
8819 Section replacement test (section 7)
8850 Section replacement test (section 8)
8881 Section replacement test (section 9)
8910 Section replacement test (section 10)
8940 Section replacement test with initial whitespace (bug 13728)
8944 Preformatted initial line
8948 Preformatted initial line
8955 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8967 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8980 Section extraction, <pre> around bogus header (bug 10309)
8997 Section replacement, <pre> around bogus header (bug 10309)
8999 noxml replace=2,"xxx"
9020 Handling of 
 in URLs
9024 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9031 5 quotes, code coverage +1 line
9038 Special:Search page linking.
9042 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9057 * {{SUBJECTPAGENAME}}
9058 * {{SUBJECTPAGENAMEE}}
9065 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9067 <ul><li> Parser test
9068 </li><li> Parser test
9069 </li><li> Parser test
9070 </li><li> Parser_test
9071 </li><li> Parser test
9072 </li><li> Parser_test
9073 </li><li> Talk:Parser test
9074 </li><li> Talk:Parser_test
9075 </li><li> Parser test
9076 </li><li> Parser_test
9083 </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>
9087 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9097 image4 |300px| centre
9098 image5.svg| http://///////
9103 <ul class="gallery">
9104 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9105 <div style="height: 150px;">Image1.png</div>
9106 <div class="gallerytext">
9109 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9110 <div style="height: 150px;">Image2.gif</div>
9111 <div class="gallerytext">
9116 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9117 <div style="height: 150px;">Image3</div>
9118 <div class="gallerytext">
9121 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9122 <div style="height: 150px;">Image4</div>
9123 <div class="gallerytext">
9128 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9129 <div style="height: 150px;">Image5.svg</div>
9130 <div class="gallerytext">
9131 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9135 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9136 <div style="height: 150px;">* image6</div>
9137 <div class="gallerytext">
9145 Gallery (with options)
9147 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9148 File:Nonexistant.jpg|caption
9149 File:Nonexistant.jpg
9150 image:foobar.jpg|some '''caption''' [[Main Page]]
9152 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9155 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9156 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9157 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9158 <div style="height: 70px;">Nonexistant.jpg</div>
9159 <div class="gallerytext">
9164 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9165 <div style="height: 70px;">Nonexistant.jpg</div>
9166 <div class="gallerytext">
9169 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9170 <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>
9171 <div class="gallerytext">
9172 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9176 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9177 <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>
9178 <div class="gallerytext">
9181 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9182 <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>
9183 <div class="gallerytext">
9193 Gallery with wikitext inside caption
9196 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9197 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9200 <ul class="gallery">
9201 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9202 <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>
9203 <div class="gallerytext">
9204 <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>
9208 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9209 <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>
9210 <div class="gallerytext">
9211 <p>This is a test template
9220 gallery (with showfilename option)
9222 <gallery showfilename>
9223 File:Nonexistant.jpg|caption
9224 File:Nonexistant.jpg
9225 image:foobar.jpg|some '''caption''' [[Main Page]]
9229 <ul class="gallery">
9230 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9231 <div style="height: 150px;">Nonexistant.jpg</div>
9232 <div class="gallerytext">
9233 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9238 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9239 <div style="height: 150px;">Nonexistant.jpg</div>
9240 <div class="gallerytext">
9241 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9245 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9246 <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>
9247 <div class="gallerytext">
9248 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9249 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9253 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9254 <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>
9255 <div class="gallerytext">
9256 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9265 Gallery (with namespace-less filenames)
9268 File:Nonexistant.jpg
9274 <ul class="gallery">
9275 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9276 <div style="height: 150px;">Nonexistant.jpg</div>
9277 <div class="gallerytext">
9280 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9281 <div style="height: 150px;">Nonexistant.jpg</div>
9282 <div class="gallerytext">
9285 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9286 <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>
9287 <div class="gallerytext">
9290 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9291 <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>
9292 <div class="gallerytext">
9300 HTML Hex character encoding (spells the word "JavaScript")
9302 JavaScript
9304 <p>JavaScript
9309 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9313 <p>&#xsee;&#XSEE;
9318 HTML Hex character encoding mixed case
9327 __FORCETOC__ override
9339 ISBN 978-0-1234-56 789
9341 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9346 ISBN followed by 5 spaces
9357 ISBN ISBN 1234567890
9359 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9364 Bug 22905: <abbr> followed by ISBN followed by </a>
9366 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9368 <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>
9377 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9382 Double RFC with a wiki link
9386 <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>
9395 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9400 Centre-aligned image
9402 [[Image:foobar.jpg|centre]]
9404 <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>
9411 [[Image:foobar.jpg|none]]
9413 <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>
9418 Width + Height sized image (using px) (height is ignored)
9420 [[Image:foobar.jpg|640x480px]]
9422 <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>
9427 Width-sized image (using px, no following whitespace)
9429 [[Image:foobar.jpg|640px]]
9431 <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>
9436 Width-sized image (using px, with following whitespace - test regression from r39467)
9438 [[Image:foobar.jpg|640px ]]
9440 <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>
9445 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9447 [[Image:foobar.jpg| 640px]]
9449 <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>
9454 Another italics / bold test
9462 # Note the results may be incorrect, as parserTest output included this:
9463 # XML error: Mismatched tag at byte 6120:
9464 # ...<dd> </dt></dl> </dd...
9472 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9483 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9485 Images with the "|" character in the comment
9487 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9489 <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>
9494 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9496 <html><script>alert(1);</script></html>
9498 <p><html><script>alert(1);</script></html>
9503 HTML with raw HTML ($wgRawHtml==true)
9507 <html><script>alert(1);</script></html>
9509 <p><script>alert(1);</script>
9514 Parents of subpages, one level up
9516 subpage title=[[Subpage test/L1/L2/L3]]
9520 <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>
9526 Parents of subpages, one level up, not named
9528 subpage title=[[Subpage test/L1/L2/L3]]
9532 <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>
9539 Parents of subpages, two levels up
9541 subpage title=[[Subpage test/L1/L2/L3]]
9547 <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
9548 </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>
9553 Parents of subpages, two levels up, without trailing slash or name.
9555 subpage title=[[Subpage test/L1/L2/L3]]
9564 Parents of subpages, two levels up, with lots of extra trailing slashes.
9566 subpage title=[[Subpage test/L1/L2/L3]]
9570 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9575 Definition list code coverage
9581 <dl><dt> title  </dt><dd> def
9582 </dd><dt> title </dt><dd> def
9583 </dd><dt>title</dt><dd> def
9589 Don't fall for the self-closing div
9591 <div>hello world</div/>
9593 <div>hello world</div>
9602 <p>[[:Template:Msg]]
9611 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9615 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9617 Always escape literal '>' in output, not just after '<'
9631 <p>This is a test template
9632 This is a test template
9644 Inclusion of !userCanEdit() content
9648 <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>
9654 Out-of-order TOC heading levels
9663 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9665 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9667 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9668 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9671 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9673 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9674 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9679 <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>
9680 <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>
9681 <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>
9682 <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>
9683 <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>
9684 <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>
9690 ISBN with a dummy number
9700 ISBN with space-delimited number
9704 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9710 ISBN with multiple spaces, no number
9729 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9730 </p><p>ISBN 12345678901
9736 ISBN with trailing year (bug 8110)
9738 ISBN 1-234-56789-0 - 2006
9740 ISBN 1 234 56789 0 - 2006
9742 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9743 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9751 {{anchorencode:foo bar©#%n}}
9753 <p>foo_bar.C2.A9.23.25n
9758 anchorencode trims spaces
9760 {{anchorencode: __pretty__please__}}
9767 anchorencode deals with links
9769 {{anchorencode: [[hello|world]] [[hi]]}}
9776 anchorencode deals with templates
9778 {{anchorencode: {{Foo}} }}
9785 anchorencode encodes like the TOC generator: (bug 18431)
9787 === _ +:.3A%3A&&]] ===
9788 {{anchorencode: _ +:.3A%3A&&]] }}
9791 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9792 <p>.2B:.3A.253A.26.26.5D.5D
9796 # Expected output in the following test is not necessarily expected (there
9797 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9798 # only testing for well-formedness.
9800 Bug 6200: blockquotes and paragraph formatting
9820 Bug 8293: Use of center tag ruins paragraph formatting
9842 ### Language variants related tests
9845 Self-link in language variants
9847 title=[[Dunav]] language=sr
9849 Both [[Dunav]] and [[Дунав]] are names for this river.
9851 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9857 Link to pages in language variants
9861 Main Page can be written as [[Маин Паге]]
9863 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9869 Multiple links to pages in language variants
9873 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9875 <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>.
9881 Simple template in language variants
9887 <p>This is a test template
9893 Template with explicit namespace in language variants
9899 <p>This is a test template
9905 Basic test for template parameter in language variants
9909 {{парамтест|param=foo}}
9911 <p>This is a test template with parameter foo
9917 Simple category in language variants
9921 [[Category:МедиаWики Усер'с Гуиде]]
9923 <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>
9928 Stripping -{}- tags (language variants)
9932 Latin proverb: -{Ne nuntium necare}-
9934 <p>Latin proverb: Ne nuntium necare
9940 Prevent conversion with -{}- tags (language variants)
9942 language=sr variant=sr-ec
9944 Latinski: -{Ne nuntium necare}-
9946 <p>Латински: Ne nuntium necare
9952 Prevent conversion of text with -{}- tags (language variants)
9954 language=sr variant=sr-ec
9956 Latinski: -{Ne nuntium necare}-
9958 <p>Латински: Ne nuntium necare
9964 Prevent conversion of links with -{}- tags (language variants)
9966 language=sr variant=sr-ec
9970 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9976 -{}- tags within headlines (within html for parserConvert())
9978 language=sr variant=sr-ec
9982 <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>
9988 Explicit definition of language variant alternatives
9990 language=zh variant=zh-tw
9992 -{zh:China;zh-tw:Taiwan}-, not China
9994 <p>Taiwan, not China
10000 Explicit session-wise language variant mapping (A flag and - flag)
10002 language=zh variant=zh-tw
10004 Taiwan is not China.
10005 But -{A|zh:China;zh-tw:Taiwan}- is China,
10006 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10007 and -{China}- is China.
10009 <p>Taiwan is not China.
10010 But Taiwan is Taiwan,
10011 (This should be stripped!)
10012 and China is China.
10017 Explicit session-wise language variant mapping (H flag for hide)
10019 language=zh variant=zh-tw
10021 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10024 <p>(This should be stripped!)
10030 Adding explicit conversion rule for title (T flag)
10032 language=zh variant=zh-tw showtitle
10034 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10037 <p>Should be stripped!
10042 Testing that changing the language variant here in the tests actually works
10044 language=zh variant=zh showtitle
10046 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10049 <p>Should be stripped!
10054 Bug 24072: more test on conversion rule for title
10056 language=zh variant=zh-tw showtitle
10058 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10059 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10062 <p>This should be stripped!
10063 This won't take interferes with the title rule.
10068 Raw output of variant escape tags (R flag)
10070 language=zh variant=zh-tw
10072 Raw: -{R|zh:China;zh-tw:Taiwan}-
10074 <p>Raw: zh:China;zh-tw:Taiwan
10079 Nested using of manual convert syntax
10081 language=zh variant=zh-hk
10083 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10085 <p>Nested: Hello Hong Kong!
10090 Do not convert roman numbers to language variants
10092 language=sr variant=sr-ec
10096 <p>Фридрих IV је цар.
10101 Unclosed language converter markup "-{"
10112 Don't convert raw rule "-{R|=>}-" to "=>"
10129 Bug 529: Uncovered bullet
10140 Bug 529: Uncovered table already at line-start
10163 Bug 529: Uncovered bullet in parser function result
10165 * Foo {{lc:{{bullet}} }}
10174 Bug 5678: Double-parsed template argument
10176 {{lc:{{{1}}}|hello}}
10183 Bug 5678: Double-parsed template invocation
10185 {{lc:{{paramtest {{!}} param = hello }} }}
10187 <p>{{paramtest | param = hello }}
10192 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10195 title=[[Main Page]]
10197 {{PRVNÍVELKÉ:ěščř}}
10198 {{prvnívelké:ěščř}}
10218 Morwen/13: Unclosed link followed by heading
10225 <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>
10230 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10237 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10242 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10249 <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>
10264 Paragraphs inside divs (no extra line breaks)
10276 Paragraphs inside divs (extra line break on open)
10291 Paragraphs inside divs (extra line break on close)
10306 Paragraphs inside divs (extra line break on open and close)
10323 Nesting tags, paragraphs on lines which begin with <div>
10327 <div></div><strong>A
10336 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10338 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10342 <blockquote>Line one
10344 Line two</blockquote>
10346 <blockquote>Line one
10347 Line two</blockquote>
10352 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10359 Line two</blockquote>
10364 Line two</blockquote>
10369 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10373 <blockquote>Line one
10378 <blockquote>Line one
10386 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10405 Paragraphs inside blockquotes/divs (no extra line breaks)
10407 <blockquote><div>Line one
10409 Line two</div></blockquote>
10411 <blockquote><div>Line one
10412 Line two</div></blockquote>
10417 Paragraphs inside blockquotes/divs (extra line break on open)
10422 Line two</div></blockquote>
10427 Line two</div></blockquote>
10432 Paragraphs inside blockquotes/divs (extra line break on close)
10434 <blockquote><div>Line one
10437 </div></blockquote>
10439 <blockquote><div>Line one
10442 </div></blockquote>
10447 Paragraphs inside blockquotes/divs (extra line break on open and close)
10453 </div></blockquote>
10459 </div></blockquote>
10464 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10466 wgLinkHolderBatchSize=0
10472 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10473 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10474 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10479 Free external link invading image caption
10481 [[Image:Foobar.jpg|thumb|http://x|hello]]
10483 <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>
10488 Bug 15196: localised external link numbers
10492 [http://en.wikipedia.org/]
10494 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10499 Multibyte character in padleft
10501 {{padleft:-Hello|7|Æ}}
10508 Multibyte character in padright
10510 {{padright:Hello-|7|Æ}}
10519 wgUseDynamicDates=1
10523 <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>
10528 formatdate parser function
10530 {{#formatdate:2009-03-24}}
10532 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10537 formatdate parser function, with default format
10539 {{#formatdate:2009-03-24|mdy}}
10541 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10546 Linked date with autoformatting disabled
10548 wgUseDynamicDates=false
10552 <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>
10557 Spacing of numbers in formatted dates
10559 {{#formatdate:January 15}}
10561 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10566 Spacing of numbers in formatted dates (linked)
10568 wgUseDynamicDates=true
10572 <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>
10577 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
10579 language=nl title=[[MediaWiki:Common.css]]
10581 {{#formatdate:2009-03-24|dmy}}
10583 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10596 Edit comment with link
10600 I like the [[Main Page]] a lot
10602 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10606 Edit comment with link and link text
10610 I like the [[Main Page|best pages]] a lot
10612 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10616 Edit comment with link and link text with suffix
10620 I like the [[Main Page|best page]]s a lot
10622 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10626 Edit comment with section link (non-local, eg in history list)
10628 comment title=[[Main Page]]
10630 /* External links */ removed bogus entries
10632 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10636 Edit comment with section link and text before it (non-local, eg in history list)
10638 comment title=[[Main Page]]
10640 pre-comment text /* External links */ removed bogus entries
10642 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>
10646 Edit comment with section link (local, eg in diff view)
10648 comment local title=[[Main Page]]
10650 /* External links */ removed bogus entries
10652 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10656 Edit comment with subpage link (bug 14080)
10660 title=[[Subpage test]]
10662 Poked at a [[/subpage]] here...
10664 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10668 Edit comment with subpage link and link text (bug 14080)
10672 title=[[Subpage test]]
10674 Poked at a [[/subpage|neat little page]] here...
10676 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10680 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10683 title=[[Subpage test]]
10685 Poked at a [[/subpage]] here...
10687 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10691 Edit comment with bare anchor link (local, as on diff)
10695 title=[[Main Page]]
10699 <a href="#section">#section</a>
10703 Edit comment with bare anchor link (non-local, as on history)
10706 title=[[Main Page]]
10710 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10714 Anchor starting with underscore
10718 <p><a href="#_ref">One</a>
10723 Id starting with underscore
10725 <div id="_ref"></div>
10727 <div id="_ref"></div>
10732 Space normalisation on autocomment (bug 22784)
10735 title=[[Main Page]]
10737 /* __hello__world__ */
10739 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10743 percent-encoding and + signs in comments (Bug 26410)
10747 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10749 <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>
10753 Bad images - basic functionality
10762 Bad images - bug 16039: text after bad image disappears
10776 Verify that displaytitle works (bug #22501) no displaytitle
10780 wgAllowDisplayTitle=true
10781 wgRestrictDisplayTitle=false
10783 this is not the the title
10786 <p>this is not the the title
10791 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10796 wgAllowDisplayTitle=true
10797 wgRestrictDisplayTitle=false
10799 this is not the the title
10800 {{DISPLAYTITLE:whatever}}
10803 <p>this is not the the title
10808 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10813 wgAllowDisplayTitle=true
10814 wgRestrictDisplayTitle=true
10816 this is not the the title
10817 {{DISPLAYTITLE:whatever}}
10820 <p>this is not the the title
10825 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10830 wgAllowDisplayTitle=true
10831 wgRestrictDisplayTitle=true
10833 this is not the the title
10834 {{DISPLAYTITLE:screen}}
10837 <p>this is not the the title
10842 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10847 wgAllowDisplayTitle=false
10849 this is not the the title
10850 {{DISPLAYTITLE:screen}}
10853 <p>this is not the the title
10854 <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>
10859 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10864 wgAllowDisplayTitle=false
10866 this is not the the title
10869 <p>this is not the the title
10874 preload: check <noinclude> and <includeonly>
10878 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10884 preload: check <onlyinclude>
10888 Goodbye <onlyinclude>Hello world</onlyinclude>
10894 preload: can pass tags through if we want to
10898 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10900 <includeonly>Hello world</includeonly>
10904 preload: check that it doesn't try to do tricks
10908 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10910 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10914 Play a bit with r67090 and bug 3158
10918 <div style="width:50% !important"> </div>
10919 <div style="width:50% !important"> </div>
10920 <div style="width:50% !important"> </div>
10921 <div style="border : solid;"> </div>
10923 <div style="width:50% !important"> </div>
10924 <div style="width:50% !important"> </div>
10925 <div style="width:50% !important"> </div>
10926 <div style="border : solid;"> </div>
10931 HTML5 data attributes
10933 <span data-foo="bar">Baz</span>
10934 <p data-abc-def_hij="">Quuz</p>
10936 <p><span data-foo="bar">Baz</span>
10938 <p data-abc-def_hij="">Quuz</p>
10943 percent-encoding and + signs in internal links (Bug 26410)
10945 [[User:+%]] [[Page+title%]]
10946 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10947 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10948 [[%33%45]] [[%33%45+]]
10950 <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>
10951 <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>
10952 <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>
10953 <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>
10958 Special characters in embedded file links (bug 27679)
10960 [[File:Contains & ampersand.jpg]]
10961 [[File:Does not exist.jpg|Title with & ampersand]]
10963 <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>
10964 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10970 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10972 Text's been normalized?
10974 <p>Text's been normalized?
10979 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10981 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10983 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10988 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10990 [http://www.example.org/ ideograms]
10992 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10997 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10999 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11001 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11025 Bug 31098 Template which includes system messages which includes the template
11029 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11030 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11035 Deprecated presentational attributes are converted to css
11038 | valign=top align=left width=100 height=25% | Asdf
11040 <ul type="disc"></ul>
11044 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11046 <ul style="list-style-type: disc;"></ul>
11051 Bug31490 Turkish: ucfirst 'blah'
11062 Bug31490 Turkish: ucfirst 'ix'
11073 Bug31490 Turkish: lcfirst 'BLAH'
11084 Bug31490 Turkish: ucfırst (with a dotless i)
11090 <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>
11095 Bug31490 ucfırst (with a dotless i) with English language
11101 <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>
11106 Bug 26375: TOC with italics
11108 title=[[Main Page]]
11111 == ''Lost'' episodes ==
11113 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11115 <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>
11118 <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>
11123 Bug 26375: TOC with bold
11125 title=[[Main Page]]
11128 == '''should be bold''' then normal text ==
11130 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11132 <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>
11135 <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>
11140 Bug 33845: Headings become cursive in TOC when they contain an image
11142 title=[[Main Page]]
11145 == Image [[Image:foobar.jpg]] ==
11147 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11149 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11152 <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>
11157 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11159 title=[[Main Page]]
11162 == <blockquote>Quote</blockquote> ==
11164 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11166 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11169 <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>
11174 Unclosed tags in TOC
11176 title=[[Main Page]]
11180 <small>Hanc marginis exiguitas non caperet.</small>
11183 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11185 <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>
11188 <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>
11189 <p><small>Hanc marginis exiguitas non caperet.</small>
11195 Multiple tags in TOC
11198 == <i>Foo</i> <b>Bar</b> ==
11200 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11202 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11204 <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>
11205 <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>
11208 <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>
11209 <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>
11214 Tags with parameters in TOC
11217 == <sup class="in-h2">Hello</sup> ==
11219 == <sup class="a > b">Evilbye</sup> ==
11221 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11223 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11224 <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>
11227 <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>
11228 <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>
11233 span tags with directionality in TOC
11236 == <span dir="ltr">C++</span> ==
11238 == <span dir="rtl">זבנג!</span> ==
11240 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11242 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11244 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11246 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11248 <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>
11249 <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>
11250 <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>
11251 <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>
11252 <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>
11255 <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>
11256 <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>
11257 <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>
11258 <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>
11259 <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>
11266 == {{int:headline_sample}} ==
11270 Bug 32057: Title needed when expanding <h> nodes.
11272 title=[[Main Page]]
11276 <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>
11281 Strip marker in urlencode
11283 {{urlencode:x<nowiki/>y}}
11284 {{urlencode:x<nowiki/>y|wiki}}
11285 {{urlencode:x<nowiki/>y|path}}
11312 Strip marker in formatNum
11314 {{formatnum:1<nowiki/>2}}
11315 {{formatnum:1<nowiki/>2|R}}
11323 Strip marker in grammar
11327 {{grammar:elative|foo<nowiki/>bar}}
11334 Strip marker in padleft
11336 {{padleft:|2|x<nowiki/>y}}
11343 Strip marker in padright
11345 {{padright:|2|x<nowiki/>y}}
11352 Strip marker in anchorencode
11354 {{anchorencode:x<nowiki/>y}}
11361 nowiki inside link inside heading (bug 18295)
11363 ==[[foo|x<nowiki>y</nowiki>z]]==
11365 <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>
11370 new support for bdi element (bug 31817)
11372 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11374 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11379 Ignore pipe between table row attributes
11383 |- id=foo | style='color: red'
11391 <tr id="foo" style="color: red">
11398 Gallery override link with WikiLink (bug 34852)
11401 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11404 <ul class="gallery">
11405 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11406 <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>
11407 <div class="gallerytext">
11417 Gallery override link with absolute external link (bug 34852)
11420 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11423 <ul class="gallery">
11424 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11425 <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>
11426 <div class="gallerytext">
11436 Gallery override link with malicious javascript (bug 34852)
11439 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11442 <ul class="gallery">
11443 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11444 <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>
11445 <div class="gallerytext">
11455 Language parser function
11464 Padleft and padright as substr
11466 {{padleft:|3|abcde}}
11467 {{padright:|3|abcde}}
11475 Bug 34939 - Case insensitive link parsing ([HttP://])
11477 [HttP://MediaWiki.Org/]
11479 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11484 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11486 [HttP://MediaWiki.Org/ MediaWiki]
11488 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11493 Bug 34939 - Case insensitive link parsing (HttP://)
11495 HttP://MediaWiki.Org/
11497 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11502 ### Parsoids-specific tests
11503 ### Parsoid-PHP parser incompatibilities
11506 1. SOL-sensitive wikitext tokens as template-args
11525 Try for 100% code coverage