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
2831 Plain link, capitalized
2835 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2840 Plain link, uncapitalized
2844 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2851 [[Main Page|The Main Page]]
2853 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2862 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2867 Broken link with fragment
2869 [[Zigzagzogzagzig#zug]]
2871 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2876 Special page link with fragment
2878 [[Special:Version#anchor]]
2880 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2885 Nonexistent special page link with fragment
2887 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2889 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2896 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2898 <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>
2905 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2907 <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>!!!
2912 Link with 3 brackets
2921 Piped link with 3 brackets
2923 [[[main page|the main page]]]
2925 <p>[[[main page|the main page]]]
2930 Link with multiple pipes
2932 [[Main Page|The|Main|Page]]
2934 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2941 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2943 <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>
2948 Piped link to namespace
2950 [[Meta:Disclaimers|The disclaimers]]
2952 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2959 [[Usually caused by a typo (oops}]]
2961 <p>[[Usually caused by a typo (oops}]]
2966 Link containing % (not as a hex sequence)
2970 <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>
2975 Link containing % as a single hex sequence interpreted to char
2979 <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>
2984 Link containing % as a double hex sequence interpreted to hex sequence
2988 <p>[[7%2525 Solution]]
2993 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2994 Example for such a section: == < ==
2996 [[%23%3c]][[%23%3e]]
2998 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3003 Link containing "<#" and ">#" as a hex sequences
3005 [[%3c%23]][[%3e%23]]
3007 <p>[[%3c%23]][[%3e%23]]
3012 Link containing double-single-quotes '' (bug 4598)
3014 [[Lista d''e paise d''o munno]]
3016 <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>
3021 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3023 Some [[Link|pretty ''italics'' and stuff]]!
3025 <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>!
3030 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3032 ''Some [[Link|pretty ''italics'' and stuff]]!
3034 <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>
3039 Link with double quotes in title part (literal) and alternate part (interpreted)
3041 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3045 [[''Pentecoste''|Pentecoste]]
3047 [[''Pentecoste''|''Pentecoste'']]
3049 <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>
3050 </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>
3051 </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>
3052 </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>
3057 Broken image links with HTML captions (bug 39700)
3059 [[File:Nonexistent|<script></script>]]
3060 [[File:Nonexistent|100px|<script></script>]]
3061 [[File:Nonexistent|<]]
3062 [[File:Nonexistent|a<i>b</i>c]]
3064 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3065 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3066 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3067 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3074 [[http://www.example.com]]
3076 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3081 Plain link to URL with link text
3083 [[http://www.example.com Link text]]
3085 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3090 Plain link to protocol-relative URL
3092 [[//www.example.com]]
3094 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3099 Plain link to protocol-relative URL with link text
3101 [[//www.example.com Link text]]
3103 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3108 # I'm fairly sure the expected result here is wrong.
3109 # We want these to be URL links, not pseudo-pages with URLs for titles....
3110 # However the current output is also pretty screwy.
3113 # I'm changing it to match the current output--it arguably makes more
3114 # sense in the light of the test above. Old expected result was:
3115 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3117 # But I think this test is bordering on "garbage in, garbage out" anyway.
3122 Piped link to URL: [[http://www.example.com|an example URL]]
3124 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3129 BUG 2: [[page|http://url/]] should link to page, not http://url/
3131 [[Main Page|http://url/]]
3133 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3138 BUG 337: Escaped self-links should be bold
3142 [[Bug462]] [[Bug462]]
3144 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3149 Self-link to section should not be bold
3153 [[Main Page#section]]
3155 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3166 Self-link to numeric title
3172 <p><strong class="selflink">0</strong>
3177 Link to numeric-equivalent title
3183 <p><a href="/wiki/00" title="00">00</a>
3188 <nowiki> inside a link
3190 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3192 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3197 Non-breaking spaces in title
3199 [[ Main Page ]]
3201 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3206 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3212 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3217 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3223 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3228 Internal link with en linktrail: no apostrophes (bug 27473)
3234 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3239 Internal link with ca linktrail with apostrophes (bug 27473)
3245 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3250 Internal link with kaa linktrail with apostrophes (bug 27473)
3256 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3261 ### Interwiki links (see maintenance/interwiki.sql)
3265 Inline interwiki link
3267 [[MeatBall:SoftSecurity]]
3269 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3274 Inline interwiki link with empty title (bug 2372)
3278 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3283 Interwiki link encoding conversion (bug 1636)
3285 *[[Wikipedia:ro:Olteniţa]]
3286 *[[Wikipedia:ro:Olteniţa]]
3288 <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>
3289 </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>
3295 Interwiki link with fragment (bug 2130)
3297 [[MeatBall:SoftSecurity#foo]]
3299 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3314 Double interlanguage link
3325 Interlanguage link, with prefix links
3337 Double interlanguage link, with prefix links (bug 8897)
3350 Parsoid-specific test: Wikilinks with should RT properly
3356 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3374 Broken br tag sanitization
3383 Incorrecly removing closing slashes from correctly formed XHTML
3385 <br style="clear:both;" />
3387 <p><br style="clear:both;" />
3392 Failing to transform badly formed HTML into correct XHTML
3394 <br style="clear: left;">
3395 <br style="clear: right;">
3396 <br style="clear: both;">
3398 <p><br style="clear: left;" />
3399 <br style="clear: right;" />
3400 <br style="clear: both;" />
3405 Handling html with a div self-closing tag
3414 <p><div title />
3418 <p><div title=bar />
3419 <div title=bar/>
3421 <div title="bar/"></div>
3427 Handling html with a br self-closing tag
3436 <p><br title="title" />
3437 <br title="title" />
3446 Horizontal ruler (should it add that extra space?)
3460 Horizontal ruler -- 4+ dashes render hr
3469 Horizontal ruler -- eats additional dashes on the same line
3478 Horizontal ruler -- does not collaps dashes on consecutive lines
3489 Horizontal ruler -- <4 dashes render as plain text
3498 ### Block-level elements
3521 <ol><li>Numbered list
3538 ***#Number on level 4
3540 **#Number on level 3
3541 **#Number on level 3
3545 #** Level 3, but ordered
3548 <ol><li> with numbers
3550 <ul><li> and bullets
3552 <ol><li> and numbers
3554 </li><li>bullets again
3555 <ul><li>bullet level 2
3556 <ul><li>bullet level 3
3557 <ol><li>Number on level 4
3560 </li><li>bullet level 2
3561 <ol><li>Number on level 3
3562 </li><li>Number on level 3
3565 <ol><li>number level 2
3568 <ul><li><ul><li> Level 3
3572 <ol><li><ul><li><ul><li> Level 3, but ordered
3606 Nested lists 3 (first element empty)
3619 Nested lists 4 (first element empty)
3632 Nested lists 5 (both elements empty)
3645 Nested lists 6 (both elements empty)
3658 Nested lists 7 (skip initial nesting levels)
3662 <ul><li><ul><li><ul><li> foo
3670 Nested lists 8 (multiple nesting transitions)
3678 <ul><li><ul><li> bar
3688 1. Lists with start-of-line-transparent tokens before bullets: Comments
3702 2. Lists with start-of-line-transparent tokens before bullets: Template close
3714 List items are not parsed correctly following a <pre> block (bug 785)
3720 <ul><li> <pre>foo</pre>
3721 </li><li> <pre>bar</pre>
3728 List items from template
3739 * notSOL{{inner list}}
3758 List interrupted by empty line or heading
3768 <ul><li><ul><li> bar
3771 <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>
3772 <ul><li> Another list item
3783 Magic Word: {{CURRENTDAY}}
3792 Magic Word: {{CURRENTDAY2}}
3801 Magic Word: {{CURRENTDAYNAME}}
3810 Magic Word: {{CURRENTDOW}}
3819 Magic Word: {{CURRENTMONTH}}
3828 Magic Word: {{CURRENTMONTHABBREV}}
3830 {{CURRENTMONTHABBREV}}
3837 Magic Word: {{CURRENTMONTHNAME}}
3839 {{CURRENTMONTHNAME}}
3846 Magic Word: {{CURRENTMONTHNAMEGEN}}
3848 {{CURRENTMONTHNAMEGEN}}
3855 Magic Word: {{CURRENTTIME}}
3864 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3873 Magic Word: {{CURRENTYEAR}}
3882 Magic Word: {{FULLPAGENAME}}
3884 title=[[User:Ævar Arnfjörð Bjarmason]]
3888 <p>User:Ævar Arnfjörð Bjarmason
3893 Magic Word: {{FULLPAGENAMEE}}
3895 title=[[User:Ævar Arnfjörð Bjarmason]]
3899 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3904 Magic Word: {{NAMESPACE}}
3906 title=[[User:Ævar Arnfjörð Bjarmason]]
3915 Magic Word: {{NAMESPACEE}}
3917 title=[[User:Ævar Arnfjörð Bjarmason]]
3926 Magic Word: {{NAMESPACENUMBER}}
3928 title=[[User:Ævar Arnfjörð Bjarmason]]
3937 Magic Word: {{NUMBEROFFILES}}
3946 Magic Word: {{PAGENAME}}
3948 title=[[User:Ævar Arnfjörð Bjarmason]]
3952 <p>Ævar Arnfjörð Bjarmason
3957 Magic Word: {{PAGENAME}} with metacharacters
3959 title=[['foo & bar = baz']]
3963 <p><i>'foo & bar = baz'</i>
3968 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3970 title=[[*RFC 1234 http://example.com/]]
3974 <p>*RFC 1234 http://example.com/
3979 Magic Word: {{PAGENAMEE}}
3981 title=[[User:Ævar Arnfjörð Bjarmason]]
3985 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3990 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3992 title=[[*RFC 1234 http://example.com/]]
3996 <p>*RFC_1234_http://example.com/
4001 Magic Word: {{REVISIONID}}
4010 Magic Word: {{SCRIPTPATH}}
4019 Magic Word: {{SERVER}}
4023 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4028 Magic Word: {{SERVERNAME}}
4037 Magic Word: {{SITENAME}}
4046 Namespace 1 {{ns:1}}
4055 Namespace 1 {{ns:01}}
4064 Namespace 0 {{ns:0}} (bug 4783)
4072 Namespace 0 {{ns:00}} (bug 4783)
4080 Namespace -1 {{ns:-1}}
4089 Namespace User {{ns:User}}
4098 Namespace User talk {{ns:User_talk}}
4107 Namespace User talk {{ns:uSeR tAlK}}
4116 Namespace File {{ns:File}}
4125 Namespace File {{ns:Image}}
4134 Namespace (lang=de) Benutzer {{ns:User}}
4145 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4151 <p>Benutzer Diskussion
4159 {{urlencode:hi world?!}}
4160 {{urlencode:hi world?!|WIKI}}
4161 {{urlencode:hi world?!|PATH}}
4162 {{urlencode:hi world?!|QUERY}}
4175 Magic links: internal link to RFC (bug 479)
4179 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4184 Magic links: RFC (bug 479)
4188 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4193 Magic links: ISBN (bug 1937)
4197 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4202 Magic links: PMID incorrectly converts space to underscore
4206 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4215 Nonexistent template
4217 {{thistemplatedoesnotexist}}
4219 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4226 This is a test template
4234 <p>This is a test template
4239 Template with explicit namespace
4243 <p>This is a test template
4251 This is a test template with parameter {{{param}}}
4257 {{paramtest|param=foo}}
4259 <p>This is a test template with parameter foo
4264 Template:paramtestnum
4270 Template unnamed parameter
4272 {{paramtestnum|Main Page|the main page}}
4274 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4279 Template:templatesimple
4285 Template:templateredirect
4287 #redirect [[Template:templatesimple]]
4291 Template:templateasargtestnum
4297 Template:templateasargtest
4299 {{template{{{templ}}}}}
4303 Template:templateasargtest2
4309 Template with template name as unnamed argument
4311 {{templateasargtestnum|templatesimple}}
4318 Template with template name as argument
4320 {{templateasargtest|templ=simple}}
4327 Template with template name as argument (2)
4329 {{templateasargtest2|templ=templatesimple}}
4336 Template:templateasargtestdefault
4338 {{{{{templ|templatesimple}}}}}
4348 Template with default value
4350 {{templateasargtestdefault}}
4357 Template with default value (value set)
4359 {{templateasargtestdefault|templ=templa}}
4368 {{templateredirect}}
4375 Template with argument in separate line
4377 {{ templateasargtest |
4385 Template with complex template as argument
4388 param ={{ templateasargtest |
4391 <p>This is a test template with parameter (test)
4396 Template with thumb image (with link in description)
4399 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4401 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>
4406 Template:complextemplate
4408 {{{1}}} {{paramtest|
4409 param ={{{param}}}}}
4413 Template with complex arguments
4416 param ={{ templateasargtest |
4417 templ = simple }}|[[Template:complextemplate|link]]}}
4419 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4424 BUG 553: link with two variables in a piped link
4427 |[[{{{1}}}|{{{2}}}]]
4432 <td>[[{{{1}}}|{{{2}}}]]
4438 Magic variable as template parameter
4440 {{paramtest|param={{SITENAME}}}}
4442 <p>This is a test template with parameter MediaWiki
4449 [[{{{param}}}|link]]
4453 Template parameter as link source
4455 {{linktest|param=Main Page}}
4457 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4462 Template-generated attribute string (k='v')
4464 <span {{attr_str|id|v1}}>bar</span>
4466 <p><span id="v1">bar</span>
4473 including another template, {{paramtest|param={{{arg}}}}}
4477 Template passing argument to another template
4479 {{paramtest2|arg='hmm'}}
4481 <p>including another template, This is a test template with parameter 'hmm'
4492 Template as link source
4496 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4514 Template infinite loop
4518 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4523 Template from main namespace
4542 BUG 529: Template with table, not included at beginning of line
4561 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4581 BUG 41: Template parameters shown as broken links
4590 Template with targets containing wikilinks
4594 {{[[{{echo|foo}}]]}}
4596 {{{{echo|[[foo}}]]}}
4598 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4599 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4607 ''None'' of '''this''' should be
4609 but rather passed unmodified
4613 # hmm, fix this or just deprecate msgnw and document its behavior?
4619 {{msgnw:MSGNW test}}
4621 <p>''None'' of '''this''' should be
4623 but rather passed unmodified
4631 {{int:youhavenewmessages|lots of money|not!}}
4633 <p>You have lots of money (not!).
4640 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4644 <includeonly> and <noinclude> being included
4655 <onlyinclude>Foo</onlyinclude>bar
4659 <onlyinclude> being included
4671 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4675 <onlyinclude> and <includeonly> being included
4684 <includeonly> and <noinclude> on a page
4686 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4693 <onlyinclude> on a page
4695 <onlyinclude>Foo</onlyinclude>bar
4702 Template:Includeonly section
4705 ==Includeonly section==
4711 Bug 6563: Edit link generation for section shown by <includeonly>
4713 {{includeonly section}}
4715 <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>
4716 <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>
4720 # Uses same input as the contents of [[Template:Includeonly section]]
4722 Bug 6563: Section extraction for section shown by <includeonly>
4727 ==Includeonly section==
4735 Bug 6563: Edit link generation for section suppressed by <includeonly>
4738 ==Includeonly section==
4742 <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>
4747 Bug 6563: Section extraction for section suppressed by <includeonly>
4752 ==Includeonly section==
4760 ### <includeonly> and <noinclude> in attributes
4763 0. includeonly around the entire attribute
4765 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4767 <p><span id="v2">bar</span>
4772 1. includeonly in html attr key
4774 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4776 <p><span id="foo">bar</span>
4781 2. includeonly in html attr value
4783 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4784 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4786 <p><span id="v1">bar</span>
4787 <span id="v1">bar</span>
4792 3. includeonly in part of an attr value
4794 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4796 <p><span style="color:red;">bar</span>
4801 ### Testing parsing of templates where a template arg
4802 ### has the same name as the template itself.
4812 Templates: Template Name/Arg clash: 1. Use of positional param
4821 Templates: Template Name/Arg clash: 2. Use of named param
4830 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4839 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4843 Templates: 1. Simple use
4852 Templates: 2. Inside a block tag
4854 <div>{{echo|Foo}}</div>
4861 Templates: P-wrapping: 1a. Templates on consecutive lines
4872 Templates: P-wrapping: 1b. Templates on consecutive lines
4886 Templates: P-wrapping: 1c. Templates on consecutive lines
4889 {{echo|bar}} <div>baz</div>
4898 Templates: Inline Text: 1. Multiple tmeplate uses
4900 {{echo|Foo}}bar{{echo|baz}}
4907 Templates: Inline Text: 2. Back-to-back template uses
4909 {{echo|Foo}}{{echo|bar}}
4916 Templates: Block Tags: 1. Multiple template uses
4918 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4920 <div>Foo</div><div>bar</div><div>baz</div>
4925 Templates: Block Tags: 2. Back-to-back template uses
4927 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4929 <div>Foo</div><div>bar</div>
4934 Templates: Links: 1. Simple example
4936 {{echo|[[Foo|bar]]}}
4938 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4943 Templates: Links: 2. Generation of link href
4945 [[{{echo|Foo}}|bar]]
4947 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4952 Templates: Links: 3. Generation of part of a link href
4954 [[Fo{{echo|o}}|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: 4. Multiple templates generating link href
4963 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4965 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4970 Templates: Links: 5. Generation of link text
4972 [[Foo|{{echo|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: 5. Nested templates (only outermost template should be marked)
4981 {{echo|[[{{echo|Foo}}|bar]]}}
4983 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4988 Templates: HTML Tag: 1. Generation of HTML attr. key
4990 <div {{echo|style}}="color:red;">foo</div>
4992 <div style="color:red;">foo</div>
4997 Templates: HTML Tag: 2. Generation of HTML attr. value
4999 <div style={{echo|'color:red;'}}>foo</div>
5001 <div style="color:red;">foo</div>
5006 Templates: HTML Tag: 3. Generation of HTML attr key and value
5008 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5010 <div style="color:red;">foo</div>
5015 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5017 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5019 <div title="This is a long title with just one piece templated">foo</div>
5024 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5026 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5028 <div title="This is a long title with just one piece templated">foo</div>
5033 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5035 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5037 <div title="This is a long title with just one piece templated">foo</div>
5042 Templates: HTML Tables: 1. Generating start of a HTML table
5044 {{echo|<table><tr><td>foo</td>}}</tr></table>
5046 <table><tr><td>foo</td></tr></table>
5051 Templates: HTML Tables: 2a. Generating middle of a HTML table
5053 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5055 <table><tr><td>foo</td></tr></table>
5060 Templates: HTML Tables: 2b. Generating middle of a HTML table
5062 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5064 <table><tr><td>foo</td></tr></table>
5069 Templates: HTML Tables: 3. Generating end 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: 4a. Generating a single tag of a HTML table
5080 {{echo|<table>}}<tr><td>foo</td></tr></table>
5082 <table><tr><td>foo</td></tr></table>
5087 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5089 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5091 <table><tr><td>foo</td></tr></table>
5096 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5098 <table><tr>{{echo|<td>}}foo</td></tr></table>
5100 <table><tr><td>foo</td></tr></table>
5105 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5107 <table><tr><td>foo{{echo|</td>}}</tr></table>
5109 <table><tr><td>foo</td></tr></table>
5114 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5116 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5118 <table><tr><td>foo</td></tr></table>
5123 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5125 <table><tr><td>foo</td></tr>{{echo|</table>}}
5127 <table><tr><td>foo</td></tr></table>
5132 Templates: Wiki Tables: 1. Fostering of entire template content
5140 <tr><td></td></tr></table>
5145 Templates: Wiki Tables: 2. Fostering of partial template content
5155 <tr><td></td></tr></table>
5160 Templates: Wiki Tables: 3. td-content via multiple templates
5163 {{echo|{{pipe}}a}}{{echo|b}}
5174 Templates: Lists: Multi-line list-items via templates
5176 *{{echo|a {{nonexistent|
5178 *{{echo|b {{nonexistent|
5181 <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>
5182 </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>
5188 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5190 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5192 <p><i>ab</i>c<i>d</i>e
5197 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5198 (PHP parser generates misnested html)
5202 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5204 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5208 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5209 (PHP parser generates misnested html)
5213 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5216 <div><i>b</i>c<i>d</i></div>
5221 Templates: Ugly nesting: 4. Divs opened/closed across templates
5223 a<div>b{{echo|c</div>d}}e
5230 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5236 |{{echo|foo</table>}}
5240 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5241 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5242 bar</span><span about="#mwt1">
5247 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5257 <td>1. {{echo|foo </table>}}</td>
5259 <td>2. {{echo|baz </table>}}</td>
5272 <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">
5273 <tbody><tr data-parsoid="{"stx":"html"}">
5274 <td data-parsoid="{"stx":"html"}">
5275 <table data-parsoid="{"stx":"html"}">
5276 <tbody><tr data-parsoid="{"stx":"html"}">
5277 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5278 <td data-parsoid="{"stx":"html"}"> bar </td>
5279 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5280 </span><span about="#mwt1">
5282 abc</span><span about="#mwt1">
5283 </span><span about="#mwt1">
5284 </span><span about="#mwt1">
5285 </span><span about="#mwt1">
5286 </span><span about="#mwt1">
5288 xyz</span><span about="#mwt1">
5289 </span><span about="#mwt1">
5294 Parser Functions: 1. Simple example
5303 Parser Functions: 2. Nested use (only outermost should be marked up)
5312 ### Pre-save transform tests
5315 pre-save transform: subst:
5321 This is a test template
5325 pre-save transform: normal template
5335 pre-save transform: nonexistent template
5339 {{thistemplatedoesnotexist}}
5341 {{thistemplatedoesnotexist}}
5346 pre-save transform: subst magic variables
5355 # This is bug 89, which I fixed. -- wtm
5357 pre-save transform: subst: templates with parameters
5361 {{subst:paramtest|param="something else"}}
5363 This is a test template with parameter "something else"
5369 <nowiki>'''not wiki'''</nowiki>
5373 pre-save transform: nowiki in subst (bug 1188)
5377 {{subst:nowikitest}}
5379 <nowiki>'''not wiki'''</nowiki>
5384 Template:commenttest
5386 This template has <!-- a comment --> in it.
5390 pre-save transform: comment in subst (bug 1936)
5394 {{subst:commenttest}}
5396 This template has <!-- a comment --> in it.
5400 pre-save transform: unclosed tag
5404 <nowiki>'''not wiki'''
5406 <nowiki>'''not wiki'''
5410 pre-save transform: mixed tag case
5414 <NOwiki>'''not wiki'''</noWIKI>
5416 <NOwiki>'''not wiki'''</noWIKI>
5420 pre-save transform: unclosed comment in <nowiki>
5424 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5426 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5432 <span onmouseover="alert('crap')">Oh no</span>
5436 (confirming safety of fix for subst bug 1936)
5438 {{Template:dangerous}}
5440 <p><span>Oh no</span>
5445 pre-save transform: comment containing gallery (bug 5024)
5449 <!-- <gallery>data</gallery> -->
5451 <!-- <gallery>data</gallery> -->
5455 pre-save transform: comment containing extension
5459 <!-- <tag>data</tag> -->
5461 <!-- <tag>data</tag> -->
5465 pre-save transform: comment containing nowiki
5469 <!-- <nowiki>data</nowiki> -->
5471 <!-- <nowiki>data</nowiki> -->
5475 pre-save transform: <noinclude> in subst (bug 3298)
5485 pre-save transform: <onlyinclude> in subst (bug 3298)
5497 {{<includeonly>subst:</includeonly>Includes}}
5501 Template:SafeSubstTest
5503 {{<includeonly>safesubst:</includeonly>Includes}}
5507 bug 22297: safesubst: works during PST
5511 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5517 bug 22297: safesubst: works during normal parse
5526 subst: does not work during normal parse
5530 <p>{{subst:Includes}}
5535 pre-save transform: context links ("pipe trick")
5539 [[Article (context)|]]
5542 [[Bar:Article (context)|]]
5543 [[:Bar:Article (context)|]]
5545 [[|Article (context)]]
5549 [[Article (context)|Article]]
5550 [[Bar:Article|Article]]
5551 [[:Bar:Article|Article]]
5552 [[Bar:Article (context)|Article]]
5553 [[:Bar:Article (context)|Article]]
5555 [[Article (context)]]
5556 [[Bar:X (Y) Z|X (Y) Z]]
5557 [[:Bar:X (Y) Z|X (Y) Z]]
5561 pre-save transform: context links ("pipe trick") with interwiki prefix
5565 [[interwiki:Article|]]
5566 [[:interwiki:Article|]]
5567 [[interwiki:Bar:Article|]]
5568 [[:interwiki:Bar:Article|]]
5570 [[interwiki:Article|Article]]
5571 [[:interwiki:Article|Article]]
5572 [[interwiki:Bar:Article|Bar:Article]]
5573 [[:interwiki:Bar:Article|Bar:Article]]
5577 pre-save transform: context links ("pipe trick") with parens in title
5579 pst title=[[Somearticle (context)]]
5583 [[Article (context)|Article]]
5587 pre-save transform: context links ("pipe trick") with comma in title
5589 pst title=[[Someplace, Somewhere]]
5592 [[Otherplace, Elsewhere|]]
5593 [[Otherplace, Elsewhere, Anywhere|]]
5595 [[Otherplace, Somewhere|Otherplace]]
5596 [[Otherplace, Elsewhere|Otherplace]]
5597 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5601 pre-save transform: context links ("pipe trick") with parens and comma
5603 pst title=[[Someplace (IGNORED), Somewhere]]
5606 [[Otherplace (place), Elsewhere|]]
5608 [[Otherplace, Somewhere|Otherplace]]
5609 [[Otherplace (place), Elsewhere|Otherplace]]
5613 pre-save transform: context links ("pipe trick") with comma and parens
5615 pst title=[[Who, me? (context)]]
5618 [[Me, Myself, and I (1937 song)|]]
5620 [[Yes, you. (context)|Yes, you.]]
5621 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5625 pre-save transform: context links ("pipe trick") with namespace
5627 pst title=[[Ns:Somearticle]]
5631 [[Ns:Article|Article]]
5635 pre-save transform: context links ("pipe trick") with namespace and parens
5637 pst title=[[Ns:Somearticle (context)]]
5641 [[Ns:Article (context)|Article]]
5645 pre-save transform: context links ("pipe trick") with namespace and comma
5647 pst title=[[Ns:Somearticle, Context, Whatever]]
5651 [[Ns:Article, Context, Whatever|Article]]
5655 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5657 pst title=[[Ns:Somearticle, Context (context)]]
5661 [[Ns:Article (context)|Article]]
5665 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5667 pst title=[[Ns:Somearticle (IGNORED), Context]]
5671 [[Ns:Article, Context|Article]]
5675 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5679 [[Article(context)|]]
5680 [[Bar:Article(context)|]]
5681 [[:Bar:Article(context)|]]
5682 [[|Article(context)]]
5686 [[Article(context)|Article]]
5687 [[Bar:Article(context)|Article]]
5688 [[:Bar:Article(context)|Article]]
5689 [[Article(context)]]
5691 [[:Bar:X(Y)Z|X(Y)Z]]
5695 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5699 [[Article (context)|]]
5700 [[Bar:Article (context)|]]
5701 [[:Bar:Article (context)|]]
5702 [[|Article (context)]]
5706 [[Article (context)|Article]]
5707 [[Bar:Article (context)|Article]]
5708 [[:Bar:Article (context)|Article]]
5709 [[Article (context)]]
5710 [[Bar:X (Y) Z|X (Y) Z]]
5711 [[:Bar:X (Y) Z|X (Y) Z]]
5715 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5719 [[Article(context)|]]
5720 [[Bar:Article(context)|]]
5721 [[:Bar:Article(context)|]]
5722 [[|Article(context)]]
5726 [[Article(context)|Article]]
5727 [[Bar:Article(context)|Article]]
5728 [[:Bar:Article(context)|Article]]
5729 [[Article(context)]]
5731 [[:Bar:X(Y)Z|X(Y)Z]]
5735 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5739 [[Article (context), context|]]
5740 [[Article (context),context|]]
5741 [[Bar:Article (context), context|]]
5742 [[Bar:Article (context),context|]]
5743 [[:Bar:Article (context), context|]]
5744 [[:Bar:Article (context),context|]]
5746 [[Article (context), context|Article]]
5747 [[Article (context),context|Article]]
5748 [[Bar:Article (context), context|Article]]
5749 [[Bar:Article (context),context|Article]]
5750 [[:Bar:Article (context), context|Article]]
5751 [[:Bar:Article (context),context|Article]]
5755 pre-save transform: trim trailing empty lines
5759 Empty lines are trimmed
5765 Empty lines are trimmed
5769 pre-save transform: Signature expansion
5774 * <noinclude>~~~</noinclude>
5775 * <includeonly>~~~</includeonly>
5776 * <onlyinclude>~~~</onlyinclude>
5778 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5779 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5780 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5781 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5786 pre-save transform: Signature expansion in nowiki tags (bug 93)
5792 <nowiki>~~~~</nowiki>
5794 <includeonly><nowiki>~~~~</nowiki></includeonly>
5796 <noinclude><nowiki>~~~~</nowiki></noinclude>
5798 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5800 {{subst:Foo}} shall be converted to FOO
5802 As well as inside noinclude/onlyinclude
5803 <noinclude>{{subst:Foo}}</noinclude>
5804 <onlyinclude>{{subst:Foo}}</onlyinclude>
5806 But not inside includeonly
5807 <includeonly>{{subst:Foo}}</includeonly>
5811 <nowiki>~~~~</nowiki>
5813 <includeonly><nowiki>~~~~</nowiki></includeonly>
5815 <noinclude><nowiki>~~~~</nowiki></noinclude>
5817 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5819 FOO shall be converted to FOO
5821 As well as inside noinclude/onlyinclude
5822 <noinclude>FOO</noinclude>
5823 <onlyinclude>FOO</onlyinclude>
5825 But not inside includeonly
5826 <includeonly>{{subst:Foo}}</includeonly>
5830 ### Message transform tests
5833 message transform: magic variables
5843 message transform: should not transform wiki markup
5853 message transform: <noinclude> in transcluded template (bug 4926)
5863 message transform: <onlyinclude> in transcluded template (bug 4926)
5873 {{#special:}} page name, known
5877 {{#special:Recentchanges}}
5879 Special:RecentChanges
5883 {{#special:}} page name with subpage, known
5887 {{#special:Recentchanges/param}}
5889 Special:RecentChanges/param
5893 {{#special:}} page name, unknown
5897 {{#special:foobarnonexistent}}
5899 No such special page
5903 {{#speciale:}} page name, known
5907 {{#speciale:Recentchanges}}
5909 Special:RecentChanges
5913 {{#speciale:}} page name with subpage, known
5917 {{#speciale:Recentchanges/param}}
5919 Special:RecentChanges/param
5923 {{#speciale:}} page name, unknown
5927 {{#speciale:foobarnonexistent}}
5929 No_such_special_page
5938 [[Image:foobar.jpg]]
5940 <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>
5947 [[Image:foobar.jpg|right]]
5949 <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>
5954 Simple image (using File: namespace, now canonical)
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|Caption text]]
5967 <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>
5972 Image with empty attribute
5974 [[Image:foobar.jpg|right||Caption text]]
5976 <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>
5981 Image with link tails
5983 123[[Image:foobar.jpg]]456
5984 123[[Image:foobar.jpg|right]]456
5985 123[[Image:foobar.jpg|thumb]]456
5987 <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
5989 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
5990 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
5995 Image with multiple captions -- only last one is accepted
5997 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5999 <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>
6004 Image with link parameter, wiki target
6006 [[Image:foobar.jpg|link=Target page]]
6008 <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>
6013 Image with link parameter, URL target
6015 [[Image:foobar.jpg|link=http://example.com/]]
6017 <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>
6022 Image with link parameter, wgExternalLinkTarget
6024 [[Image:foobar.jpg|link=http://example.com/]]
6026 wgExternalLinkTarget='foobar'
6028 <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>
6033 Image with link parameter, wgNoFollowLinks set to false
6035 [[Image:foobar.jpg|link=http://example.com/]]
6037 wgNoFollowLinks=false
6039 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6044 Image with link parameter, wgNoFollowDomainExceptions
6046 [[Image:foobar.jpg|link=http://example.com/]]
6048 wgNoFollowDomainExceptions='example.com'
6050 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6055 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6057 [[Image:foobar.jpg|link=http://example.com/|Title]]
6059 wgExternalLinkTarget='foobar'
6061 <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>
6066 Image with empty link parameter
6068 [[Image:foobar.jpg|link=]]
6070 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6075 Image with link parameter (wiki target) and unnamed parameter
6077 [[Image:foobar.jpg|link=Target page|Title]]
6079 <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>
6084 Image with link parameter (URL target) and unnamed parameter
6086 [[Image:foobar.jpg|link=http://example.com/|Title]]
6088 <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>
6093 Thumbnail image with link parameter
6095 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6097 <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>
6102 Image with frame and link
6104 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6106 <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>
6111 Image with frame and link and explicit alt
6113 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6115 <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>
6120 Image with wiki markup in implicit alt
6122 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6124 <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>
6129 Image with wiki markup in explicit alt
6131 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6133 <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>
6138 Link to image page- image page normally doesn't exists, hence edit link
6139 Add test with existing image page
6140 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6144 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6149 bug 18784 Link to non-existent image page with caption should use caption as link text
6151 [[:Image:test|caption]]
6153 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6158 Frameless image caption with a free URL
6160 [[Image:foobar.jpg|http://example.com]]
6162 <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>
6167 Thumbnail image caption with a free URL
6169 [[Image:foobar.jpg|thumb|http://example.com]]
6171 <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>
6176 Thumbnail image caption with a free URL and explicit alt
6178 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6180 <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>
6185 BUG 1887: A ISBN with a thumbnail
6187 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
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 href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6194 BUG 1887: A RFC with a thumbnail
6196 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6198 <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>
6203 BUG 1887: A mailto link with a thumbnail
6205 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
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>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
6211 # Pending resolution to bug 368
6213 BUG 648: Frameless image caption with a link
6215 [[Image:foobar.jpg|text with a [[link]] in it]]
6217 <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>
6222 BUG 648: Frameless image caption with a link (suffix)
6224 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6226 <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>
6231 BUG 648: Frameless image caption with an interwiki link
6233 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6235 <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>
6240 BUG 648: Frameless image caption with a piped interwiki link
6242 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6244 <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>
6249 Escape HTML special chars in image alt text
6251 [[Image:foobar.jpg|& < > "]]
6253 <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>
6258 BUG 499: Alt text should have Ӓ, not &1234;
6260 [[Image:foobar.jpg|♀]]
6262 <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>
6267 Broken image caption with link
6269 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6271 <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.
6276 Image caption containing another image
6278 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6280 <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>
6285 Image caption containing a newline
6287 [[Image:Foobar.jpg|This
6290 <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>
6296 Bug 3090: External links other than http: in image captions
6298 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6300 <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>
6307 [[Image:foobar.jpg|a|class=b]]
6309 <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>
6316 #REDIRECT [[File:Barfoo.jpg]]
6322 [[Image:Barfoo.jpg]]
6324 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6329 Missing image with uploads disabled
6333 [[Image:Foobaz.jpg]]
6335 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6344 Subpage test/subpage
6352 subpage title=[[Subpage test]]
6356 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6361 Subpage noslash link
6363 subpage title=[[Subpage test]]
6367 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6376 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6381 BUG 561: {{/Subpage}}
6383 subpage title=[[Page]]
6387 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6395 Category:MediaWiki User's Guide
6403 [[:Category:MediaWiki User's Guide]]
6405 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6414 [[Category:MediaWiki User's Guide]]
6416 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6420 PAGESINCATEGORY invalid title fatal (r33546 fix)
6422 {{PAGESINCATEGORY:<bogus>}}
6429 Category with different sort key
6433 [[Category:MediaWiki User's Guide|Foo]]
6435 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6439 Category with identical sort key
6443 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6445 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6449 Category with empty sort key
6454 [[Category:MediaWiki User's Guide|]]
6456 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6460 Category with empty sort key and parentheses
6465 [[Category:Foo (bar)|]]
6467 [[Category:Foo (bar)|Foo]]
6471 Category with link tail
6476 123[[Category:Foo]]456
6478 123[[Category:Foo]]456
6482 Category with template
6487 [[Category:{{echo|Foo}}]]
6489 [[Category:{{echo|Foo}}]]
6493 Category with template in sort key
6498 [[Category:Foo|{{echo|Bar}}]]
6500 [[Category:Foo|{{echo|Bar}}]]
6504 Category with template in sort key and title
6509 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6511 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6515 Category / paragraph interactions
6517 Foo [[Category:Baz]] Bar
6519 Foo [[Category:Baz]]
6527 [[Category:Baz]] Bar
6540 {{echo|[[Category:Baz]]}}
6555 ### Inter-language links
6558 Inter-language links
6564 [[zh:食品]]
6566 es:Alimento fr:Nourriture zh:食品
6570 Duplicate interlanguage links (bug 24502)
6586 Basic section headings
6593 ===Smaller headline===
6596 <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>
6599 <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>
6602 <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>
6608 Section headings with TOC
6611 === Subheadline 1 ===
6612 ===== Skipping a level =====
6613 ====== Skipping a level ======
6617 ===Another headline===
6619 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6621 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6623 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6625 <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>
6627 <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>
6634 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6636 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6641 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
6642 <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>
6643 <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>
6644 <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>
6645 <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>
6648 <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>
6652 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6654 Handling of sections up to level 6 and beyond
6657 == Level 2 Heading==
6658 === Level 3 Heading===
6659 ==== Level 4 Heading====
6660 ===== Level 5 Heading=====
6661 ====== Level 6 Heading======
6662 ======= Level 7 Heading=======
6663 ======== Level 8 Heading========
6664 ========= Level 9 Heading=========
6665 ========== Level 10 Heading==========
6667 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6669 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6671 <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>
6673 <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>
6675 <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>
6677 <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>
6679 <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>
6680 <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>
6681 <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>
6682 <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>
6683 <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>
6696 <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>
6697 <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>
6698 <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>
6699 <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>
6700 <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>
6701 <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>
6702 <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>
6703 <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>
6704 <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>
6705 <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>
6710 TOC regression (bug 9764)
6714 ==== title 1.1.1 ====
6719 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6721 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6723 <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>
6725 <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>
6728 <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>
6731 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6733 <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>
6738 <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>
6739 <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>
6740 <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>
6741 <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>
6742 <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>
6743 <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>
6748 TOC with wgMaxTocLevel=3 (bug 6204)
6754 ==== title 1.1.1 ====
6759 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6761 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6763 <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>
6764 <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>
6767 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6769 <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>
6774 <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>
6775 <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>
6776 <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>
6777 <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>
6778 <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>
6779 <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>
6784 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6790 ====Section 1.1.1====
6791 ====Section 1.1.1.1====
6794 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6796 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6798 <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>
6801 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6804 <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>
6805 <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>
6806 <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>
6807 <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>
6808 <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>
6814 Resolving duplicate section names
6819 <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>
6820 <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>
6825 Resolving duplicate section names with differing case (bug 10721)
6830 <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>
6831 <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 Template with sections, __NOTOC__
6850 <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>
6851 <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>
6852 <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>
6853 <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>
6858 __NOEDITSECTION__ keyword
6864 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6865 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6870 Link inside a section heading
6872 ==Section with a [[Main Page|link]] in it==
6874 <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>
6879 TOC regression (bug 12077)
6886 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6888 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6890 <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>
6893 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6896 <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>
6897 <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>
6898 <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>
6903 BUG 1219 URL next to image (good)
6905 http://example.com [[Image:foobar.jpg]]
6907 <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>
6912 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6915 The line above must have a trailing space!
6918 But just in case it doesn't...
6920 <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>
6921 <p>The line above must have a trailing space!
6923 <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>
6924 <p>But just in case it doesn't...
6929 Header with special characters (bug 25462)
6931 The tooltips shall not show entities to the user (ie. be double escaped)
6948 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6950 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6952 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6953 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6954 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6955 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6956 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6959 <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>
6962 <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>
6965 <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>
6968 <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>
6971 <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>
6977 Headers with excess '=' characters
6978 (Are similar tests necessary beyond the 1st level?)
6982 =''italic'' heading==
6983 ==''italic'' heading=
6985 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6987 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6988 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6989 <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>
6990 <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>
6993 <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>
6994 <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>
6995 <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>
6996 <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>
7001 BUG 1219 URL next to image (broken)
7003 http://example.com[[Image:foobar.jpg]]
7005 <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>
7010 Bug 1186 news: in the middle of text
7012 http://en.wikinews.org/wiki/Wikinews:Workplace
7014 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7020 Namespaced link must have a title
7029 Namespaced link must have a title (bad fragment version)
7031 [[Project:#fragment]]
7033 <p>[[Project:#fragment]]
7039 div with no attributes
7041 <div>HTML rocks</div>
7043 <div>HTML rocks</div>
7048 div with double-quoted attribute
7050 <div id="rock">HTML rocks</div>
7052 <div id="rock">HTML rocks</div>
7057 div with single-quoted attribute
7059 <div id='rock'>HTML rocks</div>
7061 <div id="rock">HTML rocks</div>
7066 div with unquoted attribute
7068 <div id=rock>HTML rocks</div>
7070 <div id="rock">HTML rocks</div>
7075 div with illegal double attributes
7077 <div id="a" id="b">HTML rocks</div>
7079 <div id="b">HTML rocks</div>
7084 HTML multiple attributes correction
7086 <p class="error" class="awesome">Awesome!</p>
7088 <p class="awesome">Awesome!</p>
7093 Table multiple attributes correction
7096 !+ class="error" class="awesome"| status
7101 <th class="awesome"> status
7109 <DIV ID="x">HTML ROCKS</DIV>
7111 <div id="x">HTML ROCKS</div>
7117 text with amp in the middle of nowhere
7121 <p>Remember AT&T?
7126 text with character entity: eacute
7128 I always thought é was a cute letter.
7130 <p>I always thought é was a cute letter.
7135 text with undefined character entity: xacute
7137 I always thought &xacute; was a cute letter.
7139 <p>I always thought &xacute; was a cute letter.
7151 [[Media:Foobar.jpg]]
7153 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7158 Media link with text
7160 [[Media:Foobar.jpg|A neat file to look at]]
7162 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7166 # FIXME: this is still bad HTML tag nesting
7168 Media link with nasty text
7169 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7171 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7173 <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>
7178 Media link to nonexistent file (bug 1702)
7180 [[Media:No such.jpg]]
7182 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7187 Image link to nonexistent file (bug 1850 - good)
7189 [[Image:No such.jpg]]
7191 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7196 :Image link to nonexistent file (bug 1850 - bad)
7198 [[:Image:No such.jpg]]
7200 <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>
7207 Character reference normalization in link text (bug 1938)
7209 [[Main Page|this&that]]
7211 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7218 Test for unicode normalization
7220 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7224 (bug 19451) Links should refer to the normalized form.
7232 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7233 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7234 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7235 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7236 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7241 Empty attribute crash test (bug 2067)
7243 <font color="">foo</font>
7245 <p><font color="">foo</font>
7250 Empty attribute crash test single-quotes (bug 2067)
7252 <font color=''>foo</font>
7254 <p><font color="">foo</font>
7259 Attribute test: equals, then nothing
7261 <font color=>foo</font>
7268 Attribute test: unquoted value
7270 <font color=x>foo</font>
7272 <p><font color="x">foo</font>
7277 Attribute test: unquoted but illegal value (hash)
7279 <font color=#x>foo</font>
7281 <p><font color="#x">foo</font>
7286 Attribute test: no value
7288 <font color>foo</font>
7290 <p><font color="color">foo</font>
7295 Bug 2095: link with three closing brackets
7299 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7304 Bug 2095: link with pipe and three closing brackets
7308 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7313 Bug 2095: link with pipe and three closing brackets, version 2
7315 [[Main Page|[http://example.com/]]]
7317 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7327 Template:Dangerous attribute
7329 " onmouseover="alert(document.cookie)
7333 Template:Dangerous style attribute
7335 border-size: expression(alert(document.cookie))
7341 <div style="float: right; {{{1}}}">Magic div</div>
7345 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7347 <div title="{{test}}"></div>
7349 <div title="This is a test template"></div>
7354 Bug 2304: HTML attribute safety (dangerous template; 2309)
7356 <div title="{{dangerous attribute}}"></div>
7358 <div title=""></div>
7363 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7365 <div style="{{dangerous style attribute}}"></div>
7367 <div style="/* insecure input */"></div>
7372 Bug 2304: HTML attribute safety (safe parameter; 2309)
7374 {{div style|width: 200px}}
7376 <div style="float: right; width: 200px">Magic div</div>
7381 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7383 {{div style|width: expression(alert(document.cookie))}}
7385 <div style="/* insecure input */">Magic div</div>
7390 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7392 {{div style|"><script>alert(document.cookie)</script>}}
7394 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7399 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7401 {{div style|" ><script>alert(document.cookie)</script>}}
7403 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7408 Bug 2304: HTML attribute safety (link)
7410 <div title="[[Main Page]]"></div>
7412 <div title="[[Main Page]]"></div>
7417 Bug 2304: HTML attribute safety (italics)
7419 <div title="''foobar''"></div>
7421 <div title="''foobar''"></div>
7426 Bug 2304: HTML attribute safety (bold)
7428 <div title="'''foobar'''"></div>
7430 <div title="'''foobar'''"></div>
7436 Bug 2304: HTML attribute safety (ISBN)
7438 <div title="ISBN 1234567890"></div>
7440 <div title="ISBN 1234567890"></div>
7445 Bug 2304: HTML attribute safety (RFC)
7447 <div title="RFC 1234"></div>
7449 <div title="RFC 1234"></div>
7454 Bug 2304: HTML attribute safety (PMID)
7456 <div title="PMID 1234567890"></div>
7458 <div title="PMID 1234567890"></div>
7463 Bug 2304: HTML attribute safety (web link)
7465 <div title="http://example.com/"></div>
7467 <div title="http://example.com/"></div>
7472 Bug 2304: HTML attribute safety (named web link)
7474 <div title="[http://example.com/ link]"></div>
7476 <div title="[http://example.com/ link]"></div>
7481 Bug 3244: HTML attribute safety (extension; safe)
7483 <div style="<nowiki>background:blue</nowiki>"></div>
7485 <div style="background:blue"></div>
7490 Bug 3244: HTML attribute safety (extension; unsafe)
7492 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7494 <div style="/* insecure input */"></div>
7498 # More MSIE fun discovered by Tom Gilder
7501 MSIE CSS safety test: spurious slash
7503 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7505 <div style="/* insecure input */">evil</div>
7510 MSIE CSS safety test: hex code
7512 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7514 <div style="/* insecure input */">evil</div>
7519 MSIE CSS safety test: comment in url
7521 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7523 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7528 MSIE CSS safety test: comment in expression
7530 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7532 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7538 Table attribute legitimate extension
7541 !+ style="<nowiki>color:blue</nowiki>"| status
7546 <th style="color:blue"> status
7552 Table attribute safety
7555 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7560 <th style="/* insecure input */"> status
7566 CSS line continuation 1
7568 <div style="background-image: u\ rl(test.jpg);"></div>
7570 <div style="/* insecure input */"></div>
7575 CSS line continuation 2
7577 <div style="background-image: u\ rl(test.jpg); "></div>
7579 <div style="/* insecure input */"></div>
7590 Expansion of multi-line templates in attribute values (bug 6255)
7592 <div style="background: {{identity|#00FF00}}">-</div>
7594 <div style="background: #00FF00">-</div>
7600 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7602 <div style="background:
7605 <div style="background: #00FF00">-</div>
7610 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7612 <div style="background: #00FF00">-</div>
7614 <div style="background: #00FF00">-</div>
7619 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7622 Parser hook: empty input
7635 Parser hook: empty input using terminated empty elements
7648 Parser hook: empty input using terminated empty elements (space before)
7661 Parser hook: basic input
7675 Parser hook: case insensitive
7689 Parser hook: case insensitive, redux
7702 Parser hook: nested tags
7706 <tag><tag></tag></tag>
7717 Parser hook: basic arguments
7719 <tag width=200 height = "100" depth = '50' square></tag>
7727 'square' => 'square',
7734 Parser hook: argument containing a forward slash (bug 5344)
7736 <tag filename='/tmp/bla'></tag>
7741 'filename' => '/tmp/bla',
7748 Parser hook: empty input using terminated empty elements (bug 2374)
7761 # </tag> should be output literally since there is no matching tag that begins it
7763 Parser hook: basic arguments using terminated empty elements (bug 2374)
7765 <tag width=200 height = "100" depth = '50' square/>
7775 'square' => 'square',
7784 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7788 Parser hook: static parser hook not inside a comment
7790 <statictag>hello, world</statictag>
7791 <statictag action=flush/>
7799 Parser hook: static parser hook inside a comment
7801 <!-- <statictag>hello, world</statictag> -->
7802 <statictag action=flush/>
7808 # Nested template calls; this case was broken by Parser.php rev 1.506,
7812 Template:One-parameter
7814 (My parameter is: {{{1}}})
7818 Template:Map-one-parameter
7824 Nested template calls
7826 {{Map-one-parameter|One-parameter|param}}
7828 <p>(My parameter is: param)
7837 Sanitizer: Closing of open tags
7839 <s></s><table></table>
7841 <s></s><table></table>
7846 Sanitizer: Closing of open but not closed tags
7855 Sanitizer: Closing of closed but not open tags
7864 Sanitizer: Closing of closed but not open table tags
7866 Table not started</td></tr></table>
7868 <p>Table not started</td></tr></table>
7873 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7875 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7877 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7882 Sanitizer: Validating the contents of the id attribute (bug 4515)
7888 Something, but definitely not <br id="9" />...
7892 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7896 <br id="foo" /><br id="foo" />
7898 Something need to be done. foo-2 ?
7902 Language converter: output gets cut off unexpectedly (bug 5757)
7906 this bit is safe: }-
7908 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7910 then we get cut off here: }-
7912 all additional text is vanished
7914 <p>this bit is safe: }-
7915 </p><p>but if we add a conversion instance: xxx
7916 </p><p>then we get cut off here: }-
7917 </p><p>all additional text is vanished
7922 Self closed html pairs (bug 5487)
7925 <center><font id="bug" />Centered text</center>
7926 <div><font id="bug2" />In div text</div>
7928 <center><font id="bug" />Centered text</center>
7929 <div><font id="bug2" />In div text</div>
7938 Punctuation: nbsp before exclamation
7942 <p>C'est grave !
7947 Punctuation: CSS !important (bug 11874)
7949 <div style="width:50% !important">important</div>
7951 <div style="width:50% !important">important</div>
7956 Punctuation: CSS ! important (bug 11874; with space after)
7958 <div style="width:50% ! important">important</div>
7960 <div style="width:50% ! important">important</div>
7966 HTML bullet list, closed tags (bug 5497)
7981 HTML bullet list, unclosed tags (bug 5497)
7998 HTML ordered list, closed tags (bug 5497)
8013 HTML ordered list, unclosed tags (bug 5497)
8030 HTML nested bullet list, closed tags (bug 5497)
8055 HTML nested bullet list, open tags (bug 5497)
8080 HTML nested ordered list, closed tags (bug 5497)
8105 HTML nested ordered list, open tags (bug 5497)
8130 HTML ordered list item with parameters oddity
8132 <ol><li id="fragment">One</li></ol>
8134 <ol><li id="fragment">One</li></ol>
8139 bug 5918: autonumbering
8141 [http://first/] [http://second] [ftp://ftp]
8145 [mailto:enclosed@mail.tld With target]
8147 [mailto:enclosed@mail.tld]
8149 mailto:inline@mail.tld
8151 <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>
8152 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8153 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8154 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8155 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8161 # Security and HTML correctness
8162 # From Nick Jenkins' fuzz testing
8166 Fuzz testing: Parser13
8181 Fuzz testing: Parser14
8186 <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>
8187 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8189 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8196 Fuzz testing: Parser14-table
8201 <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>
8202 <table style="__TOC__">
8208 # Known to produce bogus xml (extra </td>)
8210 Fuzz testing: Parser16
8230 Fuzz testing: Parser21
8233 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8238 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8248 Fuzz testing: Parser22
8250 http://===r:::https://b
8254 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8262 # Known to produce bad XML for now
8264 Fuzz testing: Parser24
8271 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8272 <br style="onmouseover='alert(document.cookie);' " />
8274 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8279 <u class="|">}}}} >
8280 <br style="onmouseover='alert(document.cookie);'" />
8282 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8291 # Note: the current result listed for this is not what the original one was,
8292 # but the original bug was JavaScript injection, which is fixed in any case.
8293 # It's not clear that the original result listed was any more correct than the
8294 # current one. Original result:
8297 # <li class="||">
8298 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8300 Fuzz testing: Parser25 (bug 6055)
8306 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8308 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8313 Fuzz testing: URL adjacent extension (with space, clean)
8316 http://example.com <nowiki>junk</nowiki>
8318 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8323 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8326 http://example.com<nowiki>junk</nowiki>
8328 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8333 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8336 http://example.com<pre>junk</pre>
8338 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8343 Fuzz testing: image with bogus manual thumbnail
8345 [[Image:foobar.jpg|thumbnail= ]]
8347 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8352 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8354 <pre dir=" "></pre>
8356 <pre dir=" "></pre>
8361 Parsing optional HTML elements (Bug 6171)
8366 <td> Some tabular data</td>
8367 <td> More tabular data ...
8368 <td> And yet som tabular data</td>
8374 <td> Some tabular data</td>
8375 <td> More tabular data ...
8376 </td><td> And yet som tabular data</td>
8383 Correct handling of <td>, <tr> (Bug 6171)
8388 <td> Some tabular data</td>
8389 <td> More tabular data ...</td>
8390 <td> And yet som tabular data</td>
8396 <td> Some tabular data</td>
8397 <td> More tabular data ...</td>
8398 <td> And yet som tabular data</td>
8406 Parsing crashing regression (fr:JavaScript)
8410 <p></body></x>
8415 Inline wiki vs wiki block nesting
8421 <p><b>Bold paragraph</b>
8422 </p><p>New wiki paragraph
8427 Inline HTML vs wiki block nesting
8435 <p><b>Bold paragraph</b>
8436 </p><p>New wiki paragraph
8440 # Original result was this:
8441 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8443 # While that might be marginally more intuitive, maybe, the six-apostrophe
8444 # construct is clearly pathological and the result stated here (which is what
8445 # the parser actually does) is about as reasonable as anything.
8447 Mixing markup for italics and bold
8450 '''bold''''''bold''bolditalics'''''
8452 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8460 Article for special page transclusion test
8464 Special page transclusion
8467 {{Special:Prefixindex/Xyzzyx}}
8469 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8474 Special page transclusion twice (bug 5021)
8477 {{Special:Prefixindex/Xyzzyx}}
8478 {{Special:Prefixindex/Xyzzyx}}
8480 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8481 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8486 Transclusion of default MediaWiki message
8488 {{MediaWiki:Mainpage}}
8495 Transclusion of nonexistent MediaWiki message
8497 {{MediaWiki:Mainpagexxx}}
8499 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8504 Transclusion of MediaWiki message with underscore
8506 {{MediaWiki:history_short}}
8513 Transclusion of MediaWiki message with space
8515 {{MediaWiki:history short}}
8522 Invalid header with following text
8532 Section extraction test (section 0)
8552 Section extraction test (section 1)
8574 Section extraction test (section 2)
8595 Section extraction test (section 3)
8615 Section extraction test (section 4)
8639 Section extraction test (section 5)
8659 Section extraction test (section 6)
8680 Section extraction test (section 7)
8700 Section extraction test (section 8)
8720 Section extraction test (section 9)
8741 Section extraction test (section 10)
8761 Section extraction test (nonexistent section 11)
8780 Section extraction test with bogus heading (section 1)
8785 ==bogus== not a legal section
8789 ==bogus== not a legal section
8793 Section extraction test with bogus heading (section 2)
8798 ==bogus== not a legal section
8805 Section extraction test with comment after heading (section 1)
8817 Section extraction test with comment after heading (section 2)
8829 Section extraction test with bogus <nowiki> heading (section 1)
8834 ==bogus== <nowiki>not a legal section</nowiki>
8838 ==bogus== <nowiki>not a legal section</nowiki>
8842 Section extraction test with bogus <nowiki> heading (section 2)
8847 ==bogus== <nowiki>not a legal section</nowiki>
8854 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8855 # instead of respecting commented sections
8857 Section extraction prefixed by comment (section 1)
8868 Section extraction prefixed by comment (section 2)
8879 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8880 # instead of respecting HTML-style headings
8882 Section extraction, mixed wiki and html (section 1)
8898 Section extraction, mixed wiki and html (section 2)
8914 # Formerly testing for bug 3342
8916 Section extraction, heading surrounded by <noinclude>
8920 <noinclude>==unmarked==</noinclude>
8926 # Test behaviour of bug 19910
8928 Sectiion with all-equals
8933 The line above must have a trailing space
8936 But just in case it doesn't...
8940 But just in case it doesn't...
8944 Section replacement test (section 0)
8975 Section replacement test (section 1)
9004 Section replacement test (section 2)
9034 Section replacement test (section 3)
9065 Section replacement test (section 4)
9092 Section replacement test (section 5)
9123 Section replacement test (section 6)
9153 Section replacement test (section 7)
9184 Section replacement test (section 8)
9215 Section replacement test (section 9)
9244 Section replacement test (section 10)
9274 Section replacement test with initial whitespace (bug 13728)
9278 Preformatted initial line
9282 Preformatted initial line
9289 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9301 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9314 Section extraction, <pre> around bogus header (bug 10309)
9331 Section replacement, <pre> around bogus header (bug 10309)
9333 noxml replace=2,"xxx"
9354 Handling of 
 in URLs
9358 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9365 5 quotes, code coverage +1 line
9372 Special:Search page linking.
9376 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9391 * {{SUBJECTPAGENAME}}
9392 * {{SUBJECTPAGENAMEE}}
9399 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9401 <ul><li> Parser test
9402 </li><li> Parser test
9403 </li><li> Parser test
9404 </li><li> Parser_test
9405 </li><li> Parser test
9406 </li><li> Parser_test
9407 </li><li> Talk:Parser test
9408 </li><li> Talk:Parser_test
9409 </li><li> Parser test
9410 </li><li> Parser_test
9417 </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>
9421 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9431 image4 |300px| centre
9432 image5.svg| http://///////
9437 <ul class="gallery">
9438 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9439 <div style="height: 150px;">Image1.png</div>
9440 <div class="gallerytext">
9443 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9444 <div style="height: 150px;">Image2.gif</div>
9445 <div class="gallerytext">
9450 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9451 <div style="height: 150px;">Image3</div>
9452 <div class="gallerytext">
9455 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9456 <div style="height: 150px;">Image4</div>
9457 <div class="gallerytext">
9462 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9463 <div style="height: 150px;">Image5.svg</div>
9464 <div class="gallerytext">
9465 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9469 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9470 <div style="height: 150px;">* image6</div>
9471 <div class="gallerytext">
9479 Gallery (with options)
9481 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9482 File:Nonexistant.jpg|caption
9483 File:Nonexistant.jpg
9484 image:foobar.jpg|some '''caption''' [[Main Page]]
9486 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9489 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9490 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9491 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9492 <div style="height: 70px;">Nonexistant.jpg</div>
9493 <div class="gallerytext">
9498 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9499 <div style="height: 70px;">Nonexistant.jpg</div>
9500 <div class="gallerytext">
9503 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9504 <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>
9505 <div class="gallerytext">
9506 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9510 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9511 <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>
9512 <div class="gallerytext">
9515 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9516 <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>
9517 <div class="gallerytext">
9527 Gallery with wikitext inside caption
9530 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9531 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9534 <ul class="gallery">
9535 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9536 <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>
9537 <div class="gallerytext">
9538 <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>
9542 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9543 <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>
9544 <div class="gallerytext">
9545 <p>This is a test template
9554 gallery (with showfilename option)
9556 <gallery showfilename>
9557 File:Nonexistant.jpg|caption
9558 File:Nonexistant.jpg
9559 image:foobar.jpg|some '''caption''' [[Main Page]]
9563 <ul class="gallery">
9564 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9565 <div style="height: 150px;">Nonexistant.jpg</div>
9566 <div class="gallerytext">
9567 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9572 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9573 <div style="height: 150px;">Nonexistant.jpg</div>
9574 <div class="gallerytext">
9575 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9579 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9580 <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>
9581 <div class="gallerytext">
9582 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9583 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9587 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9588 <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>
9589 <div class="gallerytext">
9590 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9599 Gallery (with namespace-less filenames)
9602 File:Nonexistant.jpg
9608 <ul class="gallery">
9609 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9610 <div style="height: 150px;">Nonexistant.jpg</div>
9611 <div class="gallerytext">
9614 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9615 <div style="height: 150px;">Nonexistant.jpg</div>
9616 <div class="gallerytext">
9619 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9620 <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>
9621 <div class="gallerytext">
9624 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9625 <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>
9626 <div class="gallerytext">
9634 HTML Hex character encoding (spells the word "JavaScript")
9636 JavaScript
9638 <p>JavaScript
9643 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9647 <p>&#xsee;&#XSEE;
9652 HTML Hex character encoding mixed case
9661 __FORCETOC__ override
9673 ISBN 978-0-1234-56 789
9675 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9680 ISBN followed by 5 spaces
9691 ISBN ISBN 1234567890
9693 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9698 Bug 22905: <abbr> followed by ISBN followed by </a>
9700 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9702 <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>
9711 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9716 Double RFC with a wiki link
9720 <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>
9729 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9734 Centre-aligned image
9736 [[Image:foobar.jpg|centre]]
9738 <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>
9745 [[Image:foobar.jpg|none]]
9747 <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>
9752 Width + Height sized image (using px) (height is ignored)
9754 [[Image:foobar.jpg|640x480px]]
9756 <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>
9761 Width-sized image (using px, no following whitespace)
9763 [[Image:foobar.jpg|640px]]
9765 <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>
9770 Width-sized image (using px, with following whitespace - test regression from r39467)
9772 [[Image:foobar.jpg|640px ]]
9774 <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>
9779 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9781 [[Image:foobar.jpg| 640px]]
9783 <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>
9788 Another italics / bold test
9796 # Note the results may be incorrect, as parserTest output included this:
9797 # XML error: Mismatched tag at byte 6120:
9798 # ...<dd> </dt></dl> </dd...
9806 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9817 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9819 Images with the "|" character in the comment
9821 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9823 <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>
9828 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9830 <html><script>alert(1);</script></html>
9832 <p><html><script>alert(1);</script></html>
9837 HTML with raw HTML ($wgRawHtml==true)
9841 <html><script>alert(1);</script></html>
9843 <p><script>alert(1);</script>
9848 Parents of subpages, one level up
9850 subpage title=[[Subpage test/L1/L2/L3]]
9854 <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>
9860 Parents of subpages, one level up, not named
9862 subpage title=[[Subpage test/L1/L2/L3]]
9866 <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>
9873 Parents of subpages, two levels up
9875 subpage title=[[Subpage test/L1/L2/L3]]
9881 <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
9882 </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>
9887 Parents of subpages, two levels up, without trailing slash or name.
9889 subpage title=[[Subpage test/L1/L2/L3]]
9898 Parents of subpages, two levels up, with lots of extra trailing slashes.
9900 subpage title=[[Subpage test/L1/L2/L3]]
9904 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9909 Definition list code coverage
9915 <dl><dt> title  </dt><dd> def
9916 </dd><dt> title </dt><dd> def
9917 </dd><dt>title</dt><dd> def
9923 Don't fall for the self-closing div
9925 <div>hello world</div/>
9927 <div>hello world</div>
9936 <p>[[:Template:Msg]]
9945 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9949 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9951 Always escape literal '>' in output, not just after '<'
9965 <p>This is a test template
9966 This is a test template
9978 Inclusion of !userCanEdit() content
9982 <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>
9988 Out-of-order TOC heading levels
9997 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9999 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10001 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10002 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10005 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10007 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10008 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10013 <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>
10014 <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>
10015 <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>
10016 <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>
10017 <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>
10018 <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>
10024 ISBN with a dummy number
10034 ISBN with space-delimited number
10038 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10044 ISBN with multiple spaces, no number
10063 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10064 </p><p>ISBN 12345678901
10070 ISBN with trailing year (bug 8110)
10072 ISBN 1-234-56789-0 - 2006
10074 ISBN 1 234 56789 0 - 2006
10076 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10077 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10085 {{anchorencode:foo bar©#%n}}
10087 <p>foo_bar.C2.A9.23.25n
10092 anchorencode trims spaces
10094 {{anchorencode: __pretty__please__}}
10101 anchorencode deals with links
10103 {{anchorencode: [[hello|world]] [[hi]]}}
10110 anchorencode deals with templates
10112 {{anchorencode: {{Foo}} }}
10119 anchorencode encodes like the TOC generator: (bug 18431)
10121 === _ +:.3A%3A&&]] ===
10122 {{anchorencode: _ +:.3A%3A&&]] }}
10125 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10126 <p>.2B:.3A.253A.26.26.5D.5D
10130 # Expected output in the following test is not necessarily expected (there
10131 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10132 # only testing for well-formedness.
10134 Bug 6200: blockquotes and paragraph formatting
10154 Bug 8293: Use of center tag ruins paragraph formatting
10176 ### Language variants related tests
10179 Self-link in language variants
10181 title=[[Dunav]] language=sr
10183 Both [[Dunav]] and [[Дунав]] are names for this river.
10185 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10191 Link to pages in language variants
10195 Main Page can be written as [[Маин Паге]]
10197 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10203 Multiple links to pages in language variants
10207 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10209 <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>.
10215 Simple template in language variants
10221 <p>This is a test template
10227 Template with explicit namespace in language variants
10233 <p>This is a test template
10239 Basic test for template parameter in language variants
10243 {{парамтест|param=foo}}
10245 <p>This is a test template with parameter foo
10251 Simple category in language variants
10255 [[Category:МедиаWики Усер'с Гуиде]]
10257 <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>
10262 Stripping -{}- tags (language variants)
10266 Latin proverb: -{Ne nuntium necare}-
10268 <p>Latin proverb: Ne nuntium necare
10274 Prevent conversion with -{}- tags (language variants)
10276 language=sr variant=sr-ec
10278 Latinski: -{Ne nuntium necare}-
10280 <p>Латински: Ne nuntium necare
10286 Prevent conversion of text with -{}- tags (language variants)
10288 language=sr variant=sr-ec
10290 Latinski: -{Ne nuntium necare}-
10292 <p>Латински: Ne nuntium necare
10298 Prevent conversion of links with -{}- tags (language variants)
10300 language=sr variant=sr-ec
10304 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10310 -{}- tags within headlines (within html for parserConvert())
10312 language=sr variant=sr-ec
10316 <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>
10322 Explicit definition of language variant alternatives
10324 language=zh variant=zh-tw
10326 -{zh:China;zh-tw:Taiwan}-, not China
10328 <p>Taiwan, not China
10334 Explicit session-wise language variant mapping (A flag and - flag)
10336 language=zh variant=zh-tw
10338 Taiwan is not China.
10339 But -{A|zh:China;zh-tw:Taiwan}- is China,
10340 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10341 and -{China}- is China.
10343 <p>Taiwan is not China.
10344 But Taiwan is Taiwan,
10345 (This should be stripped!)
10346 and China is China.
10351 Explicit session-wise language variant mapping (H flag for hide)
10353 language=zh variant=zh-tw
10355 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10358 <p>(This should be stripped!)
10364 Adding explicit conversion rule for title (T flag)
10366 language=zh variant=zh-tw showtitle
10368 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10371 <p>Should be stripped!
10376 Testing that changing the language variant here in the tests actually works
10378 language=zh variant=zh showtitle
10380 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10383 <p>Should be stripped!
10388 Bug 24072: more test on conversion rule for title
10390 language=zh variant=zh-tw showtitle
10392 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10393 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10396 <p>This should be stripped!
10397 This won't take interferes with the title rule.
10402 Raw output of variant escape tags (R flag)
10404 language=zh variant=zh-tw
10406 Raw: -{R|zh:China;zh-tw:Taiwan}-
10408 <p>Raw: zh:China;zh-tw:Taiwan
10413 Nested using of manual convert syntax
10415 language=zh variant=zh-hk
10417 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10419 <p>Nested: Hello Hong Kong!
10424 Do not convert roman numbers to language variants
10426 language=sr variant=sr-ec
10430 <p>Фридрих IV је цар.
10435 Unclosed language converter markup "-{"
10446 Don't convert raw rule "-{R|=>}-" to "=>"
10463 Bug 529: Uncovered bullet
10473 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10474 # Templates in Wikipedia rely on this behavior, as tidy has always been
10475 # enabled there. These tests are normally run *without* tidy, so specify the
10476 # full output here.
10477 # To test realistic parsing behavior, apply a tidy-like transformation to both
10478 # the expected output and your parser's output.
10480 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10482 ******* Foo {{bullet}}
10484 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10497 Bug 529: Uncovered table already at line-start
10520 Bug 529: Uncovered bullet in parser function result
10522 * Foo {{lc:{{bullet}} }}
10531 Bug 5678: Double-parsed template argument
10533 {{lc:{{{1}}}|hello}}
10540 Bug 5678: Double-parsed template invocation
10542 {{lc:{{paramtest {{!}} param = hello }} }}
10544 <p>{{paramtest | param = hello }}
10549 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10552 title=[[Main Page]]
10554 {{PRVNÍVELKÉ:ěščř}}
10555 {{prvnívelké:ěščř}}
10575 Morwen/13: Unclosed link followed by heading
10582 <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>
10587 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10594 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10599 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10606 <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>
10621 Paragraphs inside divs (no extra line breaks)
10633 Paragraphs inside divs (extra line break on open)
10648 Paragraphs inside divs (extra line break on close)
10663 Paragraphs inside divs (extra line break on open and close)
10680 Nesting tags, paragraphs on lines which begin with <div>
10684 <div></div><strong>A
10693 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10695 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10699 <blockquote>Line one
10701 Line two</blockquote>
10703 <blockquote>Line one
10704 Line two</blockquote>
10709 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10716 Line two</blockquote>
10721 Line two</blockquote>
10726 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10730 <blockquote>Line one
10735 <blockquote>Line one
10743 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10762 Paragraphs inside blockquotes/divs (no extra line breaks)
10764 <blockquote><div>Line one
10766 Line two</div></blockquote>
10768 <blockquote><div>Line one
10769 Line two</div></blockquote>
10774 Paragraphs inside blockquotes/divs (extra line break on open)
10779 Line two</div></blockquote>
10784 Line two</div></blockquote>
10789 Paragraphs inside blockquotes/divs (extra line break on close)
10791 <blockquote><div>Line one
10794 </div></blockquote>
10796 <blockquote><div>Line one
10799 </div></blockquote>
10804 Paragraphs inside blockquotes/divs (extra line break on open and close)
10810 </div></blockquote>
10816 </div></blockquote>
10821 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10823 wgLinkHolderBatchSize=0
10829 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10830 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10831 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10836 Free external link invading image caption
10838 [[Image:Foobar.jpg|thumb|http://x|hello]]
10840 <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>
10845 Bug 15196: localised external link numbers
10849 [http://en.wikipedia.org/]
10851 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10856 Multibyte character in padleft
10858 {{padleft:-Hello|7|Æ}}
10865 Multibyte character in padright
10867 {{padright:Hello-|7|Æ}}
10876 wgUseDynamicDates=1
10880 <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>
10885 formatdate parser function
10887 {{#formatdate:2009-03-24}}
10889 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10894 formatdate parser function, with default format
10896 {{#formatdate:2009-03-24|mdy}}
10898 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10903 Linked date with autoformatting disabled
10905 wgUseDynamicDates=false
10909 <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>
10914 Spacing of numbers in formatted dates
10916 {{#formatdate:January 15}}
10918 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10923 Spacing of numbers in formatted dates (linked)
10925 wgUseDynamicDates=true
10929 <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>
10934 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
10936 language=nl title=[[MediaWiki:Common.css]]
10938 {{#formatdate:2009-03-24|dmy}}
10940 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10953 Edit comment with link
10957 I like the [[Main Page]] a lot
10959 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10963 Edit comment with link and link text
10967 I like the [[Main Page|best pages]] a lot
10969 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10973 Edit comment with link and link text with suffix
10977 I like the [[Main Page|best page]]s a lot
10979 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10983 Edit comment with section link (non-local, eg in history list)
10985 comment title=[[Main Page]]
10987 /* External links */ removed bogus entries
10989 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10993 Edit comment with section link and text before it (non-local, eg in history list)
10995 comment title=[[Main Page]]
10997 pre-comment text /* External links */ removed bogus entries
10999 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>
11003 Edit comment with section link (local, eg in diff view)
11005 comment local title=[[Main Page]]
11007 /* External links */ removed bogus entries
11009 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11013 Edit comment with subpage link (bug 14080)
11017 title=[[Subpage test]]
11019 Poked at a [[/subpage]] here...
11021 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11025 Edit comment with subpage link and link text (bug 14080)
11029 title=[[Subpage test]]
11031 Poked at a [[/subpage|neat little page]] here...
11033 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11037 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11040 title=[[Subpage test]]
11042 Poked at a [[/subpage]] here...
11044 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11048 Edit comment with bare anchor link (local, as on diff)
11052 title=[[Main Page]]
11056 <a href="#section">#section</a>
11060 Edit comment with bare anchor link (non-local, as on history)
11063 title=[[Main Page]]
11067 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11071 Anchor starting with underscore
11075 <p><a href="#_ref">One</a>
11080 Id starting with underscore
11082 <div id="_ref"></div>
11084 <div id="_ref"></div>
11089 Space normalisation on autocomment (bug 22784)
11092 title=[[Main Page]]
11094 /* __hello__world__ */
11096 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11100 percent-encoding and + signs in comments (Bug 26410)
11104 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11106 <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>
11110 Bad images - basic functionality
11119 Bad images - bug 16039: text after bad image disappears
11133 Verify that displaytitle works (bug #22501) no displaytitle
11137 wgAllowDisplayTitle=true
11138 wgRestrictDisplayTitle=false
11140 this is not the the title
11143 <p>this is not the the title
11148 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11153 wgAllowDisplayTitle=true
11154 wgRestrictDisplayTitle=false
11156 this is not the the title
11157 {{DISPLAYTITLE:whatever}}
11160 <p>this is not the the title
11165 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11170 wgAllowDisplayTitle=true
11171 wgRestrictDisplayTitle=true
11173 this is not the the title
11174 {{DISPLAYTITLE:whatever}}
11177 <p>this is not the the title
11182 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11187 wgAllowDisplayTitle=true
11188 wgRestrictDisplayTitle=true
11190 this is not the the title
11191 {{DISPLAYTITLE:screen}}
11194 <p>this is not the the title
11199 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11204 wgAllowDisplayTitle=false
11206 this is not the the title
11207 {{DISPLAYTITLE:screen}}
11210 <p>this is not the the title
11211 <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>
11216 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11221 wgAllowDisplayTitle=false
11223 this is not the the title
11226 <p>this is not the the title
11231 preload: check <noinclude> and <includeonly>
11235 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11241 preload: check <onlyinclude>
11245 Goodbye <onlyinclude>Hello world</onlyinclude>
11251 preload: can pass tags through if we want to
11255 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11257 <includeonly>Hello world</includeonly>
11261 preload: check that it doesn't try to do tricks
11265 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11267 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11271 Play a bit with r67090 and bug 3158
11275 <div style="width:50% !important"> </div>
11276 <div style="width:50% !important"> </div>
11277 <div style="width:50% !important"> </div>
11278 <div style="border : solid;"> </div>
11280 <div style="width:50% !important"> </div>
11281 <div style="width:50% !important"> </div>
11282 <div style="width:50% !important"> </div>
11283 <div style="border : solid;"> </div>
11288 HTML5 data attributes
11290 <span data-foo="bar">Baz</span>
11291 <p data-abc-def_hij="">Quuz</p>
11293 <p><span data-foo="bar">Baz</span>
11295 <p data-abc-def_hij="">Quuz</p>
11300 percent-encoding and + signs in internal links (Bug 26410)
11302 [[User:+%]] [[Page+title%]]
11303 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11304 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11305 [[%33%45]] [[%33%45+]]
11307 <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>
11308 <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>
11309 <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>
11310 <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>
11315 Special characters in embedded file links (bug 27679)
11317 [[File:Contains & ampersand.jpg]]
11318 [[File:Does not exist.jpg|Title with & ampersand]]
11320 <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>
11321 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11327 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11329 Text's been normalized?
11331 <p>Text's been normalized?
11336 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11338 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11340 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11345 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11347 [http://www.example.org/ ideograms]
11349 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11354 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11356 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11358 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11382 Bug 31098 Template which includes system messages which includes the template
11386 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11387 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11392 Deprecated presentational attributes are converted to css
11395 | valign=top align=left width=100 height=25% | Asdf
11397 <ul type="disc"></ul>
11401 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11403 <ul style="list-style-type: disc;"></ul>
11408 Bug31490 Turkish: ucfirst 'blah'
11419 Bug31490 Turkish: ucfirst 'ix'
11430 Bug31490 Turkish: lcfirst 'BLAH'
11441 Bug31490 Turkish: ucfırst (with a dotless i)
11447 <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>
11452 Bug31490 ucfırst (with a dotless i) with English language
11458 <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>
11463 Bug 26375: TOC with italics
11465 title=[[Main Page]]
11468 == ''Lost'' episodes ==
11470 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11472 <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>
11475 <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>
11480 Bug 26375: TOC with bold
11482 title=[[Main Page]]
11485 == '''should be bold''' then normal text ==
11487 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11489 <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>
11492 <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>
11497 Bug 33845: Headings become cursive in TOC when they contain an image
11499 title=[[Main Page]]
11502 == Image [[Image:foobar.jpg]] ==
11504 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11506 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11509 <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>
11514 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11516 title=[[Main Page]]
11519 == <blockquote>Quote</blockquote> ==
11521 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11523 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11526 <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>
11531 Unclosed tags in TOC
11533 title=[[Main Page]]
11537 <small>Hanc marginis exiguitas non caperet.</small>
11540 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11542 <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>
11545 <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>
11546 <p><small>Hanc marginis exiguitas non caperet.</small>
11552 Multiple tags in TOC
11555 == <i>Foo</i> <b>Bar</b> ==
11557 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11559 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11561 <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>
11562 <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>
11565 <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>
11566 <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>
11571 Tags with parameters in TOC
11574 == <sup class="in-h2">Hello</sup> ==
11576 == <sup class="a > b">Evilbye</sup> ==
11578 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11580 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11581 <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>
11584 <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>
11585 <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>
11590 span tags with directionality in TOC
11593 == <span dir="ltr">C++</span> ==
11595 == <span dir="rtl">זבנג!</span> ==
11597 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11599 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11601 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11603 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11605 <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>
11606 <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>
11607 <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>
11608 <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>
11609 <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>
11612 <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>
11613 <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>
11614 <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>
11615 <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>
11616 <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>
11623 == {{int:headline_sample}} ==
11627 Bug 32057: Title needed when expanding <h> nodes.
11629 title=[[Main Page]]
11633 <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>
11638 Strip marker in urlencode
11640 {{urlencode:x<nowiki/>y}}
11641 {{urlencode:x<nowiki/>y|wiki}}
11642 {{urlencode:x<nowiki/>y|path}}
11669 Strip marker in formatNum
11671 {{formatnum:1<nowiki/>2}}
11672 {{formatnum:1<nowiki/>2|R}}
11680 Strip marker in grammar
11684 {{grammar:elative|foo<nowiki/>bar}}
11691 Strip marker in padleft
11693 {{padleft:|2|x<nowiki/>y}}
11700 Strip marker in padright
11702 {{padright:|2|x<nowiki/>y}}
11709 Strip marker in anchorencode
11711 {{anchorencode:x<nowiki/>y}}
11718 nowiki inside link inside heading (bug 18295)
11720 ==[[foo|x<nowiki>y</nowiki>z]]==
11722 <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>
11727 new support for bdi element (bug 31817)
11729 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11731 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11736 Ignore pipe between table row attributes
11740 |- id=foo | style='color: red'
11748 <tr id="foo" style="color: red">
11755 Gallery override link with WikiLink (bug 34852)
11758 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11761 <ul class="gallery">
11762 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11763 <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>
11764 <div class="gallerytext">
11774 Gallery override link with absolute external link (bug 34852)
11777 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11780 <ul class="gallery">
11781 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11782 <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>
11783 <div class="gallerytext">
11793 Gallery override link with malicious javascript (bug 34852)
11796 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11799 <ul class="gallery">
11800 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11801 <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>
11802 <div class="gallerytext">
11812 Language parser function
11821 Padleft and padright as substr
11823 {{padleft:|3|abcde}}
11824 {{padright:|3|abcde}}
11832 Bug 34939 - Case insensitive link parsing ([HttP://])
11834 [HttP://MediaWiki.Org/]
11836 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11841 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11843 [HttP://MediaWiki.Org/ MediaWiki]
11845 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11850 Bug 34939 - Case insensitive link parsing (HttP://)
11852 HttP://MediaWiki.Org/
11854 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11859 ### Parsoids-specific tests
11860 ### Parsoid-PHP parser incompatibilities
11863 1. SOL-sensitive wikitext tokens as template-args
11877 #### The following section of tests are primarily to test
11878 #### wikitext escaping capabilities of Parsoid.
11879 #### A lot of the tests are disabled for the PHP parser either
11880 #### because of minor newline diffs or other reasons.
11881 #### As Parsoid serializer can handle newlines and other HTML
11882 #### more robustly, some of these tests might get reenabled
11883 #### for the PHP parser.
11885 #### --------------- Headings ---------------
11887 #### 1. Nested inside html <h1>=foo=</h1>
11888 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11889 #### 3. Nested inside html with wikitext split by html tags
11890 #### 4. No escape needed
11891 #### 5. Empty headings <h1></h1>
11892 #### 6. Heading chars in SOL context
11893 #### ----------------------------------------
11895 Headings: 0. Unnested
11897 <nowiki>=foo=</nowiki>
11899 <nowiki>=foo</nowiki>''a''=
11902 </p><p>=foo<i>a</i>=
11907 Headings: 1. Nested inside html
11911 =<nowiki>=foo=</nowiki>=
11912 ==<nowiki>=foo=</nowiki>==
11913 ===<nowiki>=foo=</nowiki>===
11914 ====<nowiki>=foo=</nowiki>====
11915 =====<nowiki>=foo=</nowiki>=====
11916 ======<nowiki>=foo=</nowiki>======
11927 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11932 <nowiki>*bar</nowiki>
11936 <nowiki>=bar=</nowiki>
11944 Headings: 3. Nested inside html with wikitext split by html tags
11948 =<nowiki>=</nowiki>'''bold'''foo==
11950 <h1>=<b>bold</b>foo=</h1>
11954 Headings: 4. No escaping needed (testing just h1 and h2)
11969 <h1><i>=</i>foo=</h1>
11974 Headings: 5. Empty headings
11978 =<nowiki></nowiki>=
11979 ==<nowiki></nowiki>==
11980 ===<nowiki></nowiki>===
11981 ====<nowiki></nowiki>====
11982 =====<nowiki></nowiki>=====
11983 ======<nowiki></nowiki>======
11994 Headings: 6. Heading chars in SOL context
11998 <!--cmt--><nowiki>=h1=</nowiki>
12004 #### --------------- Lists ---------------
12005 #### 0. Outside nests (*foo, etc.)
12006 #### 1. Nested inside html <ul><li>*foo</li></ul>
12007 #### 2. Inside definition lists
12008 #### 3. Only bullets at start should be escaped
12009 #### 4. No escapes needed
12010 #### 5. No unnecessary escapes
12011 #### 6. Escape bullets in SOL position
12012 #### 7. Escape bullets in a multi-line context
12013 #### ----------------------------------------
12016 Lists: 0. Outside nests
12018 <nowiki>*foo</nowiki>
12020 <nowiki>#foo</nowiki>
12028 Lists: 1. Nested inside html
12030 *<nowiki>*foo</nowiki>
12032 *<nowiki>#foo</nowiki>
12034 *<nowiki>:foo</nowiki>
12036 *<nowiki>;foo</nowiki>
12038 #<nowiki>*foo</nowiki>
12040 #<nowiki>#foo</nowiki>
12042 #<nowiki>:foo</nowiki>
12044 #<nowiki>;foo</nowiki>
12066 Lists: 2. Inside definition lists
12068 ;<nowiki>;foo</nowiki>
12070 ;<nowiki>:foo</nowiki>
12072 ;<nowiki>:foo</nowiki>
12075 :<nowiki>:foo</nowiki>
12090 Lists: 3. Only bullets at start of text should be escaped
12092 *<nowiki>*foo*bar</nowiki>
12094 *<nowiki>*foo</nowiki>''it''*bar
12098 <ul><li>*foo<i>it</i>*bar
12104 Lists: 4. No escapes needed
12116 <ul><li><i>foo</i>*bar
12118 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12123 Lists: 5. No unnecessary escapes
12125 * bar <span><nowiki>[[foo]]</nowiki></span>
12127 *=bar <span><nowiki>[[foo]]</nowiki></span>
12129 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12131 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12133 *=bar <span>foo]]</span>=
12135 <ul><li> bar <span>[[foo]]</span>
12137 <ul><li>=bar <span>[[foo]]</span>
12139 <ul><li>[[bar <span>[[foo]]</span>
12141 <ul><li>]]bar <span>[[foo]]</span>
12143 <ul><li>=bar <span>foo]]</span>=
12149 Lists: 6. Escape bullets in SOL position
12153 <!--cmt--><nowiki>*foo</nowiki>
12160 Lists: 7. Escape bullets in a multi-line context
12170 #### --------------- HRs ---------------
12171 #### 1. Single line
12172 #### -----------------------------------
12175 HRs: 1. Single line
12180 <nowiki>----</nowiki>
12182 <nowiki>=foo=</nowiki>
12184 <nowiki>*foo</nowiki>
12191 #### --------------- Tables ---------------
12192 #### 1a. Simple example
12193 #### 1b. No escaping needed (!foo)
12194 #### 1c. No escaping needed (|foo)
12195 #### 1d. No escaping needed (|}foo)
12197 #### 2a. Nested in td (<td>foo|bar</td>)
12198 #### 2b. Nested in td (<td>foo||bar</td>)
12199 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12201 #### 3a. Nested in th (<th>foo!bar</th>)
12202 #### 3b. Nested in th (<th>foo!!bar</th>)
12203 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12207 #### 4c. No escaping needed
12208 #### --------------------------------------
12211 Tables: 1a. Simple example
12222 Tables: 1b. No escaping needed
12231 Tables: 1c. No escaping needed
12240 Tables: 1d. No escaping needed
12249 Tables: 2a. Nested in td
12254 |<nowiki>foo|bar</nowiki>
12264 Tables: 2b. Nested in td
12269 |<nowiki>foo||bar</nowiki>
12270 |''it''<nowiki>foo||bar</nowiki>
12275 </td><td><i>it</i>foo||bar
12281 Tables: 2c. Nested in td -- no escaping needed
12296 Tables: 3a. Nested in th
12311 Tables: 3b. Nested in th
12316 !<nowiki>foo!!bar</nowiki>
12326 Tables: 3c. Nested in th -- no escaping needed
12341 Tables: 4a. Escape -
12349 |<nowiki>-bar</nowiki>
12353 <tr><th>-bar</th></tr>
12354 <tr><td>-bar</td></tr>
12359 Tables: 4b. Escape +
12367 |<nowiki>+bar</nowiki>
12371 <tr><th>+bar</th></tr>
12372 <tr><td>+bar</td></tr>
12377 Tables: 4c. No escaping needed
12391 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12392 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12396 #### --------------- Links ---------------
12397 #### 1. Quote marks in link text
12398 #### 2. Wikilinks: Escapes needed
12399 #### 3. Wikilinks: No escapes needed
12400 #### 4. Extlinks: Escapes needed
12401 #### 5. Extlinks: No escapes needed
12402 #### --------------------------------------
12404 Links 1. Quote marks in link text
12408 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12410 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12414 Links 2. WikiLinks: Escapes needed
12418 [[Foo|<nowiki>[Foobar]</nowiki>]]
12419 [[Foo|<nowiki>Foobar]</nowiki>]]
12420 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12421 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12422 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12423 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12424 [[Foo|<nowiki>|Bar</nowiki>]]
12426 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12427 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12428 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12429 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12430 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12431 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12432 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12436 Links 3. WikiLinks: No escapes needed
12443 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12444 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12448 Links 4. ExtLinks: Escapes needed
12452 [http://google.com <nowiki>[google]</nowiki>]
12453 [http://google.com <nowiki>google]</nowiki>]
12455 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12456 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12460 Links 5. ExtLinks: No escapes needed
12464 [http://google.com [google]
12466 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12469 #### --------------- Quotes ---------------
12470 #### 1. Quotes inside <b> and <i>
12471 #### 2. Link fragments separated by <i> and <b> tags
12472 #### 3. Link fragments inside <i> and <b>
12473 #### --------------------------------------
12475 1. Quotes inside <b> and <i>
12477 ''<nowiki>'foo'</nowiki>''
12478 ''<nowiki>''foo''</nowiki>''
12479 ''<nowiki>'''foo'''</nowiki>''
12480 '''<nowiki>'foo'</nowiki>'''
12481 '''<nowiki>''foo''</nowiki>'''
12482 '''<nowiki>'''foo'''</nowiki>'''
12483 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12491 <b>foo'<i>bar'</i>baz</b>
12496 2. Link fragments separated by <i> and <b> tags
12498 [[''foo''<nowiki>hello]]</nowiki>
12500 [['''foo'''<nowiki>hello]]</nowiki>
12502 <p>[[<i>foo</i>hello]]
12503 </p><p>[[<b>foo</b>hello]]
12508 2. Link fragments inside <i> and <b>
12509 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12510 this is one of the shortcomings of this format)
12512 ''[[foo''<nowiki>]]</nowiki>
12514 '''[[foo'''<nowiki>]]</nowiki>
12517 </p><p><b>[[foo</b>]]
12521 #### --------------- Paragraphs ---------------
12522 #### 1. No unnecessary escapes
12523 #### --------------------------------------
12526 1. No unnecessary escapes
12528 bar <span><nowiki>[[foo]]</nowiki></span>
12530 =bar <span><nowiki>[[foo]]</nowiki></span>
12532 [[bar <span><nowiki>[[foo]]</nowiki></span>
12534 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12536 <nowiki>=bar </nowiki><span>foo]]</span>=
12538 <p>bar <span>[[foo]]</span>
12539 </p><p>=bar <span>[[foo]]</span>
12540 </p><p>[[bar <span>[[foo]]</span>
12541 </p><p>]]bar <span>[[foo]]</span>
12542 </p><p>=bar <span>foo]]</span>=
12546 #### --------------- PRE ------------------
12547 #### 1. Leading space in SOL context should be escaped
12548 #### --------------------------------------
12550 1. Leading space in SOL context should be escaped
12554 <nowiki> foo</nowiki>
12555 <!--cmt--><nowiki> foo</nowiki>
12562 #### --------------- HTML tags ---------------
12565 #### 3. multi-line html tag
12566 #### --------------------------------------
12572 <a href="http://google.com">google</a>
12574 <a href="http://google.com">google</a>
12580 <nowiki><div>foo</div>
12581 <div style="color:red">foo</div></nowiki>
12583 <p><div>foo</div>
12584 <div style="color:red">foo</div>
12589 3. multi-line html tag
12601 #### --------------- Others ---------------
12605 <nowiki>foo</nowiki>
12607 <p><nowiki>foo</nowiki>
12616 Try for 100% code coverage