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>
7201 Non-ASCII pseudo-tags are rendered as text
7210 Pseudo-tag with URL 'name' renders as url link
7212 <http://example.com/>
7214 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7219 text with amp in the middle of nowhere
7223 <p>Remember AT&T?
7228 text with character entity: eacute
7230 I always thought é was a cute letter.
7232 <p>I always thought é was a cute letter.
7237 text with undefined character entity: xacute
7239 I always thought &xacute; was a cute letter.
7241 <p>I always thought &xacute; was a cute letter.
7253 [[Media:Foobar.jpg]]
7255 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7260 Media link with text
7262 [[Media:Foobar.jpg|A neat file to look at]]
7264 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7268 # FIXME: this is still bad HTML tag nesting
7270 Media link with nasty text
7271 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7273 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7275 <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>
7280 Media link to nonexistent file (bug 1702)
7282 [[Media:No such.jpg]]
7284 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7289 Image link to nonexistent file (bug 1850 - good)
7291 [[Image:No such.jpg]]
7293 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7298 :Image link to nonexistent file (bug 1850 - bad)
7300 [[:Image:No such.jpg]]
7302 <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>
7309 Character reference normalization in link text (bug 1938)
7311 [[Main Page|this&that]]
7313 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7320 Test for unicode normalization
7322 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7326 (bug 19451) Links should refer to the normalized form.
7334 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7335 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7336 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7337 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7338 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7343 Empty attribute crash test (bug 2067)
7345 <font color="">foo</font>
7347 <p><font color="">foo</font>
7352 Empty attribute crash test single-quotes (bug 2067)
7354 <font color=''>foo</font>
7356 <p><font color="">foo</font>
7361 Attribute test: equals, then nothing
7363 <font color=>foo</font>
7370 Attribute test: unquoted value
7372 <font color=x>foo</font>
7374 <p><font color="x">foo</font>
7379 Attribute test: unquoted but illegal value (hash)
7381 <font color=#x>foo</font>
7383 <p><font color="#x">foo</font>
7388 Attribute test: no value
7390 <font color>foo</font>
7392 <p><font color="color">foo</font>
7397 Bug 2095: link with three closing brackets
7401 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7406 Bug 2095: link with pipe and three closing brackets
7410 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7415 Bug 2095: link with pipe and three closing brackets, version 2
7417 [[Main Page|[http://example.com/]]]
7419 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7429 Template:Dangerous attribute
7431 " onmouseover="alert(document.cookie)
7435 Template:Dangerous style attribute
7437 border-size: expression(alert(document.cookie))
7443 <div style="float: right; {{{1}}}">Magic div</div>
7447 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7449 <div title="{{test}}"></div>
7451 <div title="This is a test template"></div>
7456 Bug 2304: HTML attribute safety (dangerous template; 2309)
7458 <div title="{{dangerous attribute}}"></div>
7460 <div title=""></div>
7465 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7467 <div style="{{dangerous style attribute}}"></div>
7469 <div style="/* insecure input */"></div>
7474 Bug 2304: HTML attribute safety (safe parameter; 2309)
7476 {{div style|width: 200px}}
7478 <div style="float: right; width: 200px">Magic div</div>
7483 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7485 {{div style|width: expression(alert(document.cookie))}}
7487 <div style="/* insecure input */">Magic div</div>
7492 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7494 {{div style|"><script>alert(document.cookie)</script>}}
7496 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7501 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7503 {{div style|" ><script>alert(document.cookie)</script>}}
7505 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7510 Bug 2304: HTML attribute safety (link)
7512 <div title="[[Main Page]]"></div>
7514 <div title="[[Main Page]]"></div>
7519 Bug 2304: HTML attribute safety (italics)
7521 <div title="''foobar''"></div>
7523 <div title="''foobar''"></div>
7528 Bug 2304: HTML attribute safety (bold)
7530 <div title="'''foobar'''"></div>
7532 <div title="'''foobar'''"></div>
7538 Bug 2304: HTML attribute safety (ISBN)
7540 <div title="ISBN 1234567890"></div>
7542 <div title="ISBN 1234567890"></div>
7547 Bug 2304: HTML attribute safety (RFC)
7549 <div title="RFC 1234"></div>
7551 <div title="RFC 1234"></div>
7556 Bug 2304: HTML attribute safety (PMID)
7558 <div title="PMID 1234567890"></div>
7560 <div title="PMID 1234567890"></div>
7565 Bug 2304: HTML attribute safety (web link)
7567 <div title="http://example.com/"></div>
7569 <div title="http://example.com/"></div>
7574 Bug 2304: HTML attribute safety (named web link)
7576 <div title="[http://example.com/ link]"></div>
7578 <div title="[http://example.com/ link]"></div>
7583 Bug 3244: HTML attribute safety (extension; safe)
7585 <div style="<nowiki>background:blue</nowiki>"></div>
7587 <div style="background:blue"></div>
7592 Bug 3244: HTML attribute safety (extension; unsafe)
7594 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7596 <div style="/* insecure input */"></div>
7600 # More MSIE fun discovered by Tom Gilder
7603 MSIE CSS safety test: spurious slash
7605 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7607 <div style="/* insecure input */">evil</div>
7612 MSIE CSS safety test: hex code
7614 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7616 <div style="/* insecure input */">evil</div>
7621 MSIE CSS safety test: comment in url
7623 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7625 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7630 MSIE CSS safety test: comment in expression
7632 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7634 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7640 Table attribute legitimate extension
7643 !+ style="<nowiki>color:blue</nowiki>"| status
7648 <th style="color:blue"> status
7654 Table attribute safety
7657 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7662 <th style="/* insecure input */"> status
7668 CSS line continuation 1
7670 <div style="background-image: u\ rl(test.jpg);"></div>
7672 <div style="/* insecure input */"></div>
7677 CSS line continuation 2
7679 <div style="background-image: u\ rl(test.jpg); "></div>
7681 <div style="/* insecure input */"></div>
7692 Expansion of multi-line templates in attribute values (bug 6255)
7694 <div style="background: {{identity|#00FF00}}">-</div>
7696 <div style="background: #00FF00">-</div>
7702 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7704 <div style="background:
7707 <div style="background: #00FF00">-</div>
7712 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7714 <div style="background: #00FF00">-</div>
7716 <div style="background: #00FF00">-</div>
7721 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7724 Parser hook: empty input
7737 Parser hook: empty input using terminated empty elements
7750 Parser hook: empty input using terminated empty elements (space before)
7763 Parser hook: basic input
7777 Parser hook: case insensitive
7791 Parser hook: case insensitive, redux
7804 Parser hook: nested tags
7808 <tag><tag></tag></tag>
7819 Parser hook: basic arguments
7821 <tag width=200 height = "100" depth = '50' square></tag>
7829 'square' => 'square',
7836 Parser hook: argument containing a forward slash (bug 5344)
7838 <tag filename='/tmp/bla'></tag>
7843 'filename' => '/tmp/bla',
7850 Parser hook: empty input using terminated empty elements (bug 2374)
7863 # </tag> should be output literally since there is no matching tag that begins it
7865 Parser hook: basic arguments using terminated empty elements (bug 2374)
7867 <tag width=200 height = "100" depth = '50' square/>
7877 'square' => 'square',
7886 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7890 Parser hook: static parser hook not inside a comment
7892 <statictag>hello, world</statictag>
7893 <statictag action=flush/>
7901 Parser hook: static parser hook inside a comment
7903 <!-- <statictag>hello, world</statictag> -->
7904 <statictag action=flush/>
7910 # Nested template calls; this case was broken by Parser.php rev 1.506,
7914 Template:One-parameter
7916 (My parameter is: {{{1}}})
7920 Template:Map-one-parameter
7926 Nested template calls
7928 {{Map-one-parameter|One-parameter|param}}
7930 <p>(My parameter is: param)
7939 Sanitizer: Closing of open tags
7941 <s></s><table></table>
7943 <s></s><table></table>
7948 Sanitizer: Closing of open but not closed tags
7957 Sanitizer: Closing of closed but not open tags
7966 Sanitizer: Closing of closed but not open table tags
7968 Table not started</td></tr></table>
7970 <p>Table not started</td></tr></table>
7975 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7977 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7979 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7984 Sanitizer: Validating the contents of the id attribute (bug 4515)
7990 Something, but definitely not <br id="9" />...
7994 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7998 <br id="foo" /><br id="foo" />
8000 Something need to be done. foo-2 ?
8004 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8007 <meta itemprop="hello" content="world">
8008 <meta http-equiv="refresh" content="5">
8009 <meta itemprop="hello" http-equiv="refresh" content="5">
8010 <link itemprop="hello" href="{{SERVER}}">
8011 <link rel="stylesheet" href="{{SERVER}}">
8012 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8015 <div itemscope="itemscope">
8016 <p> <meta itemprop="hello" content="world" />
8017 <meta http-equiv="refresh" content="5">
8018 <meta itemprop="hello" content="5" />
8020 <link itemprop="hello" href="http://Britney-Spears" />
8021 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8022 <link itemprop="hello" href="http://Britney-Spears" />
8028 Language converter: output gets cut off unexpectedly (bug 5757)
8032 this bit is safe: }-
8034 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8036 then we get cut off here: }-
8038 all additional text is vanished
8040 <p>this bit is safe: }-
8041 </p><p>but if we add a conversion instance: xxx
8042 </p><p>then we get cut off here: }-
8043 </p><p>all additional text is vanished
8048 Self closed html pairs (bug 5487)
8051 <center><font id="bug" />Centered text</center>
8052 <div><font id="bug2" />In div text</div>
8054 <center><font id="bug" />Centered text</center>
8055 <div><font id="bug2" />In div text</div>
8064 Punctuation: nbsp before exclamation
8068 <p>C'est grave !
8073 Punctuation: CSS !important (bug 11874)
8075 <div style="width:50% !important">important</div>
8077 <div style="width:50% !important">important</div>
8082 Punctuation: CSS ! important (bug 11874; with space after)
8084 <div style="width:50% ! important">important</div>
8086 <div style="width:50% ! important">important</div>
8092 HTML bullet list, closed tags (bug 5497)
8107 HTML bullet list, unclosed tags (bug 5497)
8124 HTML ordered list, closed tags (bug 5497)
8139 HTML ordered list, unclosed tags (bug 5497)
8156 HTML nested bullet list, closed tags (bug 5497)
8181 HTML nested bullet list, open tags (bug 5497)
8206 HTML nested ordered list, closed tags (bug 5497)
8231 HTML nested ordered list, open tags (bug 5497)
8256 HTML ordered list item with parameters oddity
8258 <ol><li id="fragment">One</li></ol>
8260 <ol><li id="fragment">One</li></ol>
8265 bug 5918: autonumbering
8267 [http://first/] [http://second] [ftp://ftp]
8271 [mailto:enclosed@mail.tld With target]
8273 [mailto:enclosed@mail.tld]
8275 mailto:inline@mail.tld
8277 <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>
8278 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8279 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8280 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8281 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8287 # Security and HTML correctness
8288 # From Nick Jenkins' fuzz testing
8292 Fuzz testing: Parser13
8307 Fuzz testing: Parser14
8312 <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>
8313 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8315 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8322 Fuzz testing: Parser14-table
8327 <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>
8328 <table style="__TOC__">
8334 # Known to produce bogus xml (extra </td>)
8336 Fuzz testing: Parser16
8356 Fuzz testing: Parser21
8359 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8364 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8374 Fuzz testing: Parser22
8376 http://===r:::https://b
8380 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8388 # Known to produce bad XML for now
8390 Fuzz testing: Parser24
8397 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8398 <br style="onmouseover='alert(document.cookie);' " />
8400 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8405 <u class="|">}}}} >
8406 <br style="onmouseover='alert(document.cookie);'" />
8408 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8417 # Note: the current result listed for this is not what the original one was,
8418 # but the original bug was JavaScript injection, which is fixed in any case.
8419 # It's not clear that the original result listed was any more correct than the
8420 # current one. Original result:
8423 # <li class="||">
8424 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8426 Fuzz testing: Parser25 (bug 6055)
8432 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8434 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8439 Fuzz testing: URL adjacent extension (with space, clean)
8442 http://example.com <nowiki>junk</nowiki>
8444 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8449 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8452 http://example.com<nowiki>junk</nowiki>
8454 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8459 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8462 http://example.com<pre>junk</pre>
8464 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8469 Fuzz testing: image with bogus manual thumbnail
8471 [[Image:foobar.jpg|thumbnail= ]]
8473 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8478 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8480 <pre dir=" "></pre>
8482 <pre dir=" "></pre>
8487 Parsing optional HTML elements (Bug 6171)
8492 <td> Some tabular data</td>
8493 <td> More tabular data ...
8494 <td> And yet som tabular data</td>
8500 <td> Some tabular data</td>
8501 <td> More tabular data ...
8502 </td><td> And yet som tabular data</td>
8509 Correct handling of <td>, <tr> (Bug 6171)
8514 <td> Some tabular data</td>
8515 <td> More tabular data ...</td>
8516 <td> And yet som tabular data</td>
8522 <td> Some tabular data</td>
8523 <td> More tabular data ...</td>
8524 <td> And yet som tabular data</td>
8532 Parsing crashing regression (fr:JavaScript)
8536 <p></body></x>
8541 Inline wiki vs wiki block nesting
8547 <p><b>Bold paragraph</b>
8548 </p><p>New wiki paragraph
8553 Inline HTML vs wiki block nesting
8561 <p><b>Bold paragraph</b>
8562 </p><p>New wiki paragraph
8566 # Original result was this:
8567 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8569 # While that might be marginally more intuitive, maybe, the six-apostrophe
8570 # construct is clearly pathological and the result stated here (which is what
8571 # the parser actually does) is about as reasonable as anything.
8573 Mixing markup for italics and bold
8576 '''bold''''''bold''bolditalics'''''
8578 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8586 Article for special page transclusion test
8590 Special page transclusion
8593 {{Special:Prefixindex/Xyzzyx}}
8595 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8600 Special page transclusion twice (bug 5021)
8603 {{Special:Prefixindex/Xyzzyx}}
8604 {{Special:Prefixindex/Xyzzyx}}
8606 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8607 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8612 Transclusion of default MediaWiki message
8614 {{MediaWiki:Mainpage}}
8621 Transclusion of nonexistent MediaWiki message
8623 {{MediaWiki:Mainpagexxx}}
8625 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8630 Transclusion of MediaWiki message with underscore
8632 {{MediaWiki:history_short}}
8639 Transclusion of MediaWiki message with space
8641 {{MediaWiki:history short}}
8648 Invalid header with following text
8658 Section extraction test (section 0)
8678 Section extraction test (section 1)
8700 Section extraction test (section 2)
8721 Section extraction test (section 3)
8741 Section extraction test (section 4)
8765 Section extraction test (section 5)
8785 Section extraction test (section 6)
8806 Section extraction test (section 7)
8826 Section extraction test (section 8)
8846 Section extraction test (section 9)
8867 Section extraction test (section 10)
8887 Section extraction test (nonexistent section 11)
8906 Section extraction test with bogus heading (section 1)
8911 ==bogus== not a legal section
8915 ==bogus== not a legal section
8919 Section extraction test with bogus heading (section 2)
8924 ==bogus== not a legal section
8931 Section extraction test with comment after heading (section 1)
8943 Section extraction test with comment after heading (section 2)
8955 Section extraction test with bogus <nowiki> heading (section 1)
8960 ==bogus== <nowiki>not a legal section</nowiki>
8964 ==bogus== <nowiki>not a legal section</nowiki>
8968 Section extraction test with bogus <nowiki> heading (section 2)
8973 ==bogus== <nowiki>not a legal section</nowiki>
8980 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8981 # instead of respecting commented sections
8983 Section extraction prefixed by comment (section 1)
8994 Section extraction prefixed by comment (section 2)
9005 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9006 # instead of respecting HTML-style headings
9008 Section extraction, mixed wiki and html (section 1)
9024 Section extraction, mixed wiki and html (section 2)
9040 # Formerly testing for bug 3342
9042 Section extraction, heading surrounded by <noinclude>
9046 <noinclude>==unmarked==</noinclude>
9052 # Test behaviour of bug 19910
9054 Sectiion with all-equals
9059 The line above must have a trailing space
9062 But just in case it doesn't...
9066 But just in case it doesn't...
9070 Section replacement test (section 0)
9101 Section replacement test (section 1)
9130 Section replacement test (section 2)
9160 Section replacement test (section 3)
9191 Section replacement test (section 4)
9218 Section replacement test (section 5)
9249 Section replacement test (section 6)
9279 Section replacement test (section 7)
9310 Section replacement test (section 8)
9341 Section replacement test (section 9)
9370 Section replacement test (section 10)
9400 Section replacement test with initial whitespace (bug 13728)
9404 Preformatted initial line
9408 Preformatted initial line
9415 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9427 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9440 Section extraction, <pre> around bogus header (bug 10309)
9457 Section replacement, <pre> around bogus header (bug 10309)
9459 noxml replace=2,"xxx"
9480 Handling of 
 in URLs
9484 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9491 5 quotes, code coverage +1 line
9498 Special:Search page linking.
9502 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9517 * {{SUBJECTPAGENAME}}
9518 * {{SUBJECTPAGENAMEE}}
9525 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9527 <ul><li> Parser test
9528 </li><li> Parser test
9529 </li><li> Parser test
9530 </li><li> Parser_test
9531 </li><li> Parser test
9532 </li><li> Parser_test
9533 </li><li> Talk:Parser test
9534 </li><li> Talk:Parser_test
9535 </li><li> Parser test
9536 </li><li> Parser_test
9543 </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>
9547 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9557 image4 |300px| centre
9558 image5.svg| http://///////
9563 <ul class="gallery">
9564 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9565 <div style="height: 150px;">Image1.png</div>
9566 <div class="gallerytext">
9569 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9570 <div style="height: 150px;">Image2.gif</div>
9571 <div class="gallerytext">
9576 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9577 <div style="height: 150px;">Image3</div>
9578 <div class="gallerytext">
9581 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9582 <div style="height: 150px;">Image4</div>
9583 <div class="gallerytext">
9588 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9589 <div style="height: 150px;">Image5.svg</div>
9590 <div class="gallerytext">
9591 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9595 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9596 <div style="height: 150px;">* image6</div>
9597 <div class="gallerytext">
9605 Gallery (with options)
9607 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9608 File:Nonexistant.jpg|caption
9609 File:Nonexistant.jpg
9610 image:foobar.jpg|some '''caption''' [[Main Page]]
9612 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9615 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9616 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9617 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9618 <div style="height: 70px;">Nonexistant.jpg</div>
9619 <div class="gallerytext">
9624 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9625 <div style="height: 70px;">Nonexistant.jpg</div>
9626 <div class="gallerytext">
9629 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9630 <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>
9631 <div class="gallerytext">
9632 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9636 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9637 <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>
9638 <div class="gallerytext">
9641 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9642 <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>
9643 <div class="gallerytext">
9653 Gallery with wikitext inside caption
9656 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9657 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9660 <ul class="gallery">
9661 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9662 <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>
9663 <div class="gallerytext">
9664 <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>
9668 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9669 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9670 <div class="gallerytext">
9671 <p>This is a test template
9680 gallery (with showfilename option)
9682 <gallery showfilename>
9683 File:Nonexistant.jpg|caption
9684 File:Nonexistant.jpg
9685 image:foobar.jpg|some '''caption''' [[Main Page]]
9689 <ul class="gallery">
9690 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9691 <div style="height: 150px;">Nonexistant.jpg</div>
9692 <div class="gallerytext">
9693 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9698 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9699 <div style="height: 150px;">Nonexistant.jpg</div>
9700 <div class="gallerytext">
9701 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9705 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9706 <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>
9707 <div class="gallerytext">
9708 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9709 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9713 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9714 <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>
9715 <div class="gallerytext">
9716 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9725 Gallery (with namespace-less filenames)
9728 File:Nonexistant.jpg
9734 <ul class="gallery">
9735 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9736 <div style="height: 150px;">Nonexistant.jpg</div>
9737 <div class="gallerytext">
9740 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9741 <div style="height: 150px;">Nonexistant.jpg</div>
9742 <div class="gallerytext">
9745 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9746 <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>
9747 <div class="gallerytext">
9750 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9751 <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>
9752 <div class="gallerytext">
9760 HTML Hex character encoding (spells the word "JavaScript")
9762 JavaScript
9764 <p>JavaScript
9769 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9773 <p>&#xsee;&#XSEE;
9778 HTML Hex character encoding mixed case
9787 __FORCETOC__ override
9799 ISBN 978-0-1234-56 789
9801 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9806 ISBN followed by 5 spaces
9817 ISBN ISBN 1234567890
9819 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9824 Bug 22905: <abbr> followed by ISBN followed by </a>
9826 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9828 <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>
9837 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9842 Double RFC with a wiki link
9846 <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>
9855 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9860 Centre-aligned image
9862 [[Image:foobar.jpg|centre]]
9864 <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>
9871 [[Image:foobar.jpg|none]]
9873 <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>
9878 Width + Height sized image (using px) (height is ignored)
9880 [[Image:foobar.jpg|640x480px]]
9882 <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>
9887 Width-sized image (using px, no following whitespace)
9889 [[Image:foobar.jpg|640px]]
9891 <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>
9896 Width-sized image (using px, with following whitespace - test regression from r39467)
9898 [[Image:foobar.jpg|640px ]]
9900 <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>
9905 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9907 [[Image:foobar.jpg| 640px]]
9909 <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>
9914 Another italics / bold test
9922 # Note the results may be incorrect, as parserTest output included this:
9923 # XML error: Mismatched tag at byte 6120:
9924 # ...<dd> </dt></dl> </dd...
9932 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9943 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9945 Images with the "|" character in the comment
9947 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9949 <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>
9954 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9956 <html><script>alert(1);</script></html>
9958 <p><html><script>alert(1);</script></html>
9963 HTML with raw HTML ($wgRawHtml==true)
9967 <html><script>alert(1);</script></html>
9969 <p><script>alert(1);</script>
9974 Parents of subpages, one level up
9976 subpage title=[[Subpage test/L1/L2/L3]]
9980 <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>
9986 Parents of subpages, one level up, not named
9988 subpage title=[[Subpage test/L1/L2/L3]]
9992 <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>
9999 Parents of subpages, two levels up
10001 subpage title=[[Subpage test/L1/L2/L3]]
10007 <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
10008 </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>
10013 Parents of subpages, two levels up, without trailing slash or name.
10015 subpage title=[[Subpage test/L1/L2/L3]]
10024 Parents of subpages, two levels up, with lots of extra trailing slashes.
10026 subpage title=[[Subpage test/L1/L2/L3]]
10030 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10035 Definition list code coverage
10041 <dl><dt> title  </dt><dd> def
10042 </dd><dt> title </dt><dd> def
10043 </dd><dt>title</dt><dd> def
10049 Don't fall for the self-closing div
10051 <div>hello world</div/>
10053 <div>hello world</div>
10062 <p>[[:Template:Msg]]
10071 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10075 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10077 Always escape literal '>' in output, not just after '<'
10091 <p>This is a test template
10092 This is a test template
10104 Inclusion of !userCanEdit() content
10108 <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>
10114 Out-of-order TOC heading levels
10123 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10125 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10127 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10128 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10131 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10133 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10134 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10139 <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>
10140 <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>
10141 <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>
10142 <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>
10143 <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>
10144 <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>
10150 ISBN with a dummy number
10160 ISBN with space-delimited number
10164 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10170 ISBN with multiple spaces, no number
10189 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10190 </p><p>ISBN 12345678901
10196 ISBN with trailing year (bug 8110)
10198 ISBN 1-234-56789-0 - 2006
10200 ISBN 1 234 56789 0 - 2006
10202 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10203 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10211 {{anchorencode:foo bar©#%n}}
10213 <p>foo_bar.C2.A9.23.25n
10218 anchorencode trims spaces
10220 {{anchorencode: __pretty__please__}}
10227 anchorencode deals with links
10229 {{anchorencode: [[hello|world]] [[hi]]}}
10236 anchorencode deals with templates
10238 {{anchorencode: {{Foo}} }}
10245 anchorencode encodes like the TOC generator: (bug 18431)
10247 === _ +:.3A%3A&&]] ===
10248 {{anchorencode: _ +:.3A%3A&&]] }}
10251 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10252 <p>.2B:.3A.253A.26.26.5D.5D
10256 # Expected output in the following test is not necessarily expected (there
10257 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10258 # only testing for well-formedness.
10260 Bug 6200: blockquotes and paragraph formatting
10280 Bug 8293: Use of center tag ruins paragraph formatting
10302 ### Language variants related tests
10305 Self-link in language variants
10307 title=[[Dunav]] language=sr
10309 Both [[Dunav]] and [[Дунав]] are names for this river.
10311 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10317 Link to pages in language variants
10321 Main Page can be written as [[Маин Паге]]
10323 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10329 Multiple links to pages in language variants
10333 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10335 <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>.
10341 Simple template in language variants
10347 <p>This is a test template
10353 Template with explicit namespace in language variants
10359 <p>This is a test template
10365 Basic test for template parameter in language variants
10369 {{парамтест|param=foo}}
10371 <p>This is a test template with parameter foo
10377 Simple category in language variants
10381 [[Category:МедиаWики Усер'с Гуиде]]
10383 <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>
10388 Stripping -{}- tags (language variants)
10392 Latin proverb: -{Ne nuntium necare}-
10394 <p>Latin proverb: Ne nuntium necare
10400 Prevent conversion with -{}- tags (language variants)
10402 language=sr variant=sr-ec
10404 Latinski: -{Ne nuntium necare}-
10406 <p>Латински: Ne nuntium necare
10412 Prevent conversion of text with -{}- tags (language variants)
10414 language=sr variant=sr-ec
10416 Latinski: -{Ne nuntium necare}-
10418 <p>Латински: Ne nuntium necare
10424 Prevent conversion of links with -{}- tags (language variants)
10426 language=sr variant=sr-ec
10430 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10436 -{}- tags within headlines (within html for parserConvert())
10438 language=sr variant=sr-ec
10442 <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>
10448 Explicit definition of language variant alternatives
10450 language=zh variant=zh-tw
10452 -{zh:China;zh-tw:Taiwan}-, not China
10454 <p>Taiwan, not China
10460 Explicit session-wise language variant mapping (A flag and - flag)
10462 language=zh variant=zh-tw
10464 Taiwan is not China.
10465 But -{A|zh:China;zh-tw:Taiwan}- is China,
10466 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10467 and -{China}- is China.
10469 <p>Taiwan is not China.
10470 But Taiwan is Taiwan,
10471 (This should be stripped!)
10472 and China is China.
10477 Explicit session-wise language variant mapping (H flag for hide)
10479 language=zh variant=zh-tw
10481 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10484 <p>(This should be stripped!)
10490 Adding explicit conversion rule for title (T flag)
10492 language=zh variant=zh-tw showtitle
10494 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10497 <p>Should be stripped!
10502 Testing that changing the language variant here in the tests actually works
10504 language=zh variant=zh showtitle
10506 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10509 <p>Should be stripped!
10514 Bug 24072: more test on conversion rule for title
10516 language=zh variant=zh-tw showtitle
10518 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10519 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10522 <p>This should be stripped!
10523 This won't take interferes with the title rule.
10528 Raw output of variant escape tags (R flag)
10530 language=zh variant=zh-tw
10532 Raw: -{R|zh:China;zh-tw:Taiwan}-
10534 <p>Raw: zh:China;zh-tw:Taiwan
10539 Nested using of manual convert syntax
10541 language=zh variant=zh-hk
10543 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10545 <p>Nested: Hello Hong Kong!
10550 Do not convert roman numbers to language variants
10552 language=sr variant=sr-ec
10556 <p>Фридрих IV је цар.
10561 Unclosed language converter markup "-{"
10572 Don't convert raw rule "-{R|=>}-" to "=>"
10589 Bug 529: Uncovered bullet
10599 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10600 # Templates in Wikipedia rely on this behavior, as tidy has always been
10601 # enabled there. These tests are normally run *without* tidy, so specify the
10602 # full output here.
10603 # To test realistic parsing behavior, apply a tidy-like transformation to both
10604 # the expected output and your parser's output.
10606 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10608 ******* Foo {{bullet}}
10610 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10623 Bug 529: Uncovered table already at line-start
10646 Bug 529: Uncovered bullet in parser function result
10648 * Foo {{lc:{{bullet}} }}
10657 Bug 5678: Double-parsed template argument
10659 {{lc:{{{1}}}|hello}}
10666 Bug 5678: Double-parsed template invocation
10668 {{lc:{{paramtest {{!}} param = hello }} }}
10670 <p>{{paramtest | param = hello }}
10675 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10678 title=[[Main Page]]
10680 {{PRVNÍVELKÉ:ěščř}}
10681 {{prvnívelké:ěščř}}
10701 Morwen/13: Unclosed link followed by heading
10708 <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>
10713 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10720 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10725 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10732 <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>
10747 Paragraphs inside divs (no extra line breaks)
10759 Paragraphs inside divs (extra line break on open)
10774 Paragraphs inside divs (extra line break on close)
10789 Paragraphs inside divs (extra line break on open and close)
10806 Nesting tags, paragraphs on lines which begin with <div>
10810 <div></div><strong>A
10819 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10821 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10825 <blockquote>Line one
10827 Line two</blockquote>
10829 <blockquote>Line one
10830 Line two</blockquote>
10835 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10842 Line two</blockquote>
10847 Line two</blockquote>
10852 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10856 <blockquote>Line one
10861 <blockquote>Line one
10869 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10888 Paragraphs inside blockquotes/divs (no extra line breaks)
10890 <blockquote><div>Line one
10892 Line two</div></blockquote>
10894 <blockquote><div>Line one
10895 Line two</div></blockquote>
10900 Paragraphs inside blockquotes/divs (extra line break on open)
10905 Line two</div></blockquote>
10910 Line two</div></blockquote>
10915 Paragraphs inside blockquotes/divs (extra line break on close)
10917 <blockquote><div>Line one
10920 </div></blockquote>
10922 <blockquote><div>Line one
10925 </div></blockquote>
10930 Paragraphs inside blockquotes/divs (extra line break on open and close)
10936 </div></blockquote>
10942 </div></blockquote>
10947 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10949 wgLinkHolderBatchSize=0
10955 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10956 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10957 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10962 Free external link invading image caption
10964 [[Image:Foobar.jpg|thumb|http://x|hello]]
10966 <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>
10971 Bug 15196: localised external link numbers
10975 [http://en.wikipedia.org/]
10977 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10982 Multibyte character in padleft
10984 {{padleft:-Hello|7|Æ}}
10991 Multibyte character in padright
10993 {{padright:Hello-|7|Æ}}
11002 wgUseDynamicDates=1
11006 <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>
11011 formatdate parser function
11013 {{#formatdate:2009-03-24}}
11015 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11020 formatdate parser function, with default format
11022 {{#formatdate:2009-03-24|mdy}}
11024 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11029 Linked date with autoformatting disabled
11031 wgUseDynamicDates=false
11035 <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>
11040 Spacing of numbers in formatted dates
11042 {{#formatdate:January 15}}
11044 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11049 Spacing of numbers in formatted dates (linked)
11051 wgUseDynamicDates=true
11055 <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>
11060 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
11062 language=nl title=[[MediaWiki:Common.css]]
11064 {{#formatdate:2009-03-24|dmy}}
11066 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11079 Edit comment with link
11083 I like the [[Main Page]] a lot
11085 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11089 Edit comment with link and link text
11093 I like the [[Main Page|best pages]] a lot
11095 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11099 Edit comment with link and link text with suffix
11103 I like the [[Main Page|best page]]s a lot
11105 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11109 Edit comment with section link (non-local, eg in history list)
11111 comment title=[[Main Page]]
11113 /* External links */ removed bogus entries
11115 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11119 Edit comment with section link and text before it (non-local, eg in history list)
11121 comment title=[[Main Page]]
11123 pre-comment text /* External links */ removed bogus entries
11125 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>
11129 Edit comment with section link (local, eg in diff view)
11131 comment local title=[[Main Page]]
11133 /* External links */ removed bogus entries
11135 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11139 Edit comment with subpage link (bug 14080)
11143 title=[[Subpage test]]
11145 Poked at a [[/subpage]] here...
11147 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11151 Edit comment with subpage link and link text (bug 14080)
11155 title=[[Subpage test]]
11157 Poked at a [[/subpage|neat little page]] here...
11159 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11163 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11166 title=[[Subpage test]]
11168 Poked at a [[/subpage]] here...
11170 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11174 Edit comment with bare anchor link (local, as on diff)
11178 title=[[Main Page]]
11182 <a href="#section">#section</a>
11186 Edit comment with bare anchor link (non-local, as on history)
11189 title=[[Main Page]]
11193 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11197 Anchor starting with underscore
11201 <p><a href="#_ref">One</a>
11206 Id starting with underscore
11208 <div id="_ref"></div>
11210 <div id="_ref"></div>
11215 Space normalisation on autocomment (bug 22784)
11218 title=[[Main Page]]
11220 /* __hello__world__ */
11222 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11226 percent-encoding and + signs in comments (Bug 26410)
11230 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11232 <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>
11236 Bad images - basic functionality
11245 Bad images - bug 16039: text after bad image disappears
11259 Verify that displaytitle works (bug #22501) no displaytitle
11263 wgAllowDisplayTitle=true
11264 wgRestrictDisplayTitle=false
11266 this is not the the title
11269 <p>this is not the the title
11274 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11279 wgAllowDisplayTitle=true
11280 wgRestrictDisplayTitle=false
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 mismatch
11296 wgAllowDisplayTitle=true
11297 wgRestrictDisplayTitle=true
11299 this is not the the title
11300 {{DISPLAYTITLE:whatever}}
11303 <p>this is not the the title
11308 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11313 wgAllowDisplayTitle=true
11314 wgRestrictDisplayTitle=true
11316 this is not the the title
11317 {{DISPLAYTITLE:screen}}
11320 <p>this is not the the title
11325 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11330 wgAllowDisplayTitle=false
11332 this is not the the title
11333 {{DISPLAYTITLE:screen}}
11336 <p>this is not the the title
11337 <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>
11342 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11347 wgAllowDisplayTitle=false
11349 this is not the the title
11352 <p>this is not the the title
11357 preload: check <noinclude> and <includeonly>
11361 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11367 preload: check <onlyinclude>
11371 Goodbye <onlyinclude>Hello world</onlyinclude>
11377 preload: can pass tags through if we want to
11381 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11383 <includeonly>Hello world</includeonly>
11387 preload: check that it doesn't try to do tricks
11391 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11393 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11397 Play a bit with r67090 and bug 3158
11401 <div style="width:50% !important"> </div>
11402 <div style="width:50% !important"> </div>
11403 <div style="width:50% !important"> </div>
11404 <div style="border : solid;"> </div>
11406 <div style="width:50% !important"> </div>
11407 <div style="width:50% !important"> </div>
11408 <div style="width:50% !important"> </div>
11409 <div style="border : solid;"> </div>
11414 HTML5 data attributes
11416 <span data-foo="bar">Baz</span>
11417 <p data-abc-def_hij="">Quuz</p>
11419 <p><span data-foo="bar">Baz</span>
11421 <p data-abc-def_hij="">Quuz</p>
11426 percent-encoding and + signs in internal links (Bug 26410)
11428 [[User:+%]] [[Page+title%]]
11429 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11430 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11431 [[%33%45]] [[%33%45+]]
11433 <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>
11434 <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>
11435 <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>
11436 <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>
11441 Special characters in embedded file links (bug 27679)
11443 [[File:Contains & ampersand.jpg]]
11444 [[File:Does not exist.jpg|Title with & ampersand]]
11446 <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>
11447 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11453 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11455 Text's been normalized?
11457 <p>Text's been normalized?
11462 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11464 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11466 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11471 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11473 [http://www.example.org/ ideograms]
11475 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11480 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11482 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11484 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11508 Bug 31098 Template which includes system messages which includes the template
11512 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11513 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11518 Bug31490 Turkish: ucfirst 'blah'
11529 Bug31490 Turkish: ucfirst 'ix'
11540 Bug31490 Turkish: lcfirst 'BLAH'
11551 Bug31490 Turkish: ucfırst (with a dotless i)
11557 <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>
11562 Bug31490 ucfırst (with a dotless i) with English language
11568 <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>
11573 Bug 26375: TOC with italics
11575 title=[[Main Page]]
11578 == ''Lost'' episodes ==
11580 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11582 <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>
11585 <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>
11590 Bug 26375: TOC with bold
11592 title=[[Main Page]]
11595 == '''should be bold''' then normal text ==
11597 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11599 <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>
11602 <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>
11607 Bug 33845: Headings become cursive in TOC when they contain an image
11609 title=[[Main Page]]
11612 == Image [[Image:foobar.jpg]] ==
11614 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11616 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11619 <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>
11624 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11626 title=[[Main Page]]
11629 == <blockquote>Quote</blockquote> ==
11631 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11633 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11636 <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>
11641 Unclosed tags in TOC
11643 title=[[Main Page]]
11647 <small>Hanc marginis exiguitas non caperet.</small>
11650 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11652 <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>
11655 <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>
11656 <p><small>Hanc marginis exiguitas non caperet.</small>
11662 Multiple tags in TOC
11665 == <i>Foo</i> <b>Bar</b> ==
11667 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11669 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11671 <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>
11672 <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>
11675 <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>
11676 <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>
11681 Tags with parameters in TOC
11684 == <sup class="in-h2">Hello</sup> ==
11686 == <sup class="a > b">Evilbye</sup> ==
11688 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11690 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11691 <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>
11694 <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>
11695 <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>
11700 span tags with directionality in TOC
11703 == <span dir="ltr">C++</span> ==
11705 == <span dir="rtl">זבנג!</span> ==
11707 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11709 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11711 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11713 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11715 <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>
11716 <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>
11717 <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>
11718 <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>
11719 <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>
11722 <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>
11723 <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>
11724 <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>
11725 <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>
11726 <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>
11733 == {{int:headline_sample}} ==
11737 Bug 32057: Title needed when expanding <h> nodes.
11739 title=[[Main Page]]
11743 <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>
11748 Strip marker in urlencode
11750 {{urlencode:x<nowiki/>y}}
11751 {{urlencode:x<nowiki/>y|wiki}}
11752 {{urlencode:x<nowiki/>y|path}}
11779 Strip marker in formatNum
11781 {{formatnum:1<nowiki/>2}}
11782 {{formatnum:1<nowiki/>2|R}}
11790 Strip marker in grammar
11794 {{grammar:elative|foo<nowiki/>bar}}
11801 Strip marker in padleft
11803 {{padleft:|2|x<nowiki/>y}}
11810 Strip marker in padright
11812 {{padright:|2|x<nowiki/>y}}
11819 Strip marker in anchorencode
11821 {{anchorencode:x<nowiki/>y}}
11828 nowiki inside link inside heading (bug 18295)
11830 ==[[foo|x<nowiki>y</nowiki>z]]==
11832 <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>
11837 new support for bdi element (bug 31817)
11839 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11841 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11846 Ignore pipe between table row attributes
11850 |- id=foo | style='color: red'
11858 <tr id="foo" style="color: red">
11865 Gallery override link with WikiLink (bug 34852)
11868 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11871 <ul class="gallery">
11872 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11873 <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>
11874 <div class="gallerytext">
11884 Gallery override link with absolute external link (bug 34852)
11887 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11890 <ul class="gallery">
11891 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11892 <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>
11893 <div class="gallerytext">
11903 Gallery override link with malicious javascript (bug 34852)
11906 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11909 <ul class="gallery">
11910 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11911 <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>
11912 <div class="gallerytext">
11922 Language parser function
11931 Padleft and padright as substr
11933 {{padleft:|3|abcde}}
11934 {{padright:|3|abcde}}
11942 Bug 34939 - Case insensitive link parsing ([HttP://])
11944 [HttP://MediaWiki.Org/]
11946 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11951 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11953 [HttP://MediaWiki.Org/ MediaWiki]
11955 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11960 Bug 34939 - Case insensitive link parsing (HttP://)
11962 HttP://MediaWiki.Org/
11964 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11969 ### Parsoids-specific tests
11970 ### Parsoid-PHP parser incompatibilities
11973 1. SOL-sensitive wikitext tokens as template-args
11987 #### The following section of tests are primarily to test
11988 #### wikitext escaping capabilities of Parsoid.
11989 #### A lot of the tests are disabled for the PHP parser either
11990 #### because of minor newline diffs or other reasons.
11991 #### As Parsoid serializer can handle newlines and other HTML
11992 #### more robustly, some of these tests might get reenabled
11993 #### for the PHP parser.
11995 #### --------------- Headings ---------------
11997 #### 1. Nested inside html <h1>=foo=</h1>
11998 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11999 #### 3. Nested inside html with wikitext split by html tags
12000 #### 4. No escape needed
12001 #### 5. Empty headings <h1></h1>
12002 #### 6. Heading chars in SOL context
12003 #### ----------------------------------------
12005 Headings: 0. Unnested
12007 <nowiki>=foo=</nowiki>
12009 <nowiki>=foo</nowiki>''a''=
12012 </p><p>=foo<i>a</i>=
12017 Headings: 1. Nested inside html
12021 =<nowiki>=foo=</nowiki>=
12022 ==<nowiki>=foo=</nowiki>==
12023 ===<nowiki>=foo=</nowiki>===
12024 ====<nowiki>=foo=</nowiki>====
12025 =====<nowiki>=foo=</nowiki>=====
12026 ======<nowiki>=foo=</nowiki>======
12037 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12042 <nowiki>*bar</nowiki>
12046 <nowiki>=bar=</nowiki>
12054 Headings: 3. Nested inside html with wikitext split by html tags
12058 =<nowiki>=</nowiki>'''bold'''foo==
12060 <h1>=<b>bold</b>foo=</h1>
12064 Headings: 4. No escaping needed (testing just h1 and h2)
12079 <h1><i>=</i>foo=</h1>
12084 Headings: 5. Empty headings
12088 =<nowiki></nowiki>=
12089 ==<nowiki></nowiki>==
12090 ===<nowiki></nowiki>===
12091 ====<nowiki></nowiki>====
12092 =====<nowiki></nowiki>=====
12093 ======<nowiki></nowiki>======
12104 Headings: 6. Heading chars in SOL context
12108 <!--cmt--><nowiki>=h1=</nowiki>
12114 #### --------------- Lists ---------------
12115 #### 0. Outside nests (*foo, etc.)
12116 #### 1. Nested inside html <ul><li>*foo</li></ul>
12117 #### 2. Inside definition lists
12118 #### 3. Only bullets at start should be escaped
12119 #### 4. No escapes needed
12120 #### 5. No unnecessary escapes
12121 #### 6. Escape bullets in SOL position
12122 #### 7. Escape bullets in a multi-line context
12123 #### ----------------------------------------
12126 Lists: 0. Outside nests
12128 <nowiki>*foo</nowiki>
12130 <nowiki>#foo</nowiki>
12138 Lists: 1. Nested inside html
12140 *<nowiki>*foo</nowiki>
12142 *<nowiki>#foo</nowiki>
12144 *<nowiki>:foo</nowiki>
12146 *<nowiki>;foo</nowiki>
12148 #<nowiki>*foo</nowiki>
12150 #<nowiki>#foo</nowiki>
12152 #<nowiki>:foo</nowiki>
12154 #<nowiki>;foo</nowiki>
12176 Lists: 2. Inside definition lists
12178 ;<nowiki>;foo</nowiki>
12180 ;<nowiki>:foo</nowiki>
12182 ;<nowiki>:foo</nowiki>
12185 :<nowiki>:foo</nowiki>
12200 Lists: 3. Only bullets at start of text should be escaped
12202 *<nowiki>*foo*bar</nowiki>
12204 *<nowiki>*foo</nowiki>''it''*bar
12208 <ul><li>*foo<i>it</i>*bar
12214 Lists: 4. No escapes needed
12226 <ul><li><i>foo</i>*bar
12228 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12233 Lists: 5. No unnecessary escapes
12235 * bar <span><nowiki>[[foo]]</nowiki></span>
12237 *=bar <span><nowiki>[[foo]]</nowiki></span>
12239 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12241 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12243 *=bar <span>foo]]</span>=
12245 <ul><li> bar <span>[[foo]]</span>
12247 <ul><li>=bar <span>[[foo]]</span>
12249 <ul><li>[[bar <span>[[foo]]</span>
12251 <ul><li>]]bar <span>[[foo]]</span>
12253 <ul><li>=bar <span>foo]]</span>=
12259 Lists: 6. Escape bullets in SOL position
12263 <!--cmt--><nowiki>*foo</nowiki>
12270 Lists: 7. Escape bullets in a multi-line context
12280 #### --------------- HRs ---------------
12281 #### 1. Single line
12282 #### -----------------------------------
12285 HRs: 1. Single line
12290 <nowiki>----</nowiki>
12292 <nowiki>=foo=</nowiki>
12294 <nowiki>*foo</nowiki>
12301 #### --------------- Tables ---------------
12302 #### 1a. Simple example
12303 #### 1b. No escaping needed (!foo)
12304 #### 1c. No escaping needed (|foo)
12305 #### 1d. No escaping needed (|}foo)
12307 #### 2a. Nested in td (<td>foo|bar</td>)
12308 #### 2b. Nested in td (<td>foo||bar</td>)
12309 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12311 #### 3a. Nested in th (<th>foo!bar</th>)
12312 #### 3b. Nested in th (<th>foo!!bar</th>)
12313 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12317 #### 4c. No escaping needed
12318 #### --------------------------------------
12321 Tables: 1a. Simple example
12332 Tables: 1b. No escaping needed
12341 Tables: 1c. No escaping needed
12350 Tables: 1d. No escaping needed
12359 Tables: 2a. Nested in td
12364 |<nowiki>foo|bar</nowiki>
12374 Tables: 2b. Nested in td
12379 |<nowiki>foo||bar</nowiki>
12380 |''it''<nowiki>foo||bar</nowiki>
12385 </td><td><i>it</i>foo||bar
12391 Tables: 2c. Nested in td -- no escaping needed
12406 Tables: 3a. Nested in th
12421 Tables: 3b. Nested in th
12426 !<nowiki>foo!!bar</nowiki>
12436 Tables: 3c. Nested in th -- no escaping needed
12451 Tables: 4a. Escape -
12459 |<nowiki>-bar</nowiki>
12463 <tr><th>-bar</th></tr>
12464 <tr><td>-bar</td></tr>
12469 Tables: 4b. Escape +
12477 |<nowiki>+bar</nowiki>
12481 <tr><th>+bar</th></tr>
12482 <tr><td>+bar</td></tr>
12487 Tables: 4c. No escaping needed
12501 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12502 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12506 #### --------------- Links ---------------
12507 #### 1. Quote marks in link text
12508 #### 2. Wikilinks: Escapes needed
12509 #### 3. Wikilinks: No escapes needed
12510 #### 4. Extlinks: Escapes needed
12511 #### 5. Extlinks: No escapes needed
12512 #### --------------------------------------
12514 Links 1. Quote marks in link text
12518 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12520 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12524 Links 2. WikiLinks: Escapes needed
12528 [[Foo|<nowiki>[Foobar]</nowiki>]]
12529 [[Foo|<nowiki>Foobar]</nowiki>]]
12530 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12531 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12532 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12533 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12534 [[Foo|<nowiki>|Bar</nowiki>]]
12536 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12537 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12538 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12539 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12540 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12541 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12542 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12546 Links 3. WikiLinks: No escapes needed
12553 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12554 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12558 Links 4. ExtLinks: Escapes needed
12562 [http://google.com <nowiki>[google]</nowiki>]
12563 [http://google.com <nowiki>google]</nowiki>]
12565 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12566 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12570 Links 5. ExtLinks: No escapes needed
12574 [http://google.com [google]
12576 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12579 #### --------------- Quotes ---------------
12580 #### 1. Quotes inside <b> and <i>
12581 #### 2. Link fragments separated by <i> and <b> tags
12582 #### 3. Link fragments inside <i> and <b>
12583 #### --------------------------------------
12585 1. Quotes inside <b> and <i>
12587 ''<nowiki>'foo'</nowiki>''
12588 ''<nowiki>''foo''</nowiki>''
12589 ''<nowiki>'''foo'''</nowiki>''
12590 '''<nowiki>'foo'</nowiki>'''
12591 '''<nowiki>''foo''</nowiki>'''
12592 '''<nowiki>'''foo'''</nowiki>'''
12593 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12601 <b>foo'<i>bar'</i>baz</b>
12606 2. Link fragments separated by <i> and <b> tags
12608 [[''foo''<nowiki>hello]]</nowiki>
12610 [['''foo'''<nowiki>hello]]</nowiki>
12612 <p>[[<i>foo</i>hello]]
12613 </p><p>[[<b>foo</b>hello]]
12618 2. Link fragments inside <i> and <b>
12619 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12620 this is one of the shortcomings of this format)
12622 ''[[foo''<nowiki>]]</nowiki>
12624 '''[[foo'''<nowiki>]]</nowiki>
12627 </p><p><b>[[foo</b>]]
12631 #### --------------- Paragraphs ---------------
12632 #### 1. No unnecessary escapes
12633 #### --------------------------------------
12636 1. No unnecessary escapes
12638 bar <span><nowiki>[[foo]]</nowiki></span>
12640 =bar <span><nowiki>[[foo]]</nowiki></span>
12642 [[bar <span><nowiki>[[foo]]</nowiki></span>
12644 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12646 <nowiki>=bar </nowiki><span>foo]]</span>=
12648 <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>
12652 </p><p>=bar <span>foo]]</span>=
12656 #### --------------- PRE ------------------
12657 #### 1. Leading space in SOL context should be escaped
12658 #### --------------------------------------
12660 1. Leading space in SOL context should be escaped
12664 <nowiki> foo</nowiki>
12665 <!--cmt--><nowiki> foo</nowiki>
12672 #### --------------- HTML tags ---------------
12675 #### 3. multi-line html tag
12676 #### --------------------------------------
12682 <a href="http://google.com">google</a>
12684 <a href="http://google.com">google</a>
12690 <nowiki><div>foo</div>
12691 <div style="color:red">foo</div></nowiki>
12693 <p><div>foo</div>
12694 <div style="color:red">foo</div>
12699 3. multi-line html tag
12711 #### --------------- Others ---------------
12715 <nowiki>foo</nowiki>
12717 <p><nowiki>foo</nowiki>
12726 Try for 100% code coverage