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]]
81 Template:echo_with_span
87 Template:echo_with_div
111 This is a simple paragraph.
113 <p>This is a simple paragraph.
118 Paragraphs with extra newline spacing
156 * plain''italic''plain
157 * plain''italic''plain''italic''plain
158 * plain'''bold'''plain
159 * plain'''bold'''plain'''bold'''plain
160 * plain''italic''plain'''bold'''plain
161 * plain'''bold'''plain''italic''plain
162 * plain''italic'''bold-italic'''italic''plain
163 * plain'''bold''bold-italic''bold'''plain
164 * plain'''''bold-italic'''italic''plain
165 * plain'''''bold-italic''bold'''plain
166 * plain''italic'''bold-italic'''''plain
167 * plain'''bold''bold-italic'''''plain
168 * plain l'''italic''plain
169 * plain l''''bold''' plain
172 </li><li> plain<i>italic</i>plain
173 </li><li> plain<i>italic</i>plain<i>italic</i>plain
174 </li><li> plain<b>bold</b>plain
175 </li><li> plain<b>bold</b>plain<b>bold</b>plain
176 </li><li> plain<i>italic</i>plain<b>bold</b>plain
177 </li><li> plain<b>bold</b>plain<i>italic</i>plain
178 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
179 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
180 </li><li> plain<i><b>bold-italic</b>italic</i>plain
181 </li><li> plain<b><i>bold-italic</i>bold</b>plain
182 </li><li> plain<i>italic<b>bold-italic</b></i>plain
183 </li><li> plain<b>bold<i>bold-italic</i></b>plain
184 </li><li> plain l'<i>italic</i>plain
185 </li><li> plain l'<b>bold</b> plain
191 ### 2-quote opening sequence tests
194 Italics and bold: 2-quote opening sequence: (2,2)
204 Italics and bold: 2-quote opening sequence: (2,3)
214 Italics and bold: 2-quote opening sequence: (2,4)
224 Italics and bold: 2-quote opening sequence: (2,5)
234 ### 3-quote opening sequence tests
238 Italics and bold: 3-quote opening sequence: (3,2)
248 Italics and bold: 3-quote opening sequence: (3,3)
258 Italics and bold: 3-quote opening sequence: (3,4)
268 Italics and bold: 3-quote opening sequence: (3,5)
278 ### 4-quote opening sequence tests
282 Italics and bold: 4-quote opening sequence: (4,2)
292 Italics and bold: 4-quote opening sequence: (4,3)
302 Italics and bold: 4-quote opening sequence: (4,4)
312 Italics and bold: 4-quote opening sequence: (4,5)
322 ### 5-quote opening sequence tests
326 Italics and bold: 5-quote opening sequence: (5,2)
336 Italics and bold: 5-quote opening sequence: (5,3)
346 Italics and bold: 5-quote opening sequence: (5,4)
350 <p><i><b>foo'</b></i>
356 Italics and bold: 5-quote opening sequence: (5,5)
365 ### multiple quote sequences in a line
368 Italics and bold: multiple quote sequences: (2,4,2)
372 <p><i>foo'<b>bar</b></i>
378 Italics and bold: multiple quote sequences: (2,4,3)
382 <p><i>foo'<b>bar</b></i>
388 Italics and bold: multiple quote sequences: (2,4,4)
392 <p><i>foo'<b>bar'</b></i>
398 Italics and bold: multiple quote sequences: (3,4,2)
408 Italics and bold: multiple quote sequences: (3,4,3)
417 ### other quote tests
420 Italics and bold: other quote tests: (2,3,5)
422 ''this is about '''foo's family'''''
424 <p><i>this is about <b>foo's family</b></i>
430 Italics and bold: other quote tests: (2,(3,3),2)
432 ''this is about '''foo's''' family''
434 <p><i>this is about <b>foo's</b> family</i>
440 Italics and bold: other quote tests: (3,2,3,2)
442 '''this is about ''foo'''s family''
444 <p><b>this is about <i>foo</i></b><i>s family</i>
450 Italics and bold: other quote tests: (3,2,3,3)
452 '''this is about ''foo'''s family'''
454 <p>'<i>this is about </i>foo<b>s family</b>
461 Italics and bold: other quote tests: (3,(2,2),3)
463 '''this is about ''foo's'' family'''
465 <p><b>this is about <i>foo's</i> family</b>
470 ### <nowiki> test cases
474 <nowiki> unordered list
476 <nowiki>* This is not an unordered list item.</nowiki>
478 <p>* This is not an unordered list item.
485 <nowiki>Lorem ipsum dolor
506 :There is not nowiki.
507 :There is <nowiki>nowiki</nowiki>.
509 #There is not nowiki.
510 #There is <nowiki>nowiki</nowiki>.
512 *There is not nowiki.
513 *There is <nowiki>nowiki</nowiki>.
515 <dl><dd>There is not nowiki.
516 </dd><dd>There is nowiki.
518 <ol><li>There is not nowiki.
519 </li><li>There is nowiki.
521 <ul><li>There is not nowiki.
522 </li><li>There is nowiki.
534 <!-- comment 1 --> asdf
536 <!-- comment 1 --> asdf
539 <!-- comment 1 --> asdf
540 <!-- comment 2 -->xyz
542 <!-- comment 1 --> asdf
543 <!-- comment 2 --> xyz
599 asdf<!-- comment 1 -->jkl
609 <!-- foo --> b <!-- bar -->
623 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
629 Comment semantics and delimiters
631 <!-- --><!----><!-----><!------>
637 Comment semantics and delimiters, redux
639 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
640 -- foo -- funky huh? ... -->
646 Comment semantics and delimiters: directors cut
648 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
649 everything starting with < followed by !-- until the first -- and > we see,
650 that wouldn't be valid XML however, since in XML -- has to terminate a comment
658 Comment semantics: nesting
660 <!--<!-- no, we're not going to do anything fancy here -->-->
667 Comment semantics: unclosed comment at end
669 <!--This comment will run out to the end of the document
675 Comment in template title
684 Comment on its own line post-expand
696 Comment on its own line post-expand with non-significant whitespace
708 ### paragraph wraping tests
722 Block tag on one line
734 Block tag on both lines
746 Multiple lines without block tags
764 ### Preformatted text
773 And a [[Main Page|link]]
779 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
784 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
801 Regression with preformatted in <center>
814 # Expected output in the following test is not really expected (there should be
815 # <pre> in the output) -- it's only testing for well-formedness.
817 Bug 6200: Preformatted in <blockquote>
830 <pre> with attributes (bug 3202)
832 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
834 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
839 <pre> with width attribute (bug 3202)
841 <pre width="8">Narrow screen goodies</pre>
843 <pre width="8">Narrow screen goodies</pre>
848 <pre> with forbidden attribute (bug 3202)
850 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
852 <pre width="8">Narrow screen goodies</pre>
857 <pre> with forbidden attribute values (bug 3202)
859 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
861 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
866 <nowiki> inside <pre> (bug 13238)
874 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
882 <pre><nowiki>Foo</nowiki></pre>
887 <nowiki> and <pre> preference (first one wins)
920 <nowiki></pre></nowiki>
927 Templates: Pre: 1a. Templates that break a line should suppress <pre>
935 Templates: Pre: 1b. Templates that break a line should suppress <pre>
945 Templates: Pre: 1c: Wrapping should be based on expanded content
957 Templates: Pre: 1d: Wrapping should be based on expanded content
978 Templates: Pre: 1e. Wrapping should be based on expanded content
982 {{echo| foo}}{{echo| bar}}
987 {{echo|<!--cmt--> foo}}
989 <!--cmt-->{{echo| foo}}
991 {{echo|{{echo| }}bar}}
1009 Templates: Pre: 1f: Wrapping should be based on expanded content
1046 Templates: Single-line variant of parameter whitespace stripping test
1052 {{echo|{{echo| a}}}}
1054 {{echo|1={{echo| a}}}}
1067 ### Parsoid-centric tests for testing RT edge cases for pre
1071 1a. Pre and Comments
1084 1b. Pre and Comments
1097 1c. Pre and Comments
1147 3a. Pre and block tags (single-line html)
1155 <pre><span> foo </span>
1160 3b. Pre and block tags (pre-content on separate line)
1212 4. Multiple spaces at start-of-line
1231 ### Definition lists
1238 <dl><dt> name </dt><dd> Definition
1244 Definition list for indentation only
1248 <dl><dd> Indented text
1254 Definition list with no space
1258 <dl><dt>name</dt><dd>Definition
1264 Definition list with URL link
1266 ; http://example.com/ : definition
1268 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1274 Definition list with bracketed URL link
1276 ;[http://www.example.com/ Example]:Something about it
1278 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1284 Definition list with wikilink containing colon
1286 ; [[Help:FAQ]]: The least-read page on Wikipedia
1288 <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
1293 # At Brion's and JeLuF's insistence... :)
1295 Definition list with news link containing colon
1297 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1299 <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!
1305 Malformed definition list with colon
1307 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1309 <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
1315 Definition lists: colon in external link text
1317 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1319 <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
1325 Definition lists: colon in HTML attribute
1327 ;<b style="display: inline">bold</b>
1329 <dl><dt><b style="display: inline">bold</b>
1335 Definition lists: self-closed tag
1337 ;one<br/>two : two-line fun
1339 <dl><dt>one<br />two </dt><dd> two-line fun
1345 Bug 11748: Literal closing tags
1349 <dd>test test test test test</dd>
1351 <dd>test test test test test</dd>
1356 <dd>test test test test test</dd>
1358 <dd>test test test test test</dd>
1364 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1367 ; term : description
1373 <dl><dt> term </dt><dd> description
1384 Definition list with empty definition and following paragraph
1389 <dl><dt> term</dt><dd>
1396 Nested definition lists using html syntax
1413 Definition Lists: No nesting: Multiple dd's
1427 Definition Lists: Indentation: Regular
1443 Definition Lists: Indentation: Missing 1st level
1457 Definition Lists: Indentation: Multi-level indent
1461 <dl><dd><dl><dd><dl><dd>i3
1469 Definition Lists: Hacky use to indent tables
1476 should be left alone
1478 <dl><dd><dl><dd><table>
1483 </td></tr></table></dd></dl></dd></dl>
1485 should be left alone
1488 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1489 ## as an empty dt item. It also ignores all but the last ";" when followed
1490 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1491 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1494 ## Ex: ";;t2 ::d2" is transformed into:
1506 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1507 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1518 ## All Parsoid only definition list tests have this difference.
1520 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1521 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1524 Definition Lists: Nesting: Multi-level (Parsoid only)
1554 Definition Lists: Nesting: Test 2 (Parsoid only)
1574 Definition Lists: Nesting: Test 3 (Parsoid only)
1602 Definition Lists: Nesting: Test 4
1607 <dl><dd><dl><dd><dl><dt>t3
1617 Definition Lists: Mixed Lists: Test 1
1623 <dl><dd><dl><dt><ul><li> foo
1635 Definition Lists: Mixed Lists: Test 2
1649 Definition Lists: Mixed Lists: Test 3
1654 <ul><li><dl><dd><dl><dd><dl><dd> d1
1665 Definition Lists: Mixed Lists: Test 4
1670 <ul><li><dl><dt>d1 </dt><dd>d2
1671 </dd><dt>d3 </dt><dd>d4
1679 Definition Lists: Mixed Lists: Test 5
1694 Definition Lists: Mixed Lists: Test 6
1699 <ol><li><ul><li><dl><dd>d1
1711 Definition Lists: Mixed Lists: Test 7
1725 Definition Lists: Mixed Lists: Test 8
1741 Definition Lists: Mixed Lists: Test 9
1745 <ul><li><dl><dt>foo </dt><dd>bar
1753 Definition Lists: Mixed Lists: Test 10
1757 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1766 Definition Lists: Mixed Lists: Test 11
1771 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1776 <dl><dt>boo </dt><dd>baz
1787 Definition Lists: Weird Ones: Test 1
1789 *#;*::;; foo : bar (who uses this?)
1791 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1807 External links: non-bracketed
1809 Non-bracketed: http://example.com
1811 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1816 External links: numbered
1818 Numbered: [http://example.com]
1819 Numbered: [http://example.net]
1820 Numbered: [http://example.com]
1822 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1823 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1824 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1829 External links: specified text
1831 Specified text: [http://example.com link]
1833 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1838 External links: trail
1840 Linktrails should not work for external links: [http://example.com link]s
1842 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1847 External links: dollar sign in URL
1849 http://example.com/1$2345
1851 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1856 External links: dollar sign in URL (named)
1858 [http://example.com/1$2345]
1860 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1865 External links: open square bracket forbidden in URL (bug 4377)
1867 http://example.com/1[2345
1869 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1874 External links: open square bracket forbidden in URL (named) (bug 4377)
1876 [http://example.com/1[2345]
1878 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1883 External links: nowiki in URL link text (bug 6230)
1885 [http://example.com/ <nowiki>''example site''</nowiki>]
1887 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1892 External links: newline forbidden in text (bug 6230 regression check)
1894 [http://example.com/ first
1897 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1903 External links: Pipe char between url and text
1905 [http://example.com | link]
1907 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1912 External links: protocol-relative URL in brackets
1914 [//example.com/ Test]
1916 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1921 External links: protocol-relative URL in brackets without text
1925 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1930 External links: protocol-relative URL in free text is left alone
1934 <p>//example.com/Foo
1939 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1941 foo//example.com/Foo
1943 <p>foo//example.com/Foo
1950 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1952 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1957 External image from https
1959 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1961 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1966 Link to non-http image, no img tag
1968 Link to non-http image, no img tag: ftp://example.com/test.jpg
1970 <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>
1975 External links: terminating separator
1977 Terminating separator: http://example.com/thing,
1979 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1984 External links: intervening separator
1986 Intervening separator: http://example.com/1,2,3
1988 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1993 External links: old bug with URL in query
1995 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1997 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2002 External links: old URL-in-URL bug, mixed protocols
2004 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2006 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2011 External links: URL in text
2013 URL in text: [http://example.com http://example.com]
2015 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2020 External links: Clickable images
2022 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2024 <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>
2029 External links: raw ampersand
2031 Old & use: http://x&y
2033 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2038 External links: encoded ampersand
2040 Old & use: http://x&y
2042 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2047 External links: encoded equals (bug 6102)
2049 http://example.com/?foo=bar
2051 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2056 External links: [raw ampersand]
2058 Old & use: [http://x&y]
2060 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2065 External links: [encoded ampersand]
2067 Old & use: [http://x&y]
2069 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2074 External links: [encoded equals] (bug 6102)
2076 [http://example.com/?foo=bar]
2078 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2083 External links: [IDN ignored character reference in hostname; strip it right off]
2085 [http://e‌xample.com/]
2087 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2091 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2092 # Where an external link could easily circumvent the sanitization of the text of
2093 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2094 # test demands a higher standard. That's a bit strange.
2098 # http://example.com -> [http://example.com|http://example.com]
2099 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2101 # The first example is sanitized, but the second is not. Any security benefits
2102 # from this production are trivial to circumvent. Either remove this test and
2103 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2104 # the test accordingly.
2109 External links: IDN ignored character reference in hostname; strip it right off
2111 http://e‌xample.com/
2113 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2118 External links: www.jpeg.org (bug 554)
2122 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2127 External links: URL within URL (original bug 2)
2129 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2131 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2136 BUG 361: URL inside bracketed URL
2138 [http://www.example.com/foo http://www.example.com/bar]
2140 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2145 BUG 361: URL within URL, not bracketed
2147 http://www.example.com/foo?=http://www.example.com/bar
2149 <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>
2154 BUG 289: ">"-token in URL-tail
2156 http://www.example.com/<hello>
2158 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2163 BUG 289: literal ">"-token in URL-tail
2165 http://www.example.com/<b>html</b>
2167 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2172 BUG 289: ">"-token in bracketed URL
2174 [http://www.example.com/<hello> stuff]
2176 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2181 BUG 289: literal ">"-token in bracketed URL
2183 [http://www.example.com/<b>html</b> stuff]
2185 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2190 BUG 289: literal double quote at end of URL
2192 http://www.example.com/"hello"
2194 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2199 BUG 289: literal double quote in bracketed URL
2201 [http://www.example.com/"hello" stuff]
2203 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2208 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2210 [http://www.example.com test]
2212 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2217 External links: wiki links within external link (Bug 3695)
2219 [http://example.com [[wikilink]] embedded in ext link]
2221 <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>
2226 BUG 787: Links with one slash after the url protocol are invalid
2230 [http:/example.com title]
2232 <p>http:/example.com
2233 </p><p>[http:/example.com title]
2238 Bracketed external links with template-generated invalid target
2240 [{{echo|http:/example.com}} title]
2242 <p>[http:/example.com title]
2247 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2249 ''[http://example.com text'']
2250 [http://example.com '''text]'''
2251 ''Something [http://example.com in italic'']
2252 ''Something [http://example.com mixed''''', even bold]'''
2253 '''''Now [http://example.com both''''']
2255 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2256 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2257 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2258 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2259 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2265 Bug 4781: %26 in URL
2267 http://www.example.com/?title=AT%26T
2269 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2273 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2274 # % is actually legal in HTML5. Any change in output would need testing though.
2276 Bug 4781, 5267: %25 in URL
2278 http://www.example.com/?title=100%25_Bran
2280 <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>
2285 Bug 4781, 5267: %28, %29 in URL
2287 http://www.example.com/?title=Ben-Hur_%281959_film%29
2289 <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>
2295 Bug 4781: %26 in autonumber URL
2297 [http://www.example.com/?title=AT%26T]
2299 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2304 Bug 4781, 5267: %26 in autonumber URL
2306 [http://www.example.com/?title=100%25_Bran]
2308 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2313 Bug 4781, 5267: %28, %29 in autonumber URL
2315 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2317 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2323 Bug 4781: %26 in bracketed URL
2325 [http://www.example.com/?title=AT%26T link]
2327 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2332 Bug 4781, 5267: %26 in bracketed URL
2334 [http://www.example.com/?title=100%25_Bran link]
2336 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2341 Bug 4781, 5267: %28, %29 in bracketed URL
2343 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2345 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2350 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2352 Some [http://example.com/ pretty ''italics'' and stuff]!
2354 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2359 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2361 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2363 <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>
2368 External link containing double-single-quotes with no space separating the url from text in italics
2370 [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]].]
2372 <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>
2377 URL-encoding in URL functions (single parameter)
2379 {{localurl:Some page|amp=&}}
2381 <p>/index.php?title=Some_page&amp=&
2386 URL-encoding in URL functions (multiple parameters)
2388 {{localurl:Some page|q=?&=&}}
2390 <p>/index.php?title=Some_page&q=?&amp=&
2397 http://example.com/index.php?foozoid%5B%5D=bar
2399 http://example.com/index.php?foozoid[]=bar
2401 <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>
2402 </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>
2407 IPv6 urls (bug 21261)
2411 http://[2404:130:0:1000::187:2]/index.php
2413 <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>
2424 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2426 Normal text. '''''Bold italic text.''''' Normal text.
2428 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2429 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2435 Unclosed and unmatched quotes
2437 '''''Bold italic text '''with bold deactivated''' in between.'''''
2439 '''''Bold italic text ''with italic deactivated'' in between.'''''
2443 ..spanning two paragraphs (should not work).'''
2445 '''Bold tag left open
2447 ''Italic tag left open
2451 <!-- Unmatching number of opening, closing tags: -->
2452 '''This year''''s election ''should'' beat '''last year''''s.
2454 ''Tom'''s car is bigger than ''Susan'''s.
2456 Plain ''italic'''s plain
2458 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2459 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2460 </p><p><b>Bold text..</b>
2461 </p><p>..spanning two paragraphs (should not work).
2462 </p><p><b>Bold tag left open</b>
2463 </p><p><i>Italic tag left open</i>
2465 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2466 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2467 </p><p>Plain <i>italic'</i>s plain
2474 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2477 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2478 # is the bare minimun required by the spec, see:
2479 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2481 A table with no data.
2487 # A table with nothing but a caption is invalid XHTML, we might want to render
2488 # this as <p>caption</p>
2490 A table with nothing but a caption
2498 </caption><tr><td></td></tr></table>
2524 Simple table but with multiple dashes for row wikitext
2542 Multiplication table
2544 {| border="1" cellpadding="2"
2545 |+Multiplication table
2547 ! × !! 1 !! 2 !! 3
2565 <table border="1" cellpadding="2">
2566 <caption>Multiplication table
2613 Allow +/- in 2nd and later cells in a row
2640 |rowspan=2| Cell 2, row 1 (and 2)
2651 <td rowspan="2"> Cell 2, row 1 (and 2)
2669 {| bgcolor=#ABCDEF border=2
2674 |the original table again
2682 <table bgcolor="#ABCDEF" border="2">
2690 <td>the original table again
2696 Invalid attributes in table cell (bug 1830)
2711 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2714 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2718 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2719 <td>]" onmouseover="alert(document.cookie)">test
2728 Indented table markup mixed with indented pre content (proposed in bug 6200)
2733 Text that should be rendered preformatted
2741 <pre>Text that should be rendered preformatted
2754 Plain link, capitalized
2758 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2763 Plain link, uncapitalized
2767 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2774 [[Main Page|The Main Page]]
2776 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2785 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2790 Broken link with fragment
2792 [[Zigzagzogzagzig#zug]]
2794 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2799 Special page link with fragment
2801 [[Special:Version#anchor]]
2803 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2808 Nonexistent special page link with fragment
2810 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2812 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2819 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2821 <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>
2828 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2830 <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>!!!
2835 Link with 3 brackets
2844 Piped link with 3 brackets
2846 [[[main page|the main page]]]
2848 <p>[[[main page|the main page]]]
2853 Link with multiple pipes
2855 [[Main Page|The|Main|Page]]
2857 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2864 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2866 <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>
2871 Piped link to namespace
2873 [[Meta:Disclaimers|The disclaimers]]
2875 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2882 [[Usually caused by a typo (oops}]]
2884 <p>[[Usually caused by a typo (oops}]]
2889 Link containing % (not as a hex sequence)
2893 <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>
2898 Link containing % as a single hex sequence interpreted to char
2902 <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>
2907 Link containing % as a double hex sequence interpreted to hex sequence
2911 <p>[[7%2525 Solution]]
2916 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2917 Example for such a section: == < ==
2919 [[%23%3c]][[%23%3e]]
2921 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2926 Link containing "<#" and ">#" as a hex sequences
2928 [[%3c%23]][[%3e%23]]
2930 <p>[[%3c%23]][[%3e%23]]
2935 Link containing double-single-quotes '' (bug 4598)
2937 [[Lista d''e paise d''o munno]]
2939 <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>
2944 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2946 Some [[Link|pretty ''italics'' and stuff]]!
2948 <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>!
2953 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2955 ''Some [[Link|pretty ''italics'' and stuff]]!
2957 <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>
2962 Link with double quotes in title part (literal) and alternate part (interpreted)
2964 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2968 [[''Pentecoste''|Pentecoste]]
2970 [[''Pentecoste''|''Pentecoste'']]
2972 <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>
2973 </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>
2974 </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>
2975 </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>
2980 Broken image links with HTML captions (bug 39700)
2982 [[File:Nonexistent|<script></script>]]
2983 [[File:Nonexistent|100px|<script></script>]]
2984 [[File:Nonexistent|<]]
2985 [[File:Nonexistent|a<i>b</i>c]]
2987 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2988 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2989 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2990 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2997 [[http://www.example.com]]
2999 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3004 Plain link to URL with link text
3006 [[http://www.example.com Link text]]
3008 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3013 Plain link to protocol-relative URL
3015 [[//www.example.com]]
3017 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3022 Plain link to protocol-relative URL with link text
3024 [[//www.example.com Link text]]
3026 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3031 # I'm fairly sure the expected result here is wrong.
3032 # We want these to be URL links, not pseudo-pages with URLs for titles....
3033 # However the current output is also pretty screwy.
3036 # I'm changing it to match the current output--it arguably makes more
3037 # sense in the light of the test above. Old expected result was:
3038 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3040 # But I think this test is bordering on "garbage in, garbage out" anyway.
3045 Piped link to URL: [[http://www.example.com|an example URL]]
3047 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3052 BUG 2: [[page|http://url/]] should link to page, not http://url/
3054 [[Main Page|http://url/]]
3056 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3061 BUG 337: Escaped self-links should be bold
3065 [[Bug462]] [[Bug462]]
3067 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3072 Self-link to section should not be bold
3076 [[Main Page#section]]
3078 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3089 Self-link to numeric title
3095 <p><strong class="selflink">0</strong>
3100 Link to numeric-equivalent title
3106 <p><a href="/wiki/00" title="00">00</a>
3111 <nowiki> inside a link
3113 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3115 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3120 Non-breaking spaces in title
3122 [[ Main Page ]]
3124 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3129 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3135 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3140 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3146 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3151 Internal link with en linktrail: no apostrophes (bug 27473)
3157 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3162 Internal link with ca linktrail with apostrophes (bug 27473)
3168 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3173 Internal link with kaa linktrail with apostrophes (bug 27473)
3179 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3184 ### Interwiki links (see maintenance/interwiki.sql)
3188 Inline interwiki link
3190 [[MeatBall:SoftSecurity]]
3192 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3197 Inline interwiki link with empty title (bug 2372)
3201 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3206 Interwiki link encoding conversion (bug 1636)
3208 *[[Wikipedia:ro:Olteniţa]]
3209 *[[Wikipedia:ro:Olteniţa]]
3211 <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>
3212 </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>
3218 Interwiki link with fragment (bug 2130)
3220 [[MeatBall:SoftSecurity#foo]]
3222 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3237 Double interlanguage link
3248 Interlanguage link, with prefix links
3260 Double interlanguage link, with prefix links (bug 8897)
3273 Parsoid-specific test: Wikilinks with should RT properly
3279 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3297 Broken br tag sanitization
3306 Incorrecly removing closing slashes from correctly formed XHTML
3308 <br style="clear:both;" />
3310 <p><br style="clear:both;" />
3315 Failing to transform badly formed HTML into correct XHTML
3317 <br style="clear: left;">
3318 <br style="clear: right;">
3319 <br style="clear: both;">
3321 <p><br style="clear: left;" />
3322 <br style="clear: right;" />
3323 <br style="clear: both;" />
3328 Handling html with a div self-closing tag
3337 <p><div title />
3341 <p><div title=bar />
3342 <div title=bar/>
3344 <div title="bar/"></div>
3350 Handling html with a br self-closing tag
3359 <p><br title="title" />
3360 <br title="title" />
3369 Horizontal ruler (should it add that extra space?)
3383 Horizontal ruler -- 4+ dashes render hr
3392 Horizontal ruler -- eats additional dashes on the same line
3401 Horizontal ruler -- does not collaps dashes on consecutive lines
3412 Horizontal ruler -- <4 dashes render as plain text
3421 ### Block-level elements
3444 <ol><li>Numbered list
3461 ***#Number on level 4
3463 **#Number on level 3
3464 **#Number on level 3
3468 #** Level 3, but ordered
3471 <ol><li> with numbers
3473 <ul><li> and bullets
3475 <ol><li> and numbers
3477 </li><li>bullets again
3478 <ul><li>bullet level 2
3479 <ul><li>bullet level 3
3480 <ol><li>Number on level 4
3483 </li><li>bullet level 2
3484 <ol><li>Number on level 3
3485 </li><li>Number on level 3
3488 <ol><li>number level 2
3491 <ul><li><ul><li> Level 3
3495 <ol><li><ul><li><ul><li> Level 3, but ordered
3529 Nested lists 3 (first element empty)
3542 Nested lists 4 (first element empty)
3555 Nested lists 5 (both elements empty)
3568 Nested lists 6 (both elements empty)
3581 Nested lists 7 (skip initial nesting levels)
3585 <ul><li><ul><li><ul><li> foo
3593 Nested lists 8 (multiple nesting transitions)
3601 <ul><li><ul><li> bar
3611 1. Lists with start-of-line-transparent tokens before bullets: Comments
3625 2. Lists with start-of-line-transparent tokens before bullets: Template close
3637 List items are not parsed correctly following a <pre> block (bug 785)
3643 <ul><li> <pre>foo</pre>
3644 </li><li> <pre>bar</pre>
3651 List items from template
3662 * notSOL{{inner list}}
3681 List interrupted by empty line or heading
3691 <ul><li><ul><li> bar
3694 <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>
3695 <ul><li> Another list item
3706 Magic Word: {{CURRENTDAY}}
3715 Magic Word: {{CURRENTDAY2}}
3724 Magic Word: {{CURRENTDAYNAME}}
3733 Magic Word: {{CURRENTDOW}}
3742 Magic Word: {{CURRENTMONTH}}
3751 Magic Word: {{CURRENTMONTHABBREV}}
3753 {{CURRENTMONTHABBREV}}
3760 Magic Word: {{CURRENTMONTHNAME}}
3762 {{CURRENTMONTHNAME}}
3769 Magic Word: {{CURRENTMONTHNAMEGEN}}
3771 {{CURRENTMONTHNAMEGEN}}
3778 Magic Word: {{CURRENTTIME}}
3787 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3796 Magic Word: {{CURRENTYEAR}}
3805 Magic Word: {{FULLPAGENAME}}
3807 title=[[User:Ævar Arnfjörð Bjarmason]]
3811 <p>User:Ævar Arnfjörð Bjarmason
3816 Magic Word: {{FULLPAGENAMEE}}
3818 title=[[User:Ævar Arnfjörð Bjarmason]]
3822 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3827 Magic Word: {{NAMESPACE}}
3829 title=[[User:Ævar Arnfjörð Bjarmason]]
3838 Magic Word: {{NAMESPACEE}}
3840 title=[[User:Ævar Arnfjörð Bjarmason]]
3849 Magic Word: {{NAMESPACENUMBER}}
3851 title=[[User:Ævar Arnfjörð Bjarmason]]
3860 Magic Word: {{NUMBEROFFILES}}
3869 Magic Word: {{PAGENAME}}
3871 title=[[User:Ævar Arnfjörð Bjarmason]]
3875 <p>Ævar Arnfjörð Bjarmason
3880 Magic Word: {{PAGENAME}} with metacharacters
3882 title=[['foo & bar = baz']]
3886 <p><i>'foo & bar = baz'</i>
3891 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3893 title=[[*RFC 1234 http://example.com/]]
3897 <p>*RFC 1234 http://example.com/
3902 Magic Word: {{PAGENAMEE}}
3904 title=[[User:Ævar Arnfjörð Bjarmason]]
3908 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3913 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3915 title=[[*RFC 1234 http://example.com/]]
3919 <p>*RFC_1234_http://example.com/
3924 Magic Word: {{REVISIONID}}
3933 Magic Word: {{SCRIPTPATH}}
3942 Magic Word: {{SERVER}}
3946 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3951 Magic Word: {{SERVERNAME}}
3960 Magic Word: {{SITENAME}}
3969 Namespace 1 {{ns:1}}
3978 Namespace 1 {{ns:01}}
3987 Namespace 0 {{ns:0}} (bug 4783)
3995 Namespace 0 {{ns:00}} (bug 4783)
4003 Namespace -1 {{ns:-1}}
4012 Namespace User {{ns:User}}
4021 Namespace User talk {{ns:User_talk}}
4030 Namespace User talk {{ns:uSeR tAlK}}
4039 Namespace File {{ns:File}}
4048 Namespace File {{ns:Image}}
4057 Namespace (lang=de) Benutzer {{ns:User}}
4068 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4074 <p>Benutzer Diskussion
4082 {{urlencode:hi world?!}}
4083 {{urlencode:hi world?!|WIKI}}
4084 {{urlencode:hi world?!|PATH}}
4085 {{urlencode:hi world?!|QUERY}}
4098 Magic links: internal link to RFC (bug 479)
4102 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4107 Magic links: RFC (bug 479)
4111 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4116 Magic links: ISBN (bug 1937)
4120 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4125 Magic links: PMID incorrectly converts space to underscore
4129 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4138 Nonexistent template
4140 {{thistemplatedoesnotexist}}
4142 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4149 This is a test template
4157 <p>This is a test template
4162 Template with explicit namespace
4166 <p>This is a test template
4174 This is a test template with parameter {{{param}}}
4180 {{paramtest|param=foo}}
4182 <p>This is a test template with parameter foo
4187 Template:paramtestnum
4193 Template unnamed parameter
4195 {{paramtestnum|Main Page|the main page}}
4197 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4202 Template:templatesimple
4208 Template:templateredirect
4210 #redirect [[Template:templatesimple]]
4214 Template:templateasargtestnum
4220 Template:templateasargtest
4222 {{template{{{templ}}}}}
4226 Template:templateasargtest2
4232 Template with template name as unnamed argument
4234 {{templateasargtestnum|templatesimple}}
4241 Template with template name as argument
4243 {{templateasargtest|templ=simple}}
4250 Template with template name as argument (2)
4252 {{templateasargtest2|templ=templatesimple}}
4259 Template:templateasargtestdefault
4261 {{{{{templ|templatesimple}}}}}
4271 Template with default value
4273 {{templateasargtestdefault}}
4280 Template with default value (value set)
4282 {{templateasargtestdefault|templ=templa}}
4291 {{templateredirect}}
4298 Template with argument in separate line
4300 {{ templateasargtest |
4308 Template with complex template as argument
4311 param ={{ templateasargtest |
4314 <p>This is a test template with parameter (test)
4319 Template with thumb image (with link in description)
4322 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4324 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>
4329 Template:complextemplate
4331 {{{1}}} {{paramtest|
4332 param ={{{param}}}}}
4336 Template with complex arguments
4339 param ={{ templateasargtest |
4340 templ = simple }}|[[Template:complextemplate|link]]}}
4342 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4347 BUG 553: link with two variables in a piped link
4350 |[[{{{1}}}|{{{2}}}]]
4355 <td>[[{{{1}}}|{{{2}}}]]
4361 Magic variable as template parameter
4363 {{paramtest|param={{SITENAME}}}}
4365 <p>This is a test template with parameter MediaWiki
4372 [[{{{param}}}|link]]
4376 Template parameter as link source
4378 {{linktest|param=Main Page}}
4380 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4385 Template-generated attribute string (k='v')
4387 <span {{attr_str|id|v1}}>bar</span>
4389 <p><span id="v1">bar</span>
4396 including another template, {{paramtest|param={{{arg}}}}}
4400 Template passing argument to another template
4402 {{paramtest2|arg='hmm'}}
4404 <p>including another template, This is a test template with parameter 'hmm'
4415 Template as link source
4419 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4437 Template infinite loop
4441 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4446 Template from main namespace
4465 BUG 529: Template with table, not included at beginning of line
4484 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4504 BUG 41: Template parameters shown as broken links
4516 ''None'' of '''this''' should be
4518 but rather passed unmodified
4522 # hmm, fix this or just deprecate msgnw and document its behavior?
4528 {{msgnw:MSGNW test}}
4530 <p>''None'' of '''this''' should be
4532 but rather passed unmodified
4540 {{int:youhavenewmessages|lots of money|not!}}
4542 <p>You have lots of money (not!).
4549 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4553 <includeonly> and <noinclude> being included
4564 <onlyinclude>Foo</onlyinclude>bar
4568 <onlyinclude> being included
4580 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4584 <onlyinclude> and <includeonly> being included
4593 <includeonly> and <noinclude> on a page
4595 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4602 <onlyinclude> on a page
4604 <onlyinclude>Foo</onlyinclude>bar
4611 Template:Includeonly section
4614 ==Includeonly section==
4620 Bug 6563: Edit link generation for section shown by <includeonly>
4622 {{includeonly section}}
4624 <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>
4625 <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>
4629 # Uses same input as the contents of [[Template:Includeonly section]]
4631 Bug 6563: Section extraction for section shown by <includeonly>
4636 ==Includeonly section==
4644 Bug 6563: Edit link generation for section suppressed by <includeonly>
4647 ==Includeonly section==
4651 <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>
4656 Bug 6563: Section extraction for section suppressed by <includeonly>
4661 ==Includeonly section==
4669 ### <includeonly> and <noinclude> in attributes
4672 0. includeonly around the entire attribute
4674 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4676 <p><span id="v2">bar</span>
4681 1. includeonly in html attr key
4683 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4685 <p><span id="foo">bar</span>
4690 2. includeonly in html attr value
4692 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4693 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4695 <p><span id="v1">bar</span>
4696 <span id="v1">bar</span>
4701 3. includeonly in part of an attr value
4703 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4705 <p><span style="color:red;">bar</span>
4710 ### Testing parsing of templates where a template arg
4711 ### has the same name as the template itself.
4721 Templates: Template Name/Arg clash: 1. Use of positional param
4730 Templates: Template Name/Arg clash: 2. Use of named param
4739 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4748 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4752 Templates: 1. Simple use
4761 Templates: 2. Inside a block tag
4763 <div>{{echo|Foo}}</div>
4770 Templates: P-wrapping: 1a. Templates on consecutive lines
4781 Templates: P-wrapping: 1b. Templates on consecutive lines
4795 Templates: P-wrapping: 1c. Templates on consecutive lines
4798 {{echo|bar}} <div>baz</div>
4807 Templates: Inline Text: 1. Multiple tmeplate uses
4809 {{echo|Foo}}bar{{echo|baz}}
4816 Templates: Inline Text: 2. Back-to-back template uses
4818 {{echo|Foo}}{{echo|bar}}
4825 Templates: Block Tags: 1. Multiple template uses
4827 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4829 <div>Foo</div><div>bar</div><div>baz</div>
4834 Templates: Block Tags: 2. Back-to-back template uses
4836 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4838 <div>Foo</div><div>bar</div>
4843 Templates: Links: 1. Simple example
4845 {{echo|[[Foo|bar]]}}
4847 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4852 Templates: Links: 2. Generation of link href
4854 [[{{echo|Foo}}|bar]]
4856 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4861 Templates: Links: 3. Generation of part of a link href
4863 [[Fo{{echo|o}}|bar]]
4865 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4870 Templates: Links: 4. Multiple templates generating link href
4872 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4874 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4879 Templates: Links: 5. Generation of link text
4881 [[Foo|{{echo|bar}}]]
4883 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4888 Templates: Links: 5. Nested templates (only outermost template should be marked)
4890 {{echo|[[{{echo|Foo}}|bar]]}}
4892 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4897 Templates: HTML Tag: 1. Generation of HTML attr. key
4899 <div {{echo|style}}="color:red;">foo</div>
4901 <div style="color:red;">foo</div>
4906 Templates: HTML Tag: 2. Generation of HTML attr. value
4908 <div style={{echo|'color:red;'}}>foo</div>
4910 <div style="color:red;">foo</div>
4915 Templates: HTML Tag: 3. Generation of HTML attr key and value
4917 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4919 <div style="color:red;">foo</div>
4924 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4926 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4928 <div title="This is a long title with just one piece templated">foo</div>
4933 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4935 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4937 <div title="This is a long title with just one piece templated">foo</div>
4942 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4944 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4946 <div title="This is a long title with just one piece templated">foo</div>
4951 Templates: HTML Tables: 1. Generating start of a HTML table
4953 {{echo|<table><tr><td>foo</td>}}</tr></table>
4955 <table><tr><td>foo</td></tr></table>
4960 Templates: HTML Tables: 2a. Generating middle of a HTML table
4962 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4964 <table><tr><td>foo</td></tr></table>
4969 Templates: HTML Tables: 2b. Generating middle of a HTML table
4971 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4973 <table><tr><td>foo</td></tr></table>
4978 Templates: HTML Tables: 3. Generating end of a HTML table
4980 <table><tr>{{echo|<td>foo</td></tr></table>}}
4982 <table><tr><td>foo</td></tr></table>
4987 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
4989 {{echo|<table>}}<tr><td>foo</td></tr></table>
4991 <table><tr><td>foo</td></tr></table>
4996 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
4998 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5000 <table><tr><td>foo</td></tr></table>
5005 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5007 <table><tr>{{echo|<td>}}foo</td></tr></table>
5009 <table><tr><td>foo</td></tr></table>
5014 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5016 <table><tr><td>foo{{echo|</td>}}</tr></table>
5018 <table><tr><td>foo</td></tr></table>
5023 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5025 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5027 <table><tr><td>foo</td></tr></table>
5032 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5034 <table><tr><td>foo</td></tr>{{echo|</table>}}
5036 <table><tr><td>foo</td></tr></table>
5041 Templates: Wiki Tables: 1. Fostering of entire template content
5049 <tr><td></td></tr></table>
5054 Templates: Wiki Tables: 2. Fostering of partial template content
5064 <tr><td></td></tr></table>
5069 Templates: Wiki Tables: 3. td-content via multiple templates
5072 {{echo|{{pipe}}a}}{{echo|b}}
5083 Templates: Lists: Multi-line list-items via templates
5085 *{{echo|a {{nonexistent|
5087 *{{echo|b {{nonexistent|
5090 <ul><li>a <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
5091 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
5097 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5099 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5101 <p><i>ab</i>c<i>d</i>e
5106 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5107 (PHP parser generates misnested html)
5111 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5113 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5117 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5118 (PHP parser generates misnested html)
5122 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5125 <div><i>b</i>c<i>d</i></div>
5130 Templates: Ugly nesting: 4. Divs opened/closed across templates
5132 a<div>b{{echo|c</div>d}}e
5139 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5145 |{{echo|foo</table>}}
5149 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5150 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5151 bar</span><span about="#mwt1">
5156 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5166 <td>1. {{echo|foo </table>}}</td>
5168 <td>2. {{echo|baz </table>}}</td>
5181 <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">
5182 <tbody><tr data-parsoid="{"stx":"html"}">
5183 <td data-parsoid="{"stx":"html"}">
5184 <table data-parsoid="{"stx":"html"}">
5185 <tbody><tr data-parsoid="{"stx":"html"}">
5186 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5187 <td data-parsoid="{"stx":"html"}"> bar </td>
5188 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5189 </span><span about="#mwt1">
5191 abc</span><span about="#mwt1">
5192 </span><span about="#mwt1">
5193 </span><span about="#mwt1">
5194 </span><span about="#mwt1">
5195 </span><span about="#mwt1">
5197 xyz</span><span about="#mwt1">
5198 </span><span about="#mwt1">
5203 Parser Functions: 1. Simple example
5212 Parser Functions: 2. Nested use (only outermost should be marked up)
5221 ### Pre-save transform tests
5224 pre-save transform: subst:
5230 This is a test template
5234 pre-save transform: normal template
5244 pre-save transform: nonexistent template
5248 {{thistemplatedoesnotexist}}
5250 {{thistemplatedoesnotexist}}
5255 pre-save transform: subst magic variables
5264 # This is bug 89, which I fixed. -- wtm
5266 pre-save transform: subst: templates with parameters
5270 {{subst:paramtest|param="something else"}}
5272 This is a test template with parameter "something else"
5278 <nowiki>'''not wiki'''</nowiki>
5282 pre-save transform: nowiki in subst (bug 1188)
5286 {{subst:nowikitest}}
5288 <nowiki>'''not wiki'''</nowiki>
5293 Template:commenttest
5295 This template has <!-- a comment --> in it.
5299 pre-save transform: comment in subst (bug 1936)
5303 {{subst:commenttest}}
5305 This template has <!-- a comment --> in it.
5309 pre-save transform: unclosed tag
5313 <nowiki>'''not wiki'''
5315 <nowiki>'''not wiki'''
5319 pre-save transform: mixed tag case
5323 <NOwiki>'''not wiki'''</noWIKI>
5325 <NOwiki>'''not wiki'''</noWIKI>
5329 pre-save transform: unclosed comment in <nowiki>
5333 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5335 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5341 <span onmouseover="alert('crap')">Oh no</span>
5345 (confirming safety of fix for subst bug 1936)
5347 {{Template:dangerous}}
5349 <p><span>Oh no</span>
5354 pre-save transform: comment containing gallery (bug 5024)
5358 <!-- <gallery>data</gallery> -->
5360 <!-- <gallery>data</gallery> -->
5364 pre-save transform: comment containing extension
5368 <!-- <tag>data</tag> -->
5370 <!-- <tag>data</tag> -->
5374 pre-save transform: comment containing nowiki
5378 <!-- <nowiki>data</nowiki> -->
5380 <!-- <nowiki>data</nowiki> -->
5384 pre-save transform: <noinclude> in subst (bug 3298)
5394 pre-save transform: <onlyinclude> in subst (bug 3298)
5406 {{<includeonly>subst:</includeonly>Includes}}
5410 Template:SafeSubstTest
5412 {{<includeonly>safesubst:</includeonly>Includes}}
5416 bug 22297: safesubst: works during PST
5420 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5426 bug 22297: safesubst: works during normal parse
5435 subst: does not work during normal parse
5439 <p>{{subst:Includes}}
5444 pre-save transform: context links ("pipe trick")
5448 [[Article (context)|]]
5451 [[Bar:Article (context)|]]
5452 [[:Bar:Article (context)|]]
5454 [[|Article (context)]]
5458 [[Article (context)|Article]]
5459 [[Bar:Article|Article]]
5460 [[:Bar:Article|Article]]
5461 [[Bar:Article (context)|Article]]
5462 [[:Bar:Article (context)|Article]]
5464 [[Article (context)]]
5465 [[Bar:X (Y) Z|X (Y) Z]]
5466 [[:Bar:X (Y) Z|X (Y) Z]]
5470 pre-save transform: context links ("pipe trick") with interwiki prefix
5474 [[interwiki:Article|]]
5475 [[:interwiki:Article|]]
5476 [[interwiki:Bar:Article|]]
5477 [[:interwiki:Bar:Article|]]
5479 [[interwiki:Article|Article]]
5480 [[:interwiki:Article|Article]]
5481 [[interwiki:Bar:Article|Bar:Article]]
5482 [[:interwiki:Bar:Article|Bar:Article]]
5486 pre-save transform: context links ("pipe trick") with parens in title
5488 pst title=[[Somearticle (context)]]
5492 [[Article (context)|Article]]
5496 pre-save transform: context links ("pipe trick") with comma in title
5498 pst title=[[Someplace, Somewhere]]
5501 [[Otherplace, Elsewhere|]]
5502 [[Otherplace, Elsewhere, Anywhere|]]
5504 [[Otherplace, Somewhere|Otherplace]]
5505 [[Otherplace, Elsewhere|Otherplace]]
5506 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5510 pre-save transform: context links ("pipe trick") with parens and comma
5512 pst title=[[Someplace (IGNORED), Somewhere]]
5515 [[Otherplace (place), Elsewhere|]]
5517 [[Otherplace, Somewhere|Otherplace]]
5518 [[Otherplace (place), Elsewhere|Otherplace]]
5522 pre-save transform: context links ("pipe trick") with comma and parens
5524 pst title=[[Who, me? (context)]]
5527 [[Me, Myself, and I (1937 song)|]]
5529 [[Yes, you. (context)|Yes, you.]]
5530 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5534 pre-save transform: context links ("pipe trick") with namespace
5536 pst title=[[Ns:Somearticle]]
5540 [[Ns:Article|Article]]
5544 pre-save transform: context links ("pipe trick") with namespace and parens
5546 pst title=[[Ns:Somearticle (context)]]
5550 [[Ns:Article (context)|Article]]
5554 pre-save transform: context links ("pipe trick") with namespace and comma
5556 pst title=[[Ns:Somearticle, Context, Whatever]]
5560 [[Ns:Article, Context, Whatever|Article]]
5564 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5566 pst title=[[Ns:Somearticle, Context (context)]]
5570 [[Ns:Article (context)|Article]]
5574 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5576 pst title=[[Ns:Somearticle (IGNORED), Context]]
5580 [[Ns:Article, Context|Article]]
5584 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5588 [[Article(context)|]]
5589 [[Bar:Article(context)|]]
5590 [[:Bar:Article(context)|]]
5591 [[|Article(context)]]
5595 [[Article(context)|Article]]
5596 [[Bar:Article(context)|Article]]
5597 [[:Bar:Article(context)|Article]]
5598 [[Article(context)]]
5600 [[:Bar:X(Y)Z|X(Y)Z]]
5604 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5608 [[Article (context)|]]
5609 [[Bar:Article (context)|]]
5610 [[:Bar:Article (context)|]]
5611 [[|Article (context)]]
5615 [[Article (context)|Article]]
5616 [[Bar:Article (context)|Article]]
5617 [[:Bar:Article (context)|Article]]
5618 [[Article (context)]]
5619 [[Bar:X (Y) Z|X (Y) Z]]
5620 [[:Bar:X (Y) Z|X (Y) Z]]
5624 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5628 [[Article(context)|]]
5629 [[Bar:Article(context)|]]
5630 [[:Bar:Article(context)|]]
5631 [[|Article(context)]]
5635 [[Article(context)|Article]]
5636 [[Bar:Article(context)|Article]]
5637 [[:Bar:Article(context)|Article]]
5638 [[Article(context)]]
5640 [[:Bar:X(Y)Z|X(Y)Z]]
5644 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5648 [[Article (context), context|]]
5649 [[Article (context),context|]]
5650 [[Bar:Article (context), context|]]
5651 [[Bar:Article (context),context|]]
5652 [[:Bar:Article (context), context|]]
5653 [[:Bar:Article (context),context|]]
5655 [[Article (context), context|Article]]
5656 [[Article (context),context|Article]]
5657 [[Bar:Article (context), context|Article]]
5658 [[Bar:Article (context),context|Article]]
5659 [[:Bar:Article (context), context|Article]]
5660 [[:Bar:Article (context),context|Article]]
5664 pre-save transform: trim trailing empty lines
5668 Empty lines are trimmed
5674 Empty lines are trimmed
5678 pre-save transform: Signature expansion
5683 * <noinclude>~~~</noinclude>
5684 * <includeonly>~~~</includeonly>
5685 * <onlyinclude>~~~</onlyinclude>
5687 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5688 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5689 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5690 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5695 pre-save transform: Signature expansion in nowiki tags (bug 93)
5701 <nowiki>~~~~</nowiki>
5703 <includeonly><nowiki>~~~~</nowiki></includeonly>
5705 <noinclude><nowiki>~~~~</nowiki></noinclude>
5707 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5709 {{subst:Foo}} shall be converted to FOO
5711 As well as inside noinclude/onlyinclude
5712 <noinclude>{{subst:Foo}}</noinclude>
5713 <onlyinclude>{{subst:Foo}}</onlyinclude>
5715 But not inside includeonly
5716 <includeonly>{{subst:Foo}}</includeonly>
5720 <nowiki>~~~~</nowiki>
5722 <includeonly><nowiki>~~~~</nowiki></includeonly>
5724 <noinclude><nowiki>~~~~</nowiki></noinclude>
5726 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5728 FOO shall be converted to FOO
5730 As well as inside noinclude/onlyinclude
5731 <noinclude>FOO</noinclude>
5732 <onlyinclude>FOO</onlyinclude>
5734 But not inside includeonly
5735 <includeonly>{{subst:Foo}}</includeonly>
5739 ### Message transform tests
5742 message transform: magic variables
5752 message transform: should not transform wiki markup
5762 message transform: <noinclude> in transcluded template (bug 4926)
5772 message transform: <onlyinclude> in transcluded template (bug 4926)
5782 {{#special:}} page name, known
5786 {{#special:Recentchanges}}
5788 Special:RecentChanges
5792 {{#special:}} page name with subpage, known
5796 {{#special:Recentchanges/param}}
5798 Special:RecentChanges/param
5802 {{#special:}} page name, unknown
5806 {{#special:foobarnonexistent}}
5808 No such special page
5812 {{#speciale:}} page name, known
5816 {{#speciale:Recentchanges}}
5818 Special:RecentChanges
5822 {{#speciale:}} page name with subpage, known
5826 {{#speciale:Recentchanges/param}}
5828 Special:RecentChanges/param
5832 {{#speciale:}} page name, unknown
5836 {{#speciale:foobarnonexistent}}
5838 No_such_special_page
5847 [[Image:foobar.jpg]]
5849 <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>
5856 [[Image:foobar.jpg|right]]
5858 <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>
5863 Simple image (using File: namespace, now canonical)
5867 <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>
5874 [[Image:foobar.jpg|right|Caption text]]
5876 <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>
5881 Image with empty attribute
5883 [[Image:foobar.jpg|right||Caption text]]
5885 <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>
5890 Image with link tails
5892 123[[Image:foobar.jpg]]456
5893 123[[Image:foobar.jpg|right]]456
5894 123[[Image:foobar.jpg|thumb]]456
5896 <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
5898 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
5899 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
5904 Image with multiple captions -- only last one is accepted
5906 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5908 <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>
5913 Image with link parameter, wiki target
5915 [[Image:foobar.jpg|link=Target page]]
5917 <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>
5922 Image with link parameter, URL target
5924 [[Image:foobar.jpg|link=http://example.com/]]
5926 <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>
5931 Image with link parameter, wgExternalLinkTarget
5933 [[Image:foobar.jpg|link=http://example.com/]]
5935 wgExternalLinkTarget='foobar'
5937 <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>
5942 Image with link parameter, wgNoFollowLinks set to false
5944 [[Image:foobar.jpg|link=http://example.com/]]
5946 wgNoFollowLinks=false
5948 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5953 Image with link parameter, wgNoFollowDomainExceptions
5955 [[Image:foobar.jpg|link=http://example.com/]]
5957 wgNoFollowDomainExceptions='example.com'
5959 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5964 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5966 [[Image:foobar.jpg|link=http://example.com/|Title]]
5968 wgExternalLinkTarget='foobar'
5970 <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>
5975 Image with empty link parameter
5977 [[Image:foobar.jpg|link=]]
5979 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5984 Image with link parameter (wiki target) and unnamed parameter
5986 [[Image:foobar.jpg|link=Target page|Title]]
5988 <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>
5993 Image with link parameter (URL target) and unnamed parameter
5995 [[Image:foobar.jpg|link=http://example.com/|Title]]
5997 <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>
6002 Thumbnail image with link parameter
6004 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6006 <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>
6011 Image with frame and link
6013 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6015 <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>
6020 Image with frame and link and explicit alt
6022 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6024 <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>
6029 Image with wiki markup in implicit alt
6031 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6033 <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>
6038 Image with wiki markup in explicit alt
6040 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6042 <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>
6047 Link to image page- image page normally doesn't exists, hence edit link
6048 Add test with existing image page
6049 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6053 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6058 bug 18784 Link to non-existent image page with caption should use caption as link text
6060 [[:Image:test|caption]]
6062 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6067 Frameless image caption with a free URL
6069 [[Image:foobar.jpg|http://example.com]]
6071 <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>
6076 Thumbnail image caption with a free URL
6078 [[Image:foobar.jpg|thumb|http://example.com]]
6080 <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>
6085 Thumbnail image caption with a free URL and explicit alt
6087 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6089 <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>
6094 BUG 1887: A ISBN with a thumbnail
6096 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6098 <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>
6103 BUG 1887: A RFC with a thumbnail
6105 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6107 <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>
6112 BUG 1887: A mailto link with a thumbnail
6114 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6116 <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>
6120 # Pending resolution to bug 368
6122 BUG 648: Frameless image caption with a link
6124 [[Image:foobar.jpg|text with a [[link]] in it]]
6126 <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>
6131 BUG 648: Frameless image caption with a link (suffix)
6133 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6135 <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>
6140 BUG 648: Frameless image caption with an interwiki link
6142 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6144 <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>
6149 BUG 648: Frameless image caption with a piped interwiki link
6151 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6153 <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>
6158 Escape HTML special chars in image alt text
6160 [[Image:foobar.jpg|& < > "]]
6162 <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>
6167 BUG 499: Alt text should have Ӓ, not &1234;
6169 [[Image:foobar.jpg|♀]]
6171 <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>
6176 Broken image caption with link
6178 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6180 <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.
6185 Image caption containing another image
6187 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6189 <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>
6194 Image caption containing a newline
6196 [[Image:Foobar.jpg|This
6199 <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>
6205 Bug 3090: External links other than http: in image captions
6207 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6209 <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>
6216 [[Image:foobar.jpg|a|class=b]]
6218 <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>
6225 #REDIRECT [[File:Barfoo.jpg]]
6231 [[Image:Barfoo.jpg]]
6233 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6238 Missing image with uploads disabled
6242 [[Image:Foobaz.jpg]]
6244 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6253 Subpage test/subpage
6261 subpage title=[[Subpage test]]
6265 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6270 Subpage noslash link
6272 subpage title=[[Subpage test]]
6276 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6285 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6290 BUG 561: {{/Subpage}}
6292 subpage title=[[Page]]
6296 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6304 Category:MediaWiki User's Guide
6312 [[:Category:MediaWiki User's Guide]]
6314 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6323 [[Category:MediaWiki User's Guide]]
6325 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6329 PAGESINCATEGORY invalid title fatal (r33546 fix)
6331 {{PAGESINCATEGORY:<bogus>}}
6338 Category with different sort key
6342 [[Category:MediaWiki User's Guide|Foo]]
6344 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6348 Category with identical sort key
6352 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6354 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6358 Category with empty sort key
6363 [[Category:MediaWiki User's Guide|]]
6365 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6369 Category with empty sort key and parentheses
6374 [[Category:Foo (bar)|]]
6376 [[Category:Foo (bar)|Foo]]
6380 Category with link tail
6385 123[[Category:Foo]]456
6387 123[[Category:Foo]]456
6391 Category with template
6396 [[Category:{{echo|Foo}}]]
6398 [[Category:{{echo|Foo}}]]
6402 Category with template in sort key
6407 [[Category:Foo|{{echo|Bar}}]]
6409 [[Category:Foo|{{echo|Bar}}]]
6413 Category with template in sort key and title
6418 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6420 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6424 Category / paragraph interactions
6426 Foo [[Category:Baz]] Bar
6428 Foo [[Category:Baz]]
6436 [[Category:Baz]] Bar
6449 {{echo|[[Category:Baz]]}}
6464 ### Inter-language links
6467 Inter-language links
6473 [[zh:食品]]
6475 es:Alimento fr:Nourriture zh:食品
6479 Duplicate interlanguage links (bug 24502)
6495 Basic section headings
6502 ===Smaller headline===
6505 <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>
6508 <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>
6511 <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>
6517 Section headings with TOC
6520 === Subheadline 1 ===
6521 ===== Skipping a level =====
6522 ====== Skipping a level ======
6526 ===Another headline===
6528 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6530 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6532 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6534 <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>
6536 <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>
6543 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6545 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6550 <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>
6551 <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>
6552 <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>
6553 <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>
6554 <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>
6557 <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>
6561 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6563 Handling of sections up to level 6 and beyond
6566 == Level 2 Heading==
6567 === Level 3 Heading===
6568 ==== Level 4 Heading====
6569 ===== Level 5 Heading=====
6570 ====== Level 6 Heading======
6571 ======= Level 7 Heading=======
6572 ======== Level 8 Heading========
6573 ========= Level 9 Heading=========
6574 ========== Level 10 Heading==========
6576 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6578 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6580 <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>
6582 <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>
6584 <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>
6586 <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>
6588 <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>
6589 <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>
6590 <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>
6591 <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>
6592 <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>
6605 <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>
6606 <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>
6607 <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>
6608 <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>
6609 <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>
6610 <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>
6611 <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>
6612 <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>
6613 <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>
6614 <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>
6619 TOC regression (bug 9764)
6623 ==== title 1.1.1 ====
6628 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6630 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6632 <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>
6634 <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>
6637 <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>
6640 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6642 <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>
6647 <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>
6648 <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>
6649 <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>
6650 <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>
6651 <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>
6652 <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>
6657 TOC with wgMaxTocLevel=3 (bug 6204)
6663 ==== title 1.1.1 ====
6668 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6670 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6672 <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>
6673 <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>
6676 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6678 <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>
6683 <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>
6684 <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>
6685 <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>
6686 <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>
6687 <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>
6688 <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>
6693 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6699 ====Section 1.1.1====
6700 ====Section 1.1.1.1====
6703 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6705 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6707 <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>
6710 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6713 <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>
6714 <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>
6715 <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>
6716 <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>
6717 <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>
6723 Resolving duplicate section names
6728 <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>
6729 <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>
6734 Resolving duplicate section names with differing case (bug 10721)
6739 <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>
6740 <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>
6752 Template with sections, __NOTOC__
6759 <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>
6760 <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>
6761 <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>
6762 <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>
6767 __NOEDITSECTION__ keyword
6773 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6774 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6779 Link inside a section heading
6781 ==Section with a [[Main Page|link]] in it==
6783 <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>
6788 TOC regression (bug 12077)
6795 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6797 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6799 <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>
6802 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6805 <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>
6806 <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>
6807 <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>
6812 BUG 1219 URL next to image (good)
6814 http://example.com [[Image:foobar.jpg]]
6816 <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>
6821 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6824 The line above must have a trailing space!
6827 But just in case it doesn't...
6829 <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>
6830 <p>The line above must have a trailing space!
6832 <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>
6833 <p>But just in case it doesn't...
6838 Header with special characters (bug 25462)
6840 The tooltips shall not show entities to the user (ie. be double escaped)
6857 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6859 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6861 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6862 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6863 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6864 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6865 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6868 <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>
6871 <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>
6874 <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>
6877 <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>
6880 <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>
6886 Headers with excess '=' characters
6887 (Are similar tests necessary beyond the 1st level?)
6891 =''italic'' heading==
6892 ==''italic'' heading=
6894 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6896 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6897 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6898 <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>
6899 <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>
6902 <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>
6903 <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>
6904 <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>
6905 <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>
6910 BUG 1219 URL next to image (broken)
6912 http://example.com[[Image:foobar.jpg]]
6914 <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>
6919 Bug 1186 news: in the middle of text
6921 http://en.wikinews.org/wiki/Wikinews:Workplace
6923 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6929 Namespaced link must have a title
6938 Namespaced link must have a title (bad fragment version)
6940 [[Project:#fragment]]
6942 <p>[[Project:#fragment]]
6948 div with no attributes
6950 <div>HTML rocks</div>
6952 <div>HTML rocks</div>
6957 div with double-quoted attribute
6959 <div id="rock">HTML rocks</div>
6961 <div id="rock">HTML rocks</div>
6966 div with single-quoted attribute
6968 <div id='rock'>HTML rocks</div>
6970 <div id="rock">HTML rocks</div>
6975 div with unquoted attribute
6977 <div id=rock>HTML rocks</div>
6979 <div id="rock">HTML rocks</div>
6984 div with illegal double attributes
6986 <div id="a" id="b">HTML rocks</div>
6988 <div id="b">HTML rocks</div>
6993 HTML multiple attributes correction
6995 <p class="error" class="awesome">Awesome!</p>
6997 <p class="awesome">Awesome!</p>
7002 Table multiple attributes correction
7005 !+ class="error" class="awesome"| status
7010 <th class="awesome"> status
7018 <DIV ID="x">HTML ROCKS</DIV>
7020 <div id="x">HTML ROCKS</div>
7026 text with amp in the middle of nowhere
7030 <p>Remember AT&T?
7035 text with character entity: eacute
7037 I always thought é was a cute letter.
7039 <p>I always thought é was a cute letter.
7044 text with undefined character entity: xacute
7046 I always thought &xacute; was a cute letter.
7048 <p>I always thought &xacute; was a cute letter.
7060 [[Media:Foobar.jpg]]
7062 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7067 Media link with text
7069 [[Media:Foobar.jpg|A neat file to look at]]
7071 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7075 # FIXME: this is still bad HTML tag nesting
7077 Media link with nasty text
7078 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7080 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7082 <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>
7087 Media link to nonexistent file (bug 1702)
7089 [[Media:No such.jpg]]
7091 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7096 Image link to nonexistent file (bug 1850 - good)
7098 [[Image:No such.jpg]]
7100 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7105 :Image link to nonexistent file (bug 1850 - bad)
7107 [[:Image:No such.jpg]]
7109 <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>
7116 Character reference normalization in link text (bug 1938)
7118 [[Main Page|this&that]]
7120 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7127 Test for unicode normalization
7129 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7133 (bug 19451) Links should refer to the normalized form.
7141 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7142 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7143 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7144 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7145 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7150 Empty attribute crash test (bug 2067)
7152 <font color="">foo</font>
7154 <p><font color="">foo</font>
7159 Empty attribute crash test single-quotes (bug 2067)
7161 <font color=''>foo</font>
7163 <p><font color="">foo</font>
7168 Attribute test: equals, then nothing
7170 <font color=>foo</font>
7177 Attribute test: unquoted value
7179 <font color=x>foo</font>
7181 <p><font color="x">foo</font>
7186 Attribute test: unquoted but illegal value (hash)
7188 <font color=#x>foo</font>
7190 <p><font color="#x">foo</font>
7195 Attribute test: no value
7197 <font color>foo</font>
7199 <p><font color="color">foo</font>
7204 Bug 2095: link with three closing brackets
7208 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7213 Bug 2095: link with pipe and three closing brackets
7217 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7222 Bug 2095: link with pipe and three closing brackets, version 2
7224 [[Main Page|[http://example.com/]]]
7226 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7236 Template:Dangerous attribute
7238 " onmouseover="alert(document.cookie)
7242 Template:Dangerous style attribute
7244 border-size: expression(alert(document.cookie))
7250 <div style="float: right; {{{1}}}">Magic div</div>
7254 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7256 <div title="{{test}}"></div>
7258 <div title="This is a test template"></div>
7263 Bug 2304: HTML attribute safety (dangerous template; 2309)
7265 <div title="{{dangerous attribute}}"></div>
7267 <div title=""></div>
7272 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7274 <div style="{{dangerous style attribute}}"></div>
7276 <div style="/* insecure input */"></div>
7281 Bug 2304: HTML attribute safety (safe parameter; 2309)
7283 {{div style|width: 200px}}
7285 <div style="float: right; width: 200px">Magic div</div>
7290 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7292 {{div style|width: expression(alert(document.cookie))}}
7294 <div style="/* insecure input */">Magic div</div>
7299 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7301 {{div style|"><script>alert(document.cookie)</script>}}
7303 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7308 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7310 {{div style|" ><script>alert(document.cookie)</script>}}
7312 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7317 Bug 2304: HTML attribute safety (link)
7319 <div title="[[Main Page]]"></div>
7321 <div title="[[Main Page]]"></div>
7326 Bug 2304: HTML attribute safety (italics)
7328 <div title="''foobar''"></div>
7330 <div title="''foobar''"></div>
7335 Bug 2304: HTML attribute safety (bold)
7337 <div title="'''foobar'''"></div>
7339 <div title="'''foobar'''"></div>
7345 Bug 2304: HTML attribute safety (ISBN)
7347 <div title="ISBN 1234567890"></div>
7349 <div title="ISBN 1234567890"></div>
7354 Bug 2304: HTML attribute safety (RFC)
7356 <div title="RFC 1234"></div>
7358 <div title="RFC 1234"></div>
7363 Bug 2304: HTML attribute safety (PMID)
7365 <div title="PMID 1234567890"></div>
7367 <div title="PMID 1234567890"></div>
7372 Bug 2304: HTML attribute safety (web link)
7374 <div title="http://example.com/"></div>
7376 <div title="http://example.com/"></div>
7381 Bug 2304: HTML attribute safety (named web link)
7383 <div title="[http://example.com/ link]"></div>
7385 <div title="[http://example.com/ link]"></div>
7390 Bug 3244: HTML attribute safety (extension; safe)
7392 <div style="<nowiki>background:blue</nowiki>"></div>
7394 <div style="background:blue"></div>
7399 Bug 3244: HTML attribute safety (extension; unsafe)
7401 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7403 <div style="/* insecure input */"></div>
7407 # More MSIE fun discovered by Tom Gilder
7410 MSIE CSS safety test: spurious slash
7412 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7414 <div style="/* insecure input */">evil</div>
7419 MSIE CSS safety test: hex code
7421 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7423 <div style="/* insecure input */">evil</div>
7428 MSIE CSS safety test: comment in url
7430 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7432 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7437 MSIE CSS safety test: comment in expression
7439 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7441 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7447 Table attribute legitimate extension
7450 !+ style="<nowiki>color:blue</nowiki>"| status
7455 <th style="color:blue"> status
7461 Table attribute safety
7464 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7469 <th style="/* insecure input */"> status
7475 CSS line continuation 1
7477 <div style="background-image: u\ rl(test.jpg);"></div>
7479 <div style="/* insecure input */"></div>
7484 CSS line continuation 2
7486 <div style="background-image: u\ rl(test.jpg); "></div>
7488 <div style="/* insecure input */"></div>
7499 Expansion of multi-line templates in attribute values (bug 6255)
7501 <div style="background: {{identity|#00FF00}}">-</div>
7503 <div style="background: #00FF00">-</div>
7509 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7511 <div style="background:
7514 <div style="background: #00FF00">-</div>
7519 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7521 <div style="background: #00FF00">-</div>
7523 <div style="background: #00FF00">-</div>
7528 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7531 Parser hook: empty input
7544 Parser hook: empty input using terminated empty elements
7557 Parser hook: empty input using terminated empty elements (space before)
7570 Parser hook: basic input
7584 Parser hook: case insensitive
7598 Parser hook: case insensitive, redux
7611 Parser hook: nested tags
7615 <tag><tag></tag></tag>
7626 Parser hook: basic arguments
7628 <tag width=200 height = "100" depth = '50' square></tag>
7636 'square' => 'square',
7643 Parser hook: argument containing a forward slash (bug 5344)
7645 <tag filename='/tmp/bla'></tag>
7650 'filename' => '/tmp/bla',
7657 Parser hook: empty input using terminated empty elements (bug 2374)
7670 # </tag> should be output literally since there is no matching tag that begins it
7672 Parser hook: basic arguments using terminated empty elements (bug 2374)
7674 <tag width=200 height = "100" depth = '50' square/>
7684 'square' => 'square',
7693 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7697 Parser hook: static parser hook not inside a comment
7699 <statictag>hello, world</statictag>
7700 <statictag action=flush/>
7708 Parser hook: static parser hook inside a comment
7710 <!-- <statictag>hello, world</statictag> -->
7711 <statictag action=flush/>
7717 # Nested template calls; this case was broken by Parser.php rev 1.506,
7721 Template:One-parameter
7723 (My parameter is: {{{1}}})
7727 Template:Map-one-parameter
7733 Nested template calls
7735 {{Map-one-parameter|One-parameter|param}}
7737 <p>(My parameter is: param)
7746 Sanitizer: Closing of open tags
7748 <s></s><table></table>
7750 <s></s><table></table>
7755 Sanitizer: Closing of open but not closed tags
7764 Sanitizer: Closing of closed but not open tags
7773 Sanitizer: Closing of closed but not open table tags
7775 Table not started</td></tr></table>
7777 <p>Table not started</td></tr></table>
7782 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7784 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7786 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7791 Sanitizer: Validating the contents of the id attribute (bug 4515)
7797 Something, but definitely not <br id="9" />...
7801 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7805 <br id="foo" /><br id="foo" />
7807 Something need to be done. foo-2 ?
7811 Language converter: output gets cut off unexpectedly (bug 5757)
7815 this bit is safe: }-
7817 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7819 then we get cut off here: }-
7821 all additional text is vanished
7823 <p>this bit is safe: }-
7824 </p><p>but if we add a conversion instance: xxx
7825 </p><p>then we get cut off here: }-
7826 </p><p>all additional text is vanished
7831 Self closed html pairs (bug 5487)
7834 <center><font id="bug" />Centered text</center>
7835 <div><font id="bug2" />In div text</div>
7837 <center><font id="bug" />Centered text</center>
7838 <div><font id="bug2" />In div text</div>
7847 Punctuation: nbsp before exclamation
7851 <p>C'est grave !
7856 Punctuation: CSS !important (bug 11874)
7858 <div style="width:50% !important">important</div>
7860 <div style="width:50% !important">important</div>
7865 Punctuation: CSS ! important (bug 11874; with space after)
7867 <div style="width:50% ! important">important</div>
7869 <div style="width:50% ! important">important</div>
7875 HTML bullet list, closed tags (bug 5497)
7890 HTML bullet list, unclosed tags (bug 5497)
7907 HTML ordered list, closed tags (bug 5497)
7922 HTML ordered list, unclosed tags (bug 5497)
7939 HTML nested bullet list, closed tags (bug 5497)
7964 HTML nested bullet list, open tags (bug 5497)
7989 HTML nested ordered list, closed tags (bug 5497)
8014 HTML nested ordered list, open tags (bug 5497)
8039 HTML ordered list item with parameters oddity
8041 <ol><li id="fragment">One</li></ol>
8043 <ol><li id="fragment">One</li></ol>
8048 bug 5918: autonumbering
8050 [http://first/] [http://second] [ftp://ftp]
8054 [mailto:enclosed@mail.tld With target]
8056 [mailto:enclosed@mail.tld]
8058 mailto:inline@mail.tld
8060 <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>
8061 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8062 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8063 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8064 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8070 # Security and HTML correctness
8071 # From Nick Jenkins' fuzz testing
8075 Fuzz testing: Parser13
8090 Fuzz testing: Parser14
8095 <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>
8096 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8098 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8105 Fuzz testing: Parser14-table
8110 <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>
8111 <table style="__TOC__">
8117 # Known to produce bogus xml (extra </td>)
8119 Fuzz testing: Parser16
8139 Fuzz testing: Parser21
8142 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8147 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8157 Fuzz testing: Parser22
8159 http://===r:::https://b
8163 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8171 # Known to produce bad XML for now
8173 Fuzz testing: Parser24
8180 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8181 <br style="onmouseover='alert(document.cookie);' " />
8183 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8188 <u class="|">}}}} >
8189 <br style="onmouseover='alert(document.cookie);'" />
8191 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8200 # Note: the current result listed for this is not what the original one was,
8201 # but the original bug was JavaScript injection, which is fixed in any case.
8202 # It's not clear that the original result listed was any more correct than the
8203 # current one. Original result:
8206 # <li class="||">
8207 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8209 Fuzz testing: Parser25 (bug 6055)
8215 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8217 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8222 Fuzz testing: URL adjacent extension (with space, clean)
8225 http://example.com <nowiki>junk</nowiki>
8227 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8232 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8235 http://example.com<nowiki>junk</nowiki>
8237 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8242 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8245 http://example.com<pre>junk</pre>
8247 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8252 Fuzz testing: image with bogus manual thumbnail
8254 [[Image:foobar.jpg|thumbnail= ]]
8256 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8261 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8263 <pre dir=" "></pre>
8265 <pre dir=" "></pre>
8270 Parsing optional HTML elements (Bug 6171)
8275 <td> Some tabular data</td>
8276 <td> More tabular data ...
8277 <td> And yet som tabular data</td>
8283 <td> Some tabular data</td>
8284 <td> More tabular data ...
8285 </td><td> And yet som tabular data</td>
8292 Correct handling of <td>, <tr> (Bug 6171)
8297 <td> Some tabular data</td>
8298 <td> More tabular data ...</td>
8299 <td> And yet som tabular data</td>
8305 <td> Some tabular data</td>
8306 <td> More tabular data ...</td>
8307 <td> And yet som tabular data</td>
8315 Parsing crashing regression (fr:JavaScript)
8319 <p></body></x>
8324 Inline wiki vs wiki block nesting
8330 <p><b>Bold paragraph</b>
8331 </p><p>New wiki paragraph
8336 Inline HTML vs wiki block nesting
8344 <p><b>Bold paragraph</b>
8345 </p><p>New wiki paragraph
8349 # Original result was this:
8350 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8352 # While that might be marginally more intuitive, maybe, the six-apostrophe
8353 # construct is clearly pathological and the result stated here (which is what
8354 # the parser actually does) is about as reasonable as anything.
8356 Mixing markup for italics and bold
8359 '''bold''''''bold''bolditalics'''''
8361 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8369 Article for special page transclusion test
8373 Special page transclusion
8376 {{Special:Prefixindex/Xyzzyx}}
8378 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8383 Special page transclusion twice (bug 5021)
8386 {{Special:Prefixindex/Xyzzyx}}
8387 {{Special:Prefixindex/Xyzzyx}}
8389 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8390 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8395 Transclusion of default MediaWiki message
8397 {{MediaWiki:Mainpage}}
8404 Transclusion of nonexistent MediaWiki message
8406 {{MediaWiki:Mainpagexxx}}
8408 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8413 Transclusion of MediaWiki message with underscore
8415 {{MediaWiki:history_short}}
8422 Transclusion of MediaWiki message with space
8424 {{MediaWiki:history short}}
8431 Invalid header with following text
8441 Section extraction test (section 0)
8461 Section extraction test (section 1)
8483 Section extraction test (section 2)
8504 Section extraction test (section 3)
8524 Section extraction test (section 4)
8548 Section extraction test (section 5)
8568 Section extraction test (section 6)
8589 Section extraction test (section 7)
8609 Section extraction test (section 8)
8629 Section extraction test (section 9)
8650 Section extraction test (section 10)
8670 Section extraction test (nonexistent section 11)
8689 Section extraction test with bogus heading (section 1)
8694 ==bogus== not a legal section
8698 ==bogus== not a legal section
8702 Section extraction test with bogus heading (section 2)
8707 ==bogus== not a legal section
8714 Section extraction test with comment after heading (section 1)
8726 Section extraction test with comment after heading (section 2)
8738 Section extraction test with bogus <nowiki> heading (section 1)
8743 ==bogus== <nowiki>not a legal section</nowiki>
8747 ==bogus== <nowiki>not a legal section</nowiki>
8751 Section extraction test with bogus <nowiki> heading (section 2)
8756 ==bogus== <nowiki>not a legal section</nowiki>
8763 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8764 # instead of respecting commented sections
8766 Section extraction prefixed by comment (section 1)
8777 Section extraction prefixed by comment (section 2)
8788 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8789 # instead of respecting HTML-style headings
8791 Section extraction, mixed wiki and html (section 1)
8807 Section extraction, mixed wiki and html (section 2)
8823 # Formerly testing for bug 3342
8825 Section extraction, heading surrounded by <noinclude>
8829 <noinclude>==unmarked==</noinclude>
8835 # Test behaviour of bug 19910
8837 Sectiion with all-equals
8842 The line above must have a trailing space
8845 But just in case it doesn't...
8849 But just in case it doesn't...
8853 Section replacement test (section 0)
8884 Section replacement test (section 1)
8913 Section replacement test (section 2)
8943 Section replacement test (section 3)
8974 Section replacement test (section 4)
9001 Section replacement test (section 5)
9032 Section replacement test (section 6)
9062 Section replacement test (section 7)
9093 Section replacement test (section 8)
9124 Section replacement test (section 9)
9153 Section replacement test (section 10)
9183 Section replacement test with initial whitespace (bug 13728)
9187 Preformatted initial line
9191 Preformatted initial line
9198 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9210 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9223 Section extraction, <pre> around bogus header (bug 10309)
9240 Section replacement, <pre> around bogus header (bug 10309)
9242 noxml replace=2,"xxx"
9263 Handling of 
 in URLs
9267 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9274 5 quotes, code coverage +1 line
9281 Special:Search page linking.
9285 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9300 * {{SUBJECTPAGENAME}}
9301 * {{SUBJECTPAGENAMEE}}
9308 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9310 <ul><li> Parser test
9311 </li><li> Parser test
9312 </li><li> Parser test
9313 </li><li> Parser_test
9314 </li><li> Parser test
9315 </li><li> Parser_test
9316 </li><li> Talk:Parser test
9317 </li><li> Talk:Parser_test
9318 </li><li> Parser test
9319 </li><li> Parser_test
9326 </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>
9330 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9340 image4 |300px| centre
9341 image5.svg| http://///////
9346 <ul class="gallery">
9347 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9348 <div style="height: 150px;">Image1.png</div>
9349 <div class="gallerytext">
9352 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9353 <div style="height: 150px;">Image2.gif</div>
9354 <div class="gallerytext">
9359 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9360 <div style="height: 150px;">Image3</div>
9361 <div class="gallerytext">
9364 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9365 <div style="height: 150px;">Image4</div>
9366 <div class="gallerytext">
9371 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9372 <div style="height: 150px;">Image5.svg</div>
9373 <div class="gallerytext">
9374 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9378 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9379 <div style="height: 150px;">* image6</div>
9380 <div class="gallerytext">
9388 Gallery (with options)
9390 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9391 File:Nonexistant.jpg|caption
9392 File:Nonexistant.jpg
9393 image:foobar.jpg|some '''caption''' [[Main Page]]
9395 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9398 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9399 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9400 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9401 <div style="height: 70px;">Nonexistant.jpg</div>
9402 <div class="gallerytext">
9407 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9408 <div style="height: 70px;">Nonexistant.jpg</div>
9409 <div class="gallerytext">
9412 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9413 <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>
9414 <div class="gallerytext">
9415 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9419 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9420 <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>
9421 <div class="gallerytext">
9424 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9425 <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>
9426 <div class="gallerytext">
9436 Gallery with wikitext inside caption
9439 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9440 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9443 <ul class="gallery">
9444 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9445 <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>
9446 <div class="gallerytext">
9447 <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>
9451 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9452 <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>
9453 <div class="gallerytext">
9454 <p>This is a test template
9463 gallery (with showfilename option)
9465 <gallery showfilename>
9466 File:Nonexistant.jpg|caption
9467 File:Nonexistant.jpg
9468 image:foobar.jpg|some '''caption''' [[Main Page]]
9472 <ul class="gallery">
9473 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9474 <div style="height: 150px;">Nonexistant.jpg</div>
9475 <div class="gallerytext">
9476 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9481 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9482 <div style="height: 150px;">Nonexistant.jpg</div>
9483 <div class="gallerytext">
9484 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9488 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9489 <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>
9490 <div class="gallerytext">
9491 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9492 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9496 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9497 <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>
9498 <div class="gallerytext">
9499 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9508 Gallery (with namespace-less filenames)
9511 File:Nonexistant.jpg
9517 <ul class="gallery">
9518 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9519 <div style="height: 150px;">Nonexistant.jpg</div>
9520 <div class="gallerytext">
9523 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9524 <div style="height: 150px;">Nonexistant.jpg</div>
9525 <div class="gallerytext">
9528 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9529 <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>
9530 <div class="gallerytext">
9533 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9534 <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>
9535 <div class="gallerytext">
9543 HTML Hex character encoding (spells the word "JavaScript")
9545 JavaScript
9547 <p>JavaScript
9552 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9556 <p>&#xsee;&#XSEE;
9561 HTML Hex character encoding mixed case
9570 __FORCETOC__ override
9582 ISBN 978-0-1234-56 789
9584 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9589 ISBN followed by 5 spaces
9600 ISBN ISBN 1234567890
9602 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9607 Bug 22905: <abbr> followed by ISBN followed by </a>
9609 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9611 <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>
9620 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9625 Double RFC with a wiki link
9629 <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>
9638 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9643 Centre-aligned image
9645 [[Image:foobar.jpg|centre]]
9647 <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>
9654 [[Image:foobar.jpg|none]]
9656 <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>
9661 Width + Height sized image (using px) (height is ignored)
9663 [[Image:foobar.jpg|640x480px]]
9665 <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>
9670 Width-sized image (using px, no following whitespace)
9672 [[Image:foobar.jpg|640px]]
9674 <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>
9679 Width-sized image (using px, with following whitespace - test regression from r39467)
9681 [[Image:foobar.jpg|640px ]]
9683 <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>
9688 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9690 [[Image:foobar.jpg| 640px]]
9692 <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>
9697 Another italics / bold test
9705 # Note the results may be incorrect, as parserTest output included this:
9706 # XML error: Mismatched tag at byte 6120:
9707 # ...<dd> </dt></dl> </dd...
9715 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9726 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9728 Images with the "|" character in the comment
9730 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9732 <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>
9737 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9739 <html><script>alert(1);</script></html>
9741 <p><html><script>alert(1);</script></html>
9746 HTML with raw HTML ($wgRawHtml==true)
9750 <html><script>alert(1);</script></html>
9752 <p><script>alert(1);</script>
9757 Parents of subpages, one level up
9759 subpage title=[[Subpage test/L1/L2/L3]]
9763 <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>
9769 Parents of subpages, one level up, not named
9771 subpage title=[[Subpage test/L1/L2/L3]]
9775 <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>
9782 Parents of subpages, two levels up
9784 subpage title=[[Subpage test/L1/L2/L3]]
9790 <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
9791 </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>
9796 Parents of subpages, two levels up, without trailing slash or name.
9798 subpage title=[[Subpage test/L1/L2/L3]]
9807 Parents of subpages, two levels up, with lots of extra trailing slashes.
9809 subpage title=[[Subpage test/L1/L2/L3]]
9813 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9818 Definition list code coverage
9824 <dl><dt> title  </dt><dd> def
9825 </dd><dt> title </dt><dd> def
9826 </dd><dt>title</dt><dd> def
9832 Don't fall for the self-closing div
9834 <div>hello world</div/>
9836 <div>hello world</div>
9845 <p>[[:Template:Msg]]
9854 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9858 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9860 Always escape literal '>' in output, not just after '<'
9874 <p>This is a test template
9875 This is a test template
9887 Inclusion of !userCanEdit() content
9891 <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>
9897 Out-of-order TOC heading levels
9906 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9908 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9910 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9911 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9914 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9916 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9917 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9922 <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>
9923 <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>
9924 <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>
9925 <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>
9926 <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>
9927 <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>
9933 ISBN with a dummy number
9943 ISBN with space-delimited number
9947 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9953 ISBN with multiple spaces, no number
9972 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9973 </p><p>ISBN 12345678901
9979 ISBN with trailing year (bug 8110)
9981 ISBN 1-234-56789-0 - 2006
9983 ISBN 1 234 56789 0 - 2006
9985 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9986 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9994 {{anchorencode:foo bar©#%n}}
9996 <p>foo_bar.C2.A9.23.25n
10001 anchorencode trims spaces
10003 {{anchorencode: __pretty__please__}}
10010 anchorencode deals with links
10012 {{anchorencode: [[hello|world]] [[hi]]}}
10019 anchorencode deals with templates
10021 {{anchorencode: {{Foo}} }}
10028 anchorencode encodes like the TOC generator: (bug 18431)
10030 === _ +:.3A%3A&&]] ===
10031 {{anchorencode: _ +:.3A%3A&&]] }}
10034 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10035 <p>.2B:.3A.253A.26.26.5D.5D
10039 # Expected output in the following test is not necessarily expected (there
10040 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10041 # only testing for well-formedness.
10043 Bug 6200: blockquotes and paragraph formatting
10063 Bug 8293: Use of center tag ruins paragraph formatting
10085 ### Language variants related tests
10088 Self-link in language variants
10090 title=[[Dunav]] language=sr
10092 Both [[Dunav]] and [[Дунав]] are names for this river.
10094 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10100 Link to pages in language variants
10104 Main Page can be written as [[Маин Паге]]
10106 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10112 Multiple links to pages in language variants
10116 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10118 <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>.
10124 Simple template in language variants
10130 <p>This is a test template
10136 Template with explicit namespace in language variants
10142 <p>This is a test template
10148 Basic test for template parameter in language variants
10152 {{парамтест|param=foo}}
10154 <p>This is a test template with parameter foo
10160 Simple category in language variants
10164 [[Category:МедиаWики Усер'с Гуиде]]
10166 <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>
10171 Stripping -{}- tags (language variants)
10175 Latin proverb: -{Ne nuntium necare}-
10177 <p>Latin proverb: Ne nuntium necare
10183 Prevent conversion with -{}- tags (language variants)
10185 language=sr variant=sr-ec
10187 Latinski: -{Ne nuntium necare}-
10189 <p>Латински: Ne nuntium necare
10195 Prevent conversion of text with -{}- tags (language variants)
10197 language=sr variant=sr-ec
10199 Latinski: -{Ne nuntium necare}-
10201 <p>Латински: Ne nuntium necare
10207 Prevent conversion of links with -{}- tags (language variants)
10209 language=sr variant=sr-ec
10213 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10219 -{}- tags within headlines (within html for parserConvert())
10221 language=sr variant=sr-ec
10225 <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>
10231 Explicit definition of language variant alternatives
10233 language=zh variant=zh-tw
10235 -{zh:China;zh-tw:Taiwan}-, not China
10237 <p>Taiwan, not China
10243 Explicit session-wise language variant mapping (A flag and - flag)
10245 language=zh variant=zh-tw
10247 Taiwan is not China.
10248 But -{A|zh:China;zh-tw:Taiwan}- is China,
10249 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10250 and -{China}- is China.
10252 <p>Taiwan is not China.
10253 But Taiwan is Taiwan,
10254 (This should be stripped!)
10255 and China is China.
10260 Explicit session-wise language variant mapping (H flag for hide)
10262 language=zh variant=zh-tw
10264 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10267 <p>(This should be stripped!)
10273 Adding explicit conversion rule for title (T flag)
10275 language=zh variant=zh-tw showtitle
10277 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10280 <p>Should be stripped!
10285 Testing that changing the language variant here in the tests actually works
10287 language=zh variant=zh showtitle
10289 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10292 <p>Should be stripped!
10297 Bug 24072: more test on conversion rule for title
10299 language=zh variant=zh-tw showtitle
10301 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10302 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10305 <p>This should be stripped!
10306 This won't take interferes with the title rule.
10311 Raw output of variant escape tags (R flag)
10313 language=zh variant=zh-tw
10315 Raw: -{R|zh:China;zh-tw:Taiwan}-
10317 <p>Raw: zh:China;zh-tw:Taiwan
10322 Nested using of manual convert syntax
10324 language=zh variant=zh-hk
10326 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10328 <p>Nested: Hello Hong Kong!
10333 Do not convert roman numbers to language variants
10335 language=sr variant=sr-ec
10339 <p>Фридрих IV је цар.
10344 Unclosed language converter markup "-{"
10355 Don't convert raw rule "-{R|=>}-" to "=>"
10372 Bug 529: Uncovered bullet
10382 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10383 # Templates in Wikipedia rely on this behavior, as tidy has always been
10384 # enabled there. These tests are normally run *without* tidy, so specify the
10385 # full output here.
10386 # To test realistic parsing behavior, apply a tidy-like transformation to both
10387 # the expected output and your parser's output.
10389 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10391 ******* Foo {{bullet}}
10393 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10406 Bug 529: Uncovered table already at line-start
10429 Bug 529: Uncovered bullet in parser function result
10431 * Foo {{lc:{{bullet}} }}
10440 Bug 5678: Double-parsed template argument
10442 {{lc:{{{1}}}|hello}}
10449 Bug 5678: Double-parsed template invocation
10451 {{lc:{{paramtest {{!}} param = hello }} }}
10453 <p>{{paramtest | param = hello }}
10458 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10461 title=[[Main Page]]
10463 {{PRVNÍVELKÉ:ěščř}}
10464 {{prvnívelké:ěščř}}
10484 Morwen/13: Unclosed link followed by heading
10491 <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>
10496 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10503 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10508 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10515 <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>
10530 Paragraphs inside divs (no extra line breaks)
10542 Paragraphs inside divs (extra line break on open)
10557 Paragraphs inside divs (extra line break on close)
10572 Paragraphs inside divs (extra line break on open and close)
10589 Nesting tags, paragraphs on lines which begin with <div>
10593 <div></div><strong>A
10602 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10604 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10608 <blockquote>Line one
10610 Line two</blockquote>
10612 <blockquote>Line one
10613 Line two</blockquote>
10618 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10625 Line two</blockquote>
10630 Line two</blockquote>
10635 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10639 <blockquote>Line one
10644 <blockquote>Line one
10652 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10671 Paragraphs inside blockquotes/divs (no extra line breaks)
10673 <blockquote><div>Line one
10675 Line two</div></blockquote>
10677 <blockquote><div>Line one
10678 Line two</div></blockquote>
10683 Paragraphs inside blockquotes/divs (extra line break on open)
10688 Line two</div></blockquote>
10693 Line two</div></blockquote>
10698 Paragraphs inside blockquotes/divs (extra line break on close)
10700 <blockquote><div>Line one
10703 </div></blockquote>
10705 <blockquote><div>Line one
10708 </div></blockquote>
10713 Paragraphs inside blockquotes/divs (extra line break on open and close)
10719 </div></blockquote>
10725 </div></blockquote>
10730 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10732 wgLinkHolderBatchSize=0
10738 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10739 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10740 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10745 Free external link invading image caption
10747 [[Image:Foobar.jpg|thumb|http://x|hello]]
10749 <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>
10754 Bug 15196: localised external link numbers
10758 [http://en.wikipedia.org/]
10760 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10765 Multibyte character in padleft
10767 {{padleft:-Hello|7|Æ}}
10774 Multibyte character in padright
10776 {{padright:Hello-|7|Æ}}
10785 wgUseDynamicDates=1
10789 <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>
10794 formatdate parser function
10796 {{#formatdate:2009-03-24}}
10798 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10803 formatdate parser function, with default format
10805 {{#formatdate:2009-03-24|mdy}}
10807 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10812 Linked date with autoformatting disabled
10814 wgUseDynamicDates=false
10818 <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>
10823 Spacing of numbers in formatted dates
10825 {{#formatdate:January 15}}
10827 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10832 Spacing of numbers in formatted dates (linked)
10834 wgUseDynamicDates=true
10838 <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>
10843 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
10845 language=nl title=[[MediaWiki:Common.css]]
10847 {{#formatdate:2009-03-24|dmy}}
10849 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10862 Edit comment with link
10866 I like the [[Main Page]] a lot
10868 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10872 Edit comment with link and link text
10876 I like the [[Main Page|best pages]] a lot
10878 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10882 Edit comment with link and link text with suffix
10886 I like the [[Main Page|best page]]s a lot
10888 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10892 Edit comment with section link (non-local, eg in history list)
10894 comment title=[[Main Page]]
10896 /* External links */ removed bogus entries
10898 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10902 Edit comment with section link and text before it (non-local, eg in history list)
10904 comment title=[[Main Page]]
10906 pre-comment text /* External links */ removed bogus entries
10908 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>
10912 Edit comment with section link (local, eg in diff view)
10914 comment local title=[[Main Page]]
10916 /* External links */ removed bogus entries
10918 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10922 Edit comment with subpage link (bug 14080)
10926 title=[[Subpage test]]
10928 Poked at a [[/subpage]] here...
10930 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10934 Edit comment with subpage link and link text (bug 14080)
10938 title=[[Subpage test]]
10940 Poked at a [[/subpage|neat little page]] here...
10942 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10946 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10949 title=[[Subpage test]]
10951 Poked at a [[/subpage]] here...
10953 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10957 Edit comment with bare anchor link (local, as on diff)
10961 title=[[Main Page]]
10965 <a href="#section">#section</a>
10969 Edit comment with bare anchor link (non-local, as on history)
10972 title=[[Main Page]]
10976 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10980 Anchor starting with underscore
10984 <p><a href="#_ref">One</a>
10989 Id starting with underscore
10991 <div id="_ref"></div>
10993 <div id="_ref"></div>
10998 Space normalisation on autocomment (bug 22784)
11001 title=[[Main Page]]
11003 /* __hello__world__ */
11005 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11009 percent-encoding and + signs in comments (Bug 26410)
11013 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11015 <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>
11019 Bad images - basic functionality
11028 Bad images - bug 16039: text after bad image disappears
11042 Verify that displaytitle works (bug #22501) no displaytitle
11046 wgAllowDisplayTitle=true
11047 wgRestrictDisplayTitle=false
11049 this is not the the title
11052 <p>this is not the the title
11057 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11062 wgAllowDisplayTitle=true
11063 wgRestrictDisplayTitle=false
11065 this is not the the title
11066 {{DISPLAYTITLE:whatever}}
11069 <p>this is not the the title
11074 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11079 wgAllowDisplayTitle=true
11080 wgRestrictDisplayTitle=true
11082 this is not the the title
11083 {{DISPLAYTITLE:whatever}}
11086 <p>this is not the the title
11091 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11096 wgAllowDisplayTitle=true
11097 wgRestrictDisplayTitle=true
11099 this is not the the title
11100 {{DISPLAYTITLE:screen}}
11103 <p>this is not the the title
11108 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11113 wgAllowDisplayTitle=false
11115 this is not the the title
11116 {{DISPLAYTITLE:screen}}
11119 <p>this is not the the title
11120 <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>
11125 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11130 wgAllowDisplayTitle=false
11132 this is not the the title
11135 <p>this is not the the title
11140 preload: check <noinclude> and <includeonly>
11144 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11150 preload: check <onlyinclude>
11154 Goodbye <onlyinclude>Hello world</onlyinclude>
11160 preload: can pass tags through if we want to
11164 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11166 <includeonly>Hello world</includeonly>
11170 preload: check that it doesn't try to do tricks
11174 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11176 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11180 Play a bit with r67090 and bug 3158
11184 <div style="width:50% !important"> </div>
11185 <div style="width:50% !important"> </div>
11186 <div style="width:50% !important"> </div>
11187 <div style="border : solid;"> </div>
11189 <div style="width:50% !important"> </div>
11190 <div style="width:50% !important"> </div>
11191 <div style="width:50% !important"> </div>
11192 <div style="border : solid;"> </div>
11197 HTML5 data attributes
11199 <span data-foo="bar">Baz</span>
11200 <p data-abc-def_hij="">Quuz</p>
11202 <p><span data-foo="bar">Baz</span>
11204 <p data-abc-def_hij="">Quuz</p>
11209 percent-encoding and + signs in internal links (Bug 26410)
11211 [[User:+%]] [[Page+title%]]
11212 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11213 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11214 [[%33%45]] [[%33%45+]]
11216 <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>
11217 <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>
11218 <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>
11219 <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>
11224 Special characters in embedded file links (bug 27679)
11226 [[File:Contains & ampersand.jpg]]
11227 [[File:Does not exist.jpg|Title with & ampersand]]
11229 <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>
11230 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11236 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11238 Text's been normalized?
11240 <p>Text's been normalized?
11245 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11247 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11249 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11254 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11256 [http://www.example.org/ ideograms]
11258 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11263 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11265 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11267 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11291 Bug 31098 Template which includes system messages which includes the template
11295 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11296 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11301 Deprecated presentational attributes are converted to css
11304 | valign=top align=left width=100 height=25% | Asdf
11306 <ul type="disc"></ul>
11310 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11312 <ul style="list-style-type: disc;"></ul>
11317 Bug31490 Turkish: ucfirst 'blah'
11328 Bug31490 Turkish: ucfirst 'ix'
11339 Bug31490 Turkish: lcfirst 'BLAH'
11350 Bug31490 Turkish: ucfırst (with a dotless i)
11356 <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>
11361 Bug31490 ucfırst (with a dotless i) with English language
11367 <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>
11372 Bug 26375: TOC with italics
11374 title=[[Main Page]]
11377 == ''Lost'' episodes ==
11379 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11381 <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>
11384 <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>
11389 Bug 26375: TOC with bold
11391 title=[[Main Page]]
11394 == '''should be bold''' then normal text ==
11396 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11398 <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>
11401 <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>
11406 Bug 33845: Headings become cursive in TOC when they contain an image
11408 title=[[Main Page]]
11411 == Image [[Image:foobar.jpg]] ==
11413 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11415 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11418 <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>
11423 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11425 title=[[Main Page]]
11428 == <blockquote>Quote</blockquote> ==
11430 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11432 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11435 <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>
11440 Unclosed tags in TOC
11442 title=[[Main Page]]
11446 <small>Hanc marginis exiguitas non caperet.</small>
11449 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11451 <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>
11454 <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>
11455 <p><small>Hanc marginis exiguitas non caperet.</small>
11461 Multiple tags in TOC
11464 == <i>Foo</i> <b>Bar</b> ==
11466 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11468 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11470 <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>
11471 <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>
11474 <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>
11475 <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>
11480 Tags with parameters in TOC
11483 == <sup class="in-h2">Hello</sup> ==
11485 == <sup class="a > b">Evilbye</sup> ==
11487 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11489 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11490 <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>
11493 <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>
11494 <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>
11499 span tags with directionality in TOC
11502 == <span dir="ltr">C++</span> ==
11504 == <span dir="rtl">זבנג!</span> ==
11506 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11508 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11510 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11512 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11514 <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>
11515 <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>
11516 <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>
11517 <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>
11518 <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>
11521 <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>
11522 <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>
11523 <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>
11524 <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>
11525 <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>
11532 == {{int:headline_sample}} ==
11536 Bug 32057: Title needed when expanding <h> nodes.
11538 title=[[Main Page]]
11542 <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>
11547 Strip marker in urlencode
11549 {{urlencode:x<nowiki/>y}}
11550 {{urlencode:x<nowiki/>y|wiki}}
11551 {{urlencode:x<nowiki/>y|path}}
11578 Strip marker in formatNum
11580 {{formatnum:1<nowiki/>2}}
11581 {{formatnum:1<nowiki/>2|R}}
11589 Strip marker in grammar
11593 {{grammar:elative|foo<nowiki/>bar}}
11600 Strip marker in padleft
11602 {{padleft:|2|x<nowiki/>y}}
11609 Strip marker in padright
11611 {{padright:|2|x<nowiki/>y}}
11618 Strip marker in anchorencode
11620 {{anchorencode:x<nowiki/>y}}
11627 nowiki inside link inside heading (bug 18295)
11629 ==[[foo|x<nowiki>y</nowiki>z]]==
11631 <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>
11636 new support for bdi element (bug 31817)
11638 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11640 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11645 Ignore pipe between table row attributes
11649 |- id=foo | style='color: red'
11657 <tr id="foo" style="color: red">
11664 Gallery override link with WikiLink (bug 34852)
11667 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11670 <ul class="gallery">
11671 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11672 <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>
11673 <div class="gallerytext">
11683 Gallery override link with absolute external link (bug 34852)
11686 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11689 <ul class="gallery">
11690 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11691 <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>
11692 <div class="gallerytext">
11702 Gallery override link with malicious javascript (bug 34852)
11705 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11708 <ul class="gallery">
11709 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11710 <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>
11711 <div class="gallerytext">
11721 Language parser function
11730 Padleft and padright as substr
11732 {{padleft:|3|abcde}}
11733 {{padright:|3|abcde}}
11741 Bug 34939 - Case insensitive link parsing ([HttP://])
11743 [HttP://MediaWiki.Org/]
11745 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11750 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11752 [HttP://MediaWiki.Org/ MediaWiki]
11754 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11759 Bug 34939 - Case insensitive link parsing (HttP://)
11761 HttP://MediaWiki.Org/
11763 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11768 ### Parsoids-specific tests
11769 ### Parsoid-PHP parser incompatibilities
11772 1. SOL-sensitive wikitext tokens as template-args
11786 #### The following section of tests are primarily to test
11787 #### wikitext escaping capabilities of Parsoid.
11788 #### A lot of the tests are disabled for the PHP parser either
11789 #### because of minor newline diffs or other reasons.
11790 #### As Parsoid serializer can handle newlines and other HTML
11791 #### more robustly, some of these tests might get reenabled
11792 #### for the PHP parser.
11794 #### --------------- Headings ---------------
11796 #### 1. Nested inside html <h1>=foo=</h1>
11797 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11798 #### 3. Nested inside html with wikitext split by html tags
11799 #### 4. No escape needed
11800 #### 5. Empty headings <h1></h1>
11801 #### 6. Heading chars in SOL context
11802 #### ----------------------------------------
11804 Headings: 0. Unnested
11806 <nowiki>=foo=</nowiki>
11808 <nowiki>=foo</nowiki>''a''=
11811 </p><p>=foo<i>a</i>=
11816 Headings: 1. Nested inside html
11820 =<nowiki>=foo=</nowiki>=
11821 ==<nowiki>=foo=</nowiki>==
11822 ===<nowiki>=foo=</nowiki>===
11823 ====<nowiki>=foo=</nowiki>====
11824 =====<nowiki>=foo=</nowiki>=====
11825 ======<nowiki>=foo=</nowiki>======
11836 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11841 <nowiki>*bar</nowiki>
11845 <nowiki>=bar=</nowiki>
11853 Headings: 3. Nested inside html with wikitext split by html tags
11857 =<nowiki>=</nowiki>'''bold'''foo==
11859 <h1>=<b>bold</b>foo=</h1>
11863 Headings: 4. No escaping needed (testing just h1 and h2)
11878 <h1><i>=</i>foo=</h1>
11883 Headings: 5. Empty headings
11887 =<nowiki></nowiki>=
11888 ==<nowiki></nowiki>==
11889 ===<nowiki></nowiki>===
11890 ====<nowiki></nowiki>====
11891 =====<nowiki></nowiki>=====
11892 ======<nowiki></nowiki>======
11903 Headings: 6. Heading chars in SOL context
11907 <!--cmt--><nowiki>=h1=</nowiki>
11913 #### --------------- Lists ---------------
11914 #### 0. Outside nests (*foo, etc.)
11915 #### 1. Nested inside html <ul><li>*foo</li></ul>
11916 #### 2. Inside definition lists
11917 #### 3. Only bullets at start should be escaped
11918 #### 4. No escapes needed
11919 #### 5. No unnecessary escapes
11920 #### 6. Escape bullets in SOL position
11921 #### 7. Escape bullets in a multi-line context
11922 #### ----------------------------------------
11925 Lists: 0. Outside nests
11927 <nowiki>*foo</nowiki>
11929 <nowiki>#foo</nowiki>
11937 Lists: 1. Nested inside html
11939 *<nowiki>*foo</nowiki>
11941 *<nowiki>#foo</nowiki>
11943 *<nowiki>:foo</nowiki>
11945 *<nowiki>;foo</nowiki>
11947 #<nowiki>*foo</nowiki>
11949 #<nowiki>#foo</nowiki>
11951 #<nowiki>:foo</nowiki>
11953 #<nowiki>;foo</nowiki>
11975 Lists: 2. Inside definition lists
11977 ;<nowiki>;foo</nowiki>
11979 ;<nowiki>:foo</nowiki>
11981 ;<nowiki>:foo</nowiki>
11984 :<nowiki>:foo</nowiki>
11999 Lists: 3. Only bullets at start of text should be escaped
12001 *<nowiki>*foo*bar</nowiki>
12003 *<nowiki>*foo</nowiki>''it''*bar
12007 <ul><li>*foo<i>it</i>*bar
12013 Lists: 4. No escapes needed
12025 <ul><li><i>foo</i>*bar
12027 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12032 Lists: 5. No unnecessary escapes
12034 * bar <span><nowiki>[[foo]]</nowiki></span>
12036 *=bar <span><nowiki>[[foo]]</nowiki></span>
12038 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12040 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12042 *=bar <span>foo]]</span>=
12044 <ul><li> bar <span>[[foo]]</span>
12046 <ul><li>=bar <span>[[foo]]</span>
12048 <ul><li>[[bar <span>[[foo]]</span>
12050 <ul><li>]]bar <span>[[foo]]</span>
12052 <ul><li>=bar <span>foo]]</span>=
12058 Lists: 6. Escape bullets in SOL position
12062 <!--cmt--><nowiki>*foo</nowiki>
12069 Lists: 7. Escape bullets in a multi-line context
12079 #### --------------- HRs ---------------
12080 #### 1. Single line
12081 #### -----------------------------------
12084 HRs: 1. Single line
12089 <nowiki>----</nowiki>
12091 <nowiki>=foo=</nowiki>
12093 <nowiki>*foo</nowiki>
12100 #### --------------- Tables ---------------
12101 #### 1a. Simple example
12102 #### 1b. No escaping needed (!foo)
12103 #### 1c. No escaping needed (|foo)
12104 #### 1d. No escaping needed (|}foo)
12106 #### 2a. Nested in td (<td>foo|bar</td>)
12107 #### 2b. Nested in td (<td>foo||bar</td>)
12108 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12110 #### 3a. Nested in th (<th>foo!bar</th>)
12111 #### 3b. Nested in th (<th>foo!!bar</th>)
12112 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12116 #### 4c. No escaping needed
12117 #### --------------------------------------
12120 Tables: 1a. Simple example
12131 Tables: 1b. No escaping needed
12140 Tables: 1c. No escaping needed
12149 Tables: 1d. No escaping needed
12158 Tables: 2a. Nested in td
12163 |<nowiki>foo|bar</nowiki>
12173 Tables: 2b. Nested in td
12178 |<nowiki>foo||bar</nowiki>
12179 |''it''<nowiki>foo||bar</nowiki>
12184 </td><td><i>it</i>foo||bar
12190 Tables: 2c. Nested in td -- no escaping needed
12205 Tables: 3a. Nested in th
12220 Tables: 3b. Nested in th
12225 !<nowiki>foo!!bar</nowiki>
12235 Tables: 3c. Nested in th -- no escaping needed
12250 Tables: 4a. Escape -
12258 |<nowiki>-bar</nowiki>
12262 <tr><th>-bar</th></tr>
12263 <tr><td>-bar</td></tr>
12268 Tables: 4b. Escape +
12276 |<nowiki>+bar</nowiki>
12280 <tr><th>+bar</th></tr>
12281 <tr><td>+bar</td></tr>
12286 Tables: 4c. No escaping needed
12300 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12301 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12305 #### --------------- Links ---------------
12306 #### 1. Quote marks in link text
12307 #### 2. Wikilinks: Escapes needed
12308 #### 3. Wikilinks: No escapes needed
12309 #### 4. Extlinks: Escapes needed
12310 #### 5. Extlinks: No escapes needed
12311 #### --------------------------------------
12313 Links 1. Quote marks in link text
12317 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12319 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12323 Links 2. WikiLinks: Escapes needed
12327 [[Foo|<nowiki>[Foobar]</nowiki>]]
12328 [[Foo|<nowiki>Foobar]</nowiki>]]
12329 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12330 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12331 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12332 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12333 [[Foo|<nowiki>|Bar</nowiki>]]
12335 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12336 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12337 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12338 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12339 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12340 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12341 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12345 Links 3. WikiLinks: No escapes needed
12352 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12353 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12357 Links 4. ExtLinks: Escapes needed
12361 [http://google.com <nowiki>[google]</nowiki>]
12362 [http://google.com <nowiki>google]</nowiki>]
12364 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12365 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12369 Links 5. ExtLinks: No escapes needed
12373 [http://google.com [google]
12375 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12378 #### --------------- Quotes ---------------
12379 #### 1. Quotes inside <b> and <i>
12380 #### 2. Link fragments separated by <i> and <b> tags
12381 #### 3. Link fragments inside <i> and <b>
12382 #### --------------------------------------
12384 1. Quotes inside <b> and <i>
12386 ''<nowiki>'foo'</nowiki>''
12387 ''<nowiki>''foo''</nowiki>''
12388 ''<nowiki>'''foo'''</nowiki>''
12389 '''<nowiki>'foo'</nowiki>'''
12390 '''<nowiki>''foo''</nowiki>'''
12391 '''<nowiki>'''foo'''</nowiki>'''
12392 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12400 <b>foo'<i>bar'</i>baz</b>
12405 2. Link fragments separated by <i> and <b> tags
12407 [[''foo''<nowiki>hello]]</nowiki>
12409 [['''foo'''<nowiki>hello]]</nowiki>
12411 <p>[[<i>foo</i>hello]]
12412 </p><p>[[<b>foo</b>hello]]
12417 2. Link fragments inside <i> and <b>
12418 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12419 this is one of the shortcomings of this format)
12421 ''[[foo''<nowiki>]]</nowiki>
12423 '''[[foo'''<nowiki>]]</nowiki>
12426 </p><p><b>[[foo</b>]]
12430 #### --------------- Paragraphs ---------------
12431 #### 1. No unnecessary escapes
12432 #### --------------------------------------
12435 1. No unnecessary escapes
12437 bar <span><nowiki>[[foo]]</nowiki></span>
12439 =bar <span><nowiki>[[foo]]</nowiki></span>
12441 [[bar <span><nowiki>[[foo]]</nowiki></span>
12443 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12445 <nowiki>=bar </nowiki><span>foo]]</span>=
12447 <p>bar <span>[[foo]]</span>
12448 </p><p>=bar <span>[[foo]]</span>
12449 </p><p>[[bar <span>[[foo]]</span>
12450 </p><p>]]bar <span>[[foo]]</span>
12451 </p><p>=bar <span>foo]]</span>=
12455 #### --------------- PRE ------------------
12456 #### 1. Leading space in SOL context should be escaped
12457 #### --------------------------------------
12459 1. Leading space in SOL context should be escaped
12463 <nowiki> foo</nowiki>
12464 <!--cmt--><nowiki> foo</nowiki>
12471 #### --------------- HTML tags ---------------
12474 #### 3. multi-line html tag
12475 #### --------------------------------------
12481 <a href="http://google.com">google</a>
12483 <a href="http://google.com">google</a>
12489 <nowiki><div>foo</div>
12490 <div style="color:red">foo</div></nowiki>
12492 <p><div>foo</div>
12493 <div style="color:red">foo</div>
12498 3. multi-line html tag
12510 #### --------------- Others ---------------
12514 <nowiki>foo</nowiki>
12516 <p><nowiki>foo</nowiki>
12525 Try for 100% code coverage