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
124 This is a simple paragraph.
126 <p>This is a simple paragraph.
131 Paragraphs with extra newline spacing
169 * plain''italic''plain
170 * plain''italic''plain''italic''plain
171 * plain'''bold'''plain
172 * plain'''bold'''plain'''bold'''plain
173 * plain''italic''plain'''bold'''plain
174 * plain'''bold'''plain''italic''plain
175 * plain''italic'''bold-italic'''italic''plain
176 * plain'''bold''bold-italic''bold'''plain
177 * plain'''''bold-italic'''italic''plain
178 * plain'''''bold-italic''bold'''plain
179 * plain''italic'''bold-italic'''''plain
180 * plain'''bold''bold-italic'''''plain
181 * plain l'''italic''plain
182 * plain l''''bold''' plain
185 </li><li> plain<i>italic</i>plain
186 </li><li> plain<i>italic</i>plain<i>italic</i>plain
187 </li><li> plain<b>bold</b>plain
188 </li><li> plain<b>bold</b>plain<b>bold</b>plain
189 </li><li> plain<i>italic</i>plain<b>bold</b>plain
190 </li><li> plain<b>bold</b>plain<i>italic</i>plain
191 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
192 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
193 </li><li> plain<i><b>bold-italic</b>italic</i>plain
194 </li><li> plain<b><i>bold-italic</i>bold</b>plain
195 </li><li> plain<i>italic<b>bold-italic</b></i>plain
196 </li><li> plain<b>bold<i>bold-italic</i></b>plain
197 </li><li> plain l'<i>italic</i>plain
198 </li><li> plain l'<b>bold</b> plain
204 ### 2-quote opening sequence tests
207 Italics and bold: 2-quote opening sequence: (2,2)
217 Italics and bold: 2-quote opening sequence: (2,3)
227 Italics and bold: 2-quote opening sequence: (2,4)
237 Italics and bold: 2-quote opening sequence: (2,5)
247 ### 3-quote opening sequence tests
251 Italics and bold: 3-quote opening sequence: (3,2)
261 Italics and bold: 3-quote opening sequence: (3,3)
271 Italics and bold: 3-quote opening sequence: (3,4)
281 Italics and bold: 3-quote opening sequence: (3,5)
291 ### 4-quote opening sequence tests
295 Italics and bold: 4-quote opening sequence: (4,2)
305 Italics and bold: 4-quote opening sequence: (4,3)
315 Italics and bold: 4-quote opening sequence: (4,4)
325 Italics and bold: 4-quote opening sequence: (4,5)
335 ### 5-quote opening sequence tests
339 Italics and bold: 5-quote opening sequence: (5,2)
349 Italics and bold: 5-quote opening sequence: (5,3)
359 Italics and bold: 5-quote opening sequence: (5,4)
363 <p><i><b>foo'</b></i>
369 Italics and bold: 5-quote opening sequence: (5,5)
378 ### multiple quote sequences in a line
381 Italics and bold: multiple quote sequences: (2,4,2)
385 <p><i>foo'<b>bar</b></i>
391 Italics and bold: multiple quote sequences: (2,4,3)
395 <p><i>foo'<b>bar</b></i>
401 Italics and bold: multiple quote sequences: (2,4,4)
405 <p><i>foo'<b>bar'</b></i>
411 Italics and bold: multiple quote sequences: (3,4,2)
421 Italics and bold: multiple quote sequences: (3,4,3)
430 ### other quote tests
433 Italics and bold: other quote tests: (2,3,5)
435 ''this is about '''foo's family'''''
437 <p><i>this is about <b>foo's family</b></i>
443 Italics and bold: other quote tests: (2,(3,3),2)
445 ''this is about '''foo's''' family''
447 <p><i>this is about <b>foo's</b> family</i>
453 Italics and bold: other quote tests: (3,2,3,2)
455 '''this is about ''foo'''s family''
457 <p><b>this is about <i>foo</i></b><i>s family</i>
463 Italics and bold: other quote tests: (3,2,3,3)
465 '''this is about ''foo'''s family'''
467 <p>'<i>this is about </i>foo<b>s family</b>
474 Italics and bold: other quote tests: (3,(2,2),3)
476 '''this is about ''foo's'' family'''
478 <p><b>this is about <i>foo's</i> family</b>
483 ### <nowiki> test cases
487 <nowiki> unordered list
489 <nowiki>* This is not an unordered list item.</nowiki>
491 <p>* This is not an unordered list item.
498 <nowiki>Lorem ipsum dolor
519 :There is not nowiki.
520 :There is <nowiki>nowiki</nowiki>.
522 #There is not nowiki.
523 #There is <nowiki>nowiki</nowiki>.
525 *There is not nowiki.
526 *There is <nowiki>nowiki</nowiki>.
528 <dl><dd>There is not nowiki.
529 </dd><dd>There is nowiki.
531 <ol><li>There is not nowiki.
532 </li><li>There is nowiki.
534 <ul><li>There is not nowiki.
535 </li><li>There is nowiki.
547 <!-- comment 1 --> asdf
549 <!-- comment 1 --> asdf
552 <!-- comment 1 --> asdf
553 <!-- comment 2 -->xyz
555 <!-- comment 1 --> asdf
556 <!-- comment 2 --> xyz
612 asdf<!-- comment 1 -->jkl
622 <!-- foo --> b <!-- bar -->
636 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
642 Comment semantics and delimiters
644 <!-- --><!----><!-----><!------>
650 Comment semantics and delimiters, redux
652 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
653 -- foo -- funky huh? ... -->
659 Comment semantics and delimiters: directors cut
661 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
662 everything starting with < followed by !-- until the first -- and > we see,
663 that wouldn't be valid XML however, since in XML -- has to terminate a comment
671 Comment semantics: nesting
673 <!--<!-- no, we're not going to do anything fancy here -->-->
680 Comment semantics: unclosed comment at end
682 <!--This comment will run out to the end of the document
688 Comment in template title
697 Comment on its own line post-expand
709 Comment on its own line post-expand with non-significant whitespace
721 ### paragraph wraping tests
735 Block tag on one line
747 Block tag on both lines
759 Multiple lines without block tags
777 ### Preformatted text
786 And a [[Main Page|link]]
792 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
797 Ident preformatting with inline content
808 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
825 Regression with preformatted in <center>
838 # Expected output in the following test is not really expected (there should be
839 # <pre> in the output) -- it's only testing for well-formedness.
841 Bug 6200: Preformatted in <blockquote>
854 <pre> with attributes (bug 3202)
856 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
858 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
863 <pre> with width attribute (bug 3202)
865 <pre width="8">Narrow screen goodies</pre>
867 <pre width="8">Narrow screen goodies</pre>
872 <pre> with forbidden attribute (bug 3202)
874 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
876 <pre width="8">Narrow screen goodies</pre>
881 <pre> with forbidden attribute values (bug 3202)
883 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
885 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
890 <nowiki> inside <pre> (bug 13238)
898 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
906 <pre><nowiki>Foo</nowiki></pre>
911 <nowiki> and <pre> preference (first one wins)
944 <nowiki></pre></nowiki>
951 Templates: Pre: 1a. Templates that break a line should suppress <pre>
959 Templates: Pre: 1b. Templates that break a line should suppress <pre>
969 Templates: Pre: 1c: Wrapping should be based on expanded content
981 Templates: Pre: 1d: Wrapping should be based on expanded content
1002 Templates: Pre: 1e. Wrapping should be based on expanded content
1006 {{echo| foo}}{{echo| bar}}
1011 {{echo|<!--cmt--> foo}}
1013 <!--cmt-->{{echo| foo}}
1015 {{echo|{{echo| }}bar}}
1033 Templates: Pre: 1f: Wrapping should be based on expanded content
1070 Templates: Single-line variant of parameter whitespace stripping test
1076 {{echo|{{echo| a}}}}
1078 {{echo|1={{echo| a}}}}
1091 Templates: Strip whitespace from named parameters, but not positional ones
1119 ### Parsoid-centric tests for testing RT edge cases for pre
1123 1a. Pre and Comments
1136 1b. Pre and Comments
1149 1c. Pre and Comments
1199 3a. Pre and block tags (single-line html)
1207 <pre><span> foo </span>
1212 3b. Pre and block tags (pre-content on separate line)
1264 4. Multiple spaces at start-of-line
1283 ### Definition lists
1290 <dl><dt> name </dt><dd> Definition
1296 Definition list for indentation only
1300 <dl><dd> Indented text
1306 Definition list with no space
1310 <dl><dt>name</dt><dd>Definition
1316 Definition list with URL link
1318 ; http://example.com/ : definition
1320 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1326 Definition list with bracketed URL link
1328 ;[http://www.example.com/ Example]:Something about it
1330 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1336 Definition list with wikilink containing colon
1338 ; [[Help:FAQ]]: The least-read page on Wikipedia
1340 <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
1345 # At Brion's and JeLuF's insistence... :)
1347 Definition list with news link containing colon
1349 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1351 <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!
1357 Malformed definition list with colon
1359 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1361 <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
1367 Definition lists: colon in external link text
1369 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1371 <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
1377 Definition lists: colon in HTML attribute
1379 ;<b style="display: inline">bold</b>
1381 <dl><dt><b style="display: inline">bold</b>
1387 Definition lists: self-closed tag
1389 ;one<br/>two : two-line fun
1391 <dl><dt>one<br />two </dt><dd> two-line fun
1397 Bug 11748: Literal closing tags
1401 <dd>test test test test test</dd>
1403 <dd>test test test test test</dd>
1408 <dd>test test test test test</dd>
1410 <dd>test test test test test</dd>
1416 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1419 ; term : description
1425 <dl><dt> term </dt><dd> description
1436 Definition list with empty definition and following paragraph
1441 <dl><dt> term</dt><dd>
1448 Nested definition lists using html syntax
1465 Definition Lists: No nesting: Multiple dd's
1479 Definition Lists: Indentation: Regular
1495 Definition Lists: Indentation: Missing 1st level
1509 Definition Lists: Indentation: Multi-level indent
1513 <dl><dd><dl><dd><dl><dd>i3
1521 Definition Lists: Hacky use to indent tables
1528 should be left alone
1530 <dl><dd><dl><dd><table>
1535 </td></tr></table></dd></dl></dd></dl>
1537 should be left alone
1540 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1541 ## as an empty dt item. It also ignores all but the last ";" when followed
1542 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1543 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1546 ## Ex: ";;t2 ::d2" is transformed into:
1558 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1559 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1570 ## All Parsoid only definition list tests have this difference.
1572 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1573 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1576 Definition Lists: Nesting: Multi-level (Parsoid only)
1606 Definition Lists: Nesting: Test 2 (Parsoid only)
1626 Definition Lists: Nesting: Test 3 (Parsoid only)
1654 Definition Lists: Nesting: Test 4
1659 <dl><dd><dl><dd><dl><dt>t3
1669 Definition Lists: Mixed Lists: Test 1
1675 <dl><dd><dl><dt><ul><li> foo
1687 Definition Lists: Mixed Lists: Test 2
1701 Definition Lists: Mixed Lists: Test 3
1706 <ul><li><dl><dd><dl><dd><dl><dd> d1
1717 Definition Lists: Mixed Lists: Test 4
1722 <ul><li><dl><dt>d1 </dt><dd>d2
1723 </dd><dt>d3 </dt><dd>d4
1731 Definition Lists: Mixed Lists: Test 5
1746 Definition Lists: Mixed Lists: Test 6
1751 <ol><li><ul><li><dl><dd>d1
1763 Definition Lists: Mixed Lists: Test 7
1777 Definition Lists: Mixed Lists: Test 8
1793 Definition Lists: Mixed Lists: Test 9
1797 <ul><li><dl><dt>foo </dt><dd>bar
1805 Definition Lists: Mixed Lists: Test 10
1809 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1818 Definition Lists: Mixed Lists: Test 11
1823 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1828 <dl><dt>boo </dt><dd>baz
1839 Definition Lists: Weird Ones: Test 1
1841 *#;*::;; foo : bar (who uses this?)
1843 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1859 External links: non-bracketed
1861 Non-bracketed: http://example.com
1863 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1868 External links: numbered
1870 Numbered: [http://example.com]
1871 Numbered: [http://example.net]
1872 Numbered: [http://example.com]
1874 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1875 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1876 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1881 External links: specified text
1883 Specified text: [http://example.com link]
1885 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1890 External links: trail
1892 Linktrails should not work for external links: [http://example.com link]s
1894 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1899 External links: dollar sign in URL
1901 http://example.com/1$2345
1903 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1908 External links: dollar sign in URL (named)
1910 [http://example.com/1$2345]
1912 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1917 External links: open square bracket forbidden in URL (bug 4377)
1919 http://example.com/1[2345
1921 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1926 External links: open square bracket forbidden in URL (named) (bug 4377)
1928 [http://example.com/1[2345]
1930 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1935 External links: nowiki in URL link text (bug 6230)
1937 [http://example.com/ <nowiki>''example site''</nowiki>]
1939 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1944 External links: newline forbidden in text (bug 6230 regression check)
1946 [http://example.com/ first
1949 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1955 External links: Pipe char between url and text
1957 [http://example.com | link]
1959 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1964 External links: protocol-relative URL in brackets
1966 [//example.com/ Test]
1968 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1973 External links: protocol-relative URL in brackets without text
1977 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1982 External links: protocol-relative URL in free text is left alone
1986 <p>//example.com/Foo
1991 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1993 foo//example.com/Foo
1995 <p>foo//example.com/Foo
2002 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2004 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2009 External image from https
2011 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2013 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2018 Link to non-http image, no img tag
2020 Link to non-http image, no img tag: ftp://example.com/test.jpg
2022 <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>
2027 External links: terminating separator
2029 Terminating separator: http://example.com/thing,
2031 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2036 External links: intervening separator
2038 Intervening separator: http://example.com/1,2,3
2040 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2045 External links: old bug with URL in query
2047 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2049 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2054 External links: old URL-in-URL bug, mixed protocols
2056 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2058 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2063 External links: URL in text
2065 URL in text: [http://example.com http://example.com]
2067 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2072 External links: Clickable images
2074 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2076 <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>
2081 External links: raw ampersand
2083 Old & use: http://x&y
2085 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2090 External links: encoded ampersand
2092 Old & use: http://x&y
2094 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2099 External links: encoded equals (bug 6102)
2101 http://example.com/?foo=bar
2103 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2108 External links: [raw ampersand]
2110 Old & use: [http://x&y]
2112 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2117 External links: [encoded ampersand]
2119 Old & use: [http://x&y]
2121 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2126 External links: [encoded equals] (bug 6102)
2128 [http://example.com/?foo=bar]
2130 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2135 External links: [IDN ignored character reference in hostname; strip it right off]
2137 [http://e‌xample.com/]
2139 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2143 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2144 # Where an external link could easily circumvent the sanitization of the text of
2145 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2146 # test demands a higher standard. That's a bit strange.
2150 # http://example.com -> [http://example.com|http://example.com]
2151 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2153 # The first example is sanitized, but the second is not. Any security benefits
2154 # from this production are trivial to circumvent. Either remove this test and
2155 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2156 # the test accordingly.
2161 External links: IDN ignored character reference in hostname; strip it right off
2163 http://e‌xample.com/
2165 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2170 External links: www.jpeg.org (bug 554)
2174 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2179 External links: URL within URL (original bug 2)
2181 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2183 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2188 BUG 361: URL inside bracketed URL
2190 [http://www.example.com/foo http://www.example.com/bar]
2192 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2197 BUG 361: URL within URL, not bracketed
2199 http://www.example.com/foo?=http://www.example.com/bar
2201 <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>
2206 BUG 289: ">"-token in URL-tail
2208 http://www.example.com/<hello>
2210 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2215 BUG 289: literal ">"-token in URL-tail
2217 http://www.example.com/<b>html</b>
2219 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2224 BUG 289: ">"-token in bracketed URL
2226 [http://www.example.com/<hello> stuff]
2228 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2233 BUG 289: literal ">"-token in bracketed URL
2235 [http://www.example.com/<b>html</b> stuff]
2237 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2242 BUG 289: literal double quote at end of URL
2244 http://www.example.com/"hello"
2246 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2251 BUG 289: literal double quote in bracketed URL
2253 [http://www.example.com/"hello" stuff]
2255 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2260 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2262 [http://www.example.com test]
2264 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2269 External links: wiki links within external link (Bug 3695)
2271 [http://example.com [[wikilink]] embedded in ext link]
2273 <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>
2278 BUG 787: Links with one slash after the url protocol are invalid
2282 [http:/example.com title]
2284 <p>http:/example.com
2285 </p><p>[http:/example.com title]
2290 Bracketed external links with template-generated invalid target
2292 [{{echo|http:/example.com}} title]
2294 <p>[http:/example.com title]
2299 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2301 ''[http://example.com text'']
2302 [http://example.com '''text]'''
2303 ''Something [http://example.com in italic'']
2304 ''Something [http://example.com mixed''''', even bold]'''
2305 '''''Now [http://example.com both''''']
2307 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2308 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2309 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2310 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2311 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2317 Bug 4781: %26 in URL
2319 http://www.example.com/?title=AT%26T
2321 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2325 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2326 # % is actually legal in HTML5. Any change in output would need testing though.
2328 Bug 4781, 5267: %25 in URL
2330 http://www.example.com/?title=100%25_Bran
2332 <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>
2337 Bug 4781, 5267: %28, %29 in URL
2339 http://www.example.com/?title=Ben-Hur_%281959_film%29
2341 <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>
2347 Bug 4781: %26 in autonumber URL
2349 [http://www.example.com/?title=AT%26T]
2351 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2356 Bug 4781, 5267: %26 in autonumber URL
2358 [http://www.example.com/?title=100%25_Bran]
2360 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2365 Bug 4781, 5267: %28, %29 in autonumber URL
2367 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2369 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2375 Bug 4781: %26 in bracketed URL
2377 [http://www.example.com/?title=AT%26T link]
2379 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2384 Bug 4781, 5267: %26 in bracketed URL
2386 [http://www.example.com/?title=100%25_Bran link]
2388 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2393 Bug 4781, 5267: %28, %29 in bracketed URL
2395 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2397 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2402 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2404 Some [http://example.com/ pretty ''italics'' and stuff]!
2406 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2411 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2413 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2415 <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>
2420 External link containing double-single-quotes with no space separating the url from text in italics
2422 [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]].]
2424 <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>
2429 URL-encoding in URL functions (single parameter)
2431 {{localurl:Some page|amp=&}}
2433 <p>/index.php?title=Some_page&amp=&
2438 URL-encoding in URL functions (multiple parameters)
2440 {{localurl:Some page|q=?&=&}}
2442 <p>/index.php?title=Some_page&q=?&amp=&
2449 http://example.com/index.php?foozoid%5B%5D=bar
2451 http://example.com/index.php?foozoid[]=bar
2453 <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>
2454 </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>
2459 IPv6 urls (bug 21261)
2463 http://[2404:130:0:1000::187:2]/index.php
2465 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
2470 Non-extlinks in brackets
2479 [{{echo|foo}} ''bar'']
2480 [{{echo|foo}}l's] errand
2481 [{{echo|foo}}l's errand]
2503 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2505 Normal text. '''''Bold italic text.''''' Normal text.
2507 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2508 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2514 Unclosed and unmatched quotes
2516 '''''Bold italic text '''with bold deactivated''' in between.'''''
2518 '''''Bold italic text ''with italic deactivated'' in between.'''''
2522 ..spanning two paragraphs (should not work).'''
2524 '''Bold tag left open
2526 ''Italic tag left open
2530 <!-- Unmatching number of opening, closing tags: -->
2531 '''This year''''s election ''should'' beat '''last year''''s.
2533 ''Tom'''s car is bigger than ''Susan'''s.
2535 Plain ''italic'''s plain
2537 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2538 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2539 </p><p><b>Bold text..</b>
2540 </p><p>..spanning two paragraphs (should not work).
2541 </p><p><b>Bold tag left open</b>
2542 </p><p><i>Italic tag left open</i>
2544 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2545 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2546 </p><p>Plain <i>italic'</i>s plain
2553 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2556 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2557 # is the bare minimun required by the spec, see:
2558 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2560 A table with no data.
2566 # A table with nothing but a caption is invalid XHTML, we might want to render
2567 # this as <p>caption</p>
2569 A table with nothing but a caption
2577 </caption><tr><td></td></tr></table>
2603 Simple table but with multiple dashes for row wikitext
2621 Multiplication table
2623 {| border="1" cellpadding="2"
2624 |+Multiplication table
2626 ! × !! 1 !! 2 !! 3
2644 <table border="1" cellpadding="2">
2645 <caption>Multiplication table
2692 Allow +/- in 2nd and later cells in a row
2719 |rowspan=2| Cell 2, row 1 (and 2)
2730 <td rowspan="2"> Cell 2, row 1 (and 2)
2748 {| bgcolor=#ABCDEF border=2
2753 |the original table again
2761 <table bgcolor="#ABCDEF" border="2">
2769 <td>the original table again
2775 Invalid attributes in table cell (bug 1830)
2790 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2793 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2797 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2798 <td>]" onmouseover="alert(document.cookie)">test
2807 Indented table markup mixed with indented pre content (proposed in bug 6200)
2812 Text that should be rendered preformatted
2820 <pre>Text that should be rendered preformatted
2829 Template-generated table cell attributes and cell content
2837 <td style="color: red"> Foo
2843 Table with row followed by newlines and table heading
2860 # FIXME: Preserve the attribute properly (with an empty string as value) in
2861 # the PHP parser. Parsoid implements the behavior below.
2863 Table attributes with empty value
2882 Plain link, capitalized
2886 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2891 Plain link, uncapitalized
2895 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2902 [[Main Page|The Main Page]]
2904 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2913 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2918 Broken link with fragment
2920 [[Zigzagzogzagzig#zug]]
2922 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2927 Special page link with fragment
2929 [[Special:Version#anchor]]
2931 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2936 Nonexistent special page link with fragment
2938 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2940 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2947 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2949 <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>
2956 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2958 <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>!!!
2963 Link with 3 brackets
2972 Piped link with 3 brackets
2974 [[[main page|the main page]]]
2976 <p>[[[main page|the main page]]]
2981 Link with multiple pipes
2983 [[Main Page|The|Main|Page]]
2985 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2992 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2994 <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>
2999 Piped link to namespace
3001 [[Meta:Disclaimers|The disclaimers]]
3003 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3010 [[Usually caused by a typo (oops}]]
3012 <p>[[Usually caused by a typo (oops}]]
3017 Link containing % (not as a hex sequence)
3021 <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>
3026 Link containing % as a single hex sequence interpreted to char
3030 <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>
3035 Link containing % as a double hex sequence interpreted to hex sequence
3039 <p>[[7%2525 Solution]]
3044 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3045 Example for such a section: == < ==
3047 [[%23%3c]][[%23%3e]]
3049 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3054 Link containing "<#" and ">#" as a hex sequences
3056 [[%3c%23]][[%3e%23]]
3058 <p>[[%3c%23]][[%3e%23]]
3063 Link containing double-single-quotes '' (bug 4598)
3065 [[Lista d''e paise d''o munno]]
3067 <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>
3072 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3074 Some [[Link|pretty ''italics'' and stuff]]!
3076 <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>!
3081 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3083 ''Some [[Link|pretty ''italics'' and stuff]]!
3085 <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>
3090 Link with double quotes in title part (literal) and alternate part (interpreted)
3092 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3096 [[''Pentecoste''|Pentecoste]]
3098 [[''Pentecoste''|''Pentecoste'']]
3100 <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>
3101 </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>
3102 </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>
3103 </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>
3108 Broken image links with HTML captions (bug 39700)
3110 [[File:Nonexistent|<script></script>]]
3111 [[File:Nonexistent|100px|<script></script>]]
3112 [[File:Nonexistent|<]]
3113 [[File:Nonexistent|a<i>b</i>c]]
3115 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3116 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3117 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3118 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3125 [[http://www.example.com]]
3127 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3132 Plain link to URL with link text
3134 [[http://www.example.com Link text]]
3136 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3141 Plain link to protocol-relative URL
3143 [[//www.example.com]]
3145 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3150 Plain link to protocol-relative URL with link text
3152 [[//www.example.com Link text]]
3154 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3159 Plain link to page with question mark in title
3165 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3166 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3171 # I'm fairly sure the expected result here is wrong.
3172 # We want these to be URL links, not pseudo-pages with URLs for titles....
3173 # However the current output is also pretty screwy.
3176 # I'm changing it to match the current output--it arguably makes more
3177 # sense in the light of the test above. Old expected result was:
3178 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3180 # But I think this test is bordering on "garbage in, garbage out" anyway.
3185 Piped link to URL: [[http://www.example.com|an example URL]]
3187 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3192 BUG 2: [[page|http://url/]] should link to page, not http://url/
3194 [[Main Page|http://url/]]
3196 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3201 BUG 337: Escaped self-links should be bold
3205 [[Bug462]] [[Bug462]]
3207 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3212 Self-link to section should not be bold
3216 [[Main Page#section]]
3218 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3229 Self-link to numeric title
3235 <p><strong class="selflink">0</strong>
3240 Link to numeric-equivalent title
3246 <p><a href="/wiki/00" title="00">00</a>
3251 <nowiki> inside a link
3253 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3255 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3260 Non-breaking spaces in title
3262 [[ Main Page ]]
3264 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3269 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3275 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3280 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3286 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3291 Internal link with en linktrail: no apostrophes (bug 27473)
3297 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3302 Internal link with ca linktrail with apostrophes (bug 27473)
3308 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3313 Internal link with kaa linktrail with apostrophes (bug 27473)
3319 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3324 ### Interwiki links (see maintenance/interwiki.sql)
3328 Inline interwiki link
3330 [[MeatBall:SoftSecurity]]
3332 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3337 Inline interwiki link with empty title (bug 2372)
3341 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3346 Interwiki link encoding conversion (bug 1636)
3348 *[[Wikipedia:ro:Olteniţa]]
3349 *[[Wikipedia:ro:Olteniţa]]
3351 <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>
3352 </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>
3358 Interwiki link with fragment (bug 2130)
3360 [[MeatBall:SoftSecurity#foo]]
3362 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3377 Double interlanguage link
3388 Interlanguage link, with prefix links
3400 Double interlanguage link, with prefix links (bug 8897)
3413 Parsoid-specific test: Wikilinks with should RT properly
3419 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3437 Broken br tag sanitization
3446 Incorrecly removing closing slashes from correctly formed XHTML
3448 <br style="clear:both;" />
3450 <p><br style="clear:both;" />
3455 Failing to transform badly formed HTML into correct XHTML
3457 <br style="clear: left;">
3458 <br style="clear: right;">
3459 <br style="clear: both;">
3461 <p><br style="clear: left;" />
3462 <br style="clear: right;" />
3463 <br style="clear: both;" />
3468 Handling html with a div self-closing tag
3477 <p><div title />
3481 <p><div title=bar />
3482 <div title=bar/>
3484 <div title="bar/"></div>
3490 Handling html with a br self-closing tag
3499 <p><br title="title" />
3500 <br title="title" />
3509 Horizontal ruler (should it add that extra space?)
3523 Horizontal ruler -- 4+ dashes render hr
3532 Horizontal ruler -- eats additional dashes on the same line
3541 Horizontal ruler -- does not collaps dashes on consecutive lines
3552 Horizontal ruler -- <4 dashes render as plain text
3561 Horizontal ruler -- Supports content following dashes on same line
3570 ### Block-level elements
3593 <ol><li>Numbered list
3610 ***#Number on level 4
3612 **#Number on level 3
3613 **#Number on level 3
3617 #** Level 3, but ordered
3620 <ol><li> with numbers
3622 <ul><li> and bullets
3624 <ol><li> and numbers
3626 </li><li>bullets again
3627 <ul><li>bullet level 2
3628 <ul><li>bullet level 3
3629 <ol><li>Number on level 4
3632 </li><li>bullet level 2
3633 <ol><li>Number on level 3
3634 </li><li>Number on level 3
3637 <ol><li>number level 2
3640 <ul><li><ul><li> Level 3
3644 <ol><li><ul><li><ul><li> Level 3, but ordered
3678 Nested lists 3 (first element empty)
3691 Nested lists 4 (first element empty)
3704 Nested lists 5 (both elements empty)
3717 Nested lists 6 (both elements empty)
3730 Nested lists 7 (skip initial nesting levels)
3734 <ul><li><ul><li><ul><li> foo
3742 Nested lists 8 (multiple nesting transitions)
3750 <ul><li><ul><li> bar
3760 1. Lists with start-of-line-transparent tokens before bullets: Comments
3774 2. Lists with start-of-line-transparent tokens before bullets: Template close
3786 List items are not parsed correctly following a <pre> block (bug 785)
3792 <ul><li> <pre>foo</pre>
3793 </li><li> <pre>bar</pre>
3800 List items from template
3811 * notSOL{{inner list}}
3830 List interrupted by empty line or heading
3840 <ul><li><ul><li> bar
3843 <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>
3844 <ul><li> Another list item
3855 Magic Word: {{CURRENTDAY}}
3864 Magic Word: {{CURRENTDAY2}}
3873 Magic Word: {{CURRENTDAYNAME}}
3882 Magic Word: {{CURRENTDOW}}
3891 Magic Word: {{CURRENTMONTH}}
3900 Magic Word: {{CURRENTMONTHABBREV}}
3902 {{CURRENTMONTHABBREV}}
3909 Magic Word: {{CURRENTMONTHNAME}}
3911 {{CURRENTMONTHNAME}}
3918 Magic Word: {{CURRENTMONTHNAMEGEN}}
3920 {{CURRENTMONTHNAMEGEN}}
3927 Magic Word: {{CURRENTTIME}}
3936 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3945 Magic Word: {{CURRENTYEAR}}
3954 Magic Word: {{FULLPAGENAME}}
3956 title=[[User:Ævar Arnfjörð Bjarmason]]
3960 <p>User:Ævar Arnfjörð Bjarmason
3965 Magic Word: {{FULLPAGENAMEE}}
3967 title=[[User:Ævar Arnfjörð Bjarmason]]
3971 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3976 Magic Word: {{NAMESPACE}}
3978 title=[[User:Ævar Arnfjörð Bjarmason]]
3987 Magic Word: {{NAMESPACEE}}
3989 title=[[User:Ævar Arnfjörð Bjarmason]]
3998 Magic Word: {{NAMESPACENUMBER}}
4000 title=[[User:Ævar Arnfjörð Bjarmason]]
4009 Magic Word: {{NUMBEROFFILES}}
4018 Magic Word: {{PAGENAME}}
4020 title=[[User:Ævar Arnfjörð Bjarmason]]
4024 <p>Ævar Arnfjörð Bjarmason
4029 Magic Word: {{PAGENAME}} with metacharacters
4031 title=[['foo & bar = baz']]
4035 <p><i>'foo & bar = baz'</i>
4040 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4042 title=[[*RFC 1234 http://example.com/]]
4046 <p>*RFC 1234 http://example.com/
4051 Magic Word: {{PAGENAMEE}}
4053 title=[[User:Ævar Arnfjörð Bjarmason]]
4057 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4062 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4064 title=[[*RFC 1234 http://example.com/]]
4068 <p>*RFC_1234_http://example.com/
4073 Magic Word: {{REVISIONID}}
4082 Magic Word: {{SCRIPTPATH}}
4091 Magic Word: {{SERVER}}
4095 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4100 Magic Word: {{SERVERNAME}}
4109 Magic Word: {{SITENAME}}
4118 Namespace 1 {{ns:1}}
4127 Namespace 1 {{ns:01}}
4136 Namespace 0 {{ns:0}} (bug 4783)
4144 Namespace 0 {{ns:00}} (bug 4783)
4152 Namespace -1 {{ns:-1}}
4161 Namespace User {{ns:User}}
4170 Namespace User talk {{ns:User_talk}}
4179 Namespace User talk {{ns:uSeR tAlK}}
4188 Namespace File {{ns:File}}
4197 Namespace File {{ns:Image}}
4206 Namespace (lang=de) Benutzer {{ns:User}}
4217 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4223 <p>Benutzer Diskussion
4231 {{urlencode:hi world?!}}
4232 {{urlencode:hi world?!|WIKI}}
4233 {{urlencode:hi world?!|PATH}}
4234 {{urlencode:hi world?!|QUERY}}
4247 Magic links: internal link to RFC (bug 479)
4251 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4256 Magic links: RFC (bug 479)
4260 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4265 Magic links: ISBN (bug 1937)
4269 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4274 Magic links: PMID incorrectly converts space to underscore
4278 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4287 Nonexistent template
4289 {{thistemplatedoesnotexist}}
4291 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4298 This is a test template
4306 <p>This is a test template
4311 Template with explicit namespace
4315 <p>This is a test template
4323 This is a test template with parameter {{{param}}}
4329 {{paramtest|param=foo}}
4331 <p>This is a test template with parameter foo
4336 Template:paramtestnum
4342 Template unnamed parameter
4344 {{paramtestnum|Main Page|the main page}}
4346 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4351 Template:templatesimple
4357 Template:templateredirect
4359 #redirect [[Template:templatesimple]]
4363 Template:templateasargtestnum
4369 Template:templateasargtest
4371 {{template{{{templ}}}}}
4375 Template:templateasargtest2
4381 Template with template name as unnamed argument
4383 {{templateasargtestnum|templatesimple}}
4390 Template with template name as argument
4392 {{templateasargtest|templ=simple}}
4399 Template with template name as argument (2)
4401 {{templateasargtest2|templ=templatesimple}}
4408 Template:templateasargtestdefault
4410 {{{{{templ|templatesimple}}}}}
4420 Template with default value
4422 {{templateasargtestdefault}}
4429 Template with default value (value set)
4431 {{templateasargtestdefault|templ=templa}}
4440 {{templateredirect}}
4447 Template with argument in separate line
4449 {{ templateasargtest |
4457 Template with complex template as argument
4460 param ={{ templateasargtest |
4463 <p>This is a test template with parameter (test)
4468 Template with thumb image (with link in description)
4471 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4473 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>
4478 Template:complextemplate
4480 {{{1}}} {{paramtest|
4481 param ={{{param}}}}}
4485 Template with complex arguments
4488 param ={{ templateasargtest |
4489 templ = simple }}|[[Template:complextemplate|link]]}}
4491 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4496 BUG 553: link with two variables in a piped link
4499 |[[{{{1}}}|{{{2}}}]]
4504 <td>[[{{{1}}}|{{{2}}}]]
4510 Magic variable as template parameter
4512 {{paramtest|param={{SITENAME}}}}
4514 <p>This is a test template with parameter MediaWiki
4521 [[{{{param}}}|link]]
4525 Template parameter as link source
4527 {{linktest|param=Main Page}}
4529 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4534 Template-generated attribute string (k='v')
4536 <span {{attr_str|id|v1}}>bar</span>
4538 <p><span id="v1">bar</span>
4545 including another template, {{paramtest|param={{{arg}}}}}
4549 Template passing argument to another template
4551 {{paramtest2|arg='hmm'}}
4553 <p>including another template, This is a test template with parameter 'hmm'
4564 Template as link source
4568 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4586 Template infinite loop
4590 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4595 Template from main namespace
4614 BUG 529: Template with table, not included at beginning of line
4633 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4653 BUG 41: Template parameters shown as broken links
4662 Template with targets containing wikilinks
4666 {{[[{{echo|foo}}]]}}
4668 {{{{echo|[[foo}}]]}}
4670 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4671 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4679 ''None'' of '''this''' should be
4681 but rather passed unmodified
4685 # hmm, fix this or just deprecate msgnw and document its behavior?
4691 {{msgnw:MSGNW test}}
4693 <p>''None'' of '''this''' should be
4695 but rather passed unmodified
4703 {{int:youhavenewmessages|lots of money|not!}}
4705 <p>You have lots of money (not!).
4712 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4716 <includeonly> and <noinclude> being included
4727 <onlyinclude>Foo</onlyinclude>bar
4731 <onlyinclude> being included
4743 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4747 <onlyinclude> and <includeonly> being included
4756 <includeonly> and <noinclude> on a page
4758 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4765 Un-closed <noinclude>
4772 <onlyinclude> on a page
4774 <onlyinclude>Foo</onlyinclude>bar
4781 Un-closed <onlyinclude>
4788 Template:Includeonly section
4791 ==Includeonly section==
4797 Bug 6563: Edit link generation for section shown by <includeonly>
4799 {{includeonly section}}
4801 <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>
4802 <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>
4806 # Uses same input as the contents of [[Template:Includeonly section]]
4808 Bug 6563: Section extraction for section shown by <includeonly>
4813 ==Includeonly section==
4821 Bug 6563: Edit link generation for section suppressed by <includeonly>
4824 ==Includeonly section==
4828 <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>
4833 Bug 6563: Section extraction for section suppressed by <includeonly>
4838 ==Includeonly section==
4846 Un-closed <includeonly>
4853 ### <includeonly> and <noinclude> in attributes
4856 0. includeonly around the entire attribute
4858 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4860 <p><span id="v2">bar</span>
4865 1. includeonly in html attr key
4867 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4869 <p><span id="foo">bar</span>
4874 2. includeonly in html attr value
4876 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4877 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4879 <p><span id="v1">bar</span>
4880 <span id="v1">bar</span>
4885 3. includeonly in part of an attr value
4887 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4889 <p><span style="color:red;">bar</span>
4894 ### Testing parsing of templates where a template arg
4895 ### has the same name as the template itself.
4905 Templates: Template Name/Arg clash: 1. Use of positional param
4914 Templates: Template Name/Arg clash: 2. Use of named param
4923 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4932 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4936 Templates: 1. Simple use
4945 Templates: 2. Inside a block tag
4947 <div>{{echo|Foo}}</div>
4954 Templates: P-wrapping: 1a. Templates on consecutive lines
4965 Templates: P-wrapping: 1b. Templates on consecutive lines
4979 Templates: P-wrapping: 1c. Templates on consecutive lines
4982 {{echo|bar}} <div>baz</div>
4991 Templates: Inline Text: 1. Multiple tmeplate uses
4993 {{echo|Foo}}bar{{echo|baz}}
5000 Templates: Inline Text: 2. Back-to-back template uses
5002 {{echo|Foo}}{{echo|bar}}
5009 Templates: Block Tags: 1. Multiple template uses
5011 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5013 <div>Foo</div><div>bar</div><div>baz</div>
5018 Templates: Block Tags: 2. Back-to-back template uses
5020 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5022 <div>Foo</div><div>bar</div>
5027 Templates: Links: 1. Simple example
5029 {{echo|[[Foo|bar]]}}
5031 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5036 Templates: Links: 2. Generation of link href
5038 [[{{echo|Foo}}|bar]]
5040 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5045 Templates: Links: 3. Generation of part of a link href
5047 [[Fo{{echo|o}}|bar]]
5049 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5054 Templates: Links: 4. Multiple templates generating link href
5056 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5058 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5063 Templates: Links: 5. Generation of link text
5065 [[Foo|{{echo|bar}}]]
5067 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5072 Templates: Links: 5. Nested templates (only outermost template should be marked)
5074 {{echo|[[{{echo|Foo}}|bar]]}}
5076 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5081 Templates: HTML Tag: 1. Generation of HTML attr. key
5083 <div {{echo|style}}="color:red;">foo</div>
5085 <div style="color:red;">foo</div>
5090 Templates: HTML Tag: 2. Generation of HTML attr. value
5092 <div style={{echo|'color:red;'}}>foo</div>
5094 <div style="color:red;">foo</div>
5099 Templates: HTML Tag: 3. Generation of HTML attr key and value
5101 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5103 <div style="color:red;">foo</div>
5108 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5110 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5112 <div title="This is a long title with just one piece templated">foo</div>
5117 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5119 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5121 <div title="This is a long title with just one piece templated">foo</div>
5126 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5128 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5130 <div title="This is a long title with just one piece templated">foo</div>
5135 Templates: HTML Tables: 1. Generating start of a HTML table
5137 {{echo|<table><tr><td>foo</td>}}</tr></table>
5139 <table><tr><td>foo</td></tr></table>
5144 Templates: HTML Tables: 2a. Generating middle of a HTML table
5146 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5148 <table><tr><td>foo</td></tr></table>
5153 Templates: HTML Tables: 2b. Generating middle of a HTML table
5155 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5157 <table><tr><td>foo</td></tr></table>
5162 Templates: HTML Tables: 3. Generating end of a HTML table
5164 <table><tr>{{echo|<td>foo</td></tr></table>}}
5166 <table><tr><td>foo</td></tr></table>
5171 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5173 {{echo|<table>}}<tr><td>foo</td></tr></table>
5175 <table><tr><td>foo</td></tr></table>
5180 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5182 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5184 <table><tr><td>foo</td></tr></table>
5189 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5191 <table><tr>{{echo|<td>}}foo</td></tr></table>
5193 <table><tr><td>foo</td></tr></table>
5198 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5200 <table><tr><td>foo{{echo|</td>}}</tr></table>
5202 <table><tr><td>foo</td></tr></table>
5207 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5209 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5211 <table><tr><td>foo</td></tr></table>
5216 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5218 <table><tr><td>foo</td></tr>{{echo|</table>}}
5220 <table><tr><td>foo</td></tr></table>
5225 Templates: Wiki Tables: 1. Fostering of entire template content
5233 <tr><td></td></tr></table>
5238 Templates: Wiki Tables: 2. Fostering of partial template content
5248 <tr><td></td></tr></table>
5253 Templates: Wiki Tables: 3. td-content via multiple templates
5256 {{echo|{{pipe}}a}}{{echo|b}}
5267 Templates: Lists: Multi-line list-items via templates
5269 *{{echo|a {{nonexistent|
5271 *{{echo|b {{nonexistent|
5274 <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>
5275 </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>
5281 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5283 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5285 <p><i>ab</i>c<i>d</i>e
5290 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5291 (PHP parser generates misnested html)
5295 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5297 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5301 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5302 (PHP parser generates misnested html)
5306 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5309 <div><i>b</i>c<i>d</i></div>
5314 Templates: Ugly nesting: 4. Divs opened/closed across templates
5316 a<div>b{{echo|c</div>d}}e
5323 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5329 |{{echo|foo</table>}}
5333 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5334 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5335 bar</span><span about="#mwt1">
5340 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5350 <td>1. {{echo|foo </table>}}</td>
5352 <td>2. {{echo|baz </table>}}</td>
5365 <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">
5366 <tbody><tr data-parsoid="{"stx":"html"}">
5367 <td data-parsoid="{"stx":"html"}">
5368 <table data-parsoid="{"stx":"html"}">
5369 <tbody><tr data-parsoid="{"stx":"html"}">
5370 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5371 <td data-parsoid="{"stx":"html"}"> bar </td>
5372 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5373 </span><span about="#mwt1">
5375 abc</span><span about="#mwt1">
5376 </span><span about="#mwt1">
5377 </span><span about="#mwt1">
5378 </span><span about="#mwt1">
5379 </span><span about="#mwt1">
5381 xyz</span><span about="#mwt1">
5382 </span><span about="#mwt1">
5387 Parser Functions: 1. Simple example
5396 Parser Functions: 2. Nested use (only outermost should be marked up)
5405 ### Pre-save transform tests
5408 pre-save transform: subst:
5414 This is a test template
5418 pre-save transform: normal template
5428 pre-save transform: nonexistent template
5432 {{thistemplatedoesnotexist}}
5434 {{thistemplatedoesnotexist}}
5439 pre-save transform: subst magic variables
5448 # This is bug 89, which I fixed. -- wtm
5450 pre-save transform: subst: templates with parameters
5454 {{subst:paramtest|param="something else"}}
5456 This is a test template with parameter "something else"
5462 <nowiki>'''not wiki'''</nowiki>
5466 pre-save transform: nowiki in subst (bug 1188)
5470 {{subst:nowikitest}}
5472 <nowiki>'''not wiki'''</nowiki>
5477 Template:commenttest
5479 This template has <!-- a comment --> in it.
5483 pre-save transform: comment in subst (bug 1936)
5487 {{subst:commenttest}}
5489 This template has <!-- a comment --> in it.
5493 pre-save transform: unclosed tag
5497 <nowiki>'''not wiki'''
5499 <nowiki>'''not wiki'''
5503 pre-save transform: mixed tag case
5507 <NOwiki>'''not wiki'''</noWIKI>
5509 <NOwiki>'''not wiki'''</noWIKI>
5513 pre-save transform: unclosed comment in <nowiki>
5517 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5519 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5525 <span onmouseover="alert('crap')">Oh no</span>
5529 (confirming safety of fix for subst bug 1936)
5531 {{Template:dangerous}}
5533 <p><span>Oh no</span>
5538 pre-save transform: comment containing gallery (bug 5024)
5542 <!-- <gallery>data</gallery> -->
5544 <!-- <gallery>data</gallery> -->
5548 pre-save transform: comment containing extension
5552 <!-- <tag>data</tag> -->
5554 <!-- <tag>data</tag> -->
5558 pre-save transform: comment containing nowiki
5562 <!-- <nowiki>data</nowiki> -->
5564 <!-- <nowiki>data</nowiki> -->
5568 pre-save transform: <noinclude> in subst (bug 3298)
5578 pre-save transform: <onlyinclude> in subst (bug 3298)
5590 {{<includeonly>subst:</includeonly>Includes}}
5594 Template:SafeSubstTest
5596 {{<includeonly>safesubst:</includeonly>Includes}}
5600 bug 22297: safesubst: works during PST
5604 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5610 bug 22297: safesubst: works during normal parse
5619 subst: does not work during normal parse
5623 <p>{{subst:Includes}}
5628 pre-save transform: context links ("pipe trick")
5632 [[Article (context)|]]
5635 [[Bar:Article (context)|]]
5636 [[:Bar:Article (context)|]]
5638 [[|Article (context)]]
5642 [[Article (context)|Article]]
5643 [[Bar:Article|Article]]
5644 [[:Bar:Article|Article]]
5645 [[Bar:Article (context)|Article]]
5646 [[:Bar:Article (context)|Article]]
5648 [[Article (context)]]
5649 [[Bar:X (Y) Z|X (Y) Z]]
5650 [[:Bar:X (Y) Z|X (Y) Z]]
5654 pre-save transform: context links ("pipe trick") with interwiki prefix
5658 [[interwiki:Article|]]
5659 [[:interwiki:Article|]]
5660 [[interwiki:Bar:Article|]]
5661 [[:interwiki:Bar:Article|]]
5663 [[interwiki:Article|Article]]
5664 [[:interwiki:Article|Article]]
5665 [[interwiki:Bar:Article|Bar:Article]]
5666 [[:interwiki:Bar:Article|Bar:Article]]
5670 pre-save transform: context links ("pipe trick") with parens in title
5672 pst title=[[Somearticle (context)]]
5676 [[Article (context)|Article]]
5680 pre-save transform: context links ("pipe trick") with comma in title
5682 pst title=[[Someplace, Somewhere]]
5685 [[Otherplace, Elsewhere|]]
5686 [[Otherplace, Elsewhere, Anywhere|]]
5688 [[Otherplace, Somewhere|Otherplace]]
5689 [[Otherplace, Elsewhere|Otherplace]]
5690 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5694 pre-save transform: context links ("pipe trick") with parens and comma
5696 pst title=[[Someplace (IGNORED), Somewhere]]
5699 [[Otherplace (place), Elsewhere|]]
5701 [[Otherplace, Somewhere|Otherplace]]
5702 [[Otherplace (place), Elsewhere|Otherplace]]
5706 pre-save transform: context links ("pipe trick") with comma and parens
5708 pst title=[[Who, me? (context)]]
5711 [[Me, Myself, and I (1937 song)|]]
5713 [[Yes, you. (context)|Yes, you.]]
5714 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5718 pre-save transform: context links ("pipe trick") with namespace
5720 pst title=[[Ns:Somearticle]]
5724 [[Ns:Article|Article]]
5728 pre-save transform: context links ("pipe trick") with namespace and parens
5730 pst title=[[Ns:Somearticle (context)]]
5734 [[Ns:Article (context)|Article]]
5738 pre-save transform: context links ("pipe trick") with namespace and comma
5740 pst title=[[Ns:Somearticle, Context, Whatever]]
5744 [[Ns:Article, Context, Whatever|Article]]
5748 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5750 pst title=[[Ns:Somearticle, Context (context)]]
5754 [[Ns:Article (context)|Article]]
5758 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5760 pst title=[[Ns:Somearticle (IGNORED), Context]]
5764 [[Ns:Article, Context|Article]]
5768 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5772 [[Article(context)|]]
5773 [[Bar:Article(context)|]]
5774 [[:Bar:Article(context)|]]
5775 [[|Article(context)]]
5779 [[Article(context)|Article]]
5780 [[Bar:Article(context)|Article]]
5781 [[:Bar:Article(context)|Article]]
5782 [[Article(context)]]
5784 [[:Bar:X(Y)Z|X(Y)Z]]
5788 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5792 [[Article (context)|]]
5793 [[Bar:Article (context)|]]
5794 [[:Bar:Article (context)|]]
5795 [[|Article (context)]]
5799 [[Article (context)|Article]]
5800 [[Bar:Article (context)|Article]]
5801 [[:Bar:Article (context)|Article]]
5802 [[Article (context)]]
5803 [[Bar:X (Y) Z|X (Y) Z]]
5804 [[:Bar:X (Y) Z|X (Y) Z]]
5808 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5812 [[Article(context)|]]
5813 [[Bar:Article(context)|]]
5814 [[:Bar:Article(context)|]]
5815 [[|Article(context)]]
5819 [[Article(context)|Article]]
5820 [[Bar:Article(context)|Article]]
5821 [[:Bar:Article(context)|Article]]
5822 [[Article(context)]]
5824 [[:Bar:X(Y)Z|X(Y)Z]]
5828 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5832 [[Article (context), context|]]
5833 [[Article (context),context|]]
5834 [[Bar:Article (context), context|]]
5835 [[Bar:Article (context),context|]]
5836 [[:Bar:Article (context), context|]]
5837 [[:Bar:Article (context),context|]]
5839 [[Article (context), context|Article]]
5840 [[Article (context),context|Article]]
5841 [[Bar:Article (context), context|Article]]
5842 [[Bar:Article (context),context|Article]]
5843 [[:Bar:Article (context), context|Article]]
5844 [[:Bar:Article (context),context|Article]]
5848 pre-save transform: trim trailing empty lines
5852 Empty lines are trimmed
5858 Empty lines are trimmed
5862 pre-save transform: Signature expansion
5867 * <noinclude>~~~</noinclude>
5868 * <includeonly>~~~</includeonly>
5869 * <onlyinclude>~~~</onlyinclude>
5871 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5872 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5873 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5874 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5879 pre-save transform: Signature expansion in nowiki tags (bug 93)
5885 <nowiki>~~~~</nowiki>
5887 <includeonly><nowiki>~~~~</nowiki></includeonly>
5889 <noinclude><nowiki>~~~~</nowiki></noinclude>
5891 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5893 {{subst:Foo}} shall be converted to FOO
5895 As well as inside noinclude/onlyinclude
5896 <noinclude>{{subst:Foo}}</noinclude>
5897 <onlyinclude>{{subst:Foo}}</onlyinclude>
5899 But not inside includeonly
5900 <includeonly>{{subst:Foo}}</includeonly>
5904 <nowiki>~~~~</nowiki>
5906 <includeonly><nowiki>~~~~</nowiki></includeonly>
5908 <noinclude><nowiki>~~~~</nowiki></noinclude>
5910 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5912 FOO shall be converted to FOO
5914 As well as inside noinclude/onlyinclude
5915 <noinclude>FOO</noinclude>
5916 <onlyinclude>FOO</onlyinclude>
5918 But not inside includeonly
5919 <includeonly>{{subst:Foo}}</includeonly>
5923 ### Message transform tests
5926 message transform: magic variables
5936 message transform: should not transform wiki markup
5946 message transform: <noinclude> in transcluded template (bug 4926)
5956 message transform: <onlyinclude> in transcluded template (bug 4926)
5966 {{#special:}} page name, known
5970 {{#special:Recentchanges}}
5972 Special:RecentChanges
5976 {{#special:}} page name with subpage, known
5980 {{#special:Recentchanges/param}}
5982 Special:RecentChanges/param
5986 {{#special:}} page name, unknown
5990 {{#special:foobarnonexistent}}
5992 No such special page
5996 {{#speciale:}} page name, known
6000 {{#speciale:Recentchanges}}
6002 Special:RecentChanges
6006 {{#speciale:}} page name with subpage, known
6010 {{#speciale:Recentchanges/param}}
6012 Special:RecentChanges/param
6016 {{#speciale:}} page name, unknown
6020 {{#speciale:foobarnonexistent}}
6022 No_such_special_page
6031 [[Image:foobar.jpg]]
6033 <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>
6040 [[Image:foobar.jpg|right]]
6042 <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>
6047 Simple image (using File: namespace, now canonical)
6051 <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>
6058 [[Image:foobar.jpg|right|Caption text]]
6060 <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>
6065 Image with empty attribute
6067 [[Image:foobar.jpg|right||Caption text]]
6069 <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>
6074 Image with link tails
6076 123[[Image:foobar.jpg]]456
6077 123[[Image:foobar.jpg|right]]456
6078 123[[Image:foobar.jpg|thumb]]456
6080 <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
6082 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
6083 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
6088 Image with multiple captions -- only last one is accepted
6090 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6092 <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>
6097 Image with link parameter, wiki target
6099 [[Image:foobar.jpg|link=Target page]]
6101 <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>
6106 Image with link parameter, URL target
6108 [[Image:foobar.jpg|link=http://example.com/]]
6110 <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>
6115 Image with link parameter, wgExternalLinkTarget
6117 [[Image:foobar.jpg|link=http://example.com/]]
6119 wgExternalLinkTarget='foobar'
6121 <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>
6126 Image with link parameter, wgNoFollowLinks set to false
6128 [[Image:foobar.jpg|link=http://example.com/]]
6130 wgNoFollowLinks=false
6132 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6137 Image with link parameter, wgNoFollowDomainExceptions
6139 [[Image:foobar.jpg|link=http://example.com/]]
6141 wgNoFollowDomainExceptions='example.com'
6143 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6148 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6150 [[Image:foobar.jpg|link=http://example.com/|Title]]
6152 wgExternalLinkTarget='foobar'
6154 <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>
6159 Image with empty link parameter
6161 [[Image:foobar.jpg|link=]]
6163 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6168 Image with link parameter (wiki target) and unnamed parameter
6170 [[Image:foobar.jpg|link=Target page|Title]]
6172 <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>
6177 Image with link parameter (URL target) and unnamed parameter
6179 [[Image:foobar.jpg|link=http://example.com/|Title]]
6181 <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>
6186 Thumbnail image with link parameter
6188 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6190 <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>
6195 Image with frame and link
6197 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6199 <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>
6204 Image with frame and link and explicit alt
6206 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6208 <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>
6213 Image with wiki markup in implicit alt
6215 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6217 <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>
6222 Image with wiki markup in explicit alt
6224 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6226 <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>
6231 Link to image page- image page normally doesn't exists, hence edit link
6232 Add test with existing image page
6233 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6237 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6242 bug 18784 Link to non-existent image page with caption should use caption as link text
6244 [[:Image:test|caption]]
6246 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6251 Frameless image caption with a free URL
6253 [[Image:foobar.jpg|http://example.com]]
6255 <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>
6260 Thumbnail image caption with a free URL
6262 [[Image:foobar.jpg|thumb|http://example.com]]
6264 <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>
6269 Thumbnail image caption with a free URL and explicit alt
6271 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6273 <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>
6278 BUG 1887: A ISBN with a thumbnail
6280 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6282 <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>
6287 BUG 1887: A RFC with a thumbnail
6289 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6291 <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>
6296 BUG 1887: A mailto link with a thumbnail
6298 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6300 <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>
6304 # Pending resolution to bug 368
6306 BUG 648: Frameless image caption with a link
6308 [[Image:foobar.jpg|text with a [[link]] in it]]
6310 <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>
6315 BUG 648: Frameless image caption with a link (suffix)
6317 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6319 <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>
6324 BUG 648: Frameless image caption with an interwiki link
6326 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6328 <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>
6333 BUG 648: Frameless image caption with a piped interwiki link
6335 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6337 <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>
6342 Escape HTML special chars in image alt text
6344 [[Image:foobar.jpg|& < > "]]
6346 <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>
6351 BUG 499: Alt text should have Ӓ, not &1234;
6353 [[Image:foobar.jpg|♀]]
6355 <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>
6360 Broken image caption with link
6362 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6364 <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.
6369 Image caption containing another image
6371 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6373 <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>
6378 Image caption containing a newline
6380 [[Image:Foobar.jpg|This
6383 <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>
6389 Bug 3090: External links other than http: in image captions
6391 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6393 <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>
6400 [[Image:foobar.jpg|a|class=b]]
6402 <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>
6409 #REDIRECT [[File:Barfoo.jpg]]
6415 [[Image:Barfoo.jpg]]
6417 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6422 Missing image with uploads disabled
6426 [[Image:Foobaz.jpg]]
6428 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6437 Subpage test/subpage
6445 subpage title=[[Subpage test]]
6449 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6454 Subpage noslash link
6456 subpage title=[[Subpage test]]
6460 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6469 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6474 BUG 561: {{/Subpage}}
6476 subpage title=[[Page]]
6480 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6488 Category:MediaWiki User's Guide
6496 [[:Category:MediaWiki User's Guide]]
6498 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6507 [[Category:MediaWiki User's Guide]]
6509 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6513 PAGESINCATEGORY invalid title fatal (r33546 fix)
6515 {{PAGESINCATEGORY:<bogus>}}
6522 Category with different sort key
6526 [[Category:MediaWiki User's Guide|Foo]]
6528 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6532 Category with identical sort key
6536 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6538 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6542 Category with empty sort key
6547 [[Category:MediaWiki User's Guide|]]
6549 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6553 Category with empty sort key and parentheses
6558 [[Category:Foo (bar)|]]
6560 [[Category:Foo (bar)|Foo]]
6564 Category with link tail
6569 123[[Category:Foo]]456
6571 123[[Category:Foo]]456
6575 Category with template
6580 [[Category:{{echo|Foo}}]]
6582 [[Category:{{echo|Foo}}]]
6586 Category with template in sort key
6591 [[Category:Foo|{{echo|Bar}}]]
6593 [[Category:Foo|{{echo|Bar}}]]
6597 Category with template in sort key and title
6602 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6604 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6608 Category / paragraph interactions
6610 Foo [[Category:Baz]] Bar
6612 Foo [[Category:Baz]]
6620 [[Category:Baz]] Bar
6633 {{echo|[[Category:Baz]]}}
6648 ### Inter-language links
6651 Inter-language links
6657 [[zh:食品]]
6659 es:Alimento fr:Nourriture zh:食品
6663 Duplicate interlanguage links (bug 24502)
6679 Basic section headings
6686 ===Smaller headline===
6689 <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>
6692 <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>
6695 <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>
6701 Section headings with TOC
6704 === Subheadline 1 ===
6705 ===== Skipping a level =====
6706 ====== Skipping a level ======
6710 ===Another headline===
6712 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6714 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6716 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6718 <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>
6720 <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>
6727 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6729 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6734 <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>
6735 <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>
6736 <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>
6737 <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>
6738 <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>
6741 <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>
6745 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6747 Handling of sections up to level 6 and beyond
6750 == Level 2 Heading==
6751 === Level 3 Heading===
6752 ==== Level 4 Heading====
6753 ===== Level 5 Heading=====
6754 ====== Level 6 Heading======
6755 ======= Level 7 Heading=======
6756 ======== Level 8 Heading========
6757 ========= Level 9 Heading=========
6758 ========== Level 10 Heading==========
6760 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6762 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6764 <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>
6766 <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>
6768 <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>
6770 <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>
6772 <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>
6773 <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>
6774 <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>
6775 <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>
6776 <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>
6789 <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>
6790 <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>
6791 <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>
6792 <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>
6793 <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>
6794 <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>
6795 <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>
6796 <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>
6797 <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>
6798 <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>
6803 TOC regression (bug 9764)
6807 ==== title 1.1.1 ====
6812 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6814 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6816 <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>
6818 <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>
6821 <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>
6824 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6826 <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>
6831 <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>
6832 <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>
6833 <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>
6834 <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>
6835 <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>
6836 <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>
6841 TOC with wgMaxTocLevel=3 (bug 6204)
6847 ==== title 1.1.1 ====
6852 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6854 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6856 <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>
6857 <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>
6860 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6862 <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>
6867 <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>
6868 <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>
6869 <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>
6870 <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>
6871 <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>
6872 <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>
6877 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6883 ====Section 1.1.1====
6884 ====Section 1.1.1.1====
6887 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6889 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6891 <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>
6894 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6897 <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>
6898 <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>
6899 <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>
6900 <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>
6901 <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>
6907 Resolving duplicate section names
6912 <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>
6913 <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>
6918 Resolving duplicate section names with differing case (bug 10721)
6923 <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>
6924 <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>
6936 Template with sections, __NOTOC__
6943 <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>
6944 <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>
6945 <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>
6946 <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>
6951 __NOEDITSECTION__ keyword
6957 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6958 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6963 Link inside a section heading
6965 ==Section with a [[Main Page|link]] in it==
6967 <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>
6972 TOC regression (bug 12077)
6979 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6981 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6983 <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>
6986 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6989 <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>
6990 <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>
6991 <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>
6996 BUG 1219 URL next to image (good)
6998 http://example.com [[Image:foobar.jpg]]
7000 <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>
7005 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7008 The line above must have a trailing space!
7011 But just in case it doesn't...
7013 <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>
7014 <p>The line above must have a trailing space!
7016 <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>
7017 <p>But just in case it doesn't...
7022 Header with special characters (bug 25462)
7024 The tooltips shall not show entities to the user (ie. be double escaped)
7041 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7043 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7045 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7046 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7047 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7048 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7049 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7052 <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>
7055 <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>
7058 <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>
7061 <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>
7064 <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>
7070 Headers with excess '=' characters
7071 (Are similar tests necessary beyond the 1st level?)
7075 =''italic'' heading==
7076 ==''italic'' heading=
7078 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7080 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7081 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7082 <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>
7083 <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>
7086 <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>
7087 <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>
7088 <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>
7089 <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>
7094 BUG 1219 URL next to image (broken)
7096 http://example.com[[Image:foobar.jpg]]
7098 <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>
7103 Bug 1186 news: in the middle of text
7105 http://en.wikinews.org/wiki/Wikinews:Workplace
7107 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7113 Namespaced link must have a title
7122 Namespaced link must have a title (bad fragment version)
7124 [[Project:#fragment]]
7126 <p>[[Project:#fragment]]
7132 div with no attributes
7134 <div>HTML rocks</div>
7136 <div>HTML rocks</div>
7141 div with double-quoted attribute
7143 <div id="rock">HTML rocks</div>
7145 <div id="rock">HTML rocks</div>
7150 div with single-quoted attribute
7152 <div id='rock'>HTML rocks</div>
7154 <div id="rock">HTML rocks</div>
7159 div with unquoted attribute
7161 <div id=rock>HTML rocks</div>
7163 <div id="rock">HTML rocks</div>
7168 div with illegal double attributes
7170 <div id="a" id="b">HTML rocks</div>
7172 <div id="b">HTML rocks</div>
7176 # FIXME: produce empty string instead of "class" in the PHP parser, following
7179 div with empty attribute value, space before equals
7183 <div class =>HTML rocks</div>
7185 <div class="">HTML rocks</div>
7189 # This it very inconsistent in the PHP parser: it returns
7190 # class="class" if there is a space between the name and the equal sign (see
7191 # 'div with empty attribute value, space before equals'), but strips the
7192 # attribute completely if the space is missing. We hope that not much content
7193 # depends on this, so are implementing the behavior below in Parsoid for
7194 # consistencies' sake. Disabled for the PHP parser.
7195 # FIXME: fix this behavior in the PHP parser?
7197 div with empty attribute value, no space before equals
7201 <div class=>HTML rocks</div>
7203 <div class="">HTML rocks</div>
7208 HTML multiple attributes correction
7210 <p class="error" class="awesome">Awesome!</p>
7212 <p class="awesome">Awesome!</p>
7217 Table multiple attributes correction
7220 !+ class="error" class="awesome"| status
7225 <th class="awesome"> status
7233 <DIV ID="x">HTML ROCKS</DIV>
7235 <div id="x">HTML ROCKS</div>
7240 Non-ASCII pseudo-tags are rendered as text
7249 Pseudo-tag with URL 'name' renders as url link
7251 <http://example.com/>
7253 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7258 text with amp in the middle of nowhere
7262 <p>Remember AT&T?
7267 text with character entity: eacute
7269 I always thought é was a cute letter.
7271 <p>I always thought é was a cute letter.
7276 text with undefined character entity: xacute
7278 I always thought &xacute; was a cute letter.
7280 <p>I always thought &xacute; was a cute letter.
7292 [[Media:Foobar.jpg]]
7294 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7299 Media link with text
7301 [[Media:Foobar.jpg|A neat file to look at]]
7303 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7307 # FIXME: this is still bad HTML tag nesting
7309 Media link with nasty text
7310 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7312 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7314 <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>
7319 Media link to nonexistent file (bug 1702)
7321 [[Media:No such.jpg]]
7323 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7328 Image link to nonexistent file (bug 1850 - good)
7330 [[Image:No such.jpg]]
7332 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7337 :Image link to nonexistent file (bug 1850 - bad)
7339 [[:Image:No such.jpg]]
7341 <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>
7348 Character reference normalization in link text (bug 1938)
7350 [[Main Page|this&that]]
7352 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7359 Test for unicode normalization
7361 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7365 (bug 19451) Links should refer to the normalized form.
7373 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7374 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7375 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7376 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7377 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7382 Empty attribute crash test (bug 2067)
7384 <font color="">foo</font>
7386 <p><font color="">foo</font>
7391 Empty attribute crash test single-quotes (bug 2067)
7393 <font color=''>foo</font>
7395 <p><font color="">foo</font>
7400 Attribute test: equals, then nothing
7402 <font color=>foo</font>
7409 Attribute test: unquoted value
7411 <font color=x>foo</font>
7413 <p><font color="x">foo</font>
7418 Attribute test: unquoted but illegal value (hash)
7420 <font color=#x>foo</font>
7422 <p><font color="#x">foo</font>
7427 Attribute test: no value
7429 <font color>foo</font>
7431 <p><font color="color">foo</font>
7436 Bug 2095: link with three closing brackets
7440 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7445 Bug 2095: link with pipe and three closing brackets
7449 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7454 Bug 2095: link with pipe and three closing brackets, version 2
7456 [[Main Page|[http://example.com/]]]
7458 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7468 Template:Dangerous attribute
7470 " onmouseover="alert(document.cookie)
7474 Template:Dangerous style attribute
7476 border-size: expression(alert(document.cookie))
7482 <div style="float: right; {{{1}}}">Magic div</div>
7486 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7488 <div title="{{test}}"></div>
7490 <div title="This is a test template"></div>
7495 Bug 2304: HTML attribute safety (dangerous template; 2309)
7497 <div title="{{dangerous attribute}}"></div>
7499 <div title=""></div>
7504 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7506 <div style="{{dangerous style attribute}}"></div>
7508 <div style="/* insecure input */"></div>
7513 Bug 2304: HTML attribute safety (safe parameter; 2309)
7515 {{div style|width: 200px}}
7517 <div style="float: right; width: 200px">Magic div</div>
7522 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7524 {{div style|width: expression(alert(document.cookie))}}
7526 <div style="/* insecure input */">Magic div</div>
7531 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7533 {{div style|"><script>alert(document.cookie)</script>}}
7535 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7540 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7542 {{div style|" ><script>alert(document.cookie)</script>}}
7544 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7549 Bug 2304: HTML attribute safety (link)
7551 <div title="[[Main Page]]"></div>
7553 <div title="[[Main Page]]"></div>
7558 Bug 2304: HTML attribute safety (italics)
7560 <div title="''foobar''"></div>
7562 <div title="''foobar''"></div>
7567 Bug 2304: HTML attribute safety (bold)
7569 <div title="'''foobar'''"></div>
7571 <div title="'''foobar'''"></div>
7577 Bug 2304: HTML attribute safety (ISBN)
7579 <div title="ISBN 1234567890"></div>
7581 <div title="ISBN 1234567890"></div>
7586 Bug 2304: HTML attribute safety (RFC)
7588 <div title="RFC 1234"></div>
7590 <div title="RFC 1234"></div>
7595 Bug 2304: HTML attribute safety (PMID)
7597 <div title="PMID 1234567890"></div>
7599 <div title="PMID 1234567890"></div>
7604 Bug 2304: HTML attribute safety (web link)
7606 <div title="http://example.com/"></div>
7608 <div title="http://example.com/"></div>
7613 Bug 2304: HTML attribute safety (named web link)
7615 <div title="[http://example.com/ link]"></div>
7617 <div title="[http://example.com/ link]"></div>
7622 Bug 3244: HTML attribute safety (extension; safe)
7624 <div style="<nowiki>background:blue</nowiki>"></div>
7626 <div style="background:blue"></div>
7631 Bug 3244: HTML attribute safety (extension; unsafe)
7633 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7635 <div style="/* insecure input */"></div>
7639 # More MSIE fun discovered by Tom Gilder
7642 MSIE CSS safety test: spurious slash
7644 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7646 <div style="/* insecure input */">evil</div>
7651 MSIE CSS safety test: hex code
7653 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7655 <div style="/* insecure input */">evil</div>
7660 MSIE CSS safety test: comment in url
7662 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7664 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7669 MSIE CSS safety test: comment in expression
7671 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7673 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7679 Table attribute legitimate extension
7682 !+ style="<nowiki>color:blue</nowiki>"| status
7687 <th style="color:blue"> status
7693 Table attribute safety
7696 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7701 <th style="/* insecure input */"> status
7707 CSS line continuation 1
7709 <div style="background-image: u\ rl(test.jpg);"></div>
7711 <div style="/* insecure input */"></div>
7716 CSS line continuation 2
7718 <div style="background-image: u\ rl(test.jpg); "></div>
7720 <div style="/* insecure input */"></div>
7731 Expansion of multi-line templates in attribute values (bug 6255)
7733 <div style="background: {{identity|#00FF00}}">-</div>
7735 <div style="background: #00FF00">-</div>
7741 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7743 <div style="background:
7746 <div style="background: #00FF00">-</div>
7751 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7753 <div style="background: #00FF00">-</div>
7755 <div style="background: #00FF00">-</div>
7760 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7763 Parser hook: empty input
7776 Parser hook: empty input using terminated empty elements
7789 Parser hook: empty input using terminated empty elements (space before)
7802 Parser hook: basic input
7816 Parser hook: case insensitive
7830 Parser hook: case insensitive, redux
7843 Parser hook: nested tags
7847 <tag><tag></tag></tag>
7858 Parser hook: basic arguments
7860 <tag width=200 height = "100" depth = '50' square></tag>
7868 'square' => 'square',
7875 Parser hook: argument containing a forward slash (bug 5344)
7877 <tag filename='/tmp/bla'></tag>
7882 'filename' => '/tmp/bla',
7889 Parser hook: empty input using terminated empty elements (bug 2374)
7902 # </tag> should be output literally since there is no matching tag that begins it
7904 Parser hook: basic arguments using terminated empty elements (bug 2374)
7906 <tag width=200 height = "100" depth = '50' square/>
7916 'square' => 'square',
7925 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7929 Parser hook: static parser hook not inside a comment
7931 <statictag>hello, world</statictag>
7932 <statictag action=flush/>
7940 Parser hook: static parser hook inside a comment
7942 <!-- <statictag>hello, world</statictag> -->
7943 <statictag action=flush/>
7949 # Nested template calls; this case was broken by Parser.php rev 1.506,
7953 Template:One-parameter
7955 (My parameter is: {{{1}}})
7959 Template:Map-one-parameter
7965 Nested template calls
7967 {{Map-one-parameter|One-parameter|param}}
7969 <p>(My parameter is: param)
7978 Sanitizer: Closing of open tags
7980 <s></s><table></table>
7982 <s></s><table></table>
7987 Sanitizer: Closing of open but not closed tags
7996 Sanitizer: Closing of closed but not open tags
8005 Sanitizer: Closing of closed but not open table tags
8007 Table not started</td></tr></table>
8009 <p>Table not started</td></tr></table>
8014 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8016 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8018 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8023 Sanitizer: Validating the contents of the id attribute (bug 4515)
8029 Something, but definitely not <br id="9" />...
8033 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8037 <br id="foo" /><br id="foo" />
8039 Something need to be done. foo-2 ?
8043 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8046 <meta itemprop="hello" content="world">
8047 <meta http-equiv="refresh" content="5">
8048 <meta itemprop="hello" http-equiv="refresh" content="5">
8049 <link itemprop="hello" href="{{SERVER}}">
8050 <link rel="stylesheet" href="{{SERVER}}">
8051 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8054 <div itemscope="itemscope">
8055 <p> <meta itemprop="hello" content="world" />
8056 <meta http-equiv="refresh" content="5">
8057 <meta itemprop="hello" content="5" />
8059 <link itemprop="hello" href="http://Britney-Spears" />
8060 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8061 <link itemprop="hello" href="http://Britney-Spears" />
8067 Language converter: output gets cut off unexpectedly (bug 5757)
8071 this bit is safe: }-
8073 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8075 then we get cut off here: }-
8077 all additional text is vanished
8079 <p>this bit is safe: }-
8080 </p><p>but if we add a conversion instance: xxx
8081 </p><p>then we get cut off here: }-
8082 </p><p>all additional text is vanished
8087 Self closed html pairs (bug 5487)
8090 <center><font id="bug" />Centered text</center>
8091 <div><font id="bug2" />In div text</div>
8093 <center><font id="bug" />Centered text</center>
8094 <div><font id="bug2" />In div text</div>
8103 Punctuation: nbsp before exclamation
8107 <p>C'est grave !
8112 Punctuation: CSS !important (bug 11874)
8114 <div style="width:50% !important">important</div>
8116 <div style="width:50% !important">important</div>
8121 Punctuation: CSS ! important (bug 11874; with space after)
8123 <div style="width:50% ! important">important</div>
8125 <div style="width:50% ! important">important</div>
8131 HTML bullet list, closed tags (bug 5497)
8146 HTML bullet list, unclosed tags (bug 5497)
8163 HTML ordered list, closed tags (bug 5497)
8178 HTML ordered list, unclosed tags (bug 5497)
8195 HTML nested bullet list, closed tags (bug 5497)
8220 HTML nested bullet list, open tags (bug 5497)
8245 HTML nested ordered list, closed tags (bug 5497)
8270 HTML nested ordered list, open tags (bug 5497)
8295 HTML ordered list item with parameters oddity
8297 <ol><li id="fragment">One</li></ol>
8299 <ol><li id="fragment">One</li></ol>
8304 bug 5918: autonumbering
8306 [http://first/] [http://second] [ftp://ftp]
8310 [mailto:enclosed@mail.tld With target]
8312 [mailto:enclosed@mail.tld]
8314 mailto:inline@mail.tld
8316 <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>
8317 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8318 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8319 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8320 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8326 # Security and HTML correctness
8327 # From Nick Jenkins' fuzz testing
8331 Fuzz testing: Parser13
8346 Fuzz testing: Parser14
8351 <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>
8352 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8354 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8361 Fuzz testing: Parser14-table
8366 <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>
8367 <table style="__TOC__">
8373 # Known to produce bogus xml (extra </td>)
8375 Fuzz testing: Parser16
8395 Fuzz testing: Parser21
8398 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8403 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8413 Fuzz testing: Parser22
8415 http://===r:::https://b
8419 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8427 # Known to produce bad XML for now
8429 Fuzz testing: Parser24
8436 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8437 <br style="onmouseover='alert(document.cookie);' " />
8439 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8444 <u class="|">}}}} >
8445 <br style="onmouseover='alert(document.cookie);'" />
8447 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8456 # Note: the current result listed for this is not what the original one was,
8457 # but the original bug was JavaScript injection, which is fixed in any case.
8458 # It's not clear that the original result listed was any more correct than the
8459 # current one. Original result:
8462 # <li class="||">
8463 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8465 Fuzz testing: Parser25 (bug 6055)
8471 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8473 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8478 Fuzz testing: URL adjacent extension (with space, clean)
8481 http://example.com <nowiki>junk</nowiki>
8483 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8488 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8491 http://example.com<nowiki>junk</nowiki>
8493 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8498 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8501 http://example.com<pre>junk</pre>
8503 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8508 Fuzz testing: image with bogus manual thumbnail
8510 [[Image:foobar.jpg|thumbnail= ]]
8512 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8517 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8519 <pre dir=" "></pre>
8521 <pre dir=" "></pre>
8526 Parsing optional HTML elements (Bug 6171)
8531 <td> Some tabular data</td>
8532 <td> More tabular data ...
8533 <td> And yet som tabular data</td>
8539 <td> Some tabular data</td>
8540 <td> More tabular data ...
8541 </td><td> And yet som tabular data</td>
8548 Correct handling of <td>, <tr> (Bug 6171)
8553 <td> Some tabular data</td>
8554 <td> More tabular data ...</td>
8555 <td> And yet som tabular data</td>
8561 <td> Some tabular data</td>
8562 <td> More tabular data ...</td>
8563 <td> And yet som tabular data</td>
8571 Parsing crashing regression (fr:JavaScript)
8575 <p></body></x>
8580 Inline wiki vs wiki block nesting
8586 <p><b>Bold paragraph</b>
8587 </p><p>New wiki paragraph
8592 Inline HTML vs wiki block nesting
8600 <p><b>Bold paragraph</b>
8601 </p><p>New wiki paragraph
8605 # Original result was this:
8606 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8608 # While that might be marginally more intuitive, maybe, the six-apostrophe
8609 # construct is clearly pathological and the result stated here (which is what
8610 # the parser actually does) is about as reasonable as anything.
8612 Mixing markup for italics and bold
8615 '''bold''''''bold''bolditalics'''''
8617 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8625 Article for special page transclusion test
8629 Special page transclusion
8632 {{Special:Prefixindex/Xyzzyx}}
8634 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8639 Special page transclusion twice (bug 5021)
8642 {{Special:Prefixindex/Xyzzyx}}
8643 {{Special:Prefixindex/Xyzzyx}}
8645 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8646 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8651 Transclusion of default MediaWiki message
8653 {{MediaWiki:Mainpage}}
8660 Transclusion of nonexistent MediaWiki message
8662 {{MediaWiki:Mainpagexxx}}
8664 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8669 Transclusion of MediaWiki message with underscore
8671 {{MediaWiki:history_short}}
8678 Transclusion of MediaWiki message with space
8680 {{MediaWiki:history short}}
8687 Invalid header with following text
8697 Section extraction test (section 0)
8717 Section extraction test (section 1)
8739 Section extraction test (section 2)
8760 Section extraction test (section 3)
8780 Section extraction test (section 4)
8804 Section extraction test (section 5)
8824 Section extraction test (section 6)
8845 Section extraction test (section 7)
8865 Section extraction test (section 8)
8885 Section extraction test (section 9)
8906 Section extraction test (section 10)
8926 Section extraction test (nonexistent section 11)
8945 Section extraction test with bogus heading (section 1)
8950 ==bogus== not a legal section
8954 ==bogus== not a legal section
8958 Section extraction test with bogus heading (section 2)
8963 ==bogus== not a legal section
8970 Section extraction test with comment after heading (section 1)
8982 Section extraction test with comment after heading (section 2)
8994 Section extraction test with bogus <nowiki> heading (section 1)
8999 ==bogus== <nowiki>not a legal section</nowiki>
9003 ==bogus== <nowiki>not a legal section</nowiki>
9007 Section extraction test with bogus <nowiki> heading (section 2)
9012 ==bogus== <nowiki>not a legal section</nowiki>
9019 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9020 # instead of respecting commented sections
9022 Section extraction prefixed by comment (section 1)
9033 Section extraction prefixed by comment (section 2)
9044 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9045 # instead of respecting HTML-style headings
9047 Section extraction, mixed wiki and html (section 1)
9063 Section extraction, mixed wiki and html (section 2)
9079 # Formerly testing for bug 3342
9081 Section extraction, heading surrounded by <noinclude>
9085 <noinclude>==unmarked==</noinclude>
9091 # Test behaviour of bug 19910
9093 Sectiion with all-equals
9098 The line above must have a trailing space
9101 But just in case it doesn't...
9105 But just in case it doesn't...
9109 Section replacement test (section 0)
9140 Section replacement test (section 1)
9169 Section replacement test (section 2)
9199 Section replacement test (section 3)
9230 Section replacement test (section 4)
9257 Section replacement test (section 5)
9288 Section replacement test (section 6)
9318 Section replacement test (section 7)
9349 Section replacement test (section 8)
9380 Section replacement test (section 9)
9409 Section replacement test (section 10)
9439 Section replacement test with initial whitespace (bug 13728)
9443 Preformatted initial line
9447 Preformatted initial line
9454 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9466 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9479 Section extraction, <pre> around bogus header (bug 10309)
9496 Section replacement, <pre> around bogus header (bug 10309)
9498 noxml replace=2,"xxx"
9519 Handling of 
 in URLs
9523 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9530 5 quotes, code coverage +1 line
9537 Special:Search page linking.
9541 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9556 * {{SUBJECTPAGENAME}}
9557 * {{SUBJECTPAGENAMEE}}
9564 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9566 <ul><li> Parser test
9567 </li><li> Parser test
9568 </li><li> Parser test
9569 </li><li> Parser_test
9570 </li><li> Parser test
9571 </li><li> Parser_test
9572 </li><li> Talk:Parser test
9573 </li><li> Talk:Parser_test
9574 </li><li> Parser test
9575 </li><li> Parser_test
9582 </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>
9586 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9596 image4 |300px| centre
9597 image5.svg| http://///////
9602 <ul class="gallery">
9603 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9604 <div style="height: 150px;">Image1.png</div>
9605 <div class="gallerytext">
9608 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9609 <div style="height: 150px;">Image2.gif</div>
9610 <div class="gallerytext">
9615 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9616 <div style="height: 150px;">Image3</div>
9617 <div class="gallerytext">
9620 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9621 <div style="height: 150px;">Image4</div>
9622 <div class="gallerytext">
9627 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9628 <div style="height: 150px;">Image5.svg</div>
9629 <div class="gallerytext">
9630 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9634 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9635 <div style="height: 150px;">* image6</div>
9636 <div class="gallerytext">
9644 Gallery (with options)
9646 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9647 File:Nonexistant.jpg|caption
9648 File:Nonexistant.jpg
9649 image:foobar.jpg|some '''caption''' [[Main Page]]
9651 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9654 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9655 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9656 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9657 <div style="height: 70px;">Nonexistant.jpg</div>
9658 <div class="gallerytext">
9663 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9664 <div style="height: 70px;">Nonexistant.jpg</div>
9665 <div class="gallerytext">
9668 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9669 <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>
9670 <div class="gallerytext">
9671 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9675 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9676 <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>
9677 <div class="gallerytext">
9680 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9681 <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>
9682 <div class="gallerytext">
9692 Gallery with wikitext inside caption
9695 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9696 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9699 <ul class="gallery">
9700 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9701 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
9702 <div class="gallerytext">
9703 <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>
9707 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9708 <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>
9709 <div class="gallerytext">
9710 <p>This is a test template
9719 gallery (with showfilename option)
9721 <gallery showfilename>
9722 File:Nonexistant.jpg|caption
9723 File:Nonexistant.jpg
9724 image:foobar.jpg|some '''caption''' [[Main Page]]
9728 <ul class="gallery">
9729 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9730 <div style="height: 150px;">Nonexistant.jpg</div>
9731 <div class="gallerytext">
9732 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9737 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9738 <div style="height: 150px;">Nonexistant.jpg</div>
9739 <div class="gallerytext">
9740 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9744 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9745 <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>
9746 <div class="gallerytext">
9747 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9748 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9752 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9753 <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>
9754 <div class="gallerytext">
9755 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9764 Gallery (with namespace-less filenames)
9767 File:Nonexistant.jpg
9773 <ul class="gallery">
9774 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9775 <div style="height: 150px;">Nonexistant.jpg</div>
9776 <div class="gallerytext">
9779 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9780 <div style="height: 150px;">Nonexistant.jpg</div>
9781 <div class="gallerytext">
9784 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9785 <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>
9786 <div class="gallerytext">
9789 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9790 <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>
9791 <div class="gallerytext">
9799 HTML Hex character encoding (spells the word "JavaScript")
9801 JavaScript
9803 <p>JavaScript
9808 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9812 <p>&#xsee;&#XSEE;
9817 HTML Hex character encoding mixed case
9826 __FORCETOC__ override
9838 ISBN 978-0-1234-56 789
9840 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9845 ISBN followed by 5 spaces
9856 ISBN ISBN 1234567890
9858 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9863 Bug 22905: <abbr> followed by ISBN followed by </a>
9865 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9867 <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>
9876 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9881 Double RFC with a wiki link
9885 <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>
9894 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9899 Centre-aligned image
9901 [[Image:foobar.jpg|centre]]
9903 <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>
9910 [[Image:foobar.jpg|none]]
9912 <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>
9917 Width + Height sized image (using px) (height is ignored)
9919 [[Image:foobar.jpg|640x480px]]
9921 <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>
9926 Width-sized image (using px, no following whitespace)
9928 [[Image:foobar.jpg|640px]]
9930 <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>
9935 Width-sized image (using px, with following whitespace - test regression from r39467)
9937 [[Image:foobar.jpg|640px ]]
9939 <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>
9944 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9946 [[Image:foobar.jpg| 640px]]
9948 <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>
9953 Another italics / bold test
9961 # Note the results may be incorrect, as parserTest output included this:
9962 # XML error: Mismatched tag at byte 6120:
9963 # ...<dd> </dt></dl> </dd...
9971 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9982 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9984 Images with the "|" character in the comment
9986 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9988 <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>
9993 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9995 <html><script>alert(1);</script></html>
9997 <p><html><script>alert(1);</script></html>
10002 HTML with raw HTML ($wgRawHtml==true)
10006 <html><script>alert(1);</script></html>
10008 <p><script>alert(1);</script>
10013 Parents of subpages, one level up
10015 subpage title=[[Subpage test/L1/L2/L3]]
10019 <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>
10025 Parents of subpages, one level up, not named
10027 subpage title=[[Subpage test/L1/L2/L3]]
10031 <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>
10038 Parents of subpages, two levels up
10040 subpage title=[[Subpage test/L1/L2/L3]]
10046 <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
10047 </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>
10052 Parents of subpages, two levels up, without trailing slash or name.
10054 subpage title=[[Subpage test/L1/L2/L3]]
10063 Parents of subpages, two levels up, with lots of extra trailing slashes.
10065 subpage title=[[Subpage test/L1/L2/L3]]
10069 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10074 Definition list code coverage
10080 <dl><dt> title  </dt><dd> def
10081 </dd><dt> title </dt><dd> def
10082 </dd><dt>title</dt><dd> def
10088 Don't fall for the self-closing div
10090 <div>hello world</div/>
10092 <div>hello world</div>
10101 <p>[[:Template:Msg]]
10110 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10114 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10116 Always escape literal '>' in output, not just after '<'
10130 <p>This is a test template
10131 This is a test template
10143 Inclusion of !userCanEdit() content
10147 <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>
10153 Out-of-order TOC heading levels
10162 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10164 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10166 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10167 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10170 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10172 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10173 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10178 <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>
10179 <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>
10180 <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>
10181 <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>
10182 <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>
10183 <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>
10189 ISBN with a dummy number
10199 ISBN with space-delimited number
10203 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10209 ISBN with multiple spaces, no number
10228 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10229 </p><p>ISBN 12345678901
10235 ISBN with trailing year (bug 8110)
10237 ISBN 1-234-56789-0 - 2006
10239 ISBN 1 234 56789 0 - 2006
10241 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10242 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10250 {{anchorencode:foo bar©#%n}}
10252 <p>foo_bar.C2.A9.23.25n
10257 anchorencode trims spaces
10259 {{anchorencode: __pretty__please__}}
10266 anchorencode deals with links
10268 {{anchorencode: [[hello|world]] [[hi]]}}
10275 anchorencode deals with templates
10277 {{anchorencode: {{Foo}} }}
10284 anchorencode encodes like the TOC generator: (bug 18431)
10286 === _ +:.3A%3A&&]] ===
10287 {{anchorencode: _ +:.3A%3A&&]] }}
10290 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10291 <p>.2B:.3A.253A.26.26.5D.5D
10295 # Expected output in the following test is not necessarily expected (there
10296 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10297 # only testing for well-formedness.
10299 Bug 6200: blockquotes and paragraph formatting
10319 Bug 8293: Use of center tag ruins paragraph formatting
10341 ### Language variants related tests
10344 Self-link in language variants
10346 title=[[Dunav]] language=sr
10348 Both [[Dunav]] and [[Дунав]] are names for this river.
10350 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10356 Link to pages in language variants
10360 Main Page can be written as [[Маин Паге]]
10362 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10368 Multiple links to pages in language variants
10372 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10374 <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>.
10380 Simple template in language variants
10386 <p>This is a test template
10392 Template with explicit namespace in language variants
10398 <p>This is a test template
10404 Basic test for template parameter in language variants
10408 {{парамтест|param=foo}}
10410 <p>This is a test template with parameter foo
10416 Simple category in language variants
10420 [[Category:МедиаWики Усер'с Гуиде]]
10422 <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>
10427 Stripping -{}- tags (language variants)
10431 Latin proverb: -{Ne nuntium necare}-
10433 <p>Latin proverb: Ne nuntium necare
10439 Prevent conversion with -{}- tags (language variants)
10441 language=sr variant=sr-ec
10443 Latinski: -{Ne nuntium necare}-
10445 <p>Латински: Ne nuntium necare
10451 Prevent conversion of text with -{}- tags (language variants)
10453 language=sr variant=sr-ec
10455 Latinski: -{Ne nuntium necare}-
10457 <p>Латински: Ne nuntium necare
10463 Prevent conversion of links with -{}- tags (language variants)
10465 language=sr variant=sr-ec
10469 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10475 -{}- tags within headlines (within html for parserConvert())
10477 language=sr variant=sr-ec
10481 <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>
10487 Explicit definition of language variant alternatives
10489 language=zh variant=zh-tw
10491 -{zh:China;zh-tw:Taiwan}-, not China
10493 <p>Taiwan, not China
10499 Explicit session-wise language variant mapping (A flag and - flag)
10501 language=zh variant=zh-tw
10503 Taiwan is not China.
10504 But -{A|zh:China;zh-tw:Taiwan}- is China,
10505 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10506 and -{China}- is China.
10508 <p>Taiwan is not China.
10509 But Taiwan is Taiwan,
10510 (This should be stripped!)
10511 and China is China.
10516 Explicit session-wise language variant mapping (H flag for hide)
10518 language=zh variant=zh-tw
10520 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10523 <p>(This should be stripped!)
10529 Adding explicit conversion rule for title (T flag)
10531 language=zh variant=zh-tw showtitle
10533 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10536 <p>Should be stripped!
10541 Testing that changing the language variant here in the tests actually works
10543 language=zh variant=zh showtitle
10545 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10548 <p>Should be stripped!
10553 Bug 24072: more test on conversion rule for title
10555 language=zh variant=zh-tw showtitle
10557 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10558 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10561 <p>This should be stripped!
10562 This won't take interferes with the title rule.
10567 Raw output of variant escape tags (R flag)
10569 language=zh variant=zh-tw
10571 Raw: -{R|zh:China;zh-tw:Taiwan}-
10573 <p>Raw: zh:China;zh-tw:Taiwan
10578 Nested using of manual convert syntax
10580 language=zh variant=zh-hk
10582 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10584 <p>Nested: Hello Hong Kong!
10589 Do not convert roman numbers to language variants
10591 language=sr variant=sr-ec
10595 <p>Фридрих IV је цар.
10600 Unclosed language converter markup "-{"
10611 Don't convert raw rule "-{R|=>}-" to "=>"
10628 Bug 529: Uncovered bullet
10638 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10639 # Templates in Wikipedia rely on this behavior, as tidy has always been
10640 # enabled there. These tests are normally run *without* tidy, so specify the
10641 # full output here.
10642 # To test realistic parsing behavior, apply a tidy-like transformation to both
10643 # the expected output and your parser's output.
10645 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10647 ******* Foo {{bullet}}
10649 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10662 Bug 529: Uncovered table already at line-start
10685 Bug 529: Uncovered bullet in parser function result
10687 * Foo {{lc:{{bullet}} }}
10696 Bug 5678: Double-parsed template argument
10698 {{lc:{{{1}}}|hello}}
10705 Bug 5678: Double-parsed template invocation
10707 {{lc:{{paramtest {{!}} param = hello }} }}
10709 <p>{{paramtest | param = hello }}
10714 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10717 title=[[Main Page]]
10719 {{PRVNÍVELKÉ:ěščř}}
10720 {{prvnívelké:ěščř}}
10740 Morwen/13: Unclosed link followed by heading
10747 <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>
10752 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10759 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10764 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10771 <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>
10786 Paragraphs inside divs (no extra line breaks)
10798 Paragraphs inside divs (extra line break on open)
10813 Paragraphs inside divs (extra line break on close)
10828 Paragraphs inside divs (extra line break on open and close)
10845 Nesting tags, paragraphs on lines which begin with <div>
10849 <div></div><strong>A
10858 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10860 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10864 <blockquote>Line one
10866 Line two</blockquote>
10868 <blockquote>Line one
10869 Line two</blockquote>
10874 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10881 Line two</blockquote>
10886 Line two</blockquote>
10891 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10895 <blockquote>Line one
10900 <blockquote>Line one
10908 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10927 Paragraphs inside blockquotes/divs (no extra line breaks)
10929 <blockquote><div>Line one
10931 Line two</div></blockquote>
10933 <blockquote><div>Line one
10934 Line two</div></blockquote>
10939 Paragraphs inside blockquotes/divs (extra line break on open)
10944 Line two</div></blockquote>
10949 Line two</div></blockquote>
10954 Paragraphs inside blockquotes/divs (extra line break on close)
10956 <blockquote><div>Line one
10959 </div></blockquote>
10961 <blockquote><div>Line one
10964 </div></blockquote>
10969 Paragraphs inside blockquotes/divs (extra line break on open and close)
10975 </div></blockquote>
10981 </div></blockquote>
10986 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10988 wgLinkHolderBatchSize=0
10994 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10995 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10996 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11001 Free external link invading image caption
11003 [[Image:Foobar.jpg|thumb|http://x|hello]]
11005 <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>
11010 Bug 15196: localised external link numbers
11014 [http://en.wikipedia.org/]
11016 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11021 Multibyte character in padleft
11023 {{padleft:-Hello|7|Æ}}
11030 Multibyte character in padright
11032 {{padright:Hello-|7|Æ}}
11041 wgUseDynamicDates=1
11045 <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>
11050 formatdate parser function
11052 {{#formatdate:2009-03-24}}
11054 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11059 formatdate parser function, with default format
11061 {{#formatdate:2009-03-24|mdy}}
11063 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11068 Linked date with autoformatting disabled
11070 wgUseDynamicDates=false
11074 <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>
11079 Spacing of numbers in formatted dates
11081 {{#formatdate:January 15}}
11083 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11088 Spacing of numbers in formatted dates (linked)
11090 wgUseDynamicDates=true
11094 <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>
11099 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
11101 language=nl title=[[MediaWiki:Common.css]]
11103 {{#formatdate:2009-03-24|dmy}}
11105 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11118 Edit comment with link
11122 I like the [[Main Page]] a lot
11124 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11128 Edit comment with link and link text
11132 I like the [[Main Page|best pages]] a lot
11134 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11138 Edit comment with link and link text with suffix
11142 I like the [[Main Page|best page]]s a lot
11144 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11148 Edit comment with section link (non-local, eg in history list)
11150 comment title=[[Main Page]]
11152 /* External links */ removed bogus entries
11154 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11158 Edit comment with section link and text before it (non-local, eg in history list)
11160 comment title=[[Main Page]]
11162 pre-comment text /* External links */ removed bogus entries
11164 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>
11168 Edit comment with section link (local, eg in diff view)
11170 comment local title=[[Main Page]]
11172 /* External links */ removed bogus entries
11174 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11178 Edit comment with subpage link (bug 14080)
11182 title=[[Subpage test]]
11184 Poked at a [[/subpage]] here...
11186 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11190 Edit comment with subpage link and link text (bug 14080)
11194 title=[[Subpage test]]
11196 Poked at a [[/subpage|neat little page]] here...
11198 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11202 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11205 title=[[Subpage test]]
11207 Poked at a [[/subpage]] here...
11209 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11213 Edit comment with bare anchor link (local, as on diff)
11217 title=[[Main Page]]
11221 <a href="#section">#section</a>
11225 Edit comment with bare anchor link (non-local, as on history)
11228 title=[[Main Page]]
11232 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11236 Anchor starting with underscore
11240 <p><a href="#_ref">One</a>
11245 Id starting with underscore
11247 <div id="_ref"></div>
11249 <div id="_ref"></div>
11254 Space normalisation on autocomment (bug 22784)
11257 title=[[Main Page]]
11259 /* __hello__world__ */
11261 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11265 percent-encoding and + signs in comments (Bug 26410)
11269 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11271 <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>
11275 Bad images - basic functionality
11284 Bad images - bug 16039: text after bad image disappears
11298 Verify that displaytitle works (bug #22501) no displaytitle
11302 wgAllowDisplayTitle=true
11303 wgRestrictDisplayTitle=false
11305 this is not the the title
11308 <p>this is not the the title
11313 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11318 wgAllowDisplayTitle=true
11319 wgRestrictDisplayTitle=false
11321 this is not the the title
11322 {{DISPLAYTITLE:whatever}}
11325 <p>this is not the the title
11330 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11335 wgAllowDisplayTitle=true
11336 wgRestrictDisplayTitle=true
11338 this is not the the title
11339 {{DISPLAYTITLE:whatever}}
11342 <p>this is not the the title
11347 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11352 wgAllowDisplayTitle=true
11353 wgRestrictDisplayTitle=true
11355 this is not the the title
11356 {{DISPLAYTITLE:screen}}
11359 <p>this is not the the title
11364 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11369 wgAllowDisplayTitle=false
11371 this is not the the title
11372 {{DISPLAYTITLE:screen}}
11375 <p>this is not the the title
11376 <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>
11381 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11386 wgAllowDisplayTitle=false
11388 this is not the the title
11391 <p>this is not the the title
11396 preload: check <noinclude> and <includeonly>
11400 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11406 preload: check <onlyinclude>
11410 Goodbye <onlyinclude>Hello world</onlyinclude>
11416 preload: can pass tags through if we want to
11420 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11422 <includeonly>Hello world</includeonly>
11426 preload: check that it doesn't try to do tricks
11430 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11432 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11436 Play a bit with r67090 and bug 3158
11440 <div style="width:50% !important"> </div>
11441 <div style="width:50% !important"> </div>
11442 <div style="width:50% !important"> </div>
11443 <div style="border : solid;"> </div>
11445 <div style="width:50% !important"> </div>
11446 <div style="width:50% !important"> </div>
11447 <div style="width:50% !important"> </div>
11448 <div style="border : solid;"> </div>
11453 HTML5 data attributes
11455 <span data-foo="bar">Baz</span>
11456 <p data-abc-def_hij="">Quuz</p>
11458 <p><span data-foo="bar">Baz</span>
11460 <p data-abc-def_hij="">Quuz</p>
11465 percent-encoding and + signs in internal links (Bug 26410)
11467 [[User:+%]] [[Page+title%]]
11468 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11469 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11470 [[%33%45]] [[%33%45+]]
11472 <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>
11473 <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>
11474 <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>
11475 <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>
11480 Special characters in embedded file links (bug 27679)
11482 [[File:Contains & ampersand.jpg]]
11483 [[File:Does not exist.jpg|Title with & ampersand]]
11485 <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>
11486 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11492 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11494 Text's been normalized?
11496 <p>Text's been normalized?
11501 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11503 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11505 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11510 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11512 [http://www.example.org/ ideograms]
11514 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11519 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11521 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11523 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11547 Bug 31098 Template which includes system messages which includes the template
11551 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11552 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11557 Bug31490 Turkish: ucfirst 'blah'
11568 Bug31490 Turkish: ucfirst 'ix'
11579 Bug31490 Turkish: lcfirst 'BLAH'
11590 Bug31490 Turkish: ucfırst (with a dotless i)
11596 <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>
11601 Bug31490 ucfırst (with a dotless i) with English language
11607 <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>
11612 Bug 26375: TOC with italics
11614 title=[[Main Page]]
11617 == ''Lost'' episodes ==
11619 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11621 <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>
11624 <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>
11629 Bug 26375: TOC with bold
11631 title=[[Main Page]]
11634 == '''should be bold''' then normal text ==
11636 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11638 <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>
11641 <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>
11646 Bug 33845: Headings become cursive in TOC when they contain an image
11648 title=[[Main Page]]
11651 == Image [[Image:foobar.jpg]] ==
11653 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11655 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11658 <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>
11663 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11665 title=[[Main Page]]
11668 == <blockquote>Quote</blockquote> ==
11670 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11672 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11675 <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>
11680 Unclosed tags in TOC
11682 title=[[Main Page]]
11686 <small>Hanc marginis exiguitas non caperet.</small>
11689 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11691 <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>
11694 <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>
11695 <p><small>Hanc marginis exiguitas non caperet.</small>
11701 Multiple tags in TOC
11704 == <i>Foo</i> <b>Bar</b> ==
11706 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11708 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11710 <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>
11711 <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>
11714 <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>
11715 <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>
11720 Tags with parameters in TOC
11723 == <sup class="in-h2">Hello</sup> ==
11725 == <sup class="a > b">Evilbye</sup> ==
11727 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11729 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11730 <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>
11733 <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>
11734 <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>
11739 span tags with directionality in TOC
11742 == <span dir="ltr">C++</span> ==
11744 == <span dir="rtl">זבנג!</span> ==
11746 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11748 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11750 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11752 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11754 <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>
11755 <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>
11756 <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>
11757 <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>
11758 <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>
11761 <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>
11762 <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>
11763 <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>
11764 <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>
11765 <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>
11772 == {{int:headline_sample}} ==
11776 Bug 32057: Title needed when expanding <h> nodes.
11778 title=[[Main Page]]
11782 <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>
11787 Strip marker in urlencode
11789 {{urlencode:x<nowiki/>y}}
11790 {{urlencode:x<nowiki/>y|wiki}}
11791 {{urlencode:x<nowiki/>y|path}}
11818 Strip marker in formatNum
11820 {{formatnum:1<nowiki/>2}}
11821 {{formatnum:1<nowiki/>2|R}}
11829 Strip marker in grammar
11833 {{grammar:elative|foo<nowiki/>bar}}
11840 Strip marker in padleft
11842 {{padleft:|2|x<nowiki/>y}}
11849 Strip marker in padright
11851 {{padright:|2|x<nowiki/>y}}
11858 Strip marker in anchorencode
11860 {{anchorencode:x<nowiki/>y}}
11867 nowiki inside link inside heading (bug 18295)
11869 ==[[foo|x<nowiki>y</nowiki>z]]==
11871 <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>
11876 new support for bdi element (bug 31817)
11878 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11880 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11885 Ignore pipe between table row attributes
11889 |- id=foo | style='color: red'
11897 <tr id="foo" style="color: red">
11904 Gallery override link with WikiLink (bug 34852)
11907 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11910 <ul class="gallery">
11911 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11912 <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>
11913 <div class="gallerytext">
11923 Gallery override link with absolute external link (bug 34852)
11926 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11929 <ul class="gallery">
11930 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11931 <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>
11932 <div class="gallerytext">
11942 Gallery override link with malicious javascript (bug 34852)
11945 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11948 <ul class="gallery">
11949 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11950 <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>
11951 <div class="gallerytext">
11961 Language parser function
11970 Padleft and padright as substr
11972 {{padleft:|3|abcde}}
11973 {{padright:|3|abcde}}
11981 Bug 34939 - Case insensitive link parsing ([HttP://])
11983 [HttP://MediaWiki.Org/]
11985 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11990 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11992 [HttP://MediaWiki.Org/ MediaWiki]
11994 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11999 Bug 34939 - Case insensitive link parsing (HttP://)
12001 HttP://MediaWiki.Org/
12003 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12008 ### Parsoids-specific tests
12009 ### Parsoid-PHP parser incompatibilities
12012 1. SOL-sensitive wikitext tokens as template-args
12026 #### The following section of tests are primarily to test
12027 #### wikitext escaping capabilities of Parsoid.
12028 #### A lot of the tests are disabled for the PHP parser either
12029 #### because of minor newline diffs or other reasons.
12030 #### As Parsoid serializer can handle newlines and other HTML
12031 #### more robustly, some of these tests might get reenabled
12032 #### for the PHP parser.
12034 #### --------------- Headings ---------------
12036 #### 1. Nested inside html <h1>=foo=</h1>
12037 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12038 #### 3. Nested inside html with wikitext split by html tags
12039 #### 4. No escape needed
12040 #### 5. Empty headings <h1></h1>
12041 #### 6. Heading chars in SOL context
12042 #### ----------------------------------------
12044 Headings: 0. Unnested
12046 <nowiki>=foo=</nowiki>
12048 <nowiki>=foo</nowiki>''a''=
12051 </p><p>=foo<i>a</i>=
12056 Headings: 1. Nested inside html
12060 =<nowiki>=foo=</nowiki>=
12061 ==<nowiki>=foo=</nowiki>==
12062 ===<nowiki>=foo=</nowiki>===
12063 ====<nowiki>=foo=</nowiki>====
12064 =====<nowiki>=foo=</nowiki>=====
12065 ======<nowiki>=foo=</nowiki>======
12076 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12081 <nowiki>*bar</nowiki>
12085 <nowiki>=bar=</nowiki>
12093 Headings: 3. Nested inside html with wikitext split by html tags
12097 =<nowiki>=</nowiki>'''bold'''foo==
12099 <h1>=<b>bold</b>foo=</h1>
12103 Headings: 4. No escaping needed (testing just h1 and h2)
12118 <h1><i>=</i>foo=</h1>
12123 Headings: 5. Empty headings
12127 =<nowiki></nowiki>=
12128 ==<nowiki></nowiki>==
12129 ===<nowiki></nowiki>===
12130 ====<nowiki></nowiki>====
12131 =====<nowiki></nowiki>=====
12132 ======<nowiki></nowiki>======
12143 Headings: 6. Heading chars in SOL context
12147 <!--cmt--><nowiki>=h1=</nowiki>
12153 #### --------------- Lists ---------------
12154 #### 0. Outside nests (*foo, etc.)
12155 #### 1. Nested inside html <ul><li>*foo</li></ul>
12156 #### 2. Inside definition lists
12157 #### 3. Only bullets at start should be escaped
12158 #### 4. No escapes needed
12159 #### 5. No unnecessary escapes
12160 #### 6. Escape bullets in SOL position
12161 #### 7. Escape bullets in a multi-line context
12162 #### ----------------------------------------
12165 Lists: 0. Outside nests
12167 <nowiki>*foo</nowiki>
12169 <nowiki>#foo</nowiki>
12177 Lists: 1. Nested inside html
12179 *<nowiki>*foo</nowiki>
12181 *<nowiki>#foo</nowiki>
12183 *<nowiki>:foo</nowiki>
12185 *<nowiki>;foo</nowiki>
12187 #<nowiki>*foo</nowiki>
12189 #<nowiki>#foo</nowiki>
12191 #<nowiki>:foo</nowiki>
12193 #<nowiki>;foo</nowiki>
12215 Lists: 2. Inside definition lists
12217 ;<nowiki>;foo</nowiki>
12219 ;<nowiki>:foo</nowiki>
12221 ;<nowiki>:foo</nowiki>
12224 :<nowiki>:foo</nowiki>
12239 Lists: 3. Only bullets at start of text should be escaped
12241 *<nowiki>*foo*bar</nowiki>
12243 *<nowiki>*foo</nowiki>''it''*bar
12247 <ul><li>*foo<i>it</i>*bar
12253 Lists: 4. No escapes needed
12265 <ul><li><i>foo</i>*bar
12267 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12272 Lists: 5. No unnecessary escapes
12274 * bar <span><nowiki>[[foo]]</nowiki></span>
12276 *=bar <span><nowiki>[[foo]]</nowiki></span>
12278 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12280 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12282 *=bar <span>foo]]</span>=
12284 <ul><li> bar <span>[[foo]]</span>
12286 <ul><li>=bar <span>[[foo]]</span>
12288 <ul><li>[[bar <span>[[foo]]</span>
12290 <ul><li>]]bar <span>[[foo]]</span>
12292 <ul><li>=bar <span>foo]]</span>=
12298 Lists: 6. Escape bullets in SOL position
12302 <!--cmt--><nowiki>*foo</nowiki>
12309 Lists: 7. Escape bullets in a multi-line context
12319 #### --------------- HRs ---------------
12320 #### 1. Single line
12321 #### -----------------------------------
12324 HRs: 1. Single line
12329 <nowiki>----</nowiki>
12331 <nowiki>=foo=</nowiki>
12333 <nowiki>*foo</nowiki>
12340 #### --------------- Tables ---------------
12341 #### 1a. Simple example
12342 #### 1b. No escaping needed (!foo)
12343 #### 1c. No escaping needed (|foo)
12344 #### 1d. No escaping needed (|}foo)
12346 #### 2a. Nested in td (<td>foo|bar</td>)
12347 #### 2b. Nested in td (<td>foo||bar</td>)
12348 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12350 #### 3a. Nested in th (<th>foo!bar</th>)
12351 #### 3b. Nested in th (<th>foo!!bar</th>)
12352 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12356 #### 4c. No escaping needed
12357 #### --------------------------------------
12360 Tables: 1a. Simple example
12371 Tables: 1b. No escaping needed
12380 Tables: 1c. No escaping needed
12389 Tables: 1d. No escaping needed
12398 Tables: 2a. Nested in td
12403 |<nowiki>foo|bar</nowiki>
12413 Tables: 2b. Nested in td
12418 |<nowiki>foo||bar</nowiki>
12419 |''it''<nowiki>foo||bar</nowiki>
12424 </td><td><i>it</i>foo||bar
12430 Tables: 2c. Nested in td -- no escaping needed
12445 Tables: 3a. Nested in th
12460 Tables: 3b. Nested in th
12465 !<nowiki>foo!!bar</nowiki>
12475 Tables: 3c. Nested in th -- no escaping needed
12490 Tables: 4a. Escape -
12498 |<nowiki>-bar</nowiki>
12502 <tr><th>-bar</th></tr>
12503 <tr><td>-bar</td></tr>
12508 Tables: 4b. Escape +
12516 |<nowiki>+bar</nowiki>
12520 <tr><th>+bar</th></tr>
12521 <tr><td>+bar</td></tr>
12526 Tables: 4c. No escaping needed
12540 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12541 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12545 #### --------------- Links ---------------
12546 #### 1. Quote marks in link text
12547 #### 2. Wikilinks: Escapes needed
12548 #### 3. Wikilinks: No escapes needed
12549 #### 4. Extlinks: Escapes needed
12550 #### 5. Extlinks: No escapes needed
12551 #### --------------------------------------
12553 Links 1. Quote marks in link text
12557 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12559 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12563 Links 2. WikiLinks: Escapes needed
12567 [[Foo|<nowiki>[Foobar]</nowiki>]]
12568 [[Foo|<nowiki>Foobar]</nowiki>]]
12569 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12570 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12571 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12572 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12573 [[Foo|<nowiki>|Bar</nowiki>]]
12575 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12576 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12577 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12578 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12579 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12580 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12581 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12585 Links 3. WikiLinks: No escapes needed
12592 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12593 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12597 Links 4. ExtLinks: Escapes needed
12601 [http://google.com <nowiki>[google]</nowiki>]
12602 [http://google.com <nowiki>google]</nowiki>]
12604 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12605 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12609 Links 5. ExtLinks: No escapes needed
12613 [http://google.com [google]
12615 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12618 #### --------------- Quotes ---------------
12619 #### 1. Quotes inside <b> and <i>
12620 #### 2. Link fragments separated by <i> and <b> tags
12621 #### 3. Link fragments inside <i> and <b>
12622 #### --------------------------------------
12624 1. Quotes inside <b> and <i>
12626 ''<nowiki>'foo'</nowiki>''
12627 ''<nowiki>''foo''</nowiki>''
12628 ''<nowiki>'''foo'''</nowiki>''
12629 '''<nowiki>'foo'</nowiki>'''
12630 '''<nowiki>''foo''</nowiki>'''
12631 '''<nowiki>'''foo'''</nowiki>'''
12632 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12640 <b>foo'<i>bar'</i>baz</b>
12645 2. Link fragments separated by <i> and <b> tags
12647 [[''foo''<nowiki>hello]]</nowiki>
12649 [['''foo'''<nowiki>hello]]</nowiki>
12651 <p>[[<i>foo</i>hello]]
12652 </p><p>[[<b>foo</b>hello]]
12657 2. Link fragments inside <i> and <b>
12658 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12659 this is one of the shortcomings of this format)
12661 ''[[foo''<nowiki>]]</nowiki>
12663 '''[[foo'''<nowiki>]]</nowiki>
12666 </p><p><b>[[foo</b>]]
12670 #### --------------- Paragraphs ---------------
12671 #### 1. No unnecessary escapes
12672 #### --------------------------------------
12675 1. No unnecessary escapes
12677 bar <span><nowiki>[[foo]]</nowiki></span>
12679 =bar <span><nowiki>[[foo]]</nowiki></span>
12681 [[bar <span><nowiki>[[foo]]</nowiki></span>
12683 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12685 <nowiki>=bar </nowiki><span>foo]]</span>=
12687 <p>bar <span>[[foo]]</span>
12688 </p><p>=bar <span>[[foo]]</span>
12689 </p><p>[[bar <span>[[foo]]</span>
12690 </p><p>]]bar <span>[[foo]]</span>
12691 </p><p>=bar <span>foo]]</span>=
12695 #### --------------- PRE ------------------
12696 #### 1. Leading space in SOL context should be escaped
12697 #### --------------------------------------
12699 1. Leading space in SOL context should be escaped
12703 <nowiki> foo</nowiki>
12704 <!--cmt--><nowiki> foo</nowiki>
12711 #### --------------- HTML tags ---------------
12714 #### 3. multi-line html tag
12715 #### --------------------------------------
12721 <a href="http://google.com">google</a>
12723 <a href="http://google.com">google</a>
12729 <nowiki><div>foo</div>
12730 <div style="color:red">foo</div></nowiki>
12732 <p><div>foo</div>
12733 <div style="color:red">foo</div>
12738 3. multi-line html tag
12750 #### --------------- Others ---------------
12754 <nowiki>foo</nowiki>
12756 <p><nowiki>foo</nowiki>
12761 Tag-like HTML structures are passed through as text
12783 </p><p>1<d e>f
12788 # This fails in the PHP parser (see bug 40670,
12789 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
12791 Tag names followed by punctuation should not be recognized as tags
12797 <p><s.ome> text
12807 Try for 100% code coverage