1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 Template:echo_with_span
87 Template:echo_with_div
111 This is a simple paragraph.
113 <p>This is a simple paragraph.
118 Paragraphs with extra newline spacing
156 * plain''italic''plain
157 * plain''italic''plain''italic''plain
158 * plain'''bold'''plain
159 * plain'''bold'''plain'''bold'''plain
160 * plain''italic''plain'''bold'''plain
161 * plain'''bold'''plain''italic''plain
162 * plain''italic'''bold-italic'''italic''plain
163 * plain'''bold''bold-italic''bold'''plain
164 * plain'''''bold-italic'''italic''plain
165 * plain'''''bold-italic''bold'''plain
166 * plain''italic'''bold-italic'''''plain
167 * plain'''bold''bold-italic'''''plain
168 * plain l'''italic''plain
169 * plain l''''bold''' plain
172 </li><li> plain<i>italic</i>plain
173 </li><li> plain<i>italic</i>plain<i>italic</i>plain
174 </li><li> plain<b>bold</b>plain
175 </li><li> plain<b>bold</b>plain<b>bold</b>plain
176 </li><li> plain<i>italic</i>plain<b>bold</b>plain
177 </li><li> plain<b>bold</b>plain<i>italic</i>plain
178 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
179 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
180 </li><li> plain<i><b>bold-italic</b>italic</i>plain
181 </li><li> plain<b><i>bold-italic</i>bold</b>plain
182 </li><li> plain<i>italic<b>bold-italic</b></i>plain
183 </li><li> plain<b>bold<i>bold-italic</i></b>plain
184 </li><li> plain l'<i>italic</i>plain
185 </li><li> plain l'<b>bold</b> plain
191 ### 2-quote opening sequence tests
194 Italics and bold: 2-quote opening sequence: (2,2)
204 Italics and bold: 2-quote opening sequence: (2,3)
214 Italics and bold: 2-quote opening sequence: (2,4)
224 Italics and bold: 2-quote opening sequence: (2,5)
234 ### 3-quote opening sequence tests
238 Italics and bold: 3-quote opening sequence: (3,2)
248 Italics and bold: 3-quote opening sequence: (3,3)
258 Italics and bold: 3-quote opening sequence: (3,4)
268 Italics and bold: 3-quote opening sequence: (3,5)
278 ### 4-quote opening sequence tests
282 Italics and bold: 4-quote opening sequence: (4,2)
292 Italics and bold: 4-quote opening sequence: (4,3)
302 Italics and bold: 4-quote opening sequence: (4,4)
312 Italics and bold: 4-quote opening sequence: (4,5)
322 ### 5-quote opening sequence tests
326 Italics and bold: 5-quote opening sequence: (5,2)
336 Italics and bold: 5-quote opening sequence: (5,3)
346 Italics and bold: 5-quote opening sequence: (5,4)
350 <p><i><b>foo'</b></i>
356 Italics and bold: 5-quote opening sequence: (5,5)
365 ### multiple quote sequences in a line
368 Italics and bold: multiple quote sequences: (2,4,2)
372 <p><i>foo'<b>bar</b></i>
378 Italics and bold: multiple quote sequences: (2,4,3)
382 <p><i>foo'<b>bar</b></i>
388 Italics and bold: multiple quote sequences: (2,4,4)
392 <p><i>foo'<b>bar'</b></i>
398 Italics and bold: multiple quote sequences: (3,4,2)
408 Italics and bold: multiple quote sequences: (3,4,3)
417 ### other quote tests
420 Italics and bold: other quote tests: (2,3,5)
422 ''this is about '''foo's family'''''
424 <p><i>this is about <b>foo's family</b></i>
430 Italics and bold: other quote tests: (2,(3,3),2)
432 ''this is about '''foo's''' family''
434 <p><i>this is about <b>foo's</b> family</i>
440 Italics and bold: other quote tests: (3,2,3,2)
442 '''this is about ''foo'''s family''
444 <p><b>this is about <i>foo</i></b><i>s family</i>
450 Italics and bold: other quote tests: (3,2,3,3)
452 '''this is about ''foo'''s family'''
454 <p>'<i>this is about </i>foo<b>s family</b>
461 Italics and bold: other quote tests: (3,(2,2),3)
463 '''this is about ''foo's'' family'''
465 <p><b>this is about <i>foo's</i> family</b>
470 ### <nowiki> test cases
474 <nowiki> unordered list
476 <nowiki>* This is not an unordered list item.</nowiki>
478 <p>* This is not an unordered list item.
485 <nowiki>Lorem ipsum dolor
506 :There is not nowiki.
507 :There is <nowiki>nowiki</nowiki>.
509 #There is not nowiki.
510 #There is <nowiki>nowiki</nowiki>.
512 *There is not nowiki.
513 *There is <nowiki>nowiki</nowiki>.
515 <dl><dd>There is not nowiki.
516 </dd><dd>There is nowiki.
518 <ol><li>There is not nowiki.
519 </li><li>There is nowiki.
521 <ul><li>There is not nowiki.
522 </li><li>There is nowiki.
534 <!-- comment 1 --> asdf
536 <!-- comment 1 --> asdf
539 <!-- comment 1 --> asdf
540 <!-- comment 2 -->xyz
542 <!-- comment 1 --> asdf
543 <!-- comment 2 --> xyz
599 asdf<!-- comment 1 -->jkl
609 <!-- foo --> b <!-- bar -->
623 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
629 Comment semantics and delimiters
631 <!-- --><!----><!-----><!------>
637 Comment semantics and delimiters, redux
639 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
640 -- foo -- funky huh? ... -->
646 Comment semantics and delimiters: directors cut
648 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
649 everything starting with < followed by !-- until the first -- and > we see,
650 that wouldn't be valid XML however, since in XML -- has to terminate a comment
658 Comment semantics: nesting
660 <!--<!-- no, we're not going to do anything fancy here -->-->
667 Comment semantics: unclosed comment at end
669 <!--This comment will run out to the end of the document
675 Comment in template title
684 Comment on its own line post-expand
696 Comment on its own line post-expand with non-significant whitespace
708 ### paragraph wraping tests
722 Block tag on one line
734 Block tag on both lines
746 Multiple lines without block tags
764 ### Preformatted text
773 And a [[Main Page|link]]
779 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
784 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
801 Regression with preformatted in <center>
814 # Expected output in the following test is not really expected (there should be
815 # <pre> in the output) -- it's only testing for well-formedness.
817 Bug 6200: Preformatted in <blockquote>
830 <pre> with attributes (bug 3202)
832 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
834 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
839 <pre> with width attribute (bug 3202)
841 <pre width="8">Narrow screen goodies</pre>
843 <pre width="8">Narrow screen goodies</pre>
848 <pre> with forbidden attribute (bug 3202)
850 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
852 <pre width="8">Narrow screen goodies</pre>
857 <pre> with forbidden attribute values (bug 3202)
859 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
861 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
866 <nowiki> inside <pre> (bug 13238)
874 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
882 <pre><nowiki>Foo</nowiki></pre>
887 <nowiki> and <pre> preference (first one wins)
918 Templates: Pre: 1a. Templates that break a line should suppress <pre>
926 Templates: Pre: 1b. Templates that break a line should suppress <pre>
936 Templates: Pre: 1c: Wrapping should be based on expanded content
948 Templates: Pre: 1d: Wrapping should be based on expanded content
969 Templates: Pre: 1e. Wrapping should be based on expanded content
973 {{echo| foo}}{{echo| bar}}
978 {{echo|<!--cmt--> foo}}
980 <!--cmt-->{{echo| foo}}
982 {{echo|{{echo| }}bar}}
1000 Templates: Pre: 1f: Wrapping should be based on expanded content
1037 ### Parsoid-centric tests for testing RT edge cases for pre
1041 1a. Pre and Comments
1054 1b. Pre and Comments
1067 1c. Pre and Comments
1117 3a. Pre and block tags (single-line html)
1125 <pre><span> foo </span>
1130 3b. Pre and block tags (pre-content on separate line)
1182 4. Multiple spaces at start-of-line
1201 ### Definition lists
1208 <dl><dt> name </dt><dd> Definition
1214 Definition list for indentation only
1218 <dl><dd> Indented text
1224 Definition list with no space
1228 <dl><dt>name</dt><dd>Definition
1234 Definition list with URL link
1236 ; http://example.com/ : definition
1238 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1244 Definition list with bracketed URL link
1246 ;[http://www.example.com/ Example]:Something about it
1248 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1254 Definition list with wikilink containing colon
1256 ; [[Help:FAQ]]: The least-read page on Wikipedia
1258 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1263 # At Brion's and JeLuF's insistence... :)
1265 Definition list with news link containing colon
1267 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1269 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1275 Malformed definition list with colon
1277 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1279 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1285 Definition lists: colon in external link text
1287 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1289 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1295 Definition lists: colon in HTML attribute
1297 ;<b style="display: inline">bold</b>
1299 <dl><dt><b style="display: inline">bold</b>
1305 Definition lists: self-closed tag
1307 ;one<br/>two : two-line fun
1309 <dl><dt>one<br />two </dt><dd> two-line fun
1315 Bug 11748: Literal closing tags
1319 <dd>test test test test test</dd>
1321 <dd>test test test test test</dd>
1326 <dd>test test test test test</dd>
1328 <dd>test test test test test</dd>
1334 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1337 ; term : description
1343 <dl><dt> term </dt><dd> description
1354 Definition list with empty definition and following paragraph
1359 <dl><dt> term</dt><dd>
1366 Nested definition lists using html syntax
1383 Definition Lists: No nesting: Multiple dd's
1397 Definition Lists: Indentation: Regular
1413 Definition Lists: Indentation: Missing 1st level
1427 Definition Lists: Indentation: Multi-level indent
1431 <dl><dd><dl><dd><dl><dd>i3
1439 Definition Lists: Hacky use to indent tables
1446 should be left alone
1448 <dl><dd><dl><dd><table>
1453 </td></tr></table></dd></dl></dd></dl>
1455 should be left alone
1458 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1459 ## as an empty dt item. It also ignores all but the last ";" when followed
1460 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1461 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1464 ## Ex: ";;t2 ::d2" is transformed into:
1476 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1477 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1488 ## All Parsoid only definition list tests have this difference.
1490 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1491 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1494 Definition Lists: Nesting: Multi-level (Parsoid only)
1524 Definition Lists: Nesting: Test 2 (Parsoid only)
1544 Definition Lists: Nesting: Test 3 (Parsoid only)
1572 Definition Lists: Nesting: Test 4
1577 <dl><dd><dl><dd><dl><dt>t3
1587 Definition Lists: Mixed Lists: Test 1
1593 <dl><dd><dl><dt><ul><li> foo
1605 Definition Lists: Mixed Lists: Test 2
1619 Definition Lists: Mixed Lists: Test 3
1624 <ul><li><dl><dd><dl><dd><dl><dd> d1
1635 Definition Lists: Mixed Lists: Test 4
1640 <ul><li><dl><dt>d1 </dt><dd>d2
1641 </dd><dt>d3 </dt><dd>d4
1649 Definition Lists: Mixed Lists: Test 5
1664 Definition Lists: Mixed Lists: Test 6
1669 <ol><li><ul><li><dl><dd>d1
1681 Definition Lists: Mixed Lists: Test 7
1695 Definition Lists: Mixed Lists: Test 8
1711 Definition Lists: Mixed Lists: Test 9
1715 <ul><li><dl><dt>foo </dt><dd>bar
1723 Definition Lists: Mixed Lists: Test 10
1727 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1736 Definition Lists: Mixed Lists: Test 11
1741 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1746 <dl><dt>boo </dt><dd>baz
1757 Definition Lists: Weird Ones: Test 1
1759 *#;*::;; foo : bar (who uses this?)
1761 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1777 External links: non-bracketed
1779 Non-bracketed: http://example.com
1781 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1786 External links: numbered
1788 Numbered: [http://example.com]
1789 Numbered: [http://example.net]
1790 Numbered: [http://example.com]
1792 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1793 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1794 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1799 External links: specified text
1801 Specified text: [http://example.com link]
1803 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1808 External links: trail
1810 Linktrails should not work for external links: [http://example.com link]s
1812 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1817 External links: dollar sign in URL
1819 http://example.com/1$2345
1821 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1826 External links: dollar sign in URL (named)
1828 [http://example.com/1$2345]
1830 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1835 External links: open square bracket forbidden in URL (bug 4377)
1837 http://example.com/1[2345
1839 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1844 External links: open square bracket forbidden in URL (named) (bug 4377)
1846 [http://example.com/1[2345]
1848 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1853 External links: nowiki in URL link text (bug 6230)
1855 [http://example.com/ <nowiki>''example site''</nowiki>]
1857 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1862 External links: newline forbidden in text (bug 6230 regression check)
1864 [http://example.com/ first
1867 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1873 External links: Pipe char between url and text
1875 [http://example.com | link]
1877 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1882 External links: protocol-relative URL in brackets
1884 [//example.com/ Test]
1886 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1891 External links: protocol-relative URL in brackets without text
1895 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1900 External links: protocol-relative URL in free text is left alone
1904 <p>//example.com/Foo
1909 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1911 foo//example.com/Foo
1913 <p>foo//example.com/Foo
1920 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1922 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1927 External image from https
1929 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1931 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1936 Link to non-http image, no img tag
1938 Link to non-http image, no img tag: ftp://example.com/test.jpg
1940 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
1945 External links: terminating separator
1947 Terminating separator: http://example.com/thing,
1949 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1954 External links: intervening separator
1956 Intervening separator: http://example.com/1,2,3
1958 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1963 External links: old bug with URL in query
1965 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1967 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1972 External links: old URL-in-URL bug, mixed protocols
1974 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1976 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1981 External links: URL in text
1983 URL in text: [http://example.com http://example.com]
1985 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1990 External links: Clickable images
1992 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1994 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
1999 External links: raw ampersand
2001 Old & use: http://x&y
2003 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2008 External links: encoded ampersand
2010 Old & use: http://x&y
2012 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2017 External links: encoded equals (bug 6102)
2019 http://example.com/?foo=bar
2021 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2026 External links: [raw ampersand]
2028 Old & use: [http://x&y]
2030 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2035 External links: [encoded ampersand]
2037 Old & use: [http://x&y]
2039 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2044 External links: [encoded equals] (bug 6102)
2046 [http://example.com/?foo=bar]
2048 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2053 External links: [IDN ignored character reference in hostname; strip it right off]
2055 [http://e‌xample.com/]
2057 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2061 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2062 # Where an external link could easily circumvent the sanitization of the text of
2063 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2064 # test demands a higher standard. That's a bit strange.
2068 # http://example.com -> [http://example.com|http://example.com]
2069 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2071 # The first example is sanitized, but the second is not. Any security benefits
2072 # from this production are trivial to circumvent. Either remove this test and
2073 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2074 # the test accordingly.
2079 External links: IDN ignored character reference in hostname; strip it right off
2081 http://e‌xample.com/
2083 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2088 External links: www.jpeg.org (bug 554)
2092 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2097 External links: URL within URL (original bug 2)
2099 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2101 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2106 BUG 361: URL inside bracketed URL
2108 [http://www.example.com/foo http://www.example.com/bar]
2110 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2115 BUG 361: URL within URL, not bracketed
2117 http://www.example.com/foo?=http://www.example.com/bar
2119 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2124 BUG 289: ">"-token in URL-tail
2126 http://www.example.com/<hello>
2128 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2133 BUG 289: literal ">"-token in URL-tail
2135 http://www.example.com/<b>html</b>
2137 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2142 BUG 289: ">"-token in bracketed URL
2144 [http://www.example.com/<hello> stuff]
2146 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2151 BUG 289: literal ">"-token in bracketed URL
2153 [http://www.example.com/<b>html</b> stuff]
2155 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2160 BUG 289: literal double quote at end of URL
2162 http://www.example.com/"hello"
2164 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2169 BUG 289: literal double quote in bracketed URL
2171 [http://www.example.com/"hello" stuff]
2173 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2178 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2180 [http://www.example.com test]
2182 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2187 External links: wiki links within external link (Bug 3695)
2189 [http://example.com [[wikilink]] embedded in ext link]
2191 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
2196 BUG 787: Links with one slash after the url protocol are invalid
2200 [http:/example.com title]
2202 <p>http:/example.com
2203 </p><p>[http:/example.com title]
2208 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2210 ''[http://example.com text'']
2211 [http://example.com '''text]'''
2212 ''Something [http://example.com in italic'']
2213 ''Something [http://example.com mixed''''', even bold]'''
2214 '''''Now [http://example.com both''''']
2216 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2217 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2218 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2219 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2220 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2226 Bug 4781: %26 in URL
2228 http://www.example.com/?title=AT%26T
2230 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2234 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2235 # % is actually legal in HTML5. Any change in output would need testing though.
2237 Bug 4781, 5267: %25 in URL
2239 http://www.example.com/?title=100%25_Bran
2241 <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>
2246 Bug 4781, 5267: %28, %29 in URL
2248 http://www.example.com/?title=Ben-Hur_%281959_film%29
2250 <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>
2256 Bug 4781: %26 in autonumber URL
2258 [http://www.example.com/?title=AT%26T]
2260 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2265 Bug 4781, 5267: %26 in autonumber URL
2267 [http://www.example.com/?title=100%25_Bran]
2269 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2274 Bug 4781, 5267: %28, %29 in autonumber URL
2276 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2278 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2284 Bug 4781: %26 in bracketed URL
2286 [http://www.example.com/?title=AT%26T link]
2288 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2293 Bug 4781, 5267: %26 in bracketed URL
2295 [http://www.example.com/?title=100%25_Bran link]
2297 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2302 Bug 4781, 5267: %28, %29 in bracketed URL
2304 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2306 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2311 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2313 Some [http://example.com/ pretty ''italics'' and stuff]!
2315 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2320 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2322 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2324 <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>
2329 External link containing double-single-quotes with no space separating the url from text in italics
2331 [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]].]
2333 <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>
2338 URL-encoding in URL functions (single parameter)
2340 {{localurl:Some page|amp=&}}
2342 <p>/index.php?title=Some_page&amp=&
2347 URL-encoding in URL functions (multiple parameters)
2349 {{localurl:Some page|q=?&=&}}
2351 <p>/index.php?title=Some_page&q=?&amp=&
2358 http://example.com/index.php?foozoid%5B%5D=bar
2360 http://example.com/index.php?foozoid[]=bar
2362 <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>
2363 </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>
2368 IPv6 urls (bug 21261)
2372 http://[2404:130:0:1000::187:2]/index.php
2374 <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>
2385 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2387 Normal text. '''''Bold italic text.''''' Normal text.
2389 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2390 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2396 Unclosed and unmatched quotes
2398 '''''Bold italic text '''with bold deactivated''' in between.'''''
2400 '''''Bold italic text ''with italic deactivated'' in between.'''''
2404 ..spanning two paragraphs (should not work).'''
2406 '''Bold tag left open
2408 ''Italic tag left open
2412 <!-- Unmatching number of opening, closing tags: -->
2413 '''This year''''s election ''should'' beat '''last year''''s.
2415 ''Tom'''s car is bigger than ''Susan'''s.
2417 Plain ''italic'''s plain
2419 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2420 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2421 </p><p><b>Bold text..</b>
2422 </p><p>..spanning two paragraphs (should not work).
2423 </p><p><b>Bold tag left open</b>
2424 </p><p><i>Italic tag left open</i>
2426 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2427 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2428 </p><p>Plain <i>italic'</i>s plain
2435 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2438 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2439 # is the bare minimun required by the spec, see:
2440 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2442 A table with no data.
2448 # A table with nothing but a caption is invalid XHTML, we might want to render
2449 # this as <p>caption</p>
2451 A table with nothing but a caption
2459 </caption><tr><td></td></tr></table>
2485 Simple table but with multiple dashes for row wikitext
2503 Multiplication table
2505 {| border="1" cellpadding="2"
2506 |+Multiplication table
2508 ! × !! 1 !! 2 !! 3
2526 <table border="1" cellpadding="2">
2527 <caption>Multiplication table
2574 Allow +/- in 2nd and later cells in a row
2601 |rowspan=2| Cell 2, row 1 (and 2)
2612 <td rowspan="2"> Cell 2, row 1 (and 2)
2630 {| bgcolor=#ABCDEF border=2
2635 |the original table again
2643 <table bgcolor="#ABCDEF" border="2">
2651 <td>the original table again
2657 Invalid attributes in table cell (bug 1830)
2672 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2675 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2679 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2680 <td>]" onmouseover="alert(document.cookie)">test
2689 Indented table markup mixed with indented pre content (proposed in bug 6200)
2694 Text that should be rendered preformatted
2702 <pre>Text that should be rendered preformatted
2715 Plain link, capitalized
2719 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2724 Plain link, uncapitalized
2728 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2735 [[Main Page|The Main Page]]
2737 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2746 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2751 Broken link with fragment
2753 [[Zigzagzogzagzig#zug]]
2755 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2760 Special page link with fragment
2762 [[Special:Version#anchor]]
2764 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2769 Nonexistent special page link with fragment
2771 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2773 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2780 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2782 <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>
2789 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2791 <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>!!!
2796 Link with 3 brackets
2805 Piped link with 3 brackets
2807 [[[main page|the main page]]]
2809 <p>[[[main page|the main page]]]
2814 Link with multiple pipes
2816 [[Main Page|The|Main|Page]]
2818 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2825 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2827 <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>
2832 Piped link to namespace
2834 [[Meta:Disclaimers|The disclaimers]]
2836 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2843 [[Usually caused by a typo (oops}]]
2845 <p>[[Usually caused by a typo (oops}]]
2850 Link containing % (not as a hex sequence)
2854 <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>
2859 Link containing % as a single hex sequence interpreted to char
2863 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
2868 Link containing % as a double hex sequence interpreted to hex sequence
2872 <p>[[7%2525 Solution]]
2877 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2878 Example for such a section: == < ==
2880 [[%23%3c]][[%23%3e]]
2882 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2887 Link containing "<#" and ">#" as a hex sequences
2889 [[%3c%23]][[%3e%23]]
2891 <p>[[%3c%23]][[%3e%23]]
2896 Link containing double-single-quotes '' (bug 4598)
2898 [[Lista d''e paise d''o munno]]
2900 <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>
2905 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2907 Some [[Link|pretty ''italics'' and stuff]]!
2909 <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>!
2914 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2916 ''Some [[Link|pretty ''italics'' and stuff]]!
2918 <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>
2923 Link with double quotes in title part (literal) and alternate part (interpreted)
2925 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2929 [[''Pentecoste''|Pentecoste]]
2931 [[''Pentecoste''|''Pentecoste'']]
2933 <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>
2934 </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>
2935 </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>
2936 </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>
2941 Broken image links with HTML captions (bug 39700)
2943 [[File:Nonexistent|<script></script>]]
2944 [[File:Nonexistent|100px|<script></script>]]
2945 [[File:Nonexistent|<]]
2946 [[File:Nonexistent|a<i>b</i>c]]
2948 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2949 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2950 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2951 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2958 [[http://www.example.com]]
2960 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2965 Plain link to URL with link text
2967 [[http://www.example.com Link text]]
2969 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2974 Plain link to protocol-relative URL
2976 [[//www.example.com]]
2978 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2983 Plain link to protocol-relative URL with link text
2985 [[//www.example.com Link text]]
2987 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2992 # I'm fairly sure the expected result here is wrong.
2993 # We want these to be URL links, not pseudo-pages with URLs for titles....
2994 # However the current output is also pretty screwy.
2997 # I'm changing it to match the current output--it arguably makes more
2998 # sense in the light of the test above. Old expected result was:
2999 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3001 # But I think this test is bordering on "garbage in, garbage out" anyway.
3006 Piped link to URL: [[http://www.example.com|an example URL]]
3008 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3013 BUG 2: [[page|http://url/]] should link to page, not http://url/
3015 [[Main Page|http://url/]]
3017 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3022 BUG 337: Escaped self-links should be bold
3026 [[Bug462]] [[Bug462]]
3028 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3033 Self-link to section should not be bold
3037 [[Main Page#section]]
3039 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3050 Self-link to numeric title
3056 <p><strong class="selflink">0</strong>
3061 Link to numeric-equivalent title
3067 <p><a href="/wiki/00" title="00">00</a>
3072 <nowiki> inside a link
3074 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3076 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3081 Non-breaking spaces in title
3083 [[ Main Page ]]
3085 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3090 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3096 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3101 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3107 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3112 Internal link with en linktrail: no apostrophes (bug 27473)
3118 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3123 Internal link with ca linktrail with apostrophes (bug 27473)
3129 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3134 Internal link with kaa linktrail with apostrophes (bug 27473)
3140 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3145 ### Interwiki links (see maintenance/interwiki.sql)
3149 Inline interwiki link
3151 [[MeatBall:SoftSecurity]]
3153 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3158 Inline interwiki link with empty title (bug 2372)
3162 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3167 Interwiki link encoding conversion (bug 1636)
3169 *[[Wikipedia:ro:Olteniţa]]
3170 *[[Wikipedia:ro:Olteniţa]]
3172 <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>
3173 </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>
3179 Interwiki link with fragment (bug 2130)
3181 [[MeatBall:SoftSecurity#foo]]
3183 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3198 Double interlanguage link
3209 Interlanguage link, with prefix links
3221 Double interlanguage link, with prefix links (bug 8897)
3234 Parsoid-specific test: Wikilinks with should RT properly
3240 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3258 Incorrecly removing closing slashes from correctly formed XHTML
3260 <br style="clear:both;" />
3262 <p><br style="clear:both;" />
3267 Failing to transform badly formed HTML into correct XHTML
3269 <br style="clear: left;">
3270 <br style="clear: right;">
3271 <br style="clear: both;">
3273 <p><br style="clear: left;" />
3274 <br style="clear: right;" />
3275 <br style="clear: both;" />
3280 Handling html with a div self-closing tag
3289 <p><div title />
3293 <p><div title=bar />
3294 <div title=bar/>
3296 <div title="bar/"></div>
3302 Handling html with a br self-closing tag
3311 <p><br title="title" />
3312 <br title="title" />
3321 Horizontal ruler (should it add that extra space?)
3335 Horizontal ruler -- 4+ dashes render hr
3344 Horizontal ruler -- eats additional dashes on the same line
3353 Horizontal ruler -- does not collaps dashes on consecutive lines
3364 Horizontal ruler -- <4 dashes render as plain text
3373 ### Block-level elements
3396 <ol><li>Numbered list
3413 ***#Number on level 4
3415 **#Number on level 3
3416 **#Number on level 3
3420 #** Level 3, but ordered
3423 <ol><li> with numbers
3425 <ul><li> and bullets
3427 <ol><li> and numbers
3429 </li><li>bullets again
3430 <ul><li>bullet level 2
3431 <ul><li>bullet level 3
3432 <ol><li>Number on level 4
3435 </li><li>bullet level 2
3436 <ol><li>Number on level 3
3437 </li><li>Number on level 3
3440 <ol><li>number level 2
3443 <ul><li><ul><li> Level 3
3447 <ol><li><ul><li><ul><li> Level 3, but ordered
3481 Nested lists 3 (first element empty)
3494 Nested lists 4 (first element empty)
3507 Nested lists 5 (both elements empty)
3520 Nested lists 6 (both elements empty)
3533 Nested lists 7 (skip initial nesting levels)
3537 <ul><li><ul><li><ul><li> foo
3545 Nested lists 8 (multiple nesting transitions)
3553 <ul><li><ul><li> bar
3563 1. Lists with start-of-line-transparent tokens before bullets: Comments
3577 2. Lists with start-of-line-transparent tokens before bullets: Template close
3589 List items are not parsed correctly following a <pre> block (bug 785)
3595 <ul><li> <pre>foo</pre>
3596 </li><li> <pre>bar</pre>
3603 List items from template
3614 * notSOL{{inner list}}
3633 List interrupted by empty line or heading
3643 <ul><li><ul><li> bar
3646 <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>
3647 <ul><li> Another list item
3658 Magic Word: {{CURRENTDAY}}
3667 Magic Word: {{CURRENTDAY2}}
3676 Magic Word: {{CURRENTDAYNAME}}
3685 Magic Word: {{CURRENTDOW}}
3694 Magic Word: {{CURRENTMONTH}}
3703 Magic Word: {{CURRENTMONTHABBREV}}
3705 {{CURRENTMONTHABBREV}}
3712 Magic Word: {{CURRENTMONTHNAME}}
3714 {{CURRENTMONTHNAME}}
3721 Magic Word: {{CURRENTMONTHNAMEGEN}}
3723 {{CURRENTMONTHNAMEGEN}}
3730 Magic Word: {{CURRENTTIME}}
3739 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3748 Magic Word: {{CURRENTYEAR}}
3757 Magic Word: {{FULLPAGENAME}}
3759 title=[[User:Ævar Arnfjörð Bjarmason]]
3763 <p>User:Ævar Arnfjörð Bjarmason
3768 Magic Word: {{FULLPAGENAMEE}}
3770 title=[[User:Ævar Arnfjörð Bjarmason]]
3774 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3779 Magic Word: {{NAMESPACE}}
3781 title=[[User:Ævar Arnfjörð Bjarmason]]
3790 Magic Word: {{NAMESPACEE}}
3792 title=[[User:Ævar Arnfjörð Bjarmason]]
3801 Magic Word: {{NAMESPACENUMBER}}
3803 title=[[User:Ævar Arnfjörð Bjarmason]]
3812 Magic Word: {{NUMBEROFFILES}}
3821 Magic Word: {{PAGENAME}}
3823 title=[[User:Ævar Arnfjörð Bjarmason]]
3827 <p>Ævar Arnfjörð Bjarmason
3832 Magic Word: {{PAGENAME}} with metacharacters
3834 title=[['foo & bar = baz']]
3838 <p><i>'foo & bar = baz'</i>
3843 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3845 title=[[*RFC 1234 http://example.com/]]
3849 <p>*RFC 1234 http://example.com/
3854 Magic Word: {{PAGENAMEE}}
3856 title=[[User:Ævar Arnfjörð Bjarmason]]
3860 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3865 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3867 title=[[*RFC 1234 http://example.com/]]
3871 <p>*RFC_1234_http://example.com/
3876 Magic Word: {{REVISIONID}}
3885 Magic Word: {{SCRIPTPATH}}
3894 Magic Word: {{SERVER}}
3898 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3903 Magic Word: {{SERVERNAME}}
3912 Magic Word: {{SITENAME}}
3921 Namespace 1 {{ns:1}}
3930 Namespace 1 {{ns:01}}
3939 Namespace 0 {{ns:0}} (bug 4783)
3947 Namespace 0 {{ns:00}} (bug 4783)
3955 Namespace -1 {{ns:-1}}
3964 Namespace User {{ns:User}}
3973 Namespace User talk {{ns:User_talk}}
3982 Namespace User talk {{ns:uSeR tAlK}}
3991 Namespace File {{ns:File}}
4000 Namespace File {{ns:Image}}
4009 Namespace (lang=de) Benutzer {{ns:User}}
4020 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4026 <p>Benutzer Diskussion
4034 {{urlencode:hi world?!}}
4035 {{urlencode:hi world?!|WIKI}}
4036 {{urlencode:hi world?!|PATH}}
4037 {{urlencode:hi world?!|QUERY}}
4050 Magic links: internal link to RFC (bug 479)
4054 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4059 Magic links: RFC (bug 479)
4063 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4068 Magic links: ISBN (bug 1937)
4072 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4077 Magic links: PMID incorrectly converts space to underscore
4081 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4090 Nonexistent template
4092 {{thistemplatedoesnotexist}}
4094 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4101 This is a test template
4109 <p>This is a test template
4114 Template with explicit namespace
4118 <p>This is a test template
4126 This is a test template with parameter {{{param}}}
4132 {{paramtest|param=foo}}
4134 <p>This is a test template with parameter foo
4139 Template:paramtestnum
4145 Template unnamed parameter
4147 {{paramtestnum|Main Page|the main page}}
4149 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4154 Template:templatesimple
4160 Template:templateredirect
4162 #redirect [[Template:templatesimple]]
4166 Template:templateasargtestnum
4172 Template:templateasargtest
4174 {{template{{{templ}}}}}
4178 Template:templateasargtest2
4184 Template with template name as unnamed argument
4186 {{templateasargtestnum|templatesimple}}
4193 Template with template name as argument
4195 {{templateasargtest|templ=simple}}
4202 Template with template name as argument (2)
4204 {{templateasargtest2|templ=templatesimple}}
4211 Template:templateasargtestdefault
4213 {{{{{templ|templatesimple}}}}}
4223 Template with default value
4225 {{templateasargtestdefault}}
4232 Template with default value (value set)
4234 {{templateasargtestdefault|templ=templa}}
4243 {{templateredirect}}
4250 Template with argument in separate line
4252 {{ templateasargtest |
4260 Template with complex template as argument
4263 param ={{ templateasargtest |
4266 <p>This is a test template with parameter (test)
4271 Template with thumb image (with link in description)
4274 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4276 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>
4281 Template:complextemplate
4283 {{{1}}} {{paramtest|
4284 param ={{{param}}}}}
4288 Template with complex arguments
4291 param ={{ templateasargtest |
4292 templ = simple }}|[[Template:complextemplate|link]]}}
4294 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4299 BUG 553: link with two variables in a piped link
4302 |[[{{{1}}}|{{{2}}}]]
4307 <td>[[{{{1}}}|{{{2}}}]]
4313 Magic variable as template parameter
4315 {{paramtest|param={{SITENAME}}}}
4317 <p>This is a test template with parameter MediaWiki
4324 [[{{{param}}}|link]]
4328 Template parameter as link source
4330 {{linktest|param=Main Page}}
4332 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4337 Template-generated attribute string (k='v')
4339 <span {{attr_str|id|v1}}>bar</span>
4341 <p><span id="v1">bar</span>
4348 including another template, {{paramtest|param={{{arg}}}}}
4352 Template passing argument to another template
4354 {{paramtest2|arg='hmm'}}
4356 <p>including another template, This is a test template with parameter 'hmm'
4367 Template as link source
4371 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4389 Template infinite loop
4393 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4398 Template from main namespace
4417 BUG 529: Template with table, not included at beginning of line
4436 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4456 BUG 41: Template parameters shown as broken links
4468 ''None'' of '''this''' should be
4470 but rather passed unmodified
4474 # hmm, fix this or just deprecate msgnw and document its behavior?
4480 {{msgnw:MSGNW test}}
4482 <p>''None'' of '''this''' should be
4484 but rather passed unmodified
4492 {{int:youhavenewmessages|lots of money|not!}}
4494 <p>You have lots of money (not!).
4501 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4505 <includeonly> and <noinclude> being included
4516 <onlyinclude>Foo</onlyinclude>bar
4520 <onlyinclude> being included
4532 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4536 <onlyinclude> and <includeonly> being included
4545 <includeonly> and <noinclude> on a page
4547 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4554 <onlyinclude> on a page
4556 <onlyinclude>Foo</onlyinclude>bar
4563 Template:Includeonly section
4566 ==Includeonly section==
4572 Bug 6563: Edit link generation for section shown by <includeonly>
4574 {{includeonly section}}
4576 <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>
4577 <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>
4581 # Uses same input as the contents of [[Template:Includeonly section]]
4583 Bug 6563: Section extraction for section shown by <includeonly>
4588 ==Includeonly section==
4596 Bug 6563: Edit link generation for section suppressed by <includeonly>
4599 ==Includeonly section==
4603 <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>
4608 Bug 6563: Section extraction for section suppressed by <includeonly>
4613 ==Includeonly section==
4621 ### <includeonly> and <noinclude> in attributes
4624 0. includeonly around the entire attribute
4626 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4628 <p><span id="v2">bar</span>
4633 1. includeonly in html attr key
4635 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4637 <p><span id="foo">bar</span>
4642 2. includeonly in html attr value
4644 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4645 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4647 <p><span id="v1">bar</span>
4648 <span id="v1">bar</span>
4653 3. includeonly in part of an attr value
4655 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4657 <p><span style="color:red;">bar</span>
4662 ### Testing parsing of templates where a template arg
4663 ### has the same name as the template itself.
4673 Templates: Template Name/Arg clash: 1. Use of positional param
4682 Templates: Template Name/Arg clash: 2. Use of named param
4691 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4700 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4704 Templates: 1. Simple use
4713 Templates: 2. Inside a block tag
4715 <div>{{echo|Foo}}</div>
4722 Templates: P-wrapping: 1a. Templates on consecutive lines
4733 Templates: P-wrapping: 1b. Templates on consecutive lines
4747 Templates: P-wrapping: 1c. Templates on consecutive lines
4750 {{echo|bar}} <div>baz</div>
4759 Templates: Inline Text: 1. Multiple tmeplate uses
4761 {{echo|Foo}}bar{{echo|baz}}
4768 Templates: Inline Text: 2. Back-to-back template uses
4770 {{echo|Foo}}{{echo|bar}}
4777 Templates: Block Tags: 1. Multiple template uses
4779 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4781 <div>Foo</div><div>bar</div><div>baz</div>
4786 Templates: Block Tags: 2. Back-to-back template uses
4788 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4790 <div>Foo</div><div>bar</div>
4795 Templates: Links: 1. Simple example
4797 {{echo|[[Foo|bar]]}}
4799 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4804 Templates: Links: 2. Generation of link href
4806 [[{{echo|Foo}}|bar]]
4808 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4813 Templates: Links: 3. Generation of part of a link href
4815 [[Fo{{echo|o}}|bar]]
4817 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4822 Templates: Links: 4. Multiple templates generating link href
4824 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4826 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4831 Templates: Links: 5. Generation of link text
4833 [[Foo|{{echo|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: 5. Nested templates (only outermost template should be marked)
4842 {{echo|[[{{echo|Foo}}|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: HTML Tag: 1. Generation of HTML attr. key
4851 <div {{echo|style}}="color:red;">foo</div>
4853 <div style="color:red;">foo</div>
4858 Templates: HTML Tag: 2. Generation of HTML attr. value
4860 <div style={{echo|'color:red;'}}>foo</div>
4862 <div style="color:red;">foo</div>
4867 Templates: HTML Tag: 3. Generation of HTML attr key and value
4869 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4871 <div style="color:red;">foo</div>
4876 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4878 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4880 <div title="This is a long title with just one piece templated">foo</div>
4885 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4887 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4889 <div title="This is a long title with just one piece templated">foo</div>
4894 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4896 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4898 <div title="This is a long title with just one piece templated">foo</div>
4903 Templates: HTML Tables: 1. Generating start of a HTML table
4905 {{echo|<table><tr><td>foo</td>}}</tr></table>
4907 <table><tr><td>foo</td></tr></table>
4912 Templates: HTML Tables: 2a. Generating middle of a HTML table
4914 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4916 <table><tr><td>foo</td></tr></table>
4921 Templates: HTML Tables: 2b. Generating middle of a HTML table
4923 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4925 <table><tr><td>foo</td></tr></table>
4930 Templates: HTML Tables: 3. Generating end of a HTML table
4932 <table><tr>{{echo|<td>foo</td></tr></table>}}
4934 <table><tr><td>foo</td></tr></table>
4939 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
4941 {{echo|<table>}}<tr><td>foo</td></tr></table>
4943 <table><tr><td>foo</td></tr></table>
4948 Templates: HTML Tables: 4b. Generating a single tag 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: 4c. Generating a single tag 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: 4d. Generating a single tag of a HTML table
4968 <table><tr><td>foo{{echo|</td>}}</tr></table>
4970 <table><tr><td>foo</td></tr></table>
4975 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
4977 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4979 <table><tr><td>foo</td></tr></table>
4984 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
4986 <table><tr><td>foo</td></tr>{{echo|</table>}}
4988 <table><tr><td>foo</td></tr></table>
4993 Templates: Wiki Tables: 1. Fostering of entire template content
5001 <tr><td></td></tr></table>
5006 Templates: Wiki Tables: 2. Fostering of partial template content
5016 <tr><td></td></tr></table>
5021 Templates: Wiki Tables: 3. td-content via multiple templates
5024 {{echo|{{pipe}}a}}{{echo|b}}
5035 Templates: Lists: Multi-line list-items via templates
5037 *{{echo|a {{nonexistent|
5039 *{{echo|b {{nonexistent|
5042 <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>
5043 </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>
5049 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5051 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5053 <p><i>ab</i>c<i>d</i>e
5058 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5059 (PHP parser generates misnested html)
5063 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5065 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5069 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5070 (PHP parser generates misnested html)
5074 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5077 <div><i>b</i>c<i>d</i></div>
5082 Templates: Ugly nesting: 4. Divs opened/closed across templates
5084 a<div>b{{echo|c</div>d}}e
5091 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5097 |{{echo|foo</table>}}
5101 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5102 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5103 bar</span><span about="#mwt1">
5108 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5118 <td>1. {{echo|foo </table>}}</td>
5120 <td>2. {{echo|baz </table>}}</td>
5133 <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">
5134 <tbody><tr data-parsoid="{"stx":"html"}">
5135 <td data-parsoid="{"stx":"html"}">
5136 <table data-parsoid="{"stx":"html"}">
5137 <tbody><tr data-parsoid="{"stx":"html"}">
5138 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5139 <td data-parsoid="{"stx":"html"}"> bar </td>
5140 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5141 </span><span about="#mwt1">
5143 abc</span><span about="#mwt1">
5144 </span><span about="#mwt1">
5145 </span><span about="#mwt1">
5146 </span><span about="#mwt1">
5147 </span><span about="#mwt1">
5149 xyz</span><span about="#mwt1">
5150 </span><span about="#mwt1">
5155 Parser Functions: 1. Simple example
5164 Parser Functions: 2. Nested use (only outermost should be marked up)
5173 ### Pre-save transform tests
5176 pre-save transform: subst:
5182 This is a test template
5186 pre-save transform: normal template
5196 pre-save transform: nonexistent template
5200 {{thistemplatedoesnotexist}}
5202 {{thistemplatedoesnotexist}}
5207 pre-save transform: subst magic variables
5216 # This is bug 89, which I fixed. -- wtm
5218 pre-save transform: subst: templates with parameters
5222 {{subst:paramtest|param="something else"}}
5224 This is a test template with parameter "something else"
5230 <nowiki>'''not wiki'''</nowiki>
5234 pre-save transform: nowiki in subst (bug 1188)
5238 {{subst:nowikitest}}
5240 <nowiki>'''not wiki'''</nowiki>
5245 Template:commenttest
5247 This template has <!-- a comment --> in it.
5251 pre-save transform: comment in subst (bug 1936)
5255 {{subst:commenttest}}
5257 This template has <!-- a comment --> in it.
5261 pre-save transform: unclosed tag
5265 <nowiki>'''not wiki'''
5267 <nowiki>'''not wiki'''
5271 pre-save transform: mixed tag case
5275 <NOwiki>'''not wiki'''</noWIKI>
5277 <NOwiki>'''not wiki'''</noWIKI>
5281 pre-save transform: unclosed comment in <nowiki>
5285 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5287 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5293 <span onmouseover="alert('crap')">Oh no</span>
5297 (confirming safety of fix for subst bug 1936)
5299 {{Template:dangerous}}
5301 <p><span>Oh no</span>
5306 pre-save transform: comment containing gallery (bug 5024)
5310 <!-- <gallery>data</gallery> -->
5312 <!-- <gallery>data</gallery> -->
5316 pre-save transform: comment containing extension
5320 <!-- <tag>data</tag> -->
5322 <!-- <tag>data</tag> -->
5326 pre-save transform: comment containing nowiki
5330 <!-- <nowiki>data</nowiki> -->
5332 <!-- <nowiki>data</nowiki> -->
5336 pre-save transform: <noinclude> in subst (bug 3298)
5346 pre-save transform: <onlyinclude> in subst (bug 3298)
5358 {{<includeonly>subst:</includeonly>Includes}}
5362 Template:SafeSubstTest
5364 {{<includeonly>safesubst:</includeonly>Includes}}
5368 bug 22297: safesubst: works during PST
5372 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5378 bug 22297: safesubst: works during normal parse
5387 subst: does not work during normal parse
5391 <p>{{subst:Includes}}
5396 pre-save transform: context links ("pipe trick")
5400 [[Article (context)|]]
5403 [[Bar:Article (context)|]]
5404 [[:Bar:Article (context)|]]
5406 [[|Article (context)]]
5410 [[Article (context)|Article]]
5411 [[Bar:Article|Article]]
5412 [[:Bar:Article|Article]]
5413 [[Bar:Article (context)|Article]]
5414 [[:Bar:Article (context)|Article]]
5416 [[Article (context)]]
5417 [[Bar:X (Y) Z|X (Y) Z]]
5418 [[:Bar:X (Y) Z|X (Y) Z]]
5422 pre-save transform: context links ("pipe trick") with interwiki prefix
5426 [[interwiki:Article|]]
5427 [[:interwiki:Article|]]
5428 [[interwiki:Bar:Article|]]
5429 [[:interwiki:Bar:Article|]]
5431 [[interwiki:Article|Article]]
5432 [[:interwiki:Article|Article]]
5433 [[interwiki:Bar:Article|Bar:Article]]
5434 [[:interwiki:Bar:Article|Bar:Article]]
5438 pre-save transform: context links ("pipe trick") with parens in title
5440 pst title=[[Somearticle (context)]]
5444 [[Article (context)|Article]]
5448 pre-save transform: context links ("pipe trick") with comma in title
5450 pst title=[[Someplace, Somewhere]]
5453 [[Otherplace, Elsewhere|]]
5454 [[Otherplace, Elsewhere, Anywhere|]]
5456 [[Otherplace, Somewhere|Otherplace]]
5457 [[Otherplace, Elsewhere|Otherplace]]
5458 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5462 pre-save transform: context links ("pipe trick") with parens and comma
5464 pst title=[[Someplace (IGNORED), Somewhere]]
5467 [[Otherplace (place), Elsewhere|]]
5469 [[Otherplace, Somewhere|Otherplace]]
5470 [[Otherplace (place), Elsewhere|Otherplace]]
5474 pre-save transform: context links ("pipe trick") with comma and parens
5476 pst title=[[Who, me? (context)]]
5479 [[Me, Myself, and I (1937 song)|]]
5481 [[Yes, you. (context)|Yes, you.]]
5482 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5486 pre-save transform: context links ("pipe trick") with namespace
5488 pst title=[[Ns:Somearticle]]
5492 [[Ns:Article|Article]]
5496 pre-save transform: context links ("pipe trick") with namespace and parens
5498 pst title=[[Ns:Somearticle (context)]]
5502 [[Ns:Article (context)|Article]]
5506 pre-save transform: context links ("pipe trick") with namespace and comma
5508 pst title=[[Ns:Somearticle, Context, Whatever]]
5512 [[Ns:Article, Context, Whatever|Article]]
5516 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5518 pst title=[[Ns:Somearticle, Context (context)]]
5522 [[Ns:Article (context)|Article]]
5526 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5528 pst title=[[Ns:Somearticle (IGNORED), Context]]
5532 [[Ns:Article, Context|Article]]
5536 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5540 [[Article(context)|]]
5541 [[Bar:Article(context)|]]
5542 [[:Bar:Article(context)|]]
5543 [[|Article(context)]]
5547 [[Article(context)|Article]]
5548 [[Bar:Article(context)|Article]]
5549 [[:Bar:Article(context)|Article]]
5550 [[Article(context)]]
5552 [[:Bar:X(Y)Z|X(Y)Z]]
5556 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5560 [[Article (context)|]]
5561 [[Bar:Article (context)|]]
5562 [[:Bar:Article (context)|]]
5563 [[|Article (context)]]
5567 [[Article (context)|Article]]
5568 [[Bar:Article (context)|Article]]
5569 [[:Bar:Article (context)|Article]]
5570 [[Article (context)]]
5571 [[Bar:X (Y) Z|X (Y) Z]]
5572 [[:Bar:X (Y) Z|X (Y) Z]]
5576 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5580 [[Article(context)|]]
5581 [[Bar:Article(context)|]]
5582 [[:Bar:Article(context)|]]
5583 [[|Article(context)]]
5587 [[Article(context)|Article]]
5588 [[Bar:Article(context)|Article]]
5589 [[:Bar:Article(context)|Article]]
5590 [[Article(context)]]
5592 [[:Bar:X(Y)Z|X(Y)Z]]
5596 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5600 [[Article (context), context|]]
5601 [[Article (context),context|]]
5602 [[Bar:Article (context), context|]]
5603 [[Bar:Article (context),context|]]
5604 [[:Bar:Article (context), context|]]
5605 [[:Bar:Article (context),context|]]
5607 [[Article (context), context|Article]]
5608 [[Article (context),context|Article]]
5609 [[Bar:Article (context), context|Article]]
5610 [[Bar:Article (context),context|Article]]
5611 [[:Bar:Article (context), context|Article]]
5612 [[:Bar:Article (context),context|Article]]
5616 pre-save transform: trim trailing empty lines
5620 Empty lines are trimmed
5626 Empty lines are trimmed
5630 pre-save transform: Signature expansion
5635 * <noinclude>~~~</noinclude>
5636 * <includeonly>~~~</includeonly>
5637 * <onlyinclude>~~~</onlyinclude>
5639 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5640 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5641 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5642 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5647 pre-save transform: Signature expansion in nowiki tags (bug 93)
5653 <nowiki>~~~~</nowiki>
5655 <includeonly><nowiki>~~~~</nowiki></includeonly>
5657 <noinclude><nowiki>~~~~</nowiki></noinclude>
5659 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5661 {{subst:Foo}} shall be converted to FOO
5663 As well as inside noinclude/onlyinclude
5664 <noinclude>{{subst:Foo}}</noinclude>
5665 <onlyinclude>{{subst:Foo}}</onlyinclude>
5667 But not inside includeonly
5668 <includeonly>{{subst:Foo}}</includeonly>
5672 <nowiki>~~~~</nowiki>
5674 <includeonly><nowiki>~~~~</nowiki></includeonly>
5676 <noinclude><nowiki>~~~~</nowiki></noinclude>
5678 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5680 FOO shall be converted to FOO
5682 As well as inside noinclude/onlyinclude
5683 <noinclude>FOO</noinclude>
5684 <onlyinclude>FOO</onlyinclude>
5686 But not inside includeonly
5687 <includeonly>{{subst:Foo}}</includeonly>
5691 ### Message transform tests
5694 message transform: magic variables
5704 message transform: should not transform wiki markup
5714 message transform: <noinclude> in transcluded template (bug 4926)
5724 message transform: <onlyinclude> in transcluded template (bug 4926)
5734 {{#special:}} page name, known
5738 {{#special:Recentchanges}}
5740 Special:RecentChanges
5744 {{#special:}} page name with subpage, known
5748 {{#special:Recentchanges/param}}
5750 Special:RecentChanges/param
5754 {{#special:}} page name, unknown
5758 {{#special:foobarnonexistent}}
5760 No such special page
5764 {{#speciale:}} page name, known
5768 {{#speciale:Recentchanges}}
5770 Special:RecentChanges
5774 {{#speciale:}} page name with subpage, known
5778 {{#speciale:Recentchanges/param}}
5780 Special:RecentChanges/param
5784 {{#speciale:}} page name, unknown
5788 {{#speciale:foobarnonexistent}}
5790 No_such_special_page
5799 [[Image:foobar.jpg]]
5801 <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>
5808 [[Image:foobar.jpg|right]]
5810 <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>
5815 Simple image (using File: namespace, now canonical)
5819 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5826 [[Image:foobar.jpg|right|Caption text]]
5828 <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>
5833 Image with empty attribute
5835 [[Image:foobar.jpg|right||Caption text]]
5837 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
5842 Image with link tails
5844 123[[Image:foobar.jpg]]456
5845 123[[Image:foobar.jpg|right]]456
5846 123[[Image:foobar.jpg|thumb]]456
5848 <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
5850 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
5851 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
5856 Image with multiple captions -- only last one is accepted
5858 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5860 <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>
5865 Image with link parameter, wiki target
5867 [[Image:foobar.jpg|link=Target page]]
5869 <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>
5874 Image with link parameter, URL target
5876 [[Image:foobar.jpg|link=http://example.com/]]
5878 <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>
5883 Image with link parameter, wgExternalLinkTarget
5885 [[Image:foobar.jpg|link=http://example.com/]]
5887 wgExternalLinkTarget='foobar'
5889 <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>
5894 Image with link parameter, wgNoFollowLinks set to false
5896 [[Image:foobar.jpg|link=http://example.com/]]
5898 wgNoFollowLinks=false
5900 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5905 Image with link parameter, wgNoFollowDomainExceptions
5907 [[Image:foobar.jpg|link=http://example.com/]]
5909 wgNoFollowDomainExceptions='example.com'
5911 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5916 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5918 [[Image:foobar.jpg|link=http://example.com/|Title]]
5920 wgExternalLinkTarget='foobar'
5922 <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>
5927 Image with empty link parameter
5929 [[Image:foobar.jpg|link=]]
5931 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5936 Image with link parameter (wiki target) and unnamed parameter
5938 [[Image:foobar.jpg|link=Target page|Title]]
5940 <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>
5945 Image with link parameter (URL target) and unnamed parameter
5947 [[Image:foobar.jpg|link=http://example.com/|Title]]
5949 <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>
5954 Thumbnail image with link parameter
5956 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5958 <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>
5963 Image with frame and link
5965 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5967 <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>
5972 Image with frame and link and explicit alt
5974 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5976 <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>
5981 Image with wiki markup in implicit alt
5983 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5985 <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>
5990 Image with wiki markup in explicit alt
5992 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5994 <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>
5999 Link to image page- image page normally doesn't exists, hence edit link
6000 Add test with existing image page
6001 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6005 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6010 bug 18784 Link to non-existent image page with caption should use caption as link text
6012 [[:Image:test|caption]]
6014 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6019 Frameless image caption with a free URL
6021 [[Image:foobar.jpg|http://example.com]]
6023 <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>
6028 Thumbnail image caption with a free URL
6030 [[Image:foobar.jpg|thumb|http://example.com]]
6032 <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>
6037 Thumbnail image caption with a free URL and explicit alt
6039 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6041 <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>
6046 BUG 1887: A ISBN with a thumbnail
6048 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6050 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6055 BUG 1887: A RFC with a thumbnail
6057 [[Image:foobar.jpg|thumb|This is RFC 12354]]
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>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6064 BUG 1887: A mailto link with a thumbnail
6066 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6068 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
6072 # Pending resolution to bug 368
6074 BUG 648: Frameless image caption with a link
6076 [[Image:foobar.jpg|text with a [[link]] in it]]
6078 <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>
6083 BUG 648: Frameless image caption with a link (suffix)
6085 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6087 <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>
6092 BUG 648: Frameless image caption with an interwiki link
6094 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6096 <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>
6101 BUG 648: Frameless image caption with a piped interwiki link
6103 [[Image:foobar.jpg|text with a [[MeatBall:Link|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 Escape HTML special chars in image alt text
6112 [[Image:foobar.jpg|& < > "]]
6114 <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>
6119 BUG 499: Alt text should have Ӓ, not &1234;
6121 [[Image:foobar.jpg|♀]]
6123 <p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6128 Broken image caption with link
6130 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6132 <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.
6137 Image caption containing another image
6139 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6141 <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>
6146 Image caption containing a newline
6148 [[Image:Foobar.jpg|This
6151 <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>
6157 Bug 3090: External links other than http: in image captions
6159 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6161 <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>
6168 [[Image:foobar.jpg|a|class=b]]
6170 <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>
6177 #REDIRECT [[File:Barfoo.jpg]]
6183 [[Image:Barfoo.jpg]]
6185 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6190 Missing image with uploads disabled
6194 [[Image:Foobaz.jpg]]
6196 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6205 Subpage test/subpage
6213 subpage title=[[Subpage test]]
6217 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6222 Subpage noslash link
6224 subpage title=[[Subpage test]]
6228 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6237 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6242 BUG 561: {{/Subpage}}
6244 subpage title=[[Page]]
6248 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6256 Category:MediaWiki User's Guide
6264 [[:Category:MediaWiki User's Guide]]
6266 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6275 [[Category:MediaWiki User's Guide]]
6277 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6281 PAGESINCATEGORY invalid title fatal (r33546 fix)
6283 {{PAGESINCATEGORY:<bogus>}}
6290 Category with different sort key
6294 [[Category:MediaWiki User's Guide|Foo]]
6296 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6300 Category with identical sort key
6304 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6306 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6310 Category with empty sort key
6315 [[Category:MediaWiki User's Guide|]]
6317 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6321 Category with empty sort key and parentheses
6326 [[Category:Foo (bar)|]]
6328 [[Category:Foo (bar)|Foo]]
6332 Category with link tail
6337 123[[Category:Foo]]456
6339 123[[Category:Foo]]456
6343 Category with template
6348 [[Category:{{echo|Foo}}]]
6350 [[Category:{{echo|Foo}}]]
6354 Category with template in sort key
6359 [[Category:Foo|{{echo|Bar}}]]
6361 [[Category:Foo|{{echo|Bar}}]]
6365 Category with template in sort key and title
6370 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6372 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6376 Category / paragraph interactions
6378 Foo [[Category:Baz]] Bar
6380 Foo [[Category:Baz]]
6388 [[Category:Baz]] Bar
6401 {{echo|[[Category:Baz]]}}
6416 ### Inter-language links
6419 Inter-language links
6425 [[zh:食品]]
6427 es:Alimento fr:Nourriture zh:食品
6431 Duplicate interlanguage links (bug 24502)
6447 Basic section headings
6454 ===Smaller headline===
6457 <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>
6460 <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>
6463 <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>
6469 Section headings with TOC
6472 === Subheadline 1 ===
6473 ===== Skipping a level =====
6474 ====== Skipping a level ======
6478 ===Another headline===
6480 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6482 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6484 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6486 <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>
6488 <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>
6495 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6497 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6502 <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>
6503 <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>
6504 <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>
6505 <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>
6506 <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>
6509 <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>
6513 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6515 Handling of sections up to level 6 and beyond
6518 == Level 2 Heading==
6519 === Level 3 Heading===
6520 ==== Level 4 Heading====
6521 ===== Level 5 Heading=====
6522 ====== Level 6 Heading======
6523 ======= Level 7 Heading=======
6524 ======== Level 8 Heading========
6525 ========= Level 9 Heading=========
6526 ========== Level 10 Heading==========
6528 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6530 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6532 <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>
6534 <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>
6536 <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>
6538 <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>
6540 <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>
6541 <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>
6542 <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>
6543 <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>
6544 <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>
6557 <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>
6558 <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>
6559 <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>
6560 <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>
6561 <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>
6562 <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>
6563 <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>
6564 <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>
6565 <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>
6566 <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>
6571 TOC regression (bug 9764)
6575 ==== title 1.1.1 ====
6580 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6582 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6584 <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>
6586 <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>
6589 <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>
6592 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6594 <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>
6599 <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>
6600 <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>
6601 <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>
6602 <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>
6603 <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>
6604 <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>
6609 TOC with wgMaxTocLevel=3 (bug 6204)
6615 ==== title 1.1.1 ====
6620 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6622 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6624 <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>
6625 <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>
6628 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6630 <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>
6635 <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>
6636 <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>
6637 <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>
6638 <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>
6639 <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>
6640 <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>
6645 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6651 ====Section 1.1.1====
6652 ====Section 1.1.1.1====
6655 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6657 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6659 <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>
6662 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6665 <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>
6666 <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>
6667 <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>
6668 <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>
6669 <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>
6675 Resolving duplicate section names
6680 <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>
6681 <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>
6686 Resolving duplicate section names with differing case (bug 10721)
6691 <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>
6692 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span></h2>
6704 Template with sections, __NOTOC__
6711 <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>
6712 <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>
6713 <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>
6714 <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>
6719 __NOEDITSECTION__ keyword
6725 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6726 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6731 Link inside a section heading
6733 ==Section with a [[Main Page|link]] in it==
6735 <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>
6740 TOC regression (bug 12077)
6747 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6749 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6751 <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>
6754 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6757 <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>
6758 <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>
6759 <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>
6764 BUG 1219 URL next to image (good)
6766 http://example.com [[Image:foobar.jpg]]
6768 <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>
6773 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6776 The line above must have a trailing space!
6779 But just in case it doesn't...
6781 <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>
6782 <p>The line above must have a trailing space!
6784 <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>
6785 <p>But just in case it doesn't...
6790 Header with special characters (bug 25462)
6792 The tooltips shall not show entities to the user (ie. be double escaped)
6809 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6811 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6813 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6814 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6815 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6816 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6817 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6820 <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>
6823 <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>
6826 <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>
6829 <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>
6832 <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>
6838 Headers with excess '=' characters
6839 (Are similar tests necessary beyond the 1st level?)
6843 =''italic'' heading==
6844 ==''italic'' heading=
6846 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6848 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6849 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6850 <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>
6851 <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>
6854 <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>
6855 <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>
6856 <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>
6857 <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>
6862 BUG 1219 URL next to image (broken)
6864 http://example.com[[Image:foobar.jpg]]
6866 <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>
6871 Bug 1186 news: in the middle of text
6873 http://en.wikinews.org/wiki/Wikinews:Workplace
6875 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6881 Namespaced link must have a title
6890 Namespaced link must have a title (bad fragment version)
6892 [[Project:#fragment]]
6894 <p>[[Project:#fragment]]
6900 div with no attributes
6902 <div>HTML rocks</div>
6904 <div>HTML rocks</div>
6909 div with double-quoted attribute
6911 <div id="rock">HTML rocks</div>
6913 <div id="rock">HTML rocks</div>
6918 div with single-quoted attribute
6920 <div id='rock'>HTML rocks</div>
6922 <div id="rock">HTML rocks</div>
6927 div with unquoted attribute
6929 <div id=rock>HTML rocks</div>
6931 <div id="rock">HTML rocks</div>
6936 div with illegal double attributes
6938 <div id="a" id="b">HTML rocks</div>
6940 <div id="b">HTML rocks</div>
6945 HTML multiple attributes correction
6947 <p class="error" class="awesome">Awesome!</p>
6949 <p class="awesome">Awesome!</p>
6954 Table multiple attributes correction
6957 !+ class="error" class="awesome"| status
6962 <th class="awesome"> status
6970 <DIV ID="x">HTML ROCKS</DIV>
6972 <div id="x">HTML ROCKS</div>
6978 text with amp in the middle of nowhere
6982 <p>Remember AT&T?
6987 text with character entity: eacute
6989 I always thought é was a cute letter.
6991 <p>I always thought é was a cute letter.
6996 text with undefined character entity: xacute
6998 I always thought &xacute; was a cute letter.
7000 <p>I always thought &xacute; was a cute letter.
7012 [[Media:Foobar.jpg]]
7014 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7019 Media link with text
7021 [[Media:Foobar.jpg|A neat file to look at]]
7023 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7027 # FIXME: this is still bad HTML tag nesting
7029 Media link with nasty text
7030 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7032 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7034 <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>
7039 Media link to nonexistent file (bug 1702)
7041 [[Media:No such.jpg]]
7043 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7048 Image link to nonexistent file (bug 1850 - good)
7050 [[Image:No such.jpg]]
7052 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7057 :Image link to nonexistent file (bug 1850 - bad)
7059 [[:Image:No such.jpg]]
7061 <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>
7068 Character reference normalization in link text (bug 1938)
7070 [[Main Page|this&that]]
7072 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7079 Test for unicode normalization
7081 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7085 (bug 19451) Links should refer to the normalized form.
7093 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7094 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7095 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7096 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7097 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7102 Empty attribute crash test (bug 2067)
7104 <font color="">foo</font>
7106 <p><font color="">foo</font>
7111 Empty attribute crash test single-quotes (bug 2067)
7113 <font color=''>foo</font>
7115 <p><font color="">foo</font>
7120 Attribute test: equals, then nothing
7122 <font color=>foo</font>
7129 Attribute test: unquoted value
7131 <font color=x>foo</font>
7133 <p><font color="x">foo</font>
7138 Attribute test: unquoted but illegal value (hash)
7140 <font color=#x>foo</font>
7142 <p><font color="#x">foo</font>
7147 Attribute test: no value
7149 <font color>foo</font>
7151 <p><font color="color">foo</font>
7156 Bug 2095: link with three closing brackets
7160 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7165 Bug 2095: link with pipe and three closing brackets
7169 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7174 Bug 2095: link with pipe and three closing brackets, version 2
7176 [[Main Page|[http://example.com/]]]
7178 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7188 Template:Dangerous attribute
7190 " onmouseover="alert(document.cookie)
7194 Template:Dangerous style attribute
7196 border-size: expression(alert(document.cookie))
7202 <div style="float: right; {{{1}}}">Magic div</div>
7206 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7208 <div title="{{test}}"></div>
7210 <div title="This is a test template"></div>
7215 Bug 2304: HTML attribute safety (dangerous template; 2309)
7217 <div title="{{dangerous attribute}}"></div>
7219 <div title=""></div>
7224 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7226 <div style="{{dangerous style attribute}}"></div>
7228 <div style="/* insecure input */"></div>
7233 Bug 2304: HTML attribute safety (safe parameter; 2309)
7235 {{div style|width: 200px}}
7237 <div style="float: right; width: 200px">Magic div</div>
7242 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7244 {{div style|width: expression(alert(document.cookie))}}
7246 <div style="/* insecure input */">Magic div</div>
7251 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7253 {{div style|"><script>alert(document.cookie)</script>}}
7255 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7260 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7262 {{div style|" ><script>alert(document.cookie)</script>}}
7264 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7269 Bug 2304: HTML attribute safety (link)
7271 <div title="[[Main Page]]"></div>
7273 <div title="[[Main Page]]"></div>
7278 Bug 2304: HTML attribute safety (italics)
7280 <div title="''foobar''"></div>
7282 <div title="''foobar''"></div>
7287 Bug 2304: HTML attribute safety (bold)
7289 <div title="'''foobar'''"></div>
7291 <div title="'''foobar'''"></div>
7297 Bug 2304: HTML attribute safety (ISBN)
7299 <div title="ISBN 1234567890"></div>
7301 <div title="ISBN 1234567890"></div>
7306 Bug 2304: HTML attribute safety (RFC)
7308 <div title="RFC 1234"></div>
7310 <div title="RFC 1234"></div>
7315 Bug 2304: HTML attribute safety (PMID)
7317 <div title="PMID 1234567890"></div>
7319 <div title="PMID 1234567890"></div>
7324 Bug 2304: HTML attribute safety (web link)
7326 <div title="http://example.com/"></div>
7328 <div title="http://example.com/"></div>
7333 Bug 2304: HTML attribute safety (named web link)
7335 <div title="[http://example.com/ link]"></div>
7337 <div title="[http://example.com/ link]"></div>
7342 Bug 3244: HTML attribute safety (extension; safe)
7344 <div style="<nowiki>background:blue</nowiki>"></div>
7346 <div style="background:blue"></div>
7351 Bug 3244: HTML attribute safety (extension; unsafe)
7353 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7355 <div style="/* insecure input */"></div>
7359 # More MSIE fun discovered by Tom Gilder
7362 MSIE CSS safety test: spurious slash
7364 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7366 <div style="/* insecure input */">evil</div>
7371 MSIE CSS safety test: hex code
7373 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7375 <div style="/* insecure input */">evil</div>
7380 MSIE CSS safety test: comment in url
7382 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7384 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7389 MSIE CSS safety test: comment in expression
7391 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7393 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7399 Table attribute legitimate extension
7402 !+ style="<nowiki>color:blue</nowiki>"| status
7407 <th style="color:blue"> status
7413 Table attribute safety
7416 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7421 <th style="/* insecure input */"> status
7427 CSS line continuation 1
7429 <div style="background-image: u\ rl(test.jpg);"></div>
7431 <div style="/* insecure input */"></div>
7436 CSS line continuation 2
7438 <div style="background-image: u\ rl(test.jpg); "></div>
7440 <div style="/* insecure input */"></div>
7451 Expansion of multi-line templates in attribute values (bug 6255)
7453 <div style="background: {{identity|#00FF00}}">-</div>
7455 <div style="background: #00FF00">-</div>
7461 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7463 <div style="background:
7466 <div style="background: #00FF00">-</div>
7471 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7473 <div style="background: #00FF00">-</div>
7475 <div style="background: #00FF00">-</div>
7480 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7483 Parser hook: empty input
7496 Parser hook: empty input using terminated empty elements
7509 Parser hook: empty input using terminated empty elements (space before)
7522 Parser hook: basic input
7536 Parser hook: case insensitive
7550 Parser hook: case insensitive, redux
7563 Parser hook: nested tags
7567 <tag><tag></tag></tag>
7578 Parser hook: basic arguments
7580 <tag width=200 height = "100" depth = '50' square></tag>
7588 'square' => 'square',
7595 Parser hook: argument containing a forward slash (bug 5344)
7597 <tag filename='/tmp/bla'></tag>
7602 'filename' => '/tmp/bla',
7609 Parser hook: empty input using terminated empty elements (bug 2374)
7622 # </tag> should be output literally since there is no matching tag that begins it
7624 Parser hook: basic arguments using terminated empty elements (bug 2374)
7626 <tag width=200 height = "100" depth = '50' square/>
7636 'square' => 'square',
7645 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7649 Parser hook: static parser hook not inside a comment
7651 <statictag>hello, world</statictag>
7652 <statictag action=flush/>
7660 Parser hook: static parser hook inside a comment
7662 <!-- <statictag>hello, world</statictag> -->
7663 <statictag action=flush/>
7669 # Nested template calls; this case was broken by Parser.php rev 1.506,
7673 Template:One-parameter
7675 (My parameter is: {{{1}}})
7679 Template:Map-one-parameter
7685 Nested template calls
7687 {{Map-one-parameter|One-parameter|param}}
7689 <p>(My parameter is: param)
7698 Sanitizer: Closing of open tags
7700 <s></s><table></table>
7702 <s></s><table></table>
7707 Sanitizer: Closing of open but not closed tags
7716 Sanitizer: Closing of closed but not open tags
7725 Sanitizer: Closing of closed but not open table tags
7727 Table not started</td></tr></table>
7729 <p>Table not started</td></tr></table>
7734 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7736 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7738 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7743 Sanitizer: Validating the contents of the id attribute (bug 4515)
7749 Something, but definitely not <br id="9" />...
7753 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7757 <br id="foo" /><br id="foo" />
7759 Something need to be done. foo-2 ?
7763 Language converter: output gets cut off unexpectedly (bug 5757)
7767 this bit is safe: }-
7769 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7771 then we get cut off here: }-
7773 all additional text is vanished
7775 <p>this bit is safe: }-
7776 </p><p>but if we add a conversion instance: xxx
7777 </p><p>then we get cut off here: }-
7778 </p><p>all additional text is vanished
7783 Self closed html pairs (bug 5487)
7786 <center><font id="bug" />Centered text</center>
7787 <div><font id="bug2" />In div text</div>
7789 <center><font id="bug" />Centered text</center>
7790 <div><font id="bug2" />In div text</div>
7799 Punctuation: nbsp before exclamation
7803 <p>C'est grave !
7808 Punctuation: CSS !important (bug 11874)
7810 <div style="width:50% !important">important</div>
7812 <div style="width:50% !important">important</div>
7817 Punctuation: CSS ! important (bug 11874; with space after)
7819 <div style="width:50% ! important">important</div>
7821 <div style="width:50% ! important">important</div>
7827 HTML bullet list, closed tags (bug 5497)
7842 HTML bullet list, unclosed tags (bug 5497)
7859 HTML ordered list, closed tags (bug 5497)
7874 HTML ordered list, unclosed tags (bug 5497)
7891 HTML nested bullet list, closed tags (bug 5497)
7916 HTML nested bullet list, open tags (bug 5497)
7941 HTML nested ordered list, closed tags (bug 5497)
7966 HTML nested ordered list, open tags (bug 5497)
7991 HTML ordered list item with parameters oddity
7993 <ol><li id="fragment">One</li></ol>
7995 <ol><li id="fragment">One</li></ol>
8000 bug 5918: autonumbering
8002 [http://first/] [http://second] [ftp://ftp]
8006 [mailto:enclosed@mail.tld With target]
8008 [mailto:enclosed@mail.tld]
8010 mailto:inline@mail.tld
8012 <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>
8013 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8014 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8015 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8016 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8022 # Security and HTML correctness
8023 # From Nick Jenkins' fuzz testing
8027 Fuzz testing: Parser13
8042 Fuzz testing: Parser14
8047 <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>
8048 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8050 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8057 Fuzz testing: Parser14-table
8062 <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>
8063 <table style="__TOC__">
8069 # Known to produce bogus xml (extra </td>)
8071 Fuzz testing: Parser16
8091 Fuzz testing: Parser21
8094 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8099 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8109 Fuzz testing: Parser22
8111 http://===r:::https://b
8115 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8123 # Known to produce bad XML for now
8125 Fuzz testing: Parser24
8132 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8133 <br style="onmouseover='alert(document.cookie);' " />
8135 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8140 <u class="|">}}}} >
8141 <br style="onmouseover='alert(document.cookie);'" />
8143 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8152 # Note: the current result listed for this is not what the original one was,
8153 # but the original bug was JavaScript injection, which is fixed in any case.
8154 # It's not clear that the original result listed was any more correct than the
8155 # current one. Original result:
8158 # <li class="||">
8159 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8161 Fuzz testing: Parser25 (bug 6055)
8167 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8169 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8174 Fuzz testing: URL adjacent extension (with space, clean)
8177 http://example.com <nowiki>junk</nowiki>
8179 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8184 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8187 http://example.com<nowiki>junk</nowiki>
8189 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8194 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8197 http://example.com<pre>junk</pre>
8199 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8204 Fuzz testing: image with bogus manual thumbnail
8206 [[Image:foobar.jpg|thumbnail= ]]
8208 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8213 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8215 <pre dir=" "></pre>
8217 <pre dir=" "></pre>
8222 Parsing optional HTML elements (Bug 6171)
8227 <td> Some tabular data</td>
8228 <td> More tabular data ...
8229 <td> And yet som tabular data</td>
8235 <td> Some tabular data</td>
8236 <td> More tabular data ...
8237 </td><td> And yet som tabular data</td>
8244 Correct handling of <td>, <tr> (Bug 6171)
8249 <td> Some tabular data</td>
8250 <td> More tabular data ...</td>
8251 <td> And yet som tabular data</td>
8257 <td> Some tabular data</td>
8258 <td> More tabular data ...</td>
8259 <td> And yet som tabular data</td>
8267 Parsing crashing regression (fr:JavaScript)
8271 <p></body></x>
8276 Inline wiki vs wiki block nesting
8282 <p><b>Bold paragraph</b>
8283 </p><p>New wiki paragraph
8288 Inline HTML vs wiki block nesting
8296 <p><b>Bold paragraph</b>
8297 </p><p>New wiki paragraph
8301 # Original result was this:
8302 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8304 # While that might be marginally more intuitive, maybe, the six-apostrophe
8305 # construct is clearly pathological and the result stated here (which is what
8306 # the parser actually does) is about as reasonable as anything.
8308 Mixing markup for italics and bold
8311 '''bold''''''bold''bolditalics'''''
8313 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8321 Article for special page transclusion test
8325 Special page transclusion
8328 {{Special:Prefixindex/Xyzzyx}}
8330 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8335 Special page transclusion twice (bug 5021)
8338 {{Special:Prefixindex/Xyzzyx}}
8339 {{Special:Prefixindex/Xyzzyx}}
8341 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8342 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8347 Transclusion of default MediaWiki message
8349 {{MediaWiki:Mainpage}}
8356 Transclusion of nonexistent MediaWiki message
8358 {{MediaWiki:Mainpagexxx}}
8360 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8365 Transclusion of MediaWiki message with underscore
8367 {{MediaWiki:history_short}}
8374 Transclusion of MediaWiki message with space
8376 {{MediaWiki:history short}}
8383 Invalid header with following text
8393 Section extraction test (section 0)
8413 Section extraction test (section 1)
8435 Section extraction test (section 2)
8456 Section extraction test (section 3)
8476 Section extraction test (section 4)
8500 Section extraction test (section 5)
8520 Section extraction test (section 6)
8541 Section extraction test (section 7)
8561 Section extraction test (section 8)
8581 Section extraction test (section 9)
8602 Section extraction test (section 10)
8622 Section extraction test (nonexistent section 11)
8641 Section extraction test with bogus heading (section 1)
8646 ==bogus== not a legal section
8650 ==bogus== not a legal section
8654 Section extraction test with bogus heading (section 2)
8659 ==bogus== not a legal section
8666 Section extraction test with comment after heading (section 1)
8678 Section extraction test with comment after heading (section 2)
8690 Section extraction test with bogus <nowiki> heading (section 1)
8695 ==bogus== <nowiki>not a legal section</nowiki>
8699 ==bogus== <nowiki>not a legal section</nowiki>
8703 Section extraction test with bogus <nowiki> heading (section 2)
8708 ==bogus== <nowiki>not a legal section</nowiki>
8715 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8716 # instead of respecting commented sections
8718 Section extraction prefixed by comment (section 1)
8729 Section extraction prefixed by comment (section 2)
8740 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8741 # instead of respecting HTML-style headings
8743 Section extraction, mixed wiki and html (section 1)
8759 Section extraction, mixed wiki and html (section 2)
8775 # Formerly testing for bug 3342
8777 Section extraction, heading surrounded by <noinclude>
8781 <noinclude>==unmarked==</noinclude>
8787 # Test behaviour of bug 19910
8789 Sectiion with all-equals
8794 The line above must have a trailing space
8797 But just in case it doesn't...
8801 But just in case it doesn't...
8805 Section replacement test (section 0)
8836 Section replacement test (section 1)
8865 Section replacement test (section 2)
8895 Section replacement test (section 3)
8926 Section replacement test (section 4)
8953 Section replacement test (section 5)
8984 Section replacement test (section 6)
9014 Section replacement test (section 7)
9045 Section replacement test (section 8)
9076 Section replacement test (section 9)
9105 Section replacement test (section 10)
9135 Section replacement test with initial whitespace (bug 13728)
9139 Preformatted initial line
9143 Preformatted initial line
9150 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9162 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9175 Section extraction, <pre> around bogus header (bug 10309)
9192 Section replacement, <pre> around bogus header (bug 10309)
9194 noxml replace=2,"xxx"
9215 Handling of 
 in URLs
9219 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9226 5 quotes, code coverage +1 line
9233 Special:Search page linking.
9237 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9252 * {{SUBJECTPAGENAME}}
9253 * {{SUBJECTPAGENAMEE}}
9260 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9262 <ul><li> Parser test
9263 </li><li> Parser test
9264 </li><li> Parser test
9265 </li><li> Parser_test
9266 </li><li> Parser test
9267 </li><li> Parser_test
9268 </li><li> Talk:Parser test
9269 </li><li> Talk:Parser_test
9270 </li><li> Parser test
9271 </li><li> Parser_test
9278 </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>
9282 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9292 image4 |300px| centre
9293 image5.svg| http://///////
9298 <ul class="gallery">
9299 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9300 <div style="height: 150px;">Image1.png</div>
9301 <div class="gallerytext">
9304 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9305 <div style="height: 150px;">Image2.gif</div>
9306 <div class="gallerytext">
9311 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9312 <div style="height: 150px;">Image3</div>
9313 <div class="gallerytext">
9316 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9317 <div style="height: 150px;">Image4</div>
9318 <div class="gallerytext">
9323 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9324 <div style="height: 150px;">Image5.svg</div>
9325 <div class="gallerytext">
9326 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9330 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9331 <div style="height: 150px;">* image6</div>
9332 <div class="gallerytext">
9340 Gallery (with options)
9342 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9343 File:Nonexistant.jpg|caption
9344 File:Nonexistant.jpg
9345 image:foobar.jpg|some '''caption''' [[Main Page]]
9347 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9350 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9351 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9352 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9353 <div style="height: 70px;">Nonexistant.jpg</div>
9354 <div class="gallerytext">
9359 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9360 <div style="height: 70px;">Nonexistant.jpg</div>
9361 <div class="gallerytext">
9364 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9365 <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>
9366 <div class="gallerytext">
9367 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9371 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9372 <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>
9373 <div class="gallerytext">
9376 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9377 <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>
9378 <div class="gallerytext">
9388 Gallery with wikitext inside caption
9391 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9392 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9395 <ul class="gallery">
9396 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9397 <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>
9398 <div class="gallerytext">
9399 <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>
9403 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9404 <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>
9405 <div class="gallerytext">
9406 <p>This is a test template
9415 gallery (with showfilename option)
9417 <gallery showfilename>
9418 File:Nonexistant.jpg|caption
9419 File:Nonexistant.jpg
9420 image:foobar.jpg|some '''caption''' [[Main Page]]
9424 <ul class="gallery">
9425 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9426 <div style="height: 150px;">Nonexistant.jpg</div>
9427 <div class="gallerytext">
9428 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9433 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9434 <div style="height: 150px;">Nonexistant.jpg</div>
9435 <div class="gallerytext">
9436 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9440 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9441 <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>
9442 <div class="gallerytext">
9443 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9444 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9448 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9449 <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>
9450 <div class="gallerytext">
9451 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9460 Gallery (with namespace-less filenames)
9463 File:Nonexistant.jpg
9469 <ul class="gallery">
9470 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9471 <div style="height: 150px;">Nonexistant.jpg</div>
9472 <div class="gallerytext">
9475 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9476 <div style="height: 150px;">Nonexistant.jpg</div>
9477 <div class="gallerytext">
9480 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9481 <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>
9482 <div class="gallerytext">
9485 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9486 <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>
9487 <div class="gallerytext">
9495 HTML Hex character encoding (spells the word "JavaScript")
9497 JavaScript
9499 <p>JavaScript
9504 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9508 <p>&#xsee;&#XSEE;
9513 HTML Hex character encoding mixed case
9522 __FORCETOC__ override
9534 ISBN 978-0-1234-56 789
9536 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9541 ISBN followed by 5 spaces
9552 ISBN ISBN 1234567890
9554 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9559 Bug 22905: <abbr> followed by ISBN followed by </a>
9561 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9563 <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>
9572 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9577 Double RFC with a wiki link
9581 <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>
9590 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9595 Centre-aligned image
9597 [[Image:foobar.jpg|centre]]
9599 <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>
9606 [[Image:foobar.jpg|none]]
9608 <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>
9613 Width + Height sized image (using px) (height is ignored)
9615 [[Image:foobar.jpg|640x480px]]
9617 <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>
9622 Width-sized image (using px, no following whitespace)
9624 [[Image:foobar.jpg|640px]]
9626 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
9631 Width-sized image (using px, with following whitespace - test regression from r39467)
9633 [[Image:foobar.jpg|640px ]]
9635 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
9640 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9642 [[Image:foobar.jpg| 640px]]
9644 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
9649 Another italics / bold test
9657 # Note the results may be incorrect, as parserTest output included this:
9658 # XML error: Mismatched tag at byte 6120:
9659 # ...<dd> </dt></dl> </dd...
9667 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9678 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9680 Images with the "|" character in the comment
9682 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9684 <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>
9689 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9691 <html><script>alert(1);</script></html>
9693 <p><html><script>alert(1);</script></html>
9698 HTML with raw HTML ($wgRawHtml==true)
9702 <html><script>alert(1);</script></html>
9704 <p><script>alert(1);</script>
9709 Parents of subpages, one level up
9711 subpage title=[[Subpage test/L1/L2/L3]]
9715 <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>
9721 Parents of subpages, one level up, not named
9723 subpage title=[[Subpage test/L1/L2/L3]]
9727 <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>
9734 Parents of subpages, two levels up
9736 subpage title=[[Subpage test/L1/L2/L3]]
9742 <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
9743 </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>
9748 Parents of subpages, two levels up, without trailing slash or name.
9750 subpage title=[[Subpage test/L1/L2/L3]]
9759 Parents of subpages, two levels up, with lots of extra trailing slashes.
9761 subpage title=[[Subpage test/L1/L2/L3]]
9765 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9770 Definition list code coverage
9776 <dl><dt> title  </dt><dd> def
9777 </dd><dt> title </dt><dd> def
9778 </dd><dt>title</dt><dd> def
9784 Don't fall for the self-closing div
9786 <div>hello world</div/>
9788 <div>hello world</div>
9797 <p>[[:Template:Msg]]
9806 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9810 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9812 Always escape literal '>' in output, not just after '<'
9826 <p>This is a test template
9827 This is a test template
9839 Inclusion of !userCanEdit() content
9843 <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>
9849 Out-of-order TOC heading levels
9858 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9860 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9862 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9863 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9866 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9868 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9869 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9874 <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>
9875 <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>
9876 <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>
9877 <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>
9878 <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>
9879 <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>
9885 ISBN with a dummy number
9895 ISBN with space-delimited number
9899 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9905 ISBN with multiple spaces, no number
9924 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9925 </p><p>ISBN 12345678901
9931 ISBN with trailing year (bug 8110)
9933 ISBN 1-234-56789-0 - 2006
9935 ISBN 1 234 56789 0 - 2006
9937 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9938 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9946 {{anchorencode:foo bar©#%n}}
9948 <p>foo_bar.C2.A9.23.25n
9953 anchorencode trims spaces
9955 {{anchorencode: __pretty__please__}}
9962 anchorencode deals with links
9964 {{anchorencode: [[hello|world]] [[hi]]}}
9971 anchorencode deals with templates
9973 {{anchorencode: {{Foo}} }}
9980 anchorencode encodes like the TOC generator: (bug 18431)
9982 === _ +:.3A%3A&&]] ===
9983 {{anchorencode: _ +:.3A%3A&&]] }}
9986 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9987 <p>.2B:.3A.253A.26.26.5D.5D
9991 # Expected output in the following test is not necessarily expected (there
9992 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9993 # only testing for well-formedness.
9995 Bug 6200: blockquotes and paragraph formatting
10015 Bug 8293: Use of center tag ruins paragraph formatting
10037 ### Language variants related tests
10040 Self-link in language variants
10042 title=[[Dunav]] language=sr
10044 Both [[Dunav]] and [[Дунав]] are names for this river.
10046 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10052 Link to pages in language variants
10056 Main Page can be written as [[Маин Паге]]
10058 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10064 Multiple links to pages in language variants
10068 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10070 <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>.
10076 Simple template in language variants
10082 <p>This is a test template
10088 Template with explicit namespace in language variants
10094 <p>This is a test template
10100 Basic test for template parameter in language variants
10104 {{парамтест|param=foo}}
10106 <p>This is a test template with parameter foo
10112 Simple category in language variants
10116 [[Category:МедиаWики Усер'с Гуиде]]
10118 <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>
10123 Stripping -{}- tags (language variants)
10127 Latin proverb: -{Ne nuntium necare}-
10129 <p>Latin proverb: Ne nuntium necare
10135 Prevent conversion with -{}- tags (language variants)
10137 language=sr variant=sr-ec
10139 Latinski: -{Ne nuntium necare}-
10141 <p>Латински: Ne nuntium necare
10147 Prevent conversion of text with -{}- tags (language variants)
10149 language=sr variant=sr-ec
10151 Latinski: -{Ne nuntium necare}-
10153 <p>Латински: Ne nuntium necare
10159 Prevent conversion of links with -{}- tags (language variants)
10161 language=sr variant=sr-ec
10165 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10171 -{}- tags within headlines (within html for parserConvert())
10173 language=sr variant=sr-ec
10177 <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>
10183 Explicit definition of language variant alternatives
10185 language=zh variant=zh-tw
10187 -{zh:China;zh-tw:Taiwan}-, not China
10189 <p>Taiwan, not China
10195 Explicit session-wise language variant mapping (A flag and - flag)
10197 language=zh variant=zh-tw
10199 Taiwan is not China.
10200 But -{A|zh:China;zh-tw:Taiwan}- is China,
10201 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10202 and -{China}- is China.
10204 <p>Taiwan is not China.
10205 But Taiwan is Taiwan,
10206 (This should be stripped!)
10207 and China is China.
10212 Explicit session-wise language variant mapping (H flag for hide)
10214 language=zh variant=zh-tw
10216 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10219 <p>(This should be stripped!)
10225 Adding explicit conversion rule for title (T flag)
10227 language=zh variant=zh-tw showtitle
10229 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10232 <p>Should be stripped!
10237 Testing that changing the language variant here in the tests actually works
10239 language=zh variant=zh showtitle
10241 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10244 <p>Should be stripped!
10249 Bug 24072: more test on conversion rule for title
10251 language=zh variant=zh-tw showtitle
10253 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10254 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10257 <p>This should be stripped!
10258 This won't take interferes with the title rule.
10263 Raw output of variant escape tags (R flag)
10265 language=zh variant=zh-tw
10267 Raw: -{R|zh:China;zh-tw:Taiwan}-
10269 <p>Raw: zh:China;zh-tw:Taiwan
10274 Nested using of manual convert syntax
10276 language=zh variant=zh-hk
10278 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10280 <p>Nested: Hello Hong Kong!
10285 Do not convert roman numbers to language variants
10287 language=sr variant=sr-ec
10291 <p>Фридрих IV је цар.
10296 Unclosed language converter markup "-{"
10307 Don't convert raw rule "-{R|=>}-" to "=>"
10324 Bug 529: Uncovered bullet
10334 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10335 # Templates in Wikipedia rely on this behavior, as tidy has always been
10336 # enabled there. These tests are normally run *without* tidy, so specify the
10337 # full output here.
10338 # To test realistic parsing behavior, apply a tidy-like transformation to both
10339 # the expected output and your parser's output.
10341 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10343 ******* Foo {{bullet}}
10345 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10358 Bug 529: Uncovered table already at line-start
10381 Bug 529: Uncovered bullet in parser function result
10383 * Foo {{lc:{{bullet}} }}
10392 Bug 5678: Double-parsed template argument
10394 {{lc:{{{1}}}|hello}}
10401 Bug 5678: Double-parsed template invocation
10403 {{lc:{{paramtest {{!}} param = hello }} }}
10405 <p>{{paramtest | param = hello }}
10410 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10413 title=[[Main Page]]
10415 {{PRVNÍVELKÉ:ěščř}}
10416 {{prvnívelké:ěščř}}
10436 Morwen/13: Unclosed link followed by heading
10443 <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>
10448 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10455 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10460 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10467 <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>
10482 Paragraphs inside divs (no extra line breaks)
10494 Paragraphs inside divs (extra line break on open)
10509 Paragraphs inside divs (extra line break on close)
10524 Paragraphs inside divs (extra line break on open and close)
10541 Nesting tags, paragraphs on lines which begin with <div>
10545 <div></div><strong>A
10554 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10556 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10560 <blockquote>Line one
10562 Line two</blockquote>
10564 <blockquote>Line one
10565 Line two</blockquote>
10570 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10577 Line two</blockquote>
10582 Line two</blockquote>
10587 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10591 <blockquote>Line one
10596 <blockquote>Line one
10604 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10623 Paragraphs inside blockquotes/divs (no extra line breaks)
10625 <blockquote><div>Line one
10627 Line two</div></blockquote>
10629 <blockquote><div>Line one
10630 Line two</div></blockquote>
10635 Paragraphs inside blockquotes/divs (extra line break on open)
10640 Line two</div></blockquote>
10645 Line two</div></blockquote>
10650 Paragraphs inside blockquotes/divs (extra line break on close)
10652 <blockquote><div>Line one
10655 </div></blockquote>
10657 <blockquote><div>Line one
10660 </div></blockquote>
10665 Paragraphs inside blockquotes/divs (extra line break on open and close)
10671 </div></blockquote>
10677 </div></blockquote>
10682 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10684 wgLinkHolderBatchSize=0
10690 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10691 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10692 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10697 Free external link invading image caption
10699 [[Image:Foobar.jpg|thumb|http://x|hello]]
10701 <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>
10706 Bug 15196: localised external link numbers
10710 [http://en.wikipedia.org/]
10712 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10717 Multibyte character in padleft
10719 {{padleft:-Hello|7|Æ}}
10726 Multibyte character in padright
10728 {{padright:Hello-|7|Æ}}
10737 wgUseDynamicDates=1
10741 <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>
10746 formatdate parser function
10748 {{#formatdate:2009-03-24}}
10750 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10755 formatdate parser function, with default format
10757 {{#formatdate:2009-03-24|mdy}}
10759 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10764 Linked date with autoformatting disabled
10766 wgUseDynamicDates=false
10770 <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>
10775 Spacing of numbers in formatted dates
10777 {{#formatdate:January 15}}
10779 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10784 Spacing of numbers in formatted dates (linked)
10786 wgUseDynamicDates=true
10790 <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>
10795 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
10797 language=nl title=[[MediaWiki:Common.css]]
10799 {{#formatdate:2009-03-24|dmy}}
10801 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10814 Edit comment with link
10818 I like the [[Main Page]] a lot
10820 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10824 Edit comment with link and link text
10828 I like the [[Main Page|best pages]] a lot
10830 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10834 Edit comment with link and link text with suffix
10838 I like the [[Main Page|best page]]s a lot
10840 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10844 Edit comment with section link (non-local, eg in history list)
10846 comment title=[[Main Page]]
10848 /* External links */ removed bogus entries
10850 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10854 Edit comment with section link and text before it (non-local, eg in history list)
10856 comment title=[[Main Page]]
10858 pre-comment text /* External links */ removed bogus entries
10860 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>
10864 Edit comment with section link (local, eg in diff view)
10866 comment local title=[[Main Page]]
10868 /* External links */ removed bogus entries
10870 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10874 Edit comment with subpage link (bug 14080)
10878 title=[[Subpage test]]
10880 Poked at a [[/subpage]] here...
10882 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10886 Edit comment with subpage link and link text (bug 14080)
10890 title=[[Subpage test]]
10892 Poked at a [[/subpage|neat little page]] here...
10894 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10898 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10901 title=[[Subpage test]]
10903 Poked at a [[/subpage]] here...
10905 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10909 Edit comment with bare anchor link (local, as on diff)
10913 title=[[Main Page]]
10917 <a href="#section">#section</a>
10921 Edit comment with bare anchor link (non-local, as on history)
10924 title=[[Main Page]]
10928 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10932 Anchor starting with underscore
10936 <p><a href="#_ref">One</a>
10941 Id starting with underscore
10943 <div id="_ref"></div>
10945 <div id="_ref"></div>
10950 Space normalisation on autocomment (bug 22784)
10953 title=[[Main Page]]
10955 /* __hello__world__ */
10957 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10961 percent-encoding and + signs in comments (Bug 26410)
10965 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10967 <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>
10971 Bad images - basic functionality
10980 Bad images - bug 16039: text after bad image disappears
10994 Verify that displaytitle works (bug #22501) no displaytitle
10998 wgAllowDisplayTitle=true
10999 wgRestrictDisplayTitle=false
11001 this is not the the title
11004 <p>this is not the the title
11009 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11014 wgAllowDisplayTitle=true
11015 wgRestrictDisplayTitle=false
11017 this is not the the title
11018 {{DISPLAYTITLE:whatever}}
11021 <p>this is not the the title
11026 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11031 wgAllowDisplayTitle=true
11032 wgRestrictDisplayTitle=true
11034 this is not the the title
11035 {{DISPLAYTITLE:whatever}}
11038 <p>this is not the the title
11043 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11048 wgAllowDisplayTitle=true
11049 wgRestrictDisplayTitle=true
11051 this is not the the title
11052 {{DISPLAYTITLE:screen}}
11055 <p>this is not the the title
11060 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11065 wgAllowDisplayTitle=false
11067 this is not the the title
11068 {{DISPLAYTITLE:screen}}
11071 <p>this is not the the title
11072 <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>
11077 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11082 wgAllowDisplayTitle=false
11084 this is not the the title
11087 <p>this is not the the title
11092 preload: check <noinclude> and <includeonly>
11096 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11102 preload: check <onlyinclude>
11106 Goodbye <onlyinclude>Hello world</onlyinclude>
11112 preload: can pass tags through if we want to
11116 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11118 <includeonly>Hello world</includeonly>
11122 preload: check that it doesn't try to do tricks
11126 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11128 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11132 Play a bit with r67090 and bug 3158
11136 <div style="width:50% !important"> </div>
11137 <div style="width:50% !important"> </div>
11138 <div style="width:50% !important"> </div>
11139 <div style="border : solid;"> </div>
11141 <div style="width:50% !important"> </div>
11142 <div style="width:50% !important"> </div>
11143 <div style="width:50% !important"> </div>
11144 <div style="border : solid;"> </div>
11149 HTML5 data attributes
11151 <span data-foo="bar">Baz</span>
11152 <p data-abc-def_hij="">Quuz</p>
11154 <p><span data-foo="bar">Baz</span>
11156 <p data-abc-def_hij="">Quuz</p>
11161 percent-encoding and + signs in internal links (Bug 26410)
11163 [[User:+%]] [[Page+title%]]
11164 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11165 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11166 [[%33%45]] [[%33%45+]]
11168 <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>
11169 <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>
11170 <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>
11171 <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>
11176 Special characters in embedded file links (bug 27679)
11178 [[File:Contains & ampersand.jpg]]
11179 [[File:Does not exist.jpg|Title with & ampersand]]
11181 <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>
11182 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11188 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11190 Text's been normalized?
11192 <p>Text's been normalized?
11197 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11199 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11201 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11206 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11208 [http://www.example.org/ ideograms]
11210 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11215 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11217 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11219 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11243 Bug 31098 Template which includes system messages which includes the template
11247 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11248 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11253 Deprecated presentational attributes are converted to css
11256 | valign=top align=left width=100 height=25% | Asdf
11258 <ul type="disc"></ul>
11262 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11264 <ul style="list-style-type: disc;"></ul>
11269 Bug31490 Turkish: ucfirst 'blah'
11280 Bug31490 Turkish: ucfirst 'ix'
11291 Bug31490 Turkish: lcfirst 'BLAH'
11302 Bug31490 Turkish: ucfırst (with a dotless i)
11308 <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>
11313 Bug31490 ucfırst (with a dotless i) with English language
11319 <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>
11324 Bug 26375: TOC with italics
11326 title=[[Main Page]]
11329 == ''Lost'' episodes ==
11331 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11333 <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>
11336 <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>
11341 Bug 26375: TOC with bold
11343 title=[[Main Page]]
11346 == '''should be bold''' then normal text ==
11348 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11350 <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>
11353 <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>
11358 Bug 33845: Headings become cursive in TOC when they contain an image
11360 title=[[Main Page]]
11363 == Image [[Image:foobar.jpg]] ==
11365 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11367 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11370 <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>
11375 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11377 title=[[Main Page]]
11380 == <blockquote>Quote</blockquote> ==
11382 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11384 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11387 <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>
11392 Unclosed tags in TOC
11394 title=[[Main Page]]
11398 <small>Hanc marginis exiguitas non caperet.</small>
11401 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11403 <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>
11406 <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>
11407 <p><small>Hanc marginis exiguitas non caperet.</small>
11413 Multiple tags in TOC
11416 == <i>Foo</i> <b>Bar</b> ==
11418 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11420 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11422 <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>
11423 <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>
11426 <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>
11427 <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>
11432 Tags with parameters in TOC
11435 == <sup class="in-h2">Hello</sup> ==
11437 == <sup class="a > b">Evilbye</sup> ==
11439 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11441 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11442 <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>
11445 <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>
11446 <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>
11451 span tags with directionality in TOC
11454 == <span dir="ltr">C++</span> ==
11456 == <span dir="rtl">זבנג!</span> ==
11458 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11460 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11462 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11464 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11466 <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>
11467 <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>
11468 <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>
11469 <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>
11470 <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>
11473 <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>
11474 <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>
11475 <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>
11476 <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>
11477 <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>
11484 == {{int:headline_sample}} ==
11488 Bug 32057: Title needed when expanding <h> nodes.
11490 title=[[Main Page]]
11494 <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>
11499 Strip marker in urlencode
11501 {{urlencode:x<nowiki/>y}}
11502 {{urlencode:x<nowiki/>y|wiki}}
11503 {{urlencode:x<nowiki/>y|path}}
11530 Strip marker in formatNum
11532 {{formatnum:1<nowiki/>2}}
11533 {{formatnum:1<nowiki/>2|R}}
11541 Strip marker in grammar
11545 {{grammar:elative|foo<nowiki/>bar}}
11552 Strip marker in padleft
11554 {{padleft:|2|x<nowiki/>y}}
11561 Strip marker in padright
11563 {{padright:|2|x<nowiki/>y}}
11570 Strip marker in anchorencode
11572 {{anchorencode:x<nowiki/>y}}
11579 nowiki inside link inside heading (bug 18295)
11581 ==[[foo|x<nowiki>y</nowiki>z]]==
11583 <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>
11588 new support for bdi element (bug 31817)
11590 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11592 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11597 Ignore pipe between table row attributes
11601 |- id=foo | style='color: red'
11609 <tr id="foo" style="color: red">
11616 Gallery override link with WikiLink (bug 34852)
11619 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11622 <ul class="gallery">
11623 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11624 <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>
11625 <div class="gallerytext">
11635 Gallery override link with absolute external link (bug 34852)
11638 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11641 <ul class="gallery">
11642 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11643 <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>
11644 <div class="gallerytext">
11654 Gallery override link with malicious javascript (bug 34852)
11657 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11660 <ul class="gallery">
11661 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11662 <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>
11663 <div class="gallerytext">
11673 Language parser function
11682 Padleft and padright as substr
11684 {{padleft:|3|abcde}}
11685 {{padright:|3|abcde}}
11693 Bug 34939 - Case insensitive link parsing ([HttP://])
11695 [HttP://MediaWiki.Org/]
11697 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11702 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11704 [HttP://MediaWiki.Org/ MediaWiki]
11706 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11711 Bug 34939 - Case insensitive link parsing (HttP://)
11713 HttP://MediaWiki.Org/
11715 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11720 ### Parsoids-specific tests
11721 ### Parsoid-PHP parser incompatibilities
11724 1. SOL-sensitive wikitext tokens as template-args
11738 #### The following section of tests are primarily to test
11739 #### wikitext escaping capabilities of Parsoid.
11740 #### A lot of the tests are disabled for the PHP parser either
11741 #### because of minor newline diffs or other reasons.
11742 #### As Parsoid serializer can handle newlines and other HTML
11743 #### more robustly, some of these tests might get reenabled
11744 #### for the PHP parser.
11746 #### --------------- Headings ---------------
11748 #### 1. Nested inside html <h1>=foo=</h1>
11749 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11750 #### 3. Nested inside html with wikitext split by html tags
11751 #### 4. No escape needed
11752 #### 5. Empty headings <h1></h1>
11753 #### 6. Heading chars in SOL context
11754 #### ----------------------------------------
11756 Headings: 0. Unnested
11758 <nowiki>=foo=</nowiki>
11760 <nowiki>=foo</nowiki>''a''=
11763 </p><p>=foo<i>a</i>=
11768 Headings: 1. Nested inside html
11772 =<nowiki>=foo=</nowiki>=
11773 ==<nowiki>=foo=</nowiki>==
11774 ===<nowiki>=foo=</nowiki>===
11775 ====<nowiki>=foo=</nowiki>====
11776 =====<nowiki>=foo=</nowiki>=====
11777 ======<nowiki>=foo=</nowiki>======
11788 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11793 <nowiki>*bar</nowiki>
11797 <nowiki>=bar=</nowiki>
11805 Headings: 3. Nested inside html with wikitext split by html tags
11809 =<nowiki>=</nowiki>'''bold'''foo==
11811 <h1>=<b>bold</b>foo=</h1>
11815 Headings: 4. No escaping needed (testing just h1 and h2)
11830 <h1><i>=</i>foo=</h1>
11835 Headings: 5. Empty headings
11839 =<nowiki></nowiki>=
11840 ==<nowiki></nowiki>==
11841 ===<nowiki></nowiki>===
11842 ====<nowiki></nowiki>====
11843 =====<nowiki></nowiki>=====
11844 ======<nowiki></nowiki>======
11855 Headings: 6. Heading chars in SOL context
11859 <!--cmt--><nowiki>=h1=</nowiki>
11865 #### --------------- Lists ---------------
11866 #### 0. Outside nests (*foo, etc.)
11867 #### 1. Nested inside html <ul><li>*foo</li></ul>
11868 #### 2. Inside definition lists
11869 #### 3. Only bullets at start should be escaped
11870 #### 4. No escapes needed
11871 #### 5. No unnecessary escapes
11872 #### 6. Escape bullets in SOL position
11873 #### 7. Escape bullets in a multi-line context
11874 #### ----------------------------------------
11877 Lists: 0. Outside nests
11879 <nowiki>*foo</nowiki>
11881 <nowiki>#foo</nowiki>
11889 Lists: 1. Nested inside html
11891 *<nowiki>*foo</nowiki>
11893 *<nowiki>#foo</nowiki>
11895 *<nowiki>:foo</nowiki>
11897 *<nowiki>;foo</nowiki>
11899 #<nowiki>*foo</nowiki>
11901 #<nowiki>#foo</nowiki>
11903 #<nowiki>:foo</nowiki>
11905 #<nowiki>;foo</nowiki>
11927 Lists: 2. Inside definition lists
11929 ;<nowiki>;foo</nowiki>
11931 ;<nowiki>:foo</nowiki>
11933 ;<nowiki>:foo</nowiki>
11936 :<nowiki>:foo</nowiki>
11951 Lists: 3. Only bullets at start of text should be escaped
11953 *<nowiki>*foo*bar</nowiki>
11955 *<nowiki>*foo</nowiki>''it''*bar
11959 <ul><li>*foo<i>it</i>*bar
11965 Lists: 4. No escapes needed
11977 <ul><li><i>foo</i>*bar
11979 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
11984 Lists: 5. No unnecessary escapes
11986 * bar <span><nowiki>[[foo]]</nowiki></span>
11988 *=bar <span><nowiki>[[foo]]</nowiki></span>
11990 *[[bar <span><nowiki>[[foo]]</nowiki></span>
11992 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
11994 *=bar <span>foo]]</span>=
11996 <ul><li> bar <span>[[foo]]</span>
11998 <ul><li>=bar <span>[[foo]]</span>
12000 <ul><li>[[bar <span>[[foo]]</span>
12002 <ul><li>]]bar <span>[[foo]]</span>
12004 <ul><li>=bar <span>foo]]</span>=
12010 Lists: 6. Escape bullets in SOL position
12014 <!--cmt--><nowiki>*foo</nowiki>
12021 Lists: 7. Escape bullets in a multi-line context
12031 #### --------------- HRs ---------------
12032 #### 1. Single line
12033 #### -----------------------------------
12036 HRs: 1. Single line
12041 <nowiki>----</nowiki>
12043 <nowiki>=foo=</nowiki>
12045 <nowiki>*foo</nowiki>
12052 #### --------------- Tables ---------------
12053 #### 1a. Simple example
12054 #### 1b. No escaping needed (!foo)
12055 #### 1c. No escaping needed (|foo)
12056 #### 1d. No escaping needed (|}foo)
12058 #### 2a. Nested in td (<td>foo|bar</td>)
12059 #### 2b. Nested in td (<td>foo||bar</td>)
12060 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12062 #### 3a. Nested in th (<th>foo!bar</th>)
12063 #### 3b. Nested in th (<th>foo!!bar</th>)
12064 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12068 #### 4c. No escaping needed
12069 #### --------------------------------------
12072 Tables: 1a. Simple example
12083 Tables: 1b. No escaping needed
12092 Tables: 1c. No escaping needed
12101 Tables: 1d. No escaping needed
12110 Tables: 2a. Nested in td
12115 |<nowiki>foo|bar</nowiki>
12125 Tables: 2b. Nested in td
12130 |<nowiki>foo||bar</nowiki>
12131 |''it''<nowiki>foo||bar</nowiki>
12136 </td><td><i>it</i>foo||bar
12142 Tables: 2c. Nested in td -- no escaping needed
12157 Tables: 3a. Nested in th
12172 Tables: 3b. Nested in th
12177 !<nowiki>foo!!bar</nowiki>
12187 Tables: 3c. Nested in th -- no escaping needed
12202 Tables: 4a. Escape -
12210 |<nowiki>-bar</nowiki>
12214 <tr><th>-bar</th></tr>
12215 <tr><td>-bar</td></tr>
12220 Tables: 4b. Escape +
12228 |<nowiki>+bar</nowiki>
12232 <tr><th>+bar</th></tr>
12233 <tr><td>+bar</td></tr>
12238 Tables: 4c. No escaping needed
12252 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12253 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12257 #### --------------- Links ---------------
12258 #### 1. Quote marks in link text
12259 #### 2. Wikilinks: Escapes needed
12260 #### 3. Wikilinks: No escapes needed
12261 #### 4. Extlinks: Escapes needed
12262 #### 5. Extlinks: No escapes needed
12263 #### --------------------------------------
12265 Links 1. Quote marks in link text
12269 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12271 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12275 Links 2. WikiLinks: Escapes needed
12279 [[Foo|<nowiki>[Foobar]</nowiki>]]
12280 [[Foo|<nowiki>Foobar]</nowiki>]]
12281 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12282 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12283 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12284 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12285 [[Foo|<nowiki>|Bar</nowiki>]]
12287 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12288 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12289 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12290 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12291 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12292 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12293 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12297 Links 3. WikiLinks: No escapes needed
12304 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12305 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12309 Links 4. ExtLinks: Escapes needed
12313 [http://google.com <nowiki>[google]</nowiki>]
12314 [http://google.com <nowiki>google]</nowiki>]
12316 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12317 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12321 Links 5. ExtLinks: No escapes needed
12325 [http://google.com [google]
12327 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12330 #### --------------- Quotes ---------------
12331 #### 1. Quotes inside <b> and <i>
12332 #### 2. Link fragments separated by <i> and <b> tags
12333 #### 3. Link fragments inside <i> and <b>
12334 #### --------------------------------------
12336 1. Quotes inside <b> and <i>
12338 ''<nowiki>'foo'</nowiki>''
12339 ''<nowiki>''foo''</nowiki>''
12340 ''<nowiki>'''foo'''</nowiki>''
12341 '''<nowiki>'foo'</nowiki>'''
12342 '''<nowiki>''foo''</nowiki>'''
12343 '''<nowiki>'''foo'''</nowiki>'''
12344 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12352 <b>foo'<i>bar'</i>baz</b>
12357 2. Link fragments separated by <i> and <b> tags
12359 [[''foo''<nowiki>hello]]</nowiki>
12361 [['''foo'''<nowiki>hello]]</nowiki>
12363 <p>[[<i>foo</i>hello]]
12364 </p><p>[[<b>foo</b>hello]]
12369 2. Link fragments inside <i> and <b>
12370 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12371 this is one of the shortcomings of this format)
12373 ''[[foo''<nowiki>]]</nowiki>
12375 '''[[foo'''<nowiki>]]</nowiki>
12378 </p><p><b>[[foo</b>]]
12382 #### --------------- Paragraphs ---------------
12383 #### 1. No unnecessary escapes
12384 #### --------------------------------------
12387 1. No unnecessary escapes
12389 bar <span><nowiki>[[foo]]</nowiki></span>
12391 =bar <span><nowiki>[[foo]]</nowiki></span>
12393 [[bar <span><nowiki>[[foo]]</nowiki></span>
12395 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12397 <nowiki>=bar </nowiki><span>foo]]</span>=
12399 <p>bar <span>[[foo]]</span>
12400 </p><p>=bar <span>[[foo]]</span>
12401 </p><p>[[bar <span>[[foo]]</span>
12402 </p><p>]]bar <span>[[foo]]</span>
12403 </p><p>=bar <span>foo]]</span>=
12407 #### --------------- PRE ------------------
12408 #### 1. Leading space in SOL context should be escaped
12409 #### --------------------------------------
12411 1. Leading space in SOL context should be escaped
12415 <nowiki> foo</nowiki>
12416 <!--cmt--><nowiki> foo</nowiki>
12423 #### --------------- HTML tags ---------------
12426 #### 3. multi-line html tag
12427 #### --------------------------------------
12433 <a href="http://google.com">google</a>
12435 <a href="http://google.com">google</a>
12441 <nowiki><div>foo</div>
12442 <div style="color:red">foo</div></nowiki>
12444 <p><div>foo</div>
12445 <div style="color:red">foo</div>
12450 3. multi-line html tag
12462 #### --------------- Others ---------------
12466 <nowiki>foo</nowiki>
12468 <p><nowiki>foo</nowiki>
12477 Try for 100% code coverage