1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 Template:echo_with_span
87 Template:echo_with_div
111 This is a simple paragraph.
113 <p>This is a simple paragraph.
118 Paragraphs with extra newline spacing
156 * plain''italic''plain
157 * plain''italic''plain''italic''plain
158 * plain'''bold'''plain
159 * plain'''bold'''plain'''bold'''plain
160 * plain''italic''plain'''bold'''plain
161 * plain'''bold'''plain''italic''plain
162 * plain''italic'''bold-italic'''italic''plain
163 * plain'''bold''bold-italic''bold'''plain
164 * plain'''''bold-italic'''italic''plain
165 * plain'''''bold-italic''bold'''plain
166 * plain''italic'''bold-italic'''''plain
167 * plain'''bold''bold-italic'''''plain
168 * plain l'''italic''plain
169 * plain l''''bold''' plain
172 </li><li> plain<i>italic</i>plain
173 </li><li> plain<i>italic</i>plain<i>italic</i>plain
174 </li><li> plain<b>bold</b>plain
175 </li><li> plain<b>bold</b>plain<b>bold</b>plain
176 </li><li> plain<i>italic</i>plain<b>bold</b>plain
177 </li><li> plain<b>bold</b>plain<i>italic</i>plain
178 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
179 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
180 </li><li> plain<i><b>bold-italic</b>italic</i>plain
181 </li><li> plain<b><i>bold-italic</i>bold</b>plain
182 </li><li> plain<i>italic<b>bold-italic</b></i>plain
183 </li><li> plain<b>bold<i>bold-italic</i></b>plain
184 </li><li> plain l'<i>italic</i>plain
185 </li><li> plain l'<b>bold</b> plain
191 ### 2-quote opening sequence tests
194 Italics and bold: 2-quote opening sequence: (2,2)
204 Italics and bold: 2-quote opening sequence: (2,3)
214 Italics and bold: 2-quote opening sequence: (2,4)
224 Italics and bold: 2-quote opening sequence: (2,5)
234 ### 3-quote opening sequence tests
238 Italics and bold: 3-quote opening sequence: (3,2)
248 Italics and bold: 3-quote opening sequence: (3,3)
258 Italics and bold: 3-quote opening sequence: (3,4)
268 Italics and bold: 3-quote opening sequence: (3,5)
278 ### 4-quote opening sequence tests
282 Italics and bold: 4-quote opening sequence: (4,2)
292 Italics and bold: 4-quote opening sequence: (4,3)
302 Italics and bold: 4-quote opening sequence: (4,4)
312 Italics and bold: 4-quote opening sequence: (4,5)
322 ### 5-quote opening sequence tests
326 Italics and bold: 5-quote opening sequence: (5,2)
336 Italics and bold: 5-quote opening sequence: (5,3)
346 Italics and bold: 5-quote opening sequence: (5,4)
350 <p><i><b>foo'</b></i>
356 Italics and bold: 5-quote opening sequence: (5,5)
365 ### multiple quote sequences in a line
368 Italics and bold: multiple quote sequences: (2,4,2)
372 <p><i>foo'<b>bar</b></i>
378 Italics and bold: multiple quote sequences: (2,4,3)
382 <p><i>foo'<b>bar</b></i>
388 Italics and bold: multiple quote sequences: (2,4,4)
392 <p><i>foo'<b>bar'</b></i>
398 Italics and bold: multiple quote sequences: (3,4,2)
408 Italics and bold: multiple quote sequences: (3,4,3)
417 ### other quote tests
420 Italics and bold: other quote tests: (2,3,5)
422 ''this is about '''foo's family'''''
424 <p><i>this is about <b>foo's family</b></i>
430 Italics and bold: other quote tests: (2,(3,3),2)
432 ''this is about '''foo's''' family''
434 <p><i>this is about <b>foo's</b> family</i>
440 Italics and bold: other quote tests: (3,2,3,2)
442 '''this is about ''foo'''s family''
444 <p><b>this is about <i>foo</i></b><i>s family</i>
450 Italics and bold: other quote tests: (3,2,3,3)
452 '''this is about ''foo'''s family'''
454 <p>'<i>this is about </i>foo<b>s family</b>
461 Italics and bold: other quote tests: (3,(2,2),3)
463 '''this is about ''foo's'' family'''
465 <p><b>this is about <i>foo's</i> family</b>
470 ### <nowiki> test cases
474 <nowiki> unordered list
476 <nowiki>* This is not an unordered list item.</nowiki>
478 <p>* This is not an unordered list item.
485 <nowiki>Lorem ipsum dolor
506 :There is not nowiki.
507 :There is <nowiki>nowiki</nowiki>.
509 #There is not nowiki.
510 #There is <nowiki>nowiki</nowiki>.
512 *There is not nowiki.
513 *There is <nowiki>nowiki</nowiki>.
515 <dl><dd>There is not nowiki.
516 </dd><dd>There is nowiki.
518 <ol><li>There is not nowiki.
519 </li><li>There is nowiki.
521 <ul><li>There is not nowiki.
522 </li><li>There is nowiki.
534 <!-- comment 1 --> asdf
536 <!-- comment 1 --> asdf
539 <!-- comment 1 --> asdf
540 <!-- comment 2 -->xyz
542 <!-- comment 1 --> asdf
543 <!-- comment 2 --> xyz
599 asdf<!-- comment 1 -->jkl
609 <!-- foo --> b <!-- bar -->
623 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
629 Comment semantics and delimiters
631 <!-- --><!----><!-----><!------>
637 Comment semantics and delimiters, redux
639 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
640 -- foo -- funky huh? ... -->
646 Comment semantics and delimiters: directors cut
648 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
649 everything starting with < followed by !-- until the first -- and > we see,
650 that wouldn't be valid XML however, since in XML -- has to terminate a comment
658 Comment semantics: nesting
660 <!--<!-- no, we're not going to do anything fancy here -->-->
667 Comment semantics: unclosed comment at end
669 <!--This comment will run out to the end of the document
675 Comment in template title
684 Comment on its own line post-expand
696 Comment on its own line post-expand with non-significant whitespace
708 ### paragraph wraping tests
722 Block tag on one line
734 Block tag on both lines
746 Multiple lines without block tags
764 ### Preformatted text
773 And a [[Main Page|link]]
779 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
784 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
801 Regression with preformatted in <center>
814 # Expected output in the following test is not really expected (there should be
815 # <pre> in the output) -- it's only testing for well-formedness.
817 Bug 6200: Preformatted in <blockquote>
830 <pre> with attributes (bug 3202)
832 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
834 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
839 <pre> with width attribute (bug 3202)
841 <pre width="8">Narrow screen goodies</pre>
843 <pre width="8">Narrow screen goodies</pre>
848 <pre> with forbidden attribute (bug 3202)
850 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
852 <pre width="8">Narrow screen goodies</pre>
857 <pre> with forbidden attribute values (bug 3202)
859 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
861 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
866 <nowiki> inside <pre> (bug 13238)
874 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
882 <pre><nowiki>Foo</nowiki></pre>
887 <nowiki> and <pre> preference (first one wins)
920 <nowiki></pre></nowiki>
927 Templates: Pre: 1a. Templates that break a line should suppress <pre>
935 Templates: Pre: 1b. Templates that break a line should suppress <pre>
945 Templates: Pre: 1c: Wrapping should be based on expanded content
957 Templates: Pre: 1d: Wrapping should be based on expanded content
978 Templates: Pre: 1e. Wrapping should be based on expanded content
982 {{echo| foo}}{{echo| bar}}
987 {{echo|<!--cmt--> foo}}
989 <!--cmt-->{{echo| foo}}
991 {{echo|{{echo| }}bar}}
1009 Templates: Pre: 1f: Wrapping should be based on expanded content
1046 ### Parsoid-centric tests for testing RT edge cases for pre
1050 1a. Pre and Comments
1063 1b. Pre and Comments
1076 1c. Pre and Comments
1126 3a. Pre and block tags (single-line html)
1134 <pre><span> foo </span>
1139 3b. Pre and block tags (pre-content on separate line)
1191 4. Multiple spaces at start-of-line
1210 ### Definition lists
1217 <dl><dt> name </dt><dd> Definition
1223 Definition list for indentation only
1227 <dl><dd> Indented text
1233 Definition list with no space
1237 <dl><dt>name</dt><dd>Definition
1243 Definition list with URL link
1245 ; http://example.com/ : definition
1247 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1253 Definition list with bracketed URL link
1255 ;[http://www.example.com/ Example]:Something about it
1257 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1263 Definition list with wikilink containing colon
1265 ; [[Help:FAQ]]: The least-read page on Wikipedia
1267 <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
1272 # At Brion's and JeLuF's insistence... :)
1274 Definition list with news link containing colon
1276 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1278 <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!
1284 Malformed definition list with colon
1286 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1288 <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
1294 Definition lists: colon in external link text
1296 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1298 <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
1304 Definition lists: colon in HTML attribute
1306 ;<b style="display: inline">bold</b>
1308 <dl><dt><b style="display: inline">bold</b>
1314 Definition lists: self-closed tag
1316 ;one<br/>two : two-line fun
1318 <dl><dt>one<br />two </dt><dd> two-line fun
1324 Bug 11748: Literal closing tags
1328 <dd>test test test test test</dd>
1330 <dd>test test test test test</dd>
1335 <dd>test test test test test</dd>
1337 <dd>test test test test test</dd>
1343 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1346 ; term : description
1352 <dl><dt> term </dt><dd> description
1363 Definition list with empty definition and following paragraph
1368 <dl><dt> term</dt><dd>
1375 Nested definition lists using html syntax
1392 Definition Lists: No nesting: Multiple dd's
1406 Definition Lists: Indentation: Regular
1422 Definition Lists: Indentation: Missing 1st level
1436 Definition Lists: Indentation: Multi-level indent
1440 <dl><dd><dl><dd><dl><dd>i3
1448 Definition Lists: Hacky use to indent tables
1455 should be left alone
1457 <dl><dd><dl><dd><table>
1462 </td></tr></table></dd></dl></dd></dl>
1464 should be left alone
1467 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1468 ## as an empty dt item. It also ignores all but the last ";" when followed
1469 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1470 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1473 ## Ex: ";;t2 ::d2" is transformed into:
1485 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1486 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1497 ## All Parsoid only definition list tests have this difference.
1499 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1500 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1503 Definition Lists: Nesting: Multi-level (Parsoid only)
1533 Definition Lists: Nesting: Test 2 (Parsoid only)
1553 Definition Lists: Nesting: Test 3 (Parsoid only)
1581 Definition Lists: Nesting: Test 4
1586 <dl><dd><dl><dd><dl><dt>t3
1596 Definition Lists: Mixed Lists: Test 1
1602 <dl><dd><dl><dt><ul><li> foo
1614 Definition Lists: Mixed Lists: Test 2
1628 Definition Lists: Mixed Lists: Test 3
1633 <ul><li><dl><dd><dl><dd><dl><dd> d1
1644 Definition Lists: Mixed Lists: Test 4
1649 <ul><li><dl><dt>d1 </dt><dd>d2
1650 </dd><dt>d3 </dt><dd>d4
1658 Definition Lists: Mixed Lists: Test 5
1673 Definition Lists: Mixed Lists: Test 6
1678 <ol><li><ul><li><dl><dd>d1
1690 Definition Lists: Mixed Lists: Test 7
1704 Definition Lists: Mixed Lists: Test 8
1720 Definition Lists: Mixed Lists: Test 9
1724 <ul><li><dl><dt>foo </dt><dd>bar
1732 Definition Lists: Mixed Lists: Test 10
1736 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1745 Definition Lists: Mixed Lists: Test 11
1750 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1755 <dl><dt>boo </dt><dd>baz
1766 Definition Lists: Weird Ones: Test 1
1768 *#;*::;; foo : bar (who uses this?)
1770 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1786 External links: non-bracketed
1788 Non-bracketed: http://example.com
1790 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1795 External links: numbered
1797 Numbered: [http://example.com]
1798 Numbered: [http://example.net]
1799 Numbered: [http://example.com]
1801 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1802 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1803 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1808 External links: specified text
1810 Specified text: [http://example.com link]
1812 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1817 External links: trail
1819 Linktrails should not work for external links: [http://example.com link]s
1821 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1826 External links: dollar sign in URL
1828 http://example.com/1$2345
1830 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1835 External links: dollar sign in URL (named)
1837 [http://example.com/1$2345]
1839 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1844 External links: open square bracket forbidden in URL (bug 4377)
1846 http://example.com/1[2345
1848 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1853 External links: open square bracket forbidden in URL (named) (bug 4377)
1855 [http://example.com/1[2345]
1857 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1862 External links: nowiki in URL link text (bug 6230)
1864 [http://example.com/ <nowiki>''example site''</nowiki>]
1866 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1871 External links: newline forbidden in text (bug 6230 regression check)
1873 [http://example.com/ first
1876 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1882 External links: Pipe char between url and text
1884 [http://example.com | link]
1886 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1891 External links: protocol-relative URL in brackets
1893 [//example.com/ Test]
1895 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1900 External links: protocol-relative URL in brackets without text
1904 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1909 External links: protocol-relative URL in free text is left alone
1913 <p>//example.com/Foo
1918 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1920 foo//example.com/Foo
1922 <p>foo//example.com/Foo
1929 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1931 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1936 External image from https
1938 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1940 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1945 Link to non-http image, no img tag
1947 Link to non-http image, no img tag: ftp://example.com/test.jpg
1949 <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>
1954 External links: terminating separator
1956 Terminating separator: http://example.com/thing,
1958 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1963 External links: intervening separator
1965 Intervening separator: http://example.com/1,2,3
1967 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1972 External links: old bug with URL in query
1974 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1976 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1981 External links: old URL-in-URL bug, mixed protocols
1983 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1985 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1990 External links: URL in text
1992 URL in text: [http://example.com http://example.com]
1994 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1999 External links: Clickable images
2001 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2003 <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>
2008 External links: raw 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 ampersand
2019 Old & use: http://x&y
2021 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2026 External links: encoded equals (bug 6102)
2028 http://example.com/?foo=bar
2030 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2035 External links: [raw 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 ampersand]
2046 Old & use: [http://x&y]
2048 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2053 External links: [encoded equals] (bug 6102)
2055 [http://example.com/?foo=bar]
2057 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2062 External links: [IDN ignored character reference in hostname; strip it right off]
2064 [http://e‌xample.com/]
2066 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2070 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2071 # Where an external link could easily circumvent the sanitization of the text of
2072 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2073 # test demands a higher standard. That's a bit strange.
2077 # http://example.com -> [http://example.com|http://example.com]
2078 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2080 # The first example is sanitized, but the second is not. Any security benefits
2081 # from this production are trivial to circumvent. Either remove this test and
2082 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2083 # the test accordingly.
2088 External links: IDN ignored character reference in hostname; strip it right off
2090 http://e‌xample.com/
2092 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2097 External links: www.jpeg.org (bug 554)
2101 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2106 External links: URL within URL (original bug 2)
2108 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2110 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2115 BUG 361: URL inside bracketed URL
2117 [http://www.example.com/foo http://www.example.com/bar]
2119 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2124 BUG 361: URL within URL, not bracketed
2126 http://www.example.com/foo?=http://www.example.com/bar
2128 <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>
2133 BUG 289: ">"-token in URL-tail
2135 http://www.example.com/<hello>
2137 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2142 BUG 289: literal ">"-token in URL-tail
2144 http://www.example.com/<b>html</b>
2146 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2151 BUG 289: ">"-token in bracketed URL
2153 [http://www.example.com/<hello> stuff]
2155 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2160 BUG 289: literal ">"-token in bracketed URL
2162 [http://www.example.com/<b>html</b> stuff]
2164 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2169 BUG 289: literal double quote at end of URL
2171 http://www.example.com/"hello"
2173 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2178 BUG 289: literal double quote in bracketed URL
2180 [http://www.example.com/"hello" stuff]
2182 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2187 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2189 [http://www.example.com test]
2191 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2196 External links: wiki links within external link (Bug 3695)
2198 [http://example.com [[wikilink]] embedded in ext link]
2200 <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>
2205 BUG 787: Links with one slash after the url protocol are invalid
2209 [http:/example.com title]
2211 <p>http:/example.com
2212 </p><p>[http:/example.com title]
2217 Bracketed external links with template-generated invalid target
2219 [{{echo|http:/example.com}} title]
2221 <p>[http:/example.com title]
2226 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2228 ''[http://example.com text'']
2229 [http://example.com '''text]'''
2230 ''Something [http://example.com in italic'']
2231 ''Something [http://example.com mixed''''', even bold]'''
2232 '''''Now [http://example.com both''''']
2234 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2235 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2236 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2237 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2238 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2244 Bug 4781: %26 in URL
2246 http://www.example.com/?title=AT%26T
2248 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2252 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2253 # % is actually legal in HTML5. Any change in output would need testing though.
2255 Bug 4781, 5267: %25 in URL
2257 http://www.example.com/?title=100%25_Bran
2259 <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>
2264 Bug 4781, 5267: %28, %29 in URL
2266 http://www.example.com/?title=Ben-Hur_%281959_film%29
2268 <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>
2274 Bug 4781: %26 in autonumber URL
2276 [http://www.example.com/?title=AT%26T]
2278 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2283 Bug 4781, 5267: %26 in autonumber URL
2285 [http://www.example.com/?title=100%25_Bran]
2287 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2292 Bug 4781, 5267: %28, %29 in autonumber URL
2294 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2296 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2302 Bug 4781: %26 in bracketed URL
2304 [http://www.example.com/?title=AT%26T link]
2306 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2311 Bug 4781, 5267: %26 in bracketed URL
2313 [http://www.example.com/?title=100%25_Bran link]
2315 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2320 Bug 4781, 5267: %28, %29 in bracketed URL
2322 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2324 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2329 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2331 Some [http://example.com/ pretty ''italics'' and stuff]!
2333 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2338 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2340 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2342 <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>
2347 External link containing double-single-quotes with no space separating the url from text in italics
2349 [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]].]
2351 <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>
2356 URL-encoding in URL functions (single parameter)
2358 {{localurl:Some page|amp=&}}
2360 <p>/index.php?title=Some_page&amp=&
2365 URL-encoding in URL functions (multiple parameters)
2367 {{localurl:Some page|q=?&=&}}
2369 <p>/index.php?title=Some_page&q=?&amp=&
2376 http://example.com/index.php?foozoid%5B%5D=bar
2378 http://example.com/index.php?foozoid[]=bar
2380 <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>
2381 </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>
2386 IPv6 urls (bug 21261)
2390 http://[2404:130:0:1000::187:2]/index.php
2392 <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>
2403 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2405 Normal text. '''''Bold italic text.''''' Normal text.
2407 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2408 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2414 Unclosed and unmatched quotes
2416 '''''Bold italic text '''with bold deactivated''' in between.'''''
2418 '''''Bold italic text ''with italic deactivated'' in between.'''''
2422 ..spanning two paragraphs (should not work).'''
2424 '''Bold tag left open
2426 ''Italic tag left open
2430 <!-- Unmatching number of opening, closing tags: -->
2431 '''This year''''s election ''should'' beat '''last year''''s.
2433 ''Tom'''s car is bigger than ''Susan'''s.
2435 Plain ''italic'''s plain
2437 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2438 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2439 </p><p><b>Bold text..</b>
2440 </p><p>..spanning two paragraphs (should not work).
2441 </p><p><b>Bold tag left open</b>
2442 </p><p><i>Italic tag left open</i>
2444 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2445 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2446 </p><p>Plain <i>italic'</i>s plain
2453 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2456 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2457 # is the bare minimun required by the spec, see:
2458 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2460 A table with no data.
2466 # A table with nothing but a caption is invalid XHTML, we might want to render
2467 # this as <p>caption</p>
2469 A table with nothing but a caption
2477 </caption><tr><td></td></tr></table>
2503 Simple table but with multiple dashes for row wikitext
2521 Multiplication table
2523 {| border="1" cellpadding="2"
2524 |+Multiplication table
2526 ! × !! 1 !! 2 !! 3
2544 <table border="1" cellpadding="2">
2545 <caption>Multiplication table
2592 Allow +/- in 2nd and later cells in a row
2619 |rowspan=2| Cell 2, row 1 (and 2)
2630 <td rowspan="2"> Cell 2, row 1 (and 2)
2648 {| bgcolor=#ABCDEF border=2
2653 |the original table again
2661 <table bgcolor="#ABCDEF" border="2">
2669 <td>the original table again
2675 Invalid attributes in table cell (bug 1830)
2690 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2693 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2697 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2698 <td>]" onmouseover="alert(document.cookie)">test
2707 Indented table markup mixed with indented pre content (proposed in bug 6200)
2712 Text that should be rendered preformatted
2720 <pre>Text that should be rendered preformatted
2733 Plain link, capitalized
2737 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2742 Plain link, uncapitalized
2746 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2753 [[Main Page|The Main Page]]
2755 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2764 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2769 Broken link with fragment
2771 [[Zigzagzogzagzig#zug]]
2773 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2778 Special page link with fragment
2780 [[Special:Version#anchor]]
2782 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2787 Nonexistent special page link with fragment
2789 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2791 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2798 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2800 <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>
2807 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2809 <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>!!!
2814 Link with 3 brackets
2823 Piped link with 3 brackets
2825 [[[main page|the main page]]]
2827 <p>[[[main page|the main page]]]
2832 Link with multiple pipes
2834 [[Main Page|The|Main|Page]]
2836 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2843 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2845 <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>
2850 Piped link to namespace
2852 [[Meta:Disclaimers|The disclaimers]]
2854 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2861 [[Usually caused by a typo (oops}]]
2863 <p>[[Usually caused by a typo (oops}]]
2868 Link containing % (not as a hex sequence)
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 single hex sequence interpreted to char
2881 <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>
2886 Link containing % as a double hex sequence interpreted to hex sequence
2890 <p>[[7%2525 Solution]]
2895 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2896 Example for such a section: == < ==
2898 [[%23%3c]][[%23%3e]]
2900 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2905 Link containing "<#" and ">#" as a hex sequences
2907 [[%3c%23]][[%3e%23]]
2909 <p>[[%3c%23]][[%3e%23]]
2914 Link containing double-single-quotes '' (bug 4598)
2916 [[Lista d''e paise d''o munno]]
2918 <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>
2923 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2925 Some [[Link|pretty ''italics'' and stuff]]!
2927 <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>!
2932 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2934 ''Some [[Link|pretty ''italics'' and stuff]]!
2936 <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>
2941 Link with double quotes in title part (literal) and alternate part (interpreted)
2943 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2947 [[''Pentecoste''|Pentecoste]]
2949 [[''Pentecoste''|''Pentecoste'']]
2951 <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>
2952 </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>
2953 </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>
2954 </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>
2959 Broken image links with HTML captions (bug 39700)
2961 [[File:Nonexistent|<script></script>]]
2962 [[File:Nonexistent|100px|<script></script>]]
2963 [[File:Nonexistent|<]]
2964 [[File:Nonexistent|a<i>b</i>c]]
2966 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2967 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2968 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2969 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2976 [[http://www.example.com]]
2978 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2983 Plain link to URL with link text
2985 [[http://www.example.com Link text]]
2987 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2992 Plain link to protocol-relative URL
2994 [[//www.example.com]]
2996 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3001 Plain link to protocol-relative URL with link text
3003 [[//www.example.com Link text]]
3005 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3010 # I'm fairly sure the expected result here is wrong.
3011 # We want these to be URL links, not pseudo-pages with URLs for titles....
3012 # However the current output is also pretty screwy.
3015 # I'm changing it to match the current output--it arguably makes more
3016 # sense in the light of the test above. Old expected result was:
3017 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3019 # But I think this test is bordering on "garbage in, garbage out" anyway.
3024 Piped link to URL: [[http://www.example.com|an example URL]]
3026 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3031 BUG 2: [[page|http://url/]] should link to page, not http://url/
3033 [[Main Page|http://url/]]
3035 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3040 BUG 337: Escaped self-links should be bold
3044 [[Bug462]] [[Bug462]]
3046 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3051 Self-link to section should not be bold
3055 [[Main Page#section]]
3057 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3068 Self-link to numeric title
3074 <p><strong class="selflink">0</strong>
3079 Link to numeric-equivalent title
3085 <p><a href="/wiki/00" title="00">00</a>
3090 <nowiki> inside a link
3092 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3094 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3099 Non-breaking spaces in title
3101 [[ Main Page ]]
3103 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3108 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3114 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3119 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3125 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3130 Internal link with en linktrail: no apostrophes (bug 27473)
3136 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3141 Internal link with ca linktrail with apostrophes (bug 27473)
3147 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3152 Internal link with kaa linktrail with apostrophes (bug 27473)
3158 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3163 ### Interwiki links (see maintenance/interwiki.sql)
3167 Inline interwiki link
3169 [[MeatBall:SoftSecurity]]
3171 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3176 Inline interwiki link with empty title (bug 2372)
3180 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3185 Interwiki link encoding conversion (bug 1636)
3187 *[[Wikipedia:ro:Olteniţa]]
3188 *[[Wikipedia:ro:Olteniţa]]
3190 <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>
3191 </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>
3197 Interwiki link with fragment (bug 2130)
3199 [[MeatBall:SoftSecurity#foo]]
3201 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3216 Double interlanguage link
3227 Interlanguage link, with prefix links
3239 Double interlanguage link, with prefix links (bug 8897)
3252 Parsoid-specific test: Wikilinks with should RT properly
3258 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3276 Broken br tag sanitization
3285 Incorrecly removing closing slashes from correctly formed XHTML
3287 <br style="clear:both;" />
3289 <p><br style="clear:both;" />
3294 Failing to transform badly formed HTML into correct XHTML
3296 <br style="clear: left;">
3297 <br style="clear: right;">
3298 <br style="clear: both;">
3300 <p><br style="clear: left;" />
3301 <br style="clear: right;" />
3302 <br style="clear: both;" />
3307 Handling html with a div self-closing tag
3316 <p><div title />
3320 <p><div title=bar />
3321 <div title=bar/>
3323 <div title="bar/"></div>
3329 Handling html with a br self-closing tag
3338 <p><br title="title" />
3339 <br title="title" />
3348 Horizontal ruler (should it add that extra space?)
3362 Horizontal ruler -- 4+ dashes render hr
3371 Horizontal ruler -- eats additional dashes on the same line
3380 Horizontal ruler -- does not collaps dashes on consecutive lines
3391 Horizontal ruler -- <4 dashes render as plain text
3400 ### Block-level elements
3423 <ol><li>Numbered list
3440 ***#Number on level 4
3442 **#Number on level 3
3443 **#Number on level 3
3447 #** Level 3, but ordered
3450 <ol><li> with numbers
3452 <ul><li> and bullets
3454 <ol><li> and numbers
3456 </li><li>bullets again
3457 <ul><li>bullet level 2
3458 <ul><li>bullet level 3
3459 <ol><li>Number on level 4
3462 </li><li>bullet level 2
3463 <ol><li>Number on level 3
3464 </li><li>Number on level 3
3467 <ol><li>number level 2
3470 <ul><li><ul><li> Level 3
3474 <ol><li><ul><li><ul><li> Level 3, but ordered
3508 Nested lists 3 (first element empty)
3521 Nested lists 4 (first element empty)
3534 Nested lists 5 (both elements empty)
3547 Nested lists 6 (both elements empty)
3560 Nested lists 7 (skip initial nesting levels)
3564 <ul><li><ul><li><ul><li> foo
3572 Nested lists 8 (multiple nesting transitions)
3580 <ul><li><ul><li> bar
3590 1. Lists with start-of-line-transparent tokens before bullets: Comments
3604 2. Lists with start-of-line-transparent tokens before bullets: Template close
3616 List items are not parsed correctly following a <pre> block (bug 785)
3622 <ul><li> <pre>foo</pre>
3623 </li><li> <pre>bar</pre>
3630 List items from template
3641 * notSOL{{inner list}}
3660 List interrupted by empty line or heading
3670 <ul><li><ul><li> bar
3673 <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>
3674 <ul><li> Another list item
3685 Magic Word: {{CURRENTDAY}}
3694 Magic Word: {{CURRENTDAY2}}
3703 Magic Word: {{CURRENTDAYNAME}}
3712 Magic Word: {{CURRENTDOW}}
3721 Magic Word: {{CURRENTMONTH}}
3730 Magic Word: {{CURRENTMONTHABBREV}}
3732 {{CURRENTMONTHABBREV}}
3739 Magic Word: {{CURRENTMONTHNAME}}
3741 {{CURRENTMONTHNAME}}
3748 Magic Word: {{CURRENTMONTHNAMEGEN}}
3750 {{CURRENTMONTHNAMEGEN}}
3757 Magic Word: {{CURRENTTIME}}
3766 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3775 Magic Word: {{CURRENTYEAR}}
3784 Magic Word: {{FULLPAGENAME}}
3786 title=[[User:Ævar Arnfjörð Bjarmason]]
3790 <p>User:Ævar Arnfjörð Bjarmason
3795 Magic Word: {{FULLPAGENAMEE}}
3797 title=[[User:Ævar Arnfjörð Bjarmason]]
3801 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3806 Magic Word: {{NAMESPACE}}
3808 title=[[User:Ævar Arnfjörð Bjarmason]]
3817 Magic Word: {{NAMESPACEE}}
3819 title=[[User:Ævar Arnfjörð Bjarmason]]
3828 Magic Word: {{NAMESPACENUMBER}}
3830 title=[[User:Ævar Arnfjörð Bjarmason]]
3839 Magic Word: {{NUMBEROFFILES}}
3848 Magic Word: {{PAGENAME}}
3850 title=[[User:Ævar Arnfjörð Bjarmason]]
3854 <p>Ævar Arnfjörð Bjarmason
3859 Magic Word: {{PAGENAME}} with metacharacters
3861 title=[['foo & bar = baz']]
3865 <p><i>'foo & bar = baz'</i>
3870 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3872 title=[[*RFC 1234 http://example.com/]]
3876 <p>*RFC 1234 http://example.com/
3881 Magic Word: {{PAGENAMEE}}
3883 title=[[User:Ævar Arnfjörð Bjarmason]]
3887 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3892 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3894 title=[[*RFC 1234 http://example.com/]]
3898 <p>*RFC_1234_http://example.com/
3903 Magic Word: {{REVISIONID}}
3912 Magic Word: {{SCRIPTPATH}}
3921 Magic Word: {{SERVER}}
3925 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3930 Magic Word: {{SERVERNAME}}
3939 Magic Word: {{SITENAME}}
3948 Namespace 1 {{ns:1}}
3957 Namespace 1 {{ns:01}}
3966 Namespace 0 {{ns:0}} (bug 4783)
3974 Namespace 0 {{ns:00}} (bug 4783)
3982 Namespace -1 {{ns:-1}}
3991 Namespace User {{ns:User}}
4000 Namespace User talk {{ns:User_talk}}
4009 Namespace User talk {{ns:uSeR tAlK}}
4018 Namespace File {{ns:File}}
4027 Namespace File {{ns:Image}}
4036 Namespace (lang=de) Benutzer {{ns:User}}
4047 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4053 <p>Benutzer Diskussion
4061 {{urlencode:hi world?!}}
4062 {{urlencode:hi world?!|WIKI}}
4063 {{urlencode:hi world?!|PATH}}
4064 {{urlencode:hi world?!|QUERY}}
4077 Magic links: internal link to RFC (bug 479)
4081 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4086 Magic links: RFC (bug 479)
4090 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4095 Magic links: ISBN (bug 1937)
4099 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4104 Magic links: PMID incorrectly converts space to underscore
4108 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4117 Nonexistent template
4119 {{thistemplatedoesnotexist}}
4121 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4128 This is a test template
4136 <p>This is a test template
4141 Template with explicit namespace
4145 <p>This is a test template
4153 This is a test template with parameter {{{param}}}
4159 {{paramtest|param=foo}}
4161 <p>This is a test template with parameter foo
4166 Template:paramtestnum
4172 Template unnamed parameter
4174 {{paramtestnum|Main Page|the main page}}
4176 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4181 Template:templatesimple
4187 Template:templateredirect
4189 #redirect [[Template:templatesimple]]
4193 Template:templateasargtestnum
4199 Template:templateasargtest
4201 {{template{{{templ}}}}}
4205 Template:templateasargtest2
4211 Template with template name as unnamed argument
4213 {{templateasargtestnum|templatesimple}}
4220 Template with template name as argument
4222 {{templateasargtest|templ=simple}}
4229 Template with template name as argument (2)
4231 {{templateasargtest2|templ=templatesimple}}
4238 Template:templateasargtestdefault
4240 {{{{{templ|templatesimple}}}}}
4250 Template with default value
4252 {{templateasargtestdefault}}
4259 Template with default value (value set)
4261 {{templateasargtestdefault|templ=templa}}
4270 {{templateredirect}}
4277 Template with argument in separate line
4279 {{ templateasargtest |
4287 Template with complex template as argument
4290 param ={{ templateasargtest |
4293 <p>This is a test template with parameter (test)
4298 Template with thumb image (with link in description)
4301 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4303 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>
4308 Template:complextemplate
4310 {{{1}}} {{paramtest|
4311 param ={{{param}}}}}
4315 Template with complex arguments
4318 param ={{ templateasargtest |
4319 templ = simple }}|[[Template:complextemplate|link]]}}
4321 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4326 BUG 553: link with two variables in a piped link
4329 |[[{{{1}}}|{{{2}}}]]
4334 <td>[[{{{1}}}|{{{2}}}]]
4340 Magic variable as template parameter
4342 {{paramtest|param={{SITENAME}}}}
4344 <p>This is a test template with parameter MediaWiki
4351 [[{{{param}}}|link]]
4355 Template parameter as link source
4357 {{linktest|param=Main Page}}
4359 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4364 Template-generated attribute string (k='v')
4366 <span {{attr_str|id|v1}}>bar</span>
4368 <p><span id="v1">bar</span>
4375 including another template, {{paramtest|param={{{arg}}}}}
4379 Template passing argument to another template
4381 {{paramtest2|arg='hmm'}}
4383 <p>including another template, This is a test template with parameter 'hmm'
4394 Template as link source
4398 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4416 Template infinite loop
4420 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4425 Template from main namespace
4444 BUG 529: Template with table, not included at beginning of line
4463 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4483 BUG 41: Template parameters shown as broken links
4495 ''None'' of '''this''' should be
4497 but rather passed unmodified
4501 # hmm, fix this or just deprecate msgnw and document its behavior?
4507 {{msgnw:MSGNW test}}
4509 <p>''None'' of '''this''' should be
4511 but rather passed unmodified
4519 {{int:youhavenewmessages|lots of money|not!}}
4521 <p>You have lots of money (not!).
4528 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4532 <includeonly> and <noinclude> being included
4543 <onlyinclude>Foo</onlyinclude>bar
4547 <onlyinclude> being included
4559 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4563 <onlyinclude> and <includeonly> being included
4572 <includeonly> and <noinclude> on a page
4574 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4581 <onlyinclude> on a page
4583 <onlyinclude>Foo</onlyinclude>bar
4590 Template:Includeonly section
4593 ==Includeonly section==
4599 Bug 6563: Edit link generation for section shown by <includeonly>
4601 {{includeonly section}}
4603 <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>
4604 <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>
4608 # Uses same input as the contents of [[Template:Includeonly section]]
4610 Bug 6563: Section extraction for section shown by <includeonly>
4615 ==Includeonly section==
4623 Bug 6563: Edit link generation for section suppressed by <includeonly>
4626 ==Includeonly section==
4630 <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>
4635 Bug 6563: Section extraction for section suppressed by <includeonly>
4640 ==Includeonly section==
4648 ### <includeonly> and <noinclude> in attributes
4651 0. includeonly around the entire attribute
4653 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4655 <p><span id="v2">bar</span>
4660 1. includeonly in html attr key
4662 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4664 <p><span id="foo">bar</span>
4669 2. includeonly in html attr value
4671 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4672 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4674 <p><span id="v1">bar</span>
4675 <span id="v1">bar</span>
4680 3. includeonly in part of an attr value
4682 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4684 <p><span style="color:red;">bar</span>
4689 ### Testing parsing of templates where a template arg
4690 ### has the same name as the template itself.
4700 Templates: Template Name/Arg clash: 1. Use of positional param
4709 Templates: Template Name/Arg clash: 2. Use of named param
4718 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4727 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4731 Templates: 1. Simple use
4740 Templates: 2. Inside a block tag
4742 <div>{{echo|Foo}}</div>
4749 Templates: P-wrapping: 1a. Templates on consecutive lines
4760 Templates: P-wrapping: 1b. Templates on consecutive lines
4774 Templates: P-wrapping: 1c. Templates on consecutive lines
4777 {{echo|bar}} <div>baz</div>
4786 Templates: Inline Text: 1. Multiple tmeplate uses
4788 {{echo|Foo}}bar{{echo|baz}}
4795 Templates: Inline Text: 2. Back-to-back template uses
4797 {{echo|Foo}}{{echo|bar}}
4804 Templates: Block Tags: 1. Multiple template uses
4806 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4808 <div>Foo</div><div>bar</div><div>baz</div>
4813 Templates: Block Tags: 2. Back-to-back template uses
4815 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4817 <div>Foo</div><div>bar</div>
4822 Templates: Links: 1. Simple example
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: 2. Generation of link href
4833 [[{{echo|Foo}}|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: 3. Generation of part of a link href
4842 [[Fo{{echo|o}}|bar]]
4844 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4849 Templates: Links: 4. Multiple templates generating link href
4851 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4853 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4858 Templates: Links: 5. Generation of link text
4860 [[Foo|{{echo|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: Links: 5. Nested templates (only outermost template should be marked)
4869 {{echo|[[{{echo|Foo}}|bar]]}}
4871 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4876 Templates: HTML Tag: 1. Generation of HTML attr. key
4878 <div {{echo|style}}="color:red;">foo</div>
4880 <div style="color:red;">foo</div>
4885 Templates: HTML Tag: 2. Generation of HTML attr. value
4887 <div style={{echo|'color:red;'}}>foo</div>
4889 <div style="color:red;">foo</div>
4894 Templates: HTML Tag: 3. Generation of HTML attr key and value
4896 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4898 <div style="color:red;">foo</div>
4903 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4905 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4907 <div title="This is a long title with just one piece templated">foo</div>
4912 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4914 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4916 <div title="This is a long title with just one piece templated">foo</div>
4921 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4923 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4925 <div title="This is a long title with just one piece templated">foo</div>
4930 Templates: HTML Tables: 1. Generating start of a HTML table
4932 {{echo|<table><tr><td>foo</td>}}</tr></table>
4934 <table><tr><td>foo</td></tr></table>
4939 Templates: HTML Tables: 2a. Generating middle of a HTML table
4941 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4943 <table><tr><td>foo</td></tr></table>
4948 Templates: HTML Tables: 2b. Generating middle of a HTML table
4950 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4952 <table><tr><td>foo</td></tr></table>
4957 Templates: HTML Tables: 3. Generating end of a HTML table
4959 <table><tr>{{echo|<td>foo</td></tr></table>}}
4961 <table><tr><td>foo</td></tr></table>
4966 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
4968 {{echo|<table>}}<tr><td>foo</td></tr></table>
4970 <table><tr><td>foo</td></tr></table>
4975 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
4977 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4979 <table><tr><td>foo</td></tr></table>
4984 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
4986 <table><tr>{{echo|<td>}}foo</td></tr></table>
4988 <table><tr><td>foo</td></tr></table>
4993 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
4995 <table><tr><td>foo{{echo|</td>}}</tr></table>
4997 <table><tr><td>foo</td></tr></table>
5002 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5004 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5006 <table><tr><td>foo</td></tr></table>
5011 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5013 <table><tr><td>foo</td></tr>{{echo|</table>}}
5015 <table><tr><td>foo</td></tr></table>
5020 Templates: Wiki Tables: 1. Fostering of entire template content
5028 <tr><td></td></tr></table>
5033 Templates: Wiki Tables: 2. Fostering of partial template content
5043 <tr><td></td></tr></table>
5048 Templates: Wiki Tables: 3. td-content via multiple templates
5051 {{echo|{{pipe}}a}}{{echo|b}}
5062 Templates: Lists: Multi-line list-items via templates
5064 *{{echo|a {{nonexistent|
5066 *{{echo|b {{nonexistent|
5069 <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>
5070 </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>
5076 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5078 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5080 <p><i>ab</i>c<i>d</i>e
5085 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5086 (PHP parser generates misnested html)
5090 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5092 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5096 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5097 (PHP parser generates misnested html)
5101 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5104 <div><i>b</i>c<i>d</i></div>
5109 Templates: Ugly nesting: 4. Divs opened/closed across templates
5111 a<div>b{{echo|c</div>d}}e
5118 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5124 |{{echo|foo</table>}}
5128 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5129 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5130 bar</span><span about="#mwt1">
5135 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5145 <td>1. {{echo|foo </table>}}</td>
5147 <td>2. {{echo|baz </table>}}</td>
5160 <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">
5161 <tbody><tr data-parsoid="{"stx":"html"}">
5162 <td data-parsoid="{"stx":"html"}">
5163 <table data-parsoid="{"stx":"html"}">
5164 <tbody><tr data-parsoid="{"stx":"html"}">
5165 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5166 <td data-parsoid="{"stx":"html"}"> bar </td>
5167 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5168 </span><span about="#mwt1">
5170 abc</span><span about="#mwt1">
5171 </span><span about="#mwt1">
5172 </span><span about="#mwt1">
5173 </span><span about="#mwt1">
5174 </span><span about="#mwt1">
5176 xyz</span><span about="#mwt1">
5177 </span><span about="#mwt1">
5182 Parser Functions: 1. Simple example
5191 Parser Functions: 2. Nested use (only outermost should be marked up)
5200 ### Pre-save transform tests
5203 pre-save transform: subst:
5209 This is a test template
5213 pre-save transform: normal template
5223 pre-save transform: nonexistent template
5227 {{thistemplatedoesnotexist}}
5229 {{thistemplatedoesnotexist}}
5234 pre-save transform: subst magic variables
5243 # This is bug 89, which I fixed. -- wtm
5245 pre-save transform: subst: templates with parameters
5249 {{subst:paramtest|param="something else"}}
5251 This is a test template with parameter "something else"
5257 <nowiki>'''not wiki'''</nowiki>
5261 pre-save transform: nowiki in subst (bug 1188)
5265 {{subst:nowikitest}}
5267 <nowiki>'''not wiki'''</nowiki>
5272 Template:commenttest
5274 This template has <!-- a comment --> in it.
5278 pre-save transform: comment in subst (bug 1936)
5282 {{subst:commenttest}}
5284 This template has <!-- a comment --> in it.
5288 pre-save transform: unclosed tag
5292 <nowiki>'''not wiki'''
5294 <nowiki>'''not wiki'''
5298 pre-save transform: mixed tag case
5302 <NOwiki>'''not wiki'''</noWIKI>
5304 <NOwiki>'''not wiki'''</noWIKI>
5308 pre-save transform: unclosed comment in <nowiki>
5312 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5314 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5320 <span onmouseover="alert('crap')">Oh no</span>
5324 (confirming safety of fix for subst bug 1936)
5326 {{Template:dangerous}}
5328 <p><span>Oh no</span>
5333 pre-save transform: comment containing gallery (bug 5024)
5337 <!-- <gallery>data</gallery> -->
5339 <!-- <gallery>data</gallery> -->
5343 pre-save transform: comment containing extension
5347 <!-- <tag>data</tag> -->
5349 <!-- <tag>data</tag> -->
5353 pre-save transform: comment containing nowiki
5357 <!-- <nowiki>data</nowiki> -->
5359 <!-- <nowiki>data</nowiki> -->
5363 pre-save transform: <noinclude> in subst (bug 3298)
5373 pre-save transform: <onlyinclude> in subst (bug 3298)
5385 {{<includeonly>subst:</includeonly>Includes}}
5389 Template:SafeSubstTest
5391 {{<includeonly>safesubst:</includeonly>Includes}}
5395 bug 22297: safesubst: works during PST
5399 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5405 bug 22297: safesubst: works during normal parse
5414 subst: does not work during normal parse
5418 <p>{{subst:Includes}}
5423 pre-save transform: context links ("pipe trick")
5427 [[Article (context)|]]
5430 [[Bar:Article (context)|]]
5431 [[:Bar:Article (context)|]]
5433 [[|Article (context)]]
5437 [[Article (context)|Article]]
5438 [[Bar:Article|Article]]
5439 [[:Bar:Article|Article]]
5440 [[Bar:Article (context)|Article]]
5441 [[:Bar:Article (context)|Article]]
5443 [[Article (context)]]
5444 [[Bar:X (Y) Z|X (Y) Z]]
5445 [[:Bar:X (Y) Z|X (Y) Z]]
5449 pre-save transform: context links ("pipe trick") with interwiki prefix
5453 [[interwiki:Article|]]
5454 [[:interwiki:Article|]]
5455 [[interwiki:Bar:Article|]]
5456 [[:interwiki:Bar:Article|]]
5458 [[interwiki:Article|Article]]
5459 [[:interwiki:Article|Article]]
5460 [[interwiki:Bar:Article|Bar:Article]]
5461 [[:interwiki:Bar:Article|Bar:Article]]
5465 pre-save transform: context links ("pipe trick") with parens in title
5467 pst title=[[Somearticle (context)]]
5471 [[Article (context)|Article]]
5475 pre-save transform: context links ("pipe trick") with comma in title
5477 pst title=[[Someplace, Somewhere]]
5480 [[Otherplace, Elsewhere|]]
5481 [[Otherplace, Elsewhere, Anywhere|]]
5483 [[Otherplace, Somewhere|Otherplace]]
5484 [[Otherplace, Elsewhere|Otherplace]]
5485 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5489 pre-save transform: context links ("pipe trick") with parens and comma
5491 pst title=[[Someplace (IGNORED), Somewhere]]
5494 [[Otherplace (place), Elsewhere|]]
5496 [[Otherplace, Somewhere|Otherplace]]
5497 [[Otherplace (place), Elsewhere|Otherplace]]
5501 pre-save transform: context links ("pipe trick") with comma and parens
5503 pst title=[[Who, me? (context)]]
5506 [[Me, Myself, and I (1937 song)|]]
5508 [[Yes, you. (context)|Yes, you.]]
5509 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5513 pre-save transform: context links ("pipe trick") with namespace
5515 pst title=[[Ns:Somearticle]]
5519 [[Ns:Article|Article]]
5523 pre-save transform: context links ("pipe trick") with namespace and parens
5525 pst title=[[Ns:Somearticle (context)]]
5529 [[Ns:Article (context)|Article]]
5533 pre-save transform: context links ("pipe trick") with namespace and comma
5535 pst title=[[Ns:Somearticle, Context, Whatever]]
5539 [[Ns:Article, Context, Whatever|Article]]
5543 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5545 pst title=[[Ns:Somearticle, Context (context)]]
5549 [[Ns:Article (context)|Article]]
5553 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5555 pst title=[[Ns:Somearticle (IGNORED), Context]]
5559 [[Ns:Article, Context|Article]]
5563 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5567 [[Article(context)|]]
5568 [[Bar:Article(context)|]]
5569 [[:Bar:Article(context)|]]
5570 [[|Article(context)]]
5574 [[Article(context)|Article]]
5575 [[Bar:Article(context)|Article]]
5576 [[:Bar:Article(context)|Article]]
5577 [[Article(context)]]
5579 [[:Bar:X(Y)Z|X(Y)Z]]
5583 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5587 [[Article (context)|]]
5588 [[Bar:Article (context)|]]
5589 [[:Bar:Article (context)|]]
5590 [[|Article (context)]]
5594 [[Article (context)|Article]]
5595 [[Bar:Article (context)|Article]]
5596 [[:Bar:Article (context)|Article]]
5597 [[Article (context)]]
5598 [[Bar:X (Y) Z|X (Y) Z]]
5599 [[:Bar:X (Y) Z|X (Y) Z]]
5603 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5607 [[Article(context)|]]
5608 [[Bar:Article(context)|]]
5609 [[:Bar:Article(context)|]]
5610 [[|Article(context)]]
5614 [[Article(context)|Article]]
5615 [[Bar:Article(context)|Article]]
5616 [[:Bar:Article(context)|Article]]
5617 [[Article(context)]]
5619 [[:Bar:X(Y)Z|X(Y)Z]]
5623 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5627 [[Article (context), context|]]
5628 [[Article (context),context|]]
5629 [[Bar:Article (context), context|]]
5630 [[Bar:Article (context),context|]]
5631 [[:Bar:Article (context), context|]]
5632 [[:Bar:Article (context),context|]]
5634 [[Article (context), context|Article]]
5635 [[Article (context),context|Article]]
5636 [[Bar:Article (context), context|Article]]
5637 [[Bar:Article (context),context|Article]]
5638 [[:Bar:Article (context), context|Article]]
5639 [[:Bar:Article (context),context|Article]]
5643 pre-save transform: trim trailing empty lines
5647 Empty lines are trimmed
5653 Empty lines are trimmed
5657 pre-save transform: Signature expansion
5662 * <noinclude>~~~</noinclude>
5663 * <includeonly>~~~</includeonly>
5664 * <onlyinclude>~~~</onlyinclude>
5666 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5667 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5668 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5669 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5674 pre-save transform: Signature expansion in nowiki tags (bug 93)
5680 <nowiki>~~~~</nowiki>
5682 <includeonly><nowiki>~~~~</nowiki></includeonly>
5684 <noinclude><nowiki>~~~~</nowiki></noinclude>
5686 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5688 {{subst:Foo}} shall be converted to FOO
5690 As well as inside noinclude/onlyinclude
5691 <noinclude>{{subst:Foo}}</noinclude>
5692 <onlyinclude>{{subst:Foo}}</onlyinclude>
5694 But not inside includeonly
5695 <includeonly>{{subst:Foo}}</includeonly>
5699 <nowiki>~~~~</nowiki>
5701 <includeonly><nowiki>~~~~</nowiki></includeonly>
5703 <noinclude><nowiki>~~~~</nowiki></noinclude>
5705 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5707 FOO shall be converted to FOO
5709 As well as inside noinclude/onlyinclude
5710 <noinclude>FOO</noinclude>
5711 <onlyinclude>FOO</onlyinclude>
5713 But not inside includeonly
5714 <includeonly>{{subst:Foo}}</includeonly>
5718 ### Message transform tests
5721 message transform: magic variables
5731 message transform: should not transform wiki markup
5741 message transform: <noinclude> in transcluded template (bug 4926)
5751 message transform: <onlyinclude> in transcluded template (bug 4926)
5761 {{#special:}} page name, known
5765 {{#special:Recentchanges}}
5767 Special:RecentChanges
5771 {{#special:}} page name with subpage, known
5775 {{#special:Recentchanges/param}}
5777 Special:RecentChanges/param
5781 {{#special:}} page name, unknown
5785 {{#special:foobarnonexistent}}
5787 No such special page
5791 {{#speciale:}} page name, known
5795 {{#speciale:Recentchanges}}
5797 Special:RecentChanges
5801 {{#speciale:}} page name with subpage, known
5805 {{#speciale:Recentchanges/param}}
5807 Special:RecentChanges/param
5811 {{#speciale:}} page name, unknown
5815 {{#speciale:foobarnonexistent}}
5817 No_such_special_page
5826 [[Image:foobar.jpg]]
5828 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5835 [[Image:foobar.jpg|right]]
5837 <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>
5842 Simple image (using File: namespace, now canonical)
5846 <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>
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 empty attribute
5862 [[Image:foobar.jpg|right||Caption text]]
5864 <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>
5869 Image with link tails
5871 123[[Image:foobar.jpg]]456
5872 123[[Image:foobar.jpg|right]]456
5873 123[[Image:foobar.jpg|thumb]]456
5875 <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
5877 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
5878 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
5883 Image with multiple captions -- only last one is accepted
5885 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5887 <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>
5892 Image with link parameter, wiki target
5894 [[Image:foobar.jpg|link=Target page]]
5896 <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>
5901 Image with link parameter, URL target
5903 [[Image:foobar.jpg|link=http://example.com/]]
5905 <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>
5910 Image with link parameter, wgExternalLinkTarget
5912 [[Image:foobar.jpg|link=http://example.com/]]
5914 wgExternalLinkTarget='foobar'
5916 <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>
5921 Image with link parameter, wgNoFollowLinks set to false
5923 [[Image:foobar.jpg|link=http://example.com/]]
5925 wgNoFollowLinks=false
5927 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5932 Image with link parameter, wgNoFollowDomainExceptions
5934 [[Image:foobar.jpg|link=http://example.com/]]
5936 wgNoFollowDomainExceptions='example.com'
5938 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5943 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5945 [[Image:foobar.jpg|link=http://example.com/|Title]]
5947 wgExternalLinkTarget='foobar'
5949 <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>
5954 Image with empty link parameter
5956 [[Image:foobar.jpg|link=]]
5958 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5963 Image with link parameter (wiki target) and unnamed parameter
5965 [[Image:foobar.jpg|link=Target page|Title]]
5967 <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>
5972 Image with link parameter (URL target) and unnamed parameter
5974 [[Image:foobar.jpg|link=http://example.com/|Title]]
5976 <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>
5981 Thumbnail image with link parameter
5983 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5985 <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>
5990 Image with frame and link
5992 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5994 <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>
5999 Image with frame and link and explicit alt
6001 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6003 <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>
6008 Image with wiki markup in implicit alt
6010 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6012 <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>
6017 Image with wiki markup in explicit alt
6019 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6021 <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>
6026 Link to image page- image page normally doesn't exists, hence edit link
6027 Add test with existing image page
6028 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6032 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6037 bug 18784 Link to non-existent image page with caption should use caption as link text
6039 [[:Image:test|caption]]
6041 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6046 Frameless image caption with a free URL
6048 [[Image:foobar.jpg|http://example.com]]
6050 <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>
6055 Thumbnail image caption with a free URL
6057 [[Image:foobar.jpg|thumb|http://example.com]]
6059 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
6064 Thumbnail image caption with a free URL and explicit alt
6066 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6068 <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>
6073 BUG 1887: A ISBN with a thumbnail
6075 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
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><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6082 BUG 1887: A RFC with a thumbnail
6084 [[Image:foobar.jpg|thumb|This is RFC 12354]]
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>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6091 BUG 1887: A mailto link with a thumbnail
6093 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6095 <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>
6099 # Pending resolution to bug 368
6101 BUG 648: Frameless image caption with a link
6103 [[Image:foobar.jpg|text with a [[link]] in it]]
6105 <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>
6110 BUG 648: Frameless image caption with a link (suffix)
6112 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6114 <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>
6119 BUG 648: Frameless image caption with an interwiki link
6121 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6123 <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>
6128 BUG 648: Frameless image caption with a piped interwiki link
6130 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6132 <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>
6137 Escape HTML special chars in image alt text
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 BUG 499: Alt text should have Ӓ, not &1234;
6148 [[Image:foobar.jpg|♀]]
6150 <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>
6155 Broken image caption with link
6157 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6159 <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.
6164 Image caption containing another image
6166 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6168 <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>
6173 Image caption containing a newline
6175 [[Image:Foobar.jpg|This
6178 <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>
6184 Bug 3090: External links other than http: in image captions
6186 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6188 <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>
6195 [[Image:foobar.jpg|a|class=b]]
6197 <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>
6204 #REDIRECT [[File:Barfoo.jpg]]
6210 [[Image:Barfoo.jpg]]
6212 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6217 Missing image with uploads disabled
6221 [[Image:Foobaz.jpg]]
6223 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6232 Subpage test/subpage
6240 subpage title=[[Subpage test]]
6244 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6249 Subpage noslash link
6251 subpage title=[[Subpage test]]
6255 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6264 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6269 BUG 561: {{/Subpage}}
6271 subpage title=[[Page]]
6275 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6283 Category:MediaWiki User's Guide
6291 [[:Category:MediaWiki User's Guide]]
6293 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6302 [[Category:MediaWiki User's Guide]]
6304 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6308 PAGESINCATEGORY invalid title fatal (r33546 fix)
6310 {{PAGESINCATEGORY:<bogus>}}
6317 Category with different sort key
6321 [[Category:MediaWiki User's Guide|Foo]]
6323 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6327 Category with identical sort key
6331 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6333 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6337 Category with empty sort key
6342 [[Category:MediaWiki User's Guide|]]
6344 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6348 Category with empty sort key and parentheses
6353 [[Category:Foo (bar)|]]
6355 [[Category:Foo (bar)|Foo]]
6359 Category with link tail
6364 123[[Category:Foo]]456
6366 123[[Category:Foo]]456
6370 Category with template
6375 [[Category:{{echo|Foo}}]]
6377 [[Category:{{echo|Foo}}]]
6381 Category with template in sort key
6386 [[Category:Foo|{{echo|Bar}}]]
6388 [[Category:Foo|{{echo|Bar}}]]
6392 Category with template in sort key and title
6397 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6399 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6403 Category / paragraph interactions
6405 Foo [[Category:Baz]] Bar
6407 Foo [[Category:Baz]]
6415 [[Category:Baz]] Bar
6428 {{echo|[[Category:Baz]]}}
6443 ### Inter-language links
6446 Inter-language links
6452 [[zh:食品]]
6454 es:Alimento fr:Nourriture zh:食品
6458 Duplicate interlanguage links (bug 24502)
6474 Basic section headings
6481 ===Smaller headline===
6484 <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>
6487 <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>
6490 <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>
6496 Section headings with TOC
6499 === Subheadline 1 ===
6500 ===== Skipping a level =====
6501 ====== Skipping a level ======
6505 ===Another headline===
6507 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6509 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6511 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6513 <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>
6515 <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>
6522 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6524 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6529 <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>
6530 <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>
6531 <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>
6532 <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>
6533 <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>
6536 <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>
6540 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6542 Handling of sections up to level 6 and beyond
6545 == Level 2 Heading==
6546 === Level 3 Heading===
6547 ==== Level 4 Heading====
6548 ===== Level 5 Heading=====
6549 ====== Level 6 Heading======
6550 ======= Level 7 Heading=======
6551 ======== Level 8 Heading========
6552 ========= Level 9 Heading=========
6553 ========== Level 10 Heading==========
6555 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6557 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6559 <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>
6561 <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>
6563 <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>
6565 <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>
6567 <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>
6568 <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>
6569 <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>
6570 <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>
6571 <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>
6584 <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>
6585 <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>
6586 <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>
6587 <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>
6588 <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>
6589 <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>
6590 <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>
6591 <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>
6592 <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>
6593 <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>
6598 TOC regression (bug 9764)
6602 ==== title 1.1.1 ====
6607 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6609 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6611 <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>
6613 <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>
6616 <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>
6619 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6621 <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>
6626 <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>
6627 <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>
6628 <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>
6629 <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>
6630 <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>
6631 <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>
6636 TOC with wgMaxTocLevel=3 (bug 6204)
6642 ==== title 1.1.1 ====
6647 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6649 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6651 <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>
6652 <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>
6655 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6657 <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>
6662 <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>
6663 <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>
6664 <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>
6665 <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>
6666 <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>
6667 <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>
6672 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6678 ====Section 1.1.1====
6679 ====Section 1.1.1.1====
6682 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6684 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6686 <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>
6689 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6692 <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>
6693 <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>
6694 <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>
6695 <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>
6696 <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>
6702 Resolving duplicate section names
6707 <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>
6708 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2"> Foo bar </span></h2>
6713 Resolving duplicate section names with differing case (bug 10721)
6718 <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>
6719 <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>
6731 Template with sections, __NOTOC__
6738 <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>
6739 <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>
6740 <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>
6741 <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>
6746 __NOEDITSECTION__ keyword
6752 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6753 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6758 Link inside a section heading
6760 ==Section with a [[Main Page|link]] in it==
6762 <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>
6767 TOC regression (bug 12077)
6774 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6776 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6778 <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>
6781 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6784 <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>
6785 <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>
6786 <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>
6791 BUG 1219 URL next to image (good)
6793 http://example.com [[Image:foobar.jpg]]
6795 <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>
6800 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6803 The line above must have a trailing space!
6806 But just in case it doesn't...
6808 <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>
6809 <p>The line above must have a trailing space!
6811 <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>
6812 <p>But just in case it doesn't...
6817 Header with special characters (bug 25462)
6819 The tooltips shall not show entities to the user (ie. be double escaped)
6836 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6838 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6840 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6841 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6842 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6843 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6844 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6847 <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>
6850 <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>
6853 <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>
6856 <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>
6859 <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>
6865 Headers with excess '=' characters
6866 (Are similar tests necessary beyond the 1st level?)
6870 =''italic'' heading==
6871 ==''italic'' heading=
6873 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6875 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6876 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6877 <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>
6878 <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>
6881 <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>
6882 <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>
6883 <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>
6884 <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>
6889 BUG 1219 URL next to image (broken)
6891 http://example.com[[Image:foobar.jpg]]
6893 <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>
6898 Bug 1186 news: in the middle of text
6900 http://en.wikinews.org/wiki/Wikinews:Workplace
6902 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6908 Namespaced link must have a title
6917 Namespaced link must have a title (bad fragment version)
6919 [[Project:#fragment]]
6921 <p>[[Project:#fragment]]
6927 div with no attributes
6929 <div>HTML rocks</div>
6931 <div>HTML rocks</div>
6936 div with double-quoted attribute
6938 <div id="rock">HTML rocks</div>
6940 <div id="rock">HTML rocks</div>
6945 div with single-quoted attribute
6947 <div id='rock'>HTML rocks</div>
6949 <div id="rock">HTML rocks</div>
6954 div with unquoted attribute
6956 <div id=rock>HTML rocks</div>
6958 <div id="rock">HTML rocks</div>
6963 div with illegal double attributes
6965 <div id="a" id="b">HTML rocks</div>
6967 <div id="b">HTML rocks</div>
6972 HTML multiple attributes correction
6974 <p class="error" class="awesome">Awesome!</p>
6976 <p class="awesome">Awesome!</p>
6981 Table multiple attributes correction
6984 !+ class="error" class="awesome"| status
6989 <th class="awesome"> status
6997 <DIV ID="x">HTML ROCKS</DIV>
6999 <div id="x">HTML ROCKS</div>
7005 text with amp in the middle of nowhere
7009 <p>Remember AT&T?
7014 text with character entity: eacute
7016 I always thought é was a cute letter.
7018 <p>I always thought é was a cute letter.
7023 text with undefined character entity: xacute
7025 I always thought &xacute; was a cute letter.
7027 <p>I always thought &xacute; was a cute letter.
7039 [[Media:Foobar.jpg]]
7041 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7046 Media link with text
7048 [[Media:Foobar.jpg|A neat file to look at]]
7050 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7054 # FIXME: this is still bad HTML tag nesting
7056 Media link with nasty text
7057 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7059 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7061 <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>
7066 Media link to nonexistent file (bug 1702)
7068 [[Media:No such.jpg]]
7070 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7075 Image link to nonexistent file (bug 1850 - good)
7077 [[Image:No such.jpg]]
7079 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7084 :Image link to nonexistent file (bug 1850 - bad)
7086 [[:Image:No such.jpg]]
7088 <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>
7095 Character reference normalization in link text (bug 1938)
7097 [[Main Page|this&that]]
7099 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7106 Test for unicode normalization
7108 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7112 (bug 19451) Links should refer to the normalized form.
7120 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7121 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7122 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7123 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7124 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7129 Empty attribute crash test (bug 2067)
7131 <font color="">foo</font>
7133 <p><font color="">foo</font>
7138 Empty attribute crash test single-quotes (bug 2067)
7140 <font color=''>foo</font>
7142 <p><font color="">foo</font>
7147 Attribute test: equals, then nothing
7149 <font color=>foo</font>
7156 Attribute test: unquoted value
7158 <font color=x>foo</font>
7160 <p><font color="x">foo</font>
7165 Attribute test: unquoted but illegal value (hash)
7167 <font color=#x>foo</font>
7169 <p><font color="#x">foo</font>
7174 Attribute test: no value
7176 <font color>foo</font>
7178 <p><font color="color">foo</font>
7183 Bug 2095: link with three closing brackets
7187 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7192 Bug 2095: link with pipe and three closing brackets
7196 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7201 Bug 2095: link with pipe and three closing brackets, version 2
7203 [[Main Page|[http://example.com/]]]
7205 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7215 Template:Dangerous attribute
7217 " onmouseover="alert(document.cookie)
7221 Template:Dangerous style attribute
7223 border-size: expression(alert(document.cookie))
7229 <div style="float: right; {{{1}}}">Magic div</div>
7233 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7235 <div title="{{test}}"></div>
7237 <div title="This is a test template"></div>
7242 Bug 2304: HTML attribute safety (dangerous template; 2309)
7244 <div title="{{dangerous attribute}}"></div>
7246 <div title=""></div>
7251 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7253 <div style="{{dangerous style attribute}}"></div>
7255 <div style="/* insecure input */"></div>
7260 Bug 2304: HTML attribute safety (safe parameter; 2309)
7262 {{div style|width: 200px}}
7264 <div style="float: right; width: 200px">Magic div</div>
7269 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7271 {{div style|width: expression(alert(document.cookie))}}
7273 <div style="/* insecure input */">Magic div</div>
7278 Bug 2304: HTML attribute safety (unsafe breakout parameter; 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 (unsafe breakout parameter 2; 2309)
7289 {{div style|" ><script>alert(document.cookie)</script>}}
7291 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7296 Bug 2304: HTML attribute safety (link)
7298 <div title="[[Main Page]]"></div>
7300 <div title="[[Main Page]]"></div>
7305 Bug 2304: HTML attribute safety (italics)
7307 <div title="''foobar''"></div>
7309 <div title="''foobar''"></div>
7314 Bug 2304: HTML attribute safety (bold)
7316 <div title="'''foobar'''"></div>
7318 <div title="'''foobar'''"></div>
7324 Bug 2304: HTML attribute safety (ISBN)
7326 <div title="ISBN 1234567890"></div>
7328 <div title="ISBN 1234567890"></div>
7333 Bug 2304: HTML attribute safety (RFC)
7335 <div title="RFC 1234"></div>
7337 <div title="RFC 1234"></div>
7342 Bug 2304: HTML attribute safety (PMID)
7344 <div title="PMID 1234567890"></div>
7346 <div title="PMID 1234567890"></div>
7351 Bug 2304: HTML attribute safety (web link)
7353 <div title="http://example.com/"></div>
7355 <div title="http://example.com/"></div>
7360 Bug 2304: HTML attribute safety (named web link)
7362 <div title="[http://example.com/ link]"></div>
7364 <div title="[http://example.com/ link]"></div>
7369 Bug 3244: HTML attribute safety (extension; safe)
7371 <div style="<nowiki>background:blue</nowiki>"></div>
7373 <div style="background:blue"></div>
7378 Bug 3244: HTML attribute safety (extension; unsafe)
7380 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7382 <div style="/* insecure input */"></div>
7386 # More MSIE fun discovered by Tom Gilder
7389 MSIE CSS safety test: spurious slash
7391 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7393 <div style="/* insecure input */">evil</div>
7398 MSIE CSS safety test: hex code
7400 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7402 <div style="/* insecure input */">evil</div>
7407 MSIE CSS safety test: comment in url
7409 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7411 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7416 MSIE CSS safety test: comment in expression
7418 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7420 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7426 Table attribute legitimate extension
7429 !+ style="<nowiki>color:blue</nowiki>"| status
7434 <th style="color:blue"> status
7440 Table attribute safety
7443 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7448 <th style="/* insecure input */"> status
7454 CSS line continuation 1
7456 <div style="background-image: u\ rl(test.jpg);"></div>
7458 <div style="/* insecure input */"></div>
7463 CSS line continuation 2
7465 <div style="background-image: u\ rl(test.jpg); "></div>
7467 <div style="/* insecure input */"></div>
7478 Expansion of multi-line templates in attribute values (bug 6255)
7480 <div style="background: {{identity|#00FF00}}">-</div>
7482 <div style="background: #00FF00">-</div>
7488 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7490 <div style="background:
7493 <div style="background: #00FF00">-</div>
7498 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7500 <div style="background: #00FF00">-</div>
7502 <div style="background: #00FF00">-</div>
7507 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7510 Parser hook: empty input
7523 Parser hook: empty input using terminated empty elements
7536 Parser hook: empty input using terminated empty elements (space before)
7549 Parser hook: basic input
7563 Parser hook: case insensitive
7577 Parser hook: case insensitive, redux
7590 Parser hook: nested tags
7594 <tag><tag></tag></tag>
7605 Parser hook: basic arguments
7607 <tag width=200 height = "100" depth = '50' square></tag>
7615 'square' => 'square',
7622 Parser hook: argument containing a forward slash (bug 5344)
7624 <tag filename='/tmp/bla'></tag>
7629 'filename' => '/tmp/bla',
7636 Parser hook: empty input using terminated empty elements (bug 2374)
7649 # </tag> should be output literally since there is no matching tag that begins it
7651 Parser hook: basic arguments using terminated empty elements (bug 2374)
7653 <tag width=200 height = "100" depth = '50' square/>
7663 'square' => 'square',
7672 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7676 Parser hook: static parser hook not inside a comment
7678 <statictag>hello, world</statictag>
7679 <statictag action=flush/>
7687 Parser hook: static parser hook inside a comment
7689 <!-- <statictag>hello, world</statictag> -->
7690 <statictag action=flush/>
7696 # Nested template calls; this case was broken by Parser.php rev 1.506,
7700 Template:One-parameter
7702 (My parameter is: {{{1}}})
7706 Template:Map-one-parameter
7712 Nested template calls
7714 {{Map-one-parameter|One-parameter|param}}
7716 <p>(My parameter is: param)
7725 Sanitizer: Closing of open tags
7727 <s></s><table></table>
7729 <s></s><table></table>
7734 Sanitizer: Closing of open but not closed tags
7743 Sanitizer: Closing of closed but not open tags
7752 Sanitizer: Closing of closed but not open table tags
7754 Table not started</td></tr></table>
7756 <p>Table not started</td></tr></table>
7761 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7763 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7765 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7770 Sanitizer: Validating the contents of the id attribute (bug 4515)
7776 Something, but definitely not <br id="9" />...
7780 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7784 <br id="foo" /><br id="foo" />
7786 Something need to be done. foo-2 ?
7790 Language converter: output gets cut off unexpectedly (bug 5757)
7794 this bit is safe: }-
7796 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7798 then we get cut off here: }-
7800 all additional text is vanished
7802 <p>this bit is safe: }-
7803 </p><p>but if we add a conversion instance: xxx
7804 </p><p>then we get cut off here: }-
7805 </p><p>all additional text is vanished
7810 Self closed html pairs (bug 5487)
7813 <center><font id="bug" />Centered text</center>
7814 <div><font id="bug2" />In div text</div>
7816 <center><font id="bug" />Centered text</center>
7817 <div><font id="bug2" />In div text</div>
7826 Punctuation: nbsp before exclamation
7830 <p>C'est grave !
7835 Punctuation: CSS !important (bug 11874)
7837 <div style="width:50% !important">important</div>
7839 <div style="width:50% !important">important</div>
7844 Punctuation: CSS ! important (bug 11874; with space after)
7846 <div style="width:50% ! important">important</div>
7848 <div style="width:50% ! important">important</div>
7854 HTML bullet list, closed tags (bug 5497)
7869 HTML bullet list, unclosed tags (bug 5497)
7886 HTML ordered list, closed tags (bug 5497)
7901 HTML ordered list, unclosed tags (bug 5497)
7918 HTML nested bullet list, closed tags (bug 5497)
7943 HTML nested bullet list, open tags (bug 5497)
7968 HTML nested ordered list, closed tags (bug 5497)
7993 HTML nested ordered list, open tags (bug 5497)
8018 HTML ordered list item with parameters oddity
8020 <ol><li id="fragment">One</li></ol>
8022 <ol><li id="fragment">One</li></ol>
8027 bug 5918: autonumbering
8029 [http://first/] [http://second] [ftp://ftp]
8033 [mailto:enclosed@mail.tld With target]
8035 [mailto:enclosed@mail.tld]
8037 mailto:inline@mail.tld
8039 <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>
8040 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8041 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8042 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8043 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8049 # Security and HTML correctness
8050 # From Nick Jenkins' fuzz testing
8054 Fuzz testing: Parser13
8069 Fuzz testing: Parser14
8074 <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>
8075 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8077 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8084 Fuzz testing: Parser14-table
8089 <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>
8090 <table style="__TOC__">
8096 # Known to produce bogus xml (extra </td>)
8098 Fuzz testing: Parser16
8118 Fuzz testing: Parser21
8121 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8126 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8136 Fuzz testing: Parser22
8138 http://===r:::https://b
8142 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8150 # Known to produce bad XML for now
8152 Fuzz testing: Parser24
8159 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8160 <br style="onmouseover='alert(document.cookie);' " />
8162 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8167 <u class="|">}}}} >
8168 <br style="onmouseover='alert(document.cookie);'" />
8170 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8179 # Note: the current result listed for this is not what the original one was,
8180 # but the original bug was JavaScript injection, which is fixed in any case.
8181 # It's not clear that the original result listed was any more correct than the
8182 # current one. Original result:
8185 # <li class="||">
8186 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8188 Fuzz testing: Parser25 (bug 6055)
8194 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8196 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8201 Fuzz testing: URL adjacent extension (with space, clean)
8204 http://example.com <nowiki>junk</nowiki>
8206 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8211 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8214 http://example.com<nowiki>junk</nowiki>
8216 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8221 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8224 http://example.com<pre>junk</pre>
8226 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8231 Fuzz testing: image with bogus manual thumbnail
8233 [[Image:foobar.jpg|thumbnail= ]]
8235 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8240 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8242 <pre dir=" "></pre>
8244 <pre dir=" "></pre>
8249 Parsing optional HTML elements (Bug 6171)
8254 <td> Some tabular data</td>
8255 <td> More tabular data ...
8256 <td> And yet som tabular data</td>
8262 <td> Some tabular data</td>
8263 <td> More tabular data ...
8264 </td><td> And yet som tabular data</td>
8271 Correct handling of <td>, <tr> (Bug 6171)
8276 <td> Some tabular data</td>
8277 <td> More tabular data ...</td>
8278 <td> And yet som tabular data</td>
8284 <td> Some tabular data</td>
8285 <td> More tabular data ...</td>
8286 <td> And yet som tabular data</td>
8294 Parsing crashing regression (fr:JavaScript)
8298 <p></body></x>
8303 Inline wiki vs wiki block nesting
8309 <p><b>Bold paragraph</b>
8310 </p><p>New wiki paragraph
8315 Inline HTML vs wiki block nesting
8323 <p><b>Bold paragraph</b>
8324 </p><p>New wiki paragraph
8328 # Original result was this:
8329 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8331 # While that might be marginally more intuitive, maybe, the six-apostrophe
8332 # construct is clearly pathological and the result stated here (which is what
8333 # the parser actually does) is about as reasonable as anything.
8335 Mixing markup for italics and bold
8338 '''bold''''''bold''bolditalics'''''
8340 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8348 Article for special page transclusion test
8352 Special page transclusion
8355 {{Special:Prefixindex/Xyzzyx}}
8357 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8362 Special page transclusion twice (bug 5021)
8365 {{Special:Prefixindex/Xyzzyx}}
8366 {{Special:Prefixindex/Xyzzyx}}
8368 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8369 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8374 Transclusion of default MediaWiki message
8376 {{MediaWiki:Mainpage}}
8383 Transclusion of nonexistent MediaWiki message
8385 {{MediaWiki:Mainpagexxx}}
8387 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8392 Transclusion of MediaWiki message with underscore
8394 {{MediaWiki:history_short}}
8401 Transclusion of MediaWiki message with space
8403 {{MediaWiki:history short}}
8410 Invalid header with following text
8420 Section extraction test (section 0)
8440 Section extraction test (section 1)
8462 Section extraction test (section 2)
8483 Section extraction test (section 3)
8503 Section extraction test (section 4)
8527 Section extraction test (section 5)
8547 Section extraction test (section 6)
8568 Section extraction test (section 7)
8588 Section extraction test (section 8)
8608 Section extraction test (section 9)
8629 Section extraction test (section 10)
8649 Section extraction test (nonexistent section 11)
8668 Section extraction test with bogus heading (section 1)
8673 ==bogus== not a legal section
8677 ==bogus== not a legal section
8681 Section extraction test with bogus heading (section 2)
8686 ==bogus== not a legal section
8693 Section extraction test with comment after heading (section 1)
8705 Section extraction test with comment after heading (section 2)
8717 Section extraction test with bogus <nowiki> heading (section 1)
8722 ==bogus== <nowiki>not a legal section</nowiki>
8726 ==bogus== <nowiki>not a legal section</nowiki>
8730 Section extraction test with bogus <nowiki> heading (section 2)
8735 ==bogus== <nowiki>not a legal section</nowiki>
8742 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8743 # instead of respecting commented sections
8745 Section extraction prefixed by comment (section 1)
8756 Section extraction prefixed by comment (section 2)
8767 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8768 # instead of respecting HTML-style headings
8770 Section extraction, mixed wiki and html (section 1)
8786 Section extraction, mixed wiki and html (section 2)
8802 # Formerly testing for bug 3342
8804 Section extraction, heading surrounded by <noinclude>
8808 <noinclude>==unmarked==</noinclude>
8814 # Test behaviour of bug 19910
8816 Sectiion with all-equals
8821 The line above must have a trailing space
8824 But just in case it doesn't...
8828 But just in case it doesn't...
8832 Section replacement test (section 0)
8863 Section replacement test (section 1)
8892 Section replacement test (section 2)
8922 Section replacement test (section 3)
8953 Section replacement test (section 4)
8980 Section replacement test (section 5)
9011 Section replacement test (section 6)
9041 Section replacement test (section 7)
9072 Section replacement test (section 8)
9103 Section replacement test (section 9)
9132 Section replacement test (section 10)
9162 Section replacement test with initial whitespace (bug 13728)
9166 Preformatted initial line
9170 Preformatted initial line
9177 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9189 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9202 Section extraction, <pre> around bogus header (bug 10309)
9219 Section replacement, <pre> around bogus header (bug 10309)
9221 noxml replace=2,"xxx"
9242 Handling of 
 in URLs
9246 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9253 5 quotes, code coverage +1 line
9260 Special:Search page linking.
9264 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9279 * {{SUBJECTPAGENAME}}
9280 * {{SUBJECTPAGENAMEE}}
9287 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9289 <ul><li> Parser test
9290 </li><li> Parser test
9291 </li><li> Parser test
9292 </li><li> Parser_test
9293 </li><li> Parser test
9294 </li><li> Parser_test
9295 </li><li> Talk:Parser test
9296 </li><li> Talk:Parser_test
9297 </li><li> Parser test
9298 </li><li> Parser_test
9305 </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>
9309 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9319 image4 |300px| centre
9320 image5.svg| http://///////
9325 <ul class="gallery">
9326 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9327 <div style="height: 150px;">Image1.png</div>
9328 <div class="gallerytext">
9331 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9332 <div style="height: 150px;">Image2.gif</div>
9333 <div class="gallerytext">
9338 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9339 <div style="height: 150px;">Image3</div>
9340 <div class="gallerytext">
9343 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9344 <div style="height: 150px;">Image4</div>
9345 <div class="gallerytext">
9350 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9351 <div style="height: 150px;">Image5.svg</div>
9352 <div class="gallerytext">
9353 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9357 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9358 <div style="height: 150px;">* image6</div>
9359 <div class="gallerytext">
9367 Gallery (with options)
9369 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9370 File:Nonexistant.jpg|caption
9371 File:Nonexistant.jpg
9372 image:foobar.jpg|some '''caption''' [[Main Page]]
9374 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9377 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9378 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9379 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9380 <div style="height: 70px;">Nonexistant.jpg</div>
9381 <div class="gallerytext">
9386 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9387 <div style="height: 70px;">Nonexistant.jpg</div>
9388 <div class="gallerytext">
9391 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9392 <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>
9393 <div class="gallerytext">
9394 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9398 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9399 <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>
9400 <div class="gallerytext">
9403 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9404 <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>
9405 <div class="gallerytext">
9415 Gallery with wikitext inside caption
9418 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9419 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9422 <ul class="gallery">
9423 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9424 <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>
9425 <div class="gallerytext">
9426 <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>
9430 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9431 <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>
9432 <div class="gallerytext">
9433 <p>This is a test template
9442 gallery (with showfilename option)
9444 <gallery showfilename>
9445 File:Nonexistant.jpg|caption
9446 File:Nonexistant.jpg
9447 image:foobar.jpg|some '''caption''' [[Main Page]]
9451 <ul class="gallery">
9452 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9453 <div style="height: 150px;">Nonexistant.jpg</div>
9454 <div class="gallerytext">
9455 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9460 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9461 <div style="height: 150px;">Nonexistant.jpg</div>
9462 <div class="gallerytext">
9463 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9467 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9468 <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>
9469 <div class="gallerytext">
9470 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9471 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9475 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9476 <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>
9477 <div class="gallerytext">
9478 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9487 Gallery (with namespace-less filenames)
9490 File:Nonexistant.jpg
9496 <ul class="gallery">
9497 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9498 <div style="height: 150px;">Nonexistant.jpg</div>
9499 <div class="gallerytext">
9502 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9503 <div style="height: 150px;">Nonexistant.jpg</div>
9504 <div class="gallerytext">
9507 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9508 <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>
9509 <div class="gallerytext">
9512 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9513 <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>
9514 <div class="gallerytext">
9522 HTML Hex character encoding (spells the word "JavaScript")
9524 JavaScript
9526 <p>JavaScript
9531 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9535 <p>&#xsee;&#XSEE;
9540 HTML Hex character encoding mixed case
9549 __FORCETOC__ override
9561 ISBN 978-0-1234-56 789
9563 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9568 ISBN followed by 5 spaces
9579 ISBN ISBN 1234567890
9581 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9586 Bug 22905: <abbr> followed by ISBN followed by </a>
9588 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9590 <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>
9599 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9604 Double RFC with a wiki link
9608 <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>
9617 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9622 Centre-aligned image
9624 [[Image:foobar.jpg|centre]]
9626 <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>
9633 [[Image:foobar.jpg|none]]
9635 <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>
9640 Width + Height sized image (using px) (height is ignored)
9642 [[Image:foobar.jpg|640x480px]]
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, no following whitespace)
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 following 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 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9669 [[Image:foobar.jpg| 640px]]
9671 <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>
9676 Another italics / bold test
9684 # Note the results may be incorrect, as parserTest output included this:
9685 # XML error: Mismatched tag at byte 6120:
9686 # ...<dd> </dt></dl> </dd...
9694 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9705 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9707 Images with the "|" character in the comment
9709 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9711 <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>
9716 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9718 <html><script>alert(1);</script></html>
9720 <p><html><script>alert(1);</script></html>
9725 HTML with raw HTML ($wgRawHtml==true)
9729 <html><script>alert(1);</script></html>
9731 <p><script>alert(1);</script>
9736 Parents of subpages, one level up
9738 subpage title=[[Subpage test/L1/L2/L3]]
9742 <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>
9748 Parents of subpages, one level up, not named
9750 subpage title=[[Subpage test/L1/L2/L3]]
9754 <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>
9761 Parents of subpages, two levels up
9763 subpage title=[[Subpage test/L1/L2/L3]]
9769 <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
9770 </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>
9775 Parents of subpages, two levels up, without trailing slash or name.
9777 subpage title=[[Subpage test/L1/L2/L3]]
9786 Parents of subpages, two levels up, with lots of extra trailing slashes.
9788 subpage title=[[Subpage test/L1/L2/L3]]
9792 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9797 Definition list code coverage
9803 <dl><dt> title  </dt><dd> def
9804 </dd><dt> title </dt><dd> def
9805 </dd><dt>title</dt><dd> def
9811 Don't fall for the self-closing div
9813 <div>hello world</div/>
9815 <div>hello world</div>
9824 <p>[[:Template:Msg]]
9833 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9837 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9839 Always escape literal '>' in output, not just after '<'
9853 <p>This is a test template
9854 This is a test template
9866 Inclusion of !userCanEdit() content
9870 <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>
9876 Out-of-order TOC heading levels
9885 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9887 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9889 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9890 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9893 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9895 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9896 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9901 <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>
9902 <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>
9903 <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>
9904 <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>
9905 <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>
9906 <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>
9912 ISBN with a dummy number
9922 ISBN with space-delimited number
9926 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9932 ISBN with multiple spaces, no number
9951 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9952 </p><p>ISBN 12345678901
9958 ISBN with trailing year (bug 8110)
9960 ISBN 1-234-56789-0 - 2006
9962 ISBN 1 234 56789 0 - 2006
9964 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9965 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9973 {{anchorencode:foo bar©#%n}}
9975 <p>foo_bar.C2.A9.23.25n
9980 anchorencode trims spaces
9982 {{anchorencode: __pretty__please__}}
9989 anchorencode deals with links
9991 {{anchorencode: [[hello|world]] [[hi]]}}
9998 anchorencode deals with templates
10000 {{anchorencode: {{Foo}} }}
10007 anchorencode encodes like the TOC generator: (bug 18431)
10009 === _ +:.3A%3A&&]] ===
10010 {{anchorencode: _ +:.3A%3A&&]] }}
10013 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10014 <p>.2B:.3A.253A.26.26.5D.5D
10018 # Expected output in the following test is not necessarily expected (there
10019 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10020 # only testing for well-formedness.
10022 Bug 6200: blockquotes and paragraph formatting
10042 Bug 8293: Use of center tag ruins paragraph formatting
10064 ### Language variants related tests
10067 Self-link in language variants
10069 title=[[Dunav]] language=sr
10071 Both [[Dunav]] and [[Дунав]] are names for this river.
10073 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10079 Link to pages in language variants
10083 Main Page can be written as [[Маин Паге]]
10085 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10091 Multiple links to pages in language variants
10095 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10097 <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>.
10103 Simple template in language variants
10109 <p>This is a test template
10115 Template with explicit namespace in language variants
10121 <p>This is a test template
10127 Basic test for template parameter in language variants
10131 {{парамтест|param=foo}}
10133 <p>This is a test template with parameter foo
10139 Simple category in language variants
10143 [[Category:МедиаWики Усер'с Гуиде]]
10145 <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>
10150 Stripping -{}- tags (language variants)
10154 Latin proverb: -{Ne nuntium necare}-
10156 <p>Latin proverb: Ne nuntium necare
10162 Prevent conversion with -{}- tags (language variants)
10164 language=sr variant=sr-ec
10166 Latinski: -{Ne nuntium necare}-
10168 <p>Латински: Ne nuntium necare
10174 Prevent conversion of text with -{}- tags (language variants)
10176 language=sr variant=sr-ec
10178 Latinski: -{Ne nuntium necare}-
10180 <p>Латински: Ne nuntium necare
10186 Prevent conversion of links with -{}- tags (language variants)
10188 language=sr variant=sr-ec
10192 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10198 -{}- tags within headlines (within html for parserConvert())
10200 language=sr variant=sr-ec
10204 <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>
10210 Explicit definition of language variant alternatives
10212 language=zh variant=zh-tw
10214 -{zh:China;zh-tw:Taiwan}-, not China
10216 <p>Taiwan, not China
10222 Explicit session-wise language variant mapping (A flag and - flag)
10224 language=zh variant=zh-tw
10226 Taiwan is not China.
10227 But -{A|zh:China;zh-tw:Taiwan}- is China,
10228 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10229 and -{China}- is China.
10231 <p>Taiwan is not China.
10232 But Taiwan is Taiwan,
10233 (This should be stripped!)
10234 and China is China.
10239 Explicit session-wise language variant mapping (H flag for hide)
10241 language=zh variant=zh-tw
10243 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10246 <p>(This should be stripped!)
10252 Adding explicit conversion rule for title (T flag)
10254 language=zh variant=zh-tw showtitle
10256 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10259 <p>Should be stripped!
10264 Testing that changing the language variant here in the tests actually works
10266 language=zh variant=zh showtitle
10268 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10271 <p>Should be stripped!
10276 Bug 24072: more test on conversion rule for title
10278 language=zh variant=zh-tw showtitle
10280 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10281 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10284 <p>This should be stripped!
10285 This won't take interferes with the title rule.
10290 Raw output of variant escape tags (R flag)
10292 language=zh variant=zh-tw
10294 Raw: -{R|zh:China;zh-tw:Taiwan}-
10296 <p>Raw: zh:China;zh-tw:Taiwan
10301 Nested using of manual convert syntax
10303 language=zh variant=zh-hk
10305 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10307 <p>Nested: Hello Hong Kong!
10312 Do not convert roman numbers to language variants
10314 language=sr variant=sr-ec
10318 <p>Фридрих IV је цар.
10323 Unclosed language converter markup "-{"
10334 Don't convert raw rule "-{R|=>}-" to "=>"
10351 Bug 529: Uncovered bullet
10361 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10362 # Templates in Wikipedia rely on this behavior, as tidy has always been
10363 # enabled there. These tests are normally run *without* tidy, so specify the
10364 # full output here.
10365 # To test realistic parsing behavior, apply a tidy-like transformation to both
10366 # the expected output and your parser's output.
10368 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10370 ******* Foo {{bullet}}
10372 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10385 Bug 529: Uncovered table already at line-start
10408 Bug 529: Uncovered bullet in parser function result
10410 * Foo {{lc:{{bullet}} }}
10419 Bug 5678: Double-parsed template argument
10421 {{lc:{{{1}}}|hello}}
10428 Bug 5678: Double-parsed template invocation
10430 {{lc:{{paramtest {{!}} param = hello }} }}
10432 <p>{{paramtest | param = hello }}
10437 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10440 title=[[Main Page]]
10442 {{PRVNÍVELKÉ:ěščř}}
10443 {{prvnívelké:ěščř}}
10463 Morwen/13: Unclosed link followed by heading
10470 <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>
10475 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10482 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10487 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10494 <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>
10509 Paragraphs inside divs (no extra line breaks)
10521 Paragraphs inside divs (extra line break on open)
10536 Paragraphs inside divs (extra line break on close)
10551 Paragraphs inside divs (extra line break on open and close)
10568 Nesting tags, paragraphs on lines which begin with <div>
10572 <div></div><strong>A
10581 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10583 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10587 <blockquote>Line one
10589 Line two</blockquote>
10591 <blockquote>Line one
10592 Line two</blockquote>
10597 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10604 Line two</blockquote>
10609 Line two</blockquote>
10614 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10618 <blockquote>Line one
10623 <blockquote>Line one
10631 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10650 Paragraphs inside blockquotes/divs (no extra line breaks)
10652 <blockquote><div>Line one
10654 Line two</div></blockquote>
10656 <blockquote><div>Line one
10657 Line two</div></blockquote>
10662 Paragraphs inside blockquotes/divs (extra line break on open)
10667 Line two</div></blockquote>
10672 Line two</div></blockquote>
10677 Paragraphs inside blockquotes/divs (extra line break on close)
10679 <blockquote><div>Line one
10682 </div></blockquote>
10684 <blockquote><div>Line one
10687 </div></blockquote>
10692 Paragraphs inside blockquotes/divs (extra line break on open and close)
10698 </div></blockquote>
10704 </div></blockquote>
10709 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10711 wgLinkHolderBatchSize=0
10717 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10718 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10719 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10724 Free external link invading image caption
10726 [[Image:Foobar.jpg|thumb|http://x|hello]]
10728 <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>
10733 Bug 15196: localised external link numbers
10737 [http://en.wikipedia.org/]
10739 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10744 Multibyte character in padleft
10746 {{padleft:-Hello|7|Æ}}
10753 Multibyte character in padright
10755 {{padright:Hello-|7|Æ}}
10764 wgUseDynamicDates=1
10768 <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>
10773 formatdate parser function
10775 {{#formatdate:2009-03-24}}
10777 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10782 formatdate parser function, with default format
10784 {{#formatdate:2009-03-24|mdy}}
10786 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10791 Linked date with autoformatting disabled
10793 wgUseDynamicDates=false
10797 <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>
10802 Spacing of numbers in formatted dates
10804 {{#formatdate:January 15}}
10806 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10811 Spacing of numbers in formatted dates (linked)
10813 wgUseDynamicDates=true
10817 <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>
10822 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
10824 language=nl title=[[MediaWiki:Common.css]]
10826 {{#formatdate:2009-03-24|dmy}}
10828 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10841 Edit comment with link
10845 I like the [[Main Page]] a lot
10847 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10851 Edit comment with link and link text
10855 I like the [[Main Page|best pages]] a lot
10857 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10861 Edit comment with link and link text with suffix
10865 I like the [[Main Page|best page]]s a lot
10867 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10871 Edit comment with section link (non-local, eg in history list)
10873 comment title=[[Main Page]]
10875 /* External links */ removed bogus entries
10877 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10881 Edit comment with section link and text before it (non-local, eg in history list)
10883 comment title=[[Main Page]]
10885 pre-comment text /* External links */ removed bogus entries
10887 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>
10891 Edit comment with section link (local, eg in diff view)
10893 comment local title=[[Main Page]]
10895 /* External links */ removed bogus entries
10897 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10901 Edit comment with subpage link (bug 14080)
10905 title=[[Subpage test]]
10907 Poked at a [[/subpage]] here...
10909 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10913 Edit comment with subpage link and link text (bug 14080)
10917 title=[[Subpage test]]
10919 Poked at a [[/subpage|neat little page]] here...
10921 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10925 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10928 title=[[Subpage test]]
10930 Poked at a [[/subpage]] here...
10932 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10936 Edit comment with bare anchor link (local, as on diff)
10940 title=[[Main Page]]
10944 <a href="#section">#section</a>
10948 Edit comment with bare anchor link (non-local, as on history)
10951 title=[[Main Page]]
10955 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10959 Anchor starting with underscore
10963 <p><a href="#_ref">One</a>
10968 Id starting with underscore
10970 <div id="_ref"></div>
10972 <div id="_ref"></div>
10977 Space normalisation on autocomment (bug 22784)
10980 title=[[Main Page]]
10982 /* __hello__world__ */
10984 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10988 percent-encoding and + signs in comments (Bug 26410)
10992 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10994 <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>
10998 Bad images - basic functionality
11007 Bad images - bug 16039: text after bad image disappears
11021 Verify that displaytitle works (bug #22501) no displaytitle
11025 wgAllowDisplayTitle=true
11026 wgRestrictDisplayTitle=false
11028 this is not the the title
11031 <p>this is not the the title
11036 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11041 wgAllowDisplayTitle=true
11042 wgRestrictDisplayTitle=false
11044 this is not the the title
11045 {{DISPLAYTITLE:whatever}}
11048 <p>this is not the the title
11053 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11058 wgAllowDisplayTitle=true
11059 wgRestrictDisplayTitle=true
11061 this is not the the title
11062 {{DISPLAYTITLE:whatever}}
11065 <p>this is not the the title
11070 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11075 wgAllowDisplayTitle=true
11076 wgRestrictDisplayTitle=true
11078 this is not the the title
11079 {{DISPLAYTITLE:screen}}
11082 <p>this is not the the title
11087 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11092 wgAllowDisplayTitle=false
11094 this is not the the title
11095 {{DISPLAYTITLE:screen}}
11098 <p>this is not the the title
11099 <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>
11104 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11109 wgAllowDisplayTitle=false
11111 this is not the the title
11114 <p>this is not the the title
11119 preload: check <noinclude> and <includeonly>
11123 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11129 preload: check <onlyinclude>
11133 Goodbye <onlyinclude>Hello world</onlyinclude>
11139 preload: can pass tags through if we want to
11143 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11145 <includeonly>Hello world</includeonly>
11149 preload: check that it doesn't try to do tricks
11153 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11155 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11159 Play a bit with r67090 and bug 3158
11163 <div style="width:50% !important"> </div>
11164 <div style="width:50% !important"> </div>
11165 <div style="width:50% !important"> </div>
11166 <div style="border : solid;"> </div>
11168 <div style="width:50% !important"> </div>
11169 <div style="width:50% !important"> </div>
11170 <div style="width:50% !important"> </div>
11171 <div style="border : solid;"> </div>
11176 HTML5 data attributes
11178 <span data-foo="bar">Baz</span>
11179 <p data-abc-def_hij="">Quuz</p>
11181 <p><span data-foo="bar">Baz</span>
11183 <p data-abc-def_hij="">Quuz</p>
11188 percent-encoding and + signs in internal links (Bug 26410)
11190 [[User:+%]] [[Page+title%]]
11191 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11192 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11193 [[%33%45]] [[%33%45+]]
11195 <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>
11196 <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>
11197 <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>
11198 <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>
11203 Special characters in embedded file links (bug 27679)
11205 [[File:Contains & ampersand.jpg]]
11206 [[File:Does not exist.jpg|Title with & ampersand]]
11208 <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>
11209 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11215 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11217 Text's been normalized?
11219 <p>Text's been normalized?
11224 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11226 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11228 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11233 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11235 [http://www.example.org/ ideograms]
11237 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11242 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11244 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11246 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11270 Bug 31098 Template which includes system messages which includes the template
11274 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11275 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11280 Deprecated presentational attributes are converted to css
11283 | valign=top align=left width=100 height=25% | Asdf
11285 <ul type="disc"></ul>
11289 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11291 <ul style="list-style-type: disc;"></ul>
11296 Bug31490 Turkish: ucfirst 'blah'
11307 Bug31490 Turkish: ucfirst 'ix'
11318 Bug31490 Turkish: lcfirst 'BLAH'
11329 Bug31490 Turkish: ucfırst (with a dotless i)
11335 <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>
11340 Bug31490 ucfırst (with a dotless i) with English language
11346 <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>
11351 Bug 26375: TOC with italics
11353 title=[[Main Page]]
11356 == ''Lost'' episodes ==
11358 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11360 <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>
11363 <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>
11368 Bug 26375: TOC with bold
11370 title=[[Main Page]]
11373 == '''should be bold''' then normal text ==
11375 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11377 <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>
11380 <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>
11385 Bug 33845: Headings become cursive in TOC when they contain an image
11387 title=[[Main Page]]
11390 == Image [[Image:foobar.jpg]] ==
11392 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11394 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11397 <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>
11402 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11404 title=[[Main Page]]
11407 == <blockquote>Quote</blockquote> ==
11409 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11411 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11414 <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>
11419 Unclosed tags in TOC
11421 title=[[Main Page]]
11425 <small>Hanc marginis exiguitas non caperet.</small>
11428 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11430 <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>
11433 <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>
11434 <p><small>Hanc marginis exiguitas non caperet.</small>
11440 Multiple tags in TOC
11443 == <i>Foo</i> <b>Bar</b> ==
11445 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11447 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11449 <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>
11450 <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>
11453 <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>
11454 <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>
11459 Tags with parameters in TOC
11462 == <sup class="in-h2">Hello</sup> ==
11464 == <sup class="a > b">Evilbye</sup> ==
11466 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11468 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11469 <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>
11472 <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>
11473 <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>
11478 span tags with directionality in TOC
11481 == <span dir="ltr">C++</span> ==
11483 == <span dir="rtl">זבנג!</span> ==
11485 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11487 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11489 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11491 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11493 <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>
11494 <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>
11495 <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>
11496 <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>
11497 <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>
11500 <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>
11501 <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>
11502 <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>
11503 <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>
11504 <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>
11511 == {{int:headline_sample}} ==
11515 Bug 32057: Title needed when expanding <h> nodes.
11517 title=[[Main Page]]
11521 <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>
11526 Strip marker in urlencode
11528 {{urlencode:x<nowiki/>y}}
11529 {{urlencode:x<nowiki/>y|wiki}}
11530 {{urlencode:x<nowiki/>y|path}}
11557 Strip marker in formatNum
11559 {{formatnum:1<nowiki/>2}}
11560 {{formatnum:1<nowiki/>2|R}}
11568 Strip marker in grammar
11572 {{grammar:elative|foo<nowiki/>bar}}
11579 Strip marker in padleft
11581 {{padleft:|2|x<nowiki/>y}}
11588 Strip marker in padright
11590 {{padright:|2|x<nowiki/>y}}
11597 Strip marker in anchorencode
11599 {{anchorencode:x<nowiki/>y}}
11606 nowiki inside link inside heading (bug 18295)
11608 ==[[foo|x<nowiki>y</nowiki>z]]==
11610 <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>
11615 new support for bdi element (bug 31817)
11617 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11619 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11624 Ignore pipe between table row attributes
11628 |- id=foo | style='color: red'
11636 <tr id="foo" style="color: red">
11643 Gallery override link with WikiLink (bug 34852)
11646 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11649 <ul class="gallery">
11650 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11651 <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>
11652 <div class="gallerytext">
11662 Gallery override link with absolute external link (bug 34852)
11665 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11668 <ul class="gallery">
11669 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11670 <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>
11671 <div class="gallerytext">
11681 Gallery override link with malicious javascript (bug 34852)
11684 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11687 <ul class="gallery">
11688 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11689 <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>
11690 <div class="gallerytext">
11700 Language parser function
11709 Padleft and padright as substr
11711 {{padleft:|3|abcde}}
11712 {{padright:|3|abcde}}
11720 Bug 34939 - Case insensitive link parsing ([HttP://])
11722 [HttP://MediaWiki.Org/]
11724 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11729 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11731 [HttP://MediaWiki.Org/ MediaWiki]
11733 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11738 Bug 34939 - Case insensitive link parsing (HttP://)
11740 HttP://MediaWiki.Org/
11742 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11747 ### Parsoids-specific tests
11748 ### Parsoid-PHP parser incompatibilities
11751 1. SOL-sensitive wikitext tokens as template-args
11765 #### The following section of tests are primarily to test
11766 #### wikitext escaping capabilities of Parsoid.
11767 #### A lot of the tests are disabled for the PHP parser either
11768 #### because of minor newline diffs or other reasons.
11769 #### As Parsoid serializer can handle newlines and other HTML
11770 #### more robustly, some of these tests might get reenabled
11771 #### for the PHP parser.
11773 #### --------------- Headings ---------------
11775 #### 1. Nested inside html <h1>=foo=</h1>
11776 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11777 #### 3. Nested inside html with wikitext split by html tags
11778 #### 4. No escape needed
11779 #### 5. Empty headings <h1></h1>
11780 #### 6. Heading chars in SOL context
11781 #### ----------------------------------------
11783 Headings: 0. Unnested
11785 <nowiki>=foo=</nowiki>
11787 <nowiki>=foo</nowiki>''a''=
11790 </p><p>=foo<i>a</i>=
11795 Headings: 1. Nested inside html
11799 =<nowiki>=foo=</nowiki>=
11800 ==<nowiki>=foo=</nowiki>==
11801 ===<nowiki>=foo=</nowiki>===
11802 ====<nowiki>=foo=</nowiki>====
11803 =====<nowiki>=foo=</nowiki>=====
11804 ======<nowiki>=foo=</nowiki>======
11815 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11820 <nowiki>*bar</nowiki>
11824 <nowiki>=bar=</nowiki>
11832 Headings: 3. Nested inside html with wikitext split by html tags
11836 =<nowiki>=</nowiki>'''bold'''foo==
11838 <h1>=<b>bold</b>foo=</h1>
11842 Headings: 4. No escaping needed (testing just h1 and h2)
11857 <h1><i>=</i>foo=</h1>
11862 Headings: 5. Empty headings
11866 =<nowiki></nowiki>=
11867 ==<nowiki></nowiki>==
11868 ===<nowiki></nowiki>===
11869 ====<nowiki></nowiki>====
11870 =====<nowiki></nowiki>=====
11871 ======<nowiki></nowiki>======
11882 Headings: 6. Heading chars in SOL context
11886 <!--cmt--><nowiki>=h1=</nowiki>
11892 #### --------------- Lists ---------------
11893 #### 0. Outside nests (*foo, etc.)
11894 #### 1. Nested inside html <ul><li>*foo</li></ul>
11895 #### 2. Inside definition lists
11896 #### 3. Only bullets at start should be escaped
11897 #### 4. No escapes needed
11898 #### 5. No unnecessary escapes
11899 #### 6. Escape bullets in SOL position
11900 #### 7. Escape bullets in a multi-line context
11901 #### ----------------------------------------
11904 Lists: 0. Outside nests
11906 <nowiki>*foo</nowiki>
11908 <nowiki>#foo</nowiki>
11916 Lists: 1. Nested inside html
11918 *<nowiki>*foo</nowiki>
11920 *<nowiki>#foo</nowiki>
11922 *<nowiki>:foo</nowiki>
11924 *<nowiki>;foo</nowiki>
11926 #<nowiki>*foo</nowiki>
11928 #<nowiki>#foo</nowiki>
11930 #<nowiki>:foo</nowiki>
11932 #<nowiki>;foo</nowiki>
11954 Lists: 2. Inside definition lists
11956 ;<nowiki>;foo</nowiki>
11958 ;<nowiki>:foo</nowiki>
11960 ;<nowiki>:foo</nowiki>
11963 :<nowiki>:foo</nowiki>
11978 Lists: 3. Only bullets at start of text should be escaped
11980 *<nowiki>*foo*bar</nowiki>
11982 *<nowiki>*foo</nowiki>''it''*bar
11986 <ul><li>*foo<i>it</i>*bar
11992 Lists: 4. No escapes needed
12004 <ul><li><i>foo</i>*bar
12006 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12011 Lists: 5. No unnecessary escapes
12013 * bar <span><nowiki>[[foo]]</nowiki></span>
12015 *=bar <span><nowiki>[[foo]]</nowiki></span>
12017 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12019 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12021 *=bar <span>foo]]</span>=
12023 <ul><li> bar <span>[[foo]]</span>
12025 <ul><li>=bar <span>[[foo]]</span>
12027 <ul><li>[[bar <span>[[foo]]</span>
12029 <ul><li>]]bar <span>[[foo]]</span>
12031 <ul><li>=bar <span>foo]]</span>=
12037 Lists: 6. Escape bullets in SOL position
12041 <!--cmt--><nowiki>*foo</nowiki>
12048 Lists: 7. Escape bullets in a multi-line context
12058 #### --------------- HRs ---------------
12059 #### 1. Single line
12060 #### -----------------------------------
12063 HRs: 1. Single line
12068 <nowiki>----</nowiki>
12070 <nowiki>=foo=</nowiki>
12072 <nowiki>*foo</nowiki>
12079 #### --------------- Tables ---------------
12080 #### 1a. Simple example
12081 #### 1b. No escaping needed (!foo)
12082 #### 1c. No escaping needed (|foo)
12083 #### 1d. No escaping needed (|}foo)
12085 #### 2a. Nested in td (<td>foo|bar</td>)
12086 #### 2b. Nested in td (<td>foo||bar</td>)
12087 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12089 #### 3a. Nested in th (<th>foo!bar</th>)
12090 #### 3b. Nested in th (<th>foo!!bar</th>)
12091 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12095 #### 4c. No escaping needed
12096 #### --------------------------------------
12099 Tables: 1a. Simple example
12110 Tables: 1b. No escaping needed
12119 Tables: 1c. No escaping needed
12128 Tables: 1d. No escaping needed
12137 Tables: 2a. Nested in td
12142 |<nowiki>foo|bar</nowiki>
12152 Tables: 2b. Nested in td
12157 |<nowiki>foo||bar</nowiki>
12158 |''it''<nowiki>foo||bar</nowiki>
12163 </td><td><i>it</i>foo||bar
12169 Tables: 2c. Nested in td -- no escaping needed
12184 Tables: 3a. Nested in th
12199 Tables: 3b. Nested in th
12204 !<nowiki>foo!!bar</nowiki>
12214 Tables: 3c. Nested in th -- no escaping needed
12229 Tables: 4a. Escape -
12237 |<nowiki>-bar</nowiki>
12241 <tr><th>-bar</th></tr>
12242 <tr><td>-bar</td></tr>
12247 Tables: 4b. Escape +
12255 |<nowiki>+bar</nowiki>
12259 <tr><th>+bar</th></tr>
12260 <tr><td>+bar</td></tr>
12265 Tables: 4c. No escaping needed
12279 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12280 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12284 #### --------------- Links ---------------
12285 #### 1. Quote marks in link text
12286 #### 2. Wikilinks: Escapes needed
12287 #### 3. Wikilinks: No escapes needed
12288 #### 4. Extlinks: Escapes needed
12289 #### 5. Extlinks: No escapes needed
12290 #### --------------------------------------
12292 Links 1. Quote marks in link text
12296 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12298 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12302 Links 2. WikiLinks: Escapes needed
12306 [[Foo|<nowiki>[Foobar]</nowiki>]]
12307 [[Foo|<nowiki>Foobar]</nowiki>]]
12308 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12309 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12310 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12311 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12312 [[Foo|<nowiki>|Bar</nowiki>]]
12314 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12315 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12316 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12317 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12318 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12319 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12320 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12324 Links 3. WikiLinks: No escapes needed
12331 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12332 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12336 Links 4. ExtLinks: Escapes needed
12340 [http://google.com <nowiki>[google]</nowiki>]
12341 [http://google.com <nowiki>google]</nowiki>]
12343 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12344 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12348 Links 5. ExtLinks: No escapes needed
12352 [http://google.com [google]
12354 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12357 #### --------------- Quotes ---------------
12358 #### 1. Quotes inside <b> and <i>
12359 #### 2. Link fragments separated by <i> and <b> tags
12360 #### 3. Link fragments inside <i> and <b>
12361 #### --------------------------------------
12363 1. Quotes inside <b> and <i>
12365 ''<nowiki>'foo'</nowiki>''
12366 ''<nowiki>''foo''</nowiki>''
12367 ''<nowiki>'''foo'''</nowiki>''
12368 '''<nowiki>'foo'</nowiki>'''
12369 '''<nowiki>''foo''</nowiki>'''
12370 '''<nowiki>'''foo'''</nowiki>'''
12371 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12379 <b>foo'<i>bar'</i>baz</b>
12384 2. Link fragments separated by <i> and <b> tags
12386 [[''foo''<nowiki>hello]]</nowiki>
12388 [['''foo'''<nowiki>hello]]</nowiki>
12390 <p>[[<i>foo</i>hello]]
12391 </p><p>[[<b>foo</b>hello]]
12396 2. Link fragments inside <i> and <b>
12397 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12398 this is one of the shortcomings of this format)
12400 ''[[foo''<nowiki>]]</nowiki>
12402 '''[[foo'''<nowiki>]]</nowiki>
12405 </p><p><b>[[foo</b>]]
12409 #### --------------- Paragraphs ---------------
12410 #### 1. No unnecessary escapes
12411 #### --------------------------------------
12414 1. No unnecessary escapes
12416 bar <span><nowiki>[[foo]]</nowiki></span>
12418 =bar <span><nowiki>[[foo]]</nowiki></span>
12420 [[bar <span><nowiki>[[foo]]</nowiki></span>
12422 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12424 <nowiki>=bar </nowiki><span>foo]]</span>=
12426 <p>bar <span>[[foo]]</span>
12427 </p><p>=bar <span>[[foo]]</span>
12428 </p><p>[[bar <span>[[foo]]</span>
12429 </p><p>]]bar <span>[[foo]]</span>
12430 </p><p>=bar <span>foo]]</span>=
12434 #### --------------- PRE ------------------
12435 #### 1. Leading space in SOL context should be escaped
12436 #### --------------------------------------
12438 1. Leading space in SOL context should be escaped
12442 <nowiki> foo</nowiki>
12443 <!--cmt--><nowiki> foo</nowiki>
12450 #### --------------- HTML tags ---------------
12453 #### 3. multi-line html tag
12454 #### --------------------------------------
12460 <a href="http://google.com">google</a>
12462 <a href="http://google.com">google</a>
12468 <nowiki><div>foo</div>
12469 <div style="color:red">foo</div></nowiki>
12471 <p><div>foo</div>
12472 <div style="color:red">foo</div>
12477 3. multi-line html tag
12489 #### --------------- Others ---------------
12493 <nowiki>foo</nowiki>
12495 <p><nowiki>foo</nowiki>
12504 Try for 100% code coverage