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
99 Template:table_attribs
102 |</noinclude>style="color: red"| Foo
118 This is a simple paragraph.
120 <p>This is a simple paragraph.
125 Paragraphs with extra newline spacing
163 * plain''italic''plain
164 * plain''italic''plain''italic''plain
165 * plain'''bold'''plain
166 * plain'''bold'''plain'''bold'''plain
167 * plain''italic''plain'''bold'''plain
168 * plain'''bold'''plain''italic''plain
169 * plain''italic'''bold-italic'''italic''plain
170 * plain'''bold''bold-italic''bold'''plain
171 * plain'''''bold-italic'''italic''plain
172 * plain'''''bold-italic''bold'''plain
173 * plain''italic'''bold-italic'''''plain
174 * plain'''bold''bold-italic'''''plain
175 * plain l'''italic''plain
176 * plain l''''bold''' plain
179 </li><li> plain<i>italic</i>plain
180 </li><li> plain<i>italic</i>plain<i>italic</i>plain
181 </li><li> plain<b>bold</b>plain
182 </li><li> plain<b>bold</b>plain<b>bold</b>plain
183 </li><li> plain<i>italic</i>plain<b>bold</b>plain
184 </li><li> plain<b>bold</b>plain<i>italic</i>plain
185 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
186 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
187 </li><li> plain<i><b>bold-italic</b>italic</i>plain
188 </li><li> plain<b><i>bold-italic</i>bold</b>plain
189 </li><li> plain<i>italic<b>bold-italic</b></i>plain
190 </li><li> plain<b>bold<i>bold-italic</i></b>plain
191 </li><li> plain l'<i>italic</i>plain
192 </li><li> plain l'<b>bold</b> plain
198 ### 2-quote opening sequence tests
201 Italics and bold: 2-quote opening sequence: (2,2)
211 Italics and bold: 2-quote opening sequence: (2,3)
221 Italics and bold: 2-quote opening sequence: (2,4)
231 Italics and bold: 2-quote opening sequence: (2,5)
241 ### 3-quote opening sequence tests
245 Italics and bold: 3-quote opening sequence: (3,2)
255 Italics and bold: 3-quote opening sequence: (3,3)
265 Italics and bold: 3-quote opening sequence: (3,4)
275 Italics and bold: 3-quote opening sequence: (3,5)
285 ### 4-quote opening sequence tests
289 Italics and bold: 4-quote opening sequence: (4,2)
299 Italics and bold: 4-quote opening sequence: (4,3)
309 Italics and bold: 4-quote opening sequence: (4,4)
319 Italics and bold: 4-quote opening sequence: (4,5)
329 ### 5-quote opening sequence tests
333 Italics and bold: 5-quote opening sequence: (5,2)
343 Italics and bold: 5-quote opening sequence: (5,3)
353 Italics and bold: 5-quote opening sequence: (5,4)
357 <p><i><b>foo'</b></i>
363 Italics and bold: 5-quote opening sequence: (5,5)
372 ### multiple quote sequences in a line
375 Italics and bold: multiple quote sequences: (2,4,2)
379 <p><i>foo'<b>bar</b></i>
385 Italics and bold: multiple quote sequences: (2,4,3)
389 <p><i>foo'<b>bar</b></i>
395 Italics and bold: multiple quote sequences: (2,4,4)
399 <p><i>foo'<b>bar'</b></i>
405 Italics and bold: multiple quote sequences: (3,4,2)
415 Italics and bold: multiple quote sequences: (3,4,3)
424 ### other quote tests
427 Italics and bold: other quote tests: (2,3,5)
429 ''this is about '''foo's family'''''
431 <p><i>this is about <b>foo's family</b></i>
437 Italics and bold: other quote tests: (2,(3,3),2)
439 ''this is about '''foo's''' family''
441 <p><i>this is about <b>foo's</b> family</i>
447 Italics and bold: other quote tests: (3,2,3,2)
449 '''this is about ''foo'''s family''
451 <p><b>this is about <i>foo</i></b><i>s family</i>
457 Italics and bold: other quote tests: (3,2,3,3)
459 '''this is about ''foo'''s family'''
461 <p>'<i>this is about </i>foo<b>s family</b>
468 Italics and bold: other quote tests: (3,(2,2),3)
470 '''this is about ''foo's'' family'''
472 <p><b>this is about <i>foo's</i> family</b>
477 ### <nowiki> test cases
481 <nowiki> unordered list
483 <nowiki>* This is not an unordered list item.</nowiki>
485 <p>* This is not an unordered list item.
492 <nowiki>Lorem ipsum dolor
513 :There is not nowiki.
514 :There is <nowiki>nowiki</nowiki>.
516 #There is not nowiki.
517 #There is <nowiki>nowiki</nowiki>.
519 *There is not nowiki.
520 *There is <nowiki>nowiki</nowiki>.
522 <dl><dd>There is not nowiki.
523 </dd><dd>There is nowiki.
525 <ol><li>There is not nowiki.
526 </li><li>There is nowiki.
528 <ul><li>There is not nowiki.
529 </li><li>There is nowiki.
541 <!-- comment 1 --> asdf
543 <!-- comment 1 --> asdf
546 <!-- comment 1 --> asdf
547 <!-- comment 2 -->xyz
549 <!-- comment 1 --> asdf
550 <!-- comment 2 --> xyz
606 asdf<!-- comment 1 -->jkl
616 <!-- foo --> b <!-- bar -->
630 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
636 Comment semantics and delimiters
638 <!-- --><!----><!-----><!------>
644 Comment semantics and delimiters, redux
646 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
647 -- foo -- funky huh? ... -->
653 Comment semantics and delimiters: directors cut
655 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
656 everything starting with < followed by !-- until the first -- and > we see,
657 that wouldn't be valid XML however, since in XML -- has to terminate a comment
665 Comment semantics: nesting
667 <!--<!-- no, we're not going to do anything fancy here -->-->
674 Comment semantics: unclosed comment at end
676 <!--This comment will run out to the end of the document
682 Comment in template title
691 Comment on its own line post-expand
703 Comment on its own line post-expand with non-significant whitespace
715 ### paragraph wraping tests
729 Block tag on one line
741 Block tag on both lines
753 Multiple lines without block tags
771 ### Preformatted text
780 And a [[Main Page|link]]
786 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
791 Ident preformatting with inline content
802 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
819 Regression with preformatted in <center>
832 # Expected output in the following test is not really expected (there should be
833 # <pre> in the output) -- it's only testing for well-formedness.
835 Bug 6200: Preformatted in <blockquote>
848 <pre> with attributes (bug 3202)
850 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
852 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
857 <pre> with width attribute (bug 3202)
859 <pre width="8">Narrow screen goodies</pre>
861 <pre width="8">Narrow screen goodies</pre>
866 <pre> with forbidden attribute (bug 3202)
868 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
870 <pre width="8">Narrow screen goodies</pre>
875 <pre> with forbidden attribute values (bug 3202)
877 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
879 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
884 <nowiki> inside <pre> (bug 13238)
892 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
900 <pre><nowiki>Foo</nowiki></pre>
905 <nowiki> and <pre> preference (first one wins)
938 <nowiki></pre></nowiki>
945 Templates: Pre: 1a. Templates that break a line should suppress <pre>
953 Templates: Pre: 1b. Templates that break a line should suppress <pre>
963 Templates: Pre: 1c: Wrapping should be based on expanded content
975 Templates: Pre: 1d: Wrapping should be based on expanded content
996 Templates: Pre: 1e. Wrapping should be based on expanded content
1000 {{echo| foo}}{{echo| bar}}
1005 {{echo|<!--cmt--> foo}}
1007 <!--cmt-->{{echo| foo}}
1009 {{echo|{{echo| }}bar}}
1027 Templates: Pre: 1f: Wrapping should be based on expanded content
1064 Templates: Single-line variant of parameter whitespace stripping test
1070 {{echo|{{echo| a}}}}
1072 {{echo|1={{echo| a}}}}
1085 Templates: Strip whitespace from named parameters, but not positional ones
1113 ### Parsoid-centric tests for testing RT edge cases for pre
1117 1a. Pre and Comments
1130 1b. Pre and Comments
1143 1c. Pre and Comments
1193 3a. Pre and block tags (single-line html)
1201 <pre><span> foo </span>
1206 3b. Pre and block tags (pre-content on separate line)
1258 4. Multiple spaces at start-of-line
1277 ### Definition lists
1284 <dl><dt> name </dt><dd> Definition
1290 Definition list for indentation only
1294 <dl><dd> Indented text
1300 Definition list with no space
1304 <dl><dt>name</dt><dd>Definition
1310 Definition list with URL link
1312 ; http://example.com/ : definition
1314 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1320 Definition list with bracketed URL link
1322 ;[http://www.example.com/ Example]:Something about it
1324 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1330 Definition list with wikilink containing colon
1332 ; [[Help:FAQ]]: The least-read page on Wikipedia
1334 <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
1339 # At Brion's and JeLuF's insistence... :)
1341 Definition list with news link containing colon
1343 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1345 <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!
1351 Malformed definition list with colon
1353 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1355 <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
1361 Definition lists: colon in external link text
1363 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1365 <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
1371 Definition lists: colon in HTML attribute
1373 ;<b style="display: inline">bold</b>
1375 <dl><dt><b style="display: inline">bold</b>
1381 Definition lists: self-closed tag
1383 ;one<br/>two : two-line fun
1385 <dl><dt>one<br />two </dt><dd> two-line fun
1391 Bug 11748: Literal closing tags
1395 <dd>test test test test test</dd>
1397 <dd>test test test test test</dd>
1402 <dd>test test test test test</dd>
1404 <dd>test test test test test</dd>
1410 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1413 ; term : description
1419 <dl><dt> term </dt><dd> description
1430 Definition list with empty definition and following paragraph
1435 <dl><dt> term</dt><dd>
1442 Nested definition lists using html syntax
1459 Definition Lists: No nesting: Multiple dd's
1473 Definition Lists: Indentation: Regular
1489 Definition Lists: Indentation: Missing 1st level
1503 Definition Lists: Indentation: Multi-level indent
1507 <dl><dd><dl><dd><dl><dd>i3
1515 Definition Lists: Hacky use to indent tables
1522 should be left alone
1524 <dl><dd><dl><dd><table>
1529 </td></tr></table></dd></dl></dd></dl>
1531 should be left alone
1534 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1535 ## as an empty dt item. It also ignores all but the last ";" when followed
1536 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1537 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1540 ## Ex: ";;t2 ::d2" is transformed into:
1552 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1553 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1564 ## All Parsoid only definition list tests have this difference.
1566 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1567 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1570 Definition Lists: Nesting: Multi-level (Parsoid only)
1600 Definition Lists: Nesting: Test 2 (Parsoid only)
1620 Definition Lists: Nesting: Test 3 (Parsoid only)
1648 Definition Lists: Nesting: Test 4
1653 <dl><dd><dl><dd><dl><dt>t3
1663 Definition Lists: Mixed Lists: Test 1
1669 <dl><dd><dl><dt><ul><li> foo
1681 Definition Lists: Mixed Lists: Test 2
1695 Definition Lists: Mixed Lists: Test 3
1700 <ul><li><dl><dd><dl><dd><dl><dd> d1
1711 Definition Lists: Mixed Lists: Test 4
1716 <ul><li><dl><dt>d1 </dt><dd>d2
1717 </dd><dt>d3 </dt><dd>d4
1725 Definition Lists: Mixed Lists: Test 5
1740 Definition Lists: Mixed Lists: Test 6
1745 <ol><li><ul><li><dl><dd>d1
1757 Definition Lists: Mixed Lists: Test 7
1771 Definition Lists: Mixed Lists: Test 8
1787 Definition Lists: Mixed Lists: Test 9
1791 <ul><li><dl><dt>foo </dt><dd>bar
1799 Definition Lists: Mixed Lists: Test 10
1803 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1812 Definition Lists: Mixed Lists: Test 11
1817 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1822 <dl><dt>boo </dt><dd>baz
1833 Definition Lists: Weird Ones: Test 1
1835 *#;*::;; foo : bar (who uses this?)
1837 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1853 External links: non-bracketed
1855 Non-bracketed: http://example.com
1857 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1862 External links: numbered
1864 Numbered: [http://example.com]
1865 Numbered: [http://example.net]
1866 Numbered: [http://example.com]
1868 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1869 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1870 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1875 External links: specified text
1877 Specified text: [http://example.com link]
1879 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1884 External links: trail
1886 Linktrails should not work for external links: [http://example.com link]s
1888 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1893 External links: dollar sign in URL
1895 http://example.com/1$2345
1897 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1902 External links: dollar sign in URL (named)
1904 [http://example.com/1$2345]
1906 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1911 External links: open square bracket forbidden in URL (bug 4377)
1913 http://example.com/1[2345
1915 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1920 External links: open square bracket forbidden in URL (named) (bug 4377)
1922 [http://example.com/1[2345]
1924 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1929 External links: nowiki in URL link text (bug 6230)
1931 [http://example.com/ <nowiki>''example site''</nowiki>]
1933 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1938 External links: newline forbidden in text (bug 6230 regression check)
1940 [http://example.com/ first
1943 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1949 External links: Pipe char between url and text
1951 [http://example.com | link]
1953 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1958 External links: protocol-relative URL in brackets
1960 [//example.com/ Test]
1962 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1967 External links: protocol-relative URL in brackets without text
1971 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1976 External links: protocol-relative URL in free text is left alone
1980 <p>//example.com/Foo
1985 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1987 foo//example.com/Foo
1989 <p>foo//example.com/Foo
1996 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1998 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2003 External image from https
2005 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2007 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2012 Link to non-http image, no img tag
2014 Link to non-http image, no img tag: ftp://example.com/test.jpg
2016 <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>
2021 External links: terminating separator
2023 Terminating separator: http://example.com/thing,
2025 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2030 External links: intervening separator
2032 Intervening separator: http://example.com/1,2,3
2034 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2039 External links: old bug with URL in query
2041 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2043 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2048 External links: old URL-in-URL bug, mixed protocols
2050 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2052 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2057 External links: URL in text
2059 URL in text: [http://example.com http://example.com]
2061 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2066 External links: Clickable images
2068 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2070 <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>
2075 External links: raw ampersand
2077 Old & use: http://x&y
2079 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2084 External links: encoded ampersand
2086 Old & use: http://x&y
2088 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2093 External links: encoded equals (bug 6102)
2095 http://example.com/?foo=bar
2097 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2102 External links: [raw ampersand]
2104 Old & use: [http://x&y]
2106 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2111 External links: [encoded ampersand]
2113 Old & use: [http://x&y]
2115 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2120 External links: [encoded equals] (bug 6102)
2122 [http://example.com/?foo=bar]
2124 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2129 External links: [IDN ignored character reference in hostname; strip it right off]
2131 [http://e‌xample.com/]
2133 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2137 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2138 # Where an external link could easily circumvent the sanitization of the text of
2139 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2140 # test demands a higher standard. That's a bit strange.
2144 # http://example.com -> [http://example.com|http://example.com]
2145 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2147 # The first example is sanitized, but the second is not. Any security benefits
2148 # from this production are trivial to circumvent. Either remove this test and
2149 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2150 # the test accordingly.
2155 External links: IDN ignored character reference in hostname; strip it right off
2157 http://e‌xample.com/
2159 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2164 External links: www.jpeg.org (bug 554)
2168 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2173 External links: URL within URL (original bug 2)
2175 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2177 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2182 BUG 361: URL inside bracketed URL
2184 [http://www.example.com/foo http://www.example.com/bar]
2186 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2191 BUG 361: URL within URL, not bracketed
2193 http://www.example.com/foo?=http://www.example.com/bar
2195 <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>
2200 BUG 289: ">"-token in URL-tail
2202 http://www.example.com/<hello>
2204 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2209 BUG 289: literal ">"-token in URL-tail
2211 http://www.example.com/<b>html</b>
2213 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2218 BUG 289: ">"-token in bracketed URL
2220 [http://www.example.com/<hello> stuff]
2222 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2227 BUG 289: literal ">"-token in bracketed URL
2229 [http://www.example.com/<b>html</b> stuff]
2231 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2236 BUG 289: literal double quote at end of URL
2238 http://www.example.com/"hello"
2240 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2245 BUG 289: literal double quote in bracketed URL
2247 [http://www.example.com/"hello" stuff]
2249 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2254 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2256 [http://www.example.com test]
2258 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2263 External links: wiki links within external link (Bug 3695)
2265 [http://example.com [[wikilink]] embedded in ext link]
2267 <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>
2272 BUG 787: Links with one slash after the url protocol are invalid
2276 [http:/example.com title]
2278 <p>http:/example.com
2279 </p><p>[http:/example.com title]
2284 Bracketed external links with template-generated invalid target
2286 [{{echo|http:/example.com}} title]
2288 <p>[http:/example.com title]
2293 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2295 ''[http://example.com text'']
2296 [http://example.com '''text]'''
2297 ''Something [http://example.com in italic'']
2298 ''Something [http://example.com mixed''''', even bold]'''
2299 '''''Now [http://example.com both''''']
2301 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2302 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2303 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2304 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2305 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2311 Bug 4781: %26 in URL
2313 http://www.example.com/?title=AT%26T
2315 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2319 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2320 # % is actually legal in HTML5. Any change in output would need testing though.
2322 Bug 4781, 5267: %25 in URL
2324 http://www.example.com/?title=100%25_Bran
2326 <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>
2331 Bug 4781, 5267: %28, %29 in URL
2333 http://www.example.com/?title=Ben-Hur_%281959_film%29
2335 <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>
2341 Bug 4781: %26 in autonumber URL
2343 [http://www.example.com/?title=AT%26T]
2345 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2350 Bug 4781, 5267: %26 in autonumber URL
2352 [http://www.example.com/?title=100%25_Bran]
2354 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2359 Bug 4781, 5267: %28, %29 in autonumber URL
2361 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2363 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2369 Bug 4781: %26 in bracketed URL
2371 [http://www.example.com/?title=AT%26T link]
2373 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2378 Bug 4781, 5267: %26 in bracketed URL
2380 [http://www.example.com/?title=100%25_Bran link]
2382 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2387 Bug 4781, 5267: %28, %29 in bracketed URL
2389 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2391 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2396 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2398 Some [http://example.com/ pretty ''italics'' and stuff]!
2400 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2405 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2407 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2409 <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>
2414 External link containing double-single-quotes with no space separating the url from text in italics
2416 [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]].]
2418 <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>
2423 URL-encoding in URL functions (single parameter)
2425 {{localurl:Some page|amp=&}}
2427 <p>/index.php?title=Some_page&amp=&
2432 URL-encoding in URL functions (multiple parameters)
2434 {{localurl:Some page|q=?&=&}}
2436 <p>/index.php?title=Some_page&q=?&amp=&
2443 http://example.com/index.php?foozoid%5B%5D=bar
2445 http://example.com/index.php?foozoid[]=bar
2447 <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>
2448 </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>
2453 IPv6 urls (bug 21261)
2457 http://[2404:130:0:1000::187:2]/index.php
2459 <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>
2464 Non-extlinks in brackets
2473 [{{echo|foo}} ''bar'']
2474 [{{echo|foo}}l's] errand
2475 [{{echo|foo}}l's errand]
2497 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2499 Normal text. '''''Bold italic text.''''' Normal text.
2501 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2502 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2508 Unclosed and unmatched quotes
2510 '''''Bold italic text '''with bold deactivated''' in between.'''''
2512 '''''Bold italic text ''with italic deactivated'' in between.'''''
2516 ..spanning two paragraphs (should not work).'''
2518 '''Bold tag left open
2520 ''Italic tag left open
2524 <!-- Unmatching number of opening, closing tags: -->
2525 '''This year''''s election ''should'' beat '''last year''''s.
2527 ''Tom'''s car is bigger than ''Susan'''s.
2529 Plain ''italic'''s plain
2531 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2532 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2533 </p><p><b>Bold text..</b>
2534 </p><p>..spanning two paragraphs (should not work).
2535 </p><p><b>Bold tag left open</b>
2536 </p><p><i>Italic tag left open</i>
2538 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2539 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2540 </p><p>Plain <i>italic'</i>s plain
2547 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2550 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2551 # is the bare minimun required by the spec, see:
2552 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2554 A table with no data.
2560 # A table with nothing but a caption is invalid XHTML, we might want to render
2561 # this as <p>caption</p>
2563 A table with nothing but a caption
2571 </caption><tr><td></td></tr></table>
2597 Simple table but with multiple dashes for row wikitext
2615 Multiplication table
2617 {| border="1" cellpadding="2"
2618 |+Multiplication table
2620 ! × !! 1 !! 2 !! 3
2638 <table border="1" cellpadding="2">
2639 <caption>Multiplication table
2686 Allow +/- in 2nd and later cells in a row
2713 |rowspan=2| Cell 2, row 1 (and 2)
2724 <td rowspan="2"> Cell 2, row 1 (and 2)
2742 {| bgcolor=#ABCDEF border=2
2747 |the original table again
2755 <table bgcolor="#ABCDEF" border="2">
2763 <td>the original table again
2769 Invalid attributes in table cell (bug 1830)
2784 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2787 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2791 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2792 <td>]" onmouseover="alert(document.cookie)">test
2801 Indented table markup mixed with indented pre content (proposed in bug 6200)
2806 Text that should be rendered preformatted
2814 <pre>Text that should be rendered preformatted
2823 Template-generated table cell attributes and cell content
2831 <td style="color: red"> Foo
2837 Table with row followed by newlines and table heading
2854 # FIXME: Preserve the attribute properly (with an empty string as value) in
2855 # the PHP parser. Parsoid implements the behavior below.
2857 Table attributes with empty value
2876 Plain link, capitalized
2880 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2885 Plain link, uncapitalized
2889 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2896 [[Main Page|The Main Page]]
2898 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2907 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2912 Broken link with fragment
2914 [[Zigzagzogzagzig#zug]]
2916 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2921 Special page link with fragment
2923 [[Special:Version#anchor]]
2925 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2930 Nonexistent special page link with fragment
2932 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2934 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2941 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2943 <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>
2950 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2952 <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>!!!
2957 Link with 3 brackets
2966 Piped link with 3 brackets
2968 [[[main page|the main page]]]
2970 <p>[[[main page|the main page]]]
2975 Link with multiple pipes
2977 [[Main Page|The|Main|Page]]
2979 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2986 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2988 <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>
2993 Piped link to namespace
2995 [[Meta:Disclaimers|The disclaimers]]
2997 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3004 [[Usually caused by a typo (oops}]]
3006 <p>[[Usually caused by a typo (oops}]]
3011 Link containing % (not as a hex sequence)
3015 <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>
3020 Link containing % as a single hex sequence interpreted to char
3024 <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>
3029 Link containing % as a double hex sequence interpreted to hex sequence
3033 <p>[[7%2525 Solution]]
3038 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3039 Example for such a section: == < ==
3041 [[%23%3c]][[%23%3e]]
3043 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3048 Link containing "<#" and ">#" as a hex sequences
3050 [[%3c%23]][[%3e%23]]
3052 <p>[[%3c%23]][[%3e%23]]
3057 Link containing double-single-quotes '' (bug 4598)
3059 [[Lista d''e paise d''o munno]]
3061 <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>
3066 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3068 Some [[Link|pretty ''italics'' and stuff]]!
3070 <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>!
3075 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3077 ''Some [[Link|pretty ''italics'' and stuff]]!
3079 <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>
3084 Link with double quotes in title part (literal) and alternate part (interpreted)
3086 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3090 [[''Pentecoste''|Pentecoste]]
3092 [[''Pentecoste''|''Pentecoste'']]
3094 <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>
3095 </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>
3096 </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>
3097 </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>
3102 Broken image links with HTML captions (bug 39700)
3104 [[File:Nonexistent|<script></script>]]
3105 [[File:Nonexistent|100px|<script></script>]]
3106 [[File:Nonexistent|<]]
3107 [[File:Nonexistent|a<i>b</i>c]]
3109 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3110 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3111 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3112 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3119 [[http://www.example.com]]
3121 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3126 Plain link to URL with link text
3128 [[http://www.example.com Link text]]
3130 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3135 Plain link to protocol-relative URL
3137 [[//www.example.com]]
3139 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3144 Plain link to protocol-relative URL with link text
3146 [[//www.example.com Link text]]
3148 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3153 # I'm fairly sure the expected result here is wrong.
3154 # We want these to be URL links, not pseudo-pages with URLs for titles....
3155 # However the current output is also pretty screwy.
3158 # I'm changing it to match the current output--it arguably makes more
3159 # sense in the light of the test above. Old expected result was:
3160 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3162 # But I think this test is bordering on "garbage in, garbage out" anyway.
3167 Piped link to URL: [[http://www.example.com|an example URL]]
3169 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3174 BUG 2: [[page|http://url/]] should link to page, not http://url/
3176 [[Main Page|http://url/]]
3178 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3183 BUG 337: Escaped self-links should be bold
3187 [[Bug462]] [[Bug462]]
3189 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3194 Self-link to section should not be bold
3198 [[Main Page#section]]
3200 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3211 Self-link to numeric title
3217 <p><strong class="selflink">0</strong>
3222 Link to numeric-equivalent title
3228 <p><a href="/wiki/00" title="00">00</a>
3233 <nowiki> inside a link
3235 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3237 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3242 Non-breaking spaces in title
3244 [[ Main Page ]]
3246 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3251 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3257 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3262 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3268 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3273 Internal link with en linktrail: no apostrophes (bug 27473)
3279 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3284 Internal link with ca linktrail with apostrophes (bug 27473)
3290 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3295 Internal link with kaa linktrail with apostrophes (bug 27473)
3301 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3306 ### Interwiki links (see maintenance/interwiki.sql)
3310 Inline interwiki link
3312 [[MeatBall:SoftSecurity]]
3314 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3319 Inline interwiki link with empty title (bug 2372)
3323 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3328 Interwiki link encoding conversion (bug 1636)
3330 *[[Wikipedia:ro:Olteniţa]]
3331 *[[Wikipedia:ro:Olteniţa]]
3333 <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>
3334 </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>
3340 Interwiki link with fragment (bug 2130)
3342 [[MeatBall:SoftSecurity#foo]]
3344 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3359 Double interlanguage link
3370 Interlanguage link, with prefix links
3382 Double interlanguage link, with prefix links (bug 8897)
3395 Parsoid-specific test: Wikilinks with should RT properly
3401 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3419 Broken br tag sanitization
3428 Incorrecly removing closing slashes from correctly formed XHTML
3430 <br style="clear:both;" />
3432 <p><br style="clear:both;" />
3437 Failing to transform badly formed HTML into correct XHTML
3439 <br style="clear: left;">
3440 <br style="clear: right;">
3441 <br style="clear: both;">
3443 <p><br style="clear: left;" />
3444 <br style="clear: right;" />
3445 <br style="clear: both;" />
3450 Handling html with a div self-closing tag
3459 <p><div title />
3463 <p><div title=bar />
3464 <div title=bar/>
3466 <div title="bar/"></div>
3472 Handling html with a br self-closing tag
3481 <p><br title="title" />
3482 <br title="title" />
3491 Horizontal ruler (should it add that extra space?)
3505 Horizontal ruler -- 4+ dashes render hr
3514 Horizontal ruler -- eats additional dashes on the same line
3523 Horizontal ruler -- does not collaps dashes on consecutive lines
3534 Horizontal ruler -- <4 dashes render as plain text
3543 ### Block-level elements
3566 <ol><li>Numbered list
3583 ***#Number on level 4
3585 **#Number on level 3
3586 **#Number on level 3
3590 #** Level 3, but ordered
3593 <ol><li> with numbers
3595 <ul><li> and bullets
3597 <ol><li> and numbers
3599 </li><li>bullets again
3600 <ul><li>bullet level 2
3601 <ul><li>bullet level 3
3602 <ol><li>Number on level 4
3605 </li><li>bullet level 2
3606 <ol><li>Number on level 3
3607 </li><li>Number on level 3
3610 <ol><li>number level 2
3613 <ul><li><ul><li> Level 3
3617 <ol><li><ul><li><ul><li> Level 3, but ordered
3651 Nested lists 3 (first element empty)
3664 Nested lists 4 (first element empty)
3677 Nested lists 5 (both elements empty)
3690 Nested lists 6 (both elements empty)
3703 Nested lists 7 (skip initial nesting levels)
3707 <ul><li><ul><li><ul><li> foo
3715 Nested lists 8 (multiple nesting transitions)
3723 <ul><li><ul><li> bar
3733 1. Lists with start-of-line-transparent tokens before bullets: Comments
3747 2. Lists with start-of-line-transparent tokens before bullets: Template close
3759 List items are not parsed correctly following a <pre> block (bug 785)
3765 <ul><li> <pre>foo</pre>
3766 </li><li> <pre>bar</pre>
3773 List items from template
3784 * notSOL{{inner list}}
3803 List interrupted by empty line or heading
3813 <ul><li><ul><li> bar
3816 <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>
3817 <ul><li> Another list item
3828 Magic Word: {{CURRENTDAY}}
3837 Magic Word: {{CURRENTDAY2}}
3846 Magic Word: {{CURRENTDAYNAME}}
3855 Magic Word: {{CURRENTDOW}}
3864 Magic Word: {{CURRENTMONTH}}
3873 Magic Word: {{CURRENTMONTHABBREV}}
3875 {{CURRENTMONTHABBREV}}
3882 Magic Word: {{CURRENTMONTHNAME}}
3884 {{CURRENTMONTHNAME}}
3891 Magic Word: {{CURRENTMONTHNAMEGEN}}
3893 {{CURRENTMONTHNAMEGEN}}
3900 Magic Word: {{CURRENTTIME}}
3909 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3918 Magic Word: {{CURRENTYEAR}}
3927 Magic Word: {{FULLPAGENAME}}
3929 title=[[User:Ævar Arnfjörð Bjarmason]]
3933 <p>User:Ævar Arnfjörð Bjarmason
3938 Magic Word: {{FULLPAGENAMEE}}
3940 title=[[User:Ævar Arnfjörð Bjarmason]]
3944 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3949 Magic Word: {{NAMESPACE}}
3951 title=[[User:Ævar Arnfjörð Bjarmason]]
3960 Magic Word: {{NAMESPACEE}}
3962 title=[[User:Ævar Arnfjörð Bjarmason]]
3971 Magic Word: {{NAMESPACENUMBER}}
3973 title=[[User:Ævar Arnfjörð Bjarmason]]
3982 Magic Word: {{NUMBEROFFILES}}
3991 Magic Word: {{PAGENAME}}
3993 title=[[User:Ævar Arnfjörð Bjarmason]]
3997 <p>Ævar Arnfjörð Bjarmason
4002 Magic Word: {{PAGENAME}} with metacharacters
4004 title=[['foo & bar = baz']]
4008 <p><i>'foo & bar = baz'</i>
4013 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4015 title=[[*RFC 1234 http://example.com/]]
4019 <p>*RFC 1234 http://example.com/
4024 Magic Word: {{PAGENAMEE}}
4026 title=[[User:Ævar Arnfjörð Bjarmason]]
4030 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4035 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4037 title=[[*RFC 1234 http://example.com/]]
4041 <p>*RFC_1234_http://example.com/
4046 Magic Word: {{REVISIONID}}
4055 Magic Word: {{SCRIPTPATH}}
4064 Magic Word: {{SERVER}}
4068 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4073 Magic Word: {{SERVERNAME}}
4082 Magic Word: {{SITENAME}}
4091 Namespace 1 {{ns:1}}
4100 Namespace 1 {{ns:01}}
4109 Namespace 0 {{ns:0}} (bug 4783)
4117 Namespace 0 {{ns:00}} (bug 4783)
4125 Namespace -1 {{ns:-1}}
4134 Namespace User {{ns:User}}
4143 Namespace User talk {{ns:User_talk}}
4152 Namespace User talk {{ns:uSeR tAlK}}
4161 Namespace File {{ns:File}}
4170 Namespace File {{ns:Image}}
4179 Namespace (lang=de) Benutzer {{ns:User}}
4190 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4196 <p>Benutzer Diskussion
4204 {{urlencode:hi world?!}}
4205 {{urlencode:hi world?!|WIKI}}
4206 {{urlencode:hi world?!|PATH}}
4207 {{urlencode:hi world?!|QUERY}}
4220 Magic links: internal link to RFC (bug 479)
4224 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4229 Magic links: RFC (bug 479)
4233 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4238 Magic links: ISBN (bug 1937)
4242 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4247 Magic links: PMID incorrectly converts space to underscore
4251 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4260 Nonexistent template
4262 {{thistemplatedoesnotexist}}
4264 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4271 This is a test template
4279 <p>This is a test template
4284 Template with explicit namespace
4288 <p>This is a test template
4296 This is a test template with parameter {{{param}}}
4302 {{paramtest|param=foo}}
4304 <p>This is a test template with parameter foo
4309 Template:paramtestnum
4315 Template unnamed parameter
4317 {{paramtestnum|Main Page|the main page}}
4319 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4324 Template:templatesimple
4330 Template:templateredirect
4332 #redirect [[Template:templatesimple]]
4336 Template:templateasargtestnum
4342 Template:templateasargtest
4344 {{template{{{templ}}}}}
4348 Template:templateasargtest2
4354 Template with template name as unnamed argument
4356 {{templateasargtestnum|templatesimple}}
4363 Template with template name as argument
4365 {{templateasargtest|templ=simple}}
4372 Template with template name as argument (2)
4374 {{templateasargtest2|templ=templatesimple}}
4381 Template:templateasargtestdefault
4383 {{{{{templ|templatesimple}}}}}
4393 Template with default value
4395 {{templateasargtestdefault}}
4402 Template with default value (value set)
4404 {{templateasargtestdefault|templ=templa}}
4413 {{templateredirect}}
4420 Template with argument in separate line
4422 {{ templateasargtest |
4430 Template with complex template as argument
4433 param ={{ templateasargtest |
4436 <p>This is a test template with parameter (test)
4441 Template with thumb image (with link in description)
4444 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4446 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>
4451 Template:complextemplate
4453 {{{1}}} {{paramtest|
4454 param ={{{param}}}}}
4458 Template with complex arguments
4461 param ={{ templateasargtest |
4462 templ = simple }}|[[Template:complextemplate|link]]}}
4464 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4469 BUG 553: link with two variables in a piped link
4472 |[[{{{1}}}|{{{2}}}]]
4477 <td>[[{{{1}}}|{{{2}}}]]
4483 Magic variable as template parameter
4485 {{paramtest|param={{SITENAME}}}}
4487 <p>This is a test template with parameter MediaWiki
4494 [[{{{param}}}|link]]
4498 Template parameter as link source
4500 {{linktest|param=Main Page}}
4502 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4507 Template-generated attribute string (k='v')
4509 <span {{attr_str|id|v1}}>bar</span>
4511 <p><span id="v1">bar</span>
4518 including another template, {{paramtest|param={{{arg}}}}}
4522 Template passing argument to another template
4524 {{paramtest2|arg='hmm'}}
4526 <p>including another template, This is a test template with parameter 'hmm'
4537 Template as link source
4541 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4559 Template infinite loop
4563 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4568 Template from main namespace
4587 BUG 529: Template with table, not included at beginning of line
4606 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4626 BUG 41: Template parameters shown as broken links
4635 Template with targets containing wikilinks
4639 {{[[{{echo|foo}}]]}}
4641 {{{{echo|[[foo}}]]}}
4643 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4644 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4652 ''None'' of '''this''' should be
4654 but rather passed unmodified
4658 # hmm, fix this or just deprecate msgnw and document its behavior?
4664 {{msgnw:MSGNW test}}
4666 <p>''None'' of '''this''' should be
4668 but rather passed unmodified
4676 {{int:youhavenewmessages|lots of money|not!}}
4678 <p>You have lots of money (not!).
4685 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4689 <includeonly> and <noinclude> being included
4700 <onlyinclude>Foo</onlyinclude>bar
4704 <onlyinclude> being included
4716 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4720 <onlyinclude> and <includeonly> being included
4729 <includeonly> and <noinclude> on a page
4731 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4738 <onlyinclude> on a page
4740 <onlyinclude>Foo</onlyinclude>bar
4747 Template:Includeonly section
4750 ==Includeonly section==
4756 Bug 6563: Edit link generation for section shown by <includeonly>
4758 {{includeonly section}}
4760 <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>
4761 <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>
4765 # Uses same input as the contents of [[Template:Includeonly section]]
4767 Bug 6563: Section extraction for section shown by <includeonly>
4772 ==Includeonly section==
4780 Bug 6563: Edit link generation for section suppressed by <includeonly>
4783 ==Includeonly section==
4787 <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>
4792 Bug 6563: Section extraction for section suppressed by <includeonly>
4797 ==Includeonly section==
4805 ### <includeonly> and <noinclude> in attributes
4808 0. includeonly around the entire attribute
4810 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4812 <p><span id="v2">bar</span>
4817 1. includeonly in html attr key
4819 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4821 <p><span id="foo">bar</span>
4826 2. includeonly in html attr value
4828 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4829 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4831 <p><span id="v1">bar</span>
4832 <span id="v1">bar</span>
4837 3. includeonly in part of an attr value
4839 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4841 <p><span style="color:red;">bar</span>
4846 ### Testing parsing of templates where a template arg
4847 ### has the same name as the template itself.
4857 Templates: Template Name/Arg clash: 1. Use of positional param
4866 Templates: Template Name/Arg clash: 2. Use of named param
4875 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4884 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4888 Templates: 1. Simple use
4897 Templates: 2. Inside a block tag
4899 <div>{{echo|Foo}}</div>
4906 Templates: P-wrapping: 1a. Templates on consecutive lines
4917 Templates: P-wrapping: 1b. Templates on consecutive lines
4931 Templates: P-wrapping: 1c. Templates on consecutive lines
4934 {{echo|bar}} <div>baz</div>
4943 Templates: Inline Text: 1. Multiple tmeplate uses
4945 {{echo|Foo}}bar{{echo|baz}}
4952 Templates: Inline Text: 2. Back-to-back template uses
4954 {{echo|Foo}}{{echo|bar}}
4961 Templates: Block Tags: 1. Multiple template uses
4963 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4965 <div>Foo</div><div>bar</div><div>baz</div>
4970 Templates: Block Tags: 2. Back-to-back template uses
4972 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4974 <div>Foo</div><div>bar</div>
4979 Templates: Links: 1. Simple example
4981 {{echo|[[Foo|bar]]}}
4983 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4988 Templates: Links: 2. Generation of link href
4990 [[{{echo|Foo}}|bar]]
4992 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4997 Templates: Links: 3. Generation of part of a link href
4999 [[Fo{{echo|o}}|bar]]
5001 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5006 Templates: Links: 4. Multiple templates generating link href
5008 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5010 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5015 Templates: Links: 5. Generation of link text
5017 [[Foo|{{echo|bar}}]]
5019 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5024 Templates: Links: 5. Nested templates (only outermost template should be marked)
5026 {{echo|[[{{echo|Foo}}|bar]]}}
5028 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5033 Templates: HTML Tag: 1. Generation of HTML attr. key
5035 <div {{echo|style}}="color:red;">foo</div>
5037 <div style="color:red;">foo</div>
5042 Templates: HTML Tag: 2. Generation of HTML attr. value
5044 <div style={{echo|'color:red;'}}>foo</div>
5046 <div style="color:red;">foo</div>
5051 Templates: HTML Tag: 3. Generation of HTML attr key and value
5053 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5055 <div style="color:red;">foo</div>
5060 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5062 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5064 <div title="This is a long title with just one piece templated">foo</div>
5069 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5071 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5073 <div title="This is a long title with just one piece templated">foo</div>
5078 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5080 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5082 <div title="This is a long title with just one piece templated">foo</div>
5087 Templates: HTML Tables: 1. Generating start of a HTML table
5089 {{echo|<table><tr><td>foo</td>}}</tr></table>
5091 <table><tr><td>foo</td></tr></table>
5096 Templates: HTML Tables: 2a. Generating middle of a HTML table
5098 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5100 <table><tr><td>foo</td></tr></table>
5105 Templates: HTML Tables: 2b. Generating middle of a HTML table
5107 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5109 <table><tr><td>foo</td></tr></table>
5114 Templates: HTML Tables: 3. Generating end of a HTML table
5116 <table><tr>{{echo|<td>foo</td></tr></table>}}
5118 <table><tr><td>foo</td></tr></table>
5123 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5125 {{echo|<table>}}<tr><td>foo</td></tr></table>
5127 <table><tr><td>foo</td></tr></table>
5132 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5134 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5136 <table><tr><td>foo</td></tr></table>
5141 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5143 <table><tr>{{echo|<td>}}foo</td></tr></table>
5145 <table><tr><td>foo</td></tr></table>
5150 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5152 <table><tr><td>foo{{echo|</td>}}</tr></table>
5154 <table><tr><td>foo</td></tr></table>
5159 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5161 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5163 <table><tr><td>foo</td></tr></table>
5168 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5170 <table><tr><td>foo</td></tr>{{echo|</table>}}
5172 <table><tr><td>foo</td></tr></table>
5177 Templates: Wiki Tables: 1. Fostering of entire template content
5185 <tr><td></td></tr></table>
5190 Templates: Wiki Tables: 2. Fostering of partial template content
5200 <tr><td></td></tr></table>
5205 Templates: Wiki Tables: 3. td-content via multiple templates
5208 {{echo|{{pipe}}a}}{{echo|b}}
5219 Templates: Lists: Multi-line list-items via templates
5221 *{{echo|a {{nonexistent|
5223 *{{echo|b {{nonexistent|
5226 <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>
5227 </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>
5233 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5235 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5237 <p><i>ab</i>c<i>d</i>e
5242 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5243 (PHP parser generates misnested html)
5247 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5249 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5253 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5254 (PHP parser generates misnested html)
5258 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5261 <div><i>b</i>c<i>d</i></div>
5266 Templates: Ugly nesting: 4. Divs opened/closed across templates
5268 a<div>b{{echo|c</div>d}}e
5275 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5281 |{{echo|foo</table>}}
5285 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5286 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5287 bar</span><span about="#mwt1">
5292 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5302 <td>1. {{echo|foo </table>}}</td>
5304 <td>2. {{echo|baz </table>}}</td>
5317 <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">
5318 <tbody><tr data-parsoid="{"stx":"html"}">
5319 <td data-parsoid="{"stx":"html"}">
5320 <table data-parsoid="{"stx":"html"}">
5321 <tbody><tr data-parsoid="{"stx":"html"}">
5322 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5323 <td data-parsoid="{"stx":"html"}"> bar </td>
5324 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5325 </span><span about="#mwt1">
5327 abc</span><span about="#mwt1">
5328 </span><span about="#mwt1">
5329 </span><span about="#mwt1">
5330 </span><span about="#mwt1">
5331 </span><span about="#mwt1">
5333 xyz</span><span about="#mwt1">
5334 </span><span about="#mwt1">
5339 Parser Functions: 1. Simple example
5348 Parser Functions: 2. Nested use (only outermost should be marked up)
5357 ### Pre-save transform tests
5360 pre-save transform: subst:
5366 This is a test template
5370 pre-save transform: normal template
5380 pre-save transform: nonexistent template
5384 {{thistemplatedoesnotexist}}
5386 {{thistemplatedoesnotexist}}
5391 pre-save transform: subst magic variables
5400 # This is bug 89, which I fixed. -- wtm
5402 pre-save transform: subst: templates with parameters
5406 {{subst:paramtest|param="something else"}}
5408 This is a test template with parameter "something else"
5414 <nowiki>'''not wiki'''</nowiki>
5418 pre-save transform: nowiki in subst (bug 1188)
5422 {{subst:nowikitest}}
5424 <nowiki>'''not wiki'''</nowiki>
5429 Template:commenttest
5431 This template has <!-- a comment --> in it.
5435 pre-save transform: comment in subst (bug 1936)
5439 {{subst:commenttest}}
5441 This template has <!-- a comment --> in it.
5445 pre-save transform: unclosed tag
5449 <nowiki>'''not wiki'''
5451 <nowiki>'''not wiki'''
5455 pre-save transform: mixed tag case
5459 <NOwiki>'''not wiki'''</noWIKI>
5461 <NOwiki>'''not wiki'''</noWIKI>
5465 pre-save transform: unclosed comment in <nowiki>
5469 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5471 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5477 <span onmouseover="alert('crap')">Oh no</span>
5481 (confirming safety of fix for subst bug 1936)
5483 {{Template:dangerous}}
5485 <p><span>Oh no</span>
5490 pre-save transform: comment containing gallery (bug 5024)
5494 <!-- <gallery>data</gallery> -->
5496 <!-- <gallery>data</gallery> -->
5500 pre-save transform: comment containing extension
5504 <!-- <tag>data</tag> -->
5506 <!-- <tag>data</tag> -->
5510 pre-save transform: comment containing nowiki
5514 <!-- <nowiki>data</nowiki> -->
5516 <!-- <nowiki>data</nowiki> -->
5520 pre-save transform: <noinclude> in subst (bug 3298)
5530 pre-save transform: <onlyinclude> in subst (bug 3298)
5542 {{<includeonly>subst:</includeonly>Includes}}
5546 Template:SafeSubstTest
5548 {{<includeonly>safesubst:</includeonly>Includes}}
5552 bug 22297: safesubst: works during PST
5556 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5562 bug 22297: safesubst: works during normal parse
5571 subst: does not work during normal parse
5575 <p>{{subst:Includes}}
5580 pre-save transform: context links ("pipe trick")
5584 [[Article (context)|]]
5587 [[Bar:Article (context)|]]
5588 [[:Bar:Article (context)|]]
5590 [[|Article (context)]]
5594 [[Article (context)|Article]]
5595 [[Bar:Article|Article]]
5596 [[:Bar:Article|Article]]
5597 [[Bar:Article (context)|Article]]
5598 [[:Bar:Article (context)|Article]]
5600 [[Article (context)]]
5601 [[Bar:X (Y) Z|X (Y) Z]]
5602 [[:Bar:X (Y) Z|X (Y) Z]]
5606 pre-save transform: context links ("pipe trick") with interwiki prefix
5610 [[interwiki:Article|]]
5611 [[:interwiki:Article|]]
5612 [[interwiki:Bar:Article|]]
5613 [[:interwiki:Bar:Article|]]
5615 [[interwiki:Article|Article]]
5616 [[:interwiki:Article|Article]]
5617 [[interwiki:Bar:Article|Bar:Article]]
5618 [[:interwiki:Bar:Article|Bar:Article]]
5622 pre-save transform: context links ("pipe trick") with parens in title
5624 pst title=[[Somearticle (context)]]
5628 [[Article (context)|Article]]
5632 pre-save transform: context links ("pipe trick") with comma in title
5634 pst title=[[Someplace, Somewhere]]
5637 [[Otherplace, Elsewhere|]]
5638 [[Otherplace, Elsewhere, Anywhere|]]
5640 [[Otherplace, Somewhere|Otherplace]]
5641 [[Otherplace, Elsewhere|Otherplace]]
5642 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5646 pre-save transform: context links ("pipe trick") with parens and comma
5648 pst title=[[Someplace (IGNORED), Somewhere]]
5651 [[Otherplace (place), Elsewhere|]]
5653 [[Otherplace, Somewhere|Otherplace]]
5654 [[Otherplace (place), Elsewhere|Otherplace]]
5658 pre-save transform: context links ("pipe trick") with comma and parens
5660 pst title=[[Who, me? (context)]]
5663 [[Me, Myself, and I (1937 song)|]]
5665 [[Yes, you. (context)|Yes, you.]]
5666 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5670 pre-save transform: context links ("pipe trick") with namespace
5672 pst title=[[Ns:Somearticle]]
5676 [[Ns:Article|Article]]
5680 pre-save transform: context links ("pipe trick") with namespace and parens
5682 pst title=[[Ns:Somearticle (context)]]
5686 [[Ns:Article (context)|Article]]
5690 pre-save transform: context links ("pipe trick") with namespace and comma
5692 pst title=[[Ns:Somearticle, Context, Whatever]]
5696 [[Ns:Article, Context, Whatever|Article]]
5700 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5702 pst title=[[Ns:Somearticle, Context (context)]]
5706 [[Ns:Article (context)|Article]]
5710 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5712 pst title=[[Ns:Somearticle (IGNORED), Context]]
5716 [[Ns:Article, Context|Article]]
5720 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5724 [[Article(context)|]]
5725 [[Bar:Article(context)|]]
5726 [[:Bar:Article(context)|]]
5727 [[|Article(context)]]
5731 [[Article(context)|Article]]
5732 [[Bar:Article(context)|Article]]
5733 [[:Bar:Article(context)|Article]]
5734 [[Article(context)]]
5736 [[:Bar:X(Y)Z|X(Y)Z]]
5740 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5744 [[Article (context)|]]
5745 [[Bar:Article (context)|]]
5746 [[:Bar:Article (context)|]]
5747 [[|Article (context)]]
5751 [[Article (context)|Article]]
5752 [[Bar:Article (context)|Article]]
5753 [[:Bar:Article (context)|Article]]
5754 [[Article (context)]]
5755 [[Bar:X (Y) Z|X (Y) Z]]
5756 [[:Bar:X (Y) Z|X (Y) Z]]
5760 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5764 [[Article(context)|]]
5765 [[Bar:Article(context)|]]
5766 [[:Bar:Article(context)|]]
5767 [[|Article(context)]]
5771 [[Article(context)|Article]]
5772 [[Bar:Article(context)|Article]]
5773 [[:Bar:Article(context)|Article]]
5774 [[Article(context)]]
5776 [[:Bar:X(Y)Z|X(Y)Z]]
5780 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5784 [[Article (context), context|]]
5785 [[Article (context),context|]]
5786 [[Bar:Article (context), context|]]
5787 [[Bar:Article (context),context|]]
5788 [[:Bar:Article (context), context|]]
5789 [[:Bar:Article (context),context|]]
5791 [[Article (context), context|Article]]
5792 [[Article (context),context|Article]]
5793 [[Bar:Article (context), context|Article]]
5794 [[Bar:Article (context),context|Article]]
5795 [[:Bar:Article (context), context|Article]]
5796 [[:Bar:Article (context),context|Article]]
5800 pre-save transform: trim trailing empty lines
5804 Empty lines are trimmed
5810 Empty lines are trimmed
5814 pre-save transform: Signature expansion
5819 * <noinclude>~~~</noinclude>
5820 * <includeonly>~~~</includeonly>
5821 * <onlyinclude>~~~</onlyinclude>
5823 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5824 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5825 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5826 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5831 pre-save transform: Signature expansion in nowiki tags (bug 93)
5837 <nowiki>~~~~</nowiki>
5839 <includeonly><nowiki>~~~~</nowiki></includeonly>
5841 <noinclude><nowiki>~~~~</nowiki></noinclude>
5843 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5845 {{subst:Foo}} shall be converted to FOO
5847 As well as inside noinclude/onlyinclude
5848 <noinclude>{{subst:Foo}}</noinclude>
5849 <onlyinclude>{{subst:Foo}}</onlyinclude>
5851 But not inside includeonly
5852 <includeonly>{{subst:Foo}}</includeonly>
5856 <nowiki>~~~~</nowiki>
5858 <includeonly><nowiki>~~~~</nowiki></includeonly>
5860 <noinclude><nowiki>~~~~</nowiki></noinclude>
5862 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5864 FOO shall be converted to FOO
5866 As well as inside noinclude/onlyinclude
5867 <noinclude>FOO</noinclude>
5868 <onlyinclude>FOO</onlyinclude>
5870 But not inside includeonly
5871 <includeonly>{{subst:Foo}}</includeonly>
5875 ### Message transform tests
5878 message transform: magic variables
5888 message transform: should not transform wiki markup
5898 message transform: <noinclude> in transcluded template (bug 4926)
5908 message transform: <onlyinclude> in transcluded template (bug 4926)
5918 {{#special:}} page name, known
5922 {{#special:Recentchanges}}
5924 Special:RecentChanges
5928 {{#special:}} page name with subpage, known
5932 {{#special:Recentchanges/param}}
5934 Special:RecentChanges/param
5938 {{#special:}} page name, unknown
5942 {{#special:foobarnonexistent}}
5944 No such special page
5948 {{#speciale:}} page name, known
5952 {{#speciale:Recentchanges}}
5954 Special:RecentChanges
5958 {{#speciale:}} page name with subpage, known
5962 {{#speciale:Recentchanges/param}}
5964 Special:RecentChanges/param
5968 {{#speciale:}} page name, unknown
5972 {{#speciale:foobarnonexistent}}
5974 No_such_special_page
5983 [[Image:foobar.jpg]]
5985 <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>
5992 [[Image:foobar.jpg|right]]
5994 <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>
5999 Simple image (using File: namespace, now canonical)
6003 <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>
6010 [[Image:foobar.jpg|right|Caption text]]
6012 <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>
6017 Image with empty attribute
6019 [[Image:foobar.jpg|right||Caption text]]
6021 <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>
6026 Image with link tails
6028 123[[Image:foobar.jpg]]456
6029 123[[Image:foobar.jpg|right]]456
6030 123[[Image:foobar.jpg|thumb]]456
6032 <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
6034 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
6035 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
6040 Image with multiple captions -- only last one is accepted
6042 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6044 <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>
6049 Image with link parameter, wiki target
6051 [[Image:foobar.jpg|link=Target page]]
6053 <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>
6058 Image with link parameter, URL target
6060 [[Image:foobar.jpg|link=http://example.com/]]
6062 <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>
6067 Image with link parameter, wgExternalLinkTarget
6069 [[Image:foobar.jpg|link=http://example.com/]]
6071 wgExternalLinkTarget='foobar'
6073 <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>
6078 Image with link parameter, wgNoFollowLinks set to false
6080 [[Image:foobar.jpg|link=http://example.com/]]
6082 wgNoFollowLinks=false
6084 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6089 Image with link parameter, wgNoFollowDomainExceptions
6091 [[Image:foobar.jpg|link=http://example.com/]]
6093 wgNoFollowDomainExceptions='example.com'
6095 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6100 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6102 [[Image:foobar.jpg|link=http://example.com/|Title]]
6104 wgExternalLinkTarget='foobar'
6106 <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>
6111 Image with empty link parameter
6113 [[Image:foobar.jpg|link=]]
6115 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6120 Image with link parameter (wiki target) and unnamed parameter
6122 [[Image:foobar.jpg|link=Target page|Title]]
6124 <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>
6129 Image with link parameter (URL target) and unnamed parameter
6131 [[Image:foobar.jpg|link=http://example.com/|Title]]
6133 <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>
6138 Thumbnail image with link parameter
6140 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6142 <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>
6147 Image with frame and link
6149 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6151 <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>
6156 Image with frame and link and explicit alt
6158 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6160 <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>
6165 Image with wiki markup in implicit alt
6167 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6169 <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>
6174 Image with wiki markup in explicit alt
6176 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6178 <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>
6183 Link to image page- image page normally doesn't exists, hence edit link
6184 Add test with existing image page
6185 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6189 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6194 bug 18784 Link to non-existent image page with caption should use caption as link text
6196 [[:Image:test|caption]]
6198 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6203 Frameless image caption with a free URL
6205 [[Image:foobar.jpg|http://example.com]]
6207 <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>
6212 Thumbnail image caption with a free URL
6214 [[Image:foobar.jpg|thumb|http://example.com]]
6216 <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>
6221 Thumbnail image caption with a free URL and explicit alt
6223 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6225 <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>
6230 BUG 1887: A ISBN with a thumbnail
6232 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6234 <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>
6239 BUG 1887: A RFC with a thumbnail
6241 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6243 <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>
6248 BUG 1887: A mailto link with a thumbnail
6250 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6252 <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>
6256 # Pending resolution to bug 368
6258 BUG 648: Frameless image caption with a link
6260 [[Image:foobar.jpg|text with a [[link]] in it]]
6262 <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>
6267 BUG 648: Frameless image caption with a link (suffix)
6269 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6271 <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>
6276 BUG 648: Frameless image caption with an interwiki link
6278 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6280 <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>
6285 BUG 648: Frameless image caption with a piped interwiki link
6287 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6289 <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>
6294 Escape HTML special chars in image alt text
6296 [[Image:foobar.jpg|& < > "]]
6298 <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>
6303 BUG 499: Alt text should have Ӓ, not &1234;
6305 [[Image:foobar.jpg|♀]]
6307 <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>
6312 Broken image caption with link
6314 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6316 <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.
6321 Image caption containing another image
6323 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6325 <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>
6330 Image caption containing a newline
6332 [[Image:Foobar.jpg|This
6335 <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>
6341 Bug 3090: External links other than http: in image captions
6343 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6345 <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>
6352 [[Image:foobar.jpg|a|class=b]]
6354 <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>
6361 #REDIRECT [[File:Barfoo.jpg]]
6367 [[Image:Barfoo.jpg]]
6369 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6374 Missing image with uploads disabled
6378 [[Image:Foobaz.jpg]]
6380 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6389 Subpage test/subpage
6397 subpage title=[[Subpage test]]
6401 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6406 Subpage noslash link
6408 subpage title=[[Subpage test]]
6412 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6421 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6426 BUG 561: {{/Subpage}}
6428 subpage title=[[Page]]
6432 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6440 Category:MediaWiki User's Guide
6448 [[:Category:MediaWiki User's Guide]]
6450 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6459 [[Category:MediaWiki User's Guide]]
6461 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6465 PAGESINCATEGORY invalid title fatal (r33546 fix)
6467 {{PAGESINCATEGORY:<bogus>}}
6474 Category with different sort key
6478 [[Category:MediaWiki User's Guide|Foo]]
6480 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6484 Category with identical sort key
6488 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6490 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6494 Category with empty sort key
6499 [[Category:MediaWiki User's Guide|]]
6501 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6505 Category with empty sort key and parentheses
6510 [[Category:Foo (bar)|]]
6512 [[Category:Foo (bar)|Foo]]
6516 Category with link tail
6521 123[[Category:Foo]]456
6523 123[[Category:Foo]]456
6527 Category with template
6532 [[Category:{{echo|Foo}}]]
6534 [[Category:{{echo|Foo}}]]
6538 Category with template in sort key
6543 [[Category:Foo|{{echo|Bar}}]]
6545 [[Category:Foo|{{echo|Bar}}]]
6549 Category with template in sort key and title
6554 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6556 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6560 Category / paragraph interactions
6562 Foo [[Category:Baz]] Bar
6564 Foo [[Category:Baz]]
6572 [[Category:Baz]] Bar
6585 {{echo|[[Category:Baz]]}}
6600 ### Inter-language links
6603 Inter-language links
6609 [[zh:食品]]
6611 es:Alimento fr:Nourriture zh:食品
6615 Duplicate interlanguage links (bug 24502)
6631 Basic section headings
6638 ===Smaller headline===
6641 <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>
6644 <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>
6647 <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>
6653 Section headings with TOC
6656 === Subheadline 1 ===
6657 ===== Skipping a level =====
6658 ====== Skipping a level ======
6662 ===Another headline===
6664 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6666 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6668 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6670 <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>
6672 <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>
6679 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6681 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6686 <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>
6687 <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>
6688 <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>
6689 <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>
6690 <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>
6693 <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>
6697 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6699 Handling of sections up to level 6 and beyond
6702 == Level 2 Heading==
6703 === Level 3 Heading===
6704 ==== Level 4 Heading====
6705 ===== Level 5 Heading=====
6706 ====== Level 6 Heading======
6707 ======= Level 7 Heading=======
6708 ======== Level 8 Heading========
6709 ========= Level 9 Heading=========
6710 ========== Level 10 Heading==========
6712 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6714 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6716 <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>
6718 <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>
6720 <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>
6722 <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>
6724 <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>
6725 <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>
6726 <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>
6727 <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>
6728 <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>
6741 <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>
6742 <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>
6743 <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>
6744 <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>
6745 <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>
6746 <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>
6747 <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>
6748 <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>
6749 <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>
6750 <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>
6755 TOC regression (bug 9764)
6759 ==== title 1.1.1 ====
6764 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6766 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6768 <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>
6770 <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>
6773 <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>
6776 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6778 <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>
6783 <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>
6784 <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>
6785 <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>
6786 <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>
6787 <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>
6788 <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>
6793 TOC with wgMaxTocLevel=3 (bug 6204)
6799 ==== title 1.1.1 ====
6804 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6806 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6808 <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>
6809 <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>
6812 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6814 <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>
6819 <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>
6820 <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>
6821 <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>
6822 <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>
6823 <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>
6824 <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>
6829 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6835 ====Section 1.1.1====
6836 ====Section 1.1.1.1====
6839 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6841 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6843 <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>
6846 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6849 <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>
6850 <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>
6851 <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>
6852 <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>
6853 <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>
6859 Resolving duplicate section names
6864 <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>
6865 <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>
6870 Resolving duplicate section names with differing case (bug 10721)
6875 <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>
6876 <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>
6888 Template with sections, __NOTOC__
6895 <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>
6896 <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>
6897 <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>
6898 <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>
6903 __NOEDITSECTION__ keyword
6909 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6910 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6915 Link inside a section heading
6917 ==Section with a [[Main Page|link]] in it==
6919 <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>
6924 TOC regression (bug 12077)
6931 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6933 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6935 <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>
6938 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6941 <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>
6942 <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>
6943 <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>
6948 BUG 1219 URL next to image (good)
6950 http://example.com [[Image:foobar.jpg]]
6952 <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>
6957 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6960 The line above must have a trailing space!
6963 But just in case it doesn't...
6965 <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>
6966 <p>The line above must have a trailing space!
6968 <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>
6969 <p>But just in case it doesn't...
6974 Header with special characters (bug 25462)
6976 The tooltips shall not show entities to the user (ie. be double escaped)
6993 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6995 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6997 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6998 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6999 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7000 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7001 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7004 <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>
7007 <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>
7010 <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>
7013 <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>
7016 <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>
7022 Headers with excess '=' characters
7023 (Are similar tests necessary beyond the 1st level?)
7027 =''italic'' heading==
7028 ==''italic'' heading=
7030 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7032 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7033 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7034 <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>
7035 <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>
7038 <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>
7039 <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>
7040 <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>
7041 <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>
7046 BUG 1219 URL next to image (broken)
7048 http://example.com[[Image:foobar.jpg]]
7050 <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>
7055 Bug 1186 news: in the middle of text
7057 http://en.wikinews.org/wiki/Wikinews:Workplace
7059 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7065 Namespaced link must have a title
7074 Namespaced link must have a title (bad fragment version)
7076 [[Project:#fragment]]
7078 <p>[[Project:#fragment]]
7084 div with no attributes
7086 <div>HTML rocks</div>
7088 <div>HTML rocks</div>
7093 div with double-quoted attribute
7095 <div id="rock">HTML rocks</div>
7097 <div id="rock">HTML rocks</div>
7102 div with single-quoted attribute
7104 <div id='rock'>HTML rocks</div>
7106 <div id="rock">HTML rocks</div>
7111 div with unquoted attribute
7113 <div id=rock>HTML rocks</div>
7115 <div id="rock">HTML rocks</div>
7120 div with illegal double attributes
7122 <div id="a" id="b">HTML rocks</div>
7124 <div id="b">HTML rocks</div>
7128 # FIXME: produce empty string instead of "class" in the PHP parser, following
7131 div with empty attribute value, space before equals
7135 <div class =>HTML rocks</div>
7137 <div class="">HTML rocks</div>
7141 # This it very inconsistent in the PHP parser: it returns
7142 # class="class" if there is a space between the name and the equal sign (see
7143 # 'div with empty attribute value, space before equals'), but strips the
7144 # attribute completely if the space is missing. We hope that not much content
7145 # depends on this, so are implementing the behavior below in Parsoid for
7146 # consistencies' sake. Disabled for the PHP parser.
7147 # FIXME: fix this behavior in the PHP parser?
7149 div with empty attribute value, no space before equals
7153 <div class=>HTML rocks</div>
7155 <div class="">HTML rocks</div>
7160 HTML multiple attributes correction
7162 <p class="error" class="awesome">Awesome!</p>
7164 <p class="awesome">Awesome!</p>
7169 Table multiple attributes correction
7172 !+ class="error" class="awesome"| status
7177 <th class="awesome"> status
7185 <DIV ID="x">HTML ROCKS</DIV>
7187 <div id="x">HTML ROCKS</div>
7193 text with amp in the middle of nowhere
7197 <p>Remember AT&T?
7202 text with character entity: eacute
7204 I always thought é was a cute letter.
7206 <p>I always thought é was a cute letter.
7211 text with undefined character entity: xacute
7213 I always thought &xacute; was a cute letter.
7215 <p>I always thought &xacute; was a cute letter.
7227 [[Media:Foobar.jpg]]
7229 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7234 Media link with text
7236 [[Media:Foobar.jpg|A neat file to look at]]
7238 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7242 # FIXME: this is still bad HTML tag nesting
7244 Media link with nasty text
7245 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7247 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7249 <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>
7254 Media link to nonexistent file (bug 1702)
7256 [[Media:No such.jpg]]
7258 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7263 Image link to nonexistent file (bug 1850 - good)
7265 [[Image:No such.jpg]]
7267 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7272 :Image link to nonexistent file (bug 1850 - bad)
7274 [[:Image:No such.jpg]]
7276 <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>
7283 Character reference normalization in link text (bug 1938)
7285 [[Main Page|this&that]]
7287 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7294 Test for unicode normalization
7296 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7300 (bug 19451) Links should refer to the normalized form.
7308 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7309 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7310 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7311 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7312 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7317 Empty attribute crash test (bug 2067)
7319 <font color="">foo</font>
7321 <p><font color="">foo</font>
7326 Empty attribute crash test single-quotes (bug 2067)
7328 <font color=''>foo</font>
7330 <p><font color="">foo</font>
7335 Attribute test: equals, then nothing
7337 <font color=>foo</font>
7344 Attribute test: unquoted value
7346 <font color=x>foo</font>
7348 <p><font color="x">foo</font>
7353 Attribute test: unquoted but illegal value (hash)
7355 <font color=#x>foo</font>
7357 <p><font color="#x">foo</font>
7362 Attribute test: no value
7364 <font color>foo</font>
7366 <p><font color="color">foo</font>
7371 Bug 2095: link with three closing brackets
7375 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7380 Bug 2095: link with pipe and three closing brackets
7384 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7389 Bug 2095: link with pipe and three closing brackets, version 2
7391 [[Main Page|[http://example.com/]]]
7393 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7403 Template:Dangerous attribute
7405 " onmouseover="alert(document.cookie)
7409 Template:Dangerous style attribute
7411 border-size: expression(alert(document.cookie))
7417 <div style="float: right; {{{1}}}">Magic div</div>
7421 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7423 <div title="{{test}}"></div>
7425 <div title="This is a test template"></div>
7430 Bug 2304: HTML attribute safety (dangerous template; 2309)
7432 <div title="{{dangerous attribute}}"></div>
7434 <div title=""></div>
7439 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7441 <div style="{{dangerous style attribute}}"></div>
7443 <div style="/* insecure input */"></div>
7448 Bug 2304: HTML attribute safety (safe parameter; 2309)
7450 {{div style|width: 200px}}
7452 <div style="float: right; width: 200px">Magic div</div>
7457 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7459 {{div style|width: expression(alert(document.cookie))}}
7461 <div style="/* insecure input */">Magic div</div>
7466 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7468 {{div style|"><script>alert(document.cookie)</script>}}
7470 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7475 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7477 {{div style|" ><script>alert(document.cookie)</script>}}
7479 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7484 Bug 2304: HTML attribute safety (link)
7486 <div title="[[Main Page]]"></div>
7488 <div title="[[Main Page]]"></div>
7493 Bug 2304: HTML attribute safety (italics)
7495 <div title="''foobar''"></div>
7497 <div title="''foobar''"></div>
7502 Bug 2304: HTML attribute safety (bold)
7504 <div title="'''foobar'''"></div>
7506 <div title="'''foobar'''"></div>
7512 Bug 2304: HTML attribute safety (ISBN)
7514 <div title="ISBN 1234567890"></div>
7516 <div title="ISBN 1234567890"></div>
7521 Bug 2304: HTML attribute safety (RFC)
7523 <div title="RFC 1234"></div>
7525 <div title="RFC 1234"></div>
7530 Bug 2304: HTML attribute safety (PMID)
7532 <div title="PMID 1234567890"></div>
7534 <div title="PMID 1234567890"></div>
7539 Bug 2304: HTML attribute safety (web link)
7541 <div title="http://example.com/"></div>
7543 <div title="http://example.com/"></div>
7548 Bug 2304: HTML attribute safety (named web link)
7550 <div title="[http://example.com/ link]"></div>
7552 <div title="[http://example.com/ link]"></div>
7557 Bug 3244: HTML attribute safety (extension; safe)
7559 <div style="<nowiki>background:blue</nowiki>"></div>
7561 <div style="background:blue"></div>
7566 Bug 3244: HTML attribute safety (extension; unsafe)
7568 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7570 <div style="/* insecure input */"></div>
7574 # More MSIE fun discovered by Tom Gilder
7577 MSIE CSS safety test: spurious slash
7579 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7581 <div style="/* insecure input */">evil</div>
7586 MSIE CSS safety test: hex code
7588 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7590 <div style="/* insecure input */">evil</div>
7595 MSIE CSS safety test: comment in url
7597 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7599 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7604 MSIE CSS safety test: comment in expression
7606 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7608 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7614 Table attribute legitimate extension
7617 !+ style="<nowiki>color:blue</nowiki>"| status
7622 <th style="color:blue"> status
7628 Table attribute safety
7631 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7636 <th style="/* insecure input */"> status
7642 CSS line continuation 1
7644 <div style="background-image: u\ rl(test.jpg);"></div>
7646 <div style="/* insecure input */"></div>
7651 CSS line continuation 2
7653 <div style="background-image: u\ rl(test.jpg); "></div>
7655 <div style="/* insecure input */"></div>
7666 Expansion of multi-line templates in attribute values (bug 6255)
7668 <div style="background: {{identity|#00FF00}}">-</div>
7670 <div style="background: #00FF00">-</div>
7676 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7678 <div style="background:
7681 <div style="background: #00FF00">-</div>
7686 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7688 <div style="background: #00FF00">-</div>
7690 <div style="background: #00FF00">-</div>
7695 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7698 Parser hook: empty input
7711 Parser hook: empty input using terminated empty elements
7724 Parser hook: empty input using terminated empty elements (space before)
7737 Parser hook: basic input
7751 Parser hook: case insensitive
7765 Parser hook: case insensitive, redux
7778 Parser hook: nested tags
7782 <tag><tag></tag></tag>
7793 Parser hook: basic arguments
7795 <tag width=200 height = "100" depth = '50' square></tag>
7803 'square' => 'square',
7810 Parser hook: argument containing a forward slash (bug 5344)
7812 <tag filename='/tmp/bla'></tag>
7817 'filename' => '/tmp/bla',
7824 Parser hook: empty input using terminated empty elements (bug 2374)
7837 # </tag> should be output literally since there is no matching tag that begins it
7839 Parser hook: basic arguments using terminated empty elements (bug 2374)
7841 <tag width=200 height = "100" depth = '50' square/>
7851 'square' => 'square',
7860 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7864 Parser hook: static parser hook not inside a comment
7866 <statictag>hello, world</statictag>
7867 <statictag action=flush/>
7875 Parser hook: static parser hook inside a comment
7877 <!-- <statictag>hello, world</statictag> -->
7878 <statictag action=flush/>
7884 # Nested template calls; this case was broken by Parser.php rev 1.506,
7888 Template:One-parameter
7890 (My parameter is: {{{1}}})
7894 Template:Map-one-parameter
7900 Nested template calls
7902 {{Map-one-parameter|One-parameter|param}}
7904 <p>(My parameter is: param)
7913 Sanitizer: Closing of open tags
7915 <s></s><table></table>
7917 <s></s><table></table>
7922 Sanitizer: Closing of open but not closed tags
7931 Sanitizer: Closing of closed but not open tags
7940 Sanitizer: Closing of closed but not open table tags
7942 Table not started</td></tr></table>
7944 <p>Table not started</td></tr></table>
7949 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7951 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7953 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7958 Sanitizer: Validating the contents of the id attribute (bug 4515)
7964 Something, but definitely not <br id="9" />...
7968 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7972 <br id="foo" /><br id="foo" />
7974 Something need to be done. foo-2 ?
7978 Language converter: output gets cut off unexpectedly (bug 5757)
7982 this bit is safe: }-
7984 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7986 then we get cut off here: }-
7988 all additional text is vanished
7990 <p>this bit is safe: }-
7991 </p><p>but if we add a conversion instance: xxx
7992 </p><p>then we get cut off here: }-
7993 </p><p>all additional text is vanished
7998 Self closed html pairs (bug 5487)
8001 <center><font id="bug" />Centered text</center>
8002 <div><font id="bug2" />In div text</div>
8004 <center><font id="bug" />Centered text</center>
8005 <div><font id="bug2" />In div text</div>
8014 Punctuation: nbsp before exclamation
8018 <p>C'est grave !
8023 Punctuation: CSS !important (bug 11874)
8025 <div style="width:50% !important">important</div>
8027 <div style="width:50% !important">important</div>
8032 Punctuation: CSS ! important (bug 11874; with space after)
8034 <div style="width:50% ! important">important</div>
8036 <div style="width:50% ! important">important</div>
8042 HTML bullet list, closed tags (bug 5497)
8057 HTML bullet list, unclosed tags (bug 5497)
8074 HTML ordered list, closed tags (bug 5497)
8089 HTML ordered list, unclosed tags (bug 5497)
8106 HTML nested bullet list, closed tags (bug 5497)
8131 HTML nested bullet list, open tags (bug 5497)
8156 HTML nested ordered list, closed tags (bug 5497)
8181 HTML nested ordered list, open tags (bug 5497)
8206 HTML ordered list item with parameters oddity
8208 <ol><li id="fragment">One</li></ol>
8210 <ol><li id="fragment">One</li></ol>
8215 bug 5918: autonumbering
8217 [http://first/] [http://second] [ftp://ftp]
8221 [mailto:enclosed@mail.tld With target]
8223 [mailto:enclosed@mail.tld]
8225 mailto:inline@mail.tld
8227 <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>
8228 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8229 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8230 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8231 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8237 # Security and HTML correctness
8238 # From Nick Jenkins' fuzz testing
8242 Fuzz testing: Parser13
8257 Fuzz testing: Parser14
8262 <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>
8263 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8265 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8272 Fuzz testing: Parser14-table
8277 <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>
8278 <table style="__TOC__">
8284 # Known to produce bogus xml (extra </td>)
8286 Fuzz testing: Parser16
8306 Fuzz testing: Parser21
8309 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8314 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8324 Fuzz testing: Parser22
8326 http://===r:::https://b
8330 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8338 # Known to produce bad XML for now
8340 Fuzz testing: Parser24
8347 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8348 <br style="onmouseover='alert(document.cookie);' " />
8350 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8355 <u class="|">}}}} >
8356 <br style="onmouseover='alert(document.cookie);'" />
8358 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8367 # Note: the current result listed for this is not what the original one was,
8368 # but the original bug was JavaScript injection, which is fixed in any case.
8369 # It's not clear that the original result listed was any more correct than the
8370 # current one. Original result:
8373 # <li class="||">
8374 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8376 Fuzz testing: Parser25 (bug 6055)
8382 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8384 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8389 Fuzz testing: URL adjacent extension (with space, clean)
8392 http://example.com <nowiki>junk</nowiki>
8394 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8399 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8402 http://example.com<nowiki>junk</nowiki>
8404 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8409 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8412 http://example.com<pre>junk</pre>
8414 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8419 Fuzz testing: image with bogus manual thumbnail
8421 [[Image:foobar.jpg|thumbnail= ]]
8423 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8428 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8430 <pre dir=" "></pre>
8432 <pre dir=" "></pre>
8437 Parsing optional HTML elements (Bug 6171)
8442 <td> Some tabular data</td>
8443 <td> More tabular data ...
8444 <td> And yet som tabular data</td>
8450 <td> Some tabular data</td>
8451 <td> More tabular data ...
8452 </td><td> And yet som tabular data</td>
8459 Correct handling of <td>, <tr> (Bug 6171)
8464 <td> Some tabular data</td>
8465 <td> More tabular data ...</td>
8466 <td> And yet som tabular data</td>
8472 <td> Some tabular data</td>
8473 <td> More tabular data ...</td>
8474 <td> And yet som tabular data</td>
8482 Parsing crashing regression (fr:JavaScript)
8486 <p></body></x>
8491 Inline wiki vs wiki block nesting
8497 <p><b>Bold paragraph</b>
8498 </p><p>New wiki paragraph
8503 Inline HTML vs wiki block nesting
8511 <p><b>Bold paragraph</b>
8512 </p><p>New wiki paragraph
8516 # Original result was this:
8517 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8519 # While that might be marginally more intuitive, maybe, the six-apostrophe
8520 # construct is clearly pathological and the result stated here (which is what
8521 # the parser actually does) is about as reasonable as anything.
8523 Mixing markup for italics and bold
8526 '''bold''''''bold''bolditalics'''''
8528 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8536 Article for special page transclusion test
8540 Special page transclusion
8543 {{Special:Prefixindex/Xyzzyx}}
8545 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8550 Special page transclusion twice (bug 5021)
8553 {{Special:Prefixindex/Xyzzyx}}
8554 {{Special:Prefixindex/Xyzzyx}}
8556 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8557 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8562 Transclusion of default MediaWiki message
8564 {{MediaWiki:Mainpage}}
8571 Transclusion of nonexistent MediaWiki message
8573 {{MediaWiki:Mainpagexxx}}
8575 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8580 Transclusion of MediaWiki message with underscore
8582 {{MediaWiki:history_short}}
8589 Transclusion of MediaWiki message with space
8591 {{MediaWiki:history short}}
8598 Invalid header with following text
8608 Section extraction test (section 0)
8628 Section extraction test (section 1)
8650 Section extraction test (section 2)
8671 Section extraction test (section 3)
8691 Section extraction test (section 4)
8715 Section extraction test (section 5)
8735 Section extraction test (section 6)
8756 Section extraction test (section 7)
8776 Section extraction test (section 8)
8796 Section extraction test (section 9)
8817 Section extraction test (section 10)
8837 Section extraction test (nonexistent section 11)
8856 Section extraction test with bogus heading (section 1)
8861 ==bogus== not a legal section
8865 ==bogus== not a legal section
8869 Section extraction test with bogus heading (section 2)
8874 ==bogus== not a legal section
8881 Section extraction test with comment after heading (section 1)
8893 Section extraction test with comment after heading (section 2)
8905 Section extraction test with bogus <nowiki> heading (section 1)
8910 ==bogus== <nowiki>not a legal section</nowiki>
8914 ==bogus== <nowiki>not a legal section</nowiki>
8918 Section extraction test with bogus <nowiki> heading (section 2)
8923 ==bogus== <nowiki>not a legal section</nowiki>
8930 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8931 # instead of respecting commented sections
8933 Section extraction prefixed by comment (section 1)
8944 Section extraction prefixed by comment (section 2)
8955 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8956 # instead of respecting HTML-style headings
8958 Section extraction, mixed wiki and html (section 1)
8974 Section extraction, mixed wiki and html (section 2)
8990 # Formerly testing for bug 3342
8992 Section extraction, heading surrounded by <noinclude>
8996 <noinclude>==unmarked==</noinclude>
9002 # Test behaviour of bug 19910
9004 Sectiion with all-equals
9009 The line above must have a trailing space
9012 But just in case it doesn't...
9016 But just in case it doesn't...
9020 Section replacement test (section 0)
9051 Section replacement test (section 1)
9080 Section replacement test (section 2)
9110 Section replacement test (section 3)
9141 Section replacement test (section 4)
9168 Section replacement test (section 5)
9199 Section replacement test (section 6)
9229 Section replacement test (section 7)
9260 Section replacement test (section 8)
9291 Section replacement test (section 9)
9320 Section replacement test (section 10)
9350 Section replacement test with initial whitespace (bug 13728)
9354 Preformatted initial line
9358 Preformatted initial line
9365 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9377 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9390 Section extraction, <pre> around bogus header (bug 10309)
9407 Section replacement, <pre> around bogus header (bug 10309)
9409 noxml replace=2,"xxx"
9430 Handling of 
 in URLs
9434 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9441 5 quotes, code coverage +1 line
9448 Special:Search page linking.
9452 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9467 * {{SUBJECTPAGENAME}}
9468 * {{SUBJECTPAGENAMEE}}
9475 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9477 <ul><li> Parser test
9478 </li><li> Parser test
9479 </li><li> Parser test
9480 </li><li> Parser_test
9481 </li><li> Parser test
9482 </li><li> Parser_test
9483 </li><li> Talk:Parser test
9484 </li><li> Talk:Parser_test
9485 </li><li> Parser test
9486 </li><li> Parser_test
9493 </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>
9497 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9507 image4 |300px| centre
9508 image5.svg| http://///////
9513 <ul class="gallery">
9514 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9515 <div style="height: 150px;">Image1.png</div>
9516 <div class="gallerytext">
9519 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9520 <div style="height: 150px;">Image2.gif</div>
9521 <div class="gallerytext">
9526 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9527 <div style="height: 150px;">Image3</div>
9528 <div class="gallerytext">
9531 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9532 <div style="height: 150px;">Image4</div>
9533 <div class="gallerytext">
9538 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9539 <div style="height: 150px;">Image5.svg</div>
9540 <div class="gallerytext">
9541 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9545 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9546 <div style="height: 150px;">* image6</div>
9547 <div class="gallerytext">
9555 Gallery (with options)
9557 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9558 File:Nonexistant.jpg|caption
9559 File:Nonexistant.jpg
9560 image:foobar.jpg|some '''caption''' [[Main Page]]
9562 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9565 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9566 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9567 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9568 <div style="height: 70px;">Nonexistant.jpg</div>
9569 <div class="gallerytext">
9574 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9575 <div style="height: 70px;">Nonexistant.jpg</div>
9576 <div class="gallerytext">
9579 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9580 <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>
9581 <div class="gallerytext">
9582 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9586 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9587 <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>
9588 <div class="gallerytext">
9591 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9592 <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>
9593 <div class="gallerytext">
9603 Gallery with wikitext inside caption
9606 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9607 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9610 <ul class="gallery">
9611 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9612 <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>
9613 <div class="gallerytext">
9614 <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>
9618 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9619 <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>
9620 <div class="gallerytext">
9621 <p>This is a test template
9630 gallery (with showfilename option)
9632 <gallery showfilename>
9633 File:Nonexistant.jpg|caption
9634 File:Nonexistant.jpg
9635 image:foobar.jpg|some '''caption''' [[Main Page]]
9639 <ul class="gallery">
9640 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9641 <div style="height: 150px;">Nonexistant.jpg</div>
9642 <div class="gallerytext">
9643 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9648 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9649 <div style="height: 150px;">Nonexistant.jpg</div>
9650 <div class="gallerytext">
9651 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9655 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9656 <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>
9657 <div class="gallerytext">
9658 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9659 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9663 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9664 <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>
9665 <div class="gallerytext">
9666 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9675 Gallery (with namespace-less filenames)
9678 File:Nonexistant.jpg
9684 <ul class="gallery">
9685 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9686 <div style="height: 150px;">Nonexistant.jpg</div>
9687 <div class="gallerytext">
9690 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9691 <div style="height: 150px;">Nonexistant.jpg</div>
9692 <div class="gallerytext">
9695 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9696 <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>
9697 <div class="gallerytext">
9700 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9701 <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>
9702 <div class="gallerytext">
9710 HTML Hex character encoding (spells the word "JavaScript")
9712 JavaScript
9714 <p>JavaScript
9719 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9723 <p>&#xsee;&#XSEE;
9728 HTML Hex character encoding mixed case
9737 __FORCETOC__ override
9749 ISBN 978-0-1234-56 789
9751 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9756 ISBN followed by 5 spaces
9767 ISBN ISBN 1234567890
9769 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9774 Bug 22905: <abbr> followed by ISBN followed by </a>
9776 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9778 <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>
9787 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9792 Double RFC with a wiki link
9796 <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>
9805 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9810 Centre-aligned image
9812 [[Image:foobar.jpg|centre]]
9814 <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>
9821 [[Image:foobar.jpg|none]]
9823 <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>
9828 Width + Height sized image (using px) (height is ignored)
9830 [[Image:foobar.jpg|640x480px]]
9832 <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>
9837 Width-sized image (using px, no following whitespace)
9839 [[Image:foobar.jpg|640px]]
9841 <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>
9846 Width-sized image (using px, with following whitespace - test regression from r39467)
9848 [[Image:foobar.jpg|640px ]]
9850 <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>
9855 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9857 [[Image:foobar.jpg| 640px]]
9859 <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>
9864 Another italics / bold test
9872 # Note the results may be incorrect, as parserTest output included this:
9873 # XML error: Mismatched tag at byte 6120:
9874 # ...<dd> </dt></dl> </dd...
9882 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9893 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9895 Images with the "|" character in the comment
9897 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9899 <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>
9904 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9906 <html><script>alert(1);</script></html>
9908 <p><html><script>alert(1);</script></html>
9913 HTML with raw HTML ($wgRawHtml==true)
9917 <html><script>alert(1);</script></html>
9919 <p><script>alert(1);</script>
9924 Parents of subpages, one level up
9926 subpage title=[[Subpage test/L1/L2/L3]]
9930 <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>
9936 Parents of subpages, one level up, not named
9938 subpage title=[[Subpage test/L1/L2/L3]]
9942 <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>
9949 Parents of subpages, two levels up
9951 subpage title=[[Subpage test/L1/L2/L3]]
9957 <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
9958 </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>
9963 Parents of subpages, two levels up, without trailing slash or name.
9965 subpage title=[[Subpage test/L1/L2/L3]]
9974 Parents of subpages, two levels up, with lots of extra trailing slashes.
9976 subpage title=[[Subpage test/L1/L2/L3]]
9980 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9985 Definition list code coverage
9991 <dl><dt> title  </dt><dd> def
9992 </dd><dt> title </dt><dd> def
9993 </dd><dt>title</dt><dd> def
9999 Don't fall for the self-closing div
10001 <div>hello world</div/>
10003 <div>hello world</div>
10012 <p>[[:Template:Msg]]
10021 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10025 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10027 Always escape literal '>' in output, not just after '<'
10041 <p>This is a test template
10042 This is a test template
10054 Inclusion of !userCanEdit() content
10058 <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>
10064 Out-of-order TOC heading levels
10073 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10075 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10077 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10078 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10081 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10083 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10084 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10089 <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>
10090 <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>
10091 <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>
10092 <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>
10093 <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>
10094 <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>
10100 ISBN with a dummy number
10110 ISBN with space-delimited number
10114 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10120 ISBN with multiple spaces, no number
10139 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10140 </p><p>ISBN 12345678901
10146 ISBN with trailing year (bug 8110)
10148 ISBN 1-234-56789-0 - 2006
10150 ISBN 1 234 56789 0 - 2006
10152 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10153 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10161 {{anchorencode:foo bar©#%n}}
10163 <p>foo_bar.C2.A9.23.25n
10168 anchorencode trims spaces
10170 {{anchorencode: __pretty__please__}}
10177 anchorencode deals with links
10179 {{anchorencode: [[hello|world]] [[hi]]}}
10186 anchorencode deals with templates
10188 {{anchorencode: {{Foo}} }}
10195 anchorencode encodes like the TOC generator: (bug 18431)
10197 === _ +:.3A%3A&&]] ===
10198 {{anchorencode: _ +:.3A%3A&&]] }}
10201 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10202 <p>.2B:.3A.253A.26.26.5D.5D
10206 # Expected output in the following test is not necessarily expected (there
10207 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10208 # only testing for well-formedness.
10210 Bug 6200: blockquotes and paragraph formatting
10230 Bug 8293: Use of center tag ruins paragraph formatting
10252 ### Language variants related tests
10255 Self-link in language variants
10257 title=[[Dunav]] language=sr
10259 Both [[Dunav]] and [[Дунав]] are names for this river.
10261 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10267 Link to pages in language variants
10271 Main Page can be written as [[Маин Паге]]
10273 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10279 Multiple links to pages in language variants
10283 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10285 <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>.
10291 Simple template in language variants
10297 <p>This is a test template
10303 Template with explicit namespace in language variants
10309 <p>This is a test template
10315 Basic test for template parameter in language variants
10319 {{парамтест|param=foo}}
10321 <p>This is a test template with parameter foo
10327 Simple category in language variants
10331 [[Category:МедиаWики Усер'с Гуиде]]
10333 <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>
10338 Stripping -{}- tags (language variants)
10342 Latin proverb: -{Ne nuntium necare}-
10344 <p>Latin proverb: Ne nuntium necare
10350 Prevent conversion with -{}- tags (language variants)
10352 language=sr variant=sr-ec
10354 Latinski: -{Ne nuntium necare}-
10356 <p>Латински: Ne nuntium necare
10362 Prevent conversion of text with -{}- tags (language variants)
10364 language=sr variant=sr-ec
10366 Latinski: -{Ne nuntium necare}-
10368 <p>Латински: Ne nuntium necare
10374 Prevent conversion of links with -{}- tags (language variants)
10376 language=sr variant=sr-ec
10380 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10386 -{}- tags within headlines (within html for parserConvert())
10388 language=sr variant=sr-ec
10392 <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>
10398 Explicit definition of language variant alternatives
10400 language=zh variant=zh-tw
10402 -{zh:China;zh-tw:Taiwan}-, not China
10404 <p>Taiwan, not China
10410 Explicit session-wise language variant mapping (A flag and - flag)
10412 language=zh variant=zh-tw
10414 Taiwan is not China.
10415 But -{A|zh:China;zh-tw:Taiwan}- is China,
10416 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10417 and -{China}- is China.
10419 <p>Taiwan is not China.
10420 But Taiwan is Taiwan,
10421 (This should be stripped!)
10422 and China is China.
10427 Explicit session-wise language variant mapping (H flag for hide)
10429 language=zh variant=zh-tw
10431 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10434 <p>(This should be stripped!)
10440 Adding explicit conversion rule for title (T flag)
10442 language=zh variant=zh-tw showtitle
10444 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10447 <p>Should be stripped!
10452 Testing that changing the language variant here in the tests actually works
10454 language=zh variant=zh showtitle
10456 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10459 <p>Should be stripped!
10464 Bug 24072: more test on conversion rule for title
10466 language=zh variant=zh-tw showtitle
10468 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10469 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10472 <p>This should be stripped!
10473 This won't take interferes with the title rule.
10478 Raw output of variant escape tags (R flag)
10480 language=zh variant=zh-tw
10482 Raw: -{R|zh:China;zh-tw:Taiwan}-
10484 <p>Raw: zh:China;zh-tw:Taiwan
10489 Nested using of manual convert syntax
10491 language=zh variant=zh-hk
10493 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10495 <p>Nested: Hello Hong Kong!
10500 Do not convert roman numbers to language variants
10502 language=sr variant=sr-ec
10506 <p>Фридрих IV је цар.
10511 Unclosed language converter markup "-{"
10522 Don't convert raw rule "-{R|=>}-" to "=>"
10539 Bug 529: Uncovered bullet
10549 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10550 # Templates in Wikipedia rely on this behavior, as tidy has always been
10551 # enabled there. These tests are normally run *without* tidy, so specify the
10552 # full output here.
10553 # To test realistic parsing behavior, apply a tidy-like transformation to both
10554 # the expected output and your parser's output.
10556 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10558 ******* Foo {{bullet}}
10560 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10573 Bug 529: Uncovered table already at line-start
10596 Bug 529: Uncovered bullet in parser function result
10598 * Foo {{lc:{{bullet}} }}
10607 Bug 5678: Double-parsed template argument
10609 {{lc:{{{1}}}|hello}}
10616 Bug 5678: Double-parsed template invocation
10618 {{lc:{{paramtest {{!}} param = hello }} }}
10620 <p>{{paramtest | param = hello }}
10625 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10628 title=[[Main Page]]
10630 {{PRVNÍVELKÉ:ěščř}}
10631 {{prvnívelké:ěščř}}
10651 Morwen/13: Unclosed link followed by heading
10658 <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>
10663 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10670 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10675 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10682 <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>
10697 Paragraphs inside divs (no extra line breaks)
10709 Paragraphs inside divs (extra line break on open)
10724 Paragraphs inside divs (extra line break on close)
10739 Paragraphs inside divs (extra line break on open and close)
10756 Nesting tags, paragraphs on lines which begin with <div>
10760 <div></div><strong>A
10769 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10771 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10775 <blockquote>Line one
10777 Line two</blockquote>
10779 <blockquote>Line one
10780 Line two</blockquote>
10785 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10792 Line two</blockquote>
10797 Line two</blockquote>
10802 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10806 <blockquote>Line one
10811 <blockquote>Line one
10819 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10838 Paragraphs inside blockquotes/divs (no extra line breaks)
10840 <blockquote><div>Line one
10842 Line two</div></blockquote>
10844 <blockquote><div>Line one
10845 Line two</div></blockquote>
10850 Paragraphs inside blockquotes/divs (extra line break on open)
10855 Line two</div></blockquote>
10860 Line two</div></blockquote>
10865 Paragraphs inside blockquotes/divs (extra line break on close)
10867 <blockquote><div>Line one
10870 </div></blockquote>
10872 <blockquote><div>Line one
10875 </div></blockquote>
10880 Paragraphs inside blockquotes/divs (extra line break on open and close)
10886 </div></blockquote>
10892 </div></blockquote>
10897 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10899 wgLinkHolderBatchSize=0
10905 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10906 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10907 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10912 Free external link invading image caption
10914 [[Image:Foobar.jpg|thumb|http://x|hello]]
10916 <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>
10921 Bug 15196: localised external link numbers
10925 [http://en.wikipedia.org/]
10927 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10932 Multibyte character in padleft
10934 {{padleft:-Hello|7|Æ}}
10941 Multibyte character in padright
10943 {{padright:Hello-|7|Æ}}
10952 wgUseDynamicDates=1
10956 <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>
10961 formatdate parser function
10963 {{#formatdate:2009-03-24}}
10965 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10970 formatdate parser function, with default format
10972 {{#formatdate:2009-03-24|mdy}}
10974 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10979 Linked date with autoformatting disabled
10981 wgUseDynamicDates=false
10985 <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>
10990 Spacing of numbers in formatted dates
10992 {{#formatdate:January 15}}
10994 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10999 Spacing of numbers in formatted dates (linked)
11001 wgUseDynamicDates=true
11005 <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>
11010 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
11012 language=nl title=[[MediaWiki:Common.css]]
11014 {{#formatdate:2009-03-24|dmy}}
11016 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11029 Edit comment with link
11033 I like the [[Main Page]] a lot
11035 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11039 Edit comment with link and link text
11043 I like the [[Main Page|best pages]] a lot
11045 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11049 Edit comment with link and link text with suffix
11053 I like the [[Main Page|best page]]s a lot
11055 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11059 Edit comment with section link (non-local, eg in history list)
11061 comment title=[[Main Page]]
11063 /* External links */ removed bogus entries
11065 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11069 Edit comment with section link and text before it (non-local, eg in history list)
11071 comment title=[[Main Page]]
11073 pre-comment text /* External links */ removed bogus entries
11075 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>
11079 Edit comment with section link (local, eg in diff view)
11081 comment local title=[[Main Page]]
11083 /* External links */ removed bogus entries
11085 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11089 Edit comment with subpage link (bug 14080)
11093 title=[[Subpage test]]
11095 Poked at a [[/subpage]] here...
11097 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11101 Edit comment with subpage link and link text (bug 14080)
11105 title=[[Subpage test]]
11107 Poked at a [[/subpage|neat little page]] here...
11109 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11113 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11116 title=[[Subpage test]]
11118 Poked at a [[/subpage]] here...
11120 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11124 Edit comment with bare anchor link (local, as on diff)
11128 title=[[Main Page]]
11132 <a href="#section">#section</a>
11136 Edit comment with bare anchor link (non-local, as on history)
11139 title=[[Main Page]]
11143 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11147 Anchor starting with underscore
11151 <p><a href="#_ref">One</a>
11156 Id starting with underscore
11158 <div id="_ref"></div>
11160 <div id="_ref"></div>
11165 Space normalisation on autocomment (bug 22784)
11168 title=[[Main Page]]
11170 /* __hello__world__ */
11172 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11176 percent-encoding and + signs in comments (Bug 26410)
11180 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11182 <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>
11186 Bad images - basic functionality
11195 Bad images - bug 16039: text after bad image disappears
11209 Verify that displaytitle works (bug #22501) no displaytitle
11213 wgAllowDisplayTitle=true
11214 wgRestrictDisplayTitle=false
11216 this is not the the title
11219 <p>this is not the the title
11224 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11229 wgAllowDisplayTitle=true
11230 wgRestrictDisplayTitle=false
11232 this is not the the title
11233 {{DISPLAYTITLE:whatever}}
11236 <p>this is not the the title
11241 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11246 wgAllowDisplayTitle=true
11247 wgRestrictDisplayTitle=true
11249 this is not the the title
11250 {{DISPLAYTITLE:whatever}}
11253 <p>this is not the the title
11258 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11263 wgAllowDisplayTitle=true
11264 wgRestrictDisplayTitle=true
11266 this is not the the title
11267 {{DISPLAYTITLE:screen}}
11270 <p>this is not the the title
11275 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11280 wgAllowDisplayTitle=false
11282 this is not the the title
11283 {{DISPLAYTITLE:screen}}
11286 <p>this is not the the title
11287 <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>
11292 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11297 wgAllowDisplayTitle=false
11299 this is not the the title
11302 <p>this is not the the title
11307 preload: check <noinclude> and <includeonly>
11311 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11317 preload: check <onlyinclude>
11321 Goodbye <onlyinclude>Hello world</onlyinclude>
11327 preload: can pass tags through if we want to
11331 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11333 <includeonly>Hello world</includeonly>
11337 preload: check that it doesn't try to do tricks
11341 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11343 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11347 Play a bit with r67090 and bug 3158
11351 <div style="width:50% !important"> </div>
11352 <div style="width:50% !important"> </div>
11353 <div style="width:50% !important"> </div>
11354 <div style="border : solid;"> </div>
11356 <div style="width:50% !important"> </div>
11357 <div style="width:50% !important"> </div>
11358 <div style="width:50% !important"> </div>
11359 <div style="border : solid;"> </div>
11364 HTML5 data attributes
11366 <span data-foo="bar">Baz</span>
11367 <p data-abc-def_hij="">Quuz</p>
11369 <p><span data-foo="bar">Baz</span>
11371 <p data-abc-def_hij="">Quuz</p>
11376 percent-encoding and + signs in internal links (Bug 26410)
11378 [[User:+%]] [[Page+title%]]
11379 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11380 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11381 [[%33%45]] [[%33%45+]]
11383 <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>
11384 <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>
11385 <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>
11386 <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>
11391 Special characters in embedded file links (bug 27679)
11393 [[File:Contains & ampersand.jpg]]
11394 [[File:Does not exist.jpg|Title with & ampersand]]
11396 <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>
11397 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11403 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11405 Text's been normalized?
11407 <p>Text's been normalized?
11412 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11414 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11416 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11421 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11423 [http://www.example.org/ ideograms]
11425 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11430 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11432 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11434 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11458 Bug 31098 Template which includes system messages which includes the template
11462 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11463 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11468 Deprecated presentational attributes are converted to css
11471 | valign=top align=left width=100 height=25% | Asdf
11473 <ul type="disc"></ul>
11477 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11479 <ul style="list-style-type: disc;"></ul>
11484 Bug31490 Turkish: ucfirst 'blah'
11495 Bug31490 Turkish: ucfirst 'ix'
11506 Bug31490 Turkish: lcfirst 'BLAH'
11517 Bug31490 Turkish: ucfırst (with a dotless i)
11523 <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>
11528 Bug31490 ucfırst (with a dotless i) with English language
11534 <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>
11539 Bug 26375: TOC with italics
11541 title=[[Main Page]]
11544 == ''Lost'' episodes ==
11546 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11548 <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>
11551 <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>
11556 Bug 26375: TOC with bold
11558 title=[[Main Page]]
11561 == '''should be bold''' then normal text ==
11563 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11565 <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>
11568 <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>
11573 Bug 33845: Headings become cursive in TOC when they contain an image
11575 title=[[Main Page]]
11578 == Image [[Image:foobar.jpg]] ==
11580 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11582 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11585 <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>
11590 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11592 title=[[Main Page]]
11595 == <blockquote>Quote</blockquote> ==
11597 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11599 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11602 <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>
11607 Unclosed tags in TOC
11609 title=[[Main Page]]
11613 <small>Hanc marginis exiguitas non caperet.</small>
11616 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11618 <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>
11621 <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>
11622 <p><small>Hanc marginis exiguitas non caperet.</small>
11628 Multiple tags in TOC
11631 == <i>Foo</i> <b>Bar</b> ==
11633 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11635 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11637 <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>
11638 <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>
11641 <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>
11642 <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>
11647 Tags with parameters in TOC
11650 == <sup class="in-h2">Hello</sup> ==
11652 == <sup class="a > b">Evilbye</sup> ==
11654 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11656 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11657 <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>
11660 <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>
11661 <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>
11666 span tags with directionality in TOC
11669 == <span dir="ltr">C++</span> ==
11671 == <span dir="rtl">זבנג!</span> ==
11673 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11675 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11677 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11679 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11681 <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>
11682 <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>
11683 <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>
11684 <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>
11685 <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>
11688 <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>
11689 <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>
11690 <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>
11691 <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>
11692 <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>
11699 == {{int:headline_sample}} ==
11703 Bug 32057: Title needed when expanding <h> nodes.
11705 title=[[Main Page]]
11709 <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>
11714 Strip marker in urlencode
11716 {{urlencode:x<nowiki/>y}}
11717 {{urlencode:x<nowiki/>y|wiki}}
11718 {{urlencode:x<nowiki/>y|path}}
11745 Strip marker in formatNum
11747 {{formatnum:1<nowiki/>2}}
11748 {{formatnum:1<nowiki/>2|R}}
11756 Strip marker in grammar
11760 {{grammar:elative|foo<nowiki/>bar}}
11767 Strip marker in padleft
11769 {{padleft:|2|x<nowiki/>y}}
11776 Strip marker in padright
11778 {{padright:|2|x<nowiki/>y}}
11785 Strip marker in anchorencode
11787 {{anchorencode:x<nowiki/>y}}
11794 nowiki inside link inside heading (bug 18295)
11796 ==[[foo|x<nowiki>y</nowiki>z]]==
11798 <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>
11803 new support for bdi element (bug 31817)
11805 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11807 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11812 Ignore pipe between table row attributes
11816 |- id=foo | style='color: red'
11824 <tr id="foo" style="color: red">
11831 Gallery override link with WikiLink (bug 34852)
11834 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11837 <ul class="gallery">
11838 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11839 <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>
11840 <div class="gallerytext">
11850 Gallery override link with absolute external link (bug 34852)
11853 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11856 <ul class="gallery">
11857 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11858 <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>
11859 <div class="gallerytext">
11869 Gallery override link with malicious javascript (bug 34852)
11872 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11875 <ul class="gallery">
11876 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11877 <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>
11878 <div class="gallerytext">
11888 Language parser function
11897 Padleft and padright as substr
11899 {{padleft:|3|abcde}}
11900 {{padright:|3|abcde}}
11908 Bug 34939 - Case insensitive link parsing ([HttP://])
11910 [HttP://MediaWiki.Org/]
11912 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11917 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11919 [HttP://MediaWiki.Org/ MediaWiki]
11921 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11926 Bug 34939 - Case insensitive link parsing (HttP://)
11928 HttP://MediaWiki.Org/
11930 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11935 ### Parsoids-specific tests
11936 ### Parsoid-PHP parser incompatibilities
11939 1. SOL-sensitive wikitext tokens as template-args
11953 #### The following section of tests are primarily to test
11954 #### wikitext escaping capabilities of Parsoid.
11955 #### A lot of the tests are disabled for the PHP parser either
11956 #### because of minor newline diffs or other reasons.
11957 #### As Parsoid serializer can handle newlines and other HTML
11958 #### more robustly, some of these tests might get reenabled
11959 #### for the PHP parser.
11961 #### --------------- Headings ---------------
11963 #### 1. Nested inside html <h1>=foo=</h1>
11964 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11965 #### 3. Nested inside html with wikitext split by html tags
11966 #### 4. No escape needed
11967 #### 5. Empty headings <h1></h1>
11968 #### 6. Heading chars in SOL context
11969 #### ----------------------------------------
11971 Headings: 0. Unnested
11973 <nowiki>=foo=</nowiki>
11975 <nowiki>=foo</nowiki>''a''=
11978 </p><p>=foo<i>a</i>=
11983 Headings: 1. Nested inside html
11987 =<nowiki>=foo=</nowiki>=
11988 ==<nowiki>=foo=</nowiki>==
11989 ===<nowiki>=foo=</nowiki>===
11990 ====<nowiki>=foo=</nowiki>====
11991 =====<nowiki>=foo=</nowiki>=====
11992 ======<nowiki>=foo=</nowiki>======
12003 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12008 <nowiki>*bar</nowiki>
12012 <nowiki>=bar=</nowiki>
12020 Headings: 3. Nested inside html with wikitext split by html tags
12024 =<nowiki>=</nowiki>'''bold'''foo==
12026 <h1>=<b>bold</b>foo=</h1>
12030 Headings: 4. No escaping needed (testing just h1 and h2)
12045 <h1><i>=</i>foo=</h1>
12050 Headings: 5. Empty headings
12054 =<nowiki></nowiki>=
12055 ==<nowiki></nowiki>==
12056 ===<nowiki></nowiki>===
12057 ====<nowiki></nowiki>====
12058 =====<nowiki></nowiki>=====
12059 ======<nowiki></nowiki>======
12070 Headings: 6. Heading chars in SOL context
12074 <!--cmt--><nowiki>=h1=</nowiki>
12080 #### --------------- Lists ---------------
12081 #### 0. Outside nests (*foo, etc.)
12082 #### 1. Nested inside html <ul><li>*foo</li></ul>
12083 #### 2. Inside definition lists
12084 #### 3. Only bullets at start should be escaped
12085 #### 4. No escapes needed
12086 #### 5. No unnecessary escapes
12087 #### 6. Escape bullets in SOL position
12088 #### 7. Escape bullets in a multi-line context
12089 #### ----------------------------------------
12092 Lists: 0. Outside nests
12094 <nowiki>*foo</nowiki>
12096 <nowiki>#foo</nowiki>
12104 Lists: 1. Nested inside html
12106 *<nowiki>*foo</nowiki>
12108 *<nowiki>#foo</nowiki>
12110 *<nowiki>:foo</nowiki>
12112 *<nowiki>;foo</nowiki>
12114 #<nowiki>*foo</nowiki>
12116 #<nowiki>#foo</nowiki>
12118 #<nowiki>:foo</nowiki>
12120 #<nowiki>;foo</nowiki>
12142 Lists: 2. Inside definition lists
12144 ;<nowiki>;foo</nowiki>
12146 ;<nowiki>:foo</nowiki>
12148 ;<nowiki>:foo</nowiki>
12151 :<nowiki>:foo</nowiki>
12166 Lists: 3. Only bullets at start of text should be escaped
12168 *<nowiki>*foo*bar</nowiki>
12170 *<nowiki>*foo</nowiki>''it''*bar
12174 <ul><li>*foo<i>it</i>*bar
12180 Lists: 4. No escapes needed
12192 <ul><li><i>foo</i>*bar
12194 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12199 Lists: 5. No unnecessary escapes
12201 * bar <span><nowiki>[[foo]]</nowiki></span>
12203 *=bar <span><nowiki>[[foo]]</nowiki></span>
12205 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12207 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12209 *=bar <span>foo]]</span>=
12211 <ul><li> bar <span>[[foo]]</span>
12213 <ul><li>=bar <span>[[foo]]</span>
12215 <ul><li>[[bar <span>[[foo]]</span>
12217 <ul><li>]]bar <span>[[foo]]</span>
12219 <ul><li>=bar <span>foo]]</span>=
12225 Lists: 6. Escape bullets in SOL position
12229 <!--cmt--><nowiki>*foo</nowiki>
12236 Lists: 7. Escape bullets in a multi-line context
12246 #### --------------- HRs ---------------
12247 #### 1. Single line
12248 #### -----------------------------------
12251 HRs: 1. Single line
12256 <nowiki>----</nowiki>
12258 <nowiki>=foo=</nowiki>
12260 <nowiki>*foo</nowiki>
12267 #### --------------- Tables ---------------
12268 #### 1a. Simple example
12269 #### 1b. No escaping needed (!foo)
12270 #### 1c. No escaping needed (|foo)
12271 #### 1d. No escaping needed (|}foo)
12273 #### 2a. Nested in td (<td>foo|bar</td>)
12274 #### 2b. Nested in td (<td>foo||bar</td>)
12275 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12277 #### 3a. Nested in th (<th>foo!bar</th>)
12278 #### 3b. Nested in th (<th>foo!!bar</th>)
12279 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12283 #### 4c. No escaping needed
12284 #### --------------------------------------
12287 Tables: 1a. Simple example
12298 Tables: 1b. No escaping needed
12307 Tables: 1c. No escaping needed
12316 Tables: 1d. No escaping needed
12325 Tables: 2a. Nested in td
12330 |<nowiki>foo|bar</nowiki>
12340 Tables: 2b. Nested in td
12345 |<nowiki>foo||bar</nowiki>
12346 |''it''<nowiki>foo||bar</nowiki>
12351 </td><td><i>it</i>foo||bar
12357 Tables: 2c. Nested in td -- no escaping needed
12372 Tables: 3a. Nested in th
12387 Tables: 3b. Nested in th
12392 !<nowiki>foo!!bar</nowiki>
12402 Tables: 3c. Nested in th -- no escaping needed
12417 Tables: 4a. Escape -
12425 |<nowiki>-bar</nowiki>
12429 <tr><th>-bar</th></tr>
12430 <tr><td>-bar</td></tr>
12435 Tables: 4b. Escape +
12443 |<nowiki>+bar</nowiki>
12447 <tr><th>+bar</th></tr>
12448 <tr><td>+bar</td></tr>
12453 Tables: 4c. No escaping needed
12467 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12468 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12472 #### --------------- Links ---------------
12473 #### 1. Quote marks in link text
12474 #### 2. Wikilinks: Escapes needed
12475 #### 3. Wikilinks: No escapes needed
12476 #### 4. Extlinks: Escapes needed
12477 #### 5. Extlinks: No escapes needed
12478 #### --------------------------------------
12480 Links 1. Quote marks in link text
12484 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12486 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12490 Links 2. WikiLinks: Escapes needed
12494 [[Foo|<nowiki>[Foobar]</nowiki>]]
12495 [[Foo|<nowiki>Foobar]</nowiki>]]
12496 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12497 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12498 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12499 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12500 [[Foo|<nowiki>|Bar</nowiki>]]
12502 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12503 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12504 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12505 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12506 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12507 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12508 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12512 Links 3. WikiLinks: No escapes needed
12519 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12520 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12524 Links 4. ExtLinks: Escapes needed
12528 [http://google.com <nowiki>[google]</nowiki>]
12529 [http://google.com <nowiki>google]</nowiki>]
12531 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12532 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12536 Links 5. ExtLinks: No escapes needed
12540 [http://google.com [google]
12542 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12545 #### --------------- Quotes ---------------
12546 #### 1. Quotes inside <b> and <i>
12547 #### 2. Link fragments separated by <i> and <b> tags
12548 #### 3. Link fragments inside <i> and <b>
12549 #### --------------------------------------
12551 1. Quotes inside <b> and <i>
12553 ''<nowiki>'foo'</nowiki>''
12554 ''<nowiki>''foo''</nowiki>''
12555 ''<nowiki>'''foo'''</nowiki>''
12556 '''<nowiki>'foo'</nowiki>'''
12557 '''<nowiki>''foo''</nowiki>'''
12558 '''<nowiki>'''foo'''</nowiki>'''
12559 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12567 <b>foo'<i>bar'</i>baz</b>
12572 2. Link fragments separated by <i> and <b> tags
12574 [[''foo''<nowiki>hello]]</nowiki>
12576 [['''foo'''<nowiki>hello]]</nowiki>
12578 <p>[[<i>foo</i>hello]]
12579 </p><p>[[<b>foo</b>hello]]
12584 2. Link fragments inside <i> and <b>
12585 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12586 this is one of the shortcomings of this format)
12588 ''[[foo''<nowiki>]]</nowiki>
12590 '''[[foo'''<nowiki>]]</nowiki>
12593 </p><p><b>[[foo</b>]]
12597 #### --------------- Paragraphs ---------------
12598 #### 1. No unnecessary escapes
12599 #### --------------------------------------
12602 1. No unnecessary escapes
12604 bar <span><nowiki>[[foo]]</nowiki></span>
12606 =bar <span><nowiki>[[foo]]</nowiki></span>
12608 [[bar <span><nowiki>[[foo]]</nowiki></span>
12610 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12612 <nowiki>=bar </nowiki><span>foo]]</span>=
12614 <p>bar <span>[[foo]]</span>
12615 </p><p>=bar <span>[[foo]]</span>
12616 </p><p>[[bar <span>[[foo]]</span>
12617 </p><p>]]bar <span>[[foo]]</span>
12618 </p><p>=bar <span>foo]]</span>=
12622 #### --------------- PRE ------------------
12623 #### 1. Leading space in SOL context should be escaped
12624 #### --------------------------------------
12626 1. Leading space in SOL context should be escaped
12630 <nowiki> foo</nowiki>
12631 <!--cmt--><nowiki> foo</nowiki>
12638 #### --------------- HTML tags ---------------
12641 #### 3. multi-line html tag
12642 #### --------------------------------------
12648 <a href="http://google.com">google</a>
12650 <a href="http://google.com">google</a>
12656 <nowiki><div>foo</div>
12657 <div style="color:red">foo</div></nowiki>
12659 <p><div>foo</div>
12660 <div style="color:red">foo</div>
12665 3. multi-line html tag
12677 #### --------------- Others ---------------
12681 <nowiki>foo</nowiki>
12683 <p><nowiki>foo</nowiki>
12692 Try for 100% code coverage