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>
2470 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2472 Normal text. '''''Bold italic text.''''' Normal text.
2474 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2475 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2481 Unclosed and unmatched quotes
2483 '''''Bold italic text '''with bold deactivated''' in between.'''''
2485 '''''Bold italic text ''with italic deactivated'' in between.'''''
2489 ..spanning two paragraphs (should not work).'''
2491 '''Bold tag left open
2493 ''Italic tag left open
2497 <!-- Unmatching number of opening, closing tags: -->
2498 '''This year''''s election ''should'' beat '''last year''''s.
2500 ''Tom'''s car is bigger than ''Susan'''s.
2502 Plain ''italic'''s plain
2504 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2505 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2506 </p><p><b>Bold text..</b>
2507 </p><p>..spanning two paragraphs (should not work).
2508 </p><p><b>Bold tag left open</b>
2509 </p><p><i>Italic tag left open</i>
2511 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2512 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2513 </p><p>Plain <i>italic'</i>s plain
2520 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2523 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2524 # is the bare minimun required by the spec, see:
2525 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2527 A table with no data.
2533 # A table with nothing but a caption is invalid XHTML, we might want to render
2534 # this as <p>caption</p>
2536 A table with nothing but a caption
2544 </caption><tr><td></td></tr></table>
2570 Simple table but with multiple dashes for row wikitext
2588 Multiplication table
2590 {| border="1" cellpadding="2"
2591 |+Multiplication table
2593 ! × !! 1 !! 2 !! 3
2611 <table border="1" cellpadding="2">
2612 <caption>Multiplication table
2659 Allow +/- in 2nd and later cells in a row
2686 |rowspan=2| Cell 2, row 1 (and 2)
2697 <td rowspan="2"> Cell 2, row 1 (and 2)
2715 {| bgcolor=#ABCDEF border=2
2720 |the original table again
2728 <table bgcolor="#ABCDEF" border="2">
2736 <td>the original table again
2742 Invalid attributes in table cell (bug 1830)
2757 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2760 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2764 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2765 <td>]" onmouseover="alert(document.cookie)">test
2774 Indented table markup mixed with indented pre content (proposed in bug 6200)
2779 Text that should be rendered preformatted
2787 <pre>Text that should be rendered preformatted
2796 Template-generated table cell attributes and cell content
2804 <td style="color: red"> Foo
2810 Table with row followed by newlines and table heading
2827 # FIXME: Preserve the attribute properly (with an empty string as value) in
2828 # the PHP parser. Parsoid implements the behavior below.
2830 Table attributes with empty value
2849 Plain link, capitalized
2853 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2858 Plain link, uncapitalized
2862 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2869 [[Main Page|The Main Page]]
2871 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2880 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2885 Broken link with fragment
2887 [[Zigzagzogzagzig#zug]]
2889 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2894 Special page link with fragment
2896 [[Special:Version#anchor]]
2898 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2903 Nonexistent special page link with fragment
2905 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2907 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2914 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2916 <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>
2923 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2925 <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>!!!
2930 Link with 3 brackets
2939 Piped link with 3 brackets
2941 [[[main page|the main page]]]
2943 <p>[[[main page|the main page]]]
2948 Link with multiple pipes
2950 [[Main Page|The|Main|Page]]
2952 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2959 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2961 <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>
2966 Piped link to namespace
2968 [[Meta:Disclaimers|The disclaimers]]
2970 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2977 [[Usually caused by a typo (oops}]]
2979 <p>[[Usually caused by a typo (oops}]]
2984 Link containing % (not as a hex sequence)
2988 <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>
2993 Link containing % as a single hex sequence interpreted to char
2997 <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>
3002 Link containing % as a double hex sequence interpreted to hex sequence
3006 <p>[[7%2525 Solution]]
3011 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3012 Example for such a section: == < ==
3014 [[%23%3c]][[%23%3e]]
3016 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3021 Link containing "<#" and ">#" as a hex sequences
3023 [[%3c%23]][[%3e%23]]
3025 <p>[[%3c%23]][[%3e%23]]
3030 Link containing double-single-quotes '' (bug 4598)
3032 [[Lista d''e paise d''o munno]]
3034 <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>
3039 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3041 Some [[Link|pretty ''italics'' and stuff]]!
3043 <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>!
3048 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3050 ''Some [[Link|pretty ''italics'' and stuff]]!
3052 <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>
3057 Link with double quotes in title part (literal) and alternate part (interpreted)
3059 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3063 [[''Pentecoste''|Pentecoste]]
3065 [[''Pentecoste''|''Pentecoste'']]
3067 <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>
3068 </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>
3069 </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>
3070 </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>
3075 Broken image links with HTML captions (bug 39700)
3077 [[File:Nonexistent|<script></script>]]
3078 [[File:Nonexistent|100px|<script></script>]]
3079 [[File:Nonexistent|<]]
3080 [[File:Nonexistent|a<i>b</i>c]]
3082 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3083 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3084 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3085 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3092 [[http://www.example.com]]
3094 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3099 Plain link to URL with link text
3101 [[http://www.example.com Link text]]
3103 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3108 Plain link to protocol-relative URL
3110 [[//www.example.com]]
3112 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3117 Plain link to protocol-relative URL with link text
3119 [[//www.example.com Link text]]
3121 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3126 # I'm fairly sure the expected result here is wrong.
3127 # We want these to be URL links, not pseudo-pages with URLs for titles....
3128 # However the current output is also pretty screwy.
3131 # I'm changing it to match the current output--it arguably makes more
3132 # sense in the light of the test above. Old expected result was:
3133 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3135 # But I think this test is bordering on "garbage in, garbage out" anyway.
3140 Piped link to URL: [[http://www.example.com|an example URL]]
3142 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3147 BUG 2: [[page|http://url/]] should link to page, not http://url/
3149 [[Main Page|http://url/]]
3151 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3156 BUG 337: Escaped self-links should be bold
3160 [[Bug462]] [[Bug462]]
3162 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3167 Self-link to section should not be bold
3171 [[Main Page#section]]
3173 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3184 Self-link to numeric title
3190 <p><strong class="selflink">0</strong>
3195 Link to numeric-equivalent title
3201 <p><a href="/wiki/00" title="00">00</a>
3206 <nowiki> inside a link
3208 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3210 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3215 Non-breaking spaces in title
3217 [[ Main Page ]]
3219 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3224 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3230 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3235 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3241 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3246 Internal link with en linktrail: no apostrophes (bug 27473)
3252 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3257 Internal link with ca linktrail with apostrophes (bug 27473)
3263 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3268 Internal link with kaa linktrail with apostrophes (bug 27473)
3274 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3279 ### Interwiki links (see maintenance/interwiki.sql)
3283 Inline interwiki link
3285 [[MeatBall:SoftSecurity]]
3287 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3292 Inline interwiki link with empty title (bug 2372)
3296 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3301 Interwiki link encoding conversion (bug 1636)
3303 *[[Wikipedia:ro:Olteniţa]]
3304 *[[Wikipedia:ro:Olteniţa]]
3306 <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>
3307 </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>
3313 Interwiki link with fragment (bug 2130)
3315 [[MeatBall:SoftSecurity#foo]]
3317 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3332 Double interlanguage link
3343 Interlanguage link, with prefix links
3355 Double interlanguage link, with prefix links (bug 8897)
3368 Parsoid-specific test: Wikilinks with should RT properly
3374 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3392 Broken br tag sanitization
3401 Incorrecly removing closing slashes from correctly formed XHTML
3403 <br style="clear:both;" />
3405 <p><br style="clear:both;" />
3410 Failing to transform badly formed HTML into correct XHTML
3412 <br style="clear: left;">
3413 <br style="clear: right;">
3414 <br style="clear: both;">
3416 <p><br style="clear: left;" />
3417 <br style="clear: right;" />
3418 <br style="clear: both;" />
3423 Handling html with a div self-closing tag
3432 <p><div title />
3436 <p><div title=bar />
3437 <div title=bar/>
3439 <div title="bar/"></div>
3445 Handling html with a br self-closing tag
3454 <p><br title="title" />
3455 <br title="title" />
3464 Horizontal ruler (should it add that extra space?)
3478 Horizontal ruler -- 4+ dashes render hr
3487 Horizontal ruler -- eats additional dashes on the same line
3496 Horizontal ruler -- does not collaps dashes on consecutive lines
3507 Horizontal ruler -- <4 dashes render as plain text
3516 ### Block-level elements
3539 <ol><li>Numbered list
3556 ***#Number on level 4
3558 **#Number on level 3
3559 **#Number on level 3
3563 #** Level 3, but ordered
3566 <ol><li> with numbers
3568 <ul><li> and bullets
3570 <ol><li> and numbers
3572 </li><li>bullets again
3573 <ul><li>bullet level 2
3574 <ul><li>bullet level 3
3575 <ol><li>Number on level 4
3578 </li><li>bullet level 2
3579 <ol><li>Number on level 3
3580 </li><li>Number on level 3
3583 <ol><li>number level 2
3586 <ul><li><ul><li> Level 3
3590 <ol><li><ul><li><ul><li> Level 3, but ordered
3624 Nested lists 3 (first element empty)
3637 Nested lists 4 (first element empty)
3650 Nested lists 5 (both elements empty)
3663 Nested lists 6 (both elements empty)
3676 Nested lists 7 (skip initial nesting levels)
3680 <ul><li><ul><li><ul><li> foo
3688 Nested lists 8 (multiple nesting transitions)
3696 <ul><li><ul><li> bar
3706 1. Lists with start-of-line-transparent tokens before bullets: Comments
3720 2. Lists with start-of-line-transparent tokens before bullets: Template close
3732 List items are not parsed correctly following a <pre> block (bug 785)
3738 <ul><li> <pre>foo</pre>
3739 </li><li> <pre>bar</pre>
3746 List items from template
3757 * notSOL{{inner list}}
3776 List interrupted by empty line or heading
3786 <ul><li><ul><li> bar
3789 <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>
3790 <ul><li> Another list item
3801 Magic Word: {{CURRENTDAY}}
3810 Magic Word: {{CURRENTDAY2}}
3819 Magic Word: {{CURRENTDAYNAME}}
3828 Magic Word: {{CURRENTDOW}}
3837 Magic Word: {{CURRENTMONTH}}
3846 Magic Word: {{CURRENTMONTHABBREV}}
3848 {{CURRENTMONTHABBREV}}
3855 Magic Word: {{CURRENTMONTHNAME}}
3857 {{CURRENTMONTHNAME}}
3864 Magic Word: {{CURRENTMONTHNAMEGEN}}
3866 {{CURRENTMONTHNAMEGEN}}
3873 Magic Word: {{CURRENTTIME}}
3882 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3891 Magic Word: {{CURRENTYEAR}}
3900 Magic Word: {{FULLPAGENAME}}
3902 title=[[User:Ævar Arnfjörð Bjarmason]]
3906 <p>User:Ævar Arnfjörð Bjarmason
3911 Magic Word: {{FULLPAGENAMEE}}
3913 title=[[User:Ævar Arnfjörð Bjarmason]]
3917 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3922 Magic Word: {{NAMESPACE}}
3924 title=[[User:Ævar Arnfjörð Bjarmason]]
3933 Magic Word: {{NAMESPACEE}}
3935 title=[[User:Ævar Arnfjörð Bjarmason]]
3944 Magic Word: {{NAMESPACENUMBER}}
3946 title=[[User:Ævar Arnfjörð Bjarmason]]
3955 Magic Word: {{NUMBEROFFILES}}
3964 Magic Word: {{PAGENAME}}
3966 title=[[User:Ævar Arnfjörð Bjarmason]]
3970 <p>Ævar Arnfjörð Bjarmason
3975 Magic Word: {{PAGENAME}} with metacharacters
3977 title=[['foo & bar = baz']]
3981 <p><i>'foo & bar = baz'</i>
3986 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3988 title=[[*RFC 1234 http://example.com/]]
3992 <p>*RFC 1234 http://example.com/
3997 Magic Word: {{PAGENAMEE}}
3999 title=[[User:Ævar Arnfjörð Bjarmason]]
4003 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4008 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4010 title=[[*RFC 1234 http://example.com/]]
4014 <p>*RFC_1234_http://example.com/
4019 Magic Word: {{REVISIONID}}
4028 Magic Word: {{SCRIPTPATH}}
4037 Magic Word: {{SERVER}}
4041 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4046 Magic Word: {{SERVERNAME}}
4055 Magic Word: {{SITENAME}}
4064 Namespace 1 {{ns:1}}
4073 Namespace 1 {{ns:01}}
4082 Namespace 0 {{ns:0}} (bug 4783)
4090 Namespace 0 {{ns:00}} (bug 4783)
4098 Namespace -1 {{ns:-1}}
4107 Namespace User {{ns:User}}
4116 Namespace User talk {{ns:User_talk}}
4125 Namespace User talk {{ns:uSeR tAlK}}
4134 Namespace File {{ns:File}}
4143 Namespace File {{ns:Image}}
4152 Namespace (lang=de) Benutzer {{ns:User}}
4163 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4169 <p>Benutzer Diskussion
4177 {{urlencode:hi world?!}}
4178 {{urlencode:hi world?!|WIKI}}
4179 {{urlencode:hi world?!|PATH}}
4180 {{urlencode:hi world?!|QUERY}}
4193 Magic links: internal link to RFC (bug 479)
4197 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4202 Magic links: RFC (bug 479)
4206 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4211 Magic links: ISBN (bug 1937)
4215 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4220 Magic links: PMID incorrectly converts space to underscore
4224 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4233 Nonexistent template
4235 {{thistemplatedoesnotexist}}
4237 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4244 This is a test template
4252 <p>This is a test template
4257 Template with explicit namespace
4261 <p>This is a test template
4269 This is a test template with parameter {{{param}}}
4275 {{paramtest|param=foo}}
4277 <p>This is a test template with parameter foo
4282 Template:paramtestnum
4288 Template unnamed parameter
4290 {{paramtestnum|Main Page|the main page}}
4292 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4297 Template:templatesimple
4303 Template:templateredirect
4305 #redirect [[Template:templatesimple]]
4309 Template:templateasargtestnum
4315 Template:templateasargtest
4317 {{template{{{templ}}}}}
4321 Template:templateasargtest2
4327 Template with template name as unnamed argument
4329 {{templateasargtestnum|templatesimple}}
4336 Template with template name as argument
4338 {{templateasargtest|templ=simple}}
4345 Template with template name as argument (2)
4347 {{templateasargtest2|templ=templatesimple}}
4354 Template:templateasargtestdefault
4356 {{{{{templ|templatesimple}}}}}
4366 Template with default value
4368 {{templateasargtestdefault}}
4375 Template with default value (value set)
4377 {{templateasargtestdefault|templ=templa}}
4386 {{templateredirect}}
4393 Template with argument in separate line
4395 {{ templateasargtest |
4403 Template with complex template as argument
4406 param ={{ templateasargtest |
4409 <p>This is a test template with parameter (test)
4414 Template with thumb image (with link in description)
4417 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4419 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>
4424 Template:complextemplate
4426 {{{1}}} {{paramtest|
4427 param ={{{param}}}}}
4431 Template with complex arguments
4434 param ={{ templateasargtest |
4435 templ = simple }}|[[Template:complextemplate|link]]}}
4437 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4442 BUG 553: link with two variables in a piped link
4445 |[[{{{1}}}|{{{2}}}]]
4450 <td>[[{{{1}}}|{{{2}}}]]
4456 Magic variable as template parameter
4458 {{paramtest|param={{SITENAME}}}}
4460 <p>This is a test template with parameter MediaWiki
4467 [[{{{param}}}|link]]
4471 Template parameter as link source
4473 {{linktest|param=Main Page}}
4475 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4480 Template-generated attribute string (k='v')
4482 <span {{attr_str|id|v1}}>bar</span>
4484 <p><span id="v1">bar</span>
4491 including another template, {{paramtest|param={{{arg}}}}}
4495 Template passing argument to another template
4497 {{paramtest2|arg='hmm'}}
4499 <p>including another template, This is a test template with parameter 'hmm'
4510 Template as link source
4514 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4532 Template infinite loop
4536 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4541 Template from main namespace
4560 BUG 529: Template with table, not included at beginning of line
4579 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4599 BUG 41: Template parameters shown as broken links
4608 Template with targets containing wikilinks
4612 {{[[{{echo|foo}}]]}}
4614 {{{{echo|[[foo}}]]}}
4616 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4617 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4625 ''None'' of '''this''' should be
4627 but rather passed unmodified
4631 # hmm, fix this or just deprecate msgnw and document its behavior?
4637 {{msgnw:MSGNW test}}
4639 <p>''None'' of '''this''' should be
4641 but rather passed unmodified
4649 {{int:youhavenewmessages|lots of money|not!}}
4651 <p>You have lots of money (not!).
4658 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4662 <includeonly> and <noinclude> being included
4673 <onlyinclude>Foo</onlyinclude>bar
4677 <onlyinclude> being included
4689 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4693 <onlyinclude> and <includeonly> being included
4702 <includeonly> and <noinclude> on a page
4704 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4711 <onlyinclude> on a page
4713 <onlyinclude>Foo</onlyinclude>bar
4720 Template:Includeonly section
4723 ==Includeonly section==
4729 Bug 6563: Edit link generation for section shown by <includeonly>
4731 {{includeonly section}}
4733 <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>
4734 <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>
4738 # Uses same input as the contents of [[Template:Includeonly section]]
4740 Bug 6563: Section extraction for section shown by <includeonly>
4745 ==Includeonly section==
4753 Bug 6563: Edit link generation for section suppressed by <includeonly>
4756 ==Includeonly section==
4760 <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>
4765 Bug 6563: Section extraction for section suppressed by <includeonly>
4770 ==Includeonly section==
4778 ### <includeonly> and <noinclude> in attributes
4781 0. includeonly around the entire attribute
4783 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4785 <p><span id="v2">bar</span>
4790 1. includeonly in html attr key
4792 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4794 <p><span id="foo">bar</span>
4799 2. includeonly in html attr value
4801 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4802 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4804 <p><span id="v1">bar</span>
4805 <span id="v1">bar</span>
4810 3. includeonly in part of an attr value
4812 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4814 <p><span style="color:red;">bar</span>
4819 ### Testing parsing of templates where a template arg
4820 ### has the same name as the template itself.
4830 Templates: Template Name/Arg clash: 1. Use of positional param
4839 Templates: Template Name/Arg clash: 2. Use of named param
4848 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4857 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4861 Templates: 1. Simple use
4870 Templates: 2. Inside a block tag
4872 <div>{{echo|Foo}}</div>
4879 Templates: P-wrapping: 1a. Templates on consecutive lines
4890 Templates: P-wrapping: 1b. Templates on consecutive lines
4904 Templates: P-wrapping: 1c. Templates on consecutive lines
4907 {{echo|bar}} <div>baz</div>
4916 Templates: Inline Text: 1. Multiple tmeplate uses
4918 {{echo|Foo}}bar{{echo|baz}}
4925 Templates: Inline Text: 2. Back-to-back template uses
4927 {{echo|Foo}}{{echo|bar}}
4934 Templates: Block Tags: 1. Multiple template uses
4936 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4938 <div>Foo</div><div>bar</div><div>baz</div>
4943 Templates: Block Tags: 2. Back-to-back template uses
4945 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4947 <div>Foo</div><div>bar</div>
4952 Templates: Links: 1. Simple example
4954 {{echo|[[Foo|bar]]}}
4956 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4961 Templates: Links: 2. Generation of link href
4963 [[{{echo|Foo}}|bar]]
4965 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4970 Templates: Links: 3. Generation of part of a link href
4972 [[Fo{{echo|o}}|bar]]
4974 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4979 Templates: Links: 4. Multiple templates generating link href
4981 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4983 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4988 Templates: Links: 5. Generation of link text
4990 [[Foo|{{echo|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: 5. Nested templates (only outermost template should be marked)
4999 {{echo|[[{{echo|Foo}}|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: HTML Tag: 1. Generation of HTML attr. key
5008 <div {{echo|style}}="color:red;">foo</div>
5010 <div style="color:red;">foo</div>
5015 Templates: HTML Tag: 2. Generation of HTML attr. value
5017 <div style={{echo|'color:red;'}}>foo</div>
5019 <div style="color:red;">foo</div>
5024 Templates: HTML Tag: 3. Generation of HTML attr key and value
5026 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5028 <div style="color:red;">foo</div>
5033 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5035 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5037 <div title="This is a long title with just one piece templated">foo</div>
5042 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5044 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5046 <div title="This is a long title with just one piece templated">foo</div>
5051 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5053 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5055 <div title="This is a long title with just one piece templated">foo</div>
5060 Templates: HTML Tables: 1. Generating start of a HTML table
5062 {{echo|<table><tr><td>foo</td>}}</tr></table>
5064 <table><tr><td>foo</td></tr></table>
5069 Templates: HTML Tables: 2a. Generating middle of a HTML table
5071 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5073 <table><tr><td>foo</td></tr></table>
5078 Templates: HTML Tables: 2b. Generating middle of a HTML table
5080 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5082 <table><tr><td>foo</td></tr></table>
5087 Templates: HTML Tables: 3. Generating end of a HTML table
5089 <table><tr>{{echo|<td>foo</td></tr></table>}}
5091 <table><tr><td>foo</td></tr></table>
5096 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5098 {{echo|<table>}}<tr><td>foo</td></tr></table>
5100 <table><tr><td>foo</td></tr></table>
5105 Templates: HTML Tables: 4b. Generating a single tag 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: 4c. Generating a single tag 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: 4d. Generating a single tag of a HTML table
5125 <table><tr><td>foo{{echo|</td>}}</tr></table>
5127 <table><tr><td>foo</td></tr></table>
5132 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5134 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5136 <table><tr><td>foo</td></tr></table>
5141 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5143 <table><tr><td>foo</td></tr>{{echo|</table>}}
5145 <table><tr><td>foo</td></tr></table>
5150 Templates: Wiki Tables: 1. Fostering of entire template content
5158 <tr><td></td></tr></table>
5163 Templates: Wiki Tables: 2. Fostering of partial template content
5173 <tr><td></td></tr></table>
5178 Templates: Wiki Tables: 3. td-content via multiple templates
5181 {{echo|{{pipe}}a}}{{echo|b}}
5192 Templates: Lists: Multi-line list-items via templates
5194 *{{echo|a {{nonexistent|
5196 *{{echo|b {{nonexistent|
5199 <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>
5200 </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>
5206 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5208 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5210 <p><i>ab</i>c<i>d</i>e
5215 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5216 (PHP parser generates misnested html)
5220 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5222 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5226 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5227 (PHP parser generates misnested html)
5231 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5234 <div><i>b</i>c<i>d</i></div>
5239 Templates: Ugly nesting: 4. Divs opened/closed across templates
5241 a<div>b{{echo|c</div>d}}e
5248 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5254 |{{echo|foo</table>}}
5258 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5259 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5260 bar</span><span about="#mwt1">
5265 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5275 <td>1. {{echo|foo </table>}}</td>
5277 <td>2. {{echo|baz </table>}}</td>
5290 <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">
5291 <tbody><tr data-parsoid="{"stx":"html"}">
5292 <td data-parsoid="{"stx":"html"}">
5293 <table data-parsoid="{"stx":"html"}">
5294 <tbody><tr data-parsoid="{"stx":"html"}">
5295 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5296 <td data-parsoid="{"stx":"html"}"> bar </td>
5297 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5298 </span><span about="#mwt1">
5300 abc</span><span about="#mwt1">
5301 </span><span about="#mwt1">
5302 </span><span about="#mwt1">
5303 </span><span about="#mwt1">
5304 </span><span about="#mwt1">
5306 xyz</span><span about="#mwt1">
5307 </span><span about="#mwt1">
5312 Parser Functions: 1. Simple example
5321 Parser Functions: 2. Nested use (only outermost should be marked up)
5330 ### Pre-save transform tests
5333 pre-save transform: subst:
5339 This is a test template
5343 pre-save transform: normal template
5353 pre-save transform: nonexistent template
5357 {{thistemplatedoesnotexist}}
5359 {{thistemplatedoesnotexist}}
5364 pre-save transform: subst magic variables
5373 # This is bug 89, which I fixed. -- wtm
5375 pre-save transform: subst: templates with parameters
5379 {{subst:paramtest|param="something else"}}
5381 This is a test template with parameter "something else"
5387 <nowiki>'''not wiki'''</nowiki>
5391 pre-save transform: nowiki in subst (bug 1188)
5395 {{subst:nowikitest}}
5397 <nowiki>'''not wiki'''</nowiki>
5402 Template:commenttest
5404 This template has <!-- a comment --> in it.
5408 pre-save transform: comment in subst (bug 1936)
5412 {{subst:commenttest}}
5414 This template has <!-- a comment --> in it.
5418 pre-save transform: unclosed tag
5422 <nowiki>'''not wiki'''
5424 <nowiki>'''not wiki'''
5428 pre-save transform: mixed tag case
5432 <NOwiki>'''not wiki'''</noWIKI>
5434 <NOwiki>'''not wiki'''</noWIKI>
5438 pre-save transform: unclosed comment in <nowiki>
5442 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5444 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5450 <span onmouseover="alert('crap')">Oh no</span>
5454 (confirming safety of fix for subst bug 1936)
5456 {{Template:dangerous}}
5458 <p><span>Oh no</span>
5463 pre-save transform: comment containing gallery (bug 5024)
5467 <!-- <gallery>data</gallery> -->
5469 <!-- <gallery>data</gallery> -->
5473 pre-save transform: comment containing extension
5477 <!-- <tag>data</tag> -->
5479 <!-- <tag>data</tag> -->
5483 pre-save transform: comment containing nowiki
5487 <!-- <nowiki>data</nowiki> -->
5489 <!-- <nowiki>data</nowiki> -->
5493 pre-save transform: <noinclude> in subst (bug 3298)
5503 pre-save transform: <onlyinclude> in subst (bug 3298)
5515 {{<includeonly>subst:</includeonly>Includes}}
5519 Template:SafeSubstTest
5521 {{<includeonly>safesubst:</includeonly>Includes}}
5525 bug 22297: safesubst: works during PST
5529 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5535 bug 22297: safesubst: works during normal parse
5544 subst: does not work during normal parse
5548 <p>{{subst:Includes}}
5553 pre-save transform: context links ("pipe trick")
5557 [[Article (context)|]]
5560 [[Bar:Article (context)|]]
5561 [[:Bar:Article (context)|]]
5563 [[|Article (context)]]
5567 [[Article (context)|Article]]
5568 [[Bar:Article|Article]]
5569 [[:Bar:Article|Article]]
5570 [[Bar:Article (context)|Article]]
5571 [[:Bar:Article (context)|Article]]
5573 [[Article (context)]]
5574 [[Bar:X (Y) Z|X (Y) Z]]
5575 [[:Bar:X (Y) Z|X (Y) Z]]
5579 pre-save transform: context links ("pipe trick") with interwiki prefix
5583 [[interwiki:Article|]]
5584 [[:interwiki:Article|]]
5585 [[interwiki:Bar:Article|]]
5586 [[:interwiki:Bar:Article|]]
5588 [[interwiki:Article|Article]]
5589 [[:interwiki:Article|Article]]
5590 [[interwiki:Bar:Article|Bar:Article]]
5591 [[:interwiki:Bar:Article|Bar:Article]]
5595 pre-save transform: context links ("pipe trick") with parens in title
5597 pst title=[[Somearticle (context)]]
5601 [[Article (context)|Article]]
5605 pre-save transform: context links ("pipe trick") with comma in title
5607 pst title=[[Someplace, Somewhere]]
5610 [[Otherplace, Elsewhere|]]
5611 [[Otherplace, Elsewhere, Anywhere|]]
5613 [[Otherplace, Somewhere|Otherplace]]
5614 [[Otherplace, Elsewhere|Otherplace]]
5615 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5619 pre-save transform: context links ("pipe trick") with parens and comma
5621 pst title=[[Someplace (IGNORED), Somewhere]]
5624 [[Otherplace (place), Elsewhere|]]
5626 [[Otherplace, Somewhere|Otherplace]]
5627 [[Otherplace (place), Elsewhere|Otherplace]]
5631 pre-save transform: context links ("pipe trick") with comma and parens
5633 pst title=[[Who, me? (context)]]
5636 [[Me, Myself, and I (1937 song)|]]
5638 [[Yes, you. (context)|Yes, you.]]
5639 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5643 pre-save transform: context links ("pipe trick") with namespace
5645 pst title=[[Ns:Somearticle]]
5649 [[Ns:Article|Article]]
5653 pre-save transform: context links ("pipe trick") with namespace and parens
5655 pst title=[[Ns:Somearticle (context)]]
5659 [[Ns:Article (context)|Article]]
5663 pre-save transform: context links ("pipe trick") with namespace and comma
5665 pst title=[[Ns:Somearticle, Context, Whatever]]
5669 [[Ns:Article, Context, Whatever|Article]]
5673 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5675 pst title=[[Ns:Somearticle, Context (context)]]
5679 [[Ns:Article (context)|Article]]
5683 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5685 pst title=[[Ns:Somearticle (IGNORED), Context]]
5689 [[Ns:Article, Context|Article]]
5693 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5697 [[Article(context)|]]
5698 [[Bar:Article(context)|]]
5699 [[:Bar:Article(context)|]]
5700 [[|Article(context)]]
5704 [[Article(context)|Article]]
5705 [[Bar:Article(context)|Article]]
5706 [[:Bar:Article(context)|Article]]
5707 [[Article(context)]]
5709 [[:Bar:X(Y)Z|X(Y)Z]]
5713 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5717 [[Article (context)|]]
5718 [[Bar:Article (context)|]]
5719 [[:Bar:Article (context)|]]
5720 [[|Article (context)]]
5724 [[Article (context)|Article]]
5725 [[Bar:Article (context)|Article]]
5726 [[:Bar:Article (context)|Article]]
5727 [[Article (context)]]
5728 [[Bar:X (Y) Z|X (Y) Z]]
5729 [[:Bar:X (Y) Z|X (Y) Z]]
5733 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5737 [[Article(context)|]]
5738 [[Bar:Article(context)|]]
5739 [[:Bar:Article(context)|]]
5740 [[|Article(context)]]
5744 [[Article(context)|Article]]
5745 [[Bar:Article(context)|Article]]
5746 [[:Bar:Article(context)|Article]]
5747 [[Article(context)]]
5749 [[:Bar:X(Y)Z|X(Y)Z]]
5753 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5757 [[Article (context), context|]]
5758 [[Article (context),context|]]
5759 [[Bar:Article (context), context|]]
5760 [[Bar:Article (context),context|]]
5761 [[:Bar:Article (context), context|]]
5762 [[:Bar:Article (context),context|]]
5764 [[Article (context), context|Article]]
5765 [[Article (context),context|Article]]
5766 [[Bar:Article (context), context|Article]]
5767 [[Bar:Article (context),context|Article]]
5768 [[:Bar:Article (context), context|Article]]
5769 [[:Bar:Article (context),context|Article]]
5773 pre-save transform: trim trailing empty lines
5777 Empty lines are trimmed
5783 Empty lines are trimmed
5787 pre-save transform: Signature expansion
5792 * <noinclude>~~~</noinclude>
5793 * <includeonly>~~~</includeonly>
5794 * <onlyinclude>~~~</onlyinclude>
5796 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5797 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5798 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5799 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5804 pre-save transform: Signature expansion in nowiki tags (bug 93)
5810 <nowiki>~~~~</nowiki>
5812 <includeonly><nowiki>~~~~</nowiki></includeonly>
5814 <noinclude><nowiki>~~~~</nowiki></noinclude>
5816 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5818 {{subst:Foo}} shall be converted to FOO
5820 As well as inside noinclude/onlyinclude
5821 <noinclude>{{subst:Foo}}</noinclude>
5822 <onlyinclude>{{subst:Foo}}</onlyinclude>
5824 But not inside includeonly
5825 <includeonly>{{subst:Foo}}</includeonly>
5829 <nowiki>~~~~</nowiki>
5831 <includeonly><nowiki>~~~~</nowiki></includeonly>
5833 <noinclude><nowiki>~~~~</nowiki></noinclude>
5835 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5837 FOO shall be converted to FOO
5839 As well as inside noinclude/onlyinclude
5840 <noinclude>FOO</noinclude>
5841 <onlyinclude>FOO</onlyinclude>
5843 But not inside includeonly
5844 <includeonly>{{subst:Foo}}</includeonly>
5848 ### Message transform tests
5851 message transform: magic variables
5861 message transform: should not transform wiki markup
5871 message transform: <noinclude> in transcluded template (bug 4926)
5881 message transform: <onlyinclude> in transcluded template (bug 4926)
5891 {{#special:}} page name, known
5895 {{#special:Recentchanges}}
5897 Special:RecentChanges
5901 {{#special:}} page name with subpage, known
5905 {{#special:Recentchanges/param}}
5907 Special:RecentChanges/param
5911 {{#special:}} page name, unknown
5915 {{#special:foobarnonexistent}}
5917 No such special page
5921 {{#speciale:}} page name, known
5925 {{#speciale:Recentchanges}}
5927 Special:RecentChanges
5931 {{#speciale:}} page name with subpage, known
5935 {{#speciale:Recentchanges/param}}
5937 Special:RecentChanges/param
5941 {{#speciale:}} page name, unknown
5945 {{#speciale:foobarnonexistent}}
5947 No_such_special_page
5956 [[Image:foobar.jpg]]
5958 <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>
5965 [[Image:foobar.jpg|right]]
5967 <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>
5972 Simple image (using File: namespace, now canonical)
5976 <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>
5983 [[Image:foobar.jpg|right|Caption text]]
5985 <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>
5990 Image with empty attribute
5992 [[Image:foobar.jpg|right||Caption text]]
5994 <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>
5999 Image with link tails
6001 123[[Image:foobar.jpg]]456
6002 123[[Image:foobar.jpg|right]]456
6003 123[[Image:foobar.jpg|thumb]]456
6005 <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
6007 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
6008 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
6013 Image with multiple captions -- only last one is accepted
6015 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6017 <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>
6022 Image with link parameter, wiki target
6024 [[Image:foobar.jpg|link=Target page]]
6026 <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>
6031 Image with link parameter, URL target
6033 [[Image:foobar.jpg|link=http://example.com/]]
6035 <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>
6040 Image with link parameter, wgExternalLinkTarget
6042 [[Image:foobar.jpg|link=http://example.com/]]
6044 wgExternalLinkTarget='foobar'
6046 <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>
6051 Image with link parameter, wgNoFollowLinks set to false
6053 [[Image:foobar.jpg|link=http://example.com/]]
6055 wgNoFollowLinks=false
6057 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6062 Image with link parameter, wgNoFollowDomainExceptions
6064 [[Image:foobar.jpg|link=http://example.com/]]
6066 wgNoFollowDomainExceptions='example.com'
6068 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6073 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6075 [[Image:foobar.jpg|link=http://example.com/|Title]]
6077 wgExternalLinkTarget='foobar'
6079 <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>
6084 Image with empty link parameter
6086 [[Image:foobar.jpg|link=]]
6088 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6093 Image with link parameter (wiki target) and unnamed parameter
6095 [[Image:foobar.jpg|link=Target page|Title]]
6097 <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>
6102 Image with link parameter (URL target) and unnamed parameter
6104 [[Image:foobar.jpg|link=http://example.com/|Title]]
6106 <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>
6111 Thumbnail image with link parameter
6113 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6115 <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>
6120 Image with frame and link
6122 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6124 <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>
6129 Image with frame and link and explicit alt
6131 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6133 <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>
6138 Image with wiki markup in implicit alt
6140 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6142 <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>
6147 Image with wiki markup in explicit alt
6149 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6151 <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>
6156 Link to image page- image page normally doesn't exists, hence edit link
6157 Add test with existing image page
6158 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6162 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6167 bug 18784 Link to non-existent image page with caption should use caption as link text
6169 [[:Image:test|caption]]
6171 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6176 Frameless image caption with a free URL
6178 [[Image:foobar.jpg|http://example.com]]
6180 <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>
6185 Thumbnail image caption with a free URL
6187 [[Image:foobar.jpg|thumb|http://example.com]]
6189 <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>
6194 Thumbnail image caption with a free URL and explicit alt
6196 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6198 <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>
6203 BUG 1887: A ISBN with a thumbnail
6205 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6207 <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>
6212 BUG 1887: A RFC with a thumbnail
6214 [[Image:foobar.jpg|thumb|This is RFC 12354]]
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>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6221 BUG 1887: A mailto link with a thumbnail
6223 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6225 <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>
6229 # Pending resolution to bug 368
6231 BUG 648: Frameless image caption with a link
6233 [[Image:foobar.jpg|text with a [[link]] in it]]
6235 <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>
6240 BUG 648: Frameless image caption with a link (suffix)
6242 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6244 <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>
6249 BUG 648: Frameless image caption with an interwiki link
6251 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6253 <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>
6258 BUG 648: Frameless image caption with a piped interwiki link
6260 [[Image:foobar.jpg|text with a [[MeatBall:Link|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 Escape HTML special chars in image alt text
6269 [[Image:foobar.jpg|& < > "]]
6271 <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>
6276 BUG 499: Alt text should have Ӓ, not &1234;
6278 [[Image:foobar.jpg|♀]]
6280 <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>
6285 Broken image caption with link
6287 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6289 <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.
6294 Image caption containing another image
6296 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6298 <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>
6303 Image caption containing a newline
6305 [[Image:Foobar.jpg|This
6308 <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>
6314 Bug 3090: External links other than http: in image captions
6316 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6318 <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>
6325 [[Image:foobar.jpg|a|class=b]]
6327 <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>
6334 #REDIRECT [[File:Barfoo.jpg]]
6340 [[Image:Barfoo.jpg]]
6342 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6347 Missing image with uploads disabled
6351 [[Image:Foobaz.jpg]]
6353 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6362 Subpage test/subpage
6370 subpage title=[[Subpage test]]
6374 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6379 Subpage noslash link
6381 subpage title=[[Subpage test]]
6385 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6394 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6399 BUG 561: {{/Subpage}}
6401 subpage title=[[Page]]
6405 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6413 Category:MediaWiki User's Guide
6421 [[:Category:MediaWiki User's Guide]]
6423 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6432 [[Category:MediaWiki User's Guide]]
6434 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6438 PAGESINCATEGORY invalid title fatal (r33546 fix)
6440 {{PAGESINCATEGORY:<bogus>}}
6447 Category with different sort key
6451 [[Category:MediaWiki User's Guide|Foo]]
6453 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6457 Category with identical sort key
6461 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6463 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6467 Category with empty sort key
6472 [[Category:MediaWiki User's Guide|]]
6474 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6478 Category with empty sort key and parentheses
6483 [[Category:Foo (bar)|]]
6485 [[Category:Foo (bar)|Foo]]
6489 Category with link tail
6494 123[[Category:Foo]]456
6496 123[[Category:Foo]]456
6500 Category with template
6505 [[Category:{{echo|Foo}}]]
6507 [[Category:{{echo|Foo}}]]
6511 Category with template in sort key
6516 [[Category:Foo|{{echo|Bar}}]]
6518 [[Category:Foo|{{echo|Bar}}]]
6522 Category with template in sort key and title
6527 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6529 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6533 Category / paragraph interactions
6535 Foo [[Category:Baz]] Bar
6537 Foo [[Category:Baz]]
6545 [[Category:Baz]] Bar
6558 {{echo|[[Category:Baz]]}}
6573 ### Inter-language links
6576 Inter-language links
6582 [[zh:食品]]
6584 es:Alimento fr:Nourriture zh:食品
6588 Duplicate interlanguage links (bug 24502)
6604 Basic section headings
6611 ===Smaller headline===
6614 <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>
6617 <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>
6620 <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>
6626 Section headings with TOC
6629 === Subheadline 1 ===
6630 ===== Skipping a level =====
6631 ====== Skipping a level ======
6635 ===Another headline===
6637 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6639 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6641 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6643 <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>
6645 <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>
6652 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6654 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6659 <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>
6660 <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>
6661 <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>
6662 <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>
6663 <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>
6666 <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>
6670 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6672 Handling of sections up to level 6 and beyond
6675 == Level 2 Heading==
6676 === Level 3 Heading===
6677 ==== Level 4 Heading====
6678 ===== Level 5 Heading=====
6679 ====== Level 6 Heading======
6680 ======= Level 7 Heading=======
6681 ======== Level 8 Heading========
6682 ========= Level 9 Heading=========
6683 ========== Level 10 Heading==========
6685 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6687 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6689 <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>
6691 <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>
6693 <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>
6695 <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>
6697 <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>
6698 <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>
6699 <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>
6700 <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>
6701 <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>
6714 <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>
6715 <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>
6716 <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>
6717 <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>
6718 <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>
6719 <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>
6720 <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>
6721 <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>
6722 <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>
6723 <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>
6728 TOC regression (bug 9764)
6732 ==== title 1.1.1 ====
6737 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6739 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6741 <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>
6743 <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>
6746 <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>
6749 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6751 <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>
6756 <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>
6757 <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>
6758 <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>
6759 <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>
6760 <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>
6761 <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>
6766 TOC with wgMaxTocLevel=3 (bug 6204)
6772 ==== title 1.1.1 ====
6777 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6779 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6781 <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>
6782 <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>
6785 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6787 <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>
6792 <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>
6793 <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>
6794 <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>
6795 <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>
6796 <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>
6797 <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>
6802 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6808 ====Section 1.1.1====
6809 ====Section 1.1.1.1====
6812 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6814 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6816 <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>
6819 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6822 <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>
6823 <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>
6824 <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>
6825 <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>
6826 <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>
6832 Resolving duplicate section names
6837 <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>
6838 <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>
6843 Resolving duplicate section names with differing case (bug 10721)
6848 <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>
6849 <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>
6861 Template with sections, __NOTOC__
6868 <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>
6869 <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>
6870 <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>
6871 <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>
6876 __NOEDITSECTION__ keyword
6882 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6883 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6888 Link inside a section heading
6890 ==Section with a [[Main Page|link]] in it==
6892 <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>
6897 TOC regression (bug 12077)
6904 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6906 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6908 <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>
6911 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6914 <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>
6915 <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>
6916 <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>
6921 BUG 1219 URL next to image (good)
6923 http://example.com [[Image:foobar.jpg]]
6925 <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>
6930 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6933 The line above must have a trailing space!
6936 But just in case it doesn't...
6938 <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>
6939 <p>The line above must have a trailing space!
6941 <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>
6942 <p>But just in case it doesn't...
6947 Header with special characters (bug 25462)
6949 The tooltips shall not show entities to the user (ie. be double escaped)
6966 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6968 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6970 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6971 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6972 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6973 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6974 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6977 <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>
6980 <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>
6983 <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>
6986 <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>
6989 <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>
6995 Headers with excess '=' characters
6996 (Are similar tests necessary beyond the 1st level?)
7000 =''italic'' heading==
7001 ==''italic'' heading=
7003 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7005 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7006 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7007 <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>
7008 <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>
7011 <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>
7012 <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>
7013 <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>
7014 <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>
7019 BUG 1219 URL next to image (broken)
7021 http://example.com[[Image:foobar.jpg]]
7023 <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>
7028 Bug 1186 news: in the middle of text
7030 http://en.wikinews.org/wiki/Wikinews:Workplace
7032 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7038 Namespaced link must have a title
7047 Namespaced link must have a title (bad fragment version)
7049 [[Project:#fragment]]
7051 <p>[[Project:#fragment]]
7057 div with no attributes
7059 <div>HTML rocks</div>
7061 <div>HTML rocks</div>
7066 div with double-quoted attribute
7068 <div id="rock">HTML rocks</div>
7070 <div id="rock">HTML rocks</div>
7075 div with single-quoted attribute
7077 <div id='rock'>HTML rocks</div>
7079 <div id="rock">HTML rocks</div>
7084 div with unquoted attribute
7086 <div id=rock>HTML rocks</div>
7088 <div id="rock">HTML rocks</div>
7093 div with illegal double attributes
7095 <div id="a" id="b">HTML rocks</div>
7097 <div id="b">HTML rocks</div>
7101 # FIXME: produce empty string instead of "class" in the PHP parser, following
7104 div with empty attribute value, space before equals
7108 <div class =>HTML rocks</div>
7110 <div class="">HTML rocks</div>
7114 # This it very inconsistent in the PHP parser: it returns
7115 # class="class" if there is a space between the name and the equal sign (see
7116 # 'div with empty attribute value, space before equals'), but strips the
7117 # attribute completely if the space is missing. We hope that not much content
7118 # depends on this, so are implementing the behavior below in Parsoid for
7119 # consistencies' sake. Disabled for the PHP parser.
7120 # FIXME: fix this behavior in the PHP parser?
7122 div with empty attribute value, no space before equals
7126 <div class=>HTML rocks</div>
7128 <div class="">HTML rocks</div>
7133 HTML multiple attributes correction
7135 <p class="error" class="awesome">Awesome!</p>
7137 <p class="awesome">Awesome!</p>
7142 Table multiple attributes correction
7145 !+ class="error" class="awesome"| status
7150 <th class="awesome"> status
7158 <DIV ID="x">HTML ROCKS</DIV>
7160 <div id="x">HTML ROCKS</div>
7166 text with amp in the middle of nowhere
7170 <p>Remember AT&T?
7175 text with character entity: eacute
7177 I always thought é was a cute letter.
7179 <p>I always thought é was a cute letter.
7184 text with undefined character entity: xacute
7186 I always thought &xacute; was a cute letter.
7188 <p>I always thought &xacute; was a cute letter.
7200 [[Media:Foobar.jpg]]
7202 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7207 Media link with text
7209 [[Media:Foobar.jpg|A neat file to look at]]
7211 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7215 # FIXME: this is still bad HTML tag nesting
7217 Media link with nasty text
7218 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7220 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7222 <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>
7227 Media link to nonexistent file (bug 1702)
7229 [[Media:No such.jpg]]
7231 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7236 Image link to nonexistent file (bug 1850 - good)
7238 [[Image:No such.jpg]]
7240 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7245 :Image link to nonexistent file (bug 1850 - bad)
7247 [[:Image:No such.jpg]]
7249 <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>
7256 Character reference normalization in link text (bug 1938)
7258 [[Main Page|this&that]]
7260 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7267 Test for unicode normalization
7269 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7273 (bug 19451) Links should refer to the normalized form.
7281 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7282 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7283 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7284 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7285 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7290 Empty attribute crash test (bug 2067)
7292 <font color="">foo</font>
7294 <p><font color="">foo</font>
7299 Empty attribute crash test single-quotes (bug 2067)
7301 <font color=''>foo</font>
7303 <p><font color="">foo</font>
7308 Attribute test: equals, then nothing
7310 <font color=>foo</font>
7317 Attribute test: unquoted value
7319 <font color=x>foo</font>
7321 <p><font color="x">foo</font>
7326 Attribute test: unquoted but illegal value (hash)
7328 <font color=#x>foo</font>
7330 <p><font color="#x">foo</font>
7335 Attribute test: no value
7337 <font color>foo</font>
7339 <p><font color="color">foo</font>
7344 Bug 2095: link with three closing brackets
7348 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7353 Bug 2095: link with pipe and three closing brackets
7357 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7362 Bug 2095: link with pipe and three closing brackets, version 2
7364 [[Main Page|[http://example.com/]]]
7366 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7376 Template:Dangerous attribute
7378 " onmouseover="alert(document.cookie)
7382 Template:Dangerous style attribute
7384 border-size: expression(alert(document.cookie))
7390 <div style="float: right; {{{1}}}">Magic div</div>
7394 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7396 <div title="{{test}}"></div>
7398 <div title="This is a test template"></div>
7403 Bug 2304: HTML attribute safety (dangerous template; 2309)
7405 <div title="{{dangerous attribute}}"></div>
7407 <div title=""></div>
7412 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7414 <div style="{{dangerous style attribute}}"></div>
7416 <div style="/* insecure input */"></div>
7421 Bug 2304: HTML attribute safety (safe parameter; 2309)
7423 {{div style|width: 200px}}
7425 <div style="float: right; width: 200px">Magic div</div>
7430 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7432 {{div style|width: expression(alert(document.cookie))}}
7434 <div style="/* insecure input */">Magic div</div>
7439 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7441 {{div style|"><script>alert(document.cookie)</script>}}
7443 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7448 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7450 {{div style|" ><script>alert(document.cookie)</script>}}
7452 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7457 Bug 2304: HTML attribute safety (link)
7459 <div title="[[Main Page]]"></div>
7461 <div title="[[Main Page]]"></div>
7466 Bug 2304: HTML attribute safety (italics)
7468 <div title="''foobar''"></div>
7470 <div title="''foobar''"></div>
7475 Bug 2304: HTML attribute safety (bold)
7477 <div title="'''foobar'''"></div>
7479 <div title="'''foobar'''"></div>
7485 Bug 2304: HTML attribute safety (ISBN)
7487 <div title="ISBN 1234567890"></div>
7489 <div title="ISBN 1234567890"></div>
7494 Bug 2304: HTML attribute safety (RFC)
7496 <div title="RFC 1234"></div>
7498 <div title="RFC 1234"></div>
7503 Bug 2304: HTML attribute safety (PMID)
7505 <div title="PMID 1234567890"></div>
7507 <div title="PMID 1234567890"></div>
7512 Bug 2304: HTML attribute safety (web link)
7514 <div title="http://example.com/"></div>
7516 <div title="http://example.com/"></div>
7521 Bug 2304: HTML attribute safety (named web link)
7523 <div title="[http://example.com/ link]"></div>
7525 <div title="[http://example.com/ link]"></div>
7530 Bug 3244: HTML attribute safety (extension; safe)
7532 <div style="<nowiki>background:blue</nowiki>"></div>
7534 <div style="background:blue"></div>
7539 Bug 3244: HTML attribute safety (extension; unsafe)
7541 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7543 <div style="/* insecure input */"></div>
7547 # More MSIE fun discovered by Tom Gilder
7550 MSIE CSS safety test: spurious slash
7552 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7554 <div style="/* insecure input */">evil</div>
7559 MSIE CSS safety test: hex code
7561 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7563 <div style="/* insecure input */">evil</div>
7568 MSIE CSS safety test: comment in url
7570 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7572 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7577 MSIE CSS safety test: comment in expression
7579 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7581 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7587 Table attribute legitimate extension
7590 !+ style="<nowiki>color:blue</nowiki>"| status
7595 <th style="color:blue"> status
7601 Table attribute safety
7604 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7609 <th style="/* insecure input */"> status
7615 CSS line continuation 1
7617 <div style="background-image: u\ rl(test.jpg);"></div>
7619 <div style="/* insecure input */"></div>
7624 CSS line continuation 2
7626 <div style="background-image: u\ rl(test.jpg); "></div>
7628 <div style="/* insecure input */"></div>
7639 Expansion of multi-line templates in attribute values (bug 6255)
7641 <div style="background: {{identity|#00FF00}}">-</div>
7643 <div style="background: #00FF00">-</div>
7649 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7651 <div style="background:
7654 <div style="background: #00FF00">-</div>
7659 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7661 <div style="background: #00FF00">-</div>
7663 <div style="background: #00FF00">-</div>
7668 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7671 Parser hook: empty input
7684 Parser hook: empty input using terminated empty elements
7697 Parser hook: empty input using terminated empty elements (space before)
7710 Parser hook: basic input
7724 Parser hook: case insensitive
7738 Parser hook: case insensitive, redux
7751 Parser hook: nested tags
7755 <tag><tag></tag></tag>
7766 Parser hook: basic arguments
7768 <tag width=200 height = "100" depth = '50' square></tag>
7776 'square' => 'square',
7783 Parser hook: argument containing a forward slash (bug 5344)
7785 <tag filename='/tmp/bla'></tag>
7790 'filename' => '/tmp/bla',
7797 Parser hook: empty input using terminated empty elements (bug 2374)
7810 # </tag> should be output literally since there is no matching tag that begins it
7812 Parser hook: basic arguments using terminated empty elements (bug 2374)
7814 <tag width=200 height = "100" depth = '50' square/>
7824 'square' => 'square',
7833 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7837 Parser hook: static parser hook not inside a comment
7839 <statictag>hello, world</statictag>
7840 <statictag action=flush/>
7848 Parser hook: static parser hook inside a comment
7850 <!-- <statictag>hello, world</statictag> -->
7851 <statictag action=flush/>
7857 # Nested template calls; this case was broken by Parser.php rev 1.506,
7861 Template:One-parameter
7863 (My parameter is: {{{1}}})
7867 Template:Map-one-parameter
7873 Nested template calls
7875 {{Map-one-parameter|One-parameter|param}}
7877 <p>(My parameter is: param)
7886 Sanitizer: Closing of open tags
7888 <s></s><table></table>
7890 <s></s><table></table>
7895 Sanitizer: Closing of open but not closed tags
7904 Sanitizer: Closing of closed but not open tags
7913 Sanitizer: Closing of closed but not open table tags
7915 Table not started</td></tr></table>
7917 <p>Table not started</td></tr></table>
7922 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7924 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7926 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7931 Sanitizer: Validating the contents of the id attribute (bug 4515)
7937 Something, but definitely not <br id="9" />...
7941 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7945 <br id="foo" /><br id="foo" />
7947 Something need to be done. foo-2 ?
7951 Language converter: output gets cut off unexpectedly (bug 5757)
7955 this bit is safe: }-
7957 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7959 then we get cut off here: }-
7961 all additional text is vanished
7963 <p>this bit is safe: }-
7964 </p><p>but if we add a conversion instance: xxx
7965 </p><p>then we get cut off here: }-
7966 </p><p>all additional text is vanished
7971 Self closed html pairs (bug 5487)
7974 <center><font id="bug" />Centered text</center>
7975 <div><font id="bug2" />In div text</div>
7977 <center><font id="bug" />Centered text</center>
7978 <div><font id="bug2" />In div text</div>
7987 Punctuation: nbsp before exclamation
7991 <p>C'est grave !
7996 Punctuation: CSS !important (bug 11874)
7998 <div style="width:50% !important">important</div>
8000 <div style="width:50% !important">important</div>
8005 Punctuation: CSS ! important (bug 11874; with space after)
8007 <div style="width:50% ! important">important</div>
8009 <div style="width:50% ! important">important</div>
8015 HTML bullet list, closed tags (bug 5497)
8030 HTML bullet list, unclosed tags (bug 5497)
8047 HTML ordered list, closed tags (bug 5497)
8062 HTML ordered list, unclosed tags (bug 5497)
8079 HTML nested bullet list, closed tags (bug 5497)
8104 HTML nested bullet list, open tags (bug 5497)
8129 HTML nested ordered list, closed tags (bug 5497)
8154 HTML nested ordered list, open tags (bug 5497)
8179 HTML ordered list item with parameters oddity
8181 <ol><li id="fragment">One</li></ol>
8183 <ol><li id="fragment">One</li></ol>
8188 bug 5918: autonumbering
8190 [http://first/] [http://second] [ftp://ftp]
8194 [mailto:enclosed@mail.tld With target]
8196 [mailto:enclosed@mail.tld]
8198 mailto:inline@mail.tld
8200 <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>
8201 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8202 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8203 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8204 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8210 # Security and HTML correctness
8211 # From Nick Jenkins' fuzz testing
8215 Fuzz testing: Parser13
8230 Fuzz testing: Parser14
8235 <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>
8236 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8238 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8245 Fuzz testing: Parser14-table
8250 <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>
8251 <table style="__TOC__">
8257 # Known to produce bogus xml (extra </td>)
8259 Fuzz testing: Parser16
8279 Fuzz testing: Parser21
8282 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8287 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8297 Fuzz testing: Parser22
8299 http://===r:::https://b
8303 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8311 # Known to produce bad XML for now
8313 Fuzz testing: Parser24
8320 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8321 <br style="onmouseover='alert(document.cookie);' " />
8323 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8328 <u class="|">}}}} >
8329 <br style="onmouseover='alert(document.cookie);'" />
8331 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8340 # Note: the current result listed for this is not what the original one was,
8341 # but the original bug was JavaScript injection, which is fixed in any case.
8342 # It's not clear that the original result listed was any more correct than the
8343 # current one. Original result:
8346 # <li class="||">
8347 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8349 Fuzz testing: Parser25 (bug 6055)
8355 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8357 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8362 Fuzz testing: URL adjacent extension (with space, clean)
8365 http://example.com <nowiki>junk</nowiki>
8367 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8372 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8375 http://example.com<nowiki>junk</nowiki>
8377 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8382 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8385 http://example.com<pre>junk</pre>
8387 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8392 Fuzz testing: image with bogus manual thumbnail
8394 [[Image:foobar.jpg|thumbnail= ]]
8396 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8401 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8403 <pre dir=" "></pre>
8405 <pre dir=" "></pre>
8410 Parsing optional HTML elements (Bug 6171)
8415 <td> Some tabular data</td>
8416 <td> More tabular data ...
8417 <td> And yet som tabular data</td>
8423 <td> Some tabular data</td>
8424 <td> More tabular data ...
8425 </td><td> And yet som tabular data</td>
8432 Correct handling of <td>, <tr> (Bug 6171)
8437 <td> Some tabular data</td>
8438 <td> More tabular data ...</td>
8439 <td> And yet som tabular data</td>
8445 <td> Some tabular data</td>
8446 <td> More tabular data ...</td>
8447 <td> And yet som tabular data</td>
8455 Parsing crashing regression (fr:JavaScript)
8459 <p></body></x>
8464 Inline wiki vs wiki block nesting
8470 <p><b>Bold paragraph</b>
8471 </p><p>New wiki paragraph
8476 Inline HTML vs wiki block nesting
8484 <p><b>Bold paragraph</b>
8485 </p><p>New wiki paragraph
8489 # Original result was this:
8490 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8492 # While that might be marginally more intuitive, maybe, the six-apostrophe
8493 # construct is clearly pathological and the result stated here (which is what
8494 # the parser actually does) is about as reasonable as anything.
8496 Mixing markup for italics and bold
8499 '''bold''''''bold''bolditalics'''''
8501 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8509 Article for special page transclusion test
8513 Special page transclusion
8516 {{Special:Prefixindex/Xyzzyx}}
8518 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8523 Special page transclusion twice (bug 5021)
8526 {{Special:Prefixindex/Xyzzyx}}
8527 {{Special:Prefixindex/Xyzzyx}}
8529 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8530 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8535 Transclusion of default MediaWiki message
8537 {{MediaWiki:Mainpage}}
8544 Transclusion of nonexistent MediaWiki message
8546 {{MediaWiki:Mainpagexxx}}
8548 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8553 Transclusion of MediaWiki message with underscore
8555 {{MediaWiki:history_short}}
8562 Transclusion of MediaWiki message with space
8564 {{MediaWiki:history short}}
8571 Invalid header with following text
8581 Section extraction test (section 0)
8601 Section extraction test (section 1)
8623 Section extraction test (section 2)
8644 Section extraction test (section 3)
8664 Section extraction test (section 4)
8688 Section extraction test (section 5)
8708 Section extraction test (section 6)
8729 Section extraction test (section 7)
8749 Section extraction test (section 8)
8769 Section extraction test (section 9)
8790 Section extraction test (section 10)
8810 Section extraction test (nonexistent section 11)
8829 Section extraction test with bogus heading (section 1)
8834 ==bogus== not a legal section
8838 ==bogus== not a legal section
8842 Section extraction test with bogus heading (section 2)
8847 ==bogus== not a legal section
8854 Section extraction test with comment after heading (section 1)
8866 Section extraction test with comment after heading (section 2)
8878 Section extraction test with bogus <nowiki> heading (section 1)
8883 ==bogus== <nowiki>not a legal section</nowiki>
8887 ==bogus== <nowiki>not a legal section</nowiki>
8891 Section extraction test with bogus <nowiki> heading (section 2)
8896 ==bogus== <nowiki>not a legal section</nowiki>
8903 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8904 # instead of respecting commented sections
8906 Section extraction prefixed by comment (section 1)
8917 Section extraction prefixed by comment (section 2)
8928 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8929 # instead of respecting HTML-style headings
8931 Section extraction, mixed wiki and html (section 1)
8947 Section extraction, mixed wiki and html (section 2)
8963 # Formerly testing for bug 3342
8965 Section extraction, heading surrounded by <noinclude>
8969 <noinclude>==unmarked==</noinclude>
8975 # Test behaviour of bug 19910
8977 Sectiion with all-equals
8982 The line above must have a trailing space
8985 But just in case it doesn't...
8989 But just in case it doesn't...
8993 Section replacement test (section 0)
9024 Section replacement test (section 1)
9053 Section replacement test (section 2)
9083 Section replacement test (section 3)
9114 Section replacement test (section 4)
9141 Section replacement test (section 5)
9172 Section replacement test (section 6)
9202 Section replacement test (section 7)
9233 Section replacement test (section 8)
9264 Section replacement test (section 9)
9293 Section replacement test (section 10)
9323 Section replacement test with initial whitespace (bug 13728)
9327 Preformatted initial line
9331 Preformatted initial line
9338 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9350 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9363 Section extraction, <pre> around bogus header (bug 10309)
9380 Section replacement, <pre> around bogus header (bug 10309)
9382 noxml replace=2,"xxx"
9403 Handling of 
 in URLs
9407 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9414 5 quotes, code coverage +1 line
9421 Special:Search page linking.
9425 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9440 * {{SUBJECTPAGENAME}}
9441 * {{SUBJECTPAGENAMEE}}
9448 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9450 <ul><li> Parser test
9451 </li><li> Parser test
9452 </li><li> Parser test
9453 </li><li> Parser_test
9454 </li><li> Parser test
9455 </li><li> Parser_test
9456 </li><li> Talk:Parser test
9457 </li><li> Talk:Parser_test
9458 </li><li> Parser test
9459 </li><li> Parser_test
9466 </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>
9470 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9480 image4 |300px| centre
9481 image5.svg| http://///////
9486 <ul class="gallery">
9487 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9488 <div style="height: 150px;">Image1.png</div>
9489 <div class="gallerytext">
9492 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9493 <div style="height: 150px;">Image2.gif</div>
9494 <div class="gallerytext">
9499 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9500 <div style="height: 150px;">Image3</div>
9501 <div class="gallerytext">
9504 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9505 <div style="height: 150px;">Image4</div>
9506 <div class="gallerytext">
9511 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9512 <div style="height: 150px;">Image5.svg</div>
9513 <div class="gallerytext">
9514 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9518 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9519 <div style="height: 150px;">* image6</div>
9520 <div class="gallerytext">
9528 Gallery (with options)
9530 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9531 File:Nonexistant.jpg|caption
9532 File:Nonexistant.jpg
9533 image:foobar.jpg|some '''caption''' [[Main Page]]
9535 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9538 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9539 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9540 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9541 <div style="height: 70px;">Nonexistant.jpg</div>
9542 <div class="gallerytext">
9547 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9548 <div style="height: 70px;">Nonexistant.jpg</div>
9549 <div class="gallerytext">
9552 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9553 <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>
9554 <div class="gallerytext">
9555 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9559 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9560 <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>
9561 <div class="gallerytext">
9564 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9565 <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>
9566 <div class="gallerytext">
9576 Gallery with wikitext inside caption
9579 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9580 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9583 <ul class="gallery">
9584 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9585 <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>
9586 <div class="gallerytext">
9587 <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>
9591 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9592 <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>
9593 <div class="gallerytext">
9594 <p>This is a test template
9603 gallery (with showfilename option)
9605 <gallery showfilename>
9606 File:Nonexistant.jpg|caption
9607 File:Nonexistant.jpg
9608 image:foobar.jpg|some '''caption''' [[Main Page]]
9612 <ul class="gallery">
9613 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9614 <div style="height: 150px;">Nonexistant.jpg</div>
9615 <div class="gallerytext">
9616 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9621 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9622 <div style="height: 150px;">Nonexistant.jpg</div>
9623 <div class="gallerytext">
9624 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9628 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9629 <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>
9630 <div class="gallerytext">
9631 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9632 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9636 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9637 <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>
9638 <div class="gallerytext">
9639 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9648 Gallery (with namespace-less filenames)
9651 File:Nonexistant.jpg
9657 <ul class="gallery">
9658 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9659 <div style="height: 150px;">Nonexistant.jpg</div>
9660 <div class="gallerytext">
9663 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9664 <div style="height: 150px;">Nonexistant.jpg</div>
9665 <div class="gallerytext">
9668 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9669 <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>
9670 <div class="gallerytext">
9673 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9674 <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>
9675 <div class="gallerytext">
9683 HTML Hex character encoding (spells the word "JavaScript")
9685 JavaScript
9687 <p>JavaScript
9692 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9696 <p>&#xsee;&#XSEE;
9701 HTML Hex character encoding mixed case
9710 __FORCETOC__ override
9722 ISBN 978-0-1234-56 789
9724 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9729 ISBN followed by 5 spaces
9740 ISBN ISBN 1234567890
9742 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9747 Bug 22905: <abbr> followed by ISBN followed by </a>
9749 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9751 <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>
9760 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9765 Double RFC with a wiki link
9769 <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>
9778 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9783 Centre-aligned image
9785 [[Image:foobar.jpg|centre]]
9787 <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>
9794 [[Image:foobar.jpg|none]]
9796 <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>
9801 Width + Height sized image (using px) (height is ignored)
9803 [[Image:foobar.jpg|640x480px]]
9805 <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>
9810 Width-sized image (using px, no following whitespace)
9812 [[Image:foobar.jpg|640px]]
9814 <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>
9819 Width-sized image (using px, with following whitespace - test regression from r39467)
9821 [[Image:foobar.jpg|640px ]]
9823 <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>
9828 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9830 [[Image:foobar.jpg| 640px]]
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 Another italics / bold test
9845 # Note the results may be incorrect, as parserTest output included this:
9846 # XML error: Mismatched tag at byte 6120:
9847 # ...<dd> </dt></dl> </dd...
9855 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9866 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9868 Images with the "|" character in the comment
9870 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9872 <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>
9877 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9879 <html><script>alert(1);</script></html>
9881 <p><html><script>alert(1);</script></html>
9886 HTML with raw HTML ($wgRawHtml==true)
9890 <html><script>alert(1);</script></html>
9892 <p><script>alert(1);</script>
9897 Parents of subpages, one level up
9899 subpage title=[[Subpage test/L1/L2/L3]]
9903 <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>
9909 Parents of subpages, one level up, not named
9911 subpage title=[[Subpage test/L1/L2/L3]]
9915 <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>
9922 Parents of subpages, two levels up
9924 subpage title=[[Subpage test/L1/L2/L3]]
9930 <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
9931 </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>
9936 Parents of subpages, two levels up, without trailing slash or name.
9938 subpage title=[[Subpage test/L1/L2/L3]]
9947 Parents of subpages, two levels up, with lots of extra trailing slashes.
9949 subpage title=[[Subpage test/L1/L2/L3]]
9953 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9958 Definition list code coverage
9964 <dl><dt> title  </dt><dd> def
9965 </dd><dt> title </dt><dd> def
9966 </dd><dt>title</dt><dd> def
9972 Don't fall for the self-closing div
9974 <div>hello world</div/>
9976 <div>hello world</div>
9985 <p>[[:Template:Msg]]
9994 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9998 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10000 Always escape literal '>' in output, not just after '<'
10014 <p>This is a test template
10015 This is a test template
10027 Inclusion of !userCanEdit() content
10031 <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>
10037 Out-of-order TOC heading levels
10046 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10048 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10050 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10051 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10054 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10056 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10057 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10062 <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>
10063 <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>
10064 <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>
10065 <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>
10066 <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>
10067 <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>
10073 ISBN with a dummy number
10083 ISBN with space-delimited number
10087 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10093 ISBN with multiple spaces, no number
10112 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10113 </p><p>ISBN 12345678901
10119 ISBN with trailing year (bug 8110)
10121 ISBN 1-234-56789-0 - 2006
10123 ISBN 1 234 56789 0 - 2006
10125 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10126 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10134 {{anchorencode:foo bar©#%n}}
10136 <p>foo_bar.C2.A9.23.25n
10141 anchorencode trims spaces
10143 {{anchorencode: __pretty__please__}}
10150 anchorencode deals with links
10152 {{anchorencode: [[hello|world]] [[hi]]}}
10159 anchorencode deals with templates
10161 {{anchorencode: {{Foo}} }}
10168 anchorencode encodes like the TOC generator: (bug 18431)
10170 === _ +:.3A%3A&&]] ===
10171 {{anchorencode: _ +:.3A%3A&&]] }}
10174 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10175 <p>.2B:.3A.253A.26.26.5D.5D
10179 # Expected output in the following test is not necessarily expected (there
10180 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10181 # only testing for well-formedness.
10183 Bug 6200: blockquotes and paragraph formatting
10203 Bug 8293: Use of center tag ruins paragraph formatting
10225 ### Language variants related tests
10228 Self-link in language variants
10230 title=[[Dunav]] language=sr
10232 Both [[Dunav]] and [[Дунав]] are names for this river.
10234 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10240 Link to pages in language variants
10244 Main Page can be written as [[Маин Паге]]
10246 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10252 Multiple links to pages in language variants
10256 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10258 <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>.
10264 Simple template in language variants
10270 <p>This is a test template
10276 Template with explicit namespace in language variants
10282 <p>This is a test template
10288 Basic test for template parameter in language variants
10292 {{парамтест|param=foo}}
10294 <p>This is a test template with parameter foo
10300 Simple category in language variants
10304 [[Category:МедиаWики Усер'с Гуиде]]
10306 <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>
10311 Stripping -{}- tags (language variants)
10315 Latin proverb: -{Ne nuntium necare}-
10317 <p>Latin proverb: Ne nuntium necare
10323 Prevent conversion with -{}- tags (language variants)
10325 language=sr variant=sr-ec
10327 Latinski: -{Ne nuntium necare}-
10329 <p>Латински: Ne nuntium necare
10335 Prevent conversion of text with -{}- tags (language variants)
10337 language=sr variant=sr-ec
10339 Latinski: -{Ne nuntium necare}-
10341 <p>Латински: Ne nuntium necare
10347 Prevent conversion of links with -{}- tags (language variants)
10349 language=sr variant=sr-ec
10353 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10359 -{}- tags within headlines (within html for parserConvert())
10361 language=sr variant=sr-ec
10365 <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>
10371 Explicit definition of language variant alternatives
10373 language=zh variant=zh-tw
10375 -{zh:China;zh-tw:Taiwan}-, not China
10377 <p>Taiwan, not China
10383 Explicit session-wise language variant mapping (A flag and - flag)
10385 language=zh variant=zh-tw
10387 Taiwan is not China.
10388 But -{A|zh:China;zh-tw:Taiwan}- is China,
10389 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10390 and -{China}- is China.
10392 <p>Taiwan is not China.
10393 But Taiwan is Taiwan,
10394 (This should be stripped!)
10395 and China is China.
10400 Explicit session-wise language variant mapping (H flag for hide)
10402 language=zh variant=zh-tw
10404 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10407 <p>(This should be stripped!)
10413 Adding explicit conversion rule for title (T flag)
10415 language=zh variant=zh-tw showtitle
10417 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10420 <p>Should be stripped!
10425 Testing that changing the language variant here in the tests actually works
10427 language=zh variant=zh showtitle
10429 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10432 <p>Should be stripped!
10437 Bug 24072: more test on conversion rule for title
10439 language=zh variant=zh-tw showtitle
10441 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10442 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10445 <p>This should be stripped!
10446 This won't take interferes with the title rule.
10451 Raw output of variant escape tags (R flag)
10453 language=zh variant=zh-tw
10455 Raw: -{R|zh:China;zh-tw:Taiwan}-
10457 <p>Raw: zh:China;zh-tw:Taiwan
10462 Nested using of manual convert syntax
10464 language=zh variant=zh-hk
10466 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10468 <p>Nested: Hello Hong Kong!
10473 Do not convert roman numbers to language variants
10475 language=sr variant=sr-ec
10479 <p>Фридрих IV је цар.
10484 Unclosed language converter markup "-{"
10495 Don't convert raw rule "-{R|=>}-" to "=>"
10512 Bug 529: Uncovered bullet
10522 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10523 # Templates in Wikipedia rely on this behavior, as tidy has always been
10524 # enabled there. These tests are normally run *without* tidy, so specify the
10525 # full output here.
10526 # To test realistic parsing behavior, apply a tidy-like transformation to both
10527 # the expected output and your parser's output.
10529 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10531 ******* Foo {{bullet}}
10533 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10546 Bug 529: Uncovered table already at line-start
10569 Bug 529: Uncovered bullet in parser function result
10571 * Foo {{lc:{{bullet}} }}
10580 Bug 5678: Double-parsed template argument
10582 {{lc:{{{1}}}|hello}}
10589 Bug 5678: Double-parsed template invocation
10591 {{lc:{{paramtest {{!}} param = hello }} }}
10593 <p>{{paramtest | param = hello }}
10598 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10601 title=[[Main Page]]
10603 {{PRVNÍVELKÉ:ěščř}}
10604 {{prvnívelké:ěščř}}
10624 Morwen/13: Unclosed link followed by heading
10631 <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>
10636 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10643 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10648 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10655 <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>
10670 Paragraphs inside divs (no extra line breaks)
10682 Paragraphs inside divs (extra line break on open)
10697 Paragraphs inside divs (extra line break on close)
10712 Paragraphs inside divs (extra line break on open and close)
10729 Nesting tags, paragraphs on lines which begin with <div>
10733 <div></div><strong>A
10742 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10744 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10748 <blockquote>Line one
10750 Line two</blockquote>
10752 <blockquote>Line one
10753 Line two</blockquote>
10758 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10765 Line two</blockquote>
10770 Line two</blockquote>
10775 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10779 <blockquote>Line one
10784 <blockquote>Line one
10792 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10811 Paragraphs inside blockquotes/divs (no extra line breaks)
10813 <blockquote><div>Line one
10815 Line two</div></blockquote>
10817 <blockquote><div>Line one
10818 Line two</div></blockquote>
10823 Paragraphs inside blockquotes/divs (extra line break on open)
10828 Line two</div></blockquote>
10833 Line two</div></blockquote>
10838 Paragraphs inside blockquotes/divs (extra line break on close)
10840 <blockquote><div>Line one
10843 </div></blockquote>
10845 <blockquote><div>Line one
10848 </div></blockquote>
10853 Paragraphs inside blockquotes/divs (extra line break on open and close)
10859 </div></blockquote>
10865 </div></blockquote>
10870 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10872 wgLinkHolderBatchSize=0
10878 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10879 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10880 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10885 Free external link invading image caption
10887 [[Image:Foobar.jpg|thumb|http://x|hello]]
10889 <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>
10894 Bug 15196: localised external link numbers
10898 [http://en.wikipedia.org/]
10900 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10905 Multibyte character in padleft
10907 {{padleft:-Hello|7|Æ}}
10914 Multibyte character in padright
10916 {{padright:Hello-|7|Æ}}
10925 wgUseDynamicDates=1
10929 <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>
10934 formatdate parser function
10936 {{#formatdate:2009-03-24}}
10938 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10943 formatdate parser function, with default format
10945 {{#formatdate:2009-03-24|mdy}}
10947 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10952 Linked date with autoformatting disabled
10954 wgUseDynamicDates=false
10958 <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>
10963 Spacing of numbers in formatted dates
10965 {{#formatdate:January 15}}
10967 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10972 Spacing of numbers in formatted dates (linked)
10974 wgUseDynamicDates=true
10978 <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>
10983 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
10985 language=nl title=[[MediaWiki:Common.css]]
10987 {{#formatdate:2009-03-24|dmy}}
10989 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11002 Edit comment with link
11006 I like the [[Main Page]] a lot
11008 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11012 Edit comment with link and link text
11016 I like the [[Main Page|best pages]] a lot
11018 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11022 Edit comment with link and link text with suffix
11026 I like the [[Main Page|best page]]s a lot
11028 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11032 Edit comment with section link (non-local, eg in history list)
11034 comment title=[[Main Page]]
11036 /* External links */ removed bogus entries
11038 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11042 Edit comment with section link and text before it (non-local, eg in history list)
11044 comment title=[[Main Page]]
11046 pre-comment text /* External links */ removed bogus entries
11048 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>
11052 Edit comment with section link (local, eg in diff view)
11054 comment local title=[[Main Page]]
11056 /* External links */ removed bogus entries
11058 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11062 Edit comment with subpage link (bug 14080)
11066 title=[[Subpage test]]
11068 Poked at a [[/subpage]] here...
11070 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11074 Edit comment with subpage link and link text (bug 14080)
11078 title=[[Subpage test]]
11080 Poked at a [[/subpage|neat little page]] here...
11082 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11086 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11089 title=[[Subpage test]]
11091 Poked at a [[/subpage]] here...
11093 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11097 Edit comment with bare anchor link (local, as on diff)
11101 title=[[Main Page]]
11105 <a href="#section">#section</a>
11109 Edit comment with bare anchor link (non-local, as on history)
11112 title=[[Main Page]]
11116 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11120 Anchor starting with underscore
11124 <p><a href="#_ref">One</a>
11129 Id starting with underscore
11131 <div id="_ref"></div>
11133 <div id="_ref"></div>
11138 Space normalisation on autocomment (bug 22784)
11141 title=[[Main Page]]
11143 /* __hello__world__ */
11145 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11149 percent-encoding and + signs in comments (Bug 26410)
11153 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11155 <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>
11159 Bad images - basic functionality
11168 Bad images - bug 16039: text after bad image disappears
11182 Verify that displaytitle works (bug #22501) no displaytitle
11186 wgAllowDisplayTitle=true
11187 wgRestrictDisplayTitle=false
11189 this is not the the title
11192 <p>this is not the the title
11197 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11202 wgAllowDisplayTitle=true
11203 wgRestrictDisplayTitle=false
11205 this is not the the title
11206 {{DISPLAYTITLE:whatever}}
11209 <p>this is not the the title
11214 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11219 wgAllowDisplayTitle=true
11220 wgRestrictDisplayTitle=true
11222 this is not the the title
11223 {{DISPLAYTITLE:whatever}}
11226 <p>this is not the the title
11231 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11236 wgAllowDisplayTitle=true
11237 wgRestrictDisplayTitle=true
11239 this is not the the title
11240 {{DISPLAYTITLE:screen}}
11243 <p>this is not the the title
11248 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11253 wgAllowDisplayTitle=false
11255 this is not the the title
11256 {{DISPLAYTITLE:screen}}
11259 <p>this is not the the title
11260 <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>
11265 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11270 wgAllowDisplayTitle=false
11272 this is not the the title
11275 <p>this is not the the title
11280 preload: check <noinclude> and <includeonly>
11284 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11290 preload: check <onlyinclude>
11294 Goodbye <onlyinclude>Hello world</onlyinclude>
11300 preload: can pass tags through if we want to
11304 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11306 <includeonly>Hello world</includeonly>
11310 preload: check that it doesn't try to do tricks
11314 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11316 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11320 Play a bit with r67090 and bug 3158
11324 <div style="width:50% !important"> </div>
11325 <div style="width:50% !important"> </div>
11326 <div style="width:50% !important"> </div>
11327 <div style="border : solid;"> </div>
11329 <div style="width:50% !important"> </div>
11330 <div style="width:50% !important"> </div>
11331 <div style="width:50% !important"> </div>
11332 <div style="border : solid;"> </div>
11337 HTML5 data attributes
11339 <span data-foo="bar">Baz</span>
11340 <p data-abc-def_hij="">Quuz</p>
11342 <p><span data-foo="bar">Baz</span>
11344 <p data-abc-def_hij="">Quuz</p>
11349 percent-encoding and + signs in internal links (Bug 26410)
11351 [[User:+%]] [[Page+title%]]
11352 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11353 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11354 [[%33%45]] [[%33%45+]]
11356 <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>
11357 <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>
11358 <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>
11359 <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>
11364 Special characters in embedded file links (bug 27679)
11366 [[File:Contains & ampersand.jpg]]
11367 [[File:Does not exist.jpg|Title with & ampersand]]
11369 <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>
11370 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11376 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11378 Text's been normalized?
11380 <p>Text's been normalized?
11385 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11387 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11389 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11394 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11396 [http://www.example.org/ ideograms]
11398 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11403 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11405 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11407 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11431 Bug 31098 Template which includes system messages which includes the template
11435 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11436 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11441 Deprecated presentational attributes are converted to css
11444 | valign=top align=left width=100 height=25% | Asdf
11446 <ul type="disc"></ul>
11450 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11452 <ul style="list-style-type: disc;"></ul>
11457 Bug31490 Turkish: ucfirst 'blah'
11468 Bug31490 Turkish: ucfirst 'ix'
11479 Bug31490 Turkish: lcfirst 'BLAH'
11490 Bug31490 Turkish: ucfırst (with a dotless i)
11496 <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>
11501 Bug31490 ucfırst (with a dotless i) with English language
11507 <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>
11512 Bug 26375: TOC with italics
11514 title=[[Main Page]]
11517 == ''Lost'' episodes ==
11519 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11521 <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>
11524 <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>
11529 Bug 26375: TOC with bold
11531 title=[[Main Page]]
11534 == '''should be bold''' then normal text ==
11536 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11538 <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>
11541 <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>
11546 Bug 33845: Headings become cursive in TOC when they contain an image
11548 title=[[Main Page]]
11551 == Image [[Image:foobar.jpg]] ==
11553 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11555 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11558 <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>
11563 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11565 title=[[Main Page]]
11568 == <blockquote>Quote</blockquote> ==
11570 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11572 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11575 <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>
11580 Unclosed tags in TOC
11582 title=[[Main Page]]
11586 <small>Hanc marginis exiguitas non caperet.</small>
11589 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11591 <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>
11594 <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>
11595 <p><small>Hanc marginis exiguitas non caperet.</small>
11601 Multiple tags in TOC
11604 == <i>Foo</i> <b>Bar</b> ==
11606 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11608 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11610 <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>
11611 <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>
11614 <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>
11615 <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>
11620 Tags with parameters in TOC
11623 == <sup class="in-h2">Hello</sup> ==
11625 == <sup class="a > b">Evilbye</sup> ==
11627 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11629 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11630 <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>
11633 <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>
11634 <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>
11639 span tags with directionality in TOC
11642 == <span dir="ltr">C++</span> ==
11644 == <span dir="rtl">זבנג!</span> ==
11646 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11648 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11650 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11652 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11654 <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>
11655 <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>
11656 <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>
11657 <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>
11658 <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>
11661 <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>
11662 <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>
11663 <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>
11664 <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>
11665 <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>
11672 == {{int:headline_sample}} ==
11676 Bug 32057: Title needed when expanding <h> nodes.
11678 title=[[Main Page]]
11682 <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>
11687 Strip marker in urlencode
11689 {{urlencode:x<nowiki/>y}}
11690 {{urlencode:x<nowiki/>y|wiki}}
11691 {{urlencode:x<nowiki/>y|path}}
11718 Strip marker in formatNum
11720 {{formatnum:1<nowiki/>2}}
11721 {{formatnum:1<nowiki/>2|R}}
11729 Strip marker in grammar
11733 {{grammar:elative|foo<nowiki/>bar}}
11740 Strip marker in padleft
11742 {{padleft:|2|x<nowiki/>y}}
11749 Strip marker in padright
11751 {{padright:|2|x<nowiki/>y}}
11758 Strip marker in anchorencode
11760 {{anchorencode:x<nowiki/>y}}
11767 nowiki inside link inside heading (bug 18295)
11769 ==[[foo|x<nowiki>y</nowiki>z]]==
11771 <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>
11776 new support for bdi element (bug 31817)
11778 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11780 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11785 Ignore pipe between table row attributes
11789 |- id=foo | style='color: red'
11797 <tr id="foo" style="color: red">
11804 Gallery override link with WikiLink (bug 34852)
11807 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11810 <ul class="gallery">
11811 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11812 <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>
11813 <div class="gallerytext">
11823 Gallery override link with absolute external link (bug 34852)
11826 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11829 <ul class="gallery">
11830 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11831 <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>
11832 <div class="gallerytext">
11842 Gallery override link with malicious javascript (bug 34852)
11845 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11848 <ul class="gallery">
11849 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11850 <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>
11851 <div class="gallerytext">
11861 Language parser function
11870 Padleft and padright as substr
11872 {{padleft:|3|abcde}}
11873 {{padright:|3|abcde}}
11881 Bug 34939 - Case insensitive link parsing ([HttP://])
11883 [HttP://MediaWiki.Org/]
11885 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11890 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11892 [HttP://MediaWiki.Org/ MediaWiki]
11894 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11899 Bug 34939 - Case insensitive link parsing (HttP://)
11901 HttP://MediaWiki.Org/
11903 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11908 ### Parsoids-specific tests
11909 ### Parsoid-PHP parser incompatibilities
11912 1. SOL-sensitive wikitext tokens as template-args
11926 #### The following section of tests are primarily to test
11927 #### wikitext escaping capabilities of Parsoid.
11928 #### A lot of the tests are disabled for the PHP parser either
11929 #### because of minor newline diffs or other reasons.
11930 #### As Parsoid serializer can handle newlines and other HTML
11931 #### more robustly, some of these tests might get reenabled
11932 #### for the PHP parser.
11934 #### --------------- Headings ---------------
11936 #### 1. Nested inside html <h1>=foo=</h1>
11937 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11938 #### 3. Nested inside html with wikitext split by html tags
11939 #### 4. No escape needed
11940 #### 5. Empty headings <h1></h1>
11941 #### 6. Heading chars in SOL context
11942 #### ----------------------------------------
11944 Headings: 0. Unnested
11946 <nowiki>=foo=</nowiki>
11948 <nowiki>=foo</nowiki>''a''=
11951 </p><p>=foo<i>a</i>=
11956 Headings: 1. Nested inside html
11960 =<nowiki>=foo=</nowiki>=
11961 ==<nowiki>=foo=</nowiki>==
11962 ===<nowiki>=foo=</nowiki>===
11963 ====<nowiki>=foo=</nowiki>====
11964 =====<nowiki>=foo=</nowiki>=====
11965 ======<nowiki>=foo=</nowiki>======
11976 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11981 <nowiki>*bar</nowiki>
11985 <nowiki>=bar=</nowiki>
11993 Headings: 3. Nested inside html with wikitext split by html tags
11997 =<nowiki>=</nowiki>'''bold'''foo==
11999 <h1>=<b>bold</b>foo=</h1>
12003 Headings: 4. No escaping needed (testing just h1 and h2)
12018 <h1><i>=</i>foo=</h1>
12023 Headings: 5. Empty headings
12027 =<nowiki></nowiki>=
12028 ==<nowiki></nowiki>==
12029 ===<nowiki></nowiki>===
12030 ====<nowiki></nowiki>====
12031 =====<nowiki></nowiki>=====
12032 ======<nowiki></nowiki>======
12043 Headings: 6. Heading chars in SOL context
12047 <!--cmt--><nowiki>=h1=</nowiki>
12053 #### --------------- Lists ---------------
12054 #### 0. Outside nests (*foo, etc.)
12055 #### 1. Nested inside html <ul><li>*foo</li></ul>
12056 #### 2. Inside definition lists
12057 #### 3. Only bullets at start should be escaped
12058 #### 4. No escapes needed
12059 #### 5. No unnecessary escapes
12060 #### 6. Escape bullets in SOL position
12061 #### 7. Escape bullets in a multi-line context
12062 #### ----------------------------------------
12065 Lists: 0. Outside nests
12067 <nowiki>*foo</nowiki>
12069 <nowiki>#foo</nowiki>
12077 Lists: 1. Nested inside html
12079 *<nowiki>*foo</nowiki>
12081 *<nowiki>#foo</nowiki>
12083 *<nowiki>:foo</nowiki>
12085 *<nowiki>;foo</nowiki>
12087 #<nowiki>*foo</nowiki>
12089 #<nowiki>#foo</nowiki>
12091 #<nowiki>:foo</nowiki>
12093 #<nowiki>;foo</nowiki>
12115 Lists: 2. Inside definition lists
12117 ;<nowiki>;foo</nowiki>
12119 ;<nowiki>:foo</nowiki>
12121 ;<nowiki>:foo</nowiki>
12124 :<nowiki>:foo</nowiki>
12139 Lists: 3. Only bullets at start of text should be escaped
12141 *<nowiki>*foo*bar</nowiki>
12143 *<nowiki>*foo</nowiki>''it''*bar
12147 <ul><li>*foo<i>it</i>*bar
12153 Lists: 4. No escapes needed
12165 <ul><li><i>foo</i>*bar
12167 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12172 Lists: 5. No unnecessary escapes
12174 * bar <span><nowiki>[[foo]]</nowiki></span>
12176 *=bar <span><nowiki>[[foo]]</nowiki></span>
12178 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12180 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12182 *=bar <span>foo]]</span>=
12184 <ul><li> bar <span>[[foo]]</span>
12186 <ul><li>=bar <span>[[foo]]</span>
12188 <ul><li>[[bar <span>[[foo]]</span>
12190 <ul><li>]]bar <span>[[foo]]</span>
12192 <ul><li>=bar <span>foo]]</span>=
12198 Lists: 6. Escape bullets in SOL position
12202 <!--cmt--><nowiki>*foo</nowiki>
12209 Lists: 7. Escape bullets in a multi-line context
12219 #### --------------- HRs ---------------
12220 #### 1. Single line
12221 #### -----------------------------------
12224 HRs: 1. Single line
12229 <nowiki>----</nowiki>
12231 <nowiki>=foo=</nowiki>
12233 <nowiki>*foo</nowiki>
12240 #### --------------- Tables ---------------
12241 #### 1a. Simple example
12242 #### 1b. No escaping needed (!foo)
12243 #### 1c. No escaping needed (|foo)
12244 #### 1d. No escaping needed (|}foo)
12246 #### 2a. Nested in td (<td>foo|bar</td>)
12247 #### 2b. Nested in td (<td>foo||bar</td>)
12248 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12250 #### 3a. Nested in th (<th>foo!bar</th>)
12251 #### 3b. Nested in th (<th>foo!!bar</th>)
12252 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12256 #### 4c. No escaping needed
12257 #### --------------------------------------
12260 Tables: 1a. Simple example
12271 Tables: 1b. No escaping needed
12280 Tables: 1c. No escaping needed
12289 Tables: 1d. No escaping needed
12298 Tables: 2a. Nested in td
12303 |<nowiki>foo|bar</nowiki>
12313 Tables: 2b. Nested in td
12318 |<nowiki>foo||bar</nowiki>
12319 |''it''<nowiki>foo||bar</nowiki>
12324 </td><td><i>it</i>foo||bar
12330 Tables: 2c. Nested in td -- no escaping needed
12345 Tables: 3a. Nested in th
12360 Tables: 3b. Nested in th
12365 !<nowiki>foo!!bar</nowiki>
12375 Tables: 3c. Nested in th -- no escaping needed
12390 Tables: 4a. Escape -
12398 |<nowiki>-bar</nowiki>
12402 <tr><th>-bar</th></tr>
12403 <tr><td>-bar</td></tr>
12408 Tables: 4b. Escape +
12416 |<nowiki>+bar</nowiki>
12420 <tr><th>+bar</th></tr>
12421 <tr><td>+bar</td></tr>
12426 Tables: 4c. No escaping needed
12440 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12441 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12445 #### --------------- Links ---------------
12446 #### 1. Quote marks in link text
12447 #### 2. Wikilinks: Escapes needed
12448 #### 3. Wikilinks: No escapes needed
12449 #### 4. Extlinks: Escapes needed
12450 #### 5. Extlinks: No escapes needed
12451 #### --------------------------------------
12453 Links 1. Quote marks in link text
12457 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12459 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12463 Links 2. WikiLinks: Escapes needed
12467 [[Foo|<nowiki>[Foobar]</nowiki>]]
12468 [[Foo|<nowiki>Foobar]</nowiki>]]
12469 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12470 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12471 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12472 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12473 [[Foo|<nowiki>|Bar</nowiki>]]
12475 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12476 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12477 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12478 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12479 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12480 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12481 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12485 Links 3. WikiLinks: No escapes needed
12492 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12493 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12497 Links 4. ExtLinks: Escapes needed
12501 [http://google.com <nowiki>[google]</nowiki>]
12502 [http://google.com <nowiki>google]</nowiki>]
12504 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12505 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12509 Links 5. ExtLinks: No escapes needed
12513 [http://google.com [google]
12515 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12518 #### --------------- Quotes ---------------
12519 #### 1. Quotes inside <b> and <i>
12520 #### 2. Link fragments separated by <i> and <b> tags
12521 #### 3. Link fragments inside <i> and <b>
12522 #### --------------------------------------
12524 1. Quotes inside <b> and <i>
12526 ''<nowiki>'foo'</nowiki>''
12527 ''<nowiki>''foo''</nowiki>''
12528 ''<nowiki>'''foo'''</nowiki>''
12529 '''<nowiki>'foo'</nowiki>'''
12530 '''<nowiki>''foo''</nowiki>'''
12531 '''<nowiki>'''foo'''</nowiki>'''
12532 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12540 <b>foo'<i>bar'</i>baz</b>
12545 2. Link fragments separated by <i> and <b> tags
12547 [[''foo''<nowiki>hello]]</nowiki>
12549 [['''foo'''<nowiki>hello]]</nowiki>
12551 <p>[[<i>foo</i>hello]]
12552 </p><p>[[<b>foo</b>hello]]
12557 2. Link fragments inside <i> and <b>
12558 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12559 this is one of the shortcomings of this format)
12561 ''[[foo''<nowiki>]]</nowiki>
12563 '''[[foo'''<nowiki>]]</nowiki>
12566 </p><p><b>[[foo</b>]]
12570 #### --------------- Paragraphs ---------------
12571 #### 1. No unnecessary escapes
12572 #### --------------------------------------
12575 1. No unnecessary escapes
12577 bar <span><nowiki>[[foo]]</nowiki></span>
12579 =bar <span><nowiki>[[foo]]</nowiki></span>
12581 [[bar <span><nowiki>[[foo]]</nowiki></span>
12583 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12585 <nowiki>=bar </nowiki><span>foo]]</span>=
12587 <p>bar <span>[[foo]]</span>
12588 </p><p>=bar <span>[[foo]]</span>
12589 </p><p>[[bar <span>[[foo]]</span>
12590 </p><p>]]bar <span>[[foo]]</span>
12591 </p><p>=bar <span>foo]]</span>=
12595 #### --------------- PRE ------------------
12596 #### 1. Leading space in SOL context should be escaped
12597 #### --------------------------------------
12599 1. Leading space in SOL context should be escaped
12603 <nowiki> foo</nowiki>
12604 <!--cmt--><nowiki> foo</nowiki>
12611 #### --------------- HTML tags ---------------
12614 #### 3. multi-line html tag
12615 #### --------------------------------------
12621 <a href="http://google.com">google</a>
12623 <a href="http://google.com">google</a>
12629 <nowiki><div>foo</div>
12630 <div style="color:red">foo</div></nowiki>
12632 <p><div>foo</div>
12633 <div style="color:red">foo</div>
12638 3. multi-line html tag
12650 #### --------------- Others ---------------
12654 <nowiki>foo</nowiki>
12656 <p><nowiki>foo</nowiki>
12665 Try for 100% code coverage