1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 Template:echo_with_span
87 Template:echo_with_div
99 Template:table_attribs
102 |</noinclude>style="color: red"| Foo
118 This is a simple paragraph.
120 <p>This is a simple paragraph.
125 Paragraphs with extra newline spacing
163 * plain''italic''plain
164 * plain''italic''plain''italic''plain
165 * plain'''bold'''plain
166 * plain'''bold'''plain'''bold'''plain
167 * plain''italic''plain'''bold'''plain
168 * plain'''bold'''plain''italic''plain
169 * plain''italic'''bold-italic'''italic''plain
170 * plain'''bold''bold-italic''bold'''plain
171 * plain'''''bold-italic'''italic''plain
172 * plain'''''bold-italic''bold'''plain
173 * plain''italic'''bold-italic'''''plain
174 * plain'''bold''bold-italic'''''plain
175 * plain l'''italic''plain
176 * plain l''''bold''' plain
179 </li><li> plain<i>italic</i>plain
180 </li><li> plain<i>italic</i>plain<i>italic</i>plain
181 </li><li> plain<b>bold</b>plain
182 </li><li> plain<b>bold</b>plain<b>bold</b>plain
183 </li><li> plain<i>italic</i>plain<b>bold</b>plain
184 </li><li> plain<b>bold</b>plain<i>italic</i>plain
185 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
186 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
187 </li><li> plain<i><b>bold-italic</b>italic</i>plain
188 </li><li> plain<b><i>bold-italic</i>bold</b>plain
189 </li><li> plain<i>italic<b>bold-italic</b></i>plain
190 </li><li> plain<b>bold<i>bold-italic</i></b>plain
191 </li><li> plain l'<i>italic</i>plain
192 </li><li> plain l'<b>bold</b> plain
198 ### 2-quote opening sequence tests
201 Italics and bold: 2-quote opening sequence: (2,2)
211 Italics and bold: 2-quote opening sequence: (2,3)
221 Italics and bold: 2-quote opening sequence: (2,4)
231 Italics and bold: 2-quote opening sequence: (2,5)
241 ### 3-quote opening sequence tests
245 Italics and bold: 3-quote opening sequence: (3,2)
255 Italics and bold: 3-quote opening sequence: (3,3)
265 Italics and bold: 3-quote opening sequence: (3,4)
275 Italics and bold: 3-quote opening sequence: (3,5)
285 ### 4-quote opening sequence tests
289 Italics and bold: 4-quote opening sequence: (4,2)
299 Italics and bold: 4-quote opening sequence: (4,3)
309 Italics and bold: 4-quote opening sequence: (4,4)
319 Italics and bold: 4-quote opening sequence: (4,5)
329 ### 5-quote opening sequence tests
333 Italics and bold: 5-quote opening sequence: (5,2)
343 Italics and bold: 5-quote opening sequence: (5,3)
353 Italics and bold: 5-quote opening sequence: (5,4)
357 <p><i><b>foo'</b></i>
363 Italics and bold: 5-quote opening sequence: (5,5)
372 ### multiple quote sequences in a line
375 Italics and bold: multiple quote sequences: (2,4,2)
379 <p><i>foo'<b>bar</b></i>
385 Italics and bold: multiple quote sequences: (2,4,3)
389 <p><i>foo'<b>bar</b></i>
395 Italics and bold: multiple quote sequences: (2,4,4)
399 <p><i>foo'<b>bar'</b></i>
405 Italics and bold: multiple quote sequences: (3,4,2)
415 Italics and bold: multiple quote sequences: (3,4,3)
424 ### other quote tests
427 Italics and bold: other quote tests: (2,3,5)
429 ''this is about '''foo's family'''''
431 <p><i>this is about <b>foo's family</b></i>
437 Italics and bold: other quote tests: (2,(3,3),2)
439 ''this is about '''foo's''' family''
441 <p><i>this is about <b>foo's</b> family</i>
447 Italics and bold: other quote tests: (3,2,3,2)
449 '''this is about ''foo'''s family''
451 <p><b>this is about <i>foo</i></b><i>s family</i>
457 Italics and bold: other quote tests: (3,2,3,3)
459 '''this is about ''foo'''s family'''
461 <p>'<i>this is about </i>foo<b>s family</b>
468 Italics and bold: other quote tests: (3,(2,2),3)
470 '''this is about ''foo's'' family'''
472 <p><b>this is about <i>foo's</i> family</b>
477 ### <nowiki> test cases
481 <nowiki> unordered list
483 <nowiki>* This is not an unordered list item.</nowiki>
485 <p>* This is not an unordered list item.
492 <nowiki>Lorem ipsum dolor
513 :There is not nowiki.
514 :There is <nowiki>nowiki</nowiki>.
516 #There is not nowiki.
517 #There is <nowiki>nowiki</nowiki>.
519 *There is not nowiki.
520 *There is <nowiki>nowiki</nowiki>.
522 <dl><dd>There is not nowiki.
523 </dd><dd>There is nowiki.
525 <ol><li>There is not nowiki.
526 </li><li>There is nowiki.
528 <ul><li>There is not nowiki.
529 </li><li>There is nowiki.
541 <!-- comment 1 --> asdf
543 <!-- comment 1 --> asdf
546 <!-- comment 1 --> asdf
547 <!-- comment 2 -->xyz
549 <!-- comment 1 --> asdf
550 <!-- comment 2 --> xyz
606 asdf<!-- comment 1 -->jkl
616 <!-- foo --> b <!-- bar -->
630 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
636 Comment semantics and delimiters
638 <!-- --><!----><!-----><!------>
644 Comment semantics and delimiters, redux
646 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
647 -- foo -- funky huh? ... -->
653 Comment semantics and delimiters: directors cut
655 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
656 everything starting with < followed by !-- until the first -- and > we see,
657 that wouldn't be valid XML however, since in XML -- has to terminate a comment
665 Comment semantics: nesting
667 <!--<!-- no, we're not going to do anything fancy here -->-->
674 Comment semantics: unclosed comment at end
676 <!--This comment will run out to the end of the document
682 Comment in template title
691 Comment on its own line post-expand
703 Comment on its own line post-expand with non-significant whitespace
715 ### paragraph wraping tests
729 Block tag on one line
741 Block tag on both lines
753 Multiple lines without block tags
771 ### Preformatted text
780 And a [[Main Page|link]]
786 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
791 Ident preformatting with inline content
802 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
819 Regression with preformatted in <center>
832 # Expected output in the following test is not really expected (there should be
833 # <pre> in the output) -- it's only testing for well-formedness.
835 Bug 6200: Preformatted in <blockquote>
848 <pre> with attributes (bug 3202)
850 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
852 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
857 <pre> with width attribute (bug 3202)
859 <pre width="8">Narrow screen goodies</pre>
861 <pre width="8">Narrow screen goodies</pre>
866 <pre> with forbidden attribute (bug 3202)
868 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
870 <pre width="8">Narrow screen goodies</pre>
875 <pre> with forbidden attribute values (bug 3202)
877 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
879 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
884 <nowiki> inside <pre> (bug 13238)
892 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
900 <pre><nowiki>Foo</nowiki></pre>
905 <nowiki> and <pre> preference (first one wins)
938 <nowiki></pre></nowiki>
945 Templates: Pre: 1a. Templates that break a line should suppress <pre>
953 Templates: Pre: 1b. Templates that break a line should suppress <pre>
963 Templates: Pre: 1c: Wrapping should be based on expanded content
975 Templates: Pre: 1d: Wrapping should be based on expanded content
996 Templates: Pre: 1e. Wrapping should be based on expanded content
1000 {{echo| foo}}{{echo| bar}}
1005 {{echo|<!--cmt--> foo}}
1007 <!--cmt-->{{echo| foo}}
1009 {{echo|{{echo| }}bar}}
1027 Templates: Pre: 1f: Wrapping should be based on expanded content
1064 Templates: Single-line variant of parameter whitespace stripping test
1070 {{echo|{{echo| a}}}}
1072 {{echo|1={{echo| a}}}}
1085 Templates: Strip whitespace from named parameters, but not positional ones
1113 ### Parsoid-centric tests for testing RT edge cases for pre
1117 1a. Pre and Comments
1130 1b. Pre and Comments
1143 1c. Pre and Comments
1193 3a. Pre and block tags (single-line html)
1201 <pre><span> foo </span>
1206 3b. Pre and block tags (pre-content on separate line)
1258 4. Multiple spaces at start-of-line
1277 ### Definition lists
1284 <dl><dt> name </dt><dd> Definition
1290 Definition list for indentation only
1294 <dl><dd> Indented text
1300 Definition list with no space
1304 <dl><dt>name</dt><dd>Definition
1310 Definition list with URL link
1312 ; http://example.com/ : definition
1314 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1320 Definition list with bracketed URL link
1322 ;[http://www.example.com/ Example]:Something about it
1324 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1330 Definition list with wikilink containing colon
1332 ; [[Help:FAQ]]: The least-read page on Wikipedia
1334 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1339 # At Brion's and JeLuF's insistence... :)
1341 Definition list with news link containing colon
1343 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1345 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1351 Malformed definition list with colon
1353 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1355 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1361 Definition lists: colon in external link text
1363 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1365 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1371 Definition lists: colon in HTML attribute
1373 ;<b style="display: inline">bold</b>
1375 <dl><dt><b style="display: inline">bold</b>
1381 Definition lists: self-closed tag
1383 ;one<br/>two : two-line fun
1385 <dl><dt>one<br />two </dt><dd> two-line fun
1391 Bug 11748: Literal closing tags
1395 <dd>test test test test test</dd>
1397 <dd>test test test test test</dd>
1402 <dd>test test test test test</dd>
1404 <dd>test test test test test</dd>
1410 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1413 ; term : description
1419 <dl><dt> term </dt><dd> description
1430 Definition list with empty definition and following paragraph
1435 <dl><dt> term</dt><dd>
1442 Nested definition lists using html syntax
1459 Definition Lists: No nesting: Multiple dd's
1473 Definition Lists: Indentation: Regular
1489 Definition Lists: Indentation: Missing 1st level
1503 Definition Lists: Indentation: Multi-level indent
1507 <dl><dd><dl><dd><dl><dd>i3
1515 Definition Lists: Hacky use to indent tables
1522 should be left alone
1524 <dl><dd><dl><dd><table>
1529 </td></tr></table></dd></dl></dd></dl>
1531 should be left alone
1534 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1535 ## as an empty dt item. It also ignores all but the last ";" when followed
1536 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1537 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1540 ## Ex: ";;t2 ::d2" is transformed into:
1552 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1553 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1564 ## All Parsoid only definition list tests have this difference.
1566 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1567 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1570 Definition Lists: Nesting: Multi-level (Parsoid only)
1600 Definition Lists: Nesting: Test 2 (Parsoid only)
1620 Definition Lists: Nesting: Test 3 (Parsoid only)
1648 Definition Lists: Nesting: Test 4
1653 <dl><dd><dl><dd><dl><dt>t3
1663 Definition Lists: Mixed Lists: Test 1
1669 <dl><dd><dl><dt><ul><li> foo
1681 Definition Lists: Mixed Lists: Test 2
1695 Definition Lists: Mixed Lists: Test 3
1700 <ul><li><dl><dd><dl><dd><dl><dd> d1
1711 Definition Lists: Mixed Lists: Test 4
1716 <ul><li><dl><dt>d1 </dt><dd>d2
1717 </dd><dt>d3 </dt><dd>d4
1725 Definition Lists: Mixed Lists: Test 5
1740 Definition Lists: Mixed Lists: Test 6
1745 <ol><li><ul><li><dl><dd>d1
1757 Definition Lists: Mixed Lists: Test 7
1771 Definition Lists: Mixed Lists: Test 8
1787 Definition Lists: Mixed Lists: Test 9
1791 <ul><li><dl><dt>foo </dt><dd>bar
1799 Definition Lists: Mixed Lists: Test 10
1803 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1812 Definition Lists: Mixed Lists: Test 11
1817 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1822 <dl><dt>boo </dt><dd>baz
1833 Definition Lists: Weird Ones: Test 1
1835 *#;*::;; foo : bar (who uses this?)
1837 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1853 External links: non-bracketed
1855 Non-bracketed: http://example.com
1857 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1862 External links: numbered
1864 Numbered: [http://example.com]
1865 Numbered: [http://example.net]
1866 Numbered: [http://example.com]
1868 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1869 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1870 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1875 External links: specified text
1877 Specified text: [http://example.com link]
1879 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1884 External links: trail
1886 Linktrails should not work for external links: [http://example.com link]s
1888 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1893 External links: dollar sign in URL
1895 http://example.com/1$2345
1897 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1902 External links: dollar sign in URL (named)
1904 [http://example.com/1$2345]
1906 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1911 External links: open square bracket forbidden in URL (bug 4377)
1913 http://example.com/1[2345
1915 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1920 External links: open square bracket forbidden in URL (named) (bug 4377)
1922 [http://example.com/1[2345]
1924 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1929 External links: nowiki in URL link text (bug 6230)
1931 [http://example.com/ <nowiki>''example site''</nowiki>]
1933 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1938 External links: newline forbidden in text (bug 6230 regression check)
1940 [http://example.com/ first
1943 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1949 External links: Pipe char between url and text
1951 [http://example.com | link]
1953 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1958 External links: protocol-relative URL in brackets
1960 [//example.com/ Test]
1962 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1967 External links: protocol-relative URL in brackets without text
1971 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1976 External links: protocol-relative URL in free text is left alone
1980 <p>//example.com/Foo
1985 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1987 foo//example.com/Foo
1989 <p>foo//example.com/Foo
1996 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1998 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2003 External image from https
2005 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2007 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2012 Link to non-http image, no img tag
2014 Link to non-http image, no img tag: ftp://example.com/test.jpg
2016 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2021 External links: terminating separator
2023 Terminating separator: http://example.com/thing,
2025 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2030 External links: intervening separator
2032 Intervening separator: http://example.com/1,2,3
2034 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2039 External links: old bug with URL in query
2041 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2043 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2048 External links: old URL-in-URL bug, mixed protocols
2050 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2052 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2057 External links: URL in text
2059 URL in text: [http://example.com http://example.com]
2061 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2066 External links: Clickable images
2068 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2070 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
2075 External links: raw ampersand
2077 Old & use: http://x&y
2079 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2084 External links: encoded ampersand
2086 Old & use: http://x&y
2088 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2093 External links: encoded equals (bug 6102)
2095 http://example.com/?foo=bar
2097 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2102 External links: [raw ampersand]
2104 Old & use: [http://x&y]
2106 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2111 External links: [encoded ampersand]
2113 Old & use: [http://x&y]
2115 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2120 External links: [encoded equals] (bug 6102)
2122 [http://example.com/?foo=bar]
2124 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2129 External links: [IDN ignored character reference in hostname; strip it right off]
2131 [http://e‌xample.com/]
2133 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2137 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2138 # Where an external link could easily circumvent the sanitization of the text of
2139 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2140 # test demands a higher standard. That's a bit strange.
2144 # http://example.com -> [http://example.com|http://example.com]
2145 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2147 # The first example is sanitized, but the second is not. Any security benefits
2148 # from this production are trivial to circumvent. Either remove this test and
2149 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2150 # the test accordingly.
2155 External links: IDN ignored character reference in hostname; strip it right off
2157 http://e‌xample.com/
2159 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2164 External links: www.jpeg.org (bug 554)
2168 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2173 External links: URL within URL (original bug 2)
2175 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2177 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2182 BUG 361: URL inside bracketed URL
2184 [http://www.example.com/foo http://www.example.com/bar]
2186 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2191 BUG 361: URL within URL, not bracketed
2193 http://www.example.com/foo?=http://www.example.com/bar
2195 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2200 BUG 289: ">"-token in URL-tail
2202 http://www.example.com/<hello>
2204 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2209 BUG 289: literal ">"-token in URL-tail
2211 http://www.example.com/<b>html</b>
2213 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2218 BUG 289: ">"-token in bracketed URL
2220 [http://www.example.com/<hello> stuff]
2222 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2227 BUG 289: literal ">"-token in bracketed URL
2229 [http://www.example.com/<b>html</b> stuff]
2231 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2236 BUG 289: literal double quote at end of URL
2238 http://www.example.com/"hello"
2240 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2245 BUG 289: literal double quote in bracketed URL
2247 [http://www.example.com/"hello" stuff]
2249 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2254 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2256 [http://www.example.com test]
2258 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2263 External links: wiki links within external link (Bug 3695)
2265 [http://example.com [[wikilink]] embedded in ext link]
2267 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
2272 BUG 787: Links with one slash after the url protocol are invalid
2276 [http:/example.com title]
2278 <p>http:/example.com
2279 </p><p>[http:/example.com title]
2284 Bracketed external links with template-generated invalid target
2286 [{{echo|http:/example.com}} title]
2288 <p>[http:/example.com title]
2293 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2295 ''[http://example.com text'']
2296 [http://example.com '''text]'''
2297 ''Something [http://example.com in italic'']
2298 ''Something [http://example.com mixed''''', even bold]'''
2299 '''''Now [http://example.com both''''']
2301 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2302 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2303 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2304 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2305 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2311 Bug 4781: %26 in URL
2313 http://www.example.com/?title=AT%26T
2315 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2319 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2320 # % is actually legal in HTML5. Any change in output would need testing though.
2322 Bug 4781, 5267: %25 in URL
2324 http://www.example.com/?title=100%25_Bran
2326 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
2331 Bug 4781, 5267: %28, %29 in URL
2333 http://www.example.com/?title=Ben-Hur_%281959_film%29
2335 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
2341 Bug 4781: %26 in autonumber URL
2343 [http://www.example.com/?title=AT%26T]
2345 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2350 Bug 4781, 5267: %26 in autonumber URL
2352 [http://www.example.com/?title=100%25_Bran]
2354 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2359 Bug 4781, 5267: %28, %29 in autonumber URL
2361 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2363 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2369 Bug 4781: %26 in bracketed URL
2371 [http://www.example.com/?title=AT%26T link]
2373 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2378 Bug 4781, 5267: %26 in bracketed URL
2380 [http://www.example.com/?title=100%25_Bran link]
2382 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2387 Bug 4781, 5267: %28, %29 in bracketed URL
2389 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2391 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2396 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2398 Some [http://example.com/ pretty ''italics'' and stuff]!
2400 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2405 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2407 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2409 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
2414 External link containing double-single-quotes with no space separating the url from text in italics
2416 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
2418 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
2423 URL-encoding in URL functions (single parameter)
2425 {{localurl:Some page|amp=&}}
2427 <p>/index.php?title=Some_page&amp=&
2432 URL-encoding in URL functions (multiple parameters)
2434 {{localurl:Some page|q=?&=&}}
2436 <p>/index.php?title=Some_page&q=?&amp=&
2443 http://example.com/index.php?foozoid%5B%5D=bar
2445 http://example.com/index.php?foozoid[]=bar
2447 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2448 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
2453 IPv6 urls (bug 21261)
2457 http://[2404:130:0:1000::187:2]/index.php
2459 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
2464 Non-extlinks in brackets
2473 [{{echo|foo}} ''bar'']
2474 [{{echo|foo}}l's] errand
2475 [{{echo|foo}}l's errand]
2497 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2499 Normal text. '''''Bold italic text.''''' Normal text.
2501 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2502 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2508 Unclosed and unmatched quotes
2510 '''''Bold italic text '''with bold deactivated''' in between.'''''
2512 '''''Bold italic text ''with italic deactivated'' in between.'''''
2516 ..spanning two paragraphs (should not work).'''
2518 '''Bold tag left open
2520 ''Italic tag left open
2524 <!-- Unmatching number of opening, closing tags: -->
2525 '''This year''''s election ''should'' beat '''last year''''s.
2527 ''Tom'''s car is bigger than ''Susan'''s.
2529 Plain ''italic'''s plain
2531 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2532 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2533 </p><p><b>Bold text..</b>
2534 </p><p>..spanning two paragraphs (should not work).
2535 </p><p><b>Bold tag left open</b>
2536 </p><p><i>Italic tag left open</i>
2538 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2539 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2540 </p><p>Plain <i>italic'</i>s plain
2547 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2550 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2551 # is the bare minimun required by the spec, see:
2552 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2554 A table with no data.
2560 # A table with nothing but a caption is invalid XHTML, we might want to render
2561 # this as <p>caption</p>
2563 A table with nothing but a caption
2571 </caption><tr><td></td></tr></table>
2597 Simple table but with multiple dashes for row wikitext
2615 Multiplication table
2617 {| border="1" cellpadding="2"
2618 |+Multiplication table
2620 ! × !! 1 !! 2 !! 3
2638 <table border="1" cellpadding="2">
2639 <caption>Multiplication table
2686 Allow +/- in 2nd and later cells in a row
2713 |rowspan=2| Cell 2, row 1 (and 2)
2724 <td rowspan="2"> Cell 2, row 1 (and 2)
2742 {| bgcolor=#ABCDEF border=2
2747 |the original table again
2755 <table bgcolor="#ABCDEF" border="2">
2763 <td>the original table again
2769 Invalid attributes in table cell (bug 1830)
2784 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2787 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2791 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2792 <td>]" onmouseover="alert(document.cookie)">test
2801 Indented table markup mixed with indented pre content (proposed in bug 6200)
2806 Text that should be rendered preformatted
2814 <pre>Text that should be rendered preformatted
2823 Template-generated table cell attributes and cell content
2831 <td style="color: red"> Foo
2837 Table with row followed by newlines and table heading
2854 # FIXME: Preserve the attribute properly (with an empty string as value) in
2855 # the PHP parser. Parsoid implements the behavior below.
2857 Table attributes with empty value
2876 Plain link, capitalized
2880 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2885 Plain link, uncapitalized
2889 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2896 [[Main Page|The Main Page]]
2898 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2907 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2912 Broken link with fragment
2914 [[Zigzagzogzagzig#zug]]
2916 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2921 Special page link with fragment
2923 [[Special:Version#anchor]]
2925 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2930 Nonexistent special page link with fragment
2932 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2934 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2941 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2943 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2950 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2952 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
2957 Link with 3 brackets
2966 Piped link with 3 brackets
2968 [[[main page|the main page]]]
2970 <p>[[[main page|the main page]]]
2975 Link with multiple pipes
2977 [[Main Page|The|Main|Page]]
2979 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2986 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2988 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
2993 Piped link to namespace
2995 [[Meta:Disclaimers|The disclaimers]]
2997 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3004 [[Usually caused by a typo (oops}]]
3006 <p>[[Usually caused by a typo (oops}]]
3011 Link containing % (not as a hex sequence)
3015 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3020 Link containing % as a single hex sequence interpreted to char
3024 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3029 Link containing % as a double hex sequence interpreted to hex sequence
3033 <p>[[7%2525 Solution]]
3038 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3039 Example for such a section: == < ==
3041 [[%23%3c]][[%23%3e]]
3043 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3048 Link containing "<#" and ">#" as a hex sequences
3050 [[%3c%23]][[%3e%23]]
3052 <p>[[%3c%23]][[%3e%23]]
3057 Link containing double-single-quotes '' (bug 4598)
3059 [[Lista d''e paise d''o munno]]
3061 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
3066 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3068 Some [[Link|pretty ''italics'' and stuff]]!
3070 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
3075 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3077 ''Some [[Link|pretty ''italics'' and stuff]]!
3079 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
3084 Link with double quotes in title part (literal) and alternate part (interpreted)
3086 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3090 [[''Pentecoste''|Pentecoste]]
3092 [[''Pentecoste''|''Pentecoste'']]
3094 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
3095 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
3096 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
3097 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
3102 Broken image links with HTML captions (bug 39700)
3104 [[File:Nonexistent|<script></script>]]
3105 [[File:Nonexistent|100px|<script></script>]]
3106 [[File:Nonexistent|<]]
3107 [[File:Nonexistent|a<i>b</i>c]]
3109 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3110 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3111 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3112 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3119 [[http://www.example.com]]
3121 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3126 Plain link to URL with link text
3128 [[http://www.example.com Link text]]
3130 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3135 Plain link to protocol-relative URL
3137 [[//www.example.com]]
3139 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3144 Plain link to protocol-relative URL with link text
3146 [[//www.example.com Link text]]
3148 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3153 # I'm fairly sure the expected result here is wrong.
3154 # We want these to be URL links, not pseudo-pages with URLs for titles....
3155 # However the current output is also pretty screwy.
3158 # I'm changing it to match the current output--it arguably makes more
3159 # sense in the light of the test above. Old expected result was:
3160 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3162 # But I think this test is bordering on "garbage in, garbage out" anyway.
3167 Piped link to URL: [[http://www.example.com|an example URL]]
3169 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3174 BUG 2: [[page|http://url/]] should link to page, not http://url/
3176 [[Main Page|http://url/]]
3178 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3183 BUG 337: Escaped self-links should be bold
3187 [[Bug462]] [[Bug462]]
3189 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3194 Self-link to section should not be bold
3198 [[Main Page#section]]
3200 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3211 Self-link to numeric title
3217 <p><strong class="selflink">0</strong>
3222 Link to numeric-equivalent title
3228 <p><a href="/wiki/00" title="00">00</a>
3233 <nowiki> inside a link
3235 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3237 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3242 Non-breaking spaces in title
3244 [[ Main Page ]]
3246 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3251 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3257 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3262 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3268 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3273 Internal link with en linktrail: no apostrophes (bug 27473)
3279 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3284 Internal link with ca linktrail with apostrophes (bug 27473)
3290 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3295 Internal link with kaa linktrail with apostrophes (bug 27473)
3301 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3306 ### Interwiki links (see maintenance/interwiki.sql)
3310 Inline interwiki link
3312 [[MeatBall:SoftSecurity]]
3314 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3319 Inline interwiki link with empty title (bug 2372)
3323 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3328 Interwiki link encoding conversion (bug 1636)
3330 *[[Wikipedia:ro:Olteniţa]]
3331 *[[Wikipedia:ro:Olteniţa]]
3333 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
3334 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
3340 Interwiki link with fragment (bug 2130)
3342 [[MeatBall:SoftSecurity#foo]]
3344 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3359 Double interlanguage link
3370 Interlanguage link, with prefix links
3382 Double interlanguage link, with prefix links (bug 8897)
3395 Parsoid-specific test: Wikilinks with should RT properly
3401 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3419 Broken br tag sanitization
3428 Incorrecly removing closing slashes from correctly formed XHTML
3430 <br style="clear:both;" />
3432 <p><br style="clear:both;" />
3437 Failing to transform badly formed HTML into correct XHTML
3439 <br style="clear: left;">
3440 <br style="clear: right;">
3441 <br style="clear: both;">
3443 <p><br style="clear: left;" />
3444 <br style="clear: right;" />
3445 <br style="clear: both;" />
3450 Handling html with a div self-closing tag
3459 <p><div title />
3463 <p><div title=bar />
3464 <div title=bar/>
3466 <div title="bar/"></div>
3472 Handling html with a br self-closing tag
3481 <p><br title="title" />
3482 <br title="title" />
3491 Horizontal ruler (should it add that extra space?)
3505 Horizontal ruler -- 4+ dashes render hr
3514 Horizontal ruler -- eats additional dashes on the same line
3523 Horizontal ruler -- does not collaps dashes on consecutive lines
3534 Horizontal ruler -- <4 dashes render as plain text
3543 Horizontal ruler -- Supports content following dashes on same line
3552 ### Block-level elements
3575 <ol><li>Numbered list
3592 ***#Number on level 4
3594 **#Number on level 3
3595 **#Number on level 3
3599 #** Level 3, but ordered
3602 <ol><li> with numbers
3604 <ul><li> and bullets
3606 <ol><li> and numbers
3608 </li><li>bullets again
3609 <ul><li>bullet level 2
3610 <ul><li>bullet level 3
3611 <ol><li>Number on level 4
3614 </li><li>bullet level 2
3615 <ol><li>Number on level 3
3616 </li><li>Number on level 3
3619 <ol><li>number level 2
3622 <ul><li><ul><li> Level 3
3626 <ol><li><ul><li><ul><li> Level 3, but ordered
3660 Nested lists 3 (first element empty)
3673 Nested lists 4 (first element empty)
3686 Nested lists 5 (both elements empty)
3699 Nested lists 6 (both elements empty)
3712 Nested lists 7 (skip initial nesting levels)
3716 <ul><li><ul><li><ul><li> foo
3724 Nested lists 8 (multiple nesting transitions)
3732 <ul><li><ul><li> bar
3742 1. Lists with start-of-line-transparent tokens before bullets: Comments
3756 2. Lists with start-of-line-transparent tokens before bullets: Template close
3768 List items are not parsed correctly following a <pre> block (bug 785)
3774 <ul><li> <pre>foo</pre>
3775 </li><li> <pre>bar</pre>
3782 List items from template
3793 * notSOL{{inner list}}
3812 List interrupted by empty line or heading
3822 <ul><li><ul><li> bar
3825 <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>
3826 <ul><li> Another list item
3837 Magic Word: {{CURRENTDAY}}
3846 Magic Word: {{CURRENTDAY2}}
3855 Magic Word: {{CURRENTDAYNAME}}
3864 Magic Word: {{CURRENTDOW}}
3873 Magic Word: {{CURRENTMONTH}}
3882 Magic Word: {{CURRENTMONTHABBREV}}
3884 {{CURRENTMONTHABBREV}}
3891 Magic Word: {{CURRENTMONTHNAME}}
3893 {{CURRENTMONTHNAME}}
3900 Magic Word: {{CURRENTMONTHNAMEGEN}}
3902 {{CURRENTMONTHNAMEGEN}}
3909 Magic Word: {{CURRENTTIME}}
3918 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3927 Magic Word: {{CURRENTYEAR}}
3936 Magic Word: {{FULLPAGENAME}}
3938 title=[[User:Ævar Arnfjörð Bjarmason]]
3942 <p>User:Ævar Arnfjörð Bjarmason
3947 Magic Word: {{FULLPAGENAMEE}}
3949 title=[[User:Ævar Arnfjörð Bjarmason]]
3953 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3958 Magic Word: {{NAMESPACE}}
3960 title=[[User:Ævar Arnfjörð Bjarmason]]
3969 Magic Word: {{NAMESPACEE}}
3971 title=[[User:Ævar Arnfjörð Bjarmason]]
3980 Magic Word: {{NAMESPACENUMBER}}
3982 title=[[User:Ævar Arnfjörð Bjarmason]]
3991 Magic Word: {{NUMBEROFFILES}}
4000 Magic Word: {{PAGENAME}}
4002 title=[[User:Ævar Arnfjörð Bjarmason]]
4006 <p>Ævar Arnfjörð Bjarmason
4011 Magic Word: {{PAGENAME}} with metacharacters
4013 title=[['foo & bar = baz']]
4017 <p><i>'foo & bar = baz'</i>
4022 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4024 title=[[*RFC 1234 http://example.com/]]
4028 <p>*RFC 1234 http://example.com/
4033 Magic Word: {{PAGENAMEE}}
4035 title=[[User:Ævar Arnfjörð Bjarmason]]
4039 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4044 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4046 title=[[*RFC 1234 http://example.com/]]
4050 <p>*RFC_1234_http://example.com/
4055 Magic Word: {{REVISIONID}}
4064 Magic Word: {{SCRIPTPATH}}
4073 Magic Word: {{SERVER}}
4077 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4082 Magic Word: {{SERVERNAME}}
4091 Magic Word: {{SITENAME}}
4100 Namespace 1 {{ns:1}}
4109 Namespace 1 {{ns:01}}
4118 Namespace 0 {{ns:0}} (bug 4783)
4126 Namespace 0 {{ns:00}} (bug 4783)
4134 Namespace -1 {{ns:-1}}
4143 Namespace User {{ns:User}}
4152 Namespace User talk {{ns:User_talk}}
4161 Namespace User talk {{ns:uSeR tAlK}}
4170 Namespace File {{ns:File}}
4179 Namespace File {{ns:Image}}
4188 Namespace (lang=de) Benutzer {{ns:User}}
4199 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4205 <p>Benutzer Diskussion
4213 {{urlencode:hi world?!}}
4214 {{urlencode:hi world?!|WIKI}}
4215 {{urlencode:hi world?!|PATH}}
4216 {{urlencode:hi world?!|QUERY}}
4229 Magic links: internal link to RFC (bug 479)
4233 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4238 Magic links: RFC (bug 479)
4242 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4247 Magic links: ISBN (bug 1937)
4251 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4256 Magic links: PMID incorrectly converts space to underscore
4260 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4269 Nonexistent template
4271 {{thistemplatedoesnotexist}}
4273 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4280 This is a test template
4288 <p>This is a test template
4293 Template with explicit namespace
4297 <p>This is a test template
4305 This is a test template with parameter {{{param}}}
4311 {{paramtest|param=foo}}
4313 <p>This is a test template with parameter foo
4318 Template:paramtestnum
4324 Template unnamed parameter
4326 {{paramtestnum|Main Page|the main page}}
4328 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4333 Template:templatesimple
4339 Template:templateredirect
4341 #redirect [[Template:templatesimple]]
4345 Template:templateasargtestnum
4351 Template:templateasargtest
4353 {{template{{{templ}}}}}
4357 Template:templateasargtest2
4363 Template with template name as unnamed argument
4365 {{templateasargtestnum|templatesimple}}
4372 Template with template name as argument
4374 {{templateasargtest|templ=simple}}
4381 Template with template name as argument (2)
4383 {{templateasargtest2|templ=templatesimple}}
4390 Template:templateasargtestdefault
4392 {{{{{templ|templatesimple}}}}}
4402 Template with default value
4404 {{templateasargtestdefault}}
4411 Template with default value (value set)
4413 {{templateasargtestdefault|templ=templa}}
4422 {{templateredirect}}
4429 Template with argument in separate line
4431 {{ templateasargtest |
4439 Template with complex template as argument
4442 param ={{ templateasargtest |
4445 <p>This is a test template with parameter (test)
4450 Template with thumb image (with link in description)
4453 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4455 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>
4460 Template:complextemplate
4462 {{{1}}} {{paramtest|
4463 param ={{{param}}}}}
4467 Template with complex arguments
4470 param ={{ templateasargtest |
4471 templ = simple }}|[[Template:complextemplate|link]]}}
4473 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4478 BUG 553: link with two variables in a piped link
4481 |[[{{{1}}}|{{{2}}}]]
4486 <td>[[{{{1}}}|{{{2}}}]]
4492 Magic variable as template parameter
4494 {{paramtest|param={{SITENAME}}}}
4496 <p>This is a test template with parameter MediaWiki
4503 [[{{{param}}}|link]]
4507 Template parameter as link source
4509 {{linktest|param=Main Page}}
4511 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4516 Template-generated attribute string (k='v')
4518 <span {{attr_str|id|v1}}>bar</span>
4520 <p><span id="v1">bar</span>
4527 including another template, {{paramtest|param={{{arg}}}}}
4531 Template passing argument to another template
4533 {{paramtest2|arg='hmm'}}
4535 <p>including another template, This is a test template with parameter 'hmm'
4546 Template as link source
4550 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4568 Template infinite loop
4572 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4577 Template from main namespace
4596 BUG 529: Template with table, not included at beginning of line
4615 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4635 BUG 41: Template parameters shown as broken links
4644 Template with targets containing wikilinks
4648 {{[[{{echo|foo}}]]}}
4650 {{{{echo|[[foo}}]]}}
4652 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4653 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4661 ''None'' of '''this''' should be
4663 but rather passed unmodified
4667 # hmm, fix this or just deprecate msgnw and document its behavior?
4673 {{msgnw:MSGNW test}}
4675 <p>''None'' of '''this''' should be
4677 but rather passed unmodified
4685 {{int:youhavenewmessages|lots of money|not!}}
4687 <p>You have lots of money (not!).
4694 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4698 <includeonly> and <noinclude> being included
4709 <onlyinclude>Foo</onlyinclude>bar
4713 <onlyinclude> being included
4725 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4729 <onlyinclude> and <includeonly> being included
4738 <includeonly> and <noinclude> on a page
4740 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4747 <onlyinclude> on a page
4749 <onlyinclude>Foo</onlyinclude>bar
4756 Template:Includeonly section
4759 ==Includeonly section==
4765 Bug 6563: Edit link generation for section shown by <includeonly>
4767 {{includeonly section}}
4769 <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>
4770 <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>
4774 # Uses same input as the contents of [[Template:Includeonly section]]
4776 Bug 6563: Section extraction for section shown by <includeonly>
4781 ==Includeonly section==
4789 Bug 6563: Edit link generation for section suppressed by <includeonly>
4792 ==Includeonly section==
4796 <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>
4801 Bug 6563: Section extraction for section suppressed by <includeonly>
4806 ==Includeonly section==
4814 ### <includeonly> and <noinclude> in attributes
4817 0. includeonly around the entire attribute
4819 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4821 <p><span id="v2">bar</span>
4826 1. includeonly in html attr key
4828 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4830 <p><span id="foo">bar</span>
4835 2. includeonly in html attr value
4837 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4838 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4840 <p><span id="v1">bar</span>
4841 <span id="v1">bar</span>
4846 3. includeonly in part of an attr value
4848 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4850 <p><span style="color:red;">bar</span>
4855 ### Testing parsing of templates where a template arg
4856 ### has the same name as the template itself.
4866 Templates: Template Name/Arg clash: 1. Use of positional param
4875 Templates: Template Name/Arg clash: 2. Use of named param
4884 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4893 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4897 Templates: 1. Simple use
4906 Templates: 2. Inside a block tag
4908 <div>{{echo|Foo}}</div>
4915 Templates: P-wrapping: 1a. Templates on consecutive lines
4926 Templates: P-wrapping: 1b. Templates on consecutive lines
4940 Templates: P-wrapping: 1c. Templates on consecutive lines
4943 {{echo|bar}} <div>baz</div>
4952 Templates: Inline Text: 1. Multiple tmeplate uses
4954 {{echo|Foo}}bar{{echo|baz}}
4961 Templates: Inline Text: 2. Back-to-back template uses
4963 {{echo|Foo}}{{echo|bar}}
4970 Templates: Block Tags: 1. Multiple template uses
4972 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4974 <div>Foo</div><div>bar</div><div>baz</div>
4979 Templates: Block Tags: 2. Back-to-back template uses
4981 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4983 <div>Foo</div><div>bar</div>
4988 Templates: Links: 1. Simple example
4990 {{echo|[[Foo|bar]]}}
4992 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4997 Templates: Links: 2. Generation of link href
4999 [[{{echo|Foo}}|bar]]
5001 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5006 Templates: Links: 3. Generation of part of a link href
5008 [[Fo{{echo|o}}|bar]]
5010 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5015 Templates: Links: 4. Multiple templates generating link href
5017 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5019 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5024 Templates: Links: 5. Generation of link text
5026 [[Foo|{{echo|bar}}]]
5028 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5033 Templates: Links: 5. Nested templates (only outermost template should be marked)
5035 {{echo|[[{{echo|Foo}}|bar]]}}
5037 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5042 Templates: HTML Tag: 1. Generation of HTML attr. key
5044 <div {{echo|style}}="color:red;">foo</div>
5046 <div style="color:red;">foo</div>
5051 Templates: HTML Tag: 2. Generation of HTML attr. value
5053 <div style={{echo|'color:red;'}}>foo</div>
5055 <div style="color:red;">foo</div>
5060 Templates: HTML Tag: 3. Generation of HTML attr key and value
5062 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5064 <div style="color:red;">foo</div>
5069 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5071 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5073 <div title="This is a long title with just one piece templated">foo</div>
5078 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5080 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5082 <div title="This is a long title with just one piece templated">foo</div>
5087 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5089 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5091 <div title="This is a long title with just one piece templated">foo</div>
5096 Templates: HTML Tables: 1. Generating start of a HTML table
5098 {{echo|<table><tr><td>foo</td>}}</tr></table>
5100 <table><tr><td>foo</td></tr></table>
5105 Templates: HTML Tables: 2a. Generating middle of a HTML table
5107 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5109 <table><tr><td>foo</td></tr></table>
5114 Templates: HTML Tables: 2b. Generating middle of a HTML table
5116 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5118 <table><tr><td>foo</td></tr></table>
5123 Templates: HTML Tables: 3. Generating end of a HTML table
5125 <table><tr>{{echo|<td>foo</td></tr></table>}}
5127 <table><tr><td>foo</td></tr></table>
5132 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5134 {{echo|<table>}}<tr><td>foo</td></tr></table>
5136 <table><tr><td>foo</td></tr></table>
5141 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5143 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5145 <table><tr><td>foo</td></tr></table>
5150 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5152 <table><tr>{{echo|<td>}}foo</td></tr></table>
5154 <table><tr><td>foo</td></tr></table>
5159 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5161 <table><tr><td>foo{{echo|</td>}}</tr></table>
5163 <table><tr><td>foo</td></tr></table>
5168 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5170 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5172 <table><tr><td>foo</td></tr></table>
5177 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5179 <table><tr><td>foo</td></tr>{{echo|</table>}}
5181 <table><tr><td>foo</td></tr></table>
5186 Templates: Wiki Tables: 1. Fostering of entire template content
5194 <tr><td></td></tr></table>
5199 Templates: Wiki Tables: 2. Fostering of partial template content
5209 <tr><td></td></tr></table>
5214 Templates: Wiki Tables: 3. td-content via multiple templates
5217 {{echo|{{pipe}}a}}{{echo|b}}
5228 Templates: Lists: Multi-line list-items via templates
5230 *{{echo|a {{nonexistent|
5232 *{{echo|b {{nonexistent|
5235 <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>
5236 </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>
5242 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5244 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5246 <p><i>ab</i>c<i>d</i>e
5251 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5252 (PHP parser generates misnested html)
5256 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5258 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5262 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5263 (PHP parser generates misnested html)
5267 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5270 <div><i>b</i>c<i>d</i></div>
5275 Templates: Ugly nesting: 4. Divs opened/closed across templates
5277 a<div>b{{echo|c</div>d}}e
5284 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5290 |{{echo|foo</table>}}
5294 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5295 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5296 bar</span><span about="#mwt1">
5301 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5311 <td>1. {{echo|foo </table>}}</td>
5313 <td>2. {{echo|baz </table>}}</td>
5326 <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">
5327 <tbody><tr data-parsoid="{"stx":"html"}">
5328 <td data-parsoid="{"stx":"html"}">
5329 <table data-parsoid="{"stx":"html"}">
5330 <tbody><tr data-parsoid="{"stx":"html"}">
5331 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5332 <td data-parsoid="{"stx":"html"}"> bar </td>
5333 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5334 </span><span about="#mwt1">
5336 abc</span><span about="#mwt1">
5337 </span><span about="#mwt1">
5338 </span><span about="#mwt1">
5339 </span><span about="#mwt1">
5340 </span><span about="#mwt1">
5342 xyz</span><span about="#mwt1">
5343 </span><span about="#mwt1">
5348 Parser Functions: 1. Simple example
5357 Parser Functions: 2. Nested use (only outermost should be marked up)
5366 ### Pre-save transform tests
5369 pre-save transform: subst:
5375 This is a test template
5379 pre-save transform: normal template
5389 pre-save transform: nonexistent template
5393 {{thistemplatedoesnotexist}}
5395 {{thistemplatedoesnotexist}}
5400 pre-save transform: subst magic variables
5409 # This is bug 89, which I fixed. -- wtm
5411 pre-save transform: subst: templates with parameters
5415 {{subst:paramtest|param="something else"}}
5417 This is a test template with parameter "something else"
5423 <nowiki>'''not wiki'''</nowiki>
5427 pre-save transform: nowiki in subst (bug 1188)
5431 {{subst:nowikitest}}
5433 <nowiki>'''not wiki'''</nowiki>
5438 Template:commenttest
5440 This template has <!-- a comment --> in it.
5444 pre-save transform: comment in subst (bug 1936)
5448 {{subst:commenttest}}
5450 This template has <!-- a comment --> in it.
5454 pre-save transform: unclosed tag
5458 <nowiki>'''not wiki'''
5460 <nowiki>'''not wiki'''
5464 pre-save transform: mixed tag case
5468 <NOwiki>'''not wiki'''</noWIKI>
5470 <NOwiki>'''not wiki'''</noWIKI>
5474 pre-save transform: unclosed comment in <nowiki>
5478 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5480 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5486 <span onmouseover="alert('crap')">Oh no</span>
5490 (confirming safety of fix for subst bug 1936)
5492 {{Template:dangerous}}
5494 <p><span>Oh no</span>
5499 pre-save transform: comment containing gallery (bug 5024)
5503 <!-- <gallery>data</gallery> -->
5505 <!-- <gallery>data</gallery> -->
5509 pre-save transform: comment containing extension
5513 <!-- <tag>data</tag> -->
5515 <!-- <tag>data</tag> -->
5519 pre-save transform: comment containing nowiki
5523 <!-- <nowiki>data</nowiki> -->
5525 <!-- <nowiki>data</nowiki> -->
5529 pre-save transform: <noinclude> in subst (bug 3298)
5539 pre-save transform: <onlyinclude> in subst (bug 3298)
5551 {{<includeonly>subst:</includeonly>Includes}}
5555 Template:SafeSubstTest
5557 {{<includeonly>safesubst:</includeonly>Includes}}
5561 bug 22297: safesubst: works during PST
5565 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5571 bug 22297: safesubst: works during normal parse
5580 subst: does not work during normal parse
5584 <p>{{subst:Includes}}
5589 pre-save transform: context links ("pipe trick")
5593 [[Article (context)|]]
5596 [[Bar:Article (context)|]]
5597 [[:Bar:Article (context)|]]
5599 [[|Article (context)]]
5603 [[Article (context)|Article]]
5604 [[Bar:Article|Article]]
5605 [[:Bar:Article|Article]]
5606 [[Bar:Article (context)|Article]]
5607 [[:Bar:Article (context)|Article]]
5609 [[Article (context)]]
5610 [[Bar:X (Y) Z|X (Y) Z]]
5611 [[:Bar:X (Y) Z|X (Y) Z]]
5615 pre-save transform: context links ("pipe trick") with interwiki prefix
5619 [[interwiki:Article|]]
5620 [[:interwiki:Article|]]
5621 [[interwiki:Bar:Article|]]
5622 [[:interwiki:Bar:Article|]]
5624 [[interwiki:Article|Article]]
5625 [[:interwiki:Article|Article]]
5626 [[interwiki:Bar:Article|Bar:Article]]
5627 [[:interwiki:Bar:Article|Bar:Article]]
5631 pre-save transform: context links ("pipe trick") with parens in title
5633 pst title=[[Somearticle (context)]]
5637 [[Article (context)|Article]]
5641 pre-save transform: context links ("pipe trick") with comma in title
5643 pst title=[[Someplace, Somewhere]]
5646 [[Otherplace, Elsewhere|]]
5647 [[Otherplace, Elsewhere, Anywhere|]]
5649 [[Otherplace, Somewhere|Otherplace]]
5650 [[Otherplace, Elsewhere|Otherplace]]
5651 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5655 pre-save transform: context links ("pipe trick") with parens and comma
5657 pst title=[[Someplace (IGNORED), Somewhere]]
5660 [[Otherplace (place), Elsewhere|]]
5662 [[Otherplace, Somewhere|Otherplace]]
5663 [[Otherplace (place), Elsewhere|Otherplace]]
5667 pre-save transform: context links ("pipe trick") with comma and parens
5669 pst title=[[Who, me? (context)]]
5672 [[Me, Myself, and I (1937 song)|]]
5674 [[Yes, you. (context)|Yes, you.]]
5675 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5679 pre-save transform: context links ("pipe trick") with namespace
5681 pst title=[[Ns:Somearticle]]
5685 [[Ns:Article|Article]]
5689 pre-save transform: context links ("pipe trick") with namespace and parens
5691 pst title=[[Ns:Somearticle (context)]]
5695 [[Ns:Article (context)|Article]]
5699 pre-save transform: context links ("pipe trick") with namespace and comma
5701 pst title=[[Ns:Somearticle, Context, Whatever]]
5705 [[Ns:Article, Context, Whatever|Article]]
5709 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5711 pst title=[[Ns:Somearticle, Context (context)]]
5715 [[Ns:Article (context)|Article]]
5719 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5721 pst title=[[Ns:Somearticle (IGNORED), Context]]
5725 [[Ns:Article, Context|Article]]
5729 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5733 [[Article(context)|]]
5734 [[Bar:Article(context)|]]
5735 [[:Bar:Article(context)|]]
5736 [[|Article(context)]]
5740 [[Article(context)|Article]]
5741 [[Bar:Article(context)|Article]]
5742 [[:Bar:Article(context)|Article]]
5743 [[Article(context)]]
5745 [[:Bar:X(Y)Z|X(Y)Z]]
5749 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5753 [[Article (context)|]]
5754 [[Bar:Article (context)|]]
5755 [[:Bar:Article (context)|]]
5756 [[|Article (context)]]
5760 [[Article (context)|Article]]
5761 [[Bar:Article (context)|Article]]
5762 [[:Bar:Article (context)|Article]]
5763 [[Article (context)]]
5764 [[Bar:X (Y) Z|X (Y) Z]]
5765 [[:Bar:X (Y) Z|X (Y) Z]]
5769 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5773 [[Article(context)|]]
5774 [[Bar:Article(context)|]]
5775 [[:Bar:Article(context)|]]
5776 [[|Article(context)]]
5780 [[Article(context)|Article]]
5781 [[Bar:Article(context)|Article]]
5782 [[:Bar:Article(context)|Article]]
5783 [[Article(context)]]
5785 [[:Bar:X(Y)Z|X(Y)Z]]
5789 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5793 [[Article (context), context|]]
5794 [[Article (context),context|]]
5795 [[Bar:Article (context), context|]]
5796 [[Bar:Article (context),context|]]
5797 [[:Bar:Article (context), context|]]
5798 [[:Bar:Article (context),context|]]
5800 [[Article (context), context|Article]]
5801 [[Article (context),context|Article]]
5802 [[Bar:Article (context), context|Article]]
5803 [[Bar:Article (context),context|Article]]
5804 [[:Bar:Article (context), context|Article]]
5805 [[:Bar:Article (context),context|Article]]
5809 pre-save transform: trim trailing empty lines
5813 Empty lines are trimmed
5819 Empty lines are trimmed
5823 pre-save transform: Signature expansion
5828 * <noinclude>~~~</noinclude>
5829 * <includeonly>~~~</includeonly>
5830 * <onlyinclude>~~~</onlyinclude>
5832 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5833 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5834 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5835 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5840 pre-save transform: Signature expansion in nowiki tags (bug 93)
5846 <nowiki>~~~~</nowiki>
5848 <includeonly><nowiki>~~~~</nowiki></includeonly>
5850 <noinclude><nowiki>~~~~</nowiki></noinclude>
5852 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5854 {{subst:Foo}} shall be converted to FOO
5856 As well as inside noinclude/onlyinclude
5857 <noinclude>{{subst:Foo}}</noinclude>
5858 <onlyinclude>{{subst:Foo}}</onlyinclude>
5860 But not inside includeonly
5861 <includeonly>{{subst:Foo}}</includeonly>
5865 <nowiki>~~~~</nowiki>
5867 <includeonly><nowiki>~~~~</nowiki></includeonly>
5869 <noinclude><nowiki>~~~~</nowiki></noinclude>
5871 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5873 FOO shall be converted to FOO
5875 As well as inside noinclude/onlyinclude
5876 <noinclude>FOO</noinclude>
5877 <onlyinclude>FOO</onlyinclude>
5879 But not inside includeonly
5880 <includeonly>{{subst:Foo}}</includeonly>
5884 ### Message transform tests
5887 message transform: magic variables
5897 message transform: should not transform wiki markup
5907 message transform: <noinclude> in transcluded template (bug 4926)
5917 message transform: <onlyinclude> in transcluded template (bug 4926)
5927 {{#special:}} page name, known
5931 {{#special:Recentchanges}}
5933 Special:RecentChanges
5937 {{#special:}} page name with subpage, known
5941 {{#special:Recentchanges/param}}
5943 Special:RecentChanges/param
5947 {{#special:}} page name, unknown
5951 {{#special:foobarnonexistent}}
5953 No such special page
5957 {{#speciale:}} page name, known
5961 {{#speciale:Recentchanges}}
5963 Special:RecentChanges
5967 {{#speciale:}} page name with subpage, known
5971 {{#speciale:Recentchanges/param}}
5973 Special:RecentChanges/param
5977 {{#speciale:}} page name, unknown
5981 {{#speciale:foobarnonexistent}}
5983 No_such_special_page
5992 [[Image:foobar.jpg]]
5994 <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>
6001 [[Image:foobar.jpg|right]]
6003 <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>
6008 Simple image (using File: namespace, now canonical)
6012 <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>
6019 [[Image:foobar.jpg|right|Caption text]]
6021 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
6026 Image with empty attribute
6028 [[Image:foobar.jpg|right||Caption text]]
6030 <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>
6035 Image with link tails
6037 123[[Image:foobar.jpg]]456
6038 123[[Image:foobar.jpg|right]]456
6039 123[[Image:foobar.jpg|thumb]]456
6041 <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
6043 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
6044 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
6049 Image with multiple captions -- only last one is accepted
6051 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6053 <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>
6058 Image with link parameter, wiki target
6060 [[Image:foobar.jpg|link=Target page]]
6062 <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>
6067 Image with link parameter, URL target
6069 [[Image:foobar.jpg|link=http://example.com/]]
6071 <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>
6076 Image with link parameter, wgExternalLinkTarget
6078 [[Image:foobar.jpg|link=http://example.com/]]
6080 wgExternalLinkTarget='foobar'
6082 <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>
6087 Image with link parameter, wgNoFollowLinks set to false
6089 [[Image:foobar.jpg|link=http://example.com/]]
6091 wgNoFollowLinks=false
6093 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6098 Image with link parameter, wgNoFollowDomainExceptions
6100 [[Image:foobar.jpg|link=http://example.com/]]
6102 wgNoFollowDomainExceptions='example.com'
6104 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6109 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6111 [[Image:foobar.jpg|link=http://example.com/|Title]]
6113 wgExternalLinkTarget='foobar'
6115 <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>
6120 Image with empty link parameter
6122 [[Image:foobar.jpg|link=]]
6124 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6129 Image with link parameter (wiki target) and unnamed parameter
6131 [[Image:foobar.jpg|link=Target page|Title]]
6133 <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>
6138 Image with link parameter (URL target) and unnamed parameter
6140 [[Image:foobar.jpg|link=http://example.com/|Title]]
6142 <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>
6147 Thumbnail image with link parameter
6149 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6151 <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>
6156 Image with frame and link
6158 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6160 <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>
6165 Image with frame and link and explicit alt
6167 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6169 <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>
6174 Image with wiki markup in implicit alt
6176 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6178 <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>
6183 Image with wiki markup in explicit alt
6185 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6187 <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>
6192 Link to image page- image page normally doesn't exists, hence edit link
6193 Add test with existing image page
6194 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6198 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6203 bug 18784 Link to non-existent image page with caption should use caption as link text
6205 [[:Image:test|caption]]
6207 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6212 Frameless image caption with a free URL
6214 [[Image:foobar.jpg|http://example.com]]
6216 <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>
6221 Thumbnail image caption with a free URL
6223 [[Image:foobar.jpg|thumb|http://example.com]]
6225 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
6230 Thumbnail image caption with a free URL and explicit alt
6232 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6234 <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>
6239 BUG 1887: A ISBN with a thumbnail
6241 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6243 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
6248 BUG 1887: A RFC with a thumbnail
6250 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6252 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
6257 BUG 1887: A mailto link with a thumbnail
6259 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6261 <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>
6265 # Pending resolution to bug 368
6267 BUG 648: Frameless image caption with a link
6269 [[Image:foobar.jpg|text with a [[link]] in it]]
6271 <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>
6276 BUG 648: Frameless image caption with a link (suffix)
6278 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6280 <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>
6285 BUG 648: Frameless image caption with an interwiki link
6287 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6289 <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>
6294 BUG 648: Frameless image caption with a piped interwiki link
6296 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6298 <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>
6303 Escape HTML special chars in image alt text
6305 [[Image:foobar.jpg|& < > "]]
6307 <p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6312 BUG 499: Alt text should have Ӓ, not &1234;
6314 [[Image:foobar.jpg|♀]]
6316 <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>
6321 Broken image caption with link
6323 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6325 <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.
6330 Image caption containing another image
6332 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6334 <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>
6339 Image caption containing a newline
6341 [[Image:Foobar.jpg|This
6344 <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>
6350 Bug 3090: External links other than http: in image captions
6352 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6354 <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>
6361 [[Image:foobar.jpg|a|class=b]]
6363 <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>
6370 #REDIRECT [[File:Barfoo.jpg]]
6376 [[Image:Barfoo.jpg]]
6378 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6383 Missing image with uploads disabled
6387 [[Image:Foobaz.jpg]]
6389 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6398 Subpage test/subpage
6406 subpage title=[[Subpage test]]
6410 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6415 Subpage noslash link
6417 subpage title=[[Subpage test]]
6421 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6430 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6435 BUG 561: {{/Subpage}}
6437 subpage title=[[Page]]
6441 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6449 Category:MediaWiki User's Guide
6457 [[:Category:MediaWiki User's Guide]]
6459 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6468 [[Category:MediaWiki User's Guide]]
6470 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6474 PAGESINCATEGORY invalid title fatal (r33546 fix)
6476 {{PAGESINCATEGORY:<bogus>}}
6483 Category with different sort key
6487 [[Category:MediaWiki User's Guide|Foo]]
6489 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6493 Category with identical sort key
6497 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6499 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6503 Category with empty sort key
6508 [[Category:MediaWiki User's Guide|]]
6510 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6514 Category with empty sort key and parentheses
6519 [[Category:Foo (bar)|]]
6521 [[Category:Foo (bar)|Foo]]
6525 Category with link tail
6530 123[[Category:Foo]]456
6532 123[[Category:Foo]]456
6536 Category with template
6541 [[Category:{{echo|Foo}}]]
6543 [[Category:{{echo|Foo}}]]
6547 Category with template in sort key
6552 [[Category:Foo|{{echo|Bar}}]]
6554 [[Category:Foo|{{echo|Bar}}]]
6558 Category with template in sort key and title
6563 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6565 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6569 Category / paragraph interactions
6571 Foo [[Category:Baz]] Bar
6573 Foo [[Category:Baz]]
6581 [[Category:Baz]] Bar
6594 {{echo|[[Category:Baz]]}}
6609 ### Inter-language links
6612 Inter-language links
6618 [[zh:食品]]
6620 es:Alimento fr:Nourriture zh:食品
6624 Duplicate interlanguage links (bug 24502)
6640 Basic section headings
6647 ===Smaller headline===
6650 <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>
6653 <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>
6656 <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>
6662 Section headings with TOC
6665 === Subheadline 1 ===
6666 ===== Skipping a level =====
6667 ====== Skipping a level ======
6671 ===Another headline===
6673 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6675 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6677 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6679 <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>
6681 <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>
6688 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6690 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6695 <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>
6696 <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>
6697 <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>
6698 <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>
6699 <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>
6702 <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>
6706 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6708 Handling of sections up to level 6 and beyond
6711 == Level 2 Heading==
6712 === Level 3 Heading===
6713 ==== Level 4 Heading====
6714 ===== Level 5 Heading=====
6715 ====== Level 6 Heading======
6716 ======= Level 7 Heading=======
6717 ======== Level 8 Heading========
6718 ========= Level 9 Heading=========
6719 ========== Level 10 Heading==========
6721 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6723 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6725 <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>
6727 <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>
6729 <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>
6731 <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>
6733 <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>
6734 <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>
6735 <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>
6736 <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>
6737 <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>
6750 <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>
6751 <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>
6752 <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>
6753 <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>
6754 <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>
6755 <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>
6756 <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>
6757 <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>
6758 <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>
6759 <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>
6764 TOC regression (bug 9764)
6768 ==== title 1.1.1 ====
6773 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6775 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6777 <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>
6779 <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>
6782 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
6785 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6787 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
6792 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
6793 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
6794 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
6795 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
6796 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
6797 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
6802 TOC with wgMaxTocLevel=3 (bug 6204)
6808 ==== title 1.1.1 ====
6813 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6815 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6817 <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>
6818 <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>
6821 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6823 <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>
6828 <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>
6829 <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>
6830 <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>
6831 <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>
6832 <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>
6833 <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>
6838 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6844 ====Section 1.1.1====
6845 ====Section 1.1.1.1====
6848 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6850 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6852 <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>
6855 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6858 <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>
6859 <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>
6860 <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>
6861 <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>
6862 <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>
6868 Resolving duplicate section names
6873 <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>
6874 <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>
6879 Resolving duplicate section names with differing case (bug 10721)
6884 <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>
6885 <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>
6897 Template with sections, __NOTOC__
6904 <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>
6905 <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>
6906 <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>
6907 <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>
6912 __NOEDITSECTION__ keyword
6918 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6919 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6924 Link inside a section heading
6926 ==Section with a [[Main Page|link]] in it==
6928 <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>
6933 TOC regression (bug 12077)
6940 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6942 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6944 <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>
6947 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6950 <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>
6951 <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>
6952 <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>
6957 BUG 1219 URL next to image (good)
6959 http://example.com [[Image:foobar.jpg]]
6961 <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>
6966 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6969 The line above must have a trailing space!
6972 But just in case it doesn't...
6974 <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>
6975 <p>The line above must have a trailing space!
6977 <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>
6978 <p>But just in case it doesn't...
6983 Header with special characters (bug 25462)
6985 The tooltips shall not show entities to the user (ie. be double escaped)
7002 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7004 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7006 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7007 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7008 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7009 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7010 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7013 <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>
7016 <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>
7019 <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>
7022 <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>
7025 <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>
7031 Headers with excess '=' characters
7032 (Are similar tests necessary beyond the 1st level?)
7036 =''italic'' heading==
7037 ==''italic'' heading=
7039 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7041 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7042 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7043 <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>
7044 <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>
7047 <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>
7048 <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>
7049 <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>
7050 <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>
7055 BUG 1219 URL next to image (broken)
7057 http://example.com[[Image:foobar.jpg]]
7059 <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>
7064 Bug 1186 news: in the middle of text
7066 http://en.wikinews.org/wiki/Wikinews:Workplace
7068 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7074 Namespaced link must have a title
7083 Namespaced link must have a title (bad fragment version)
7085 [[Project:#fragment]]
7087 <p>[[Project:#fragment]]
7093 div with no attributes
7095 <div>HTML rocks</div>
7097 <div>HTML rocks</div>
7102 div with double-quoted attribute
7104 <div id="rock">HTML rocks</div>
7106 <div id="rock">HTML rocks</div>
7111 div with single-quoted attribute
7113 <div id='rock'>HTML rocks</div>
7115 <div id="rock">HTML rocks</div>
7120 div with unquoted attribute
7122 <div id=rock>HTML rocks</div>
7124 <div id="rock">HTML rocks</div>
7129 div with illegal double attributes
7131 <div id="a" id="b">HTML rocks</div>
7133 <div id="b">HTML rocks</div>
7137 # FIXME: produce empty string instead of "class" in the PHP parser, following
7140 div with empty attribute value, space before equals
7144 <div class =>HTML rocks</div>
7146 <div class="">HTML rocks</div>
7150 # This it very inconsistent in the PHP parser: it returns
7151 # class="class" if there is a space between the name and the equal sign (see
7152 # 'div with empty attribute value, space before equals'), but strips the
7153 # attribute completely if the space is missing. We hope that not much content
7154 # depends on this, so are implementing the behavior below in Parsoid for
7155 # consistencies' sake. Disabled for the PHP parser.
7156 # FIXME: fix this behavior in the PHP parser?
7158 div with empty attribute value, no space before equals
7162 <div class=>HTML rocks</div>
7164 <div class="">HTML rocks</div>
7169 HTML multiple attributes correction
7171 <p class="error" class="awesome">Awesome!</p>
7173 <p class="awesome">Awesome!</p>
7178 Table multiple attributes correction
7181 !+ class="error" class="awesome"| status
7186 <th class="awesome"> status
7194 <DIV ID="x">HTML ROCKS</DIV>
7196 <div id="x">HTML ROCKS</div>
7202 text with amp in the middle of nowhere
7206 <p>Remember AT&T?
7211 text with character entity: eacute
7213 I always thought é was a cute letter.
7215 <p>I always thought é was a cute letter.
7220 text with undefined character entity: xacute
7222 I always thought &xacute; was a cute letter.
7224 <p>I always thought &xacute; was a cute letter.
7236 [[Media:Foobar.jpg]]
7238 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7243 Media link with text
7245 [[Media:Foobar.jpg|A neat file to look at]]
7247 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7251 # FIXME: this is still bad HTML tag nesting
7253 Media link with nasty text
7254 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7256 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7258 <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>
7263 Media link to nonexistent file (bug 1702)
7265 [[Media:No such.jpg]]
7267 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7272 Image link to nonexistent file (bug 1850 - good)
7274 [[Image:No such.jpg]]
7276 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7281 :Image link to nonexistent file (bug 1850 - bad)
7283 [[:Image:No such.jpg]]
7285 <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>
7292 Character reference normalization in link text (bug 1938)
7294 [[Main Page|this&that]]
7296 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7303 Test for unicode normalization
7305 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7309 (bug 19451) Links should refer to the normalized form.
7317 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7318 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7319 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7320 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7321 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7326 Empty attribute crash test (bug 2067)
7328 <font color="">foo</font>
7330 <p><font color="">foo</font>
7335 Empty attribute crash test single-quotes (bug 2067)
7337 <font color=''>foo</font>
7339 <p><font color="">foo</font>
7344 Attribute test: equals, then nothing
7346 <font color=>foo</font>
7353 Attribute test: unquoted value
7355 <font color=x>foo</font>
7357 <p><font color="x">foo</font>
7362 Attribute test: unquoted but illegal value (hash)
7364 <font color=#x>foo</font>
7366 <p><font color="#x">foo</font>
7371 Attribute test: no value
7373 <font color>foo</font>
7375 <p><font color="color">foo</font>
7380 Bug 2095: link with three closing brackets
7384 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7389 Bug 2095: link with pipe and three closing brackets
7393 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7398 Bug 2095: link with pipe and three closing brackets, version 2
7400 [[Main Page|[http://example.com/]]]
7402 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7412 Template:Dangerous attribute
7414 " onmouseover="alert(document.cookie)
7418 Template:Dangerous style attribute
7420 border-size: expression(alert(document.cookie))
7426 <div style="float: right; {{{1}}}">Magic div</div>
7430 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7432 <div title="{{test}}"></div>
7434 <div title="This is a test template"></div>
7439 Bug 2304: HTML attribute safety (dangerous template; 2309)
7441 <div title="{{dangerous attribute}}"></div>
7443 <div title=""></div>
7448 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7450 <div style="{{dangerous style attribute}}"></div>
7452 <div style="/* insecure input */"></div>
7457 Bug 2304: HTML attribute safety (safe parameter; 2309)
7459 {{div style|width: 200px}}
7461 <div style="float: right; width: 200px">Magic div</div>
7466 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7468 {{div style|width: expression(alert(document.cookie))}}
7470 <div style="/* insecure input */">Magic div</div>
7475 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7477 {{div style|"><script>alert(document.cookie)</script>}}
7479 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7484 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7486 {{div style|" ><script>alert(document.cookie)</script>}}
7488 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7493 Bug 2304: HTML attribute safety (link)
7495 <div title="[[Main Page]]"></div>
7497 <div title="[[Main Page]]"></div>
7502 Bug 2304: HTML attribute safety (italics)
7504 <div title="''foobar''"></div>
7506 <div title="''foobar''"></div>
7511 Bug 2304: HTML attribute safety (bold)
7513 <div title="'''foobar'''"></div>
7515 <div title="'''foobar'''"></div>
7521 Bug 2304: HTML attribute safety (ISBN)
7523 <div title="ISBN 1234567890"></div>
7525 <div title="ISBN 1234567890"></div>
7530 Bug 2304: HTML attribute safety (RFC)
7532 <div title="RFC 1234"></div>
7534 <div title="RFC 1234"></div>
7539 Bug 2304: HTML attribute safety (PMID)
7541 <div title="PMID 1234567890"></div>
7543 <div title="PMID 1234567890"></div>
7548 Bug 2304: HTML attribute safety (web link)
7550 <div title="http://example.com/"></div>
7552 <div title="http://example.com/"></div>
7557 Bug 2304: HTML attribute safety (named web link)
7559 <div title="[http://example.com/ link]"></div>
7561 <div title="[http://example.com/ link]"></div>
7566 Bug 3244: HTML attribute safety (extension; safe)
7568 <div style="<nowiki>background:blue</nowiki>"></div>
7570 <div style="background:blue"></div>
7575 Bug 3244: HTML attribute safety (extension; unsafe)
7577 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7579 <div style="/* insecure input */"></div>
7583 # More MSIE fun discovered by Tom Gilder
7586 MSIE CSS safety test: spurious slash
7588 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7590 <div style="/* insecure input */">evil</div>
7595 MSIE CSS safety test: hex code
7597 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7599 <div style="/* insecure input */">evil</div>
7604 MSIE CSS safety test: comment in url
7606 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7608 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7613 MSIE CSS safety test: comment in expression
7615 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7617 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7623 Table attribute legitimate extension
7626 !+ style="<nowiki>color:blue</nowiki>"| status
7631 <th style="color:blue"> status
7637 Table attribute safety
7640 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7645 <th style="/* insecure input */"> status
7651 CSS line continuation 1
7653 <div style="background-image: u\ rl(test.jpg);"></div>
7655 <div style="/* insecure input */"></div>
7660 CSS line continuation 2
7662 <div style="background-image: u\ rl(test.jpg); "></div>
7664 <div style="/* insecure input */"></div>
7675 Expansion of multi-line templates in attribute values (bug 6255)
7677 <div style="background: {{identity|#00FF00}}">-</div>
7679 <div style="background: #00FF00">-</div>
7685 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7687 <div style="background:
7690 <div style="background: #00FF00">-</div>
7695 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7697 <div style="background: #00FF00">-</div>
7699 <div style="background: #00FF00">-</div>
7704 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7707 Parser hook: empty input
7720 Parser hook: empty input using terminated empty elements
7733 Parser hook: empty input using terminated empty elements (space before)
7746 Parser hook: basic input
7760 Parser hook: case insensitive
7774 Parser hook: case insensitive, redux
7787 Parser hook: nested tags
7791 <tag><tag></tag></tag>
7802 Parser hook: basic arguments
7804 <tag width=200 height = "100" depth = '50' square></tag>
7812 'square' => 'square',
7819 Parser hook: argument containing a forward slash (bug 5344)
7821 <tag filename='/tmp/bla'></tag>
7826 'filename' => '/tmp/bla',
7833 Parser hook: empty input using terminated empty elements (bug 2374)
7846 # </tag> should be output literally since there is no matching tag that begins it
7848 Parser hook: basic arguments using terminated empty elements (bug 2374)
7850 <tag width=200 height = "100" depth = '50' square/>
7860 'square' => 'square',
7869 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7873 Parser hook: static parser hook not inside a comment
7875 <statictag>hello, world</statictag>
7876 <statictag action=flush/>
7884 Parser hook: static parser hook inside a comment
7886 <!-- <statictag>hello, world</statictag> -->
7887 <statictag action=flush/>
7893 # Nested template calls; this case was broken by Parser.php rev 1.506,
7897 Template:One-parameter
7899 (My parameter is: {{{1}}})
7903 Template:Map-one-parameter
7909 Nested template calls
7911 {{Map-one-parameter|One-parameter|param}}
7913 <p>(My parameter is: param)
7922 Sanitizer: Closing of open tags
7924 <s></s><table></table>
7926 <s></s><table></table>
7931 Sanitizer: Closing of open but not closed tags
7940 Sanitizer: Closing of closed but not open tags
7949 Sanitizer: Closing of closed but not open table tags
7951 Table not started</td></tr></table>
7953 <p>Table not started</td></tr></table>
7958 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7960 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7962 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7967 Sanitizer: Validating the contents of the id attribute (bug 4515)
7973 Something, but definitely not <br id="9" />...
7977 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7981 <br id="foo" /><br id="foo" />
7983 Something need to be done. foo-2 ?
7987 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
7990 <meta itemprop="hello" content="world">
7991 <meta http-equiv="refresh" content="5">
7992 <meta itemprop="hello" http-equiv="refresh" content="5">
7993 <link itemprop="hello" href="{{SERVER}}">
7994 <link rel="stylesheet" href="{{SERVER}}">
7995 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
7998 <div itemscope="itemscope">
7999 <p> <meta itemprop="hello" content="world" />
8000 <meta http-equiv="refresh" content="5">
8001 <meta itemprop="hello" content="5" />
8003 <link itemprop="hello" href="http://Britney-Spears" />
8004 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8005 <link itemprop="hello" href="http://Britney-Spears" />
8011 Language converter: output gets cut off unexpectedly (bug 5757)
8015 this bit is safe: }-
8017 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8019 then we get cut off here: }-
8021 all additional text is vanished
8023 <p>this bit is safe: }-
8024 </p><p>but if we add a conversion instance: xxx
8025 </p><p>then we get cut off here: }-
8026 </p><p>all additional text is vanished
8031 Self closed html pairs (bug 5487)
8034 <center><font id="bug" />Centered text</center>
8035 <div><font id="bug2" />In div text</div>
8037 <center><font id="bug" />Centered text</center>
8038 <div><font id="bug2" />In div text</div>
8047 Punctuation: nbsp before exclamation
8051 <p>C'est grave !
8056 Punctuation: CSS !important (bug 11874)
8058 <div style="width:50% !important">important</div>
8060 <div style="width:50% !important">important</div>
8065 Punctuation: CSS ! important (bug 11874; with space after)
8067 <div style="width:50% ! important">important</div>
8069 <div style="width:50% ! important">important</div>
8075 HTML bullet list, closed tags (bug 5497)
8090 HTML bullet list, unclosed tags (bug 5497)
8107 HTML ordered list, closed tags (bug 5497)
8122 HTML ordered list, unclosed tags (bug 5497)
8139 HTML nested bullet list, closed tags (bug 5497)
8164 HTML nested bullet list, open tags (bug 5497)
8189 HTML nested ordered list, closed tags (bug 5497)
8214 HTML nested ordered list, open tags (bug 5497)
8239 HTML ordered list item with parameters oddity
8241 <ol><li id="fragment">One</li></ol>
8243 <ol><li id="fragment">One</li></ol>
8248 bug 5918: autonumbering
8250 [http://first/] [http://second] [ftp://ftp]
8254 [mailto:enclosed@mail.tld With target]
8256 [mailto:enclosed@mail.tld]
8258 mailto:inline@mail.tld
8260 <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>
8261 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8262 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8263 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8264 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8270 # Security and HTML correctness
8271 # From Nick Jenkins' fuzz testing
8275 Fuzz testing: Parser13
8290 Fuzz testing: Parser14
8295 <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>
8296 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8298 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8305 Fuzz testing: Parser14-table
8310 <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>
8311 <table style="__TOC__">
8317 # Known to produce bogus xml (extra </td>)
8319 Fuzz testing: Parser16
8339 Fuzz testing: Parser21
8342 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8347 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8357 Fuzz testing: Parser22
8359 http://===r:::https://b
8363 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8371 # Known to produce bad XML for now
8373 Fuzz testing: Parser24
8380 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8381 <br style="onmouseover='alert(document.cookie);' " />
8383 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8388 <u class="|">}}}} >
8389 <br style="onmouseover='alert(document.cookie);'" />
8391 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8400 # Note: the current result listed for this is not what the original one was,
8401 # but the original bug was JavaScript injection, which is fixed in any case.
8402 # It's not clear that the original result listed was any more correct than the
8403 # current one. Original result:
8406 # <li class="||">
8407 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8409 Fuzz testing: Parser25 (bug 6055)
8415 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8417 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8422 Fuzz testing: URL adjacent extension (with space, clean)
8425 http://example.com <nowiki>junk</nowiki>
8427 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8432 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8435 http://example.com<nowiki>junk</nowiki>
8437 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8442 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8445 http://example.com<pre>junk</pre>
8447 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8452 Fuzz testing: image with bogus manual thumbnail
8454 [[Image:foobar.jpg|thumbnail= ]]
8456 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8461 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8463 <pre dir=" "></pre>
8465 <pre dir=" "></pre>
8470 Parsing optional HTML elements (Bug 6171)
8475 <td> Some tabular data</td>
8476 <td> More tabular data ...
8477 <td> And yet som tabular data</td>
8483 <td> Some tabular data</td>
8484 <td> More tabular data ...
8485 </td><td> And yet som tabular data</td>
8492 Correct handling of <td>, <tr> (Bug 6171)
8497 <td> Some tabular data</td>
8498 <td> More tabular data ...</td>
8499 <td> And yet som tabular data</td>
8505 <td> Some tabular data</td>
8506 <td> More tabular data ...</td>
8507 <td> And yet som tabular data</td>
8515 Parsing crashing regression (fr:JavaScript)
8519 <p></body></x>
8524 Inline wiki vs wiki block nesting
8530 <p><b>Bold paragraph</b>
8531 </p><p>New wiki paragraph
8536 Inline HTML vs wiki block nesting
8544 <p><b>Bold paragraph</b>
8545 </p><p>New wiki paragraph
8549 # Original result was this:
8550 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8552 # While that might be marginally more intuitive, maybe, the six-apostrophe
8553 # construct is clearly pathological and the result stated here (which is what
8554 # the parser actually does) is about as reasonable as anything.
8556 Mixing markup for italics and bold
8559 '''bold''''''bold''bolditalics'''''
8561 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8569 Article for special page transclusion test
8573 Special page transclusion
8576 {{Special:Prefixindex/Xyzzyx}}
8578 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8583 Special page transclusion twice (bug 5021)
8586 {{Special:Prefixindex/Xyzzyx}}
8587 {{Special:Prefixindex/Xyzzyx}}
8589 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8590 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8595 Transclusion of default MediaWiki message
8597 {{MediaWiki:Mainpage}}
8604 Transclusion of nonexistent MediaWiki message
8606 {{MediaWiki:Mainpagexxx}}
8608 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8613 Transclusion of MediaWiki message with underscore
8615 {{MediaWiki:history_short}}
8622 Transclusion of MediaWiki message with space
8624 {{MediaWiki:history short}}
8631 Invalid header with following text
8641 Section extraction test (section 0)
8661 Section extraction test (section 1)
8683 Section extraction test (section 2)
8704 Section extraction test (section 3)
8724 Section extraction test (section 4)
8748 Section extraction test (section 5)
8768 Section extraction test (section 6)
8789 Section extraction test (section 7)
8809 Section extraction test (section 8)
8829 Section extraction test (section 9)
8850 Section extraction test (section 10)
8870 Section extraction test (nonexistent section 11)
8889 Section extraction test with bogus heading (section 1)
8894 ==bogus== not a legal section
8898 ==bogus== not a legal section
8902 Section extraction test with bogus heading (section 2)
8907 ==bogus== not a legal section
8914 Section extraction test with comment after heading (section 1)
8926 Section extraction test with comment after heading (section 2)
8938 Section extraction test with bogus <nowiki> heading (section 1)
8943 ==bogus== <nowiki>not a legal section</nowiki>
8947 ==bogus== <nowiki>not a legal section</nowiki>
8951 Section extraction test with bogus <nowiki> heading (section 2)
8956 ==bogus== <nowiki>not a legal section</nowiki>
8963 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8964 # instead of respecting commented sections
8966 Section extraction prefixed by comment (section 1)
8977 Section extraction prefixed by comment (section 2)
8988 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8989 # instead of respecting HTML-style headings
8991 Section extraction, mixed wiki and html (section 1)
9007 Section extraction, mixed wiki and html (section 2)
9023 # Formerly testing for bug 3342
9025 Section extraction, heading surrounded by <noinclude>
9029 <noinclude>==unmarked==</noinclude>
9035 # Test behaviour of bug 19910
9037 Sectiion with all-equals
9042 The line above must have a trailing space
9045 But just in case it doesn't...
9049 But just in case it doesn't...
9053 Section replacement test (section 0)
9084 Section replacement test (section 1)
9113 Section replacement test (section 2)
9143 Section replacement test (section 3)
9174 Section replacement test (section 4)
9201 Section replacement test (section 5)
9232 Section replacement test (section 6)
9262 Section replacement test (section 7)
9293 Section replacement test (section 8)
9324 Section replacement test (section 9)
9353 Section replacement test (section 10)
9383 Section replacement test with initial whitespace (bug 13728)
9387 Preformatted initial line
9391 Preformatted initial line
9398 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9410 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9423 Section extraction, <pre> around bogus header (bug 10309)
9440 Section replacement, <pre> around bogus header (bug 10309)
9442 noxml replace=2,"xxx"
9463 Handling of 
 in URLs
9467 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9474 5 quotes, code coverage +1 line
9481 Special:Search page linking.
9485 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9500 * {{SUBJECTPAGENAME}}
9501 * {{SUBJECTPAGENAMEE}}
9508 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9510 <ul><li> Parser test
9511 </li><li> Parser test
9512 </li><li> Parser test
9513 </li><li> Parser_test
9514 </li><li> Parser test
9515 </li><li> Parser_test
9516 </li><li> Talk:Parser test
9517 </li><li> Talk:Parser_test
9518 </li><li> Parser test
9519 </li><li> Parser_test
9526 </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>
9530 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9540 image4 |300px| centre
9541 image5.svg| http://///////
9546 <ul class="gallery">
9547 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9548 <div style="height: 150px;">Image1.png</div>
9549 <div class="gallerytext">
9552 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9553 <div style="height: 150px;">Image2.gif</div>
9554 <div class="gallerytext">
9559 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9560 <div style="height: 150px;">Image3</div>
9561 <div class="gallerytext">
9564 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9565 <div style="height: 150px;">Image4</div>
9566 <div class="gallerytext">
9571 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9572 <div style="height: 150px;">Image5.svg</div>
9573 <div class="gallerytext">
9574 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9578 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9579 <div style="height: 150px;">* image6</div>
9580 <div class="gallerytext">
9588 Gallery (with options)
9590 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9591 File:Nonexistant.jpg|caption
9592 File:Nonexistant.jpg
9593 image:foobar.jpg|some '''caption''' [[Main Page]]
9595 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9598 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9599 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9600 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9601 <div style="height: 70px;">Nonexistant.jpg</div>
9602 <div class="gallerytext">
9607 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9608 <div style="height: 70px;">Nonexistant.jpg</div>
9609 <div class="gallerytext">
9612 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9613 <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>
9614 <div class="gallerytext">
9615 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9619 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9620 <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>
9621 <div class="gallerytext">
9624 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9625 <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>
9626 <div class="gallerytext">
9636 Gallery with wikitext inside caption
9639 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9640 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9643 <ul class="gallery">
9644 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9645 <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>
9646 <div class="gallerytext">
9647 <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>
9651 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9652 <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>
9653 <div class="gallerytext">
9654 <p>This is a test template
9663 gallery (with showfilename option)
9665 <gallery showfilename>
9666 File:Nonexistant.jpg|caption
9667 File:Nonexistant.jpg
9668 image:foobar.jpg|some '''caption''' [[Main Page]]
9672 <ul class="gallery">
9673 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9674 <div style="height: 150px;">Nonexistant.jpg</div>
9675 <div class="gallerytext">
9676 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9681 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9682 <div style="height: 150px;">Nonexistant.jpg</div>
9683 <div class="gallerytext">
9684 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9688 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9689 <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>
9690 <div class="gallerytext">
9691 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9692 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9696 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9697 <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>
9698 <div class="gallerytext">
9699 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9708 Gallery (with namespace-less filenames)
9711 File:Nonexistant.jpg
9717 <ul class="gallery">
9718 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9719 <div style="height: 150px;">Nonexistant.jpg</div>
9720 <div class="gallerytext">
9723 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9724 <div style="height: 150px;">Nonexistant.jpg</div>
9725 <div class="gallerytext">
9728 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9729 <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>
9730 <div class="gallerytext">
9733 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9734 <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>
9735 <div class="gallerytext">
9743 HTML Hex character encoding (spells the word "JavaScript")
9745 JavaScript
9747 <p>JavaScript
9752 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9756 <p>&#xsee;&#XSEE;
9761 HTML Hex character encoding mixed case
9770 __FORCETOC__ override
9782 ISBN 978-0-1234-56 789
9784 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9789 ISBN followed by 5 spaces
9800 ISBN ISBN 1234567890
9802 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9807 Bug 22905: <abbr> followed by ISBN followed by </a>
9809 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9811 <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>
9820 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9825 Double RFC with a wiki link
9829 <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>
9838 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9843 Centre-aligned image
9845 [[Image:foobar.jpg|centre]]
9847 <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>
9854 [[Image:foobar.jpg|none]]
9856 <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>
9861 Width + Height sized image (using px) (height is ignored)
9863 [[Image:foobar.jpg|640x480px]]
9865 <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>
9870 Width-sized image (using px, no following whitespace)
9872 [[Image:foobar.jpg|640px]]
9874 <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>
9879 Width-sized image (using px, with following whitespace - test regression from r39467)
9881 [[Image:foobar.jpg|640px ]]
9883 <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>
9888 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9890 [[Image:foobar.jpg| 640px]]
9892 <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>
9897 Another italics / bold test
9905 # Note the results may be incorrect, as parserTest output included this:
9906 # XML error: Mismatched tag at byte 6120:
9907 # ...<dd> </dt></dl> </dd...
9915 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9926 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9928 Images with the "|" character in the comment
9930 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9932 <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>
9937 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9939 <html><script>alert(1);</script></html>
9941 <p><html><script>alert(1);</script></html>
9946 HTML with raw HTML ($wgRawHtml==true)
9950 <html><script>alert(1);</script></html>
9952 <p><script>alert(1);</script>
9957 Parents of subpages, one level up
9959 subpage title=[[Subpage test/L1/L2/L3]]
9963 <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>
9969 Parents of subpages, one level up, not named
9971 subpage title=[[Subpage test/L1/L2/L3]]
9975 <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>
9982 Parents of subpages, two levels up
9984 subpage title=[[Subpage test/L1/L2/L3]]
9990 <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
9991 </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>
9996 Parents of subpages, two levels up, without trailing slash or name.
9998 subpage title=[[Subpage test/L1/L2/L3]]
10007 Parents of subpages, two levels up, with lots of extra trailing slashes.
10009 subpage title=[[Subpage test/L1/L2/L3]]
10013 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10018 Definition list code coverage
10024 <dl><dt> title  </dt><dd> def
10025 </dd><dt> title </dt><dd> def
10026 </dd><dt>title</dt><dd> def
10032 Don't fall for the self-closing div
10034 <div>hello world</div/>
10036 <div>hello world</div>
10045 <p>[[:Template:Msg]]
10054 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10058 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10060 Always escape literal '>' in output, not just after '<'
10074 <p>This is a test template
10075 This is a test template
10087 Inclusion of !userCanEdit() content
10091 <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>
10097 Out-of-order TOC heading levels
10106 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10108 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10110 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10111 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10114 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10116 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10117 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10122 <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>
10123 <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>
10124 <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>
10125 <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>
10126 <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>
10127 <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>
10133 ISBN with a dummy number
10143 ISBN with space-delimited number
10147 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10153 ISBN with multiple spaces, no number
10172 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10173 </p><p>ISBN 12345678901
10179 ISBN with trailing year (bug 8110)
10181 ISBN 1-234-56789-0 - 2006
10183 ISBN 1 234 56789 0 - 2006
10185 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10186 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10194 {{anchorencode:foo bar©#%n}}
10196 <p>foo_bar.C2.A9.23.25n
10201 anchorencode trims spaces
10203 {{anchorencode: __pretty__please__}}
10210 anchorencode deals with links
10212 {{anchorencode: [[hello|world]] [[hi]]}}
10219 anchorencode deals with templates
10221 {{anchorencode: {{Foo}} }}
10228 anchorencode encodes like the TOC generator: (bug 18431)
10230 === _ +:.3A%3A&&]] ===
10231 {{anchorencode: _ +:.3A%3A&&]] }}
10234 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10235 <p>.2B:.3A.253A.26.26.5D.5D
10239 # Expected output in the following test is not necessarily expected (there
10240 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10241 # only testing for well-formedness.
10243 Bug 6200: blockquotes and paragraph formatting
10263 Bug 8293: Use of center tag ruins paragraph formatting
10285 ### Language variants related tests
10288 Self-link in language variants
10290 title=[[Dunav]] language=sr
10292 Both [[Dunav]] and [[Дунав]] are names for this river.
10294 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10300 Link to pages in language variants
10304 Main Page can be written as [[Маин Паге]]
10306 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10312 Multiple links to pages in language variants
10316 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10318 <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>.
10324 Simple template in language variants
10330 <p>This is a test template
10336 Template with explicit namespace in language variants
10342 <p>This is a test template
10348 Basic test for template parameter in language variants
10352 {{парамтест|param=foo}}
10354 <p>This is a test template with parameter foo
10360 Simple category in language variants
10364 [[Category:МедиаWики Усер'с Гуиде]]
10366 <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>
10371 Stripping -{}- tags (language variants)
10375 Latin proverb: -{Ne nuntium necare}-
10377 <p>Latin proverb: Ne nuntium necare
10383 Prevent conversion with -{}- tags (language variants)
10385 language=sr variant=sr-ec
10387 Latinski: -{Ne nuntium necare}-
10389 <p>Латински: Ne nuntium necare
10395 Prevent conversion of text with -{}- tags (language variants)
10397 language=sr variant=sr-ec
10399 Latinski: -{Ne nuntium necare}-
10401 <p>Латински: Ne nuntium necare
10407 Prevent conversion of links with -{}- tags (language variants)
10409 language=sr variant=sr-ec
10413 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10419 -{}- tags within headlines (within html for parserConvert())
10421 language=sr variant=sr-ec
10425 <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>
10431 Explicit definition of language variant alternatives
10433 language=zh variant=zh-tw
10435 -{zh:China;zh-tw:Taiwan}-, not China
10437 <p>Taiwan, not China
10443 Explicit session-wise language variant mapping (A flag and - flag)
10445 language=zh variant=zh-tw
10447 Taiwan is not China.
10448 But -{A|zh:China;zh-tw:Taiwan}- is China,
10449 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10450 and -{China}- is China.
10452 <p>Taiwan is not China.
10453 But Taiwan is Taiwan,
10454 (This should be stripped!)
10455 and China is China.
10460 Explicit session-wise language variant mapping (H flag for hide)
10462 language=zh variant=zh-tw
10464 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10467 <p>(This should be stripped!)
10473 Adding explicit conversion rule for title (T flag)
10475 language=zh variant=zh-tw showtitle
10477 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10480 <p>Should be stripped!
10485 Testing that changing the language variant here in the tests actually works
10487 language=zh variant=zh showtitle
10489 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10492 <p>Should be stripped!
10497 Bug 24072: more test on conversion rule for title
10499 language=zh variant=zh-tw showtitle
10501 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10502 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10505 <p>This should be stripped!
10506 This won't take interferes with the title rule.
10511 Raw output of variant escape tags (R flag)
10513 language=zh variant=zh-tw
10515 Raw: -{R|zh:China;zh-tw:Taiwan}-
10517 <p>Raw: zh:China;zh-tw:Taiwan
10522 Nested using of manual convert syntax
10524 language=zh variant=zh-hk
10526 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10528 <p>Nested: Hello Hong Kong!
10533 Do not convert roman numbers to language variants
10535 language=sr variant=sr-ec
10539 <p>Фридрих IV је цар.
10544 Unclosed language converter markup "-{"
10555 Don't convert raw rule "-{R|=>}-" to "=>"
10572 Bug 529: Uncovered bullet
10582 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10583 # Templates in Wikipedia rely on this behavior, as tidy has always been
10584 # enabled there. These tests are normally run *without* tidy, so specify the
10585 # full output here.
10586 # To test realistic parsing behavior, apply a tidy-like transformation to both
10587 # the expected output and your parser's output.
10589 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10591 ******* Foo {{bullet}}
10593 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10606 Bug 529: Uncovered table already at line-start
10629 Bug 529: Uncovered bullet in parser function result
10631 * Foo {{lc:{{bullet}} }}
10640 Bug 5678: Double-parsed template argument
10642 {{lc:{{{1}}}|hello}}
10649 Bug 5678: Double-parsed template invocation
10651 {{lc:{{paramtest {{!}} param = hello }} }}
10653 <p>{{paramtest | param = hello }}
10658 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10661 title=[[Main Page]]
10663 {{PRVNÍVELKÉ:ěščř}}
10664 {{prvnívelké:ěščř}}
10684 Morwen/13: Unclosed link followed by heading
10691 <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>
10696 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10703 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10708 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10715 <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>
10730 Paragraphs inside divs (no extra line breaks)
10742 Paragraphs inside divs (extra line break on open)
10757 Paragraphs inside divs (extra line break on close)
10772 Paragraphs inside divs (extra line break on open and close)
10789 Nesting tags, paragraphs on lines which begin with <div>
10793 <div></div><strong>A
10802 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10804 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10808 <blockquote>Line one
10810 Line two</blockquote>
10812 <blockquote>Line one
10813 Line two</blockquote>
10818 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10825 Line two</blockquote>
10830 Line two</blockquote>
10835 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10839 <blockquote>Line one
10844 <blockquote>Line one
10852 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10871 Paragraphs inside blockquotes/divs (no extra line breaks)
10873 <blockquote><div>Line one
10875 Line two</div></blockquote>
10877 <blockquote><div>Line one
10878 Line two</div></blockquote>
10883 Paragraphs inside blockquotes/divs (extra line break on open)
10888 Line two</div></blockquote>
10893 Line two</div></blockquote>
10898 Paragraphs inside blockquotes/divs (extra line break on close)
10900 <blockquote><div>Line one
10903 </div></blockquote>
10905 <blockquote><div>Line one
10908 </div></blockquote>
10913 Paragraphs inside blockquotes/divs (extra line break on open and close)
10919 </div></blockquote>
10925 </div></blockquote>
10930 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10932 wgLinkHolderBatchSize=0
10938 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10939 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10940 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10945 Free external link invading image caption
10947 [[Image:Foobar.jpg|thumb|http://x|hello]]
10949 <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>
10954 Bug 15196: localised external link numbers
10958 [http://en.wikipedia.org/]
10960 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10965 Multibyte character in padleft
10967 {{padleft:-Hello|7|Æ}}
10974 Multibyte character in padright
10976 {{padright:Hello-|7|Æ}}
10985 wgUseDynamicDates=1
10989 <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>
10994 formatdate parser function
10996 {{#formatdate:2009-03-24}}
10998 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11003 formatdate parser function, with default format
11005 {{#formatdate:2009-03-24|mdy}}
11007 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11012 Linked date with autoformatting disabled
11014 wgUseDynamicDates=false
11018 <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>
11023 Spacing of numbers in formatted dates
11025 {{#formatdate:January 15}}
11027 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11032 Spacing of numbers in formatted dates (linked)
11034 wgUseDynamicDates=true
11038 <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>
11043 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
11045 language=nl title=[[MediaWiki:Common.css]]
11047 {{#formatdate:2009-03-24|dmy}}
11049 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11062 Edit comment with link
11066 I like the [[Main Page]] a lot
11068 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11072 Edit comment with link and link text
11076 I like the [[Main Page|best pages]] a lot
11078 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11082 Edit comment with link and link text with suffix
11086 I like the [[Main Page|best page]]s a lot
11088 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11092 Edit comment with section link (non-local, eg in history list)
11094 comment title=[[Main Page]]
11096 /* External links */ removed bogus entries
11098 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11102 Edit comment with section link and text before it (non-local, eg in history list)
11104 comment title=[[Main Page]]
11106 pre-comment text /* External links */ removed bogus entries
11108 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>
11112 Edit comment with section link (local, eg in diff view)
11114 comment local title=[[Main Page]]
11116 /* External links */ removed bogus entries
11118 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11122 Edit comment with subpage link (bug 14080)
11126 title=[[Subpage test]]
11128 Poked at a [[/subpage]] here...
11130 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11134 Edit comment with subpage link and link text (bug 14080)
11138 title=[[Subpage test]]
11140 Poked at a [[/subpage|neat little page]] here...
11142 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11146 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11149 title=[[Subpage test]]
11151 Poked at a [[/subpage]] here...
11153 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11157 Edit comment with bare anchor link (local, as on diff)
11161 title=[[Main Page]]
11165 <a href="#section">#section</a>
11169 Edit comment with bare anchor link (non-local, as on history)
11172 title=[[Main Page]]
11176 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11180 Anchor starting with underscore
11184 <p><a href="#_ref">One</a>
11189 Id starting with underscore
11191 <div id="_ref"></div>
11193 <div id="_ref"></div>
11198 Space normalisation on autocomment (bug 22784)
11201 title=[[Main Page]]
11203 /* __hello__world__ */
11205 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11209 percent-encoding and + signs in comments (Bug 26410)
11213 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11215 <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>
11219 Bad images - basic functionality
11228 Bad images - bug 16039: text after bad image disappears
11242 Verify that displaytitle works (bug #22501) no displaytitle
11246 wgAllowDisplayTitle=true
11247 wgRestrictDisplayTitle=false
11249 this is not the the title
11252 <p>this is not the the title
11257 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11262 wgAllowDisplayTitle=true
11263 wgRestrictDisplayTitle=false
11265 this is not the the title
11266 {{DISPLAYTITLE:whatever}}
11269 <p>this is not the the title
11274 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11279 wgAllowDisplayTitle=true
11280 wgRestrictDisplayTitle=true
11282 this is not the the title
11283 {{DISPLAYTITLE:whatever}}
11286 <p>this is not the the title
11291 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11296 wgAllowDisplayTitle=true
11297 wgRestrictDisplayTitle=true
11299 this is not the the title
11300 {{DISPLAYTITLE:screen}}
11303 <p>this is not the the title
11308 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11313 wgAllowDisplayTitle=false
11315 this is not the the title
11316 {{DISPLAYTITLE:screen}}
11319 <p>this is not the the title
11320 <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>
11325 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11330 wgAllowDisplayTitle=false
11332 this is not the the title
11335 <p>this is not the the title
11340 preload: check <noinclude> and <includeonly>
11344 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11350 preload: check <onlyinclude>
11354 Goodbye <onlyinclude>Hello world</onlyinclude>
11360 preload: can pass tags through if we want to
11364 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11366 <includeonly>Hello world</includeonly>
11370 preload: check that it doesn't try to do tricks
11374 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11376 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11380 Play a bit with r67090 and bug 3158
11384 <div style="width:50% !important"> </div>
11385 <div style="width:50% !important"> </div>
11386 <div style="width:50% !important"> </div>
11387 <div style="border : solid;"> </div>
11389 <div style="width:50% !important"> </div>
11390 <div style="width:50% !important"> </div>
11391 <div style="width:50% !important"> </div>
11392 <div style="border : solid;"> </div>
11397 HTML5 data attributes
11399 <span data-foo="bar">Baz</span>
11400 <p data-abc-def_hij="">Quuz</p>
11402 <p><span data-foo="bar">Baz</span>
11404 <p data-abc-def_hij="">Quuz</p>
11409 percent-encoding and + signs in internal links (Bug 26410)
11411 [[User:+%]] [[Page+title%]]
11412 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11413 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11414 [[%33%45]] [[%33%45+]]
11416 <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>
11417 <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>
11418 <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>
11419 <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>
11424 Special characters in embedded file links (bug 27679)
11426 [[File:Contains & ampersand.jpg]]
11427 [[File:Does not exist.jpg|Title with & ampersand]]
11429 <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>
11430 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11436 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11438 Text's been normalized?
11440 <p>Text's been normalized?
11445 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11447 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11449 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11454 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11456 [http://www.example.org/ ideograms]
11458 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11463 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11465 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11467 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11491 Bug 31098 Template which includes system messages which includes the template
11495 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11496 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11501 Deprecated presentational attributes are converted to css
11504 | valign=top align=left width=100 height=25% | Asdf
11506 <ul type="disc"></ul>
11510 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11512 <ul style="list-style-type: disc;"></ul>
11517 Bug31490 Turkish: ucfirst 'blah'
11528 Bug31490 Turkish: ucfirst 'ix'
11539 Bug31490 Turkish: lcfirst 'BLAH'
11550 Bug31490 Turkish: ucfırst (with a dotless i)
11556 <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>
11561 Bug31490 ucfırst (with a dotless i) with English language
11567 <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>
11572 Bug 26375: TOC with italics
11574 title=[[Main Page]]
11577 == ''Lost'' episodes ==
11579 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11581 <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>
11584 <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>
11589 Bug 26375: TOC with bold
11591 title=[[Main Page]]
11594 == '''should be bold''' then normal text ==
11596 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11598 <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>
11601 <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>
11606 Bug 33845: Headings become cursive in TOC when they contain an image
11608 title=[[Main Page]]
11611 == Image [[Image:foobar.jpg]] ==
11613 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11615 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11618 <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>
11623 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11625 title=[[Main Page]]
11628 == <blockquote>Quote</blockquote> ==
11630 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11632 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11635 <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>
11640 Unclosed tags in TOC
11642 title=[[Main Page]]
11646 <small>Hanc marginis exiguitas non caperet.</small>
11649 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11651 <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>
11654 <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>
11655 <p><small>Hanc marginis exiguitas non caperet.</small>
11661 Multiple tags in TOC
11664 == <i>Foo</i> <b>Bar</b> ==
11666 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11668 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11670 <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>
11671 <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>
11674 <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>
11675 <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>
11680 Tags with parameters in TOC
11683 == <sup class="in-h2">Hello</sup> ==
11685 == <sup class="a > b">Evilbye</sup> ==
11687 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11689 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11690 <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>
11693 <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>
11694 <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>
11699 span tags with directionality in TOC
11702 == <span dir="ltr">C++</span> ==
11704 == <span dir="rtl">זבנג!</span> ==
11706 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11708 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11710 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11712 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11714 <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>
11715 <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>
11716 <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>
11717 <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>
11718 <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>
11721 <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>
11722 <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>
11723 <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>
11724 <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>
11725 <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>
11732 == {{int:headline_sample}} ==
11736 Bug 32057: Title needed when expanding <h> nodes.
11738 title=[[Main Page]]
11742 <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>
11747 Strip marker in urlencode
11749 {{urlencode:x<nowiki/>y}}
11750 {{urlencode:x<nowiki/>y|wiki}}
11751 {{urlencode:x<nowiki/>y|path}}
11778 Strip marker in formatNum
11780 {{formatnum:1<nowiki/>2}}
11781 {{formatnum:1<nowiki/>2|R}}
11789 Strip marker in grammar
11793 {{grammar:elative|foo<nowiki/>bar}}
11800 Strip marker in padleft
11802 {{padleft:|2|x<nowiki/>y}}
11809 Strip marker in padright
11811 {{padright:|2|x<nowiki/>y}}
11818 Strip marker in anchorencode
11820 {{anchorencode:x<nowiki/>y}}
11827 nowiki inside link inside heading (bug 18295)
11829 ==[[foo|x<nowiki>y</nowiki>z]]==
11831 <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>
11836 new support for bdi element (bug 31817)
11838 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11840 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11845 Ignore pipe between table row attributes
11849 |- id=foo | style='color: red'
11857 <tr id="foo" style="color: red">
11864 Gallery override link with WikiLink (bug 34852)
11867 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11870 <ul class="gallery">
11871 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11872 <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>
11873 <div class="gallerytext">
11883 Gallery override link with absolute external link (bug 34852)
11886 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11889 <ul class="gallery">
11890 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11891 <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>
11892 <div class="gallerytext">
11902 Gallery override link with malicious javascript (bug 34852)
11905 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11908 <ul class="gallery">
11909 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11910 <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>
11911 <div class="gallerytext">
11921 Language parser function
11930 Padleft and padright as substr
11932 {{padleft:|3|abcde}}
11933 {{padright:|3|abcde}}
11941 Bug 34939 - Case insensitive link parsing ([HttP://])
11943 [HttP://MediaWiki.Org/]
11945 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11950 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11952 [HttP://MediaWiki.Org/ MediaWiki]
11954 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11959 Bug 34939 - Case insensitive link parsing (HttP://)
11961 HttP://MediaWiki.Org/
11963 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11968 ### Parsoids-specific tests
11969 ### Parsoid-PHP parser incompatibilities
11972 1. SOL-sensitive wikitext tokens as template-args
11986 #### The following section of tests are primarily to test
11987 #### wikitext escaping capabilities of Parsoid.
11988 #### A lot of the tests are disabled for the PHP parser either
11989 #### because of minor newline diffs or other reasons.
11990 #### As Parsoid serializer can handle newlines and other HTML
11991 #### more robustly, some of these tests might get reenabled
11992 #### for the PHP parser.
11994 #### --------------- Headings ---------------
11996 #### 1. Nested inside html <h1>=foo=</h1>
11997 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11998 #### 3. Nested inside html with wikitext split by html tags
11999 #### 4. No escape needed
12000 #### 5. Empty headings <h1></h1>
12001 #### 6. Heading chars in SOL context
12002 #### ----------------------------------------
12004 Headings: 0. Unnested
12006 <nowiki>=foo=</nowiki>
12008 <nowiki>=foo</nowiki>''a''=
12011 </p><p>=foo<i>a</i>=
12016 Headings: 1. Nested inside html
12020 =<nowiki>=foo=</nowiki>=
12021 ==<nowiki>=foo=</nowiki>==
12022 ===<nowiki>=foo=</nowiki>===
12023 ====<nowiki>=foo=</nowiki>====
12024 =====<nowiki>=foo=</nowiki>=====
12025 ======<nowiki>=foo=</nowiki>======
12036 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12041 <nowiki>*bar</nowiki>
12045 <nowiki>=bar=</nowiki>
12053 Headings: 3. Nested inside html with wikitext split by html tags
12057 =<nowiki>=</nowiki>'''bold'''foo==
12059 <h1>=<b>bold</b>foo=</h1>
12063 Headings: 4. No escaping needed (testing just h1 and h2)
12078 <h1><i>=</i>foo=</h1>
12083 Headings: 5. Empty headings
12087 =<nowiki></nowiki>=
12088 ==<nowiki></nowiki>==
12089 ===<nowiki></nowiki>===
12090 ====<nowiki></nowiki>====
12091 =====<nowiki></nowiki>=====
12092 ======<nowiki></nowiki>======
12103 Headings: 6. Heading chars in SOL context
12107 <!--cmt--><nowiki>=h1=</nowiki>
12113 #### --------------- Lists ---------------
12114 #### 0. Outside nests (*foo, etc.)
12115 #### 1. Nested inside html <ul><li>*foo</li></ul>
12116 #### 2. Inside definition lists
12117 #### 3. Only bullets at start should be escaped
12118 #### 4. No escapes needed
12119 #### 5. No unnecessary escapes
12120 #### 6. Escape bullets in SOL position
12121 #### 7. Escape bullets in a multi-line context
12122 #### ----------------------------------------
12125 Lists: 0. Outside nests
12127 <nowiki>*foo</nowiki>
12129 <nowiki>#foo</nowiki>
12137 Lists: 1. Nested inside html
12139 *<nowiki>*foo</nowiki>
12141 *<nowiki>#foo</nowiki>
12143 *<nowiki>:foo</nowiki>
12145 *<nowiki>;foo</nowiki>
12147 #<nowiki>*foo</nowiki>
12149 #<nowiki>#foo</nowiki>
12151 #<nowiki>:foo</nowiki>
12153 #<nowiki>;foo</nowiki>
12175 Lists: 2. Inside definition lists
12177 ;<nowiki>;foo</nowiki>
12179 ;<nowiki>:foo</nowiki>
12181 ;<nowiki>:foo</nowiki>
12184 :<nowiki>:foo</nowiki>
12199 Lists: 3. Only bullets at start of text should be escaped
12201 *<nowiki>*foo*bar</nowiki>
12203 *<nowiki>*foo</nowiki>''it''*bar
12207 <ul><li>*foo<i>it</i>*bar
12213 Lists: 4. No escapes needed
12225 <ul><li><i>foo</i>*bar
12227 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12232 Lists: 5. No unnecessary escapes
12234 * bar <span><nowiki>[[foo]]</nowiki></span>
12236 *=bar <span><nowiki>[[foo]]</nowiki></span>
12238 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12240 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12242 *=bar <span>foo]]</span>=
12244 <ul><li> bar <span>[[foo]]</span>
12246 <ul><li>=bar <span>[[foo]]</span>
12248 <ul><li>[[bar <span>[[foo]]</span>
12250 <ul><li>]]bar <span>[[foo]]</span>
12252 <ul><li>=bar <span>foo]]</span>=
12258 Lists: 6. Escape bullets in SOL position
12262 <!--cmt--><nowiki>*foo</nowiki>
12269 Lists: 7. Escape bullets in a multi-line context
12279 #### --------------- HRs ---------------
12280 #### 1. Single line
12281 #### -----------------------------------
12284 HRs: 1. Single line
12289 <nowiki>----</nowiki>
12291 <nowiki>=foo=</nowiki>
12293 <nowiki>*foo</nowiki>
12300 #### --------------- Tables ---------------
12301 #### 1a. Simple example
12302 #### 1b. No escaping needed (!foo)
12303 #### 1c. No escaping needed (|foo)
12304 #### 1d. No escaping needed (|}foo)
12306 #### 2a. Nested in td (<td>foo|bar</td>)
12307 #### 2b. Nested in td (<td>foo||bar</td>)
12308 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12310 #### 3a. Nested in th (<th>foo!bar</th>)
12311 #### 3b. Nested in th (<th>foo!!bar</th>)
12312 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12316 #### 4c. No escaping needed
12317 #### --------------------------------------
12320 Tables: 1a. Simple example
12331 Tables: 1b. No escaping needed
12340 Tables: 1c. No escaping needed
12349 Tables: 1d. No escaping needed
12358 Tables: 2a. Nested in td
12363 |<nowiki>foo|bar</nowiki>
12373 Tables: 2b. Nested in td
12378 |<nowiki>foo||bar</nowiki>
12379 |''it''<nowiki>foo||bar</nowiki>
12384 </td><td><i>it</i>foo||bar
12390 Tables: 2c. Nested in td -- no escaping needed
12405 Tables: 3a. Nested in th
12420 Tables: 3b. Nested in th
12425 !<nowiki>foo!!bar</nowiki>
12435 Tables: 3c. Nested in th -- no escaping needed
12450 Tables: 4a. Escape -
12458 |<nowiki>-bar</nowiki>
12462 <tr><th>-bar</th></tr>
12463 <tr><td>-bar</td></tr>
12468 Tables: 4b. Escape +
12476 |<nowiki>+bar</nowiki>
12480 <tr><th>+bar</th></tr>
12481 <tr><td>+bar</td></tr>
12486 Tables: 4c. No escaping needed
12500 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12501 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12505 #### --------------- Links ---------------
12506 #### 1. Quote marks in link text
12507 #### 2. Wikilinks: Escapes needed
12508 #### 3. Wikilinks: No escapes needed
12509 #### 4. Extlinks: Escapes needed
12510 #### 5. Extlinks: No escapes needed
12511 #### --------------------------------------
12513 Links 1. Quote marks in link text
12517 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12519 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12523 Links 2. WikiLinks: Escapes needed
12527 [[Foo|<nowiki>[Foobar]</nowiki>]]
12528 [[Foo|<nowiki>Foobar]</nowiki>]]
12529 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12530 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12531 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12532 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12533 [[Foo|<nowiki>|Bar</nowiki>]]
12535 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12536 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12537 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12538 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12539 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12540 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12541 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12545 Links 3. WikiLinks: No escapes needed
12552 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12553 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12557 Links 4. ExtLinks: Escapes needed
12561 [http://google.com <nowiki>[google]</nowiki>]
12562 [http://google.com <nowiki>google]</nowiki>]
12564 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12565 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12569 Links 5. ExtLinks: No escapes needed
12573 [http://google.com [google]
12575 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12578 #### --------------- Quotes ---------------
12579 #### 1. Quotes inside <b> and <i>
12580 #### 2. Link fragments separated by <i> and <b> tags
12581 #### 3. Link fragments inside <i> and <b>
12582 #### --------------------------------------
12584 1. Quotes inside <b> and <i>
12586 ''<nowiki>'foo'</nowiki>''
12587 ''<nowiki>''foo''</nowiki>''
12588 ''<nowiki>'''foo'''</nowiki>''
12589 '''<nowiki>'foo'</nowiki>'''
12590 '''<nowiki>''foo''</nowiki>'''
12591 '''<nowiki>'''foo'''</nowiki>'''
12592 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12600 <b>foo'<i>bar'</i>baz</b>
12605 2. Link fragments separated by <i> and <b> tags
12607 [[''foo''<nowiki>hello]]</nowiki>
12609 [['''foo'''<nowiki>hello]]</nowiki>
12611 <p>[[<i>foo</i>hello]]
12612 </p><p>[[<b>foo</b>hello]]
12617 2. Link fragments inside <i> and <b>
12618 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12619 this is one of the shortcomings of this format)
12621 ''[[foo''<nowiki>]]</nowiki>
12623 '''[[foo'''<nowiki>]]</nowiki>
12626 </p><p><b>[[foo</b>]]
12630 #### --------------- Paragraphs ---------------
12631 #### 1. No unnecessary escapes
12632 #### --------------------------------------
12635 1. No unnecessary escapes
12637 bar <span><nowiki>[[foo]]</nowiki></span>
12639 =bar <span><nowiki>[[foo]]</nowiki></span>
12641 [[bar <span><nowiki>[[foo]]</nowiki></span>
12643 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12645 <nowiki>=bar </nowiki><span>foo]]</span>=
12647 <p>bar <span>[[foo]]</span>
12648 </p><p>=bar <span>[[foo]]</span>
12649 </p><p>[[bar <span>[[foo]]</span>
12650 </p><p>]]bar <span>[[foo]]</span>
12651 </p><p>=bar <span>foo]]</span>=
12655 #### --------------- PRE ------------------
12656 #### 1. Leading space in SOL context should be escaped
12657 #### --------------------------------------
12659 1. Leading space in SOL context should be escaped
12663 <nowiki> foo</nowiki>
12664 <!--cmt--><nowiki> foo</nowiki>
12671 #### --------------- HTML tags ---------------
12674 #### 3. multi-line html tag
12675 #### --------------------------------------
12681 <a href="http://google.com">google</a>
12683 <a href="http://google.com">google</a>
12689 <nowiki><div>foo</div>
12690 <div style="color:red">foo</div></nowiki>
12692 <p><div>foo</div>
12693 <div style="color:red">foo</div>
12698 3. multi-line html tag
12710 #### --------------- Others ---------------
12714 <nowiki>foo</nowiki>
12716 <p><nowiki>foo</nowiki>
12725 Try for 100% code coverage