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)
918 Templates: Pre: 1a. Templates that break a line should suppress <pre>
926 Templates: Pre: 1b. Templates that break a line should suppress <pre>
936 Templates: Pre: 1c: Wrapping should be based on expanded content
948 Templates: Pre: 1d: Wrapping should be based on expanded content
969 Templates: Pre: 1e. Wrapping should be based on expanded content
973 {{echo| foo}}{{echo| bar}}
978 {{echo|<!--cmt--> foo}}
980 <!--cmt-->{{echo| foo}}
982 {{echo|{{echo| }}bar}}
1000 Templates: Pre: 1f: Wrapping should be based on expanded content
1037 ### Parsoid-centric tests for testing RT edge cases for pre
1041 1a. Pre and Comments
1054 1b. Pre and Comments
1067 1c. Pre and Comments
1117 3a. Pre and block tags (single-line html)
1125 <pre><span> foo </span>
1130 3b. Pre and block tags (pre-content on separate line)
1182 4. Multiple spaces at start-of-line
1201 ### Definition lists
1208 <dl><dt> name </dt><dd> Definition
1214 Definition list for indentation only
1218 <dl><dd> Indented text
1224 Definition list with no space
1228 <dl><dt>name</dt><dd>Definition
1234 Definition list with URL link
1236 ; http://example.com/ : definition
1238 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1244 Definition list with bracketed URL link
1246 ;[http://www.example.com/ Example]:Something about it
1248 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1254 Definition list with wikilink containing colon
1256 ; [[Help:FAQ]]: The least-read page on Wikipedia
1258 <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
1263 # At Brion's and JeLuF's insistence... :)
1265 Definition list with news link containing colon
1267 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1269 <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!
1275 Malformed definition list with colon
1277 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1279 <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
1285 Definition lists: colon in external link text
1287 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1289 <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
1295 Definition lists: colon in HTML attribute
1297 ;<b style="display: inline">bold</b>
1299 <dl><dt><b style="display: inline">bold</b>
1305 Definition lists: self-closed tag
1307 ;one<br/>two : two-line fun
1309 <dl><dt>one<br />two </dt><dd> two-line fun
1315 Bug 11748: Literal closing tags
1319 <dd>test test test test test</dd>
1321 <dd>test test test test test</dd>
1326 <dd>test test test test test</dd>
1328 <dd>test test test test test</dd>
1334 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1337 ; term : description
1343 <dl><dt> term </dt><dd> description
1354 Definition list with empty definition and following paragraph
1359 <dl><dt> term</dt><dd>
1366 Nested definition lists using html syntax
1383 Definition Lists: No nesting: Multiple dd's
1397 Definition Lists: Indentation: Regular
1413 Definition Lists: Indentation: Missing 1st level
1427 Definition Lists: Indentation: Multi-level indent
1431 <dl><dd><dl><dd><dl><dd>i3
1439 Definition Lists: Hacky use to indent tables
1446 should be left alone
1448 <dl><dd><dl><dd><table>
1453 </td></tr></table></dd></dl></dd></dl>
1455 should be left alone
1458 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1459 ## as an empty dt item. It also ignores all but the last ";" when followed
1460 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1461 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1464 ## Ex: ";;t2 ::d2" is transformed into:
1476 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1477 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1488 ## All Parsoid only definition list tests have this difference.
1490 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1491 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1494 Definition Lists: Nesting: Multi-level (Parsoid only)
1524 Definition Lists: Nesting: Test 2 (Parsoid only)
1544 Definition Lists: Nesting: Test 3 (Parsoid only)
1572 Definition Lists: Nesting: Test 4
1577 <dl><dd><dl><dd><dl><dt>t3
1587 Definition Lists: Mixed Lists: Test 1
1593 <dl><dd><dl><dt><ul><li> foo
1605 Definition Lists: Mixed Lists: Test 2
1619 Definition Lists: Mixed Lists: Test 3
1624 <ul><li><dl><dd><dl><dd><dl><dd> d1
1635 Definition Lists: Mixed Lists: Test 4
1640 <ul><li><dl><dt>d1 </dt><dd>d2
1641 </dd><dt>d3 </dt><dd>d4
1649 Definition Lists: Mixed Lists: Test 5
1664 Definition Lists: Mixed Lists: Test 6
1669 <ol><li><ul><li><dl><dd>d1
1681 Definition Lists: Mixed Lists: Test 7
1695 Definition Lists: Mixed Lists: Test 8
1711 Definition Lists: Mixed Lists: Test 9
1715 <ul><li><dl><dt>foo </dt><dd>bar
1723 Definition Lists: Mixed Lists: Test 10
1727 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1736 Definition Lists: Mixed Lists: Test 11
1741 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1746 <dl><dt>boo </dt><dd>baz
1757 Definition Lists: Weird Ones: Test 1
1759 *#;*::;; foo : bar (who uses this?)
1761 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1777 External links: non-bracketed
1779 Non-bracketed: http://example.com
1781 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1786 External links: numbered
1788 Numbered: [http://example.com]
1789 Numbered: [http://example.net]
1790 Numbered: [http://example.com]
1792 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1793 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1794 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1799 External links: specified text
1801 Specified text: [http://example.com link]
1803 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1808 External links: trail
1810 Linktrails should not work for external links: [http://example.com link]s
1812 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1817 External links: dollar sign in URL
1819 http://example.com/1$2345
1821 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1826 External links: dollar sign in URL (named)
1828 [http://example.com/1$2345]
1830 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1835 External links: open square bracket forbidden in URL (bug 4377)
1837 http://example.com/1[2345
1839 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1844 External links: open square bracket forbidden in URL (named) (bug 4377)
1846 [http://example.com/1[2345]
1848 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1853 External links: nowiki in URL link text (bug 6230)
1855 [http://example.com/ <nowiki>''example site''</nowiki>]
1857 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1862 External links: newline forbidden in text (bug 6230 regression check)
1864 [http://example.com/ first
1867 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1873 External links: Pipe char between url and text
1875 [http://example.com | link]
1877 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1882 External links: protocol-relative URL in brackets
1884 [//example.com/ Test]
1886 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1891 External links: protocol-relative URL in brackets without text
1895 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1900 External links: protocol-relative URL in free text is left alone
1904 <p>//example.com/Foo
1909 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1911 foo//example.com/Foo
1913 <p>foo//example.com/Foo
1920 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1922 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1927 External image from https
1929 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1931 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1936 Link to non-http image, no img tag
1938 Link to non-http image, no img tag: ftp://example.com/test.jpg
1940 <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>
1945 External links: terminating separator
1947 Terminating separator: http://example.com/thing,
1949 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1954 External links: intervening separator
1956 Intervening separator: http://example.com/1,2,3
1958 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1963 External links: old bug with URL in query
1965 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1967 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1972 External links: old URL-in-URL bug, mixed protocols
1974 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1976 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1981 External links: URL in text
1983 URL in text: [http://example.com http://example.com]
1985 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1990 External links: Clickable images
1992 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1994 <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>
1999 External links: raw ampersand
2001 Old & use: http://x&y
2003 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2008 External links: encoded ampersand
2010 Old & use: http://x&y
2012 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2017 External links: encoded equals (bug 6102)
2019 http://example.com/?foo=bar
2021 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2026 External links: [raw ampersand]
2028 Old & use: [http://x&y]
2030 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2035 External links: [encoded ampersand]
2037 Old & use: [http://x&y]
2039 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2044 External links: [encoded equals] (bug 6102)
2046 [http://example.com/?foo=bar]
2048 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2053 External links: [IDN ignored character reference in hostname; strip it right off]
2055 [http://e‌xample.com/]
2057 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2061 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2062 # Where an external link could easily circumvent the sanitization of the text of
2063 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2064 # test demands a higher standard. That's a bit strange.
2068 # http://example.com -> [http://example.com|http://example.com]
2069 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2071 # The first example is sanitized, but the second is not. Any security benefits
2072 # from this production are trivial to circumvent. Either remove this test and
2073 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2074 # the test accordingly.
2079 External links: IDN ignored character reference in hostname; strip it right off
2081 http://e‌xample.com/
2083 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2088 External links: www.jpeg.org (bug 554)
2092 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2097 External links: URL within URL (original bug 2)
2099 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2101 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2106 BUG 361: URL inside bracketed URL
2108 [http://www.example.com/foo http://www.example.com/bar]
2110 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2115 BUG 361: URL within URL, not bracketed
2117 http://www.example.com/foo?=http://www.example.com/bar
2119 <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>
2124 BUG 289: ">"-token in URL-tail
2126 http://www.example.com/<hello>
2128 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2133 BUG 289: literal ">"-token in URL-tail
2135 http://www.example.com/<b>html</b>
2137 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2142 BUG 289: ">"-token in bracketed URL
2144 [http://www.example.com/<hello> stuff]
2146 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2151 BUG 289: literal ">"-token in bracketed URL
2153 [http://www.example.com/<b>html</b> stuff]
2155 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2160 BUG 289: literal double quote at end of URL
2162 http://www.example.com/"hello"
2164 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2169 BUG 289: literal double quote in bracketed URL
2171 [http://www.example.com/"hello" stuff]
2173 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2178 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2180 [http://www.example.com test]
2182 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2187 External links: wiki links within external link (Bug 3695)
2189 [http://example.com [[wikilink]] embedded in ext link]
2191 <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>
2196 BUG 787: Links with one slash after the url protocol are invalid
2200 [http:/example.com title]
2202 <p>http:/example.com
2203 </p><p>[http:/example.com title]
2208 Bracketed external links with template-generated invalid target
2210 [{{echo|http:/example.com}} title]
2212 <p>[http:/example.com title]
2217 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2219 ''[http://example.com text'']
2220 [http://example.com '''text]'''
2221 ''Something [http://example.com in italic'']
2222 ''Something [http://example.com mixed''''', even bold]'''
2223 '''''Now [http://example.com both''''']
2225 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2226 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2227 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2228 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2229 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2235 Bug 4781: %26 in URL
2237 http://www.example.com/?title=AT%26T
2239 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2243 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2244 # % is actually legal in HTML5. Any change in output would need testing though.
2246 Bug 4781, 5267: %25 in URL
2248 http://www.example.com/?title=100%25_Bran
2250 <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>
2255 Bug 4781, 5267: %28, %29 in URL
2257 http://www.example.com/?title=Ben-Hur_%281959_film%29
2259 <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>
2265 Bug 4781: %26 in autonumber URL
2267 [http://www.example.com/?title=AT%26T]
2269 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2274 Bug 4781, 5267: %26 in autonumber URL
2276 [http://www.example.com/?title=100%25_Bran]
2278 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2283 Bug 4781, 5267: %28, %29 in autonumber URL
2285 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2287 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2293 Bug 4781: %26 in bracketed URL
2295 [http://www.example.com/?title=AT%26T link]
2297 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2302 Bug 4781, 5267: %26 in bracketed URL
2304 [http://www.example.com/?title=100%25_Bran link]
2306 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2311 Bug 4781, 5267: %28, %29 in bracketed URL
2313 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2315 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2320 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2322 Some [http://example.com/ pretty ''italics'' and stuff]!
2324 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2329 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2331 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2333 <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>
2338 External link containing double-single-quotes with no space separating the url from text in italics
2340 [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]].]
2342 <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>
2347 URL-encoding in URL functions (single parameter)
2349 {{localurl:Some page|amp=&}}
2351 <p>/index.php?title=Some_page&amp=&
2356 URL-encoding in URL functions (multiple parameters)
2358 {{localurl:Some page|q=?&=&}}
2360 <p>/index.php?title=Some_page&q=?&amp=&
2367 http://example.com/index.php?foozoid%5B%5D=bar
2369 http://example.com/index.php?foozoid[]=bar
2371 <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>
2372 </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>
2377 IPv6 urls (bug 21261)
2381 http://[2404:130:0:1000::187:2]/index.php
2383 <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>
2394 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2396 Normal text. '''''Bold italic text.''''' Normal text.
2398 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2399 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2405 Unclosed and unmatched quotes
2407 '''''Bold italic text '''with bold deactivated''' in between.'''''
2409 '''''Bold italic text ''with italic deactivated'' in between.'''''
2413 ..spanning two paragraphs (should not work).'''
2415 '''Bold tag left open
2417 ''Italic tag left open
2421 <!-- Unmatching number of opening, closing tags: -->
2422 '''This year''''s election ''should'' beat '''last year''''s.
2424 ''Tom'''s car is bigger than ''Susan'''s.
2426 Plain ''italic'''s plain
2428 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2429 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2430 </p><p><b>Bold text..</b>
2431 </p><p>..spanning two paragraphs (should not work).
2432 </p><p><b>Bold tag left open</b>
2433 </p><p><i>Italic tag left open</i>
2435 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2436 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2437 </p><p>Plain <i>italic'</i>s plain
2444 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2447 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2448 # is the bare minimun required by the spec, see:
2449 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2451 A table with no data.
2457 # A table with nothing but a caption is invalid XHTML, we might want to render
2458 # this as <p>caption</p>
2460 A table with nothing but a caption
2468 </caption><tr><td></td></tr></table>
2494 Simple table but with multiple dashes for row wikitext
2512 Multiplication table
2514 {| border="1" cellpadding="2"
2515 |+Multiplication table
2517 ! × !! 1 !! 2 !! 3
2535 <table border="1" cellpadding="2">
2536 <caption>Multiplication table
2583 Allow +/- in 2nd and later cells in a row
2610 |rowspan=2| Cell 2, row 1 (and 2)
2621 <td rowspan="2"> Cell 2, row 1 (and 2)
2639 {| bgcolor=#ABCDEF border=2
2644 |the original table again
2652 <table bgcolor="#ABCDEF" border="2">
2660 <td>the original table again
2666 Invalid attributes in table cell (bug 1830)
2681 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2684 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2688 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2689 <td>]" onmouseover="alert(document.cookie)">test
2698 Indented table markup mixed with indented pre content (proposed in bug 6200)
2703 Text that should be rendered preformatted
2711 <pre>Text that should be rendered preformatted
2724 Plain link, capitalized
2728 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2733 Plain link, uncapitalized
2737 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2744 [[Main Page|The Main Page]]
2746 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2755 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2760 Broken link with fragment
2762 [[Zigzagzogzagzig#zug]]
2764 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2769 Special page link with fragment
2771 [[Special:Version#anchor]]
2773 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2778 Nonexistent special page link with fragment
2780 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2782 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2789 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2791 <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>
2798 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2800 <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>!!!
2805 Link with 3 brackets
2814 Piped link with 3 brackets
2816 [[[main page|the main page]]]
2818 <p>[[[main page|the main page]]]
2823 Link with multiple pipes
2825 [[Main Page|The|Main|Page]]
2827 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2834 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2836 <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>
2841 Piped link to namespace
2843 [[Meta:Disclaimers|The disclaimers]]
2845 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2852 [[Usually caused by a typo (oops}]]
2854 <p>[[Usually caused by a typo (oops}]]
2859 Link containing % (not as a hex sequence)
2863 <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>
2868 Link containing % as a single hex sequence interpreted to char
2872 <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>
2877 Link containing % as a double hex sequence interpreted to hex sequence
2881 <p>[[7%2525 Solution]]
2886 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2887 Example for such a section: == < ==
2889 [[%23%3c]][[%23%3e]]
2891 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2896 Link containing "<#" and ">#" as a hex sequences
2898 [[%3c%23]][[%3e%23]]
2900 <p>[[%3c%23]][[%3e%23]]
2905 Link containing double-single-quotes '' (bug 4598)
2907 [[Lista d''e paise d''o munno]]
2909 <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>
2914 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2916 Some [[Link|pretty ''italics'' and stuff]]!
2918 <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>!
2923 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2925 ''Some [[Link|pretty ''italics'' and stuff]]!
2927 <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>
2932 Link with double quotes in title part (literal) and alternate part (interpreted)
2934 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2938 [[''Pentecoste''|Pentecoste]]
2940 [[''Pentecoste''|''Pentecoste'']]
2942 <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>
2943 </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>
2944 </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>
2945 </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>
2950 Broken image links with HTML captions (bug 39700)
2952 [[File:Nonexistent|<script></script>]]
2953 [[File:Nonexistent|100px|<script></script>]]
2954 [[File:Nonexistent|<]]
2955 [[File:Nonexistent|a<i>b</i>c]]
2957 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2958 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2959 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2960 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2967 [[http://www.example.com]]
2969 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2974 Plain link to URL with link text
2976 [[http://www.example.com Link text]]
2978 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2983 Plain link to protocol-relative URL
2985 [[//www.example.com]]
2987 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2992 Plain link to protocol-relative URL with link text
2994 [[//www.example.com Link text]]
2996 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3001 # I'm fairly sure the expected result here is wrong.
3002 # We want these to be URL links, not pseudo-pages with URLs for titles....
3003 # However the current output is also pretty screwy.
3006 # I'm changing it to match the current output--it arguably makes more
3007 # sense in the light of the test above. Old expected result was:
3008 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3010 # But I think this test is bordering on "garbage in, garbage out" anyway.
3015 Piped link to URL: [[http://www.example.com|an example URL]]
3017 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3022 BUG 2: [[page|http://url/]] should link to page, not http://url/
3024 [[Main Page|http://url/]]
3026 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3031 BUG 337: Escaped self-links should be bold
3035 [[Bug462]] [[Bug462]]
3037 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3042 Self-link to section should not be bold
3046 [[Main Page#section]]
3048 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3059 Self-link to numeric title
3065 <p><strong class="selflink">0</strong>
3070 Link to numeric-equivalent title
3076 <p><a href="/wiki/00" title="00">00</a>
3081 <nowiki> inside a link
3083 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3085 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3090 Non-breaking spaces in title
3092 [[ Main Page ]]
3094 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3099 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3105 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3110 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3116 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3121 Internal link with en linktrail: no apostrophes (bug 27473)
3127 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3132 Internal link with ca linktrail with apostrophes (bug 27473)
3138 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3143 Internal link with kaa linktrail with apostrophes (bug 27473)
3149 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3154 ### Interwiki links (see maintenance/interwiki.sql)
3158 Inline interwiki link
3160 [[MeatBall:SoftSecurity]]
3162 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3167 Inline interwiki link with empty title (bug 2372)
3171 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3176 Interwiki link encoding conversion (bug 1636)
3178 *[[Wikipedia:ro:Olteniţa]]
3179 *[[Wikipedia:ro:Olteniţa]]
3181 <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>
3182 </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>
3188 Interwiki link with fragment (bug 2130)
3190 [[MeatBall:SoftSecurity#foo]]
3192 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3207 Double interlanguage link
3218 Interlanguage link, with prefix links
3230 Double interlanguage link, with prefix links (bug 8897)
3243 Parsoid-specific test: Wikilinks with should RT properly
3249 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3267 Incorrecly removing closing slashes from correctly formed XHTML
3269 <br style="clear:both;" />
3271 <p><br style="clear:both;" />
3276 Failing to transform badly formed HTML into correct XHTML
3278 <br style="clear: left;">
3279 <br style="clear: right;">
3280 <br style="clear: both;">
3282 <p><br style="clear: left;" />
3283 <br style="clear: right;" />
3284 <br style="clear: both;" />
3289 Handling html with a div self-closing tag
3298 <p><div title />
3302 <p><div title=bar />
3303 <div title=bar/>
3305 <div title="bar/"></div>
3311 Handling html with a br self-closing tag
3320 <p><br title="title" />
3321 <br title="title" />
3330 Horizontal ruler (should it add that extra space?)
3344 Horizontal ruler -- 4+ dashes render hr
3353 Horizontal ruler -- eats additional dashes on the same line
3362 Horizontal ruler -- does not collaps dashes on consecutive lines
3373 Horizontal ruler -- <4 dashes render as plain text
3382 ### Block-level elements
3405 <ol><li>Numbered list
3422 ***#Number on level 4
3424 **#Number on level 3
3425 **#Number on level 3
3429 #** Level 3, but ordered
3432 <ol><li> with numbers
3434 <ul><li> and bullets
3436 <ol><li> and numbers
3438 </li><li>bullets again
3439 <ul><li>bullet level 2
3440 <ul><li>bullet level 3
3441 <ol><li>Number on level 4
3444 </li><li>bullet level 2
3445 <ol><li>Number on level 3
3446 </li><li>Number on level 3
3449 <ol><li>number level 2
3452 <ul><li><ul><li> Level 3
3456 <ol><li><ul><li><ul><li> Level 3, but ordered
3490 Nested lists 3 (first element empty)
3503 Nested lists 4 (first element empty)
3516 Nested lists 5 (both elements empty)
3529 Nested lists 6 (both elements empty)
3542 Nested lists 7 (skip initial nesting levels)
3546 <ul><li><ul><li><ul><li> foo
3554 Nested lists 8 (multiple nesting transitions)
3562 <ul><li><ul><li> bar
3572 1. Lists with start-of-line-transparent tokens before bullets: Comments
3586 2. Lists with start-of-line-transparent tokens before bullets: Template close
3598 List items are not parsed correctly following a <pre> block (bug 785)
3604 <ul><li> <pre>foo</pre>
3605 </li><li> <pre>bar</pre>
3612 List items from template
3623 * notSOL{{inner list}}
3642 List interrupted by empty line or heading
3652 <ul><li><ul><li> bar
3655 <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>
3656 <ul><li> Another list item
3667 Magic Word: {{CURRENTDAY}}
3676 Magic Word: {{CURRENTDAY2}}
3685 Magic Word: {{CURRENTDAYNAME}}
3694 Magic Word: {{CURRENTDOW}}
3703 Magic Word: {{CURRENTMONTH}}
3712 Magic Word: {{CURRENTMONTHABBREV}}
3714 {{CURRENTMONTHABBREV}}
3721 Magic Word: {{CURRENTMONTHNAME}}
3723 {{CURRENTMONTHNAME}}
3730 Magic Word: {{CURRENTMONTHNAMEGEN}}
3732 {{CURRENTMONTHNAMEGEN}}
3739 Magic Word: {{CURRENTTIME}}
3748 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3757 Magic Word: {{CURRENTYEAR}}
3766 Magic Word: {{FULLPAGENAME}}
3768 title=[[User:Ævar Arnfjörð Bjarmason]]
3772 <p>User:Ævar Arnfjörð Bjarmason
3777 Magic Word: {{FULLPAGENAMEE}}
3779 title=[[User:Ævar Arnfjörð Bjarmason]]
3783 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3788 Magic Word: {{NAMESPACE}}
3790 title=[[User:Ævar Arnfjörð Bjarmason]]
3799 Magic Word: {{NAMESPACEE}}
3801 title=[[User:Ævar Arnfjörð Bjarmason]]
3810 Magic Word: {{NAMESPACENUMBER}}
3812 title=[[User:Ævar Arnfjörð Bjarmason]]
3821 Magic Word: {{NUMBEROFFILES}}
3830 Magic Word: {{PAGENAME}}
3832 title=[[User:Ævar Arnfjörð Bjarmason]]
3836 <p>Ævar Arnfjörð Bjarmason
3841 Magic Word: {{PAGENAME}} with metacharacters
3843 title=[['foo & bar = baz']]
3847 <p><i>'foo & bar = baz'</i>
3852 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3854 title=[[*RFC 1234 http://example.com/]]
3858 <p>*RFC 1234 http://example.com/
3863 Magic Word: {{PAGENAMEE}}
3865 title=[[User:Ævar Arnfjörð Bjarmason]]
3869 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3874 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3876 title=[[*RFC 1234 http://example.com/]]
3880 <p>*RFC_1234_http://example.com/
3885 Magic Word: {{REVISIONID}}
3894 Magic Word: {{SCRIPTPATH}}
3903 Magic Word: {{SERVER}}
3907 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3912 Magic Word: {{SERVERNAME}}
3921 Magic Word: {{SITENAME}}
3930 Namespace 1 {{ns:1}}
3939 Namespace 1 {{ns:01}}
3948 Namespace 0 {{ns:0}} (bug 4783)
3956 Namespace 0 {{ns:00}} (bug 4783)
3964 Namespace -1 {{ns:-1}}
3973 Namespace User {{ns:User}}
3982 Namespace User talk {{ns:User_talk}}
3991 Namespace User talk {{ns:uSeR tAlK}}
4000 Namespace File {{ns:File}}
4009 Namespace File {{ns:Image}}
4018 Namespace (lang=de) Benutzer {{ns:User}}
4029 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4035 <p>Benutzer Diskussion
4043 {{urlencode:hi world?!}}
4044 {{urlencode:hi world?!|WIKI}}
4045 {{urlencode:hi world?!|PATH}}
4046 {{urlencode:hi world?!|QUERY}}
4059 Magic links: internal link to RFC (bug 479)
4063 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4068 Magic links: RFC (bug 479)
4072 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4077 Magic links: ISBN (bug 1937)
4081 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4086 Magic links: PMID incorrectly converts space to underscore
4090 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4099 Nonexistent template
4101 {{thistemplatedoesnotexist}}
4103 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4110 This is a test template
4118 <p>This is a test template
4123 Template with explicit namespace
4127 <p>This is a test template
4135 This is a test template with parameter {{{param}}}
4141 {{paramtest|param=foo}}
4143 <p>This is a test template with parameter foo
4148 Template:paramtestnum
4154 Template unnamed parameter
4156 {{paramtestnum|Main Page|the main page}}
4158 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4163 Template:templatesimple
4169 Template:templateredirect
4171 #redirect [[Template:templatesimple]]
4175 Template:templateasargtestnum
4181 Template:templateasargtest
4183 {{template{{{templ}}}}}
4187 Template:templateasargtest2
4193 Template with template name as unnamed argument
4195 {{templateasargtestnum|templatesimple}}
4202 Template with template name as argument
4204 {{templateasargtest|templ=simple}}
4211 Template with template name as argument (2)
4213 {{templateasargtest2|templ=templatesimple}}
4220 Template:templateasargtestdefault
4222 {{{{{templ|templatesimple}}}}}
4232 Template with default value
4234 {{templateasargtestdefault}}
4241 Template with default value (value set)
4243 {{templateasargtestdefault|templ=templa}}
4252 {{templateredirect}}
4259 Template with argument in separate line
4261 {{ templateasargtest |
4269 Template with complex template as argument
4272 param ={{ templateasargtest |
4275 <p>This is a test template with parameter (test)
4280 Template with thumb image (with link in description)
4283 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4285 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>
4290 Template:complextemplate
4292 {{{1}}} {{paramtest|
4293 param ={{{param}}}}}
4297 Template with complex arguments
4300 param ={{ templateasargtest |
4301 templ = simple }}|[[Template:complextemplate|link]]}}
4303 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4308 BUG 553: link with two variables in a piped link
4311 |[[{{{1}}}|{{{2}}}]]
4316 <td>[[{{{1}}}|{{{2}}}]]
4322 Magic variable as template parameter
4324 {{paramtest|param={{SITENAME}}}}
4326 <p>This is a test template with parameter MediaWiki
4333 [[{{{param}}}|link]]
4337 Template parameter as link source
4339 {{linktest|param=Main Page}}
4341 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4346 Template-generated attribute string (k='v')
4348 <span {{attr_str|id|v1}}>bar</span>
4350 <p><span id="v1">bar</span>
4357 including another template, {{paramtest|param={{{arg}}}}}
4361 Template passing argument to another template
4363 {{paramtest2|arg='hmm'}}
4365 <p>including another template, This is a test template with parameter 'hmm'
4376 Template as link source
4380 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4398 Template infinite loop
4402 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4407 Template from main namespace
4426 BUG 529: Template with table, not included at beginning of line
4445 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4465 BUG 41: Template parameters shown as broken links
4477 ''None'' of '''this''' should be
4479 but rather passed unmodified
4483 # hmm, fix this or just deprecate msgnw and document its behavior?
4489 {{msgnw:MSGNW test}}
4491 <p>''None'' of '''this''' should be
4493 but rather passed unmodified
4501 {{int:youhavenewmessages|lots of money|not!}}
4503 <p>You have lots of money (not!).
4510 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4514 <includeonly> and <noinclude> being included
4525 <onlyinclude>Foo</onlyinclude>bar
4529 <onlyinclude> being included
4541 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4545 <onlyinclude> and <includeonly> being included
4554 <includeonly> and <noinclude> on a page
4556 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4563 <onlyinclude> on a page
4565 <onlyinclude>Foo</onlyinclude>bar
4572 Template:Includeonly section
4575 ==Includeonly section==
4581 Bug 6563: Edit link generation for section shown by <includeonly>
4583 {{includeonly section}}
4585 <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>
4586 <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>
4590 # Uses same input as the contents of [[Template:Includeonly section]]
4592 Bug 6563: Section extraction for section shown by <includeonly>
4597 ==Includeonly section==
4605 Bug 6563: Edit link generation for section suppressed by <includeonly>
4608 ==Includeonly section==
4612 <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>
4617 Bug 6563: Section extraction for section suppressed by <includeonly>
4622 ==Includeonly section==
4630 ### <includeonly> and <noinclude> in attributes
4633 0. includeonly around the entire attribute
4635 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4637 <p><span id="v2">bar</span>
4642 1. includeonly in html attr key
4644 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4646 <p><span id="foo">bar</span>
4651 2. includeonly in html attr value
4653 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4654 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4656 <p><span id="v1">bar</span>
4657 <span id="v1">bar</span>
4662 3. includeonly in part of an attr value
4664 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4666 <p><span style="color:red;">bar</span>
4671 ### Testing parsing of templates where a template arg
4672 ### has the same name as the template itself.
4682 Templates: Template Name/Arg clash: 1. Use of positional param
4691 Templates: Template Name/Arg clash: 2. Use of named param
4700 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4709 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4713 Templates: 1. Simple use
4722 Templates: 2. Inside a block tag
4724 <div>{{echo|Foo}}</div>
4731 Templates: P-wrapping: 1a. Templates on consecutive lines
4742 Templates: P-wrapping: 1b. Templates on consecutive lines
4756 Templates: P-wrapping: 1c. Templates on consecutive lines
4759 {{echo|bar}} <div>baz</div>
4768 Templates: Inline Text: 1. Multiple tmeplate uses
4770 {{echo|Foo}}bar{{echo|baz}}
4777 Templates: Inline Text: 2. Back-to-back template uses
4779 {{echo|Foo}}{{echo|bar}}
4786 Templates: Block Tags: 1. Multiple template uses
4788 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4790 <div>Foo</div><div>bar</div><div>baz</div>
4795 Templates: Block Tags: 2. Back-to-back template uses
4797 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4799 <div>Foo</div><div>bar</div>
4804 Templates: Links: 1. Simple example
4806 {{echo|[[Foo|bar]]}}
4808 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4813 Templates: Links: 2. Generation of link href
4815 [[{{echo|Foo}}|bar]]
4817 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4822 Templates: Links: 3. Generation of part of a link href
4824 [[Fo{{echo|o}}|bar]]
4826 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4831 Templates: Links: 4. Multiple templates generating link href
4833 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4835 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4840 Templates: Links: 5. Generation of link text
4842 [[Foo|{{echo|bar}}]]
4844 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4849 Templates: Links: 5. Nested templates (only outermost template should be marked)
4851 {{echo|[[{{echo|Foo}}|bar]]}}
4853 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4858 Templates: HTML Tag: 1. Generation of HTML attr. key
4860 <div {{echo|style}}="color:red;">foo</div>
4862 <div style="color:red;">foo</div>
4867 Templates: HTML Tag: 2. Generation of HTML attr. value
4869 <div style={{echo|'color:red;'}}>foo</div>
4871 <div style="color:red;">foo</div>
4876 Templates: HTML Tag: 3. Generation of HTML attr key and value
4878 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4880 <div style="color:red;">foo</div>
4885 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4887 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4889 <div title="This is a long title with just one piece templated">foo</div>
4894 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4896 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4898 <div title="This is a long title with just one piece templated">foo</div>
4903 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4905 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4907 <div title="This is a long title with just one piece templated">foo</div>
4912 Templates: HTML Tables: 1. Generating start of a HTML table
4914 {{echo|<table><tr><td>foo</td>}}</tr></table>
4916 <table><tr><td>foo</td></tr></table>
4921 Templates: HTML Tables: 2a. Generating middle of a HTML table
4923 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4925 <table><tr><td>foo</td></tr></table>
4930 Templates: HTML Tables: 2b. Generating middle of a HTML table
4932 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4934 <table><tr><td>foo</td></tr></table>
4939 Templates: HTML Tables: 3. Generating end of a HTML table
4941 <table><tr>{{echo|<td>foo</td></tr></table>}}
4943 <table><tr><td>foo</td></tr></table>
4948 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
4950 {{echo|<table>}}<tr><td>foo</td></tr></table>
4952 <table><tr><td>foo</td></tr></table>
4957 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
4959 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4961 <table><tr><td>foo</td></tr></table>
4966 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
4968 <table><tr>{{echo|<td>}}foo</td></tr></table>
4970 <table><tr><td>foo</td></tr></table>
4975 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
4977 <table><tr><td>foo{{echo|</td>}}</tr></table>
4979 <table><tr><td>foo</td></tr></table>
4984 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
4986 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4988 <table><tr><td>foo</td></tr></table>
4993 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
4995 <table><tr><td>foo</td></tr>{{echo|</table>}}
4997 <table><tr><td>foo</td></tr></table>
5002 Templates: Wiki Tables: 1. Fostering of entire template content
5010 <tr><td></td></tr></table>
5015 Templates: Wiki Tables: 2. Fostering of partial template content
5025 <tr><td></td></tr></table>
5030 Templates: Wiki Tables: 3. td-content via multiple templates
5033 {{echo|{{pipe}}a}}{{echo|b}}
5044 Templates: Lists: Multi-line list-items via templates
5046 *{{echo|a {{nonexistent|
5048 *{{echo|b {{nonexistent|
5051 <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>
5052 </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>
5058 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5060 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5062 <p><i>ab</i>c<i>d</i>e
5067 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5068 (PHP parser generates misnested html)
5072 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5074 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5078 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5079 (PHP parser generates misnested html)
5083 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5086 <div><i>b</i>c<i>d</i></div>
5091 Templates: Ugly nesting: 4. Divs opened/closed across templates
5093 a<div>b{{echo|c</div>d}}e
5100 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5106 |{{echo|foo</table>}}
5110 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5111 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5112 bar</span><span about="#mwt1">
5117 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5127 <td>1. {{echo|foo </table>}}</td>
5129 <td>2. {{echo|baz </table>}}</td>
5142 <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">
5143 <tbody><tr data-parsoid="{"stx":"html"}">
5144 <td data-parsoid="{"stx":"html"}">
5145 <table data-parsoid="{"stx":"html"}">
5146 <tbody><tr data-parsoid="{"stx":"html"}">
5147 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5148 <td data-parsoid="{"stx":"html"}"> bar </td>
5149 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5150 </span><span about="#mwt1">
5152 abc</span><span about="#mwt1">
5153 </span><span about="#mwt1">
5154 </span><span about="#mwt1">
5155 </span><span about="#mwt1">
5156 </span><span about="#mwt1">
5158 xyz</span><span about="#mwt1">
5159 </span><span about="#mwt1">
5164 Parser Functions: 1. Simple example
5173 Parser Functions: 2. Nested use (only outermost should be marked up)
5182 ### Pre-save transform tests
5185 pre-save transform: subst:
5191 This is a test template
5195 pre-save transform: normal template
5205 pre-save transform: nonexistent template
5209 {{thistemplatedoesnotexist}}
5211 {{thistemplatedoesnotexist}}
5216 pre-save transform: subst magic variables
5225 # This is bug 89, which I fixed. -- wtm
5227 pre-save transform: subst: templates with parameters
5231 {{subst:paramtest|param="something else"}}
5233 This is a test template with parameter "something else"
5239 <nowiki>'''not wiki'''</nowiki>
5243 pre-save transform: nowiki in subst (bug 1188)
5247 {{subst:nowikitest}}
5249 <nowiki>'''not wiki'''</nowiki>
5254 Template:commenttest
5256 This template has <!-- a comment --> in it.
5260 pre-save transform: comment in subst (bug 1936)
5264 {{subst:commenttest}}
5266 This template has <!-- a comment --> in it.
5270 pre-save transform: unclosed tag
5274 <nowiki>'''not wiki'''
5276 <nowiki>'''not wiki'''
5280 pre-save transform: mixed tag case
5284 <NOwiki>'''not wiki'''</noWIKI>
5286 <NOwiki>'''not wiki'''</noWIKI>
5290 pre-save transform: unclosed comment in <nowiki>
5294 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5296 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5302 <span onmouseover="alert('crap')">Oh no</span>
5306 (confirming safety of fix for subst bug 1936)
5308 {{Template:dangerous}}
5310 <p><span>Oh no</span>
5315 pre-save transform: comment containing gallery (bug 5024)
5319 <!-- <gallery>data</gallery> -->
5321 <!-- <gallery>data</gallery> -->
5325 pre-save transform: comment containing extension
5329 <!-- <tag>data</tag> -->
5331 <!-- <tag>data</tag> -->
5335 pre-save transform: comment containing nowiki
5339 <!-- <nowiki>data</nowiki> -->
5341 <!-- <nowiki>data</nowiki> -->
5345 pre-save transform: <noinclude> in subst (bug 3298)
5355 pre-save transform: <onlyinclude> in subst (bug 3298)
5367 {{<includeonly>subst:</includeonly>Includes}}
5371 Template:SafeSubstTest
5373 {{<includeonly>safesubst:</includeonly>Includes}}
5377 bug 22297: safesubst: works during PST
5381 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5387 bug 22297: safesubst: works during normal parse
5396 subst: does not work during normal parse
5400 <p>{{subst:Includes}}
5405 pre-save transform: context links ("pipe trick")
5409 [[Article (context)|]]
5412 [[Bar:Article (context)|]]
5413 [[:Bar:Article (context)|]]
5415 [[|Article (context)]]
5419 [[Article (context)|Article]]
5420 [[Bar:Article|Article]]
5421 [[:Bar:Article|Article]]
5422 [[Bar:Article (context)|Article]]
5423 [[:Bar:Article (context)|Article]]
5425 [[Article (context)]]
5426 [[Bar:X (Y) Z|X (Y) Z]]
5427 [[:Bar:X (Y) Z|X (Y) Z]]
5431 pre-save transform: context links ("pipe trick") with interwiki prefix
5435 [[interwiki:Article|]]
5436 [[:interwiki:Article|]]
5437 [[interwiki:Bar:Article|]]
5438 [[:interwiki:Bar:Article|]]
5440 [[interwiki:Article|Article]]
5441 [[:interwiki:Article|Article]]
5442 [[interwiki:Bar:Article|Bar:Article]]
5443 [[:interwiki:Bar:Article|Bar:Article]]
5447 pre-save transform: context links ("pipe trick") with parens in title
5449 pst title=[[Somearticle (context)]]
5453 [[Article (context)|Article]]
5457 pre-save transform: context links ("pipe trick") with comma in title
5459 pst title=[[Someplace, Somewhere]]
5462 [[Otherplace, Elsewhere|]]
5463 [[Otherplace, Elsewhere, Anywhere|]]
5465 [[Otherplace, Somewhere|Otherplace]]
5466 [[Otherplace, Elsewhere|Otherplace]]
5467 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5471 pre-save transform: context links ("pipe trick") with parens and comma
5473 pst title=[[Someplace (IGNORED), Somewhere]]
5476 [[Otherplace (place), Elsewhere|]]
5478 [[Otherplace, Somewhere|Otherplace]]
5479 [[Otherplace (place), Elsewhere|Otherplace]]
5483 pre-save transform: context links ("pipe trick") with comma and parens
5485 pst title=[[Who, me? (context)]]
5488 [[Me, Myself, and I (1937 song)|]]
5490 [[Yes, you. (context)|Yes, you.]]
5491 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5495 pre-save transform: context links ("pipe trick") with namespace
5497 pst title=[[Ns:Somearticle]]
5501 [[Ns:Article|Article]]
5505 pre-save transform: context links ("pipe trick") with namespace and parens
5507 pst title=[[Ns:Somearticle (context)]]
5511 [[Ns:Article (context)|Article]]
5515 pre-save transform: context links ("pipe trick") with namespace and comma
5517 pst title=[[Ns:Somearticle, Context, Whatever]]
5521 [[Ns:Article, Context, Whatever|Article]]
5525 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5527 pst title=[[Ns:Somearticle, Context (context)]]
5531 [[Ns:Article (context)|Article]]
5535 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5537 pst title=[[Ns:Somearticle (IGNORED), Context]]
5541 [[Ns:Article, Context|Article]]
5545 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5549 [[Article(context)|]]
5550 [[Bar:Article(context)|]]
5551 [[:Bar:Article(context)|]]
5552 [[|Article(context)]]
5556 [[Article(context)|Article]]
5557 [[Bar:Article(context)|Article]]
5558 [[:Bar:Article(context)|Article]]
5559 [[Article(context)]]
5561 [[:Bar:X(Y)Z|X(Y)Z]]
5565 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5569 [[Article (context)|]]
5570 [[Bar:Article (context)|]]
5571 [[:Bar:Article (context)|]]
5572 [[|Article (context)]]
5576 [[Article (context)|Article]]
5577 [[Bar:Article (context)|Article]]
5578 [[:Bar:Article (context)|Article]]
5579 [[Article (context)]]
5580 [[Bar:X (Y) Z|X (Y) Z]]
5581 [[:Bar:X (Y) Z|X (Y) Z]]
5585 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5589 [[Article(context)|]]
5590 [[Bar:Article(context)|]]
5591 [[:Bar:Article(context)|]]
5592 [[|Article(context)]]
5596 [[Article(context)|Article]]
5597 [[Bar:Article(context)|Article]]
5598 [[:Bar:Article(context)|Article]]
5599 [[Article(context)]]
5601 [[:Bar:X(Y)Z|X(Y)Z]]
5605 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5609 [[Article (context), context|]]
5610 [[Article (context),context|]]
5611 [[Bar:Article (context), context|]]
5612 [[Bar:Article (context),context|]]
5613 [[:Bar:Article (context), context|]]
5614 [[:Bar:Article (context),context|]]
5616 [[Article (context), context|Article]]
5617 [[Article (context),context|Article]]
5618 [[Bar:Article (context), context|Article]]
5619 [[Bar:Article (context),context|Article]]
5620 [[:Bar:Article (context), context|Article]]
5621 [[:Bar:Article (context),context|Article]]
5625 pre-save transform: trim trailing empty lines
5629 Empty lines are trimmed
5635 Empty lines are trimmed
5639 pre-save transform: Signature expansion
5644 * <noinclude>~~~</noinclude>
5645 * <includeonly>~~~</includeonly>
5646 * <onlyinclude>~~~</onlyinclude>
5648 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5649 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5650 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5651 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5656 pre-save transform: Signature expansion in nowiki tags (bug 93)
5662 <nowiki>~~~~</nowiki>
5664 <includeonly><nowiki>~~~~</nowiki></includeonly>
5666 <noinclude><nowiki>~~~~</nowiki></noinclude>
5668 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5670 {{subst:Foo}} shall be converted to FOO
5672 As well as inside noinclude/onlyinclude
5673 <noinclude>{{subst:Foo}}</noinclude>
5674 <onlyinclude>{{subst:Foo}}</onlyinclude>
5676 But not inside includeonly
5677 <includeonly>{{subst:Foo}}</includeonly>
5681 <nowiki>~~~~</nowiki>
5683 <includeonly><nowiki>~~~~</nowiki></includeonly>
5685 <noinclude><nowiki>~~~~</nowiki></noinclude>
5687 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5689 FOO shall be converted to FOO
5691 As well as inside noinclude/onlyinclude
5692 <noinclude>FOO</noinclude>
5693 <onlyinclude>FOO</onlyinclude>
5695 But not inside includeonly
5696 <includeonly>{{subst:Foo}}</includeonly>
5700 ### Message transform tests
5703 message transform: magic variables
5713 message transform: should not transform wiki markup
5723 message transform: <noinclude> in transcluded template (bug 4926)
5733 message transform: <onlyinclude> in transcluded template (bug 4926)
5743 {{#special:}} page name, known
5747 {{#special:Recentchanges}}
5749 Special:RecentChanges
5753 {{#special:}} page name with subpage, known
5757 {{#special:Recentchanges/param}}
5759 Special:RecentChanges/param
5763 {{#special:}} page name, unknown
5767 {{#special:foobarnonexistent}}
5769 No such special page
5773 {{#speciale:}} page name, known
5777 {{#speciale:Recentchanges}}
5779 Special:RecentChanges
5783 {{#speciale:}} page name with subpage, known
5787 {{#speciale:Recentchanges/param}}
5789 Special:RecentChanges/param
5793 {{#speciale:}} page name, unknown
5797 {{#speciale:foobarnonexistent}}
5799 No_such_special_page
5808 [[Image:foobar.jpg]]
5810 <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>
5817 [[Image:foobar.jpg|right]]
5819 <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>
5824 Simple image (using File: namespace, now canonical)
5828 <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>
5835 [[Image:foobar.jpg|right|Caption text]]
5837 <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>
5842 Image with empty attribute
5844 [[Image:foobar.jpg|right||Caption text]]
5846 <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>
5851 Image with link tails
5853 123[[Image:foobar.jpg]]456
5854 123[[Image:foobar.jpg|right]]456
5855 123[[Image:foobar.jpg|thumb]]456
5857 <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
5859 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
5860 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
5865 Image with multiple captions -- only last one is accepted
5867 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5869 <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>
5874 Image with link parameter, wiki target
5876 [[Image:foobar.jpg|link=Target page]]
5878 <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>
5883 Image with link parameter, URL target
5885 [[Image:foobar.jpg|link=http://example.com/]]
5887 <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>
5892 Image with link parameter, wgExternalLinkTarget
5894 [[Image:foobar.jpg|link=http://example.com/]]
5896 wgExternalLinkTarget='foobar'
5898 <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>
5903 Image with link parameter, wgNoFollowLinks set to false
5905 [[Image:foobar.jpg|link=http://example.com/]]
5907 wgNoFollowLinks=false
5909 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5914 Image with link parameter, wgNoFollowDomainExceptions
5916 [[Image:foobar.jpg|link=http://example.com/]]
5918 wgNoFollowDomainExceptions='example.com'
5920 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5925 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5927 [[Image:foobar.jpg|link=http://example.com/|Title]]
5929 wgExternalLinkTarget='foobar'
5931 <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>
5936 Image with empty link parameter
5938 [[Image:foobar.jpg|link=]]
5940 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5945 Image with link parameter (wiki target) and unnamed parameter
5947 [[Image:foobar.jpg|link=Target page|Title]]
5949 <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>
5954 Image with link parameter (URL target) and unnamed parameter
5956 [[Image:foobar.jpg|link=http://example.com/|Title]]
5958 <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>
5963 Thumbnail image with link parameter
5965 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5967 <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>
5972 Image with frame and link
5974 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5976 <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>
5981 Image with frame and link and explicit alt
5983 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5985 <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>
5990 Image with wiki markup in implicit alt
5992 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5994 <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>
5999 Image with wiki markup in explicit alt
6001 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6003 <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>
6008 Link to image page- image page normally doesn't exists, hence edit link
6009 Add test with existing image page
6010 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6014 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6019 bug 18784 Link to non-existent image page with caption should use caption as link text
6021 [[:Image:test|caption]]
6023 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6028 Frameless image caption with a free URL
6030 [[Image:foobar.jpg|http://example.com]]
6032 <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>
6037 Thumbnail image caption with a free URL
6039 [[Image:foobar.jpg|thumb|http://example.com]]
6041 <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>
6046 Thumbnail image caption with a free URL and explicit alt
6048 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6050 <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>
6055 BUG 1887: A ISBN with a thumbnail
6057 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6059 <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>
6064 BUG 1887: A RFC with a thumbnail
6066 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6068 <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>
6073 BUG 1887: A mailto link with a thumbnail
6075 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6077 <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>
6081 # Pending resolution to bug 368
6083 BUG 648: Frameless image caption with a link
6085 [[Image:foobar.jpg|text with a [[link]] in it]]
6087 <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>
6092 BUG 648: Frameless image caption with a link (suffix)
6094 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6096 <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>
6101 BUG 648: Frameless image caption with an interwiki link
6103 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6105 <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>
6110 BUG 648: Frameless image caption with a piped interwiki link
6112 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6114 <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>
6119 Escape HTML special chars in image alt text
6121 [[Image:foobar.jpg|& < > "]]
6123 <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>
6128 BUG 499: Alt text should have Ӓ, not &1234;
6130 [[Image:foobar.jpg|♀]]
6132 <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>
6137 Broken image caption with link
6139 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6141 <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.
6146 Image caption containing another image
6148 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6150 <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>
6155 Image caption containing a newline
6157 [[Image:Foobar.jpg|This
6160 <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>
6166 Bug 3090: External links other than http: in image captions
6168 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6170 <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>
6177 [[Image:foobar.jpg|a|class=b]]
6179 <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>
6186 #REDIRECT [[File:Barfoo.jpg]]
6192 [[Image:Barfoo.jpg]]
6194 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6199 Missing image with uploads disabled
6203 [[Image:Foobaz.jpg]]
6205 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6214 Subpage test/subpage
6222 subpage title=[[Subpage test]]
6226 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6231 Subpage noslash link
6233 subpage title=[[Subpage test]]
6237 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6246 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6251 BUG 561: {{/Subpage}}
6253 subpage title=[[Page]]
6257 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6265 Category:MediaWiki User's Guide
6273 [[:Category:MediaWiki User's Guide]]
6275 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6284 [[Category:MediaWiki User's Guide]]
6286 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6290 PAGESINCATEGORY invalid title fatal (r33546 fix)
6292 {{PAGESINCATEGORY:<bogus>}}
6299 Category with different sort key
6303 [[Category:MediaWiki User's Guide|Foo]]
6305 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6309 Category with identical sort key
6313 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6315 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6319 Category with empty sort key
6324 [[Category:MediaWiki User's Guide|]]
6326 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6330 Category with empty sort key and parentheses
6335 [[Category:Foo (bar)|]]
6337 [[Category:Foo (bar)|Foo]]
6341 Category with link tail
6346 123[[Category:Foo]]456
6348 123[[Category:Foo]]456
6352 Category with template
6357 [[Category:{{echo|Foo}}]]
6359 [[Category:{{echo|Foo}}]]
6363 Category with template in sort key
6368 [[Category:Foo|{{echo|Bar}}]]
6370 [[Category:Foo|{{echo|Bar}}]]
6374 Category with template in sort key and title
6379 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6381 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6385 Category / paragraph interactions
6387 Foo [[Category:Baz]] Bar
6389 Foo [[Category:Baz]]
6397 [[Category:Baz]] Bar
6410 {{echo|[[Category:Baz]]}}
6425 ### Inter-language links
6428 Inter-language links
6434 [[zh:食品]]
6436 es:Alimento fr:Nourriture zh:食品
6440 Duplicate interlanguage links (bug 24502)
6456 Basic section headings
6463 ===Smaller headline===
6466 <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>
6469 <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>
6472 <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>
6478 Section headings with TOC
6481 === Subheadline 1 ===
6482 ===== Skipping a level =====
6483 ====== Skipping a level ======
6487 ===Another headline===
6489 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6491 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6493 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6495 <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>
6497 <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>
6504 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6506 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6511 <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>
6512 <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>
6513 <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>
6514 <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>
6515 <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>
6518 <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>
6522 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6524 Handling of sections up to level 6 and beyond
6527 == Level 2 Heading==
6528 === Level 3 Heading===
6529 ==== Level 4 Heading====
6530 ===== Level 5 Heading=====
6531 ====== Level 6 Heading======
6532 ======= Level 7 Heading=======
6533 ======== Level 8 Heading========
6534 ========= Level 9 Heading=========
6535 ========== Level 10 Heading==========
6537 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6539 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6541 <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>
6543 <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>
6545 <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>
6547 <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>
6549 <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>
6550 <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>
6551 <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>
6552 <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>
6553 <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>
6566 <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>
6567 <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>
6568 <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>
6569 <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>
6570 <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>
6571 <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>
6572 <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>
6573 <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>
6574 <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>
6575 <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>
6580 TOC regression (bug 9764)
6584 ==== title 1.1.1 ====
6589 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6591 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6593 <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>
6595 <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>
6598 <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>
6601 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6603 <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>
6608 <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>
6609 <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>
6610 <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>
6611 <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>
6612 <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>
6613 <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>
6618 TOC with wgMaxTocLevel=3 (bug 6204)
6624 ==== title 1.1.1 ====
6629 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6631 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6633 <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>
6634 <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>
6637 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6639 <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>
6644 <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>
6645 <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>
6646 <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>
6647 <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>
6648 <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>
6649 <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>
6654 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6660 ====Section 1.1.1====
6661 ====Section 1.1.1.1====
6664 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6666 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6668 <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>
6671 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6674 <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>
6675 <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>
6676 <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>
6677 <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>
6678 <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>
6684 Resolving duplicate section names
6689 <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>
6690 <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>
6695 Resolving duplicate section names with differing case (bug 10721)
6700 <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>
6701 <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>
6713 Template with sections, __NOTOC__
6720 <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>
6721 <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>
6722 <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>
6723 <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>
6728 __NOEDITSECTION__ keyword
6734 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6735 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6740 Link inside a section heading
6742 ==Section with a [[Main Page|link]] in it==
6744 <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>
6749 TOC regression (bug 12077)
6756 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6758 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6760 <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>
6763 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6766 <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>
6767 <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>
6768 <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>
6773 BUG 1219 URL next to image (good)
6775 http://example.com [[Image:foobar.jpg]]
6777 <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>
6782 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6785 The line above must have a trailing space!
6788 But just in case it doesn't...
6790 <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>
6791 <p>The line above must have a trailing space!
6793 <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>
6794 <p>But just in case it doesn't...
6799 Header with special characters (bug 25462)
6801 The tooltips shall not show entities to the user (ie. be double escaped)
6818 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6820 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6822 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6823 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6824 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6825 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6826 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6829 <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>
6832 <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>
6835 <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>
6838 <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>
6841 <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>
6847 Headers with excess '=' characters
6848 (Are similar tests necessary beyond the 1st level?)
6852 =''italic'' heading==
6853 ==''italic'' heading=
6855 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6857 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6858 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6859 <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>
6860 <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>
6863 <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>
6864 <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>
6865 <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>
6866 <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>
6871 BUG 1219 URL next to image (broken)
6873 http://example.com[[Image:foobar.jpg]]
6875 <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>
6880 Bug 1186 news: in the middle of text
6882 http://en.wikinews.org/wiki/Wikinews:Workplace
6884 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6890 Namespaced link must have a title
6899 Namespaced link must have a title (bad fragment version)
6901 [[Project:#fragment]]
6903 <p>[[Project:#fragment]]
6909 div with no attributes
6911 <div>HTML rocks</div>
6913 <div>HTML rocks</div>
6918 div with double-quoted attribute
6920 <div id="rock">HTML rocks</div>
6922 <div id="rock">HTML rocks</div>
6927 div with single-quoted attribute
6929 <div id='rock'>HTML rocks</div>
6931 <div id="rock">HTML rocks</div>
6936 div with unquoted attribute
6938 <div id=rock>HTML rocks</div>
6940 <div id="rock">HTML rocks</div>
6945 div with illegal double attributes
6947 <div id="a" id="b">HTML rocks</div>
6949 <div id="b">HTML rocks</div>
6954 HTML multiple attributes correction
6956 <p class="error" class="awesome">Awesome!</p>
6958 <p class="awesome">Awesome!</p>
6963 Table multiple attributes correction
6966 !+ class="error" class="awesome"| status
6971 <th class="awesome"> status
6979 <DIV ID="x">HTML ROCKS</DIV>
6981 <div id="x">HTML ROCKS</div>
6987 text with amp in the middle of nowhere
6991 <p>Remember AT&T?
6996 text with character entity: eacute
6998 I always thought é was a cute letter.
7000 <p>I always thought é was a cute letter.
7005 text with undefined character entity: xacute
7007 I always thought &xacute; was a cute letter.
7009 <p>I always thought &xacute; was a cute letter.
7021 [[Media:Foobar.jpg]]
7023 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7028 Media link with text
7030 [[Media:Foobar.jpg|A neat file to look at]]
7032 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7036 # FIXME: this is still bad HTML tag nesting
7038 Media link with nasty text
7039 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7041 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7043 <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>
7048 Media link to nonexistent file (bug 1702)
7050 [[Media:No such.jpg]]
7052 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7057 Image link to nonexistent file (bug 1850 - good)
7059 [[Image:No such.jpg]]
7061 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7066 :Image link to nonexistent file (bug 1850 - bad)
7068 [[:Image:No such.jpg]]
7070 <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>
7077 Character reference normalization in link text (bug 1938)
7079 [[Main Page|this&that]]
7081 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7088 Test for unicode normalization
7090 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7094 (bug 19451) Links should refer to the normalized form.
7102 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7103 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7104 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7105 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7106 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7111 Empty attribute crash test (bug 2067)
7113 <font color="">foo</font>
7115 <p><font color="">foo</font>
7120 Empty attribute crash test single-quotes (bug 2067)
7122 <font color=''>foo</font>
7124 <p><font color="">foo</font>
7129 Attribute test: equals, then nothing
7131 <font color=>foo</font>
7138 Attribute test: unquoted value
7140 <font color=x>foo</font>
7142 <p><font color="x">foo</font>
7147 Attribute test: unquoted but illegal value (hash)
7149 <font color=#x>foo</font>
7151 <p><font color="#x">foo</font>
7156 Attribute test: no value
7158 <font color>foo</font>
7160 <p><font color="color">foo</font>
7165 Bug 2095: link with three closing brackets
7169 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7174 Bug 2095: link with pipe and three closing brackets
7178 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7183 Bug 2095: link with pipe and three closing brackets, version 2
7185 [[Main Page|[http://example.com/]]]
7187 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7197 Template:Dangerous attribute
7199 " onmouseover="alert(document.cookie)
7203 Template:Dangerous style attribute
7205 border-size: expression(alert(document.cookie))
7211 <div style="float: right; {{{1}}}">Magic div</div>
7215 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7217 <div title="{{test}}"></div>
7219 <div title="This is a test template"></div>
7224 Bug 2304: HTML attribute safety (dangerous template; 2309)
7226 <div title="{{dangerous attribute}}"></div>
7228 <div title=""></div>
7233 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7235 <div style="{{dangerous style attribute}}"></div>
7237 <div style="/* insecure input */"></div>
7242 Bug 2304: HTML attribute safety (safe parameter; 2309)
7244 {{div style|width: 200px}}
7246 <div style="float: right; width: 200px">Magic div</div>
7251 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7253 {{div style|width: expression(alert(document.cookie))}}
7255 <div style="/* insecure input */">Magic div</div>
7260 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7262 {{div style|"><script>alert(document.cookie)</script>}}
7264 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7269 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7271 {{div style|" ><script>alert(document.cookie)</script>}}
7273 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7278 Bug 2304: HTML attribute safety (link)
7280 <div title="[[Main Page]]"></div>
7282 <div title="[[Main Page]]"></div>
7287 Bug 2304: HTML attribute safety (italics)
7289 <div title="''foobar''"></div>
7291 <div title="''foobar''"></div>
7296 Bug 2304: HTML attribute safety (bold)
7298 <div title="'''foobar'''"></div>
7300 <div title="'''foobar'''"></div>
7306 Bug 2304: HTML attribute safety (ISBN)
7308 <div title="ISBN 1234567890"></div>
7310 <div title="ISBN 1234567890"></div>
7315 Bug 2304: HTML attribute safety (RFC)
7317 <div title="RFC 1234"></div>
7319 <div title="RFC 1234"></div>
7324 Bug 2304: HTML attribute safety (PMID)
7326 <div title="PMID 1234567890"></div>
7328 <div title="PMID 1234567890"></div>
7333 Bug 2304: HTML attribute safety (web link)
7335 <div title="http://example.com/"></div>
7337 <div title="http://example.com/"></div>
7342 Bug 2304: HTML attribute safety (named web link)
7344 <div title="[http://example.com/ link]"></div>
7346 <div title="[http://example.com/ link]"></div>
7351 Bug 3244: HTML attribute safety (extension; safe)
7353 <div style="<nowiki>background:blue</nowiki>"></div>
7355 <div style="background:blue"></div>
7360 Bug 3244: HTML attribute safety (extension; unsafe)
7362 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7364 <div style="/* insecure input */"></div>
7368 # More MSIE fun discovered by Tom Gilder
7371 MSIE CSS safety test: spurious slash
7373 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7375 <div style="/* insecure input */">evil</div>
7380 MSIE CSS safety test: hex code
7382 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7384 <div style="/* insecure input */">evil</div>
7389 MSIE CSS safety test: comment in url
7391 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7393 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7398 MSIE CSS safety test: comment in expression
7400 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7402 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7408 Table attribute legitimate extension
7411 !+ style="<nowiki>color:blue</nowiki>"| status
7416 <th style="color:blue"> status
7422 Table attribute safety
7425 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7430 <th style="/* insecure input */"> status
7436 CSS line continuation 1
7438 <div style="background-image: u\ rl(test.jpg);"></div>
7440 <div style="/* insecure input */"></div>
7445 CSS line continuation 2
7447 <div style="background-image: u\ rl(test.jpg); "></div>
7449 <div style="/* insecure input */"></div>
7460 Expansion of multi-line templates in attribute values (bug 6255)
7462 <div style="background: {{identity|#00FF00}}">-</div>
7464 <div style="background: #00FF00">-</div>
7470 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7472 <div style="background:
7475 <div style="background: #00FF00">-</div>
7480 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7482 <div style="background: #00FF00">-</div>
7484 <div style="background: #00FF00">-</div>
7489 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7492 Parser hook: empty input
7505 Parser hook: empty input using terminated empty elements
7518 Parser hook: empty input using terminated empty elements (space before)
7531 Parser hook: basic input
7545 Parser hook: case insensitive
7559 Parser hook: case insensitive, redux
7572 Parser hook: nested tags
7576 <tag><tag></tag></tag>
7587 Parser hook: basic arguments
7589 <tag width=200 height = "100" depth = '50' square></tag>
7597 'square' => 'square',
7604 Parser hook: argument containing a forward slash (bug 5344)
7606 <tag filename='/tmp/bla'></tag>
7611 'filename' => '/tmp/bla',
7618 Parser hook: empty input using terminated empty elements (bug 2374)
7631 # </tag> should be output literally since there is no matching tag that begins it
7633 Parser hook: basic arguments using terminated empty elements (bug 2374)
7635 <tag width=200 height = "100" depth = '50' square/>
7645 'square' => 'square',
7654 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7658 Parser hook: static parser hook not inside a comment
7660 <statictag>hello, world</statictag>
7661 <statictag action=flush/>
7669 Parser hook: static parser hook inside a comment
7671 <!-- <statictag>hello, world</statictag> -->
7672 <statictag action=flush/>
7678 # Nested template calls; this case was broken by Parser.php rev 1.506,
7682 Template:One-parameter
7684 (My parameter is: {{{1}}})
7688 Template:Map-one-parameter
7694 Nested template calls
7696 {{Map-one-parameter|One-parameter|param}}
7698 <p>(My parameter is: param)
7707 Sanitizer: Closing of open tags
7709 <s></s><table></table>
7711 <s></s><table></table>
7716 Sanitizer: Closing of open but not closed tags
7725 Sanitizer: Closing of closed but not open tags
7734 Sanitizer: Closing of closed but not open table tags
7736 Table not started</td></tr></table>
7738 <p>Table not started</td></tr></table>
7743 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7745 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7747 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7752 Sanitizer: Validating the contents of the id attribute (bug 4515)
7758 Something, but definitely not <br id="9" />...
7762 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7766 <br id="foo" /><br id="foo" />
7768 Something need to be done. foo-2 ?
7772 Language converter: output gets cut off unexpectedly (bug 5757)
7776 this bit is safe: }-
7778 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7780 then we get cut off here: }-
7782 all additional text is vanished
7784 <p>this bit is safe: }-
7785 </p><p>but if we add a conversion instance: xxx
7786 </p><p>then we get cut off here: }-
7787 </p><p>all additional text is vanished
7792 Self closed html pairs (bug 5487)
7795 <center><font id="bug" />Centered text</center>
7796 <div><font id="bug2" />In div text</div>
7798 <center><font id="bug" />Centered text</center>
7799 <div><font id="bug2" />In div text</div>
7808 Punctuation: nbsp before exclamation
7812 <p>C'est grave !
7817 Punctuation: CSS !important (bug 11874)
7819 <div style="width:50% !important">important</div>
7821 <div style="width:50% !important">important</div>
7826 Punctuation: CSS ! important (bug 11874; with space after)
7828 <div style="width:50% ! important">important</div>
7830 <div style="width:50% ! important">important</div>
7836 HTML bullet list, closed tags (bug 5497)
7851 HTML bullet list, unclosed tags (bug 5497)
7868 HTML ordered list, closed tags (bug 5497)
7883 HTML ordered list, unclosed tags (bug 5497)
7900 HTML nested bullet list, closed tags (bug 5497)
7925 HTML nested bullet list, open tags (bug 5497)
7950 HTML nested ordered list, closed tags (bug 5497)
7975 HTML nested ordered list, open tags (bug 5497)
8000 HTML ordered list item with parameters oddity
8002 <ol><li id="fragment">One</li></ol>
8004 <ol><li id="fragment">One</li></ol>
8009 bug 5918: autonumbering
8011 [http://first/] [http://second] [ftp://ftp]
8015 [mailto:enclosed@mail.tld With target]
8017 [mailto:enclosed@mail.tld]
8019 mailto:inline@mail.tld
8021 <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>
8022 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8023 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8024 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8025 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8031 # Security and HTML correctness
8032 # From Nick Jenkins' fuzz testing
8036 Fuzz testing: Parser13
8051 Fuzz testing: Parser14
8056 <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>
8057 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8059 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8066 Fuzz testing: Parser14-table
8071 <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>
8072 <table style="__TOC__">
8078 # Known to produce bogus xml (extra </td>)
8080 Fuzz testing: Parser16
8100 Fuzz testing: Parser21
8103 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8108 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8118 Fuzz testing: Parser22
8120 http://===r:::https://b
8124 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8132 # Known to produce bad XML for now
8134 Fuzz testing: Parser24
8141 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8142 <br style="onmouseover='alert(document.cookie);' " />
8144 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8149 <u class="|">}}}} >
8150 <br style="onmouseover='alert(document.cookie);'" />
8152 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8161 # Note: the current result listed for this is not what the original one was,
8162 # but the original bug was JavaScript injection, which is fixed in any case.
8163 # It's not clear that the original result listed was any more correct than the
8164 # current one. Original result:
8167 # <li class="||">
8168 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8170 Fuzz testing: Parser25 (bug 6055)
8176 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8178 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8183 Fuzz testing: URL adjacent extension (with space, clean)
8186 http://example.com <nowiki>junk</nowiki>
8188 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8193 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8196 http://example.com<nowiki>junk</nowiki>
8198 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8203 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8206 http://example.com<pre>junk</pre>
8208 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8213 Fuzz testing: image with bogus manual thumbnail
8215 [[Image:foobar.jpg|thumbnail= ]]
8217 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8222 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8224 <pre dir=" "></pre>
8226 <pre dir=" "></pre>
8231 Parsing optional HTML elements (Bug 6171)
8236 <td> Some tabular data</td>
8237 <td> More tabular data ...
8238 <td> And yet som tabular data</td>
8244 <td> Some tabular data</td>
8245 <td> More tabular data ...
8246 </td><td> And yet som tabular data</td>
8253 Correct handling of <td>, <tr> (Bug 6171)
8258 <td> Some tabular data</td>
8259 <td> More tabular data ...</td>
8260 <td> And yet som tabular data</td>
8266 <td> Some tabular data</td>
8267 <td> More tabular data ...</td>
8268 <td> And yet som tabular data</td>
8276 Parsing crashing regression (fr:JavaScript)
8280 <p></body></x>
8285 Inline wiki vs wiki block nesting
8291 <p><b>Bold paragraph</b>
8292 </p><p>New wiki paragraph
8297 Inline HTML vs wiki block nesting
8305 <p><b>Bold paragraph</b>
8306 </p><p>New wiki paragraph
8310 # Original result was this:
8311 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8313 # While that might be marginally more intuitive, maybe, the six-apostrophe
8314 # construct is clearly pathological and the result stated here (which is what
8315 # the parser actually does) is about as reasonable as anything.
8317 Mixing markup for italics and bold
8320 '''bold''''''bold''bolditalics'''''
8322 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8330 Article for special page transclusion test
8334 Special page transclusion
8337 {{Special:Prefixindex/Xyzzyx}}
8339 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8344 Special page transclusion twice (bug 5021)
8347 {{Special:Prefixindex/Xyzzyx}}
8348 {{Special:Prefixindex/Xyzzyx}}
8350 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8351 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8356 Transclusion of default MediaWiki message
8358 {{MediaWiki:Mainpage}}
8365 Transclusion of nonexistent MediaWiki message
8367 {{MediaWiki:Mainpagexxx}}
8369 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8374 Transclusion of MediaWiki message with underscore
8376 {{MediaWiki:history_short}}
8383 Transclusion of MediaWiki message with space
8385 {{MediaWiki:history short}}
8392 Invalid header with following text
8402 Section extraction test (section 0)
8422 Section extraction test (section 1)
8444 Section extraction test (section 2)
8465 Section extraction test (section 3)
8485 Section extraction test (section 4)
8509 Section extraction test (section 5)
8529 Section extraction test (section 6)
8550 Section extraction test (section 7)
8570 Section extraction test (section 8)
8590 Section extraction test (section 9)
8611 Section extraction test (section 10)
8631 Section extraction test (nonexistent section 11)
8650 Section extraction test with bogus heading (section 1)
8655 ==bogus== not a legal section
8659 ==bogus== not a legal section
8663 Section extraction test with bogus heading (section 2)
8668 ==bogus== not a legal section
8675 Section extraction test with comment after heading (section 1)
8687 Section extraction test with comment after heading (section 2)
8699 Section extraction test with bogus <nowiki> heading (section 1)
8704 ==bogus== <nowiki>not a legal section</nowiki>
8708 ==bogus== <nowiki>not a legal section</nowiki>
8712 Section extraction test with bogus <nowiki> heading (section 2)
8717 ==bogus== <nowiki>not a legal section</nowiki>
8724 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8725 # instead of respecting commented sections
8727 Section extraction prefixed by comment (section 1)
8738 Section extraction prefixed by comment (section 2)
8749 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8750 # instead of respecting HTML-style headings
8752 Section extraction, mixed wiki and html (section 1)
8768 Section extraction, mixed wiki and html (section 2)
8784 # Formerly testing for bug 3342
8786 Section extraction, heading surrounded by <noinclude>
8790 <noinclude>==unmarked==</noinclude>
8796 # Test behaviour of bug 19910
8798 Sectiion with all-equals
8803 The line above must have a trailing space
8806 But just in case it doesn't...
8810 But just in case it doesn't...
8814 Section replacement test (section 0)
8845 Section replacement test (section 1)
8874 Section replacement test (section 2)
8904 Section replacement test (section 3)
8935 Section replacement test (section 4)
8962 Section replacement test (section 5)
8993 Section replacement test (section 6)
9023 Section replacement test (section 7)
9054 Section replacement test (section 8)
9085 Section replacement test (section 9)
9114 Section replacement test (section 10)
9144 Section replacement test with initial whitespace (bug 13728)
9148 Preformatted initial line
9152 Preformatted initial line
9159 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9171 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9184 Section extraction, <pre> around bogus header (bug 10309)
9201 Section replacement, <pre> around bogus header (bug 10309)
9203 noxml replace=2,"xxx"
9224 Handling of 
 in URLs
9228 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9235 5 quotes, code coverage +1 line
9242 Special:Search page linking.
9246 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9261 * {{SUBJECTPAGENAME}}
9262 * {{SUBJECTPAGENAMEE}}
9269 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9271 <ul><li> Parser test
9272 </li><li> Parser test
9273 </li><li> Parser test
9274 </li><li> Parser_test
9275 </li><li> Parser test
9276 </li><li> Parser_test
9277 </li><li> Talk:Parser test
9278 </li><li> Talk:Parser_test
9279 </li><li> Parser test
9280 </li><li> Parser_test
9287 </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>
9291 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9301 image4 |300px| centre
9302 image5.svg| http://///////
9307 <ul class="gallery">
9308 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9309 <div style="height: 150px;">Image1.png</div>
9310 <div class="gallerytext">
9313 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9314 <div style="height: 150px;">Image2.gif</div>
9315 <div class="gallerytext">
9320 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9321 <div style="height: 150px;">Image3</div>
9322 <div class="gallerytext">
9325 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9326 <div style="height: 150px;">Image4</div>
9327 <div class="gallerytext">
9332 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9333 <div style="height: 150px;">Image5.svg</div>
9334 <div class="gallerytext">
9335 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9339 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9340 <div style="height: 150px;">* image6</div>
9341 <div class="gallerytext">
9349 Gallery (with options)
9351 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9352 File:Nonexistant.jpg|caption
9353 File:Nonexistant.jpg
9354 image:foobar.jpg|some '''caption''' [[Main Page]]
9356 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9359 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9360 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9361 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9362 <div style="height: 70px;">Nonexistant.jpg</div>
9363 <div class="gallerytext">
9368 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9369 <div style="height: 70px;">Nonexistant.jpg</div>
9370 <div class="gallerytext">
9373 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9374 <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>
9375 <div class="gallerytext">
9376 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9380 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9381 <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>
9382 <div class="gallerytext">
9385 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9386 <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>
9387 <div class="gallerytext">
9397 Gallery with wikitext inside caption
9400 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9401 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9404 <ul class="gallery">
9405 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9406 <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>
9407 <div class="gallerytext">
9408 <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>
9412 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9413 <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>
9414 <div class="gallerytext">
9415 <p>This is a test template
9424 gallery (with showfilename option)
9426 <gallery showfilename>
9427 File:Nonexistant.jpg|caption
9428 File:Nonexistant.jpg
9429 image:foobar.jpg|some '''caption''' [[Main Page]]
9433 <ul class="gallery">
9434 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9435 <div style="height: 150px;">Nonexistant.jpg</div>
9436 <div class="gallerytext">
9437 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9442 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9443 <div style="height: 150px;">Nonexistant.jpg</div>
9444 <div class="gallerytext">
9445 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9449 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9450 <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>
9451 <div class="gallerytext">
9452 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9453 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9457 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9458 <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>
9459 <div class="gallerytext">
9460 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9469 Gallery (with namespace-less filenames)
9472 File:Nonexistant.jpg
9478 <ul class="gallery">
9479 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9480 <div style="height: 150px;">Nonexistant.jpg</div>
9481 <div class="gallerytext">
9484 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9485 <div style="height: 150px;">Nonexistant.jpg</div>
9486 <div class="gallerytext">
9489 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9490 <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>
9491 <div class="gallerytext">
9494 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9495 <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>
9496 <div class="gallerytext">
9504 HTML Hex character encoding (spells the word "JavaScript")
9506 JavaScript
9508 <p>JavaScript
9513 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9517 <p>&#xsee;&#XSEE;
9522 HTML Hex character encoding mixed case
9531 __FORCETOC__ override
9543 ISBN 978-0-1234-56 789
9545 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9550 ISBN followed by 5 spaces
9561 ISBN ISBN 1234567890
9563 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9568 Bug 22905: <abbr> followed by ISBN followed by </a>
9570 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9572 <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>
9581 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9586 Double RFC with a wiki link
9590 <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>
9599 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9604 Centre-aligned image
9606 [[Image:foobar.jpg|centre]]
9608 <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>
9615 [[Image:foobar.jpg|none]]
9617 <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>
9622 Width + Height sized image (using px) (height is ignored)
9624 [[Image:foobar.jpg|640x480px]]
9626 <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>
9631 Width-sized image (using px, no following whitespace)
9633 [[Image:foobar.jpg|640px]]
9635 <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>
9640 Width-sized image (using px, with following whitespace - test regression from r39467)
9642 [[Image:foobar.jpg|640px ]]
9644 <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>
9649 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9651 [[Image:foobar.jpg| 640px]]
9653 <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>
9658 Another italics / bold test
9666 # Note the results may be incorrect, as parserTest output included this:
9667 # XML error: Mismatched tag at byte 6120:
9668 # ...<dd> </dt></dl> </dd...
9676 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9687 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9689 Images with the "|" character in the comment
9691 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9693 <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>
9698 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9700 <html><script>alert(1);</script></html>
9702 <p><html><script>alert(1);</script></html>
9707 HTML with raw HTML ($wgRawHtml==true)
9711 <html><script>alert(1);</script></html>
9713 <p><script>alert(1);</script>
9718 Parents of subpages, one level up
9720 subpage title=[[Subpage test/L1/L2/L3]]
9724 <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>
9730 Parents of subpages, one level up, not named
9732 subpage title=[[Subpage test/L1/L2/L3]]
9736 <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>
9743 Parents of subpages, two levels up
9745 subpage title=[[Subpage test/L1/L2/L3]]
9751 <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
9752 </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>
9757 Parents of subpages, two levels up, without trailing slash or name.
9759 subpage title=[[Subpage test/L1/L2/L3]]
9768 Parents of subpages, two levels up, with lots of extra trailing slashes.
9770 subpage title=[[Subpage test/L1/L2/L3]]
9774 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9779 Definition list code coverage
9785 <dl><dt> title  </dt><dd> def
9786 </dd><dt> title </dt><dd> def
9787 </dd><dt>title</dt><dd> def
9793 Don't fall for the self-closing div
9795 <div>hello world</div/>
9797 <div>hello world</div>
9806 <p>[[:Template:Msg]]
9815 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9819 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9821 Always escape literal '>' in output, not just after '<'
9835 <p>This is a test template
9836 This is a test template
9848 Inclusion of !userCanEdit() content
9852 <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>
9858 Out-of-order TOC heading levels
9867 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9869 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9871 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9872 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9875 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9877 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9878 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9883 <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>
9884 <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>
9885 <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>
9886 <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>
9887 <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>
9888 <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>
9894 ISBN with a dummy number
9904 ISBN with space-delimited number
9908 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9914 ISBN with multiple spaces, no number
9933 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9934 </p><p>ISBN 12345678901
9940 ISBN with trailing year (bug 8110)
9942 ISBN 1-234-56789-0 - 2006
9944 ISBN 1 234 56789 0 - 2006
9946 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9947 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9955 {{anchorencode:foo bar©#%n}}
9957 <p>foo_bar.C2.A9.23.25n
9962 anchorencode trims spaces
9964 {{anchorencode: __pretty__please__}}
9971 anchorencode deals with links
9973 {{anchorencode: [[hello|world]] [[hi]]}}
9980 anchorencode deals with templates
9982 {{anchorencode: {{Foo}} }}
9989 anchorencode encodes like the TOC generator: (bug 18431)
9991 === _ +:.3A%3A&&]] ===
9992 {{anchorencode: _ +:.3A%3A&&]] }}
9995 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9996 <p>.2B:.3A.253A.26.26.5D.5D
10000 # Expected output in the following test is not necessarily expected (there
10001 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10002 # only testing for well-formedness.
10004 Bug 6200: blockquotes and paragraph formatting
10024 Bug 8293: Use of center tag ruins paragraph formatting
10046 ### Language variants related tests
10049 Self-link in language variants
10051 title=[[Dunav]] language=sr
10053 Both [[Dunav]] and [[Дунав]] are names for this river.
10055 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10061 Link to pages in language variants
10065 Main Page can be written as [[Маин Паге]]
10067 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10073 Multiple links to pages in language variants
10077 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10079 <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>.
10085 Simple template in language variants
10091 <p>This is a test template
10097 Template with explicit namespace in language variants
10103 <p>This is a test template
10109 Basic test for template parameter in language variants
10113 {{парамтест|param=foo}}
10115 <p>This is a test template with parameter foo
10121 Simple category in language variants
10125 [[Category:МедиаWики Усер'с Гуиде]]
10127 <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>
10132 Stripping -{}- tags (language variants)
10136 Latin proverb: -{Ne nuntium necare}-
10138 <p>Latin proverb: Ne nuntium necare
10144 Prevent conversion with -{}- tags (language variants)
10146 language=sr variant=sr-ec
10148 Latinski: -{Ne nuntium necare}-
10150 <p>Латински: Ne nuntium necare
10156 Prevent conversion of text with -{}- tags (language variants)
10158 language=sr variant=sr-ec
10160 Latinski: -{Ne nuntium necare}-
10162 <p>Латински: Ne nuntium necare
10168 Prevent conversion of links with -{}- tags (language variants)
10170 language=sr variant=sr-ec
10174 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10180 -{}- tags within headlines (within html for parserConvert())
10182 language=sr variant=sr-ec
10186 <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>
10192 Explicit definition of language variant alternatives
10194 language=zh variant=zh-tw
10196 -{zh:China;zh-tw:Taiwan}-, not China
10198 <p>Taiwan, not China
10204 Explicit session-wise language variant mapping (A flag and - flag)
10206 language=zh variant=zh-tw
10208 Taiwan is not China.
10209 But -{A|zh:China;zh-tw:Taiwan}- is China,
10210 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10211 and -{China}- is China.
10213 <p>Taiwan is not China.
10214 But Taiwan is Taiwan,
10215 (This should be stripped!)
10216 and China is China.
10221 Explicit session-wise language variant mapping (H flag for hide)
10223 language=zh variant=zh-tw
10225 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10228 <p>(This should be stripped!)
10234 Adding explicit conversion rule for title (T flag)
10236 language=zh variant=zh-tw showtitle
10238 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10241 <p>Should be stripped!
10246 Testing that changing the language variant here in the tests actually works
10248 language=zh variant=zh showtitle
10250 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10253 <p>Should be stripped!
10258 Bug 24072: more test on conversion rule for title
10260 language=zh variant=zh-tw showtitle
10262 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10263 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10266 <p>This should be stripped!
10267 This won't take interferes with the title rule.
10272 Raw output of variant escape tags (R flag)
10274 language=zh variant=zh-tw
10276 Raw: -{R|zh:China;zh-tw:Taiwan}-
10278 <p>Raw: zh:China;zh-tw:Taiwan
10283 Nested using of manual convert syntax
10285 language=zh variant=zh-hk
10287 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10289 <p>Nested: Hello Hong Kong!
10294 Do not convert roman numbers to language variants
10296 language=sr variant=sr-ec
10300 <p>Фридрих IV је цар.
10305 Unclosed language converter markup "-{"
10316 Don't convert raw rule "-{R|=>}-" to "=>"
10333 Bug 529: Uncovered bullet
10343 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10344 # Templates in Wikipedia rely on this behavior, as tidy has always been
10345 # enabled there. These tests are normally run *without* tidy, so specify the
10346 # full output here.
10347 # To test realistic parsing behavior, apply a tidy-like transformation to both
10348 # the expected output and your parser's output.
10350 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10352 ******* Foo {{bullet}}
10354 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10367 Bug 529: Uncovered table already at line-start
10390 Bug 529: Uncovered bullet in parser function result
10392 * Foo {{lc:{{bullet}} }}
10401 Bug 5678: Double-parsed template argument
10403 {{lc:{{{1}}}|hello}}
10410 Bug 5678: Double-parsed template invocation
10412 {{lc:{{paramtest {{!}} param = hello }} }}
10414 <p>{{paramtest | param = hello }}
10419 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10422 title=[[Main Page]]
10424 {{PRVNÍVELKÉ:ěščř}}
10425 {{prvnívelké:ěščř}}
10445 Morwen/13: Unclosed link followed by heading
10452 <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>
10457 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10464 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10469 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10476 <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>
10491 Paragraphs inside divs (no extra line breaks)
10503 Paragraphs inside divs (extra line break on open)
10518 Paragraphs inside divs (extra line break on close)
10533 Paragraphs inside divs (extra line break on open and close)
10550 Nesting tags, paragraphs on lines which begin with <div>
10554 <div></div><strong>A
10563 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10565 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10569 <blockquote>Line one
10571 Line two</blockquote>
10573 <blockquote>Line one
10574 Line two</blockquote>
10579 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10586 Line two</blockquote>
10591 Line two</blockquote>
10596 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10600 <blockquote>Line one
10605 <blockquote>Line one
10613 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10632 Paragraphs inside blockquotes/divs (no extra line breaks)
10634 <blockquote><div>Line one
10636 Line two</div></blockquote>
10638 <blockquote><div>Line one
10639 Line two</div></blockquote>
10644 Paragraphs inside blockquotes/divs (extra line break on open)
10649 Line two</div></blockquote>
10654 Line two</div></blockquote>
10659 Paragraphs inside blockquotes/divs (extra line break on close)
10661 <blockquote><div>Line one
10664 </div></blockquote>
10666 <blockquote><div>Line one
10669 </div></blockquote>
10674 Paragraphs inside blockquotes/divs (extra line break on open and close)
10680 </div></blockquote>
10686 </div></blockquote>
10691 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10693 wgLinkHolderBatchSize=0
10699 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10700 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10701 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10706 Free external link invading image caption
10708 [[Image:Foobar.jpg|thumb|http://x|hello]]
10710 <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>
10715 Bug 15196: localised external link numbers
10719 [http://en.wikipedia.org/]
10721 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10726 Multibyte character in padleft
10728 {{padleft:-Hello|7|Æ}}
10735 Multibyte character in padright
10737 {{padright:Hello-|7|Æ}}
10746 wgUseDynamicDates=1
10750 <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>
10755 formatdate parser function
10757 {{#formatdate:2009-03-24}}
10759 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10764 formatdate parser function, with default format
10766 {{#formatdate:2009-03-24|mdy}}
10768 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10773 Linked date with autoformatting disabled
10775 wgUseDynamicDates=false
10779 <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>
10784 Spacing of numbers in formatted dates
10786 {{#formatdate:January 15}}
10788 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10793 Spacing of numbers in formatted dates (linked)
10795 wgUseDynamicDates=true
10799 <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>
10804 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
10806 language=nl title=[[MediaWiki:Common.css]]
10808 {{#formatdate:2009-03-24|dmy}}
10810 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10823 Edit comment with link
10827 I like the [[Main Page]] a lot
10829 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10833 Edit comment with link and link text
10837 I like the [[Main Page|best pages]] a lot
10839 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10843 Edit comment with link and link text with suffix
10847 I like the [[Main Page|best page]]s a lot
10849 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10853 Edit comment with section link (non-local, eg in history list)
10855 comment title=[[Main Page]]
10857 /* External links */ removed bogus entries
10859 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10863 Edit comment with section link and text before it (non-local, eg in history list)
10865 comment title=[[Main Page]]
10867 pre-comment text /* External links */ removed bogus entries
10869 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>
10873 Edit comment with section link (local, eg in diff view)
10875 comment local title=[[Main Page]]
10877 /* External links */ removed bogus entries
10879 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10883 Edit comment with subpage link (bug 14080)
10887 title=[[Subpage test]]
10889 Poked at a [[/subpage]] here...
10891 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10895 Edit comment with subpage link and link text (bug 14080)
10899 title=[[Subpage test]]
10901 Poked at a [[/subpage|neat little page]] here...
10903 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10907 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10910 title=[[Subpage test]]
10912 Poked at a [[/subpage]] here...
10914 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10918 Edit comment with bare anchor link (local, as on diff)
10922 title=[[Main Page]]
10926 <a href="#section">#section</a>
10930 Edit comment with bare anchor link (non-local, as on history)
10933 title=[[Main Page]]
10937 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10941 Anchor starting with underscore
10945 <p><a href="#_ref">One</a>
10950 Id starting with underscore
10952 <div id="_ref"></div>
10954 <div id="_ref"></div>
10959 Space normalisation on autocomment (bug 22784)
10962 title=[[Main Page]]
10964 /* __hello__world__ */
10966 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10970 percent-encoding and + signs in comments (Bug 26410)
10974 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10976 <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>
10980 Bad images - basic functionality
10989 Bad images - bug 16039: text after bad image disappears
11003 Verify that displaytitle works (bug #22501) no displaytitle
11007 wgAllowDisplayTitle=true
11008 wgRestrictDisplayTitle=false
11010 this is not the the title
11013 <p>this is not the the title
11018 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11023 wgAllowDisplayTitle=true
11024 wgRestrictDisplayTitle=false
11026 this is not the the title
11027 {{DISPLAYTITLE:whatever}}
11030 <p>this is not the the title
11035 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11040 wgAllowDisplayTitle=true
11041 wgRestrictDisplayTitle=true
11043 this is not the the title
11044 {{DISPLAYTITLE:whatever}}
11047 <p>this is not the the title
11052 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11057 wgAllowDisplayTitle=true
11058 wgRestrictDisplayTitle=true
11060 this is not the the title
11061 {{DISPLAYTITLE:screen}}
11064 <p>this is not the the title
11069 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11074 wgAllowDisplayTitle=false
11076 this is not the the title
11077 {{DISPLAYTITLE:screen}}
11080 <p>this is not the the title
11081 <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>
11086 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11091 wgAllowDisplayTitle=false
11093 this is not the the title
11096 <p>this is not the the title
11101 preload: check <noinclude> and <includeonly>
11105 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11111 preload: check <onlyinclude>
11115 Goodbye <onlyinclude>Hello world</onlyinclude>
11121 preload: can pass tags through if we want to
11125 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11127 <includeonly>Hello world</includeonly>
11131 preload: check that it doesn't try to do tricks
11135 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11137 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11141 Play a bit with r67090 and bug 3158
11145 <div style="width:50% !important"> </div>
11146 <div style="width:50% !important"> </div>
11147 <div style="width:50% !important"> </div>
11148 <div style="border : solid;"> </div>
11150 <div style="width:50% !important"> </div>
11151 <div style="width:50% !important"> </div>
11152 <div style="width:50% !important"> </div>
11153 <div style="border : solid;"> </div>
11158 HTML5 data attributes
11160 <span data-foo="bar">Baz</span>
11161 <p data-abc-def_hij="">Quuz</p>
11163 <p><span data-foo="bar">Baz</span>
11165 <p data-abc-def_hij="">Quuz</p>
11170 percent-encoding and + signs in internal links (Bug 26410)
11172 [[User:+%]] [[Page+title%]]
11173 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11174 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11175 [[%33%45]] [[%33%45+]]
11177 <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>
11178 <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>
11179 <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>
11180 <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>
11185 Special characters in embedded file links (bug 27679)
11187 [[File:Contains & ampersand.jpg]]
11188 [[File:Does not exist.jpg|Title with & ampersand]]
11190 <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>
11191 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11197 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11199 Text's been normalized?
11201 <p>Text's been normalized?
11206 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11208 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11210 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11215 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11217 [http://www.example.org/ ideograms]
11219 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11224 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11226 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11228 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11252 Bug 31098 Template which includes system messages which includes the template
11256 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11257 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11262 Deprecated presentational attributes are converted to css
11265 | valign=top align=left width=100 height=25% | Asdf
11267 <ul type="disc"></ul>
11271 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11273 <ul style="list-style-type: disc;"></ul>
11278 Bug31490 Turkish: ucfirst 'blah'
11289 Bug31490 Turkish: ucfirst 'ix'
11300 Bug31490 Turkish: lcfirst 'BLAH'
11311 Bug31490 Turkish: ucfırst (with a dotless i)
11317 <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>
11322 Bug31490 ucfırst (with a dotless i) with English language
11328 <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>
11333 Bug 26375: TOC with italics
11335 title=[[Main Page]]
11338 == ''Lost'' episodes ==
11340 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11342 <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>
11345 <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>
11350 Bug 26375: TOC with bold
11352 title=[[Main Page]]
11355 == '''should be bold''' then normal text ==
11357 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11359 <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>
11362 <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>
11367 Bug 33845: Headings become cursive in TOC when they contain an image
11369 title=[[Main Page]]
11372 == Image [[Image:foobar.jpg]] ==
11374 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11376 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11379 <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>
11384 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11386 title=[[Main Page]]
11389 == <blockquote>Quote</blockquote> ==
11391 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11393 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11396 <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>
11401 Unclosed tags in TOC
11403 title=[[Main Page]]
11407 <small>Hanc marginis exiguitas non caperet.</small>
11410 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11412 <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>
11415 <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>
11416 <p><small>Hanc marginis exiguitas non caperet.</small>
11422 Multiple tags in TOC
11425 == <i>Foo</i> <b>Bar</b> ==
11427 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11429 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11431 <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>
11432 <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>
11435 <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>
11436 <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>
11441 Tags with parameters in TOC
11444 == <sup class="in-h2">Hello</sup> ==
11446 == <sup class="a > b">Evilbye</sup> ==
11448 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11450 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11451 <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>
11454 <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>
11455 <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>
11460 span tags with directionality in TOC
11463 == <span dir="ltr">C++</span> ==
11465 == <span dir="rtl">זבנג!</span> ==
11467 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11469 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11471 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11473 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11475 <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>
11476 <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>
11477 <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>
11478 <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>
11479 <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>
11482 <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>
11483 <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>
11484 <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>
11485 <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>
11486 <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>
11493 == {{int:headline_sample}} ==
11497 Bug 32057: Title needed when expanding <h> nodes.
11499 title=[[Main Page]]
11503 <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>
11508 Strip marker in urlencode
11510 {{urlencode:x<nowiki/>y}}
11511 {{urlencode:x<nowiki/>y|wiki}}
11512 {{urlencode:x<nowiki/>y|path}}
11539 Strip marker in formatNum
11541 {{formatnum:1<nowiki/>2}}
11542 {{formatnum:1<nowiki/>2|R}}
11550 Strip marker in grammar
11554 {{grammar:elative|foo<nowiki/>bar}}
11561 Strip marker in padleft
11563 {{padleft:|2|x<nowiki/>y}}
11570 Strip marker in padright
11572 {{padright:|2|x<nowiki/>y}}
11579 Strip marker in anchorencode
11581 {{anchorencode:x<nowiki/>y}}
11588 nowiki inside link inside heading (bug 18295)
11590 ==[[foo|x<nowiki>y</nowiki>z]]==
11592 <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>
11597 new support for bdi element (bug 31817)
11599 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11601 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11606 Ignore pipe between table row attributes
11610 |- id=foo | style='color: red'
11618 <tr id="foo" style="color: red">
11625 Gallery override link with WikiLink (bug 34852)
11628 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11631 <ul class="gallery">
11632 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11633 <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>
11634 <div class="gallerytext">
11644 Gallery override link with absolute external link (bug 34852)
11647 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11650 <ul class="gallery">
11651 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11652 <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>
11653 <div class="gallerytext">
11663 Gallery override link with malicious javascript (bug 34852)
11666 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11669 <ul class="gallery">
11670 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11671 <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>
11672 <div class="gallerytext">
11682 Language parser function
11691 Padleft and padright as substr
11693 {{padleft:|3|abcde}}
11694 {{padright:|3|abcde}}
11702 Bug 34939 - Case insensitive link parsing ([HttP://])
11704 [HttP://MediaWiki.Org/]
11706 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11711 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11713 [HttP://MediaWiki.Org/ MediaWiki]
11715 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11720 Bug 34939 - Case insensitive link parsing (HttP://)
11722 HttP://MediaWiki.Org/
11724 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11729 ### Parsoids-specific tests
11730 ### Parsoid-PHP parser incompatibilities
11733 1. SOL-sensitive wikitext tokens as template-args
11747 #### The following section of tests are primarily to test
11748 #### wikitext escaping capabilities of Parsoid.
11749 #### A lot of the tests are disabled for the PHP parser either
11750 #### because of minor newline diffs or other reasons.
11751 #### As Parsoid serializer can handle newlines and other HTML
11752 #### more robustly, some of these tests might get reenabled
11753 #### for the PHP parser.
11755 #### --------------- Headings ---------------
11757 #### 1. Nested inside html <h1>=foo=</h1>
11758 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11759 #### 3. Nested inside html with wikitext split by html tags
11760 #### 4. No escape needed
11761 #### 5. Empty headings <h1></h1>
11762 #### 6. Heading chars in SOL context
11763 #### ----------------------------------------
11765 Headings: 0. Unnested
11767 <nowiki>=foo=</nowiki>
11769 <nowiki>=foo</nowiki>''a''=
11772 </p><p>=foo<i>a</i>=
11777 Headings: 1. Nested inside html
11781 =<nowiki>=foo=</nowiki>=
11782 ==<nowiki>=foo=</nowiki>==
11783 ===<nowiki>=foo=</nowiki>===
11784 ====<nowiki>=foo=</nowiki>====
11785 =====<nowiki>=foo=</nowiki>=====
11786 ======<nowiki>=foo=</nowiki>======
11797 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11802 <nowiki>*bar</nowiki>
11806 <nowiki>=bar=</nowiki>
11814 Headings: 3. Nested inside html with wikitext split by html tags
11818 =<nowiki>=</nowiki>'''bold'''foo==
11820 <h1>=<b>bold</b>foo=</h1>
11824 Headings: 4. No escaping needed (testing just h1 and h2)
11839 <h1><i>=</i>foo=</h1>
11844 Headings: 5. Empty headings
11848 =<nowiki></nowiki>=
11849 ==<nowiki></nowiki>==
11850 ===<nowiki></nowiki>===
11851 ====<nowiki></nowiki>====
11852 =====<nowiki></nowiki>=====
11853 ======<nowiki></nowiki>======
11864 Headings: 6. Heading chars in SOL context
11868 <!--cmt--><nowiki>=h1=</nowiki>
11874 #### --------------- Lists ---------------
11875 #### 0. Outside nests (*foo, etc.)
11876 #### 1. Nested inside html <ul><li>*foo</li></ul>
11877 #### 2. Inside definition lists
11878 #### 3. Only bullets at start should be escaped
11879 #### 4. No escapes needed
11880 #### 5. No unnecessary escapes
11881 #### 6. Escape bullets in SOL position
11882 #### 7. Escape bullets in a multi-line context
11883 #### ----------------------------------------
11886 Lists: 0. Outside nests
11888 <nowiki>*foo</nowiki>
11890 <nowiki>#foo</nowiki>
11898 Lists: 1. Nested inside html
11900 *<nowiki>*foo</nowiki>
11902 *<nowiki>#foo</nowiki>
11904 *<nowiki>:foo</nowiki>
11906 *<nowiki>;foo</nowiki>
11908 #<nowiki>*foo</nowiki>
11910 #<nowiki>#foo</nowiki>
11912 #<nowiki>:foo</nowiki>
11914 #<nowiki>;foo</nowiki>
11936 Lists: 2. Inside definition lists
11938 ;<nowiki>;foo</nowiki>
11940 ;<nowiki>:foo</nowiki>
11942 ;<nowiki>:foo</nowiki>
11945 :<nowiki>:foo</nowiki>
11960 Lists: 3. Only bullets at start of text should be escaped
11962 *<nowiki>*foo*bar</nowiki>
11964 *<nowiki>*foo</nowiki>''it''*bar
11968 <ul><li>*foo<i>it</i>*bar
11974 Lists: 4. No escapes needed
11986 <ul><li><i>foo</i>*bar
11988 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
11993 Lists: 5. No unnecessary escapes
11995 * bar <span><nowiki>[[foo]]</nowiki></span>
11997 *=bar <span><nowiki>[[foo]]</nowiki></span>
11999 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12001 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12003 *=bar <span>foo]]</span>=
12005 <ul><li> bar <span>[[foo]]</span>
12007 <ul><li>=bar <span>[[foo]]</span>
12009 <ul><li>[[bar <span>[[foo]]</span>
12011 <ul><li>]]bar <span>[[foo]]</span>
12013 <ul><li>=bar <span>foo]]</span>=
12019 Lists: 6. Escape bullets in SOL position
12023 <!--cmt--><nowiki>*foo</nowiki>
12030 Lists: 7. Escape bullets in a multi-line context
12040 #### --------------- HRs ---------------
12041 #### 1. Single line
12042 #### -----------------------------------
12045 HRs: 1. Single line
12050 <nowiki>----</nowiki>
12052 <nowiki>=foo=</nowiki>
12054 <nowiki>*foo</nowiki>
12061 #### --------------- Tables ---------------
12062 #### 1a. Simple example
12063 #### 1b. No escaping needed (!foo)
12064 #### 1c. No escaping needed (|foo)
12065 #### 1d. No escaping needed (|}foo)
12067 #### 2a. Nested in td (<td>foo|bar</td>)
12068 #### 2b. Nested in td (<td>foo||bar</td>)
12069 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12071 #### 3a. Nested in th (<th>foo!bar</th>)
12072 #### 3b. Nested in th (<th>foo!!bar</th>)
12073 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12077 #### 4c. No escaping needed
12078 #### --------------------------------------
12081 Tables: 1a. Simple example
12092 Tables: 1b. No escaping needed
12101 Tables: 1c. No escaping needed
12110 Tables: 1d. No escaping needed
12119 Tables: 2a. Nested in td
12124 |<nowiki>foo|bar</nowiki>
12134 Tables: 2b. Nested in td
12139 |<nowiki>foo||bar</nowiki>
12140 |''it''<nowiki>foo||bar</nowiki>
12145 </td><td><i>it</i>foo||bar
12151 Tables: 2c. Nested in td -- no escaping needed
12166 Tables: 3a. Nested in th
12181 Tables: 3b. Nested in th
12186 !<nowiki>foo!!bar</nowiki>
12196 Tables: 3c. Nested in th -- no escaping needed
12211 Tables: 4a. Escape -
12219 |<nowiki>-bar</nowiki>
12223 <tr><th>-bar</th></tr>
12224 <tr><td>-bar</td></tr>
12229 Tables: 4b. Escape +
12237 |<nowiki>+bar</nowiki>
12241 <tr><th>+bar</th></tr>
12242 <tr><td>+bar</td></tr>
12247 Tables: 4c. No escaping needed
12261 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12262 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12266 #### --------------- Links ---------------
12267 #### 1. Quote marks in link text
12268 #### 2. Wikilinks: Escapes needed
12269 #### 3. Wikilinks: No escapes needed
12270 #### 4. Extlinks: Escapes needed
12271 #### 5. Extlinks: No escapes needed
12272 #### --------------------------------------
12274 Links 1. Quote marks in link text
12278 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12280 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12284 Links 2. WikiLinks: Escapes needed
12288 [[Foo|<nowiki>[Foobar]</nowiki>]]
12289 [[Foo|<nowiki>Foobar]</nowiki>]]
12290 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12291 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12292 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12293 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12294 [[Foo|<nowiki>|Bar</nowiki>]]
12296 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12297 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12298 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12299 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12300 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12301 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12302 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12306 Links 3. WikiLinks: No escapes needed
12313 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12314 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12318 Links 4. ExtLinks: Escapes needed
12322 [http://google.com <nowiki>[google]</nowiki>]
12323 [http://google.com <nowiki>google]</nowiki>]
12325 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12326 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12330 Links 5. ExtLinks: No escapes needed
12334 [http://google.com [google]
12336 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12339 #### --------------- Quotes ---------------
12340 #### 1. Quotes inside <b> and <i>
12341 #### 2. Link fragments separated by <i> and <b> tags
12342 #### 3. Link fragments inside <i> and <b>
12343 #### --------------------------------------
12345 1. Quotes inside <b> and <i>
12347 ''<nowiki>'foo'</nowiki>''
12348 ''<nowiki>''foo''</nowiki>''
12349 ''<nowiki>'''foo'''</nowiki>''
12350 '''<nowiki>'foo'</nowiki>'''
12351 '''<nowiki>''foo''</nowiki>'''
12352 '''<nowiki>'''foo'''</nowiki>'''
12353 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12361 <b>foo'<i>bar'</i>baz</b>
12366 2. Link fragments separated by <i> and <b> tags
12368 [[''foo''<nowiki>hello]]</nowiki>
12370 [['''foo'''<nowiki>hello]]</nowiki>
12372 <p>[[<i>foo</i>hello]]
12373 </p><p>[[<b>foo</b>hello]]
12378 2. Link fragments inside <i> and <b>
12379 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12380 this is one of the shortcomings of this format)
12382 ''[[foo''<nowiki>]]</nowiki>
12384 '''[[foo'''<nowiki>]]</nowiki>
12387 </p><p><b>[[foo</b>]]
12391 #### --------------- Paragraphs ---------------
12392 #### 1. No unnecessary escapes
12393 #### --------------------------------------
12396 1. No unnecessary escapes
12398 bar <span><nowiki>[[foo]]</nowiki></span>
12400 =bar <span><nowiki>[[foo]]</nowiki></span>
12402 [[bar <span><nowiki>[[foo]]</nowiki></span>
12404 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12406 <nowiki>=bar </nowiki><span>foo]]</span>=
12408 <p>bar <span>[[foo]]</span>
12409 </p><p>=bar <span>[[foo]]</span>
12410 </p><p>[[bar <span>[[foo]]</span>
12411 </p><p>]]bar <span>[[foo]]</span>
12412 </p><p>=bar <span>foo]]</span>=
12416 #### --------------- PRE ------------------
12417 #### 1. Leading space in SOL context should be escaped
12418 #### --------------------------------------
12420 1. Leading space in SOL context should be escaped
12424 <nowiki> foo</nowiki>
12425 <!--cmt--><nowiki> foo</nowiki>
12432 #### --------------- HTML tags ---------------
12435 #### 3. multi-line html tag
12436 #### --------------------------------------
12442 <a href="http://google.com">google</a>
12444 <a href="http://google.com">google</a>
12450 <nowiki><div>foo</div>
12451 <div style="color:red">foo</div></nowiki>
12453 <p><div>foo</div>
12454 <div style="color:red">foo</div>
12459 3. multi-line html tag
12471 #### --------------- Others ---------------
12475 <nowiki>foo</nowiki>
12477 <p><nowiki>foo</nowiki>
12486 Try for 100% code coverage