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 Broken br tag sanitization
3276 Incorrecly removing closing slashes from correctly formed XHTML
3278 <br style="clear:both;" />
3280 <p><br style="clear:both;" />
3285 Failing to transform badly formed HTML into correct XHTML
3287 <br style="clear: left;">
3288 <br style="clear: right;">
3289 <br style="clear: both;">
3291 <p><br style="clear: left;" />
3292 <br style="clear: right;" />
3293 <br style="clear: both;" />
3298 Handling html with a div self-closing tag
3307 <p><div title />
3311 <p><div title=bar />
3312 <div title=bar/>
3314 <div title="bar/"></div>
3320 Handling html with a br self-closing tag
3329 <p><br title="title" />
3330 <br title="title" />
3339 Horizontal ruler (should it add that extra space?)
3353 Horizontal ruler -- 4+ dashes render hr
3362 Horizontal ruler -- eats additional dashes on the same line
3371 Horizontal ruler -- does not collaps dashes on consecutive lines
3382 Horizontal ruler -- <4 dashes render as plain text
3391 ### Block-level elements
3414 <ol><li>Numbered list
3431 ***#Number on level 4
3433 **#Number on level 3
3434 **#Number on level 3
3438 #** Level 3, but ordered
3441 <ol><li> with numbers
3443 <ul><li> and bullets
3445 <ol><li> and numbers
3447 </li><li>bullets again
3448 <ul><li>bullet level 2
3449 <ul><li>bullet level 3
3450 <ol><li>Number on level 4
3453 </li><li>bullet level 2
3454 <ol><li>Number on level 3
3455 </li><li>Number on level 3
3458 <ol><li>number level 2
3461 <ul><li><ul><li> Level 3
3465 <ol><li><ul><li><ul><li> Level 3, but ordered
3499 Nested lists 3 (first element empty)
3512 Nested lists 4 (first element empty)
3525 Nested lists 5 (both elements empty)
3538 Nested lists 6 (both elements empty)
3551 Nested lists 7 (skip initial nesting levels)
3555 <ul><li><ul><li><ul><li> foo
3563 Nested lists 8 (multiple nesting transitions)
3571 <ul><li><ul><li> bar
3581 1. Lists with start-of-line-transparent tokens before bullets: Comments
3595 2. Lists with start-of-line-transparent tokens before bullets: Template close
3607 List items are not parsed correctly following a <pre> block (bug 785)
3613 <ul><li> <pre>foo</pre>
3614 </li><li> <pre>bar</pre>
3621 List items from template
3632 * notSOL{{inner list}}
3651 List interrupted by empty line or heading
3661 <ul><li><ul><li> bar
3664 <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>
3665 <ul><li> Another list item
3676 Magic Word: {{CURRENTDAY}}
3685 Magic Word: {{CURRENTDAY2}}
3694 Magic Word: {{CURRENTDAYNAME}}
3703 Magic Word: {{CURRENTDOW}}
3712 Magic Word: {{CURRENTMONTH}}
3721 Magic Word: {{CURRENTMONTHABBREV}}
3723 {{CURRENTMONTHABBREV}}
3730 Magic Word: {{CURRENTMONTHNAME}}
3732 {{CURRENTMONTHNAME}}
3739 Magic Word: {{CURRENTMONTHNAMEGEN}}
3741 {{CURRENTMONTHNAMEGEN}}
3748 Magic Word: {{CURRENTTIME}}
3757 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3766 Magic Word: {{CURRENTYEAR}}
3775 Magic Word: {{FULLPAGENAME}}
3777 title=[[User:Ævar Arnfjörð Bjarmason]]
3781 <p>User:Ævar Arnfjörð Bjarmason
3786 Magic Word: {{FULLPAGENAMEE}}
3788 title=[[User:Ævar Arnfjörð Bjarmason]]
3792 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3797 Magic Word: {{NAMESPACE}}
3799 title=[[User:Ævar Arnfjörð Bjarmason]]
3808 Magic Word: {{NAMESPACEE}}
3810 title=[[User:Ævar Arnfjörð Bjarmason]]
3819 Magic Word: {{NAMESPACENUMBER}}
3821 title=[[User:Ævar Arnfjörð Bjarmason]]
3830 Magic Word: {{NUMBEROFFILES}}
3839 Magic Word: {{PAGENAME}}
3841 title=[[User:Ævar Arnfjörð Bjarmason]]
3845 <p>Ævar Arnfjörð Bjarmason
3850 Magic Word: {{PAGENAME}} with metacharacters
3852 title=[['foo & bar = baz']]
3856 <p><i>'foo & bar = baz'</i>
3861 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3863 title=[[*RFC 1234 http://example.com/]]
3867 <p>*RFC 1234 http://example.com/
3872 Magic Word: {{PAGENAMEE}}
3874 title=[[User:Ævar Arnfjörð Bjarmason]]
3878 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3883 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3885 title=[[*RFC 1234 http://example.com/]]
3889 <p>*RFC_1234_http://example.com/
3894 Magic Word: {{REVISIONID}}
3903 Magic Word: {{SCRIPTPATH}}
3912 Magic Word: {{SERVER}}
3916 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3921 Magic Word: {{SERVERNAME}}
3930 Magic Word: {{SITENAME}}
3939 Namespace 1 {{ns:1}}
3948 Namespace 1 {{ns:01}}
3957 Namespace 0 {{ns:0}} (bug 4783)
3965 Namespace 0 {{ns:00}} (bug 4783)
3973 Namespace -1 {{ns:-1}}
3982 Namespace User {{ns:User}}
3991 Namespace User talk {{ns:User_talk}}
4000 Namespace User talk {{ns:uSeR tAlK}}
4009 Namespace File {{ns:File}}
4018 Namespace File {{ns:Image}}
4027 Namespace (lang=de) Benutzer {{ns:User}}
4038 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4044 <p>Benutzer Diskussion
4052 {{urlencode:hi world?!}}
4053 {{urlencode:hi world?!|WIKI}}
4054 {{urlencode:hi world?!|PATH}}
4055 {{urlencode:hi world?!|QUERY}}
4068 Magic links: internal link to RFC (bug 479)
4072 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4077 Magic links: RFC (bug 479)
4081 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4086 Magic links: ISBN (bug 1937)
4090 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4095 Magic links: PMID incorrectly converts space to underscore
4099 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4108 Nonexistent template
4110 {{thistemplatedoesnotexist}}
4112 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4119 This is a test template
4127 <p>This is a test template
4132 Template with explicit namespace
4136 <p>This is a test template
4144 This is a test template with parameter {{{param}}}
4150 {{paramtest|param=foo}}
4152 <p>This is a test template with parameter foo
4157 Template:paramtestnum
4163 Template unnamed parameter
4165 {{paramtestnum|Main Page|the main page}}
4167 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4172 Template:templatesimple
4178 Template:templateredirect
4180 #redirect [[Template:templatesimple]]
4184 Template:templateasargtestnum
4190 Template:templateasargtest
4192 {{template{{{templ}}}}}
4196 Template:templateasargtest2
4202 Template with template name as unnamed argument
4204 {{templateasargtestnum|templatesimple}}
4211 Template with template name as argument
4213 {{templateasargtest|templ=simple}}
4220 Template with template name as argument (2)
4222 {{templateasargtest2|templ=templatesimple}}
4229 Template:templateasargtestdefault
4231 {{{{{templ|templatesimple}}}}}
4241 Template with default value
4243 {{templateasargtestdefault}}
4250 Template with default value (value set)
4252 {{templateasargtestdefault|templ=templa}}
4261 {{templateredirect}}
4268 Template with argument in separate line
4270 {{ templateasargtest |
4278 Template with complex template as argument
4281 param ={{ templateasargtest |
4284 <p>This is a test template with parameter (test)
4289 Template with thumb image (with link in description)
4292 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4294 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>
4299 Template:complextemplate
4301 {{{1}}} {{paramtest|
4302 param ={{{param}}}}}
4306 Template with complex arguments
4309 param ={{ templateasargtest |
4310 templ = simple }}|[[Template:complextemplate|link]]}}
4312 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4317 BUG 553: link with two variables in a piped link
4320 |[[{{{1}}}|{{{2}}}]]
4325 <td>[[{{{1}}}|{{{2}}}]]
4331 Magic variable as template parameter
4333 {{paramtest|param={{SITENAME}}}}
4335 <p>This is a test template with parameter MediaWiki
4342 [[{{{param}}}|link]]
4346 Template parameter as link source
4348 {{linktest|param=Main Page}}
4350 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4355 Template-generated attribute string (k='v')
4357 <span {{attr_str|id|v1}}>bar</span>
4359 <p><span id="v1">bar</span>
4366 including another template, {{paramtest|param={{{arg}}}}}
4370 Template passing argument to another template
4372 {{paramtest2|arg='hmm'}}
4374 <p>including another template, This is a test template with parameter 'hmm'
4385 Template as link source
4389 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4407 Template infinite loop
4411 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4416 Template from main namespace
4435 BUG 529: Template with table, not included at beginning of line
4454 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4474 BUG 41: Template parameters shown as broken links
4486 ''None'' of '''this''' should be
4488 but rather passed unmodified
4492 # hmm, fix this or just deprecate msgnw and document its behavior?
4498 {{msgnw:MSGNW test}}
4500 <p>''None'' of '''this''' should be
4502 but rather passed unmodified
4510 {{int:youhavenewmessages|lots of money|not!}}
4512 <p>You have lots of money (not!).
4519 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4523 <includeonly> and <noinclude> being included
4534 <onlyinclude>Foo</onlyinclude>bar
4538 <onlyinclude> being included
4550 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4554 <onlyinclude> and <includeonly> being included
4563 <includeonly> and <noinclude> on a page
4565 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4572 <onlyinclude> on a page
4574 <onlyinclude>Foo</onlyinclude>bar
4581 Template:Includeonly section
4584 ==Includeonly section==
4590 Bug 6563: Edit link generation for section shown by <includeonly>
4592 {{includeonly section}}
4594 <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>
4595 <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>
4599 # Uses same input as the contents of [[Template:Includeonly section]]
4601 Bug 6563: Section extraction for section shown by <includeonly>
4606 ==Includeonly section==
4614 Bug 6563: Edit link generation for section suppressed by <includeonly>
4617 ==Includeonly section==
4621 <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>
4626 Bug 6563: Section extraction for section suppressed by <includeonly>
4631 ==Includeonly section==
4639 ### <includeonly> and <noinclude> in attributes
4642 0. includeonly around the entire attribute
4644 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4646 <p><span id="v2">bar</span>
4651 1. includeonly in html attr key
4653 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4655 <p><span id="foo">bar</span>
4660 2. includeonly in html attr value
4662 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4663 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4665 <p><span id="v1">bar</span>
4666 <span id="v1">bar</span>
4671 3. includeonly in part of an attr value
4673 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4675 <p><span style="color:red;">bar</span>
4680 ### Testing parsing of templates where a template arg
4681 ### has the same name as the template itself.
4691 Templates: Template Name/Arg clash: 1. Use of positional param
4700 Templates: Template Name/Arg clash: 2. Use of named param
4709 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4718 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4722 Templates: 1. Simple use
4731 Templates: 2. Inside a block tag
4733 <div>{{echo|Foo}}</div>
4740 Templates: P-wrapping: 1a. Templates on consecutive lines
4751 Templates: P-wrapping: 1b. Templates on consecutive lines
4765 Templates: P-wrapping: 1c. Templates on consecutive lines
4768 {{echo|bar}} <div>baz</div>
4777 Templates: Inline Text: 1. Multiple tmeplate uses
4779 {{echo|Foo}}bar{{echo|baz}}
4786 Templates: Inline Text: 2. Back-to-back template uses
4788 {{echo|Foo}}{{echo|bar}}
4795 Templates: Block Tags: 1. Multiple template uses
4797 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4799 <div>Foo</div><div>bar</div><div>baz</div>
4804 Templates: Block Tags: 2. Back-to-back template uses
4806 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4808 <div>Foo</div><div>bar</div>
4813 Templates: Links: 1. Simple example
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: 2. Generation of link href
4824 [[{{echo|Foo}}|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: 3. Generation of part of a link href
4833 [[Fo{{echo|o}}|bar]]
4835 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4840 Templates: Links: 4. Multiple templates generating link href
4842 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4844 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4849 Templates: Links: 5. Generation of link text
4851 [[Foo|{{echo|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: Links: 5. Nested templates (only outermost template should be marked)
4860 {{echo|[[{{echo|Foo}}|bar]]}}
4862 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4867 Templates: HTML Tag: 1. Generation of HTML attr. key
4869 <div {{echo|style}}="color:red;">foo</div>
4871 <div style="color:red;">foo</div>
4876 Templates: HTML Tag: 2. Generation of HTML attr. value
4878 <div style={{echo|'color:red;'}}>foo</div>
4880 <div style="color:red;">foo</div>
4885 Templates: HTML Tag: 3. Generation of HTML attr key and value
4887 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4889 <div style="color:red;">foo</div>
4894 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4896 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4898 <div title="This is a long title with just one piece templated">foo</div>
4903 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4905 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4907 <div title="This is a long title with just one piece templated">foo</div>
4912 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4914 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4916 <div title="This is a long title with just one piece templated">foo</div>
4921 Templates: HTML Tables: 1. Generating start of a HTML table
4923 {{echo|<table><tr><td>foo</td>}}</tr></table>
4925 <table><tr><td>foo</td></tr></table>
4930 Templates: HTML Tables: 2a. Generating middle of a HTML table
4932 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4934 <table><tr><td>foo</td></tr></table>
4939 Templates: HTML Tables: 2b. Generating middle of a HTML table
4941 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4943 <table><tr><td>foo</td></tr></table>
4948 Templates: HTML Tables: 3. Generating end of a HTML table
4950 <table><tr>{{echo|<td>foo</td></tr></table>}}
4952 <table><tr><td>foo</td></tr></table>
4957 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
4959 {{echo|<table>}}<tr><td>foo</td></tr></table>
4961 <table><tr><td>foo</td></tr></table>
4966 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
4968 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4970 <table><tr><td>foo</td></tr></table>
4975 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
4977 <table><tr>{{echo|<td>}}foo</td></tr></table>
4979 <table><tr><td>foo</td></tr></table>
4984 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
4986 <table><tr><td>foo{{echo|</td>}}</tr></table>
4988 <table><tr><td>foo</td></tr></table>
4993 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
4995 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4997 <table><tr><td>foo</td></tr></table>
5002 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5004 <table><tr><td>foo</td></tr>{{echo|</table>}}
5006 <table><tr><td>foo</td></tr></table>
5011 Templates: Wiki Tables: 1. Fostering of entire template content
5019 <tr><td></td></tr></table>
5024 Templates: Wiki Tables: 2. Fostering of partial template content
5034 <tr><td></td></tr></table>
5039 Templates: Wiki Tables: 3. td-content via multiple templates
5042 {{echo|{{pipe}}a}}{{echo|b}}
5053 Templates: Lists: Multi-line list-items via templates
5055 *{{echo|a {{nonexistent|
5057 *{{echo|b {{nonexistent|
5060 <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>
5061 </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>
5067 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5069 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5071 <p><i>ab</i>c<i>d</i>e
5076 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5077 (PHP parser generates misnested html)
5081 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5083 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5087 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5088 (PHP parser generates misnested html)
5092 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5095 <div><i>b</i>c<i>d</i></div>
5100 Templates: Ugly nesting: 4. Divs opened/closed across templates
5102 a<div>b{{echo|c</div>d}}e
5109 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5115 |{{echo|foo</table>}}
5119 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5120 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5121 bar</span><span about="#mwt1">
5126 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5136 <td>1. {{echo|foo </table>}}</td>
5138 <td>2. {{echo|baz </table>}}</td>
5151 <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">
5152 <tbody><tr data-parsoid="{"stx":"html"}">
5153 <td data-parsoid="{"stx":"html"}">
5154 <table data-parsoid="{"stx":"html"}">
5155 <tbody><tr data-parsoid="{"stx":"html"}">
5156 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5157 <td data-parsoid="{"stx":"html"}"> bar </td>
5158 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5159 </span><span about="#mwt1">
5161 abc</span><span about="#mwt1">
5162 </span><span about="#mwt1">
5163 </span><span about="#mwt1">
5164 </span><span about="#mwt1">
5165 </span><span about="#mwt1">
5167 xyz</span><span about="#mwt1">
5168 </span><span about="#mwt1">
5173 Parser Functions: 1. Simple example
5182 Parser Functions: 2. Nested use (only outermost should be marked up)
5191 ### Pre-save transform tests
5194 pre-save transform: subst:
5200 This is a test template
5204 pre-save transform: normal template
5214 pre-save transform: nonexistent template
5218 {{thistemplatedoesnotexist}}
5220 {{thistemplatedoesnotexist}}
5225 pre-save transform: subst magic variables
5234 # This is bug 89, which I fixed. -- wtm
5236 pre-save transform: subst: templates with parameters
5240 {{subst:paramtest|param="something else"}}
5242 This is a test template with parameter "something else"
5248 <nowiki>'''not wiki'''</nowiki>
5252 pre-save transform: nowiki in subst (bug 1188)
5256 {{subst:nowikitest}}
5258 <nowiki>'''not wiki'''</nowiki>
5263 Template:commenttest
5265 This template has <!-- a comment --> in it.
5269 pre-save transform: comment in subst (bug 1936)
5273 {{subst:commenttest}}
5275 This template has <!-- a comment --> in it.
5279 pre-save transform: unclosed tag
5283 <nowiki>'''not wiki'''
5285 <nowiki>'''not wiki'''
5289 pre-save transform: mixed tag case
5293 <NOwiki>'''not wiki'''</noWIKI>
5295 <NOwiki>'''not wiki'''</noWIKI>
5299 pre-save transform: unclosed comment in <nowiki>
5303 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5305 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5311 <span onmouseover="alert('crap')">Oh no</span>
5315 (confirming safety of fix for subst bug 1936)
5317 {{Template:dangerous}}
5319 <p><span>Oh no</span>
5324 pre-save transform: comment containing gallery (bug 5024)
5328 <!-- <gallery>data</gallery> -->
5330 <!-- <gallery>data</gallery> -->
5334 pre-save transform: comment containing extension
5338 <!-- <tag>data</tag> -->
5340 <!-- <tag>data</tag> -->
5344 pre-save transform: comment containing nowiki
5348 <!-- <nowiki>data</nowiki> -->
5350 <!-- <nowiki>data</nowiki> -->
5354 pre-save transform: <noinclude> in subst (bug 3298)
5364 pre-save transform: <onlyinclude> in subst (bug 3298)
5376 {{<includeonly>subst:</includeonly>Includes}}
5380 Template:SafeSubstTest
5382 {{<includeonly>safesubst:</includeonly>Includes}}
5386 bug 22297: safesubst: works during PST
5390 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5396 bug 22297: safesubst: works during normal parse
5405 subst: does not work during normal parse
5409 <p>{{subst:Includes}}
5414 pre-save transform: context links ("pipe trick")
5418 [[Article (context)|]]
5421 [[Bar:Article (context)|]]
5422 [[:Bar:Article (context)|]]
5424 [[|Article (context)]]
5428 [[Article (context)|Article]]
5429 [[Bar:Article|Article]]
5430 [[:Bar:Article|Article]]
5431 [[Bar:Article (context)|Article]]
5432 [[:Bar:Article (context)|Article]]
5434 [[Article (context)]]
5435 [[Bar:X (Y) Z|X (Y) Z]]
5436 [[:Bar:X (Y) Z|X (Y) Z]]
5440 pre-save transform: context links ("pipe trick") with interwiki prefix
5444 [[interwiki:Article|]]
5445 [[:interwiki:Article|]]
5446 [[interwiki:Bar:Article|]]
5447 [[:interwiki:Bar:Article|]]
5449 [[interwiki:Article|Article]]
5450 [[:interwiki:Article|Article]]
5451 [[interwiki:Bar:Article|Bar:Article]]
5452 [[:interwiki:Bar:Article|Bar:Article]]
5456 pre-save transform: context links ("pipe trick") with parens in title
5458 pst title=[[Somearticle (context)]]
5462 [[Article (context)|Article]]
5466 pre-save transform: context links ("pipe trick") with comma in title
5468 pst title=[[Someplace, Somewhere]]
5471 [[Otherplace, Elsewhere|]]
5472 [[Otherplace, Elsewhere, Anywhere|]]
5474 [[Otherplace, Somewhere|Otherplace]]
5475 [[Otherplace, Elsewhere|Otherplace]]
5476 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5480 pre-save transform: context links ("pipe trick") with parens and comma
5482 pst title=[[Someplace (IGNORED), Somewhere]]
5485 [[Otherplace (place), Elsewhere|]]
5487 [[Otherplace, Somewhere|Otherplace]]
5488 [[Otherplace (place), Elsewhere|Otherplace]]
5492 pre-save transform: context links ("pipe trick") with comma and parens
5494 pst title=[[Who, me? (context)]]
5497 [[Me, Myself, and I (1937 song)|]]
5499 [[Yes, you. (context)|Yes, you.]]
5500 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5504 pre-save transform: context links ("pipe trick") with namespace
5506 pst title=[[Ns:Somearticle]]
5510 [[Ns:Article|Article]]
5514 pre-save transform: context links ("pipe trick") with namespace and parens
5516 pst title=[[Ns:Somearticle (context)]]
5520 [[Ns:Article (context)|Article]]
5524 pre-save transform: context links ("pipe trick") with namespace and comma
5526 pst title=[[Ns:Somearticle, Context, Whatever]]
5530 [[Ns:Article, Context, Whatever|Article]]
5534 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5536 pst title=[[Ns:Somearticle, Context (context)]]
5540 [[Ns:Article (context)|Article]]
5544 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5546 pst title=[[Ns:Somearticle (IGNORED), Context]]
5550 [[Ns:Article, Context|Article]]
5554 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5558 [[Article(context)|]]
5559 [[Bar:Article(context)|]]
5560 [[:Bar:Article(context)|]]
5561 [[|Article(context)]]
5565 [[Article(context)|Article]]
5566 [[Bar:Article(context)|Article]]
5567 [[:Bar:Article(context)|Article]]
5568 [[Article(context)]]
5570 [[:Bar:X(Y)Z|X(Y)Z]]
5574 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5578 [[Article (context)|]]
5579 [[Bar:Article (context)|]]
5580 [[:Bar:Article (context)|]]
5581 [[|Article (context)]]
5585 [[Article (context)|Article]]
5586 [[Bar:Article (context)|Article]]
5587 [[:Bar:Article (context)|Article]]
5588 [[Article (context)]]
5589 [[Bar:X (Y) Z|X (Y) Z]]
5590 [[:Bar:X (Y) Z|X (Y) Z]]
5594 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5598 [[Article(context)|]]
5599 [[Bar:Article(context)|]]
5600 [[:Bar:Article(context)|]]
5601 [[|Article(context)]]
5605 [[Article(context)|Article]]
5606 [[Bar:Article(context)|Article]]
5607 [[:Bar:Article(context)|Article]]
5608 [[Article(context)]]
5610 [[:Bar:X(Y)Z|X(Y)Z]]
5614 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5618 [[Article (context), context|]]
5619 [[Article (context),context|]]
5620 [[Bar:Article (context), context|]]
5621 [[Bar:Article (context),context|]]
5622 [[:Bar:Article (context), context|]]
5623 [[:Bar:Article (context),context|]]
5625 [[Article (context), context|Article]]
5626 [[Article (context),context|Article]]
5627 [[Bar:Article (context), context|Article]]
5628 [[Bar:Article (context),context|Article]]
5629 [[:Bar:Article (context), context|Article]]
5630 [[:Bar:Article (context),context|Article]]
5634 pre-save transform: trim trailing empty lines
5638 Empty lines are trimmed
5644 Empty lines are trimmed
5648 pre-save transform: Signature expansion
5653 * <noinclude>~~~</noinclude>
5654 * <includeonly>~~~</includeonly>
5655 * <onlyinclude>~~~</onlyinclude>
5657 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5658 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5659 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5660 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5665 pre-save transform: Signature expansion in nowiki tags (bug 93)
5671 <nowiki>~~~~</nowiki>
5673 <includeonly><nowiki>~~~~</nowiki></includeonly>
5675 <noinclude><nowiki>~~~~</nowiki></noinclude>
5677 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5679 {{subst:Foo}} shall be converted to FOO
5681 As well as inside noinclude/onlyinclude
5682 <noinclude>{{subst:Foo}}</noinclude>
5683 <onlyinclude>{{subst:Foo}}</onlyinclude>
5685 But not inside includeonly
5686 <includeonly>{{subst:Foo}}</includeonly>
5690 <nowiki>~~~~</nowiki>
5692 <includeonly><nowiki>~~~~</nowiki></includeonly>
5694 <noinclude><nowiki>~~~~</nowiki></noinclude>
5696 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5698 FOO shall be converted to FOO
5700 As well as inside noinclude/onlyinclude
5701 <noinclude>FOO</noinclude>
5702 <onlyinclude>FOO</onlyinclude>
5704 But not inside includeonly
5705 <includeonly>{{subst:Foo}}</includeonly>
5709 ### Message transform tests
5712 message transform: magic variables
5722 message transform: should not transform wiki markup
5732 message transform: <noinclude> in transcluded template (bug 4926)
5742 message transform: <onlyinclude> in transcluded template (bug 4926)
5752 {{#special:}} page name, known
5756 {{#special:Recentchanges}}
5758 Special:RecentChanges
5762 {{#special:}} page name with subpage, known
5766 {{#special:Recentchanges/param}}
5768 Special:RecentChanges/param
5772 {{#special:}} page name, unknown
5776 {{#special:foobarnonexistent}}
5778 No such special page
5782 {{#speciale:}} page name, known
5786 {{#speciale:Recentchanges}}
5788 Special:RecentChanges
5792 {{#speciale:}} page name with subpage, known
5796 {{#speciale:Recentchanges/param}}
5798 Special:RecentChanges/param
5802 {{#speciale:}} page name, unknown
5806 {{#speciale:foobarnonexistent}}
5808 No_such_special_page
5817 [[Image:foobar.jpg]]
5819 <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>
5826 [[Image:foobar.jpg|right]]
5828 <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>
5833 Simple image (using File: namespace, now canonical)
5837 <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>
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 empty attribute
5853 [[Image:foobar.jpg|right||Caption text]]
5855 <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>
5860 Image with link tails
5862 123[[Image:foobar.jpg]]456
5863 123[[Image:foobar.jpg|right]]456
5864 123[[Image:foobar.jpg|thumb]]456
5866 <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
5868 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
5869 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
5874 Image with multiple captions -- only last one is accepted
5876 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5878 <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>
5883 Image with link parameter, wiki target
5885 [[Image:foobar.jpg|link=Target page]]
5887 <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>
5892 Image with link parameter, URL target
5894 [[Image:foobar.jpg|link=http://example.com/]]
5896 <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>
5901 Image with link parameter, wgExternalLinkTarget
5903 [[Image:foobar.jpg|link=http://example.com/]]
5905 wgExternalLinkTarget='foobar'
5907 <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>
5912 Image with link parameter, wgNoFollowLinks set to false
5914 [[Image:foobar.jpg|link=http://example.com/]]
5916 wgNoFollowLinks=false
5918 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5923 Image with link parameter, wgNoFollowDomainExceptions
5925 [[Image:foobar.jpg|link=http://example.com/]]
5927 wgNoFollowDomainExceptions='example.com'
5929 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5934 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5936 [[Image:foobar.jpg|link=http://example.com/|Title]]
5938 wgExternalLinkTarget='foobar'
5940 <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>
5945 Image with empty link parameter
5947 [[Image:foobar.jpg|link=]]
5949 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5954 Image with link parameter (wiki target) and unnamed parameter
5956 [[Image:foobar.jpg|link=Target page|Title]]
5958 <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>
5963 Image with link parameter (URL target) and unnamed parameter
5965 [[Image:foobar.jpg|link=http://example.com/|Title]]
5967 <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>
5972 Thumbnail image with link parameter
5974 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5976 <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>
5981 Image with frame and link
5983 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5985 <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>
5990 Image with frame and link and explicit alt
5992 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5994 <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>
5999 Image with wiki markup in implicit alt
6001 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6003 <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>
6008 Image with wiki markup in explicit alt
6010 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6012 <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>
6017 Link to image page- image page normally doesn't exists, hence edit link
6018 Add test with existing image page
6019 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6023 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6028 bug 18784 Link to non-existent image page with caption should use caption as link text
6030 [[:Image:test|caption]]
6032 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6037 Frameless image caption with a free URL
6039 [[Image:foobar.jpg|http://example.com]]
6041 <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>
6046 Thumbnail image caption with a free URL
6048 [[Image:foobar.jpg|thumb|http://example.com]]
6050 <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>
6055 Thumbnail image caption with a free URL and explicit alt
6057 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6059 <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>
6064 BUG 1887: A ISBN with a thumbnail
6066 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
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><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6073 BUG 1887: A RFC with a thumbnail
6075 [[Image:foobar.jpg|thumb|This is RFC 12354]]
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>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6082 BUG 1887: A mailto link with a thumbnail
6084 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6086 <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>
6090 # Pending resolution to bug 368
6092 BUG 648: Frameless image caption with a link
6094 [[Image:foobar.jpg|text with a [[link]] in it]]
6096 <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>
6101 BUG 648: Frameless image caption with a link (suffix)
6103 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6105 <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>
6110 BUG 648: Frameless image caption with an interwiki link
6112 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6114 <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>
6119 BUG 648: Frameless image caption with a piped interwiki link
6121 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6123 <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>
6128 Escape HTML special chars in image alt text
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 BUG 499: Alt text should have Ӓ, not &1234;
6139 [[Image:foobar.jpg|♀]]
6141 <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>
6146 Broken image caption with link
6148 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6150 <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.
6155 Image caption containing another image
6157 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6159 <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>
6164 Image caption containing a newline
6166 [[Image:Foobar.jpg|This
6169 <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>
6175 Bug 3090: External links other than http: in image captions
6177 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6179 <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>
6186 [[Image:foobar.jpg|a|class=b]]
6188 <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>
6195 #REDIRECT [[File:Barfoo.jpg]]
6201 [[Image:Barfoo.jpg]]
6203 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6208 Missing image with uploads disabled
6212 [[Image:Foobaz.jpg]]
6214 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6223 Subpage test/subpage
6231 subpage title=[[Subpage test]]
6235 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6240 Subpage noslash link
6242 subpage title=[[Subpage test]]
6246 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6255 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6260 BUG 561: {{/Subpage}}
6262 subpage title=[[Page]]
6266 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6274 Category:MediaWiki User's Guide
6282 [[:Category:MediaWiki User's Guide]]
6284 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6293 [[Category:MediaWiki User's Guide]]
6295 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6299 PAGESINCATEGORY invalid title fatal (r33546 fix)
6301 {{PAGESINCATEGORY:<bogus>}}
6308 Category with different sort key
6312 [[Category:MediaWiki User's Guide|Foo]]
6314 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6318 Category with identical sort key
6322 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6324 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6328 Category with empty sort key
6333 [[Category:MediaWiki User's Guide|]]
6335 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6339 Category with empty sort key and parentheses
6344 [[Category:Foo (bar)|]]
6346 [[Category:Foo (bar)|Foo]]
6350 Category with link tail
6355 123[[Category:Foo]]456
6357 123[[Category:Foo]]456
6361 Category with template
6366 [[Category:{{echo|Foo}}]]
6368 [[Category:{{echo|Foo}}]]
6372 Category with template in sort key
6377 [[Category:Foo|{{echo|Bar}}]]
6379 [[Category:Foo|{{echo|Bar}}]]
6383 Category with template in sort key and title
6388 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6390 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6394 Category / paragraph interactions
6396 Foo [[Category:Baz]] Bar
6398 Foo [[Category:Baz]]
6406 [[Category:Baz]] Bar
6419 {{echo|[[Category:Baz]]}}
6434 ### Inter-language links
6437 Inter-language links
6443 [[zh:食品]]
6445 es:Alimento fr:Nourriture zh:食品
6449 Duplicate interlanguage links (bug 24502)
6465 Basic section headings
6472 ===Smaller headline===
6475 <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>
6478 <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>
6481 <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>
6487 Section headings with TOC
6490 === Subheadline 1 ===
6491 ===== Skipping a level =====
6492 ====== Skipping a level ======
6496 ===Another headline===
6498 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6500 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6502 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6504 <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>
6506 <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>
6513 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6515 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6520 <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>
6521 <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>
6522 <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>
6523 <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>
6524 <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>
6527 <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>
6531 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6533 Handling of sections up to level 6 and beyond
6536 == Level 2 Heading==
6537 === Level 3 Heading===
6538 ==== Level 4 Heading====
6539 ===== Level 5 Heading=====
6540 ====== Level 6 Heading======
6541 ======= Level 7 Heading=======
6542 ======== Level 8 Heading========
6543 ========= Level 9 Heading=========
6544 ========== Level 10 Heading==========
6546 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6548 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6550 <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>
6552 <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>
6554 <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>
6556 <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>
6558 <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>
6559 <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>
6560 <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>
6561 <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>
6562 <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>
6575 <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>
6576 <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>
6577 <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>
6578 <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>
6579 <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>
6580 <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>
6581 <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>
6582 <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>
6583 <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>
6584 <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>
6589 TOC regression (bug 9764)
6593 ==== title 1.1.1 ====
6598 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6600 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6602 <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>
6604 <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>
6607 <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>
6610 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6612 <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>
6617 <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>
6618 <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>
6619 <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>
6620 <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>
6621 <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>
6622 <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>
6627 TOC with wgMaxTocLevel=3 (bug 6204)
6633 ==== title 1.1.1 ====
6638 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6640 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6642 <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>
6643 <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>
6646 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6648 <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>
6653 <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>
6654 <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>
6655 <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>
6656 <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>
6657 <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>
6658 <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>
6663 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6669 ====Section 1.1.1====
6670 ====Section 1.1.1.1====
6673 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6675 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6677 <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>
6680 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6683 <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>
6684 <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>
6685 <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>
6686 <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>
6687 <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>
6693 Resolving duplicate section names
6698 <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>
6699 <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>
6704 Resolving duplicate section names with differing case (bug 10721)
6709 <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>
6710 <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>
6722 Template with sections, __NOTOC__
6729 <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>
6730 <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>
6731 <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>
6732 <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>
6737 __NOEDITSECTION__ keyword
6743 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6744 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6749 Link inside a section heading
6751 ==Section with a [[Main Page|link]] in it==
6753 <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>
6758 TOC regression (bug 12077)
6765 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6767 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6769 <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>
6772 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6775 <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>
6776 <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>
6777 <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>
6782 BUG 1219 URL next to image (good)
6784 http://example.com [[Image:foobar.jpg]]
6786 <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>
6791 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6794 The line above must have a trailing space!
6797 But just in case it doesn't...
6799 <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>
6800 <p>The line above must have a trailing space!
6802 <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>
6803 <p>But just in case it doesn't...
6808 Header with special characters (bug 25462)
6810 The tooltips shall not show entities to the user (ie. be double escaped)
6827 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6829 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6831 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6832 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6833 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6834 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6835 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6838 <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>
6841 <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>
6844 <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>
6847 <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>
6850 <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>
6856 Headers with excess '=' characters
6857 (Are similar tests necessary beyond the 1st level?)
6861 =''italic'' heading==
6862 ==''italic'' heading=
6864 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6866 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6867 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6868 <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>
6869 <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>
6872 <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>
6873 <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>
6874 <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>
6875 <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>
6880 BUG 1219 URL next to image (broken)
6882 http://example.com[[Image:foobar.jpg]]
6884 <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>
6889 Bug 1186 news: in the middle of text
6891 http://en.wikinews.org/wiki/Wikinews:Workplace
6893 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6899 Namespaced link must have a title
6908 Namespaced link must have a title (bad fragment version)
6910 [[Project:#fragment]]
6912 <p>[[Project:#fragment]]
6918 div with no attributes
6920 <div>HTML rocks</div>
6922 <div>HTML rocks</div>
6927 div with double-quoted attribute
6929 <div id="rock">HTML rocks</div>
6931 <div id="rock">HTML rocks</div>
6936 div with single-quoted attribute
6938 <div id='rock'>HTML rocks</div>
6940 <div id="rock">HTML rocks</div>
6945 div with unquoted attribute
6947 <div id=rock>HTML rocks</div>
6949 <div id="rock">HTML rocks</div>
6954 div with illegal double attributes
6956 <div id="a" id="b">HTML rocks</div>
6958 <div id="b">HTML rocks</div>
6963 HTML multiple attributes correction
6965 <p class="error" class="awesome">Awesome!</p>
6967 <p class="awesome">Awesome!</p>
6972 Table multiple attributes correction
6975 !+ class="error" class="awesome"| status
6980 <th class="awesome"> status
6988 <DIV ID="x">HTML ROCKS</DIV>
6990 <div id="x">HTML ROCKS</div>
6996 text with amp in the middle of nowhere
7000 <p>Remember AT&T?
7005 text with character entity: eacute
7007 I always thought é was a cute letter.
7009 <p>I always thought é was a cute letter.
7014 text with undefined character entity: xacute
7016 I always thought &xacute; was a cute letter.
7018 <p>I always thought &xacute; was a cute letter.
7030 [[Media:Foobar.jpg]]
7032 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7037 Media link with text
7039 [[Media:Foobar.jpg|A neat file to look at]]
7041 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7045 # FIXME: this is still bad HTML tag nesting
7047 Media link with nasty text
7048 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7050 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7052 <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>
7057 Media link to nonexistent file (bug 1702)
7059 [[Media:No such.jpg]]
7061 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7066 Image link to nonexistent file (bug 1850 - good)
7068 [[Image:No such.jpg]]
7070 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7075 :Image link to nonexistent file (bug 1850 - bad)
7077 [[:Image:No such.jpg]]
7079 <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>
7086 Character reference normalization in link text (bug 1938)
7088 [[Main Page|this&that]]
7090 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7097 Test for unicode normalization
7099 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7103 (bug 19451) Links should refer to the normalized form.
7111 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7112 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7113 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7114 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7115 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7120 Empty attribute crash test (bug 2067)
7122 <font color="">foo</font>
7124 <p><font color="">foo</font>
7129 Empty attribute crash test single-quotes (bug 2067)
7131 <font color=''>foo</font>
7133 <p><font color="">foo</font>
7138 Attribute test: equals, then nothing
7140 <font color=>foo</font>
7147 Attribute test: unquoted value
7149 <font color=x>foo</font>
7151 <p><font color="x">foo</font>
7156 Attribute test: unquoted but illegal value (hash)
7158 <font color=#x>foo</font>
7160 <p><font color="#x">foo</font>
7165 Attribute test: no value
7167 <font color>foo</font>
7169 <p><font color="color">foo</font>
7174 Bug 2095: link with three closing brackets
7178 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7183 Bug 2095: link with pipe and three closing brackets
7187 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7192 Bug 2095: link with pipe and three closing brackets, version 2
7194 [[Main Page|[http://example.com/]]]
7196 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7206 Template:Dangerous attribute
7208 " onmouseover="alert(document.cookie)
7212 Template:Dangerous style attribute
7214 border-size: expression(alert(document.cookie))
7220 <div style="float: right; {{{1}}}">Magic div</div>
7224 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7226 <div title="{{test}}"></div>
7228 <div title="This is a test template"></div>
7233 Bug 2304: HTML attribute safety (dangerous template; 2309)
7235 <div title="{{dangerous attribute}}"></div>
7237 <div title=""></div>
7242 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7244 <div style="{{dangerous style attribute}}"></div>
7246 <div style="/* insecure input */"></div>
7251 Bug 2304: HTML attribute safety (safe parameter; 2309)
7253 {{div style|width: 200px}}
7255 <div style="float: right; width: 200px">Magic div</div>
7260 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7262 {{div style|width: expression(alert(document.cookie))}}
7264 <div style="/* insecure input */">Magic div</div>
7269 Bug 2304: HTML attribute safety (unsafe breakout parameter; 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 (unsafe breakout parameter 2; 2309)
7280 {{div style|" ><script>alert(document.cookie)</script>}}
7282 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7287 Bug 2304: HTML attribute safety (link)
7289 <div title="[[Main Page]]"></div>
7291 <div title="[[Main Page]]"></div>
7296 Bug 2304: HTML attribute safety (italics)
7298 <div title="''foobar''"></div>
7300 <div title="''foobar''"></div>
7305 Bug 2304: HTML attribute safety (bold)
7307 <div title="'''foobar'''"></div>
7309 <div title="'''foobar'''"></div>
7315 Bug 2304: HTML attribute safety (ISBN)
7317 <div title="ISBN 1234567890"></div>
7319 <div title="ISBN 1234567890"></div>
7324 Bug 2304: HTML attribute safety (RFC)
7326 <div title="RFC 1234"></div>
7328 <div title="RFC 1234"></div>
7333 Bug 2304: HTML attribute safety (PMID)
7335 <div title="PMID 1234567890"></div>
7337 <div title="PMID 1234567890"></div>
7342 Bug 2304: HTML attribute safety (web link)
7344 <div title="http://example.com/"></div>
7346 <div title="http://example.com/"></div>
7351 Bug 2304: HTML attribute safety (named web link)
7353 <div title="[http://example.com/ link]"></div>
7355 <div title="[http://example.com/ link]"></div>
7360 Bug 3244: HTML attribute safety (extension; safe)
7362 <div style="<nowiki>background:blue</nowiki>"></div>
7364 <div style="background:blue"></div>
7369 Bug 3244: HTML attribute safety (extension; unsafe)
7371 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7373 <div style="/* insecure input */"></div>
7377 # More MSIE fun discovered by Tom Gilder
7380 MSIE CSS safety test: spurious slash
7382 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7384 <div style="/* insecure input */">evil</div>
7389 MSIE CSS safety test: hex code
7391 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7393 <div style="/* insecure input */">evil</div>
7398 MSIE CSS safety test: comment in url
7400 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7402 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7407 MSIE CSS safety test: comment in expression
7409 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7411 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7417 Table attribute legitimate extension
7420 !+ style="<nowiki>color:blue</nowiki>"| status
7425 <th style="color:blue"> status
7431 Table attribute safety
7434 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7439 <th style="/* insecure input */"> status
7445 CSS line continuation 1
7447 <div style="background-image: u\ rl(test.jpg);"></div>
7449 <div style="/* insecure input */"></div>
7454 CSS line continuation 2
7456 <div style="background-image: u\ rl(test.jpg); "></div>
7458 <div style="/* insecure input */"></div>
7469 Expansion of multi-line templates in attribute values (bug 6255)
7471 <div style="background: {{identity|#00FF00}}">-</div>
7473 <div style="background: #00FF00">-</div>
7479 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7481 <div style="background:
7484 <div style="background: #00FF00">-</div>
7489 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7491 <div style="background: #00FF00">-</div>
7493 <div style="background: #00FF00">-</div>
7498 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7501 Parser hook: empty input
7514 Parser hook: empty input using terminated empty elements
7527 Parser hook: empty input using terminated empty elements (space before)
7540 Parser hook: basic input
7554 Parser hook: case insensitive
7568 Parser hook: case insensitive, redux
7581 Parser hook: nested tags
7585 <tag><tag></tag></tag>
7596 Parser hook: basic arguments
7598 <tag width=200 height = "100" depth = '50' square></tag>
7606 'square' => 'square',
7613 Parser hook: argument containing a forward slash (bug 5344)
7615 <tag filename='/tmp/bla'></tag>
7620 'filename' => '/tmp/bla',
7627 Parser hook: empty input using terminated empty elements (bug 2374)
7640 # </tag> should be output literally since there is no matching tag that begins it
7642 Parser hook: basic arguments using terminated empty elements (bug 2374)
7644 <tag width=200 height = "100" depth = '50' square/>
7654 'square' => 'square',
7663 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7667 Parser hook: static parser hook not inside a comment
7669 <statictag>hello, world</statictag>
7670 <statictag action=flush/>
7678 Parser hook: static parser hook inside a comment
7680 <!-- <statictag>hello, world</statictag> -->
7681 <statictag action=flush/>
7687 # Nested template calls; this case was broken by Parser.php rev 1.506,
7691 Template:One-parameter
7693 (My parameter is: {{{1}}})
7697 Template:Map-one-parameter
7703 Nested template calls
7705 {{Map-one-parameter|One-parameter|param}}
7707 <p>(My parameter is: param)
7716 Sanitizer: Closing of open tags
7718 <s></s><table></table>
7720 <s></s><table></table>
7725 Sanitizer: Closing of open but not closed tags
7734 Sanitizer: Closing of closed but not open tags
7743 Sanitizer: Closing of closed but not open table tags
7745 Table not started</td></tr></table>
7747 <p>Table not started</td></tr></table>
7752 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7754 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7756 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7761 Sanitizer: Validating the contents of the id attribute (bug 4515)
7767 Something, but definitely not <br id="9" />...
7771 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7775 <br id="foo" /><br id="foo" />
7777 Something need to be done. foo-2 ?
7781 Language converter: output gets cut off unexpectedly (bug 5757)
7785 this bit is safe: }-
7787 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7789 then we get cut off here: }-
7791 all additional text is vanished
7793 <p>this bit is safe: }-
7794 </p><p>but if we add a conversion instance: xxx
7795 </p><p>then we get cut off here: }-
7796 </p><p>all additional text is vanished
7801 Self closed html pairs (bug 5487)
7804 <center><font id="bug" />Centered text</center>
7805 <div><font id="bug2" />In div text</div>
7807 <center><font id="bug" />Centered text</center>
7808 <div><font id="bug2" />In div text</div>
7817 Punctuation: nbsp before exclamation
7821 <p>C'est grave !
7826 Punctuation: CSS !important (bug 11874)
7828 <div style="width:50% !important">important</div>
7830 <div style="width:50% !important">important</div>
7835 Punctuation: CSS ! important (bug 11874; with space after)
7837 <div style="width:50% ! important">important</div>
7839 <div style="width:50% ! important">important</div>
7845 HTML bullet list, closed tags (bug 5497)
7860 HTML bullet list, unclosed tags (bug 5497)
7877 HTML ordered list, closed tags (bug 5497)
7892 HTML ordered list, unclosed tags (bug 5497)
7909 HTML nested bullet list, closed tags (bug 5497)
7934 HTML nested bullet list, open tags (bug 5497)
7959 HTML nested ordered list, closed tags (bug 5497)
7984 HTML nested ordered list, open tags (bug 5497)
8009 HTML ordered list item with parameters oddity
8011 <ol><li id="fragment">One</li></ol>
8013 <ol><li id="fragment">One</li></ol>
8018 bug 5918: autonumbering
8020 [http://first/] [http://second] [ftp://ftp]
8024 [mailto:enclosed@mail.tld With target]
8026 [mailto:enclosed@mail.tld]
8028 mailto:inline@mail.tld
8030 <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>
8031 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8032 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8033 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8034 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8040 # Security and HTML correctness
8041 # From Nick Jenkins' fuzz testing
8045 Fuzz testing: Parser13
8060 Fuzz testing: Parser14
8065 <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>
8066 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8068 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8075 Fuzz testing: Parser14-table
8080 <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>
8081 <table style="__TOC__">
8087 # Known to produce bogus xml (extra </td>)
8089 Fuzz testing: Parser16
8109 Fuzz testing: Parser21
8112 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8117 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8127 Fuzz testing: Parser22
8129 http://===r:::https://b
8133 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8141 # Known to produce bad XML for now
8143 Fuzz testing: Parser24
8150 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8151 <br style="onmouseover='alert(document.cookie);' " />
8153 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8158 <u class="|">}}}} >
8159 <br style="onmouseover='alert(document.cookie);'" />
8161 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8170 # Note: the current result listed for this is not what the original one was,
8171 # but the original bug was JavaScript injection, which is fixed in any case.
8172 # It's not clear that the original result listed was any more correct than the
8173 # current one. Original result:
8176 # <li class="||">
8177 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8179 Fuzz testing: Parser25 (bug 6055)
8185 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8187 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8192 Fuzz testing: URL adjacent extension (with space, clean)
8195 http://example.com <nowiki>junk</nowiki>
8197 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8202 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8205 http://example.com<nowiki>junk</nowiki>
8207 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8212 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8215 http://example.com<pre>junk</pre>
8217 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8222 Fuzz testing: image with bogus manual thumbnail
8224 [[Image:foobar.jpg|thumbnail= ]]
8226 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8231 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8233 <pre dir=" "></pre>
8235 <pre dir=" "></pre>
8240 Parsing optional HTML elements (Bug 6171)
8245 <td> Some tabular data</td>
8246 <td> More tabular data ...
8247 <td> And yet som tabular data</td>
8253 <td> Some tabular data</td>
8254 <td> More tabular data ...
8255 </td><td> And yet som tabular data</td>
8262 Correct handling of <td>, <tr> (Bug 6171)
8267 <td> Some tabular data</td>
8268 <td> More tabular data ...</td>
8269 <td> And yet som tabular data</td>
8275 <td> Some tabular data</td>
8276 <td> More tabular data ...</td>
8277 <td> And yet som tabular data</td>
8285 Parsing crashing regression (fr:JavaScript)
8289 <p></body></x>
8294 Inline wiki vs wiki block nesting
8300 <p><b>Bold paragraph</b>
8301 </p><p>New wiki paragraph
8306 Inline HTML vs wiki block nesting
8314 <p><b>Bold paragraph</b>
8315 </p><p>New wiki paragraph
8319 # Original result was this:
8320 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8322 # While that might be marginally more intuitive, maybe, the six-apostrophe
8323 # construct is clearly pathological and the result stated here (which is what
8324 # the parser actually does) is about as reasonable as anything.
8326 Mixing markup for italics and bold
8329 '''bold''''''bold''bolditalics'''''
8331 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8339 Article for special page transclusion test
8343 Special page transclusion
8346 {{Special:Prefixindex/Xyzzyx}}
8348 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8353 Special page transclusion twice (bug 5021)
8356 {{Special:Prefixindex/Xyzzyx}}
8357 {{Special:Prefixindex/Xyzzyx}}
8359 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8360 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8365 Transclusion of default MediaWiki message
8367 {{MediaWiki:Mainpage}}
8374 Transclusion of nonexistent MediaWiki message
8376 {{MediaWiki:Mainpagexxx}}
8378 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8383 Transclusion of MediaWiki message with underscore
8385 {{MediaWiki:history_short}}
8392 Transclusion of MediaWiki message with space
8394 {{MediaWiki:history short}}
8401 Invalid header with following text
8411 Section extraction test (section 0)
8431 Section extraction test (section 1)
8453 Section extraction test (section 2)
8474 Section extraction test (section 3)
8494 Section extraction test (section 4)
8518 Section extraction test (section 5)
8538 Section extraction test (section 6)
8559 Section extraction test (section 7)
8579 Section extraction test (section 8)
8599 Section extraction test (section 9)
8620 Section extraction test (section 10)
8640 Section extraction test (nonexistent section 11)
8659 Section extraction test with bogus heading (section 1)
8664 ==bogus== not a legal section
8668 ==bogus== not a legal section
8672 Section extraction test with bogus heading (section 2)
8677 ==bogus== not a legal section
8684 Section extraction test with comment after heading (section 1)
8696 Section extraction test with comment after heading (section 2)
8708 Section extraction test with bogus <nowiki> heading (section 1)
8713 ==bogus== <nowiki>not a legal section</nowiki>
8717 ==bogus== <nowiki>not a legal section</nowiki>
8721 Section extraction test with bogus <nowiki> heading (section 2)
8726 ==bogus== <nowiki>not a legal section</nowiki>
8733 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8734 # instead of respecting commented sections
8736 Section extraction prefixed by comment (section 1)
8747 Section extraction prefixed by comment (section 2)
8758 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8759 # instead of respecting HTML-style headings
8761 Section extraction, mixed wiki and html (section 1)
8777 Section extraction, mixed wiki and html (section 2)
8793 # Formerly testing for bug 3342
8795 Section extraction, heading surrounded by <noinclude>
8799 <noinclude>==unmarked==</noinclude>
8805 # Test behaviour of bug 19910
8807 Sectiion with all-equals
8812 The line above must have a trailing space
8815 But just in case it doesn't...
8819 But just in case it doesn't...
8823 Section replacement test (section 0)
8854 Section replacement test (section 1)
8883 Section replacement test (section 2)
8913 Section replacement test (section 3)
8944 Section replacement test (section 4)
8971 Section replacement test (section 5)
9002 Section replacement test (section 6)
9032 Section replacement test (section 7)
9063 Section replacement test (section 8)
9094 Section replacement test (section 9)
9123 Section replacement test (section 10)
9153 Section replacement test with initial whitespace (bug 13728)
9157 Preformatted initial line
9161 Preformatted initial line
9168 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9180 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9193 Section extraction, <pre> around bogus header (bug 10309)
9210 Section replacement, <pre> around bogus header (bug 10309)
9212 noxml replace=2,"xxx"
9233 Handling of 
 in URLs
9237 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9244 5 quotes, code coverage +1 line
9251 Special:Search page linking.
9255 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9270 * {{SUBJECTPAGENAME}}
9271 * {{SUBJECTPAGENAMEE}}
9278 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9280 <ul><li> Parser test
9281 </li><li> Parser test
9282 </li><li> Parser test
9283 </li><li> Parser_test
9284 </li><li> Parser test
9285 </li><li> Parser_test
9286 </li><li> Talk:Parser test
9287 </li><li> Talk:Parser_test
9288 </li><li> Parser test
9289 </li><li> Parser_test
9296 </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>
9300 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9310 image4 |300px| centre
9311 image5.svg| http://///////
9316 <ul class="gallery">
9317 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9318 <div style="height: 150px;">Image1.png</div>
9319 <div class="gallerytext">
9322 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9323 <div style="height: 150px;">Image2.gif</div>
9324 <div class="gallerytext">
9329 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9330 <div style="height: 150px;">Image3</div>
9331 <div class="gallerytext">
9334 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9335 <div style="height: 150px;">Image4</div>
9336 <div class="gallerytext">
9341 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9342 <div style="height: 150px;">Image5.svg</div>
9343 <div class="gallerytext">
9344 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9348 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9349 <div style="height: 150px;">* image6</div>
9350 <div class="gallerytext">
9358 Gallery (with options)
9360 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9361 File:Nonexistant.jpg|caption
9362 File:Nonexistant.jpg
9363 image:foobar.jpg|some '''caption''' [[Main Page]]
9365 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9368 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9369 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9370 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9371 <div style="height: 70px;">Nonexistant.jpg</div>
9372 <div class="gallerytext">
9377 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9378 <div style="height: 70px;">Nonexistant.jpg</div>
9379 <div class="gallerytext">
9382 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9383 <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>
9384 <div class="gallerytext">
9385 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9389 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9390 <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>
9391 <div class="gallerytext">
9394 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9395 <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>
9396 <div class="gallerytext">
9406 Gallery with wikitext inside caption
9409 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9410 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9413 <ul class="gallery">
9414 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9415 <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>
9416 <div class="gallerytext">
9417 <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>
9421 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9422 <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>
9423 <div class="gallerytext">
9424 <p>This is a test template
9433 gallery (with showfilename option)
9435 <gallery showfilename>
9436 File:Nonexistant.jpg|caption
9437 File:Nonexistant.jpg
9438 image:foobar.jpg|some '''caption''' [[Main Page]]
9442 <ul class="gallery">
9443 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9444 <div style="height: 150px;">Nonexistant.jpg</div>
9445 <div class="gallerytext">
9446 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9451 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9452 <div style="height: 150px;">Nonexistant.jpg</div>
9453 <div class="gallerytext">
9454 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9458 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9459 <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>
9460 <div class="gallerytext">
9461 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9462 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9466 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9467 <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>
9468 <div class="gallerytext">
9469 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9478 Gallery (with namespace-less filenames)
9481 File:Nonexistant.jpg
9487 <ul class="gallery">
9488 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9489 <div style="height: 150px;">Nonexistant.jpg</div>
9490 <div class="gallerytext">
9493 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9494 <div style="height: 150px;">Nonexistant.jpg</div>
9495 <div class="gallerytext">
9498 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9499 <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>
9500 <div class="gallerytext">
9503 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9504 <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>
9505 <div class="gallerytext">
9513 HTML Hex character encoding (spells the word "JavaScript")
9515 JavaScript
9517 <p>JavaScript
9522 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9526 <p>&#xsee;&#XSEE;
9531 HTML Hex character encoding mixed case
9540 __FORCETOC__ override
9552 ISBN 978-0-1234-56 789
9554 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9559 ISBN followed by 5 spaces
9570 ISBN ISBN 1234567890
9572 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9577 Bug 22905: <abbr> followed by ISBN followed by </a>
9579 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9581 <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>
9590 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9595 Double RFC with a wiki link
9599 <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>
9608 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9613 Centre-aligned image
9615 [[Image:foobar.jpg|centre]]
9617 <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>
9624 [[Image:foobar.jpg|none]]
9626 <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>
9631 Width + Height sized image (using px) (height is ignored)
9633 [[Image:foobar.jpg|640x480px]]
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, no following whitespace)
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 following 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 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9660 [[Image:foobar.jpg| 640px]]
9662 <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>
9667 Another italics / bold test
9675 # Note the results may be incorrect, as parserTest output included this:
9676 # XML error: Mismatched tag at byte 6120:
9677 # ...<dd> </dt></dl> </dd...
9685 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9696 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9698 Images with the "|" character in the comment
9700 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9702 <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>
9707 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9709 <html><script>alert(1);</script></html>
9711 <p><html><script>alert(1);</script></html>
9716 HTML with raw HTML ($wgRawHtml==true)
9720 <html><script>alert(1);</script></html>
9722 <p><script>alert(1);</script>
9727 Parents of subpages, one level up
9729 subpage title=[[Subpage test/L1/L2/L3]]
9733 <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>
9739 Parents of subpages, one level up, not named
9741 subpage title=[[Subpage test/L1/L2/L3]]
9745 <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>
9752 Parents of subpages, two levels up
9754 subpage title=[[Subpage test/L1/L2/L3]]
9760 <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
9761 </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>
9766 Parents of subpages, two levels up, without trailing slash or name.
9768 subpage title=[[Subpage test/L1/L2/L3]]
9777 Parents of subpages, two levels up, with lots of extra trailing slashes.
9779 subpage title=[[Subpage test/L1/L2/L3]]
9783 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9788 Definition list code coverage
9794 <dl><dt> title  </dt><dd> def
9795 </dd><dt> title </dt><dd> def
9796 </dd><dt>title</dt><dd> def
9802 Don't fall for the self-closing div
9804 <div>hello world</div/>
9806 <div>hello world</div>
9815 <p>[[:Template:Msg]]
9824 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9828 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9830 Always escape literal '>' in output, not just after '<'
9844 <p>This is a test template
9845 This is a test template
9857 Inclusion of !userCanEdit() content
9861 <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>
9867 Out-of-order TOC heading levels
9876 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9878 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9880 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9881 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9884 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9886 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9887 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9892 <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>
9893 <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>
9894 <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>
9895 <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>
9896 <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>
9897 <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>
9903 ISBN with a dummy number
9913 ISBN with space-delimited number
9917 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9923 ISBN with multiple spaces, no number
9942 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9943 </p><p>ISBN 12345678901
9949 ISBN with trailing year (bug 8110)
9951 ISBN 1-234-56789-0 - 2006
9953 ISBN 1 234 56789 0 - 2006
9955 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9956 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9964 {{anchorencode:foo bar©#%n}}
9966 <p>foo_bar.C2.A9.23.25n
9971 anchorencode trims spaces
9973 {{anchorencode: __pretty__please__}}
9980 anchorencode deals with links
9982 {{anchorencode: [[hello|world]] [[hi]]}}
9989 anchorencode deals with templates
9991 {{anchorencode: {{Foo}} }}
9998 anchorencode encodes like the TOC generator: (bug 18431)
10000 === _ +:.3A%3A&&]] ===
10001 {{anchorencode: _ +:.3A%3A&&]] }}
10004 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10005 <p>.2B:.3A.253A.26.26.5D.5D
10009 # Expected output in the following test is not necessarily expected (there
10010 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10011 # only testing for well-formedness.
10013 Bug 6200: blockquotes and paragraph formatting
10033 Bug 8293: Use of center tag ruins paragraph formatting
10055 ### Language variants related tests
10058 Self-link in language variants
10060 title=[[Dunav]] language=sr
10062 Both [[Dunav]] and [[Дунав]] are names for this river.
10064 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10070 Link to pages in language variants
10074 Main Page can be written as [[Маин Паге]]
10076 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10082 Multiple links to pages in language variants
10086 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10088 <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>.
10094 Simple template in language variants
10100 <p>This is a test template
10106 Template with explicit namespace in language variants
10112 <p>This is a test template
10118 Basic test for template parameter in language variants
10122 {{парамтест|param=foo}}
10124 <p>This is a test template with parameter foo
10130 Simple category in language variants
10134 [[Category:МедиаWики Усер'с Гуиде]]
10136 <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>
10141 Stripping -{}- tags (language variants)
10145 Latin proverb: -{Ne nuntium necare}-
10147 <p>Latin proverb: Ne nuntium necare
10153 Prevent conversion with -{}- tags (language variants)
10155 language=sr variant=sr-ec
10157 Latinski: -{Ne nuntium necare}-
10159 <p>Латински: Ne nuntium necare
10165 Prevent conversion of text with -{}- tags (language variants)
10167 language=sr variant=sr-ec
10169 Latinski: -{Ne nuntium necare}-
10171 <p>Латински: Ne nuntium necare
10177 Prevent conversion of links with -{}- tags (language variants)
10179 language=sr variant=sr-ec
10183 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10189 -{}- tags within headlines (within html for parserConvert())
10191 language=sr variant=sr-ec
10195 <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>
10201 Explicit definition of language variant alternatives
10203 language=zh variant=zh-tw
10205 -{zh:China;zh-tw:Taiwan}-, not China
10207 <p>Taiwan, not China
10213 Explicit session-wise language variant mapping (A flag and - flag)
10215 language=zh variant=zh-tw
10217 Taiwan is not China.
10218 But -{A|zh:China;zh-tw:Taiwan}- is China,
10219 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10220 and -{China}- is China.
10222 <p>Taiwan is not China.
10223 But Taiwan is Taiwan,
10224 (This should be stripped!)
10225 and China is China.
10230 Explicit session-wise language variant mapping (H flag for hide)
10232 language=zh variant=zh-tw
10234 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10237 <p>(This should be stripped!)
10243 Adding explicit conversion rule for title (T flag)
10245 language=zh variant=zh-tw showtitle
10247 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10250 <p>Should be stripped!
10255 Testing that changing the language variant here in the tests actually works
10257 language=zh variant=zh showtitle
10259 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10262 <p>Should be stripped!
10267 Bug 24072: more test on conversion rule for title
10269 language=zh variant=zh-tw showtitle
10271 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10272 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10275 <p>This should be stripped!
10276 This won't take interferes with the title rule.
10281 Raw output of variant escape tags (R flag)
10283 language=zh variant=zh-tw
10285 Raw: -{R|zh:China;zh-tw:Taiwan}-
10287 <p>Raw: zh:China;zh-tw:Taiwan
10292 Nested using of manual convert syntax
10294 language=zh variant=zh-hk
10296 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10298 <p>Nested: Hello Hong Kong!
10303 Do not convert roman numbers to language variants
10305 language=sr variant=sr-ec
10309 <p>Фридрих IV је цар.
10314 Unclosed language converter markup "-{"
10325 Don't convert raw rule "-{R|=>}-" to "=>"
10342 Bug 529: Uncovered bullet
10352 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10353 # Templates in Wikipedia rely on this behavior, as tidy has always been
10354 # enabled there. These tests are normally run *without* tidy, so specify the
10355 # full output here.
10356 # To test realistic parsing behavior, apply a tidy-like transformation to both
10357 # the expected output and your parser's output.
10359 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10361 ******* Foo {{bullet}}
10363 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10376 Bug 529: Uncovered table already at line-start
10399 Bug 529: Uncovered bullet in parser function result
10401 * Foo {{lc:{{bullet}} }}
10410 Bug 5678: Double-parsed template argument
10412 {{lc:{{{1}}}|hello}}
10419 Bug 5678: Double-parsed template invocation
10421 {{lc:{{paramtest {{!}} param = hello }} }}
10423 <p>{{paramtest | param = hello }}
10428 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10431 title=[[Main Page]]
10433 {{PRVNÍVELKÉ:ěščř}}
10434 {{prvnívelké:ěščř}}
10454 Morwen/13: Unclosed link followed by heading
10461 <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>
10466 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10473 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10478 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10485 <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>
10500 Paragraphs inside divs (no extra line breaks)
10512 Paragraphs inside divs (extra line break on open)
10527 Paragraphs inside divs (extra line break on close)
10542 Paragraphs inside divs (extra line break on open and close)
10559 Nesting tags, paragraphs on lines which begin with <div>
10563 <div></div><strong>A
10572 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10574 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10578 <blockquote>Line one
10580 Line two</blockquote>
10582 <blockquote>Line one
10583 Line two</blockquote>
10588 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10595 Line two</blockquote>
10600 Line two</blockquote>
10605 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10609 <blockquote>Line one
10614 <blockquote>Line one
10622 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10641 Paragraphs inside blockquotes/divs (no extra line breaks)
10643 <blockquote><div>Line one
10645 Line two</div></blockquote>
10647 <blockquote><div>Line one
10648 Line two</div></blockquote>
10653 Paragraphs inside blockquotes/divs (extra line break on open)
10658 Line two</div></blockquote>
10663 Line two</div></blockquote>
10668 Paragraphs inside blockquotes/divs (extra line break on close)
10670 <blockquote><div>Line one
10673 </div></blockquote>
10675 <blockquote><div>Line one
10678 </div></blockquote>
10683 Paragraphs inside blockquotes/divs (extra line break on open and close)
10689 </div></blockquote>
10695 </div></blockquote>
10700 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10702 wgLinkHolderBatchSize=0
10708 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10709 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10710 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10715 Free external link invading image caption
10717 [[Image:Foobar.jpg|thumb|http://x|hello]]
10719 <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>
10724 Bug 15196: localised external link numbers
10728 [http://en.wikipedia.org/]
10730 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10735 Multibyte character in padleft
10737 {{padleft:-Hello|7|Æ}}
10744 Multibyte character in padright
10746 {{padright:Hello-|7|Æ}}
10755 wgUseDynamicDates=1
10759 <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>
10764 formatdate parser function
10766 {{#formatdate:2009-03-24}}
10768 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10773 formatdate parser function, with default format
10775 {{#formatdate:2009-03-24|mdy}}
10777 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10782 Linked date with autoformatting disabled
10784 wgUseDynamicDates=false
10788 <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>
10793 Spacing of numbers in formatted dates
10795 {{#formatdate:January 15}}
10797 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10802 Spacing of numbers in formatted dates (linked)
10804 wgUseDynamicDates=true
10808 <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>
10813 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
10815 language=nl title=[[MediaWiki:Common.css]]
10817 {{#formatdate:2009-03-24|dmy}}
10819 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10832 Edit comment with link
10836 I like the [[Main Page]] a lot
10838 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10842 Edit comment with link and link text
10846 I like the [[Main Page|best pages]] a lot
10848 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10852 Edit comment with link and link text with suffix
10856 I like the [[Main Page|best page]]s a lot
10858 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10862 Edit comment with section link (non-local, eg in history list)
10864 comment title=[[Main Page]]
10866 /* External links */ removed bogus entries
10868 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10872 Edit comment with section link and text before it (non-local, eg in history list)
10874 comment title=[[Main Page]]
10876 pre-comment text /* External links */ removed bogus entries
10878 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>
10882 Edit comment with section link (local, eg in diff view)
10884 comment local title=[[Main Page]]
10886 /* External links */ removed bogus entries
10888 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10892 Edit comment with subpage link (bug 14080)
10896 title=[[Subpage test]]
10898 Poked at a [[/subpage]] here...
10900 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10904 Edit comment with subpage link and link text (bug 14080)
10908 title=[[Subpage test]]
10910 Poked at a [[/subpage|neat little page]] here...
10912 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10916 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10919 title=[[Subpage test]]
10921 Poked at a [[/subpage]] here...
10923 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10927 Edit comment with bare anchor link (local, as on diff)
10931 title=[[Main Page]]
10935 <a href="#section">#section</a>
10939 Edit comment with bare anchor link (non-local, as on history)
10942 title=[[Main Page]]
10946 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10950 Anchor starting with underscore
10954 <p><a href="#_ref">One</a>
10959 Id starting with underscore
10961 <div id="_ref"></div>
10963 <div id="_ref"></div>
10968 Space normalisation on autocomment (bug 22784)
10971 title=[[Main Page]]
10973 /* __hello__world__ */
10975 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10979 percent-encoding and + signs in comments (Bug 26410)
10983 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10985 <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>
10989 Bad images - basic functionality
10998 Bad images - bug 16039: text after bad image disappears
11012 Verify that displaytitle works (bug #22501) no displaytitle
11016 wgAllowDisplayTitle=true
11017 wgRestrictDisplayTitle=false
11019 this is not the the title
11022 <p>this is not the the title
11027 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11032 wgAllowDisplayTitle=true
11033 wgRestrictDisplayTitle=false
11035 this is not the the title
11036 {{DISPLAYTITLE:whatever}}
11039 <p>this is not the the title
11044 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11049 wgAllowDisplayTitle=true
11050 wgRestrictDisplayTitle=true
11052 this is not the the title
11053 {{DISPLAYTITLE:whatever}}
11056 <p>this is not the the title
11061 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11066 wgAllowDisplayTitle=true
11067 wgRestrictDisplayTitle=true
11069 this is not the the title
11070 {{DISPLAYTITLE:screen}}
11073 <p>this is not the the title
11078 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11083 wgAllowDisplayTitle=false
11085 this is not the the title
11086 {{DISPLAYTITLE:screen}}
11089 <p>this is not the the title
11090 <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>
11095 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11100 wgAllowDisplayTitle=false
11102 this is not the the title
11105 <p>this is not the the title
11110 preload: check <noinclude> and <includeonly>
11114 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11120 preload: check <onlyinclude>
11124 Goodbye <onlyinclude>Hello world</onlyinclude>
11130 preload: can pass tags through if we want to
11134 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11136 <includeonly>Hello world</includeonly>
11140 preload: check that it doesn't try to do tricks
11144 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11146 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11150 Play a bit with r67090 and bug 3158
11154 <div style="width:50% !important"> </div>
11155 <div style="width:50% !important"> </div>
11156 <div style="width:50% !important"> </div>
11157 <div style="border : solid;"> </div>
11159 <div style="width:50% !important"> </div>
11160 <div style="width:50% !important"> </div>
11161 <div style="width:50% !important"> </div>
11162 <div style="border : solid;"> </div>
11167 HTML5 data attributes
11169 <span data-foo="bar">Baz</span>
11170 <p data-abc-def_hij="">Quuz</p>
11172 <p><span data-foo="bar">Baz</span>
11174 <p data-abc-def_hij="">Quuz</p>
11179 percent-encoding and + signs in internal links (Bug 26410)
11181 [[User:+%]] [[Page+title%]]
11182 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11183 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11184 [[%33%45]] [[%33%45+]]
11186 <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>
11187 <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>
11188 <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>
11189 <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>
11194 Special characters in embedded file links (bug 27679)
11196 [[File:Contains & ampersand.jpg]]
11197 [[File:Does not exist.jpg|Title with & ampersand]]
11199 <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>
11200 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11206 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11208 Text's been normalized?
11210 <p>Text's been normalized?
11215 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11217 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11219 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11224 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11226 [http://www.example.org/ ideograms]
11228 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11233 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11235 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11237 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11261 Bug 31098 Template which includes system messages which includes the template
11265 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11266 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11271 Deprecated presentational attributes are converted to css
11274 | valign=top align=left width=100 height=25% | Asdf
11276 <ul type="disc"></ul>
11280 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11282 <ul style="list-style-type: disc;"></ul>
11287 Bug31490 Turkish: ucfirst 'blah'
11298 Bug31490 Turkish: ucfirst 'ix'
11309 Bug31490 Turkish: lcfirst 'BLAH'
11320 Bug31490 Turkish: ucfırst (with a dotless i)
11326 <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>
11331 Bug31490 ucfırst (with a dotless i) with English language
11337 <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>
11342 Bug 26375: TOC with italics
11344 title=[[Main Page]]
11347 == ''Lost'' episodes ==
11349 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11351 <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>
11354 <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>
11359 Bug 26375: TOC with bold
11361 title=[[Main Page]]
11364 == '''should be bold''' then normal text ==
11366 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11368 <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>
11371 <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>
11376 Bug 33845: Headings become cursive in TOC when they contain an image
11378 title=[[Main Page]]
11381 == Image [[Image:foobar.jpg]] ==
11383 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11385 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11388 <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>
11393 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11395 title=[[Main Page]]
11398 == <blockquote>Quote</blockquote> ==
11400 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11402 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11405 <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>
11410 Unclosed tags in TOC
11412 title=[[Main Page]]
11416 <small>Hanc marginis exiguitas non caperet.</small>
11419 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11421 <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>
11424 <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>
11425 <p><small>Hanc marginis exiguitas non caperet.</small>
11431 Multiple tags in TOC
11434 == <i>Foo</i> <b>Bar</b> ==
11436 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11438 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11440 <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>
11441 <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>
11444 <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>
11445 <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>
11450 Tags with parameters in TOC
11453 == <sup class="in-h2">Hello</sup> ==
11455 == <sup class="a > b">Evilbye</sup> ==
11457 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11459 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11460 <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>
11463 <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>
11464 <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>
11469 span tags with directionality in TOC
11472 == <span dir="ltr">C++</span> ==
11474 == <span dir="rtl">זבנג!</span> ==
11476 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11478 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11480 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11482 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11484 <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>
11485 <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>
11486 <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>
11487 <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>
11488 <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>
11491 <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>
11492 <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>
11493 <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>
11494 <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>
11495 <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>
11502 == {{int:headline_sample}} ==
11506 Bug 32057: Title needed when expanding <h> nodes.
11508 title=[[Main Page]]
11512 <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>
11517 Strip marker in urlencode
11519 {{urlencode:x<nowiki/>y}}
11520 {{urlencode:x<nowiki/>y|wiki}}
11521 {{urlencode:x<nowiki/>y|path}}
11548 Strip marker in formatNum
11550 {{formatnum:1<nowiki/>2}}
11551 {{formatnum:1<nowiki/>2|R}}
11559 Strip marker in grammar
11563 {{grammar:elative|foo<nowiki/>bar}}
11570 Strip marker in padleft
11572 {{padleft:|2|x<nowiki/>y}}
11579 Strip marker in padright
11581 {{padright:|2|x<nowiki/>y}}
11588 Strip marker in anchorencode
11590 {{anchorencode:x<nowiki/>y}}
11597 nowiki inside link inside heading (bug 18295)
11599 ==[[foo|x<nowiki>y</nowiki>z]]==
11601 <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>
11606 new support for bdi element (bug 31817)
11608 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11610 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11615 Ignore pipe between table row attributes
11619 |- id=foo | style='color: red'
11627 <tr id="foo" style="color: red">
11634 Gallery override link with WikiLink (bug 34852)
11637 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11640 <ul class="gallery">
11641 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11642 <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>
11643 <div class="gallerytext">
11653 Gallery override link with absolute external link (bug 34852)
11656 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11659 <ul class="gallery">
11660 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11661 <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>
11662 <div class="gallerytext">
11672 Gallery override link with malicious javascript (bug 34852)
11675 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11678 <ul class="gallery">
11679 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11680 <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>
11681 <div class="gallerytext">
11691 Language parser function
11700 Padleft and padright as substr
11702 {{padleft:|3|abcde}}
11703 {{padright:|3|abcde}}
11711 Bug 34939 - Case insensitive link parsing ([HttP://])
11713 [HttP://MediaWiki.Org/]
11715 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11720 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11722 [HttP://MediaWiki.Org/ MediaWiki]
11724 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11729 Bug 34939 - Case insensitive link parsing (HttP://)
11731 HttP://MediaWiki.Org/
11733 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11738 ### Parsoids-specific tests
11739 ### Parsoid-PHP parser incompatibilities
11742 1. SOL-sensitive wikitext tokens as template-args
11756 #### The following section of tests are primarily to test
11757 #### wikitext escaping capabilities of Parsoid.
11758 #### A lot of the tests are disabled for the PHP parser either
11759 #### because of minor newline diffs or other reasons.
11760 #### As Parsoid serializer can handle newlines and other HTML
11761 #### more robustly, some of these tests might get reenabled
11762 #### for the PHP parser.
11764 #### --------------- Headings ---------------
11766 #### 1. Nested inside html <h1>=foo=</h1>
11767 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11768 #### 3. Nested inside html with wikitext split by html tags
11769 #### 4. No escape needed
11770 #### 5. Empty headings <h1></h1>
11771 #### 6. Heading chars in SOL context
11772 #### ----------------------------------------
11774 Headings: 0. Unnested
11776 <nowiki>=foo=</nowiki>
11778 <nowiki>=foo</nowiki>''a''=
11781 </p><p>=foo<i>a</i>=
11786 Headings: 1. Nested inside html
11790 =<nowiki>=foo=</nowiki>=
11791 ==<nowiki>=foo=</nowiki>==
11792 ===<nowiki>=foo=</nowiki>===
11793 ====<nowiki>=foo=</nowiki>====
11794 =====<nowiki>=foo=</nowiki>=====
11795 ======<nowiki>=foo=</nowiki>======
11806 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11811 <nowiki>*bar</nowiki>
11815 <nowiki>=bar=</nowiki>
11823 Headings: 3. Nested inside html with wikitext split by html tags
11827 =<nowiki>=</nowiki>'''bold'''foo==
11829 <h1>=<b>bold</b>foo=</h1>
11833 Headings: 4. No escaping needed (testing just h1 and h2)
11848 <h1><i>=</i>foo=</h1>
11853 Headings: 5. Empty headings
11857 =<nowiki></nowiki>=
11858 ==<nowiki></nowiki>==
11859 ===<nowiki></nowiki>===
11860 ====<nowiki></nowiki>====
11861 =====<nowiki></nowiki>=====
11862 ======<nowiki></nowiki>======
11873 Headings: 6. Heading chars in SOL context
11877 <!--cmt--><nowiki>=h1=</nowiki>
11883 #### --------------- Lists ---------------
11884 #### 0. Outside nests (*foo, etc.)
11885 #### 1. Nested inside html <ul><li>*foo</li></ul>
11886 #### 2. Inside definition lists
11887 #### 3. Only bullets at start should be escaped
11888 #### 4. No escapes needed
11889 #### 5. No unnecessary escapes
11890 #### 6. Escape bullets in SOL position
11891 #### 7. Escape bullets in a multi-line context
11892 #### ----------------------------------------
11895 Lists: 0. Outside nests
11897 <nowiki>*foo</nowiki>
11899 <nowiki>#foo</nowiki>
11907 Lists: 1. Nested inside html
11909 *<nowiki>*foo</nowiki>
11911 *<nowiki>#foo</nowiki>
11913 *<nowiki>:foo</nowiki>
11915 *<nowiki>;foo</nowiki>
11917 #<nowiki>*foo</nowiki>
11919 #<nowiki>#foo</nowiki>
11921 #<nowiki>:foo</nowiki>
11923 #<nowiki>;foo</nowiki>
11945 Lists: 2. Inside definition lists
11947 ;<nowiki>;foo</nowiki>
11949 ;<nowiki>:foo</nowiki>
11951 ;<nowiki>:foo</nowiki>
11954 :<nowiki>:foo</nowiki>
11969 Lists: 3. Only bullets at start of text should be escaped
11971 *<nowiki>*foo*bar</nowiki>
11973 *<nowiki>*foo</nowiki>''it''*bar
11977 <ul><li>*foo<i>it</i>*bar
11983 Lists: 4. No escapes needed
11995 <ul><li><i>foo</i>*bar
11997 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12002 Lists: 5. No unnecessary escapes
12004 * bar <span><nowiki>[[foo]]</nowiki></span>
12006 *=bar <span><nowiki>[[foo]]</nowiki></span>
12008 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12010 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12012 *=bar <span>foo]]</span>=
12014 <ul><li> bar <span>[[foo]]</span>
12016 <ul><li>=bar <span>[[foo]]</span>
12018 <ul><li>[[bar <span>[[foo]]</span>
12020 <ul><li>]]bar <span>[[foo]]</span>
12022 <ul><li>=bar <span>foo]]</span>=
12028 Lists: 6. Escape bullets in SOL position
12032 <!--cmt--><nowiki>*foo</nowiki>
12039 Lists: 7. Escape bullets in a multi-line context
12049 #### --------------- HRs ---------------
12050 #### 1. Single line
12051 #### -----------------------------------
12054 HRs: 1. Single line
12059 <nowiki>----</nowiki>
12061 <nowiki>=foo=</nowiki>
12063 <nowiki>*foo</nowiki>
12070 #### --------------- Tables ---------------
12071 #### 1a. Simple example
12072 #### 1b. No escaping needed (!foo)
12073 #### 1c. No escaping needed (|foo)
12074 #### 1d. No escaping needed (|}foo)
12076 #### 2a. Nested in td (<td>foo|bar</td>)
12077 #### 2b. Nested in td (<td>foo||bar</td>)
12078 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12080 #### 3a. Nested in th (<th>foo!bar</th>)
12081 #### 3b. Nested in th (<th>foo!!bar</th>)
12082 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12086 #### 4c. No escaping needed
12087 #### --------------------------------------
12090 Tables: 1a. Simple example
12101 Tables: 1b. No escaping needed
12110 Tables: 1c. No escaping needed
12119 Tables: 1d. No escaping needed
12128 Tables: 2a. Nested in td
12133 |<nowiki>foo|bar</nowiki>
12143 Tables: 2b. Nested in td
12148 |<nowiki>foo||bar</nowiki>
12149 |''it''<nowiki>foo||bar</nowiki>
12154 </td><td><i>it</i>foo||bar
12160 Tables: 2c. Nested in td -- no escaping needed
12175 Tables: 3a. Nested in th
12190 Tables: 3b. Nested in th
12195 !<nowiki>foo!!bar</nowiki>
12205 Tables: 3c. Nested in th -- no escaping needed
12220 Tables: 4a. Escape -
12228 |<nowiki>-bar</nowiki>
12232 <tr><th>-bar</th></tr>
12233 <tr><td>-bar</td></tr>
12238 Tables: 4b. Escape +
12246 |<nowiki>+bar</nowiki>
12250 <tr><th>+bar</th></tr>
12251 <tr><td>+bar</td></tr>
12256 Tables: 4c. No escaping needed
12270 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12271 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12275 #### --------------- Links ---------------
12276 #### 1. Quote marks in link text
12277 #### 2. Wikilinks: Escapes needed
12278 #### 3. Wikilinks: No escapes needed
12279 #### 4. Extlinks: Escapes needed
12280 #### 5. Extlinks: No escapes needed
12281 #### --------------------------------------
12283 Links 1. Quote marks in link text
12287 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12289 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12293 Links 2. WikiLinks: Escapes needed
12297 [[Foo|<nowiki>[Foobar]</nowiki>]]
12298 [[Foo|<nowiki>Foobar]</nowiki>]]
12299 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12300 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12301 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12302 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12303 [[Foo|<nowiki>|Bar</nowiki>]]
12305 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12306 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12307 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12308 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12309 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12310 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12311 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12315 Links 3. WikiLinks: No escapes needed
12322 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12323 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12327 Links 4. ExtLinks: Escapes needed
12331 [http://google.com <nowiki>[google]</nowiki>]
12332 [http://google.com <nowiki>google]</nowiki>]
12334 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12335 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12339 Links 5. ExtLinks: No escapes needed
12343 [http://google.com [google]
12345 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12348 #### --------------- Quotes ---------------
12349 #### 1. Quotes inside <b> and <i>
12350 #### 2. Link fragments separated by <i> and <b> tags
12351 #### 3. Link fragments inside <i> and <b>
12352 #### --------------------------------------
12354 1. Quotes inside <b> and <i>
12356 ''<nowiki>'foo'</nowiki>''
12357 ''<nowiki>''foo''</nowiki>''
12358 ''<nowiki>'''foo'''</nowiki>''
12359 '''<nowiki>'foo'</nowiki>'''
12360 '''<nowiki>''foo''</nowiki>'''
12361 '''<nowiki>'''foo'''</nowiki>'''
12362 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12370 <b>foo'<i>bar'</i>baz</b>
12375 2. Link fragments separated by <i> and <b> tags
12377 [[''foo''<nowiki>hello]]</nowiki>
12379 [['''foo'''<nowiki>hello]]</nowiki>
12381 <p>[[<i>foo</i>hello]]
12382 </p><p>[[<b>foo</b>hello]]
12387 2. Link fragments inside <i> and <b>
12388 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12389 this is one of the shortcomings of this format)
12391 ''[[foo''<nowiki>]]</nowiki>
12393 '''[[foo'''<nowiki>]]</nowiki>
12396 </p><p><b>[[foo</b>]]
12400 #### --------------- Paragraphs ---------------
12401 #### 1. No unnecessary escapes
12402 #### --------------------------------------
12405 1. No unnecessary escapes
12407 bar <span><nowiki>[[foo]]</nowiki></span>
12409 =bar <span><nowiki>[[foo]]</nowiki></span>
12411 [[bar <span><nowiki>[[foo]]</nowiki></span>
12413 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12415 <nowiki>=bar </nowiki><span>foo]]</span>=
12417 <p>bar <span>[[foo]]</span>
12418 </p><p>=bar <span>[[foo]]</span>
12419 </p><p>[[bar <span>[[foo]]</span>
12420 </p><p>]]bar <span>[[foo]]</span>
12421 </p><p>=bar <span>foo]]</span>=
12425 #### --------------- PRE ------------------
12426 #### 1. Leading space in SOL context should be escaped
12427 #### --------------------------------------
12429 1. Leading space in SOL context should be escaped
12433 <nowiki> foo</nowiki>
12434 <!--cmt--><nowiki> foo</nowiki>
12441 #### --------------- HTML tags ---------------
12444 #### 3. multi-line html tag
12445 #### --------------------------------------
12451 <a href="http://google.com">google</a>
12453 <a href="http://google.com">google</a>
12459 <nowiki><div>foo</div>
12460 <div style="color:red">foo</div></nowiki>
12462 <p><div>foo</div>
12463 <div style="color:red">foo</div>
12468 3. multi-line html tag
12480 #### --------------- Others ---------------
12484 <nowiki>foo</nowiki>
12486 <p><nowiki>foo</nowiki>
12495 Try for 100% code coverage